/* User Notifications Styles */
.ccass-user-notifications .notifications-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
}
.ccass-user-notifications .notifications-header h1 {
  margin: 0;
}
.ccass-user-notifications .notification-mark-all-read {
  padding: 10px 20px;
  background: var(--primary-color, #24243a);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}
.ccass-user-notifications .notification-mark-all-read:hover {
  background: var(--primary-color-hover, #3a3a4a);
}
.ccass-user-notifications .notification-mark-all-read:active {
  transform: translateY(1px);
}
.ccass-user-notifications .notification-mark-all-read:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.ccass-user-notifications .table-styling table thead {
  display: none;
}
.ccass-user-notifications .table-styling table,
.ccass-user-notifications .table-styling tbody,
.ccass-user-notifications .table-styling tr,
.ccass-user-notifications .table-styling td {
  display: block;
  width: 100%;
}
.ccass-user-notifications tr:nth-child(even) {
  background: #f3f5fa;
}
.ccass-user-notifications .table-styling table tbody tr {
  cursor: pointer;
  transition: background-color 0.2s ease;
  padding: 10px 12px;
}
.ccass-user-notifications .table-styling table tbody tr:hover {
  background: #f8f8f8;
}
.ccass-user-notifications .table-styling td {
  padding: 4px 0;
  border: none;
  width: 100%;
  height: auto;
}
.ccass-user-notifications .table-styling td::before {
  display: none;
}
.ccass-user-notifications .table-styling td.notification-date {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #24243a;
  font-size: 14px;
  margin-bottom: 2px;
}
.ccass-user-notifications .table-styling td.notification-date .notification-source-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  background: #f0f0f5;
  color: #24243a;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.ccass-user-notifications .table-styling td.notification-subject {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  margin: 2px 0;
}
.ccass-user-notifications .table-styling td.notification-subject .notification-subject-title {
  display: block;
  font-weight: 400;
  color: #91919c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ccass-user-notifications .table-styling td.notification-subject .notification-subject-preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: pre-line;
  font-weight: 400;
  color: #b0b0b8;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 6px;
}
.ccass-user-notifications .table-styling td.notification-subject.notification-unread .notification-subject-title {
  font-weight: 600;
  color: #000000;
}
.ccass-user-notifications .table-styling td.notification-subject.notification-read .notification-subject-title {
  font-weight: 400;
}
.ccass-user-notifications .table-styling td.notification-text {
  display: none;
}
.ccass-user-notifications .table-styling td.notification-document {
  padding-top: 4px;
}
.ccass-user-notifications .table-styling td.notification-document > .notification-doc {
  display: none;
}
.ccass-user-notifications .table-styling td.notification-document .notification-documents-mobile {
  display: flex;
  flex-direction: row;
  gap: 6px;
  align-items: center;
  overflow: hidden;
  width: 100%;
  flex-wrap: nowrap;
}
.ccass-user-notifications .table-styling td.notification-document .notification-document-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  text-decoration: none;
  color: #24243a;
  font-size: 13px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 48%;
  overflow: hidden;
  white-space: nowrap;
}
.ccass-user-notifications .table-styling td.notification-document .notification-document-tag:hover {
  background: #f8f8f8;
  border-color: #d0d0d0;
}
.ccass-user-notifications .table-styling td.notification-document .notification-document-tag .notification-document-icon {
  font-size: 16px;
  flex-shrink: 0;
}
.ccass-user-notifications .table-styling td.notification-document .notification-document-tag .notification-document-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  display: block;
}
.ccass-user-notifications .table-styling td.notification-document .notification-documents-mobile:has(.notification-document-tag:nth-child(3)) .notification-document-tag {
  max-width: 32%;
}
.ccass-user-notifications .table-styling td.notification-document .notification-documents-mobile:has(.notification-document-tag:nth-child(4)) .notification-document-tag {
  max-width: 24%;
}
.ccass-user-notifications .table-styling td.notification-document .notification-documents-mobile:has(.notification-document-tag:nth-child(5)) .notification-document-tag {
  max-width: 19%;
}
.ccass-user-notifications .table-styling td.notification-document[data-doc-count="0"] {
  display: none;
}
.ccass-user-notifications .table-styling td .notification-documents-mobile .notification-document-tag:nth-child(n+4) {
  display: none;
}
.ccass-user-notifications .table-styling td .notification-documents-mobile:has(.notification-document-tag:nth-child(4))::after {
  content: "...";
  display: inline-block;
  color: #000000;
  font-size: 30px;
  margin-left: 6px;
}
.ccass-user-notifications .notification-empty {
  text-align: center;
  margin: 20px 0;
}

@media (max-width: 640px) {
  .ccass-user-notifications .table-styling td.notification-document .notification-documents-mobile .notification-document-tag:nth-child(n+4) {
    display: none;
  }
  .ccass-user-notifications .table-styling td.notification-document .notification-documents-mobile:has(.notification-document-tag:nth-child(4))::after {
    content: "...";
    display: inline-block;
    color: #000000;
    font-size: 30px;
    margin-left: 6px;
  }
}
@media (max-width: 600px) {
  .ccass-user-notifications .table-styling td.notification-document .notification-documents-mobile .notification-document-tag:nth-child(n+3) {
    display: none;
  }
  .ccass-user-notifications .table-styling td.notification-document .notification-documents-mobile:has(.notification-document-tag:nth-child(3))::after {
    content: "...";
    display: inline-block;
    color: #000000;
    font-size: 30px;
    margin-left: 6px;
  }
}
.ccass-user-notification-detail {
  padding: 0 30px;
  width: 100%;
}

/* Notification Detail Page */
.notification-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 32px;
  background: #fff;
}
.notification-detail__header {
  display: flex;
  justify-content: space-between;
}
.notification-detail__title {
  margin: 0 0 12px 0;
  font-size: 1.75rem;
  line-height: 1.3;
  font-weight: 700;
  color: #1c1c1c;
  letter-spacing: -0.02em;
}
.notification-detail__back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #24243a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s ease, gap 0.2s ease;
  margin-bottom: 20px;
}
.notification-detail__back-link:hover {
  color: #3a3a4a;
  gap: 10px;
}
.notification-detail__back-link svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
.notification-detail__meta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.notification-detail__date {
  font-size: 14px;
  color: #91919c;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.notification-detail__attachment-indicator {
  background: #ffe51f;
  border: 1px solid #24243a;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: default;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #24243a;
  min-width: 32px;
  height: 32px;
}
.notification-detail__attachment-indicator svg {
  width: 18px;
  height: 18px;
}
.notification-detail__body {
  line-height: 1.7;
  color: #333;
  font-size: 15px;
}
.notification-detail__text {
  margin: 24px 0;
  padding: 3em;
  background: #fbfbfb;
  word-wrap: break-word;
  color: #24243a;
}
.notification-detail__text p {
  margin: 0 0 1.2em;
  line-height: 1.7;
}
.notification-detail__text p:last-child {
  margin-bottom: 0;
}
.notification-detail__text h1,
.notification-detail__text h2,
.notification-detail__text h3,
.notification-detail__text h4,
.notification-detail__text h5,
.notification-detail__text h6 {
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  font-weight: 600;
  color: #1c1c1c;
}
.notification-detail__text ul,
.notification-detail__text ol {
  margin: 1em 0;
  padding-left: 1.5em;
}
.notification-detail__text li {
  margin-bottom: 0.5em;
}
.notification-detail__documents-title {
  margin: 0 0 20px 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #24243a;
  letter-spacing: -0.01em;
}
.notification-detail__documents-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.notification-detail__document-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 56px;
}
.notification-detail__document-item:hover {
  background-color: #f8f8f8;
  border-color: #d0d0d0;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.notification-detail__document-item:active {
  transform: translateY(0);
  box-shadow: none;
}
.notification-detail__document-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
  opacity: 0.8;
}
.notification-detail__document-name {
  flex: 1;
  color: #24243a;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}
.notification-detail__document-download {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
.notification-detail__document-item:hover .notification-detail__document-download {
  opacity: 1;
}
.notification-detail__documents-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}
.notification-detail__download-all {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: #24243a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}
.notification-detail__download-all:hover {
  background: #3a3a4a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(36, 36, 58, 0.2);
}
.notification-detail__download-all:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(36, 36, 58, 0.15);
}
@media (max-width: 768px) {
  .notification-detail {
    padding: 24px 20px;
  }
  .notification-detail__title {
    font-size: 1.5rem;
  }
  .notification-detail__meta {
    flex-wrap: wrap;
    gap: 12px;
  }
  .notification-detail__documents-list {
    gap: 8px;
  }
  .notification-detail__document-item {
    padding: 12px 16px;
    min-height: 52px;
  }
  .notification-detail__document-logo {
    width: 24px;
    height: 24px;
  }
  .notification-detail__document-name {
    font-size: 14px;
  }
}
/* Notification Badge Shortcode */
.ccass-notification-icon-wrapper {
    position: relative;
    display: inline-flex;
}

.ccass-notification-icon-wrapper .notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: #ff4d4d;
    color: #fff;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ccass-notification-icon-wrapper img {
    width: 24px;
    height: auto;
    display: block;
}

/* Notification Dot Style */
.ccass-notification-icon-wrapper .notification-dot {
    position: absolute;
    top: 2px;
    right: 3px;
    width: 9px;
    height: 9px;
    background-color: #ff4d4d;
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 0 3px rgba(255, 77, 77, 0.8);
    display: block;
}
