﻿/* ===================================
   Nexora â€” Main Stylesheet
   RTL Arabic Dashboard (Slack-inspired)
   Brand: Cyan #45D6FF Â· Blue #2F7FE0 Â· Indigo #2247A8 Â· Purple #A86CF6
   =================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Sequential task flow v8681 */
.task-sequential-flow-panel {
  margin: 0 0 16px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(69, 214, 255, 0.2);
  background: linear-gradient(135deg, rgba(69, 214, 255, 0.08), rgba(168, 108, 246, 0.06));
}

.task-sequential-flow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.task-sequential-flow-head > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.task-sequential-flow-head i,
.task-sequential-flow-head strong {
  color: var(--nexora-cyan);
}

.task-sequential-flow-head small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.task-sequential-flow-head > span {
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.1);
  border: 1px solid rgba(69, 214, 255, 0.22);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.task-sequential-flow-list {
  display: grid;
  gap: 10px;
}

.task-sequential-step {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(69, 214, 255, 0.16);
  background: rgba(8, 22, 46, 0.62);
}

.task-sequential-order,
.task-sequential-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  background: rgba(69, 214, 255, 0.1);
  color: var(--nexora-cyan);
}

.task-sequential-step strong {
  display: block;
  color: var(--text-white);
  font-size: 13px;
}

.task-sequential-step small {
  color: var(--text-muted);
  font-size: 11px;
}

.task-sequential-step em {
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.task-sequential-step.approved {
  border-color: rgba(16, 217, 160, 0.28);
}

.task-sequential-step.approved .task-sequential-icon,
.task-sequential-step.approved em {
  color: #10d9a0;
  background: rgba(16, 217, 160, 0.1);
}

.task-sequential-step.review .task-sequential-icon,
.task-sequential-step.review em {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
}

.task-sequential-step.active .task-sequential-icon,
.task-sequential-step.active em,
.task-sequential-step.ready .task-sequential-icon,
.task-sequential-step.ready em {
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.12);
}

.task-sequential-step.locked {
  opacity: 0.78;
}

[data-theme='light'] .task-sequential-flow-panel {
  background: linear-gradient(135deg, rgba(69, 214, 255, 0.12), rgba(168, 108, 246, 0.08));
  border-color: rgba(69, 214, 255, 0.28);
}

[data-theme='light'] .task-sequential-step {
  background: rgba(255, 255, 255, 0.78);
}

[data-theme='light'] .task-sequential-step strong {
  color: #1e293b;
}

/* Smart refresh + document notes */
.btn-platform-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(69, 214, 255, 0.28);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.16), rgba(168, 108, 246, 0.1)),
    rgba(10, 24, 44, 0.86);
  color: var(--text-white);
  font-family: var(--font);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(69, 214, 255, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn-platform-refresh:hover {
  transform: translateY(-1px);
  border-color: rgba(69, 214, 255, 0.52);
  box-shadow: 0 18px 36px rgba(69, 214, 255, 0.16);
}

.btn-platform-refresh:disabled {
  cursor: progress;
  opacity: 0.72;
  transform: none;
}

.note-document-uploader {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(220px, 0.8fr);
  gap: 14px;
  margin-top: 12px;
}

.note-document-dropzone {
  position: relative;
  min-height: 174px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px;
  border: 1px dashed rgba(69, 214, 255, 0.45);
  border-radius: 12px;
  background: rgba(69, 214, 255, 0.06);
  color: var(--text-white);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.note-document-dropzone:hover {
  transform: translateY(-1px);
  border-color: rgba(69, 214, 255, 0.8);
  background: rgba(69, 214, 255, 0.1);
}

.note-document-dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.note-document-drop-icon,
.note-document-view-icon,
.note-document-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(69, 214, 255, 0.24), rgba(168, 108, 246, 0.18));
  color: var(--nexora-cyan);
  border: 1px solid rgba(69, 214, 255, 0.32);
}

.note-document-drop-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  font-size: 24px;
}

.note-document-dropzone small,
.note-document-empty,
.note-document-chip-info small,
.note-document-view-info span,
.note-document-view-info small,
.note-modal-share-head small {
  color: var(--text-muted);
}

.note-document-preview {
  min-height: 174px;
  border: 1px solid rgba(69, 214, 255, 0.18);
  border-radius: 12px;
  background: rgba(6, 19, 36, 0.5);
  padding: 14px;
  display: flex;
  align-items: center;
}

.note-document-progress {
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(69, 214, 255, 0.22);
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.09), rgba(168, 108, 246, 0.06)),
    rgba(6, 19, 36, 0.52);
}

.note-document-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: var(--text-white);
  font-size: 12px;
  font-weight: 900;
}

.note-document-progress-top strong {
  color: var(--nexora-cyan);
  font-variant-numeric: tabular-nums;
}

.note-document-progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(69, 214, 255, 0.12);
  border: 1px solid rgba(69, 214, 255, 0.16);
}

.note-document-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #45d6ff, #2f7fe0, #a86cf6);
  box-shadow: 0 0 18px rgba(69, 214, 255, 0.28);
  transition: width 0.18s ease;
}

.note-document-progress small {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}

.note-document-progress.is-done {
  border-color: rgba(16, 217, 160, 0.28);
  background: rgba(16, 217, 160, 0.08);
}

.note-document-progress.is-done .note-document-progress-bar {
  background: linear-gradient(90deg, #10d9a0, #45d6ff);
}

.note-document-progress.is-indeterminate .note-document-progress-bar {
  animation: noteDocProgressPulse 1.1s ease-in-out infinite alternate;
}

@keyframes noteDocProgressPulse {
  from {
    transform: translateX(8%);
    opacity: 0.72;
  }
  to {
    transform: translateX(-8%);
    opacity: 1;
  }
}

.note-document-empty {
  width: 100%;
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
}

.note-document-empty i {
  font-size: 28px;
  opacity: 0.65;
}

.note-document-chip {
  width: 100%;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 12px;
}

.note-document-chip-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 20px;
}

.note-document-chip-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.note-document-chip-info strong {
  color: var(--text-white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-document-chip button {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  cursor: pointer;
}

.note-modal-share-box {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(69, 214, 255, 0.2);
  border-radius: 14px;
  background: rgba(6, 19, 36, 0.52);
}

.note-modal-share-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.note-modal-share-head strong {
  color: var(--text-white);
}

.note-share-search {
  position: relative;
  margin-bottom: 12px;
}

.note-share-search i {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--nexora-cyan);
}

.note-share-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 42px 0 14px;
  border: 1px solid rgba(69, 214, 255, 0.2);
  border-radius: 11px;
  background: rgba(10, 24, 44, 0.72);
  color: var(--text-white);
  font-family: var(--font);
}

.note-share-list.compact {
  max-height: 220px;
}

.note-document-view-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  margin-bottom: 16px;
  border: 1px solid rgba(69, 214, 255, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.1), rgba(168, 108, 246, 0.08)),
    rgba(6, 19, 36, 0.56);
}

.note-document-view-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  font-size: 26px;
}

.note-document-view-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.note-document-view-info strong {
  color: var(--text-white);
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-document-view-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.note-document-view-actions a,
.note-document-view-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(69, 214, 255, 0.26);
  border-radius: 10px;
  background: rgba(69, 214, 255, 0.09);
  color: var(--nexora-cyan);
  font-family: var(--font);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.note-document-view-actions a:hover,
.note-document-view-actions button:hover {
  border-color: rgba(69, 214, 255, 0.5);
  background: rgba(69, 214, 255, 0.15);
}

[data-theme='light'] .btn-platform-refresh,
[data-theme='light'] .note-document-preview,
[data-theme='light'] .note-document-progress,
[data-theme='light'] .note-modal-share-box,
[data-theme='light'] .note-document-view-card {
  background: #fff;
  color: var(--text-primary);
}

[data-theme='light'] .note-document-chip-info strong,
[data-theme='light'] .note-document-view-info strong,
[data-theme='light'] .note-modal-share-head strong {
  color: var(--text-primary);
}

@media (max-width: 820px) {
  .modal-notes.modal-note-view {
    width: min(100vw - 16px, 100%);
  }

  .note-document-uploader,
  .note-document-view-card {
    grid-template-columns: 1fr;
  }

  .note-document-view-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .note-document-view-actions a,
  .note-document-view-actions button {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .btn-platform-refresh span {
    display: none;
  }

  .btn-platform-refresh {
    width: 48px;
    min-width: 48px;
    padding: 0;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MODAL LAYOUT FIX â€” stable body scroll, no bottom gap
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.modal-overlay.open {
  align-items: center !important;
  justify-content: center !important;
  padding: 18px !important;
}
.modal-overlay.open .modal {
  width: min(560px, calc(100vw - 36px));
  max-width: calc(100vw - 36px) !important;
  max-height: min(92dvh, 860px) !important;
  height: auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border: 1px solid rgba(69, 214, 255, 0.2) !important;
  border-radius: 20px !important;
  background:
    linear-gradient(180deg, rgba(69, 214, 255, 0.035), transparent 90px),
    var(--bg-card) !important;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}
.modal-overlay.open .modal.modal-lg {
  width: min(860px, calc(100vw - 36px)) !important;
}
.modal-overlay.open .modal-header,
.modal-overlay.open .modal-footer {
  flex: 0 0 auto !important;
  position: relative !important;
  inset: auto !important;
  z-index: 3 !important;
  background:
    linear-gradient(180deg, rgba(69, 214, 255, 0.035), transparent),
    var(--bg-card) !important;
}
.modal-overlay.open .modal-header {
  padding: 17px 22px !important;
  border-bottom: 1px solid rgba(69, 214, 255, 0.16) !important;
}
.modal-overlay.open .modal-header h3 {
  margin: 0 !important;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary) !important;
  font-size: 16px !important;
  font-weight: 900 !important;
}
.modal-overlay.open .modal-close {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  border-radius: 12px !important;
  background: rgba(148, 163, 184, 0.06) !important;
}
.modal-overlay.open .modal-close:hover {
  border-color: rgba(69, 214, 255, 0.38) !important;
  background: rgba(69, 214, 255, 0.1) !important;
  color: var(--nexora-cyan) !important;
}
.modal-overlay.open .modal-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 18px 22px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.modal-overlay.open .modal-body::-webkit-scrollbar {
  width: 8px;
}
.modal-overlay.open .modal-body::-webkit-scrollbar-track {
  background: transparent;
}
.modal-overlay.open .modal-body::-webkit-scrollbar-thumb {
  background: rgba(69, 214, 255, 0.24);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}
.modal-overlay.open .modal-footer {
  padding: 14px 22px !important;
  border-top: 1px solid rgba(69, 214, 255, 0.16) !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  box-shadow: 0 -18px 40px rgba(5, 12, 28, 0.1);
}
#modal-taskDetail.open .modal {
  width: min(900px, calc(100vw - 36px)) !important;
}
#modal-taskDetail.open #taskDetailBody {
  padding-bottom: 18px !important;
}
#modal-taskDetail.open .comments-section {
  margin-bottom: 6px;
}
[data-theme='light'] .modal-overlay.open .modal {
  background:
    linear-gradient(180deg, rgba(47, 127, 224, 0.04), transparent 90px),
    #ffffff !important;
  border-color: rgba(47, 127, 224, 0.2) !important;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22) !important;
}
[data-theme='light'] .modal-overlay.open .modal-header,
[data-theme='light'] .modal-overlay.open .modal-footer {
  background:
    linear-gradient(180deg, rgba(47, 127, 224, 0.035), transparent),
    #ffffff !important;
}
@media (max-width: 640px) {
  .modal-overlay.open {
    align-items: stretch !important;
    padding: 8px !important;
  }
  .modal-overlay.open .modal,
  .modal-overlay.open .modal.modal-lg,
  #modal-taskDetail.open .modal {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    max-height: calc(100dvh - 16px) !important;
    border-radius: 16px !important;
  }
  .modal-overlay.open .modal-header {
    padding: 14px 15px !important;
  }
  .modal-overlay.open .modal-body {
    padding: 15px !important;
  }
  .modal-overlay.open .modal-footer {
    padding: 12px 15px !important;
  }
}

/* Timeline final override v8660: keep old Gantt look, RTL time, details only on hover */
#page-timeline .timeline-grid {
  direction: ltr !important;
}

#page-timeline .timeline-bar {
  cursor: help !important;
}

#page-timeline .timeline-bar > .timeline-progress-fill {
  inset: 0 0 0 auto !important;
}

#page-timeline .timeline-bar > .timeline-progress-label {
  pointer-events: none;
}

#page-timeline .timeline-activity-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 230px;
  overflow: hidden;
  padding: 0;
  border: 0;
  color: var(--text-primary);
  background: transparent;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.5;
  text-align: right;
  white-space: nowrap;
  cursor: pointer;
}

#page-timeline .timeline-activity-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#page-timeline .timeline-activity-name i {
  flex: 0 0 auto;
  color: var(--nexora-cyan);
}

#page-timeline .timeline-activity-name:hover,
#page-timeline .timeline-activity-name:focus-visible {
  color: var(--nexora-cyan);
}

#page-timeline .timeline-row-label small,
#page-timeline .timeline-row-label em,
#page-timeline .timeline-row-edit {
  display: none !important;
}

.timeline-floating-tooltip.show {
  display: block !important;
  animation: timelineTooltipSoftInFinal 0.18s ease both;
}

@keyframes timelineTooltipSoftInFinal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Timeline completion control + light progress text v8673 */
[data-theme='light'] #page-timeline .timeline-bar > .timeline-progress-label {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(24, 54, 88, 0.42) !important;
}

#modal-projectTimelineActivity .ptl-manual-complete {
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: flex-start !important;
  border-color: rgba(16, 217, 160, 0.24) !important;
  background:
    linear-gradient(135deg, rgba(16, 217, 160, 0.12), rgba(69, 214, 255, 0.075)) !important;
}

#modal-projectTimelineActivity .ptl-manual-complete input {
  margin-top: 5px;
}

#modal-projectTimelineActivity .ptl-manual-complete span {
  display: grid;
  gap: 3px;
}

#modal-projectTimelineActivity .ptl-manual-complete b {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 950;
}

#modal-projectTimelineActivity .ptl-manual-complete small {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.6;
}

[data-theme='light'] #modal-projectTimelineActivity .ptl-manual-complete {
  border-color: rgba(7, 148, 115, 0.24) !important;
  background:
    linear-gradient(135deg, rgba(16, 217, 160, 0.14), rgba(45, 214, 255, 0.12)) !important;
}

/* Timeline light theme final polish v8672 */
[data-theme='light'] #page-timeline .timeline-gantt-scroll {
  border-color: rgba(38, 182, 224, 0.26) !important;
  background: #f4fbff !important;
}

[data-theme='light'] #page-timeline .timeline-grid {
  background: #f4fbff !important;
}

[data-theme='light'] #page-timeline .timeline-project-strip {
  border-color: rgba(38, 182, 224, 0.2) !important;
  color: #17304f !important;
  background:
    linear-gradient(180deg, rgba(223, 247, 253, 0.95), rgba(246, 253, 255, 0.98)) !important;
}

[data-theme='light'] #page-timeline .timeline-project-strip strong {
  color: #183758 !important;
}

[data-theme='light'] #page-timeline .timeline-project-strip span {
  color: #6c8199 !important;
}

[data-theme='light'] #page-timeline .timeline-tick,
[data-theme='light'] #page-timeline .timeline-label-head {
  border-color: rgba(38, 182, 224, 0.2) !important;
  color: #48627e !important;
  background:
    linear-gradient(180deg, #eef9fd, #e6f5fb) !important;
  text-shadow: none !important;
}

[data-theme='light'] #page-timeline .timeline-label-head {
  color: #17304f !important;
  box-shadow:
    -14px 0 24px rgba(85, 131, 164, 0.18),
    0 8px 16px rgba(85, 131, 164, 0.1),
    -1px 0 0 rgba(38, 182, 224, 0.24) inset !important;
}

[data-theme='light'] #page-timeline .timeline-row {
  border-bottom-color: rgba(38, 182, 224, 0.16) !important;
}

[data-theme='light'] #page-timeline .timeline-row-activity {
  background: rgba(244, 251, 255, 0.82) !important;
}

[data-theme='light'] #page-timeline .timeline-row-track {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(38, 182, 224, 0.13) 0,
      rgba(38, 182, 224, 0.13) 1px,
      transparent 1px,
      transparent 64px
    ),
    linear-gradient(180deg, #f6fdff, #edf8fd) !important;
}

[data-theme='light'] #page-timeline .timeline-row-label {
  border-color: rgba(38, 182, 224, 0.2) !important;
  color: #17304f !important;
  background:
    linear-gradient(90deg, rgba(228, 248, 253, 0.94), #f8fdff 24%, #f8fdff 100%) !important;
  box-shadow:
    -14px 0 26px rgba(85, 131, 164, 0.2),
    -1px 0 0 rgba(38, 182, 224, 0.22) inset !important;
}

[data-theme='light'] #page-timeline .timeline-row-label::before {
  background:
    linear-gradient(135deg, rgba(33, 201, 242, 0.11), transparent 58%),
    #f8fdff !important;
}

[data-theme='light'] #page-timeline .timeline-row-label .timeline-activity-name {
  color: #153455 !important;
}

[data-theme='light'] #page-timeline .timeline-row-label .timeline-activity-name:hover,
[data-theme='light'] #page-timeline .timeline-row-label .timeline-activity-name:focus-visible {
  color: #068fbd !important;
}

[data-theme='light'] #page-timeline .timeline-row-label i {
  color: #11bde8 !important;
}

[data-theme='light'] #page-timeline .timeline-bar {
  border-color: rgba(20, 170, 215, 0.42) !important;
  color: #17304f !important;
  background: rgba(190, 239, 249, 0.72) !important;
  box-shadow: 0 12px 28px rgba(55, 125, 160, 0.12) !important;
}

[data-theme='light'] #page-timeline .timeline-bar > .timeline-progress-label {
  color: #17304f !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.58) !important;
}

[data-theme='light'] #page-timeline .timeline-bar.is-critical > .timeline-progress-label {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(110, 30, 20, 0.38) !important;
}

/* Timeline sticky header + split hover behavior v8666 */
#page-timeline .timeline-tick {
  z-index: 220 !important;
  background: #0b1c34 !important;
}

#page-timeline .timeline-label-head {
  position: sticky !important;
  top: 0 !important;
  right: 0 !important;
  z-index: 260 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  background: #0b1c34 !important;
  box-shadow:
    -16px 0 28px rgba(5, 12, 28, 0.52),
    0 10px 18px rgba(5, 12, 28, 0.34) !important;
}

#page-timeline .timeline-row,
#page-timeline .timeline-row:hover {
  z-index: 1 !important;
}

#page-timeline .timeline-row-label {
  position: relative;
  z-index: 2 !important;
  overflow: hidden !important;
}

#page-timeline .timeline-row-label > div {
  min-width: 0 !important;
}

#page-timeline .timeline-bar {
  z-index: 3 !important;
  overflow: hidden !important;
}

#page-timeline .timeline-bar:hover {
  z-index: 4 !important;
}

#page-timeline .timeline-bar > .timeline-progress-fill {
  right: 0 !important;
  left: auto !important;
  width: var(--timeline-progress, auto);
  transform-origin: right center !important;
  background: linear-gradient(270deg, var(--nexora-cyan), var(--nexora-purple)) !important;
}

#page-timeline .timeline-bar.is-critical > .timeline-progress-fill {
  background: linear-gradient(270deg, #ef4444, #f97316) !important;
}

#page-timeline .timeline-floating-tooltip .gantt-tooltip-actions {
  display: none !important;
}

#page-timeline .timeline-floating-tooltip .is-description-only .gantt-tooltip-details {
  margin-top: 10px !important;
}

/* Timeline activity delete action v8667 */
#modal-projectTimelineActivity .modal-footer {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

#modal-projectTimelineActivity .ptl-footer-spacer {
  flex: 1 1 auto !important;
}

#modal-projectTimelineActivity .ptl-delete-activity-btn {
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 46px !important;
  padding: 0 18px !important;
  border: 1px solid rgba(239, 68, 68, 0.34) !important;
  border-radius: 12px !important;
  color: #fecaca !important;
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(127, 29, 29, 0.18)) !important;
  box-shadow: 0 14px 28px rgba(127, 29, 29, 0.18) !important;
  font-family: var(--font, 'Cairo', sans-serif) !important;
  font-weight: 950 !important;
  cursor: pointer !important;
}

#modal-projectTimelineActivity .ptl-delete-activity-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(248, 113, 113, 0.6) !important;
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.32), rgba(127, 29, 29, 0.24)) !important;
}

/* Timeline tooltip visibility fix v8668 */
.timeline-floating-tooltip .gantt-tooltip-anchor {
  display: block !important;
}

.timeline-floating-tooltip .is-description-only {
  min-width: 280px;
}

.timeline-floating-tooltip .is-description-only .gantt-tooltip-actions,
.timeline-floating-tooltip .is-description-only .gantt-tooltip-tasks,
.timeline-floating-tooltip .is-description-only .gantt-tooltip-grid,
.timeline-floating-tooltip .is-description-only .gantt-tooltip-people {
  display: none !important;
}

.timeline-floating-tooltip .is-description-only .gantt-tooltip-details {
  display: grid !important;
  margin-top: 10px !important;
}

.timeline-floating-tooltip .is-description-only .gantt-tooltip-empty {
  display: block !important;
  padding: 10px 12px;
  border: 1px dashed rgba(69, 214, 255, 0.2);
  border-radius: 10px;
  background: rgba(69, 214, 255, 0.045);
}

/* Timeline tooltip readability v8669 */
.timeline-floating-tooltip {
  border-color: rgba(69, 214, 255, 0.44) !important;
  color: #edf6ff !important;
  background:
    linear-gradient(135deg, rgba(25, 48, 89, 0.98), rgba(8, 18, 38, 0.98)) !important;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(69, 214, 255, 0.12) inset !important;
  backdrop-filter: blur(10px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.2) !important;
}

.timeline-floating-tooltip .gantt-tooltip-head,
.timeline-floating-tooltip .gantt-tooltip-title,
.timeline-floating-tooltip .gantt-tooltip-range,
.timeline-floating-tooltip .gantt-tooltip-details,
.timeline-floating-tooltip .gantt-tooltip-tasks,
.timeline-floating-tooltip .gantt-tooltip-grid {
  position: relative;
  z-index: 1;
}

.timeline-floating-tooltip .gantt-tooltip-title,
.timeline-floating-tooltip strong {
  color: #f8fbff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.timeline-floating-tooltip .gantt-tooltip-range,
.timeline-floating-tooltip span,
.timeline-floating-tooltip p,
.timeline-floating-tooltip li {
  color: #c8d7f2 !important;
}

.timeline-floating-tooltip .gantt-tooltip-details li,
.timeline-floating-tooltip .gantt-tooltip-tasks li,
.timeline-floating-tooltip .is-description-only .gantt-tooltip-empty {
  border-color: rgba(94, 223, 255, 0.22) !important;
  background: rgba(6, 16, 35, 0.74) !important;
}

.timeline-floating-tooltip .gantt-tooltip-head em {
  color: #ffd166 !important;
  background: rgba(251, 191, 36, 0.17) !important;
}

/* Timeline sticky activity column v8670 */
#page-timeline .timeline-gantt-scroll {
  position: relative !important;
}

#page-timeline .timeline-row-label {
  position: sticky !important;
  right: 0 !important;
  z-index: 230 !important;
  background:
    linear-gradient(90deg, rgba(8, 18, 38, 0.78), #0b1c34 22%, #0b1c34 100%) !important;
  box-shadow:
    -18px 0 32px rgba(5, 12, 28, 0.62),
    -1px 0 0 rgba(69, 214, 255, 0.18) inset !important;
}

#page-timeline .timeline-row-label::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.055), transparent 58%),
    #0b1c34;
}

#page-timeline .timeline-label-head {
  z-index: 270 !important;
  box-shadow:
    -20px 0 34px rgba(5, 12, 28, 0.68),
    0 10px 18px rgba(5, 12, 28, 0.34),
    -1px 0 0 rgba(69, 214, 255, 0.2) inset !important;
}

#page-timeline .timeline-row-track {
  z-index: 0 !important;
}

#page-timeline .timeline-bar {
  z-index: 4 !important;
}

#page-timeline .timeline-row-label .timeline-activity-name {
  position: relative;
  z-index: 2;
}

/* Timeline sticky activity column light mode v8671 */
[data-theme='light'] #page-timeline .timeline-row-label {
  color: #17304f !important;
  background:
    linear-gradient(90deg, rgba(226, 246, 252, 0.88), #f7fdff 22%, #f7fdff 100%) !important;
  box-shadow:
    -16px 0 30px rgba(95, 132, 160, 0.22),
    -1px 0 0 rgba(45, 183, 224, 0.24) inset !important;
}

[data-theme='light'] #page-timeline .timeline-row-label::before {
  background:
    linear-gradient(135deg, rgba(45, 214, 255, 0.13), transparent 58%),
    #f7fdff !important;
}

[data-theme='light'] #page-timeline .timeline-label-head {
  color: #17304f !important;
  background: #f7fdff !important;
  box-shadow:
    -16px 0 30px rgba(95, 132, 160, 0.22),
    0 8px 18px rgba(95, 132, 160, 0.12),
    -1px 0 0 rgba(45, 183, 224, 0.24) inset !important;
}

[data-theme='light'] #page-timeline .timeline-row-label .timeline-activity-name {
  color: #12365c !important;
}

[data-theme='light'] #page-timeline .timeline-row-label .timeline-activity-name:hover,
[data-theme='light'] #page-timeline .timeline-row-label .timeline-activity-name:focus-visible {
  color: #0894c7 !important;
}

[data-theme='light'] #page-timeline .timeline-row-label i {
  color: #13bde8 !important;
}

.timeline-archive-actions .timeline-danger {
  border-color: rgba(239, 68, 68, 0.28) !important;
  color: #ff8a8a !important;
  background: rgba(239, 68, 68, 0.08) !important;
}

.timeline-archive-actions .timeline-danger:hover {
  border-color: rgba(239, 68, 68, 0.45) !important;
  color: #fff !important;
  background: rgba(239, 68, 68, 0.18) !important;
}

.timeline-plan-card {
  border-color: rgba(69, 214, 255, 0.18);
}

.timeline-plan-activities {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.timeline-plan-activity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(69, 214, 255, 0.12);
  border-radius: 12px;
  background: rgba(69, 214, 255, 0.045);
}

.timeline-plan-activity > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-plan-activity > span i {
  color: var(--nexora-cyan);
}

.timeline-plan-activity > div {
  display: flex;
  gap: 6px;
}

.ptl-danger-zone {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.06);
}

.ptl-danger-zone button {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 12px;
  color: #ff8a8a;
  background: rgba(239, 68, 68, 0.08);
  font-family: var(--font);
  font-weight: 900;
  cursor: pointer;
}

.ptl-danger-zone button:hover {
  color: #fff;
  background: rgba(239, 68, 68, 0.18);
}

/* Timeline CSV activity display v8664 */
#page-timeline .timeline-row-label {
  overflow: hidden !important;
  justify-content: flex-start !important;
}

#page-timeline .timeline-row-label > div {
  min-width: 0;
  max-width: 100%;
}

#page-timeline .timeline-row-label small,
#page-timeline .timeline-row-label em,
#page-timeline .timeline-row-edit {
  display: none !important;
}

#page-timeline .timeline-activity-name {
  max-width: 100% !important;
}

#page-timeline .timeline-activity-name .gantt-tooltip-anchor {
  display: none !important;
}

.timeline-floating-tooltip {
  width: min(460px, calc(100vw - 28px));
  pointer-events: auto;
}

.timeline-floating-tooltip .gantt-tooltip-title {
  margin: 2px 0 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.6;
}

.timeline-floating-tooltip .gantt-tooltip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.timeline-floating-tooltip .gantt-tooltip-actions button {
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid rgba(69, 214, 255, 0.2);
  border-radius: 10px;
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.08);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.timeline-floating-tooltip .gantt-tooltip-actions button:hover {
  background: rgba(69, 214, 255, 0.15);
}

.timeline-floating-tooltip .gantt-tooltip-details {
  display: grid;
  gap: 7px;
  margin: 10px 0;
  padding: 0;
  list-style: none;
}

.timeline-floating-tooltip .gantt-tooltip-details li {
  padding: 7px 10px;
  border: 1px solid rgba(69, 214, 255, 0.11);
  border-radius: 10px;
  color: var(--text-secondary);
  background: rgba(69, 214, 255, 0.045);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.65;
}

.timeline-floating-tooltip .gantt-tooltip-empty {
  margin: 10px 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

/* Timeline hard cleanup v8665 */
#page-timeline .timeline-row-label {
  min-height: 84px !important;
  max-height: 84px !important;
}

#page-timeline .timeline-row-label > div {
  display: flex !important;
  align-items: center !important;
  min-height: 0 !important;
}

#page-timeline .timeline-activity-name {
  height: auto !important;
  max-height: 40px !important;
  overflow: hidden !important;
}

#page-timeline .timeline-activity-name::after,
#page-timeline .timeline-activity-name ul,
#page-timeline .timeline-activity-name p,
#page-timeline .timeline-activity-name h4,
#page-timeline .timeline-activity-name .gantt-tooltip-anchor,
#page-timeline .timeline-activity-name .gantt-tooltip-details,
#page-timeline .timeline-activity-name .gantt-tooltip-actions,
#page-timeline .timeline-activity-name .gantt-tooltip-tasks {
  display: none !important;
}

/* Timeline final cleanup v8660: old look, RTL time, task details only in tooltip */
#page-timeline .timeline-grid {
  direction: ltr;
}

#page-timeline .timeline-bar {
  cursor: help;
}

#page-timeline .timeline-bar > .timeline-progress-fill {
  inset: 0 0 0 auto;
}

#page-timeline .timeline-bar > .timeline-progress-label {
  pointer-events: none;
}

#page-timeline .timeline-activity-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 230px;
  overflow: hidden;
  padding: 0;
  border: 0;
  color: var(--text-primary);
  background: transparent;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.5;
  text-align: right;
  white-space: nowrap;
  cursor: pointer;
}

#page-timeline .timeline-activity-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#page-timeline .timeline-activity-name i {
  flex: 0 0 auto;
  color: var(--nexora-cyan);
}

#page-timeline .timeline-activity-name:hover,
#page-timeline .timeline-activity-name:focus-visible {
  color: var(--nexora-cyan);
}

.timeline-floating-tooltip.show {
  display: block;
  animation: timelineTooltipSoftIn 0.18s ease both;
}

@keyframes timelineTooltipSoftIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Toast placement: keep side notifications away from the right sidebar */
.toast-container {
  left: 24px !important;
  right: auto !important;
  align-items: flex-start;
}
.notif-toast {
  transform: translateX(-20px) !important;
}
.notif-toast.show {
  transform: translateX(0) !important;
}
@media (max-width: 640px) {
  .toast-container {
    left: 12px !important;
    right: 12px !important;
    bottom: 14px;
    max-width: none;
  }
  .notif-toast {
    width: 100%;
    min-width: 0;
  }
}

/* Project timeline import and approved activity plan */
.ptl-section {
  overflow: hidden;
}
.ptl-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.ptl-section-head small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}
.ptl-actions button,
.ptl-import-mode select {
  min-height: 40px;
  border: 1px solid rgba(69, 214, 255, 0.28);
  border-radius: 12px;
  color: var(--text-primary);
  background: rgba(69, 214, 255, 0.09);
  font-family: var(--font);
  font-weight: 900;
}
.ptl-actions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  cursor: pointer;
}
.ptl-stats,
.ptl-import-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 13px;
}
.ptl-stats span,
.ptl-import-summary > div {
  padding: 11px 12px;
  border: 1px solid rgba(69, 214, 255, 0.16);
  border-radius: 13px;
  color: var(--text-secondary);
  background: rgba(69, 214, 255, 0.045);
  font-size: 12px;
  font-weight: 850;
}
.ptl-stats b,
.ptl-import-summary b {
  margin-left: 6px;
  color: var(--nexora-cyan);
  font-size: 16px;
}
.ptl-list,
.ptl-import-table {
  display: grid;
  gap: 10px;
}
.ptl-item {
  padding: 14px;
  border: 1px solid rgba(69, 214, 255, 0.14);
  border-radius: 14px;
  background: var(--bg-card);
}
.ptl-item.is-critical {
  border-color: rgba(239, 68, 68, 0.28);
  box-shadow: inset 3px 0 0 #ef4444;
}
.ptl-item-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.ptl-code {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.1);
  font-size: 11px;
  font-weight: 950;
}
.ptl-item-head strong {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 950;
}
.ptl-date,
.ptl-meta,
.ptl-deliverables {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}
.ptl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}
.ptl-meta > span,
.ptl-badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.09);
}
.ptl-badge.danger {
  color: #fb7185;
  background: rgba(251, 113, 133, 0.1);
}
.ptl-badge.approval {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
}
.ptl-badge.locked {
  color: #a86cf6;
  background: rgba(168, 108, 246, 0.12);
}
.ptl-item p {
  margin: 10px 0 0;
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 13px;
}
.ptl-deliverables {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  color: var(--nexora-cyan);
}
.ptl-progress {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.ptl-progress span {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 950;
}
.ptl-progress div {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(69, 214, 255, 0.1);
}
.ptl-progress em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--nexora-cyan), var(--nexora-purple));
}
.ptl-mini-gantt {
  display: grid;
  gap: 10px;
}
.ptl-mini-row {
  display: grid;
  grid-template-columns: minmax(150px, 230px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(69, 214, 255, 0.12);
  border-radius: 13px;
  background: rgba(69, 214, 255, 0.04);
}
.ptl-mini-label strong {
  display: block;
  overflow: hidden;
  color: var(--text-primary);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 950;
}
.ptl-mini-label span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 850;
}
.ptl-mini-track {
  position: relative;
  height: 18px;
  overflow: hidden;
  border-radius: 999px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(69, 214, 255, 0.16) 0,
      rgba(69, 214, 255, 0.16) 1px,
      transparent 1px,
      transparent 12.5%
    ),
    rgba(69, 214, 255, 0.08);
}
.ptl-mini-track > span {
  position: absolute;
  top: 4px;
  bottom: 4px;
  overflow: hidden;
  border: 1px solid rgba(69, 214, 255, 0.32);
  border-radius: inherit;
  background: rgba(69, 214, 255, 0.16);
}
.ptl-mini-track em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--nexora-cyan), var(--nexora-purple));
}
.ptl-empty {
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 170px;
  padding: 24px;
  border: 1px dashed rgba(69, 214, 255, 0.25);
  border-radius: 14px;
  color: var(--text-secondary);
  text-align: center;
  background: rgba(69, 214, 255, 0.045);
}
.ptl-empty i {
  color: var(--nexora-cyan);
  font-size: 30px;
}
.ptl-empty strong {
  color: var(--text-primary);
}
.ptl-import-summary > div {
  display: grid;
}
.ptl-import-summary span {
  color: var(--text-muted);
}
.ptl-import-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 12px;
}
.ptl-import-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(69, 214, 255, 0.16);
  border-radius: 999px;
  color: var(--text-secondary);
  background: rgba(69, 214, 255, 0.06);
  font-size: 12px;
  font-weight: 850;
}
.ptl-import-mode {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 900;
}
.ptl-import-mode select {
  padding: 8px 12px;
}
.ptl-import-table {
  max-height: 360px;
  overflow: auto;
  padding-left: 4px;
}
.ptl-import-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 180px 54px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(69, 214, 255, 0.12);
  border-radius: 12px;
  background: var(--bg-card);
}
.ptl-import-row span,
.ptl-import-row em {
  color: var(--nexora-cyan);
  font-style: normal;
  font-weight: 950;
}
.ptl-import-row strong {
  overflow: hidden;
  color: var(--text-primary);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ptl-import-row small {
  color: var(--text-muted);
  font-weight: 800;
}
@media (max-width: 760px) {
  .ptl-section-head,
  .ptl-item-head {
    display: grid;
    grid-template-columns: 1fr;
  }
  .ptl-stats,
  .ptl-import-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ptl-import-row {
    grid-template-columns: 1fr;
  }
}

/* Main project timeline / Gantt page */
.timeline-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(69, 214, 255, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.08), transparent 46%),
    var(--bg-card);
}
.timeline-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--nexora-cyan);
  font-size: 12px;
  font-weight: 900;
}
.timeline-page-head h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 950;
}
.timeline-page-head p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 13px;
  font-weight: 750;
}
.timeline-controls {
  display: grid;
  min-width: min(390px, 100%);
  gap: 10px;
}
.timeline-controls .filter-select {
  width: 100%;
  min-height: 44px;
}
.timeline-zoom-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 6px;
  border: 1px solid rgba(69, 214, 255, 0.14);
  border-radius: 14px;
  background: rgba(5, 12, 28, 0.28);
}
.timeline-zoom-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  color: var(--text-secondary);
  background: transparent;
  font-family: var(--font);
  font-weight: 900;
  cursor: pointer;
}
.timeline-zoom-tabs button.active {
  color: #fff;
  background: var(--nexora-grad);
  box-shadow: 0 10px 24px rgba(69, 214, 255, 0.18);
}
.timeline-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.timeline-summary div {
  padding: 14px;
  border: 1px solid rgba(69, 214, 255, 0.15);
  border-radius: 15px;
  background: var(--bg-card);
}
.timeline-summary b {
  display: block;
  margin-bottom: 3px;
  color: var(--nexora-cyan);
  font-size: 22px;
  font-weight: 950;
}
.timeline-summary span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 850;
}
.timeline-gantt-shell {
  position: relative;
  overflow: visible;
  z-index: 2;
  border: 1px solid rgba(69, 214, 255, 0.16);
  border-radius: 18px;
  background: var(--bg-card);
}
.timeline-project-strip {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(69, 214, 255, 0.14);
  background: rgba(69, 214, 255, 0.045);
}
.timeline-project-strip strong {
  display: block;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 950;
}
.timeline-project-strip span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}
.timeline-project-strip button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(69, 214, 255, 0.24);
  border-radius: 12px;
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.08);
  font-family: var(--font);
  font-weight: 900;
  cursor: pointer;
}
.timeline-project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.timeline-row-edit,
.gantt-tooltip-edit,
.ptl-archive-indicator,
.timeline-archive-top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(69, 214, 255, 0.24);
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.08);
  font-family: var(--font);
  font-weight: 900;
  cursor: pointer;
}
.timeline-row-edit {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.gantt-tooltip-edit {
  width: 100%;
  min-height: 32px;
  margin: 8px 0;
  border-radius: 10px;
  pointer-events: auto;
}
.ptl-archive-indicator {
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
}
.timeline-archive-top-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 12px;
}
.timeline-archive-top-btn span {
  position: absolute;
  top: -7px;
  left: -7px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: #ef4444;
  font-size: 10px;
  line-height: 18px;
}
.timeline-archive-top-btn:not(.has-items) span {
  display: none;
}
.task-timeline-link-box {
  padding: 14px;
  border: 1px solid rgba(69, 214, 255, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.08), transparent 52%),
    rgba(69, 214, 255, 0.035);
}
.task-timeline-link-box label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 900;
}
.task-timeline-link-box label i {
  color: var(--nexora-cyan);
}
.task-timeline-link-box label span,
.task-timeline-link-box small {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}
.task-timeline-link-box select:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}
.task-project-timeline-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: stretch;
}
.task-project-timeline-grid > .form-group {
  min-width: 0;
}
.task-project-timeline-grid .task-timeline-link-box {
  border-color: rgba(69, 214, 255, 0.34);
  box-shadow: 0 12px 28px rgba(69, 214, 255, 0.08);
}
@media (max-width: 900px) {
  .task-project-timeline-grid {
    grid-template-columns: 1fr;
  }
}
.timeline-gantt-scroll {
  position: relative;
  z-index: 5;
  overflow: auto;
  max-height: calc(100dvh - 330px);
  min-height: 360px;
}
.timeline-archive-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: none;
  background: rgba(2, 8, 23, 0.38);
  backdrop-filter: blur(4px);
}
.timeline-archive-panel-overlay.open {
  display: block;
}
.timeline-archive-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(430px, 92vw);
  height: 100%;
  padding: 18px;
  border-right: 1px solid rgba(69, 214, 255, 0.22);
  background: var(--bg-card);
  box-shadow: 20px 0 60px rgba(2, 8, 23, 0.44);
  overflow: auto;
}
.timeline-archive-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.timeline-archive-head strong {
  display: block;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 950;
}
.timeline-archive-head span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}
.timeline-archive-head button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(69, 214, 255, 0.18);
  border-radius: 12px;
  color: var(--text-secondary);
  background: rgba(69, 214, 255, 0.06);
}
.timeline-archive-body {
  display: grid;
  gap: 12px;
}
.timeline-archive-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(69, 214, 255, 0.18);
  border-radius: 14px;
  background: rgba(69, 214, 255, 0.05);
}
.timeline-archive-card strong,
.timeline-archive-card span,
.timeline-archive-card small {
  display: block;
}
.timeline-archive-card strong {
  color: var(--text-primary);
  font-weight: 950;
}
.timeline-archive-card span,
.timeline-archive-card small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}
.timeline-archive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.timeline-archive-actions button {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(69, 214, 255, 0.24);
  border-radius: 10px;
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.08);
  font-family: var(--font);
  font-weight: 900;
}
.timeline-archive-empty {
  padding: 28px 16px;
  border: 1px dashed rgba(69, 214, 255, 0.24);
  border-radius: 16px;
  color: var(--text-muted);
  text-align: center;
}
.timeline-grid {
  display: grid;
  direction: ltr;
  min-width: max-content;
  align-items: stretch;
}
.timeline-tick,
.timeline-label-head {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: 48px;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(69, 214, 255, 0.14);
  border-left: 1px solid rgba(69, 214, 255, 0.1);
  color: var(--text-secondary);
  background: var(--bg-card);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}
.timeline-label-head {
  right: 0;
  z-index: 4;
  direction: rtl;
  color: var(--text-primary);
  background: var(--bg-card-2);
  text-align: right;
}
.timeline-row {
  display: grid;
  grid-column: 1 / -1;
  position: relative;
  z-index: 1;
  min-height: 74px;
  border-bottom: 1px solid rgba(69, 214, 255, 0.1);
}
.timeline-row:hover {
  z-index: 80;
}
.timeline-row-activity {
  min-height: 84px;
  background: rgba(69, 214, 255, 0.035);
}
.timeline-row-task {
  min-height: 62px;
}
.timeline-row-task .timeline-row-label {
  padding-right: 28px;
  background: rgba(5, 12, 28, 0.11);
}
.timeline-row-track {
  grid-row: 1;
  align-self: stretch;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(69, 214, 255, 0.08) 0,
      rgba(69, 214, 255, 0.08) 1px,
      transparent 1px,
      transparent 64px
    ),
    rgba(69, 214, 255, 0.025);
}
.timeline-bar {
  grid-row: 1;
  align-self: center;
  position: relative;
  overflow: hidden;
  min-height: 34px;
  border: 1px solid rgba(69, 214, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(69, 214, 255, 0.18);
  box-shadow: 0 10px 28px rgba(69, 214, 255, 0.12);
  font-family: var(--font);
  font-weight: 950;
  cursor: default;
}
.timeline-row-activity .timeline-bar {
  z-index: 2;
  min-height: 38px;
  border-radius: 13px;
  overflow: visible;
}
.timeline-row-activity .timeline-bar:hover {
  z-index: 120;
}
.timeline-row-task .timeline-bar {
  min-height: 25px;
  opacity: 0.92;
}
.timeline-bar[onclick] {
  cursor: pointer;
}
.timeline-bar > .timeline-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--nexora-cyan), var(--nexora-purple));
}
.timeline-bar > .timeline-progress-label {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 12px;
  text-align: center;
}
.timeline-bar.is-task > .timeline-progress-fill {
  background: linear-gradient(90deg, #10d9a0, #45d6ff);
}
.timeline-bar.is-critical {
  border-color: rgba(239, 68, 68, 0.48);
}
.timeline-bar.is-critical > .timeline-progress-fill {
  background: linear-gradient(90deg, #ef4444, #f97316);
}
.timeline-bar.needs-approval {
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.16);
}
.timeline-row-label i {
  margin-left: 7px;
  color: var(--nexora-cyan);
}
.gantt-tooltip-anchor {
  display: none !important;
}
.timeline-floating-tooltip {
  position: fixed;
  z-index: 1000000;
  display: none;
  width: min(430px, calc(100vw - 28px));
  max-height: min(390px, calc(100vh - 28px));
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(69, 214, 255, 0.28);
  border-radius: 14px;
  color: var(--text-primary);
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.1), transparent 42%),
    var(--bg-card-2);
  box-shadow: 0 28px 70px rgba(2, 8, 23, 0.62);
  text-align: right;
  pointer-events: none;
}
.timeline-floating-tooltip.show {
  display: block;
}
.timeline-floating-tooltip .gantt-tooltip-edit {
  display: none;
}
.gantt-tooltip-head,
.gantt-tooltip-people {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.gantt-tooltip-head em {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 999px;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}
.gantt-tooltip-people {
  justify-content: flex-start;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(69, 214, 255, 0.13);
  border-radius: 10px;
  color: var(--text-secondary);
  background: rgba(69, 214, 255, 0.06);
  font-size: 11px;
  font-weight: 850;
}
.gantt-tooltip-people i,
.gantt-tooltip-tasks li.is-alert i {
  color: #fbbf24;
}
.gantt-tooltip-people b {
  color: var(--nexora-cyan);
}
.timeline-floating-tooltip strong,
.timeline-floating-tooltip span {
  display: block;
}
.timeline-floating-tooltip strong {
  margin-bottom: 4px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 950;
}
.timeline-floating-tooltip span,
.timeline-floating-tooltip p,
.timeline-floating-tooltip li {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
}
.gantt-tooltip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 10px 0;
}
.gantt-tooltip-grid em {
  padding: 7px 5px;
  border-radius: 10px;
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.08);
  font-size: 13px;
  font-style: normal;
  font-weight: 950;
  text-align: center;
}
.gantt-tooltip-grid small {
  display: block;
  color: var(--text-muted);
  font-size: 9px;
}
.timeline-floating-tooltip ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline-floating-tooltip li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid rgba(69, 214, 255, 0.1);
  border-radius: 9px;
  background: rgba(69, 214, 255, 0.05);
}
.timeline-floating-tooltip li.is-alert {
  border-color: rgba(251, 191, 36, 0.22);
  background: rgba(251, 191, 36, 0.08);
}
.timeline-floating-tooltip li span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.timeline-floating-tooltip li small {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
}
.timeline-floating-tooltip li b,
.gantt-tooltip-more {
  color: var(--nexora-cyan) !important;
}
.timeline-row-label {
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-right: 1px solid rgba(69, 214, 255, 0.14);
  direction: rtl;
  background: rgba(5, 12, 28, 0.18);
}
.timeline-row-label strong {
  display: block;
  max-width: 230px;
  overflow: hidden;
  color: var(--text-primary);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 950;
}
.timeline-row-label small,
.timeline-row-label em {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}
.timeline-row-label small {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.timeline-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 320px;
  padding: 28px;
  color: var(--text-secondary);
  text-align: center;
}
.timeline-empty i {
  color: var(--nexora-cyan);
  font-size: 38px;
}
.timeline-empty strong {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 950;
}
.timeline-empty button,
.ptl-activity-form input,
.ptl-activity-form textarea {
  font-family: var(--font);
}
.timeline-empty button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--nexora-grad);
  font-weight: 900;
  cursor: pointer;
}
.ptl-activity-form {
  display: grid;
  gap: 14px;
}
.ptl-activity-form label {
  display: grid;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 900;
}
.ptl-activity-form input,
.ptl-activity-form textarea {
  width: 100%;
  border: 1px solid rgba(69, 214, 255, 0.18);
  border-radius: 12px;
  color: var(--text-primary);
  background: rgba(5, 12, 28, 0.26);
  padding: 11px 12px;
  outline: none;
}
.ptl-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ptl-check {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 9px !important;
  padding: 11px 12px;
  border: 1px solid rgba(69, 214, 255, 0.14);
  border-radius: 12px;
  background: rgba(69, 214, 255, 0.055);
}
.ptl-check input {
  width: auto;
}
.ptl-linked-tasks {
  display: grid;
  gap: 9px;
}
.ptl-linked-tasks strong {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 950;
}
.ptl-linked-tasks > div {
  display: grid;
  max-height: 240px;
  overflow: auto;
  gap: 8px;
  padding-left: 4px;
}
.ptl-task-choice {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid rgba(69, 214, 255, 0.12);
  border-radius: 12px;
  background: rgba(69, 214, 255, 0.045);
}
.ptl-task-choice input {
  width: auto;
}
.ptl-task-choice span {
  overflow: hidden;
  color: var(--text-primary);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ptl-task-choice em {
  color: var(--text-muted);
  font-size: 11px;
  font-style: normal;
}
@media (max-width: 900px) {
  .timeline-page-head {
    display: grid;
  }
  .timeline-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .timeline-summary {
    grid-template-columns: 1fr;
  }
  .ptl-mini-row,
  .ptl-form-grid {
    grid-template-columns: 1fr;
  }
  .timeline-project-strip {
    display: grid;
  }
}

/* Work inbox font consistency */
#page-inbox,
#page-inbox *,
#page-inbox button,
#page-inbox input,
#page-inbox select,
#page-inbox textarea {
  font-family: var(--font, 'Cairo', sans-serif) !important;
  letter-spacing: 0 !important;
}
#page-inbox i,
#page-inbox .fa,
#page-inbox .fa-solid,
#page-inbox .fa-regular {
  font-family: 'Font Awesome 6 Free' !important;
}
#page-inbox .inbox-item-head strong,
#page-inbox .inbox-hero h2,
#page-inbox .inbox-side-card h3,
#page-inbox .inbox-tabs button,
#page-inbox .inbox-item-action,
#page-inbox .inbox-refresh-btn,
#page-inbox .inbox-stat-card strong,
#page-inbox .inbox-stat-card span,
#page-inbox .inbox-item-meta span,
#page-inbox #inboxPriorityFilter {
  font-family: var(--font, 'Cairo', sans-serif) !important;
}

/* Smart notification center */
#page-notifications,
#page-notifications *,
.notif-filter-tabs,
.notif-filter-tabs *,
.notification-center-tabs,
.notification-center-tabs * {
  font-family: var(--font, 'Cairo', sans-serif) !important;
  letter-spacing: 0 !important;
}
#page-notifications i,
#page-notifications .fa-solid,
#page-notifications .fa-regular {
  font-family: 'Font Awesome 6 Free' !important;
}
.notif-filter-tabs,
.notification-center-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(69, 214, 255, 0.12);
}
.notif-filter-tabs button,
.notification-center-tabs button {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(69, 214, 255, 0.14);
  border-radius: 999px;
  color: var(--text-secondary);
  background: rgba(69, 214, 255, 0.055);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.notif-filter-tabs button.active,
.notification-center-tabs button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--nexora-cyan), var(--nexora-purple));
}
.notification-center-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 24px;
  border: 1px solid rgba(69, 214, 255, 0.2);
  border-radius: 20px;
  background:
    radial-gradient(circle at 10% 0%, rgba(69, 214, 255, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(69, 214, 255, 0.08), rgba(124, 92, 255, 0.08)),
    var(--bg-card);
}
.notification-center-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--nexora-cyan);
  font-size: 12px;
  font-weight: 950;
}
.notification-center-hero h2 {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: 26px;
  font-weight: 950;
}
.notification-center-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.8;
}
.notification-center-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}
.notification-center-actions button,
.notif-center-actions-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid rgba(69, 214, 255, 0.24);
  border-radius: 12px;
  color: var(--text-primary);
  background: rgba(69, 214, 255, 0.08);
  font-weight: 900;
  cursor: pointer;
}
.notification-center-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.notification-center-stats > div {
  padding: 16px;
  border: 1px solid rgba(69, 214, 255, 0.14);
  border-radius: 16px;
  background: var(--bg-card);
}
.notification-center-stats strong {
  display: block;
  color: var(--nexora-cyan);
  font-size: 28px;
  line-height: 1;
}
.notification-center-stats span {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 850;
}
.notification-center-list {
  display: grid;
  gap: 11px;
  margin-top: 14px;
}
.notif-center-card {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px;
  border: 1px solid rgba(69, 214, 255, 0.14);
  border-radius: 17px;
  background: var(--bg-card);
}
.notif-center-card.unread {
  border-color: rgba(69, 214, 255, 0.36);
  box-shadow: inset 3px 0 0 var(--nexora-cyan);
}
.notif-center-card.urgent {
  border-color: rgba(239, 68, 68, 0.38);
}
.notif-center-icon {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--notif-color, var(--nexora-cyan));
  background: color-mix(in srgb, var(--notif-color, var(--nexora-cyan)) 14%, transparent);
}
.notif-center-body {
  min-width: 0;
}
.notif-center-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 5px;
}
.notif-center-head strong {
  color: var(--text-primary);
  font-weight: 950;
}
.notif-center-head span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.1);
  font-size: 11px;
  font-weight: 900;
}
.notif-center-body p {
  margin: 0 0 7px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.notif-center-body small {
  color: var(--text-muted);
  font-weight: 800;
}
.notif-center-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}
.notif-center-actions-row .notif-action-btn {
  position: relative;
  min-width: 92px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}
.notif-center-actions-row .notif-action-btn i {
  font-size: 13px;
  line-height: 1;
}
.notif-center-actions-row .notif-action-btn.open {
  color: var(--nexora-cyan);
  border-color: rgba(69, 214, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.14), rgba(47, 127, 224, 0.08)),
    var(--bg-card);
}
.notif-center-actions-row .notif-action-btn.read {
  color: #10d9a0;
  border-color: rgba(16, 217, 160, 0.3);
  background:
    linear-gradient(135deg, rgba(16, 217, 160, 0.13), rgba(69, 214, 255, 0.06)),
    var(--bg-card);
}
.notif-center-actions-row .notif-action-btn.read.is-read {
  color: var(--text-secondary);
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(148, 163, 184, 0.08);
}
.notif-center-actions-row .notif-action-btn.danger {
  min-width: 44px;
  width: 44px;
  padding-inline: 0;
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.28);
  background:
    linear-gradient(135deg, rgba(251, 113, 133, 0.12), rgba(239, 68, 68, 0.05)),
    var(--bg-card);
}
.notif-center-actions-row .notif-action-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(69, 214, 255, 0.52);
  background: rgba(69, 214, 255, 0.14);
}
[data-theme='light'] .notif-center-actions-row .notif-action-btn {
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}
[data-theme='light'] .notif-center-actions-row .notif-action-btn.open {
  background: #ecfbff;
}
[data-theme='light'] .notif-center-actions-row .notif-action-btn.read {
  background: #ecfff8;
}
[data-theme='light'] .notif-center-actions-row .notif-action-btn.read.is-read {
  background: #f6f8fb;
}
[data-theme='light'] .notif-center-actions-row .notif-action-btn.danger {
  background: #fff1f4;
}
.notif-center-empty {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 30px;
  border: 1px dashed rgba(69, 214, 255, 0.22);
  border-radius: 18px;
  color: var(--text-secondary);
  text-align: center;
  background: rgba(69, 214, 255, 0.04);
}
.notif-center-empty i {
  margin-bottom: 10px;
  color: var(--success);
  font-size: 34px;
}
.notif-center-empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text-primary);
}
@media (max-width: 760px) {
  .notification-center-hero,
  .notification-center-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .notification-center-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .notif-center-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .notif-center-actions-row {
    grid-column: 1 / -1;
    width: 100%;
  }
  .notif-center-actions-row button {
    flex: 1;
  }
}

/* Operations command center */
#page-operations,
#page-operations *,
#page-operations button,
#page-operations select {
  font-family: var(--font, 'Cairo', sans-serif) !important;
  letter-spacing: 0 !important;
}
#page-operations i,
#page-operations .fa-solid,
#page-operations .fa-regular {
  font-family: 'Font Awesome 6 Free' !important;
}
.ops-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(69, 214, 255, 0.2);
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 5%, rgba(69, 214, 255, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(69, 214, 255, 0.08), rgba(16, 185, 129, 0.08)),
    var(--bg-card);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.22);
}
.ops-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--nexora-cyan);
  font-size: 12px;
  font-weight: 950;
}
.ops-hero h2 {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: 27px;
  font-weight: 950;
}
.ops-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.85;
}
.ops-hero-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
}
.ops-hero-actions span {
  padding: 7px 12px;
  border: 1px solid rgba(69, 214, 255, 0.22);
  border-radius: 999px;
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
}
.ops-refresh-btn,
.ops-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(69, 214, 255, 0.26);
  border-radius: 13px;
  color: var(--text-primary);
  background: rgba(69, 214, 255, 0.09);
  font-weight: 950;
  cursor: pointer;
  transition: 0.18s ease;
}
.ops-refresh-btn:hover,
.ops-action-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(69, 214, 255, 0.5);
  background: rgba(69, 214, 255, 0.15);
}
.action-card-buttons {
  display: inline-grid;
  gap: 8px;
  justify-items: stretch;
}
.action-read-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  color: var(--text-secondary);
  background: rgba(148, 163, 184, 0.06);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.18s ease;
}
.action-read-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(16, 185, 129, 0.38);
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
}
.ops-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.ops-metric-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 17px;
  background: rgba(15, 23, 42, 0.34);
}
.ops-metric-card > i {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: #fff;
}
.ops-metric-card.danger > i {
  background: linear-gradient(135deg, #fb7185, #f97316);
}
.ops-metric-card.overdue > i {
  background: linear-gradient(135deg, #f97316, #eab308);
}
.ops-metric-card.review > i {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
}
.ops-metric-card.projects > i {
  background: linear-gradient(135deg, #10b981, #06b6d4);
}
.ops-metric-card strong {
  display: block;
  color: var(--text-primary);
  font-size: 28px;
  line-height: 1;
}
.ops-metric-card span {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 850;
}
.ops-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.ops-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(69, 214, 255, 0.16);
  border-radius: 15px;
  background: rgba(15, 23, 42, 0.28);
}
.ops-tabs button {
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  border-radius: 11px;
  color: var(--text-secondary);
  background: transparent;
  font-weight: 950;
  cursor: pointer;
}
.ops-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--nexora-cyan), var(--nexora-purple));
  box-shadow: 0 10px 22px rgba(69, 214, 255, 0.18);
}
.ops-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}
.ops-main-column,
.ops-side-column {
  display: grid;
  gap: 16px;
}
.ops-side-column {
  position: sticky;
  top: 88px;
}
.ops-panel {
  border: 1px solid rgba(69, 214, 255, 0.16);
  border-radius: 18px;
  background: var(--bg-card);
  overflow: hidden;
}
.ops-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 16px;
  border-bottom: 1px solid rgba(69, 214, 255, 0.14);
}
.ops-panel-head h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 950;
}
.ops-panel-head h3 i {
  color: var(--nexora-cyan);
}
.ops-panel-head > span {
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.1);
  font-weight: 950;
}
.ops-risk-list,
.ops-team-list,
.ops-project-list,
.ops-recommendations {
  display: grid;
  gap: 10px;
  padding: 14px;
}
.ops-flow-panel {
  border-color: rgba(69, 214, 255, 0.24);
}
.ops-flow-head {
  align-items: center;
}
.ops-flow-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ops-flow-tools .filter-select {
  min-width: 170px;
}
.ops-flow-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 14px 14px 0;
}
.ops-flow-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid rgba(69, 214, 255, 0.2);
  border-radius: 999px;
  color: var(--text-primary);
  background: rgba(69, 214, 255, 0.075);
  font-weight: 900;
  cursor: pointer;
}
.ops-flow-chip strong {
  color: var(--nexora-cyan);
}
.ops-flow-chip-overdue {
  border-color: rgba(251, 113, 133, 0.34);
  background: rgba(251, 113, 133, 0.1);
}
.ops-flow-chip-overdue strong {
  color: #fb7185;
}
.ops-flow-list {
  display: grid;
  gap: 12px;
  padding: 14px;
}
.ops-flow-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid rgba(69, 214, 255, 0.18);
  border-radius: 17px;
  background:
    linear-gradient(90deg, rgba(69, 214, 255, 0.07), transparent 42%),
    rgba(9, 24, 44, 0.46);
}
.ops-flow-overdue {
  border-color: rgba(251, 113, 133, 0.42);
  background:
    linear-gradient(90deg, rgba(251, 113, 133, 0.1), transparent 42%),
    rgba(9, 24, 44, 0.46);
}
.ops-flow-review {
  border-color: rgba(168, 108, 246, 0.36);
}
.ops-flow-ready {
  border-color: rgba(16, 217, 160, 0.3);
}
.ops-flow-rail {
  display: grid;
  grid-template-rows: 30px 1fr 24px;
  justify-items: center;
  align-items: center;
  color: var(--nexora-cyan);
  font-weight: 950;
}
.ops-flow-rail span,
.ops-flow-rail em {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(69, 214, 255, 0.12);
  font-style: normal;
}
.ops-flow-rail i {
  width: 2px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--nexora-cyan), rgba(168, 108, 246, 0.2));
}
.ops-flow-main {
  min-width: 0;
}
.ops-flow-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.ops-flow-title strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ops-flow-title span {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.11);
  font-size: 11px;
  font-weight: 950;
}
.ops-flow-overdue .ops-flow-title span {
  color: #fb7185;
  background: rgba(251, 113, 133, 0.12);
}
.ops-flow-assignee {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.ops-flow-assignee b {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 950;
}
.ops-flow-assignee small {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 850;
}
.ops-flow-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}
.ops-flow-meta em {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 999px;
  color: var(--text-secondary);
  background: rgba(148, 163, 184, 0.055);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}
.ops-flow-meta i {
  color: var(--nexora-cyan);
}
.ops-flow-delay {
  color: #fb7185 !important;
  border-color: rgba(251, 113, 133, 0.3) !important;
  background: rgba(251, 113, 133, 0.1) !important;
}
.ops-flow-progress {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
}
.ops-flow-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--nexora-cyan), var(--nexora-purple));
}
.ops-flow-progress span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 9px;
  font-weight: 950;
}
.ops-flow-main p {
  margin: 9px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.65;
}
.ops-flow-actions {
  display: inline-grid;
  gap: 8px;
  align-content: center;
}
.ops-flow-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(69, 214, 255, 0.28);
  border-radius: 12px;
  color: var(--text-primary);
  background: rgba(69, 214, 255, 0.1);
  font-weight: 950;
  cursor: pointer;
}
.ops-flow-actions button.ghost {
  color: var(--text-secondary);
  background: rgba(148, 163, 184, 0.065);
  border-color: rgba(148, 163, 184, 0.16);
}
.ops-flow-actions button:hover {
  transform: translateY(-1px);
  border-color: rgba(69, 214, 255, 0.52);
}
.ops-risk-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(69, 214, 255, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(69, 214, 255, 0.055), transparent 34%),
    rgba(9, 24, 44, 0.42);
}
.ops-risk-critical {
  border-color: rgba(251, 113, 133, 0.36);
}
.ops-risk-high {
  border-color: rgba(69, 214, 255, 0.34);
}
.ops-risk-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.1);
}
.ops-risk-critical .ops-risk-icon {
  color: #fb7185;
  background: rgba(251, 113, 133, 0.12);
}
.ops-risk-main {
  min-width: 0;
}
.ops-risk-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.ops-risk-head strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ops-risk-head span {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.1);
  font-size: 11px;
  font-weight: 950;
}
.ops-risk-critical .ops-risk-head span {
  color: #fb7185;
  background: rgba(251, 113, 133, 0.12);
}
.ops-risk-main p {
  margin: 0 0 8px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.ops-risk-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.ops-risk-meta em {
  padding: 5px 9px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(148, 163, 184, 0.055);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}
.ops-team-row,
.ops-project-row {
  width: 100%;
  display: grid;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(69, 214, 255, 0.14);
  border-radius: 14px;
  color: var(--text-primary);
  background: rgba(9, 24, 44, 0.38);
  cursor: pointer;
  text-align: start;
}
.ops-team-row {
  grid-template-columns: 42px minmax(0, 1fr) 52px;
  padding: 11px;
}
.ops-project-row {
  grid-template-columns: minmax(0, 1fr) 50px;
  padding: 12px;
}
.ops-team-row:hover,
.ops-project-row:hover {
  border-color: rgba(69, 214, 255, 0.42);
  background: rgba(69, 214, 255, 0.08);
}
.ops-avatar {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--nexora-cyan), var(--nexora-purple));
  font-weight: 950;
}
.ops-team-main,
.ops-project-row span {
  min-width: 0;
}
.ops-team-main strong,
.ops-project-row strong {
  display: block;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ops-team-main small,
.ops-project-row small {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}
.ops-team-score,
.ops-project-row em {
  color: var(--nexora-cyan);
  font-size: 13px;
  font-style: normal;
  font-weight: 950;
  text-align: end;
}
.ops-project-row b {
  grid-column: 1 / -1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.15);
}
.ops-project-row b i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--nexora-cyan), var(--nexora-purple));
}
.ops-tone-danger {
  border-color: rgba(251, 113, 133, 0.34);
}
.ops-tone-warning {
  border-color: rgba(250, 204, 21, 0.28);
}
.ops-rec-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(69, 214, 255, 0.14);
  border-radius: 14px;
  background: rgba(69, 214, 255, 0.055);
}
.ops-rec-item span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.12);
  font-weight: 950;
}
.ops-rec-item p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}
.ops-empty,
.ops-mini-empty {
  padding: 26px 16px;
  color: var(--text-secondary);
  text-align: center;
}
.ops-empty i {
  display: block;
  margin-bottom: 10px;
  color: var(--success);
  font-size: 34px;
}
.ops-empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text-primary);
}
[data-theme='light'] .ops-hero,
[data-theme='light'] .ops-panel {
  background:
    linear-gradient(180deg, rgba(47, 127, 224, 0.035), transparent 90px),
    #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}
[data-theme='light'] .ops-metric-card,
[data-theme='light'] .ops-tabs,
[data-theme='light'] .ops-risk-item,
[data-theme='light'] .ops-flow-card,
[data-theme='light'] .ops-team-row,
[data-theme='light'] .ops-project-row {
  background: #ffffff;
}
@media (max-width: 1180px) {
  .ops-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ops-layout {
    grid-template-columns: 1fr;
  }
  .ops-side-column {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .ops-hero,
  .ops-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .ops-hero-actions {
    justify-items: stretch;
  }
  .ops-metrics-grid,
  .ops-side-column {
    grid-template-columns: 1fr;
  }
  .ops-tabs,
  #operationsRiskFilter {
    width: 100%;
  }
  .ops-tabs button {
    flex: 1 1 calc(50% - 8px);
  }
  .ops-risk-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .ops-flow-head,
  .ops-flow-tools {
    align-items: stretch;
    flex-direction: column;
  }
  .ops-flow-tools,
  .ops-flow-tools .filter-select {
    width: 100%;
  }
  .ops-flow-card {
    grid-template-columns: 36px minmax(0, 1fr);
  }
  .ops-flow-title {
    align-items: flex-start;
    flex-direction: column;
  }
  .ops-flow-title strong {
    white-space: normal;
  }
  .ops-flow-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }
  .ops-flow-actions button {
    width: 100%;
  }
  .ops-risk-icon {
    width: 42px;
    height: 42px;
  }
  .ops-risk-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .ops-risk-head strong {
    white-space: normal;
  }
  .ops-action-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
  .ops-risk-item .action-card-buttons {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* Work inbox */
.inbox-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(69, 214, 255, 0.2);
  border-radius: 18px;
  background:
    radial-gradient(circle at 8% 10%, rgba(69, 214, 255, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(124, 92, 255, 0.1)),
    var(--bg-card);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}
.inbox-hero::after {
  content: '';
  position: absolute;
  inset-inline-end: -70px;
  top: -85px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(69, 214, 255, 0.18);
  border-radius: 999px;
  pointer-events: none;
}
.inbox-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--nexora-cyan);
  font-size: 12px;
  font-weight: 900;
}
.inbox-hero h2 {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: 26px;
  font-weight: 950;
}
.inbox-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.8;
}
.inbox-refresh-btn,
.inbox-item-action,
.inbox-side-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(69, 214, 255, 0.24);
  border-radius: 13px;
  color: var(--text-primary);
  background: rgba(69, 214, 255, 0.08);
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}
.inbox-refresh-btn {
  min-width: 120px;
  padding: 12px 16px;
}
.inbox-refresh-btn:hover,
.inbox-item-action:hover,
.inbox-side-card button:hover {
  transform: translateY(-1px);
  border-color: rgba(69, 214, 255, 0.48);
  background: rgba(69, 214, 255, 0.14);
}
.inbox-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.inbox-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.34);
}
.inbox-stat-card > i {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--text-white);
  background: linear-gradient(135deg, var(--nexora-cyan), var(--nexora-purple));
}
.inbox-stat-card.critical > i {
  background: linear-gradient(135deg, #fb7185, #f97316);
}
.inbox-stat-card.review > i {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
}
.inbox-stat-card.mine > i {
  background: linear-gradient(135deg, #10b981, #06b6d4);
}
.inbox-stat-card.muted > i {
  background: linear-gradient(135deg, #94a3b8, #7c5cff);
}
.inbox-stat-card strong {
  display: block;
  color: var(--text-primary);
  font-size: 26px;
  line-height: 1;
}
.inbox-stat-card span {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 800;
}
.inbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.inbox-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(69, 214, 255, 0.16);
  border-radius: 15px;
  background: rgba(15, 23, 42, 0.28);
}
.inbox-tabs button {
  min-height: 38px;
  padding: 8px 13px;
  border: 0;
  border-radius: 11px;
  color: var(--text-secondary);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}
.inbox-tabs button.active {
  color: var(--text-white);
  background: linear-gradient(135deg, var(--nexora-cyan), var(--nexora-purple));
  box-shadow: 0 10px 22px rgba(69, 214, 255, 0.18);
}
.inbox-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
}
.inbox-list {
  display: grid;
  gap: 12px;
}
.inbox-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(69, 214, 255, 0.16);
  border-radius: 17px;
  background:
    linear-gradient(90deg, rgba(69, 214, 255, 0.055), transparent 34%),
    var(--bg-card);
}
.inbox-item.inbox-priority-critical {
  border-color: rgba(251, 113, 133, 0.34);
}
.inbox-item.inbox-priority-high {
  border-color: rgba(69, 214, 255, 0.32);
}
.inbox-item-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.1);
}
.inbox-priority-critical .inbox-item-icon {
  color: #fb7185;
  background: rgba(251, 113, 133, 0.12);
}
.inbox-item-main {
  min-width: 0;
}
.inbox-item-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.inbox-item-head strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text-primary);
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inbox-item-head span {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.1);
  font-size: 11px;
  font-weight: 900;
}
.inbox-priority-critical .inbox-item-head span {
  color: #fb7185;
  background: rgba(251, 113, 133, 0.12);
}
.inbox-item p {
  margin: 0 0 9px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.inbox-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.inbox-item-meta span {
  padding: 5px 9px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(148, 163, 184, 0.055);
  font-size: 12px;
  font-weight: 800;
}
.inbox-item-action {
  min-height: 42px;
  padding: 10px 14px;
  white-space: nowrap;
}
.inbox-empty {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 32px;
  border: 1px dashed rgba(69, 214, 255, 0.24);
  border-radius: 18px;
  color: var(--text-secondary);
  text-align: center;
  background: rgba(69, 214, 255, 0.045);
}
.inbox-empty i {
  margin-bottom: 12px;
  color: var(--success);
  font-size: 34px;
}
.inbox-empty strong {
  display: block;
  margin-bottom: 7px;
  color: var(--text-primary);
  font-size: 18px;
}
.inbox-side-panel {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 88px;
}
.inbox-side-card {
  padding: 16px;
  border: 1px solid rgba(69, 214, 255, 0.16);
  border-radius: 17px;
  background: var(--bg-card);
}
.inbox-side-card h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  color: var(--text-primary);
  font-size: 15px;
}
.inbox-side-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.8;
}
.inbox-side-card button {
  width: 100%;
  min-height: 40px;
  margin-top: 8px;
  padding: 9px 11px;
}
[data-theme='light'] .inbox-hero,
[data-theme='light'] .inbox-item,
[data-theme='light'] .inbox-side-card {
  background:
    linear-gradient(180deg, rgba(47, 127, 224, 0.035), transparent 90px),
    #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}
[data-theme='light'] .inbox-stat-card,
[data-theme='light'] .inbox-tabs {
  background: #ffffff;
}
[data-theme='light'] .inbox-empty {
  background: rgba(47, 127, 224, 0.045);
}
@media (max-width: 1100px) {
  .inbox-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .inbox-layout {
    grid-template-columns: 1fr;
  }
  .inbox-side-panel {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .inbox-hero,
  .inbox-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .inbox-stats-grid,
  .inbox-side-panel {
    grid-template-columns: 1fr;
  }
  .inbox-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .inbox-item-icon {
    width: 42px;
    height: 42px;
  }
  .inbox-item-action {
    grid-column: 1 / -1;
    width: 100%;
  }
  .action-card-buttons {
    grid-column: 1 / -1;
    width: 100%;
  }
  .inbox-item-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .inbox-item-head strong {
    white-space: normal;
  }
  .inbox-tabs,
  #inboxPriorityFilter {
    width: 100%;
  }
  .inbox-tabs button {
    flex: 1 1 calc(50% - 8px);
  }
}

:root {
  /* â”€â”€ Nexora Brand Palette â”€â”€ */
  --nexora-cyan: #45d6ff;
  --nexora-blue: #2f7fe0;
  --nexora-indigo: #2247a8;
  --nexora-purple: #a86cf6;
  --nexora-navy: #0b1433;
  --nexora-grad: linear-gradient(135deg, #45d6ff 0%, #2f7fe0 45%, #a86cf6 100%);
  --nexora-grad2: linear-gradient(135deg, #2247a8 0%, #1a3580 100%);

  /* â”€â”€ Background System â”€â”€ */
  --bg-base: #080f22;
  --bg-sidebar: #0b1433;
  --bg-card: #0f1d3a;
  --bg-input: #162040;
  --bg-hover: #1a2a50;
  --bg-active: #1e3a7a;
  --border: #1e2e55;

  /* â”€â”€ Text â”€â”€ */
  --text-primary: #cdd8f0;
  --text-secondary: #8fa3cc;
  --text-muted: #4a608a;
  --text-white: #ffffff;

  /* â”€â”€ Accents (mapped to Nexora palette) â”€â”€ */
  --accent-purple: #a86cf6;
  --accent-green: #10d9a0;
  --accent-orange: #f59e0b;
  --accent-pink: #ec4899;
  --accent-blue: #45d6ff;
  --accent-teal: #2f7fe0;
  --accent-red: #ef4444;
  --accent-indigo: #2247a8;

  /* â”€â”€ Layout â”€â”€ */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(69, 214, 255, 0.15);
  --transition: all 0.2s ease;
  --font: 'Cairo', sans-serif;
  --sidebar-width: 260px;
}

html {
  font-size: 15px;
}

body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  display: flex;
  height: 100vh;
  overflow: hidden;
  direction: rtl;
}

/* Task milestones */
.task-milestones-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-milestones-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px dashed rgba(69, 214, 255, 0.26);
  border-radius: 8px;
  background: rgba(69, 214, 255, 0.04);
  color: var(--text-secondary);
  font-size: 12px;
}

.tm-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(69, 214, 255, 0.18);
  border-radius: 8px;
  background: rgba(15, 29, 58, 0.5);
}

.tm-index {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(69, 214, 255, 0.1);
  color: var(--nexora-cyan);
  font-size: 12px;
  font-weight: 800;
}

.tm-title-inp {
  width: 100%;
  min-width: 0;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 9px 11px;
  font-family: var(--font);
  font-size: 13px;
  outline: none;
}

.tm-title-inp:focus {
  border-color: rgba(69, 214, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(69, 214, 255, 0.1);
}

.tm-del-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(239, 68, 68, 0.24);
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.08);
  color: #f87171;
  cursor: pointer;
}

.task-milestones-panel {
  margin: 0 0 16px;
  padding: 13px;
  border: 1px solid rgba(69, 214, 255, 0.18);
  border-radius: 8px;
  background: rgba(69, 214, 255, 0.045);
}

.task-milestones-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

.task-milestones-head div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-milestones-head i,
.task-milestones-head strong {
  color: var(--nexora-cyan);
}

.task-milestones-head span {
  color: var(--text-primary);
  font-weight: 800;
}

.task-milestones-progress {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border);
  margin-bottom: 10px;
}

.task-milestones-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--nexora-grad);
}

.task-milestones-checks {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.task-milestone-check {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(15, 29, 58, 0.42);
  cursor: pointer;
}

.task-milestone-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.task-milestone-box {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(69, 214, 255, 0.35);
  border-radius: 7px;
  color: transparent;
  background: rgba(69, 214, 255, 0.07);
}

.task-milestone-title {
  min-width: 0;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.5;
}

.task-milestone-check.is-done {
  border-color: rgba(16, 217, 160, 0.28);
  background: rgba(16, 217, 160, 0.06);
}

.task-milestone-check.is-done .task-milestone-box {
  border-color: rgba(16, 217, 160, 0.5);
  background: rgba(16, 217, 160, 0.18);
  color: #10d9a0;
}

.task-milestone-check.is-done .task-milestone-title {
  color: var(--text-secondary);
  text-decoration: line-through;
}

/* ==============================
   SCROLLBAR
============================== */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #1e3a7a;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2f7fe0;
}

/* ==============================
   LOGIN PAGE
============================== */
#loginPage {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--nexora-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Ù„Ø§ overflow:hidden Ù‡Ù†Ø§ Ø­ØªÙ‰ ØªØ¹Ù…Ù„ Ø§Ù„Ù…ÙˆØ¯Ø§Ù„Ø§Øª Ø¯Ø§Ø®Ù„Ù‡ */
  overflow: visible;
}

/* â”€â”€ Ù…ÙˆØ¯Ø§Ù„Ø§Øª ØµÙØ­Ø© ØªØ³Ø¬ÙŠÙ„ Ø§Ù„Ø¯Ø®ÙˆÙ„ (Ø¯Ø§Ø®Ù„ #loginPage) â”€â”€ */
.login-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000; /* ÙÙˆÙ‚ #loginPage (9999) Ø¯Ø§Ø¦Ù…Ø§Ù‹ */
  background: rgba(8, 15, 34, 0.88);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.login-modal-overlay.open {
  display: flex;
}

.login-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.login-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
}
.login-blob-1 {
  width: 500px;
  height: 500px;
  background: var(--nexora-cyan);
  top: -150px;
  right: -100px;
  animation: blobFloat 8s ease-in-out infinite;
}
.login-blob-2 {
  width: 400px;
  height: 400px;
  background: var(--nexora-purple);
  bottom: -120px;
  left: -80px;
  animation: blobFloat 10s ease-in-out infinite reverse;
}
.login-blob-3 {
  width: 300px;
  height: 300px;
  background: var(--nexora-blue);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: blobFloat 12s ease-in-out infinite;
}
@keyframes blobFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-30px) scale(1.05);
  }
}
.login-blob-2 {
  animation-name: blobFloat2;
}
@keyframes blobFloat2 {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(25px) scale(0.95);
  }
}

.login-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.login-particles span {
  position: absolute;
  right: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 3px;
  background: linear-gradient(
    135deg,
    rgba(69, 214, 255, 0.95),
    rgba(168, 108, 246, 0.85)
  );
  opacity: 0.26;
  box-shadow: 0 0 18px rgba(69, 214, 255, 0.35);
  animation: loginParticleDrift var(--d) linear infinite;
  animation-delay: var(--delay);
}
.login-particles span:nth-child(3n) {
  border-radius: 50%;
  background: rgba(69, 214, 255, 0.85);
}
.login-particles span:nth-child(4n) {
  width: calc(var(--s) * 3);
  height: 2px;
  border-radius: 999px;
}
@keyframes loginParticleDrift {
  0% {
    transform: translate3d(0, 48px, 0) rotate(0deg);
    opacity: 0;
  }
  16% {
    opacity: 0.32;
  }
  62% {
    opacity: 0.42;
  }
  100% {
    transform: translate3d(var(--tx), -130px, 0) rotate(210deg);
    opacity: 0;
  }
}

/* Grid pattern overlay */
.login-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(69, 214, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 214, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.login-card {
  position: relative;
  z-index: 2;
  width: 420px;
  max-width: 95vw;
  background: rgba(15, 29, 58, 0.85);
  border: 1px solid rgba(69, 214, 255, 0.18);
  border-radius: 24px;
  padding: 40px 36px;
  backdrop-filter: blur(20px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(69, 214, 255, 0.08);
  animation: cardIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}
.login-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    120deg,
    transparent 8%,
    rgba(69, 214, 255, 0.55),
    rgba(168, 108, 246, 0.48),
    transparent 58%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: loginBorderFlow 6s linear infinite;
}
@keyframes loginBorderFlow {
  0% {
    filter: hue-rotate(0deg);
    opacity: 0.34;
    transform: translateX(-10%);
  }
  50% {
    opacity: 0.72;
  }
  100% {
    filter: hue-rotate(25deg);
    opacity: 0.34;
    transform: translateX(10%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .login-particles span,
  .login-card::before {
    animation: none;
  }
}
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
  gap: 10px;
}
.login-logo-img {
  width: 184px;
  height: 184px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(69, 214, 255, 0.5));
  animation: logoPulse 3s ease-in-out infinite;
}
.login-logo-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
@keyframes logoPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 16px rgba(69, 214, 255, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 28px rgba(168, 108, 246, 0.7));
  }
}
.login-brand {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  background: var(--nexora-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.login-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: -4px;
}

.login-form-group {
  margin-bottom: 16px;
}
.login-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.login-input-wrap {
  position: relative;
}
.login-input-wrap i {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 13px;
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
  transition: var(--transition);
}
.login-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-white);
  font-family: var(--font);
  font-size: 14px;
  padding: 11px 40px 11px 14px;
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition);
  direction: ltr;
  text-align: right;
}
.login-input:focus {
  border-color: var(--nexora-cyan);
  box-shadow: 0 0 0 3px rgba(69, 214, 255, 0.12);
}
.login-input:focus + i,
.login-input-wrap:focus-within i {
  color: var(--nexora-cyan);
}

.login-eye-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 13px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
  padding: 0;
}
.login-eye-btn:hover {
  color: var(--nexora-cyan);
}

.login-error {
  display: none;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-size: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  text-align: center;
}
.login-error.show {
  display: block;
  animation: shake 0.4s ease;
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-8px);
  }
  40% {
    transform: translateX(8px);
  }
  60% {
    transform: translateX(-5px);
  }
  80% {
    transform: translateX(5px);
  }
}

.login-btn {
  width: 100%;
  padding: 13px;
  background: var(--nexora-grad);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 20px rgba(69, 214, 255, 0.25);
}
.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(69, 214, 255, 0.35);
}
.login-btn:active {
  transform: translateY(0);
}
.login-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.login-btn:hover::before {
  transform: translateX(100%);
}

.login-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.login-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.login-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 11px;
  color: var(--text-muted);
}
.login-footer span {
  color: var(--nexora-cyan);
}

/* ==============================
   NEXORA SIDEBAR UPGRADES
============================== */
.sidebar-logo .logo-text {
  background: var(--nexora-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-icon {
  background: var(--nexora-grad) !important;
  box-shadow: 0 0 14px rgba(69, 214, 255, 0.3);
}

.nav-item.active {
  background: linear-gradient(
    90deg,
    rgba(47, 127, 224, 0.25),
    rgba(168, 108, 246, 0.15)
  ) !important;
  border-right: 2px solid var(--nexora-cyan);
  color: var(--nexora-cyan) !important;
}

.sidebar-search:focus-within {
  border-color: var(--nexora-cyan) !important;
}

/* ==============================
   ROLE BADGE
============================== */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.rb-admin {
  background: linear-gradient(
    90deg,
    rgba(69, 214, 255, 0.15),
    rgba(168, 108, 246, 0.15)
  );
  color: var(--nexora-cyan);
  border: 1px solid rgba(69, 214, 255, 0.25);
}
/* v8.27: Ù…Ø¯ÙŠØ± Ù…Ø³Ø§Ø¹Ø¯ badge */
.rb-admin-assistant {
  background: linear-gradient(
    90deg,
    rgba(69, 214, 255, 0.1),
    rgba(16, 217, 160, 0.12)
  );
  color: #10d9a0;
  border: 1px solid rgba(16, 217, 160, 0.3);
}
.rb-supervisor {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.rb-member {
  background: rgba(143, 163, 204, 0.1);
  color: var(--text-secondary);
  border: 1px solid rgba(143, 163, 204, 0.15);
}
.rb-demo {
  background: linear-gradient(
    90deg,
    rgba(168, 108, 246, 0.16),
    rgba(69, 214, 255, 0.12)
  );
  color: #a86cf6;
  border: 1px solid rgba(168, 108, 246, 0.35);
}
.demo-perm-info {
  border-color: rgba(168, 108, 246, 0.28);
  background:
    linear-gradient(135deg, rgba(168, 108, 246, 0.12), transparent),
    var(--bg-panel);
}

/* ==============================
   ADMIN PANEL PAGE
============================== */
#page-admin {
}

.admin-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
  align-items: start;
}
/* col spans inside admin-grid */
.admin-grid .card.col-2 {
  grid-column: span 2;
}
.admin-grid .card.col-1 {
  grid-column: span 1;
}
/* full-width span for permissions info card */
.admin-grid .card.col-3 {
  grid-column: 1 / -1;
}

.users-table-wrap {
  overflow-x: auto;
}
.users-table {
  width: 100%;
  border-collapse: collapse;
}
.users-table th {
  background: var(--bg-input);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 11px 14px;
  text-align: right;
  border-bottom: 1px solid var(--border);
}
.users-table td {
  padding: 11px 14px;
  font-size: 13px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.users-table tr:last-child td {
  border-bottom: none;
}
.users-table tbody tr:hover {
  background: var(--bg-hover);
}

.dept-toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
}
.dept-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  border: 1px solid var(--border);
}
.dept-toggle-item .dept-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 38px;
  height: 22px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--bg-base);
  border-radius: 34px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: var(--transition);
}
.toggle-switch input:checked + .toggle-slider {
  background: rgba(69, 214, 255, 0.15);
  border-color: var(--nexora-cyan);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(16px);
  background: var(--nexora-cyan);
}

/* Role selector in users table */
.role-select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 12px;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
}
.role-select:focus {
  border-color: var(--nexora-cyan);
}

/* ==============================
   NEXORA BUTTON UPGRADE
============================== */
.btn-add-task {
  background: var(--nexora-grad) !important;
  box-shadow: 0 2px 14px rgba(69, 214, 255, 0.2);
}
.btn-add-task:hover {
  box-shadow: 0 4px 20px rgba(69, 214, 255, 0.35) !important;
  transform: translateY(-1px);
}

.btn-save {
  background: var(--nexora-grad) !important;
}

/* ==============================
   STAT CARD NEXORA GLOW
============================== */
.stat-card:hover {
  box-shadow: 0 4px 24px rgba(69, 214, 255, 0.12) !important;
}

/* ==============================
   TOPBAR NEXORA
============================== */
.topbar {
  background: var(--bg-sidebar) !important;
  border-bottom-color: rgba(69, 214, 255, 0.1) !important;
}

/* ==============================
   PROGRESS FILL NEXORA
============================== */
.progress-fill {
  background: var(--nexora-grad) !important;
}
.progress-fill.green {
  background: linear-gradient(90deg, #10d9a0, #2f7fe0) !important;
}
.progress-fill.orange {
  background: linear-gradient(90deg, #f59e0b, #a86cf6) !important;
}

/* ==============================
   MODAL NEXORA
============================== */
.modal {
  border-color: rgba(69, 214, 255, 0.15) !important;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(69, 214, 255, 0.06) !important;
}
.modal-header h3 i {
  color: var(--nexora-cyan) !important;
}

/* ==============================
   PERMISSION DENIED OVERLAY
============================== */
.perm-denied {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  gap: 14px;
}
.perm-denied i {
  font-size: 48px;
  color: var(--nexora-purple);
  opacity: 0.6;
}
.perm-denied h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
}
.perm-denied p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==============================
   CURRENT USER WIDGET (topbar)
============================== */
.current-user-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 5px 10px;
  cursor: default;
}
.cuw-avatar {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: var(--nexora-grad);
  flex-shrink: 0;
}
.cuw-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-white);
}
.cuw-role {
  font-size: 10px;
  color: var(--nexora-cyan);
  font-weight: 600;
}

/* ==============================
   SIDEBAR
============================== */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  transition: var(--transition);
  z-index: 100;
  flex-shrink: 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(69, 214, 255, 0.3));
}

.calendar-modal {
  width: min(1520px, calc(100vw - 28px));
  max-height: min(920px, calc(100vh - 28px));
  overflow: hidden;
}

.calendar-modal-header {
  align-items: center;
}

.calendar-modal-header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.calendar-modal-header h2 i {
  color: var(--nexora-cyan);
}

.calendar-modal-header p {
  color: var(--text-muted);
  font-weight: 700;
  margin: 7px 0 0;
}

.calendar-shell {
  padding: 22px;
  overflow: auto;
  max-height: calc(100vh - 150px);
  background:
    radial-gradient(circle at 10% 10%, rgba(69, 214, 255, 0.1), transparent 34%),
    linear-gradient(135deg, rgba(69, 214, 255, 0.04), rgba(168, 108, 246, 0.04));
}

.calendar-controls,
.calendar-content,
.calendar-month-card,
.calendar-side-card,
.calendar-note {
  border: 1px solid rgba(69, 214, 255, 0.18);
  background: rgba(8, 21, 43, 0.72);
}

.calendar-controls {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding: 16px;
  border-radius: 18px;
  margin-bottom: 16px;
}

.calendar-selects {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.calendar-selects label {
  display: grid;
  gap: 7px;
  min-width: 160px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.calendar-selects select {
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(69, 214, 255, 0.25);
  background: rgba(5, 16, 35, 0.86);
  color: var(--text-white);
  padding: 0 14px;
  font-family: inherit;
  font-weight: 800;
}

.calendar-layer-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.calendar-layer-tabs button,
.calendar-month-nav button {
  border: 1px solid rgba(69, 214, 255, 0.25);
  color: var(--text-secondary);
  background: rgba(69, 214, 255, 0.08);
  border-radius: 13px;
  min-height: 42px;
  padding: 0 15px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 900;
}

.calendar-layer-tabs button.active,
.calendar-layer-tabs button:hover,
.calendar-month-nav button:hover {
  color: #061225;
  background: var(--nexora-grad);
  border-color: rgba(69, 214, 255, 0.7);
}

.calendar-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  padding: 16px;
  border-radius: 22px;
}

.calendar-month-card,
.calendar-side-card,
.calendar-note {
  border-radius: 18px;
}

.calendar-month-card {
  padding: 16px;
  overflow: hidden;
}

.calendar-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.calendar-month-nav strong {
  color: var(--text-white);
  font-size: 22px;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  padding: 9px 4px;
}

.calendar-grid {
  gap: 8px;
}

.calendar-day {
  min-height: 92px;
  border: 1px solid rgba(69, 214, 255, 0.14);
  border-radius: 16px;
  background: rgba(11, 31, 61, 0.68);
  color: var(--text-white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 11px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.calendar-day:hover,
.calendar-day.selected {
  transform: translateY(-1px);
  border-color: rgba(69, 214, 255, 0.7);
  background: rgba(69, 214, 255, 0.12);
}

.calendar-day.today {
  box-shadow: inset 0 0 0 2px rgba(168, 108, 246, 0.7);
}

.calendar-day.empty {
  visibility: hidden;
  pointer-events: none;
}

.calendar-day-number {
  font-weight: 900;
  font-size: 16px;
}

.calendar-day-events {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}

.calendar-day-events em {
  color: var(--text-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.calendar-dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  display: inline-block;
  background: var(--nexora-cyan);
}

.calendar-dot.national { background: #a86cf6; }
.calendar-dot.religious { background: #fbbf24; }
.calendar-dot.public { background: #10d9a0; }
.calendar-dot.task { background: #45d6ff; }
.calendar-dot.project { background: #5b7cfa; }
.calendar-dot.timeline { background: #ff7a45; }

.calendar-side-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.calendar-side-card {
  padding: 16px;
}

.calendar-side-eyebrow {
  color: var(--nexora-cyan);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-side-card h3 {
  margin: 6px 0 12px;
  color: var(--text-white);
}

.calendar-event-list {
  display: grid;
  gap: 10px;
}

.calendar-event-list.compact {
  max-height: 330px;
  overflow: auto;
  padding-left: 4px;
}

.calendar-event-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border-radius: 15px;
  padding: 12px;
  border: 1px solid rgba(69, 214, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
}

.calendar-event-icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.13);
}

.calendar-event-card.national .calendar-event-icon { color: #caa7ff; background: rgba(168, 108, 246, 0.15); }
.calendar-event-card.religious .calendar-event-icon { color: #fbbf24; background: rgba(251, 191, 36, 0.13); }
.calendar-event-card.public .calendar-event-icon { color: #10d9a0; background: rgba(16, 217, 160, 0.13); }
.calendar-event-card.project .calendar-event-icon { color: #7da0ff; background: rgba(91, 124, 250, 0.15); }
.calendar-event-card.timeline .calendar-event-icon { color: #ff9c72; background: rgba(255, 122, 69, 0.15); }

.calendar-event-card strong {
  color: var(--text-white);
  display: block;
  line-height: 1.55;
}

.calendar-event-card span,
.calendar-event-card p,
.calendar-note,
.calendar-empty {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.75;
}

.calendar-event-card p {
  margin: 5px 0 0;
}

.calendar-note {
  padding: 13px;
  display: flex;
  gap: 10px;
}

.calendar-note i {
  color: var(--nexora-cyan);
  margin-top: 5px;
}

[data-theme='light'] .calendar-controls,
[data-theme='light'] .calendar-content,
[data-theme='light'] .calendar-month-card,
[data-theme='light'] .calendar-side-card,
[data-theme='light'] .calendar-note {
  background: rgba(255, 255, 255, 0.86);
}

[data-theme='light'] .calendar-day {
  background: rgba(238, 248, 255, 0.9);
  color: var(--text-primary);
}

[data-theme='light'] .calendar-selects select {
  background: #fff;
  color: var(--text-primary);
}

.mobile-calendar-card {
  padding: 0;
  border: 1px solid rgba(69, 214, 255, 0.2);
  background: linear-gradient(135deg, rgba(8, 30, 60, 0.96), rgba(7, 20, 43, 0.92));
}

.mobile-calendar-card .calendar-month-nav {
  margin: 0;
  padding: 16px;
  border-bottom: 1px solid rgba(69, 214, 255, 0.18);
}

.mobile-calendar-weekdays {
  display: grid;
  grid-template-columns: 42px repeat(7, minmax(96px, 1fr));
  background: linear-gradient(180deg, rgba(69, 214, 255, 0.16), rgba(69, 214, 255, 0.06));
  border-bottom: 1px solid rgba(69, 214, 255, 0.18);
}

.mobile-calendar-weekdays span {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  color: rgba(226, 241, 255, 0.78);
  font-size: 13px;
  font-weight: 900;
}

.mobile-calendar-weekdays .calendar-week-head,
.calendar-week-number {
  color: rgba(226, 241, 255, 0.55);
  background: rgba(255, 255, 255, 0.025);
}

.mobile-calendar-grid {
  display: block;
  overflow: auto;
  max-height: min(68vh, 720px);
  border-radius: 0 0 18px 18px;
  scrollbar-color: var(--nexora-cyan) transparent;
}

.calendar-week-row {
  display: grid;
  grid-template-columns: 42px repeat(7, minmax(96px, 1fr));
  min-width: 760px;
  min-height: 120px;
  border-bottom: 1px solid rgba(69, 214, 255, 0.13);
}

.calendar-week-number {
  display: flex;
  align-items: start;
  justify-content: center;
  padding-top: 14px;
  font-size: 12px;
  font-weight: 900;
}

.mobile-calendar-grid .calendar-day {
  min-height: 120px;
  border: 0;
  border-inline-start: 1px solid rgba(69, 214, 255, 0.13);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.02);
  padding: 9px;
  overflow: hidden;
  gap: 7px;
}

.mobile-calendar-grid .calendar-day:hover {
  transform: none;
  background: rgba(69, 214, 255, 0.08);
}

.mobile-calendar-grid .calendar-day.selected {
  transform: none;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.56);
}

.mobile-calendar-grid .calendar-day.today {
  box-shadow: inset 0 0 0 2px rgba(168, 108, 246, 0.8);
}

.calendar-day-head {
  width: 100%;
  display: grid;
  gap: 2px;
  text-align: center;
}

.calendar-day-head small {
  color: rgba(226, 241, 255, 0.47);
  font-size: 11px;
  font-weight: 800;
}

.mobile-calendar-grid .calendar-day-number {
  color: rgba(246, 251, 255, 0.95);
  font-size: 17px;
}

.mobile-calendar-grid .calendar-day.is-friday .calendar-day-number {
  color: #f7c26f;
}

.mobile-calendar-grid .calendar-day.is-saturday .calendar-day-number {
  color: #ff7b7b;
}

.mobile-calendar-grid .calendar-day.is-outside {
  opacity: 0.34;
}

.mobile-calendar-grid .calendar-day-events {
  width: 100%;
  display: grid;
  gap: 4px;
}

.calendar-event-strip {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  border-inline-start: 4px solid var(--nexora-cyan);
  border-radius: 6px;
  padding: 4px 5px;
  background: rgba(226, 241, 255, 0.075);
  color: rgba(246, 251, 255, 0.92);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
}

.calendar-event-strip i {
  flex: 0 0 auto;
  font-size: 9px;
}

.calendar-event-strip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event-strip.national { border-inline-start-color: #a86cf6; }
.calendar-event-strip.religious { border-inline-start-color: #fbbf24; }
.calendar-event-strip.public { border-inline-start-color: #10d9a0; }
.calendar-event-strip.task { border-inline-start-color: #45d6ff; }
.calendar-event-strip.project { border-inline-start-color: #5b7cfa; }
.calendar-event-strip.timeline { border-inline-start-color: #ff7a45; }

.calendar-more-events {
  justify-self: start;
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(69, 214, 255, 0.12);
  color: var(--nexora-cyan);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

[data-theme='light'] .mobile-calendar-card {
  background: linear-gradient(135deg, #f8fdff, #eff8ff);
}

[data-theme='light'] .mobile-calendar-weekdays {
  background: linear-gradient(180deg, #d7f6ff, #eefbff);
}

[data-theme='light'] .mobile-calendar-weekdays span,
[data-theme='light'] .calendar-week-number {
  color: #64748b;
}

[data-theme='light'] .mobile-calendar-grid .calendar-day {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-primary);
}

[data-theme='light'] .mobile-calendar-grid .calendar-day:hover,
[data-theme='light'] .mobile-calendar-grid .calendar-day.selected {
  background: #f7fbff;
}

[data-theme='light'] .mobile-calendar-grid .calendar-day-number {
  color: #0f172a;
}

[data-theme='light'] .calendar-day-head small {
  color: #94a3b8;
}

[data-theme='light'] .calendar-event-strip {
  background: #eef4ff;
  color: #172033;
}

.pure-calendar-content {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.pure-calendar-card {
  border-radius: 22px;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(69, 214, 255, 0.12), rgba(69, 214, 255, 0.03)),
    rgba(7, 20, 43, 0.9);
}

.pure-calendar-nav {
  padding: 18px 20px;
  margin: 0;
  border-bottom: 1px solid rgba(69, 214, 255, 0.18);
}

.pure-calendar-nav strong {
  font-size: 30px;
  letter-spacing: 0;
}

.pure-calendar-weekdays {
  display: grid;
  grid-template-columns: 46px repeat(7, minmax(120px, 1fr));
  background: rgba(69, 214, 255, 0.08);
  border-bottom: 1px solid rgba(69, 214, 255, 0.16);
}

.pure-calendar-weekdays span {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(226, 241, 255, 0.78);
  font-size: 14px;
  font-weight: 950;
}

.pure-calendar-grid {
  display: block;
  overflow: visible;
}

.pure-calendar-grid .calendar-week-row {
  display: grid;
  grid-template-columns: 46px repeat(7, minmax(120px, 1fr));
  min-width: 920px;
  min-height: 126px;
  border-bottom: 1px solid rgba(69, 214, 255, 0.12);
  overflow: visible;
}

.pure-calendar-grid .calendar-week-number {
  padding-top: 18px;
  color: rgba(226, 241, 255, 0.38);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.pure-calendar-grid .calendar-day {
  position: relative;
  min-height: 126px;
  border: 0;
  border-inline-start: 1px solid rgba(69, 214, 255, 0.12);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.018);
  overflow: visible;
  padding: 10px;
  cursor: default;
  isolation: isolate;
}

.pure-calendar-grid .calendar-day:hover {
  transform: none;
  z-index: 30;
  background: rgba(69, 214, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(69, 214, 255, 0.28);
}

.pure-calendar-grid .calendar-day.selected {
  transform: none;
  box-shadow: inset 0 0 0 2px rgba(69, 214, 255, 0.9);
}

.pure-calendar-grid .calendar-day.today .calendar-day-number {
  color: #061225;
  background: var(--nexora-grad);
}

.pure-calendar-grid .calendar-day.is-outside {
  opacity: 0.28;
}

.pure-calendar-grid .calendar-day-head {
  display: grid;
  justify-items: center;
  gap: 3px;
  margin-bottom: 10px;
}

.pure-calendar-grid .calendar-day-number {
  min-width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(246, 251, 255, 0.92);
  font-size: 18px;
  font-weight: 950;
}

.pure-calendar-grid .calendar-day-head small {
  color: rgba(226, 241, 255, 0.48);
  font-size: 11px;
  font-weight: 850;
}

.pure-calendar-grid .calendar-day.is-friday .calendar-day-number {
  color: #f7c26f;
}

.pure-calendar-grid .calendar-day.is-saturday .calendar-day-number {
  color: #ff7b7b;
}

.calendar-day-track {
  display: grid;
  gap: 6px;
  width: 100%;
}

.calendar-event-bar {
  position: relative;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(226, 241, 255, 0.12);
  border: 1px solid rgba(69, 214, 255, 0.18);
  overflow: hidden;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}

.calendar-event-bar span {
  display: block;
  height: 100%;
  min-width: 34%;
  border-radius: inherit;
  background: var(--nexora-grad);
}

.calendar-event-bar.national span { background: linear-gradient(90deg, #a86cf6, #45d6ff); }
.calendar-event-bar.religious span { background: linear-gradient(90deg, #fbbf24, #45d6ff); }
.calendar-event-bar.public span { background: linear-gradient(90deg, #10d9a0, #45d6ff); }
.calendar-event-bar.task span { background: linear-gradient(90deg, #45d6ff, #5b7cfa); }
.calendar-event-bar.project span { background: linear-gradient(90deg, #5b7cfa, #a86cf6); }
.calendar-event-bar.timeline span { background: linear-gradient(90deg, #ff7a45, #a86cf6); }

.calendar-day-track em {
  justify-self: start;
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(69, 214, 255, 0.12);
  color: var(--nexora-cyan);
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
}

.calendar-day-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 10px);
  z-index: 100;
  width: min(360px, 78vw);
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(69, 214, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(14, 38, 71, 0.98), rgba(11, 24, 52, 0.98));
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 12px) scale(0.98);
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease,
    transform 0.18s ease;
}

.calendar-day:hover .calendar-day-tooltip,
.calendar-day:focus-visible .calendar-day-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}

.calendar-day-tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 14px;
  height: 14px;
  background: rgba(11, 24, 52, 0.98);
  border-inline-end: 1px solid rgba(69, 214, 255, 0.34);
  border-bottom: 1px solid rgba(69, 214, 255, 0.34);
  transform: translateX(-50%) rotate(45deg);
}

.calendar-day-tooltip > strong {
  display: block;
  color: var(--text-white);
  font-size: 14px;
  font-weight: 950;
  margin-bottom: 8px;
}

.calendar-tooltip-count {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  margin-bottom: 10px;
  background: rgba(69, 214, 255, 0.14);
  color: var(--nexora-cyan);
  font-size: 11px;
  font-weight: 950;
}

.calendar-tooltip-events {
  display: grid;
  gap: 8px;
}

.calendar-tooltip-event {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 9px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.calendar-tooltip-event i {
  width: 30px;
  height: 30px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.14);
}

.calendar-tooltip-event b,
.calendar-tooltip-event small,
.calendar-tooltip-event em,
.calendar-tooltip-more,
.calendar-day-tooltip.empty em {
  display: block;
  font-style: normal;
  line-height: 1.55;
}

.calendar-tooltip-event b {
  color: var(--text-white);
  font-size: 12px;
  font-weight: 950;
}

.calendar-tooltip-event small,
.calendar-tooltip-event em,
.calendar-day-tooltip.empty em {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}

.calendar-tooltip-more {
  color: var(--nexora-cyan);
  font-size: 11px;
  font-weight: 950;
  text-align: center;
}

[data-theme='light'] .pure-calendar-card {
  background: #f8fdff;
}

[data-theme='light'] .pure-calendar-weekdays {
  background: #e7f8ff;
}

[data-theme='light'] .pure-calendar-grid .calendar-day {
  background: #fbfdff;
}

[data-theme='light'] .pure-calendar-grid .calendar-day:hover {
  background: #eefaff;
}

[data-theme='light'] .calendar-day-tooltip {
  background: #ffffff;
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.14);
}

[data-theme='light'] .calendar-day-tooltip::after {
  background: #ffffff;
}

[data-theme='light'] .calendar-day-tooltip > strong,
[data-theme='light'] .calendar-tooltip-event b {
  color: #0f172a;
}

@media (max-width: 980px) {
  .calendar-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .calendar-shell {
    padding: 12px;
  }
  .calendar-controls {
    align-items: stretch;
  }
  .calendar-controls,
  .calendar-selects {
    flex-direction: column;
  }
  .calendar-day {
    min-height: 64px;
    padding: 8px;
  }
  .calendar-week-row,
  .mobile-calendar-weekdays {
    grid-template-columns: 36px repeat(7, minmax(78px, 1fr));
  }
  .calendar-week-row {
    min-width: 582px;
    min-height: 100px;
  }
  .mobile-calendar-grid .calendar-day {
    min-height: 100px;
    padding: 7px;
  }
  .calendar-event-strip {
    font-size: 10px;
  }
  .calendar-weekdays span {
    font-size: 10px;
  }
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}

.logo-text {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.3px;
}

.sidebar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 10px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  border: 1px solid transparent;
  transition: var(--transition);
}
.sidebar-search:focus-within {
  border-color: var(--accent-purple);
}
.sidebar-search i {
  color: var(--text-muted);
  font-size: 13px;
}
.sidebar-search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 13px;
  width: 100%;
}
.sidebar-search input::placeholder {
  color: var(--text-muted);
}

/* NAV */
.sidebar-nav {
  padding: 0 8px;
  flex: 1;
}

.nav-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 14px 8px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  user-select: none;
}
.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-white);
}
.nav-item.active {
  background: var(--bg-active);
  color: #fff;
  font-weight: 600;
}
.nav-item i {
  width: 18px;
  text-align: center;
  font-size: 14px;
  flex-shrink: 0;
}

.dept-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 4px;
}

.badge {
  margin-right: auto;
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.badge-red {
  background: var(--accent-red);
  color: #fff;
}
.badge-blue {
  background: var(--accent-blue);
  color: #fff;
}

/* Sidebar user */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.sidebar-user:hover {
  background: var(--bg-hover);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  background: linear-gradient(135deg, #6366f1, #ec4899);
}
.user-avatar.manager {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.user-info {
  flex: 1;
  overflow: hidden;
}
.user-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-role {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.user-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--bg-sidebar);
  flex-shrink: 0;
}
.user-status-dot.active {
  background: var(--accent-green);
}
.user-status-dot.away {
  background: var(--accent-orange);
}
.user-status-dot.busy {
  background: var(--accent-red);
}
.user-status-dot.offline {
  background: var(--text-muted);
}

/* ==============================
   MAIN WRAPPER
============================== */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* TOPBAR */
.topbar {
  height: 54px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
  position: relative;
  z-index: 50;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.sidebar-toggle:hover {
  background: var(--bg-hover);
  color: var(--text-white);
}

.page-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
}

.btn-add-task {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-purple);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-add-task:hover {
  background: #5254cc;
  transform: translateY(-1px);
}

.notif-btn {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: var(--transition);
  font-size: 16px;
}
.notif-btn:hover {
  background: var(--bg-hover);
  color: var(--text-white);
}

.notif-dot {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}

.notif-dropdown {
  display: none;
  position: absolute;
  top: 50px;
  left: 10px;
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  z-index: 200;
  padding: 10px 0;
}
.notif-dropdown.open {
  display: block;
}
.notif-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
  padding: 6px 16px 10px;
  border-bottom: 1px solid var(--border);
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 16px;
  transition: var(--transition);
  cursor: pointer;
}
.notif-item:hover {
  background: var(--bg-hover);
}
.notif-item p {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 2px;
}
.notif-item span {
  font-size: 11px;
  color: var(--text-muted);
}
.notif-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.notif-icon.orange {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-orange);
}
.notif-icon.green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}
.notif-icon.blue {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
}

/* ==============================
   CONTENT AREA
============================== */
.content-area {
  flex: 1;
  overflow-y: auto;
  padding: 22px 24px;
  background: var(--bg-base);
}

/* â”€â”€ Page visibility (single authoritative rule) â”€â”€ */
.page {
  display: none !important;
}
.page.active {
  display: block !important;
  animation: pageFadeIn 0.25s ease;
}
/* Analytics needs flex + overflow-y auto */
#page-analytics.active {
  display: flex !important;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  overflow-y: auto;
}
/* Prevent chart canvases from rendering when page is hidden */
.page:not(.active) canvas {
  visibility: hidden !important;
  pointer-events: none !important;
}
/* Chat needs flex + zero padding + fill remaining height */
#page-chat.active {
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  height: 0; /* collapsed inside flex parent */
  flex: 1; /* grows to fill .content-area */
  overflow: hidden;
}
/* Override so content-area lets page-chat fill it */
.content-area:has(#page-chat.active) {
  padding: 0;
  overflow: hidden;
}

/* ==============================
   STATS GRID
============================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--accent, #555);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
}

.stat-icon {
  width: 46px;
  height: 46px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.stat-body {
  flex: 1;
}
.stat-value {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.1;
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-trend {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.stat-trend.up {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}
.stat-trend.down {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
}
.stat-trend.neutral {
  background: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
}

/* ==============================
   DASHBOARD GRID
============================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card.col-1 {
  grid-column: span 1;
}
.card.col-2 {
  grid-column: span 2;
}
.card.col-3 {
  grid-column: span 3;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.card-header h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-header h2 i {
  color: var(--accent-purple);
}

.btn-link {
  background: none;
  border: none;
  color: var(--accent-blue);
  font-family: var(--font);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-link:hover {
  text-decoration: underline;
}

/* ==============================
   PROJECTS LIST (Dashboard)
============================== */
.projects-list {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.project-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.project-row-top .proj-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
}
.project-row-top .proj-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-input);
  border-radius: 10px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.8s ease;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
}
.progress-fill.green {
  background: linear-gradient(90deg, var(--accent-green), var(--accent-teal));
}
.progress-fill.orange {
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-pink));
}

.project-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tag {
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
}
.tag-active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}
.tag-completed {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-purple);
}
.tag-on_hold {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-orange);
}
.tag-cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
}

/* ==============================
   ACTIVITY FEED
============================== */
.activity-feed {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 280px;
  overflow-y: auto;
}
.activity-full-feed {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.act-avatar {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.act-body {
  flex: 1;
}
.act-body p {
  font-size: 12.5px;
  color: var(--text-primary);
  line-height: 1.5;
}
.act-body p strong {
  color: var(--text-white);
}
.act-body span {
  font-size: 11px;
  color: var(--text-muted);
}
.act-dept-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-purple);
}

/* ==============================
   URGENT TASKS
============================== */
.urgent-tasks-list {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.urgent-task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}
.urgent-task-item:hover {
  border-color: var(--accent-purple);
}

.priority-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.p-urgent {
  background: var(--accent-red);
}
.p-high {
  background: var(--accent-orange);
}
.p-medium {
  background: var(--accent-blue);
}
.p-low {
  background: var(--text-muted);
}

.priority-badge {
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
}
.pb-urgent {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
}
.pb-high {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-orange);
}
.pb-medium {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
}
.pb-low {
  background: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
}

.ut-info {
  flex: 1;
}
.ut-info .ut-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 2px;
}
.ut-info .ut-sub {
  font-size: 11px;
  color: var(--text-muted);
}
.ut-assignee {
  font-size: 11px;
  color: var(--text-secondary);
  text-align: left;
  white-space: nowrap;
}

/* ==============================
   PAGE TOOLBAR
============================== */
.page-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.filter-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 13px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}
.filter-select:focus {
  border-color: var(--accent-purple);
}

.filter-group {
  display: flex;
  gap: 10px;
  flex: 1;
  flex-wrap: wrap;
}

.view-toggle {
  display: flex;
  gap: 4px;
  margin-right: auto;
}
.view-btn {
  width: 34px;
  height: 34px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.view-btn:hover {
  color: var(--text-white);
  border-color: var(--accent-purple);
}
.view-btn.active {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  color: #fff;
}

/* ==============================
   KANBAN BOARD
============================== */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}

.kanban-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 200px;
}

.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.kanban-col-header.todo {
  color: var(--text-secondary);
  border-top: 3px solid var(--text-muted);
}
.kanban-col-header.inprogress {
  color: var(--accent-blue);
  border-top: 3px solid var(--accent-blue);
}
.kanban-col-header.review {
  color: var(--accent-orange);
  border-top: 3px solid var(--accent-orange);
}
.kanban-col-header.done {
  color: var(--accent-green);
  border-top: 3px solid var(--accent-green);
}

.col-count {
  background: var(--bg-input);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  color: var(--text-muted);
}

.kanban-cards {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kanban-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.kanban-card:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.15);
  transform: translateY(-1px);
}

.kc-category {
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 6px;
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-purple);
}
.kc-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 8px;
  line-height: 1.4;
}
.kc-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.5;
}
.kc-progress {
  margin-bottom: 10px;
}
.kc-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.kc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kc-assignee {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-secondary);
}
.kc-avatar {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
}
.kc-due {
  font-size: 10px;
  color: var(--text-muted);
}
.kc-due.overdue {
  color: var(--accent-red);
}

/* ==============================
   LIST VIEW TABLE
============================== */
.task-list-view {
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.data-table th {
  background: var(--bg-input);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  text-align: right;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:last-child td {
  border-bottom: none;
}
.data-table tbody tr {
  transition: var(--transition);
}
.data-table tbody tr:hover {
  background: var(--bg-hover);
}

.status-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.sb-todo {
  background: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
}
.sb-in_progress {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
}
.sb-review {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-orange);
}
.sb-done {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}

.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.action-btn:hover {
  background: var(--bg-hover);
  color: var(--text-white);
}

/* ==============================
   PROJECTS GRID (Page)
============================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
}
.project-card:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.12);
  transform: translateY(-2px);
}

.pc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}
.pc-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 3px;
}
.pc-client {
  font-size: 12px;
  color: var(--text-muted);
}
.pc-body {
  margin-bottom: 14px;
}
.pc-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}
.pc-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.pc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pc-team {
  display: flex;
  gap: -4px;
}

.team-avatar {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  border: 2px solid var(--bg-card);
  margin-left: -4px;
}

.pc-due {
  font-size: 11px;
  color: var(--text-muted);
}
.pc-due i {
  margin-left: 4px;
}

/* ==============================
   EMPLOYEES GRID
============================== */
.employees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.employee-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}
.employee-card:hover {
  border-color: var(--accent-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.ec-avatar {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 12px;
  position: relative;
}
.ec-status-dot {
  position: absolute;
  bottom: -2px;
  left: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}

.ec-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 2px;
}
.ec-role {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.ec-dept {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 14px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-purple);
}

.ec-perf-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 5px;
  text-align: right;
}
.ec-perf-bar {
  height: 5px;
  background: var(--bg-input);
  border-radius: 10px;
  overflow: hidden;
}
.ec-perf-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-teal));
}

.ec-email {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ==============================
   ACTIVITY PAGE
============================== */
.activity-page-layout {
  display: flex;
  gap: 20px;
}
.activity-side {
  width: 300px;
  flex-shrink: 0;
}

.team-performance-list {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tp-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tp-rank {
  width: 22px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
}
.tp-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.tp-info {
  flex: 1;
}
.tp-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 4px;
}
.tp-bar-wrap {
  height: 5px;
  background: var(--bg-input);
  border-radius: 10px;
  overflow: hidden;
}
.tp-bar-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
}
.tp-score {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
  white-space: nowrap;
}

/* ==============================
   MODALS
============================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 520px;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.2s ease;
}
.modal-lg {
  width: 680px;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-header h3 i {
  color: var(--accent-purple);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.modal-close:hover {
  background: var(--bg-hover);
  color: var(--text-white);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}
.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-left;
  gap: 10px;
}

/* FORMS */
.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 13px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-purple);
}

/* datetime-local dark-mode fix */
.form-group input[type='datetime-local'] {
  color-scheme: dark;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input[type='datetime-local']::-webkit-calendar-picker-indicator {
  filter: invert(0.7) sepia(1) saturate(3) hue-rotate(170deg);
  cursor: pointer;
  opacity: 0.8;
}
.form-group
  input[type='datetime-local']::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-cancel {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 13px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}
.btn-cancel:hover {
  background: var(--bg-hover);
  color: var(--text-white);
}

.btn-save {
  background: var(--accent-purple);
  border: none;
  color: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-save:hover {
  background: #5254cc;
}

/* ==============================
   AI GENERATE DESC BUTTON  v8.42
============================== */
.btn-ai-generate {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(
    135deg,
    rgba(69, 214, 255, 0.12),
    rgba(162, 108, 246, 0.12)
  );
  border: 1px solid rgba(69, 214, 255, 0.35);
  color: var(--nexora-cyan);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-ai-generate:hover:not(:disabled) {
  background: linear-gradient(
    135deg,
    rgba(69, 214, 255, 0.22),
    rgba(162, 108, 246, 0.22)
  );
  border-color: rgba(69, 214, 255, 0.6);
  box-shadow: 0 0 10px rgba(69, 214, 255, 0.2);
  transform: translateY(-1px);
}
.btn-ai-generate:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn-ai-generate .btn-ai-label {
  font-size: 11px;
}

/* shimmer Ø¹Ù„Ù‰ Ø§Ù„Ù€ textarea Ø£Ø«Ù†Ø§Ø¡ Ø§Ù„ØªÙˆÙ„ÙŠØ¯ */
@keyframes aiShimmer {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 400px 0;
  }
}
.ai-generating {
  background: linear-gradient(
    90deg,
    var(--bg-input) 25%,
    rgba(69, 214, 255, 0.07) 50%,
    var(--bg-input) 75%
  ) !important;
  background-size: 800px 100% !important;
  animation: aiShimmer 1.4s infinite linear !important;
  color: var(--text-muted) !important;
}

/* ==============================
   TASK DETAIL MODAL BODY
============================== */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.detail-item label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}
.detail-item p {
  font-size: 13px;
  color: var(--text-primary);
}
.detail-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 12px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
}
.detail-update-status select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 13px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  outline: none;
}

/* ==============================
   TOAST
============================== */
.toast {
  display: none;
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #1d3557;
  border: 1px solid var(--accent-purple);
  color: var(--text-white);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  /* v8.31: Ø£Ø¹Ù„Ù‰ z-index ÙÙŠ Ø§Ù„ØªØ·Ø¨ÙŠÙ‚ â€” ÙŠØ¸Ù‡Ø± ÙÙˆÙ‚ ÙƒÙ„ Ø§Ù„Ù†ÙˆØ§ÙØ° ÙˆØ§Ù„Ù€ modals */
  z-index: 2147483647;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.3);
  animation: toastIn 0.3s ease;
  pointer-events: none;
}
.toast.show {
  display: block;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ==============================
   DEPT COLOR HELPERS
============================== */
.dept-SEO {
  background: linear-gradient(135deg, #064e3b, #10b981);
}
.dept-Design {
  background: linear-gradient(135deg, #312e81, #6366f1);
}
.dept-Motion {
  background: linear-gradient(135deg, #78350f, #f59e0b);
}
.dept-Social {
  background: linear-gradient(135deg, #831843, #ec4899);
}
.dept-Content {
  background: linear-gradient(135deg, #1e3a5f, #3b82f6);
}
.dept-Web {
  background: linear-gradient(135deg, #134e4a, #14b8a6);
}
.dept-Management {
  background: linear-gradient(135deg, #7c2d12, #f97316);
}

/* ==============================
   HIDDEN / UTILITY
============================== */
.hidden {
  display: none !important;
}

/* ==============================
   DEPT VISIBILITY DOT (sidebar)
============================== */
.dept-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ==============================
   SIDEBAR MOBILE OVERLAY
============================== */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 499;
}
.sidebar-overlay.show {
  display: block;
}

/* ==============================
   SIDEBAR MOBILE OVERLAY â€” already defined above, skip duplicate
============================== */

/* ======================================================
   SPECIALIST PAGE â€” Ù‚Ø³Ù… Ø§Ù„Ù…ØªØ®ØµØµ
====================================================== */
.spec-dept-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 20px;
}

.spec-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  min-width: 80px;
  border: 1px solid var(--border);
}
.spec-stat span {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.2;
}
.spec-stat label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  white-space: nowrap;
}

.spec-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* â”€â”€ Specialist Task Card â”€â”€ */
.spec-task-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.spec-task-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: var(--text-muted);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.spec-task-card.in_progress::before {
  background: var(--nexora-cyan);
}
.spec-task-card.submitted::before {
  background: var(--accent-orange);
}
.spec-task-card.pending_review::before {
  background: var(--accent-purple);
}
.spec-task-card.approved::before {
  background: var(--accent-green);
}
.spec-task-card.reopened::before {
  background: var(--accent-red);
}

.spec-task-card.locked::before {
  background: #94a3b8;
}

.spec-task-card.ready::before {
  background: var(--nexora-cyan);
}

.spec-flow-waiting {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 12px;
  font-weight: 800;
}
.spec-task-card:hover {
  border-color: rgba(69, 214, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.spec-task-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.spec-task-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.4;
  margin-bottom: 4px;
}

.spec-task-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.spec-task-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  border-right: 3px solid var(--border);
}

.spec-task-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* â”€â”€ Specialist Buttons â”€â”€ */
.spec-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.spec-btn:hover {
  transform: translateY(-1px);
}

.spec-btn-start {
  background: linear-gradient(135deg, #064e3b, #10d9a0);
  color: #fff;
}
.spec-btn-submit {
  background: linear-gradient(135deg, #78350f, #f59e0b);
  color: #fff;
}
.spec-btn-update {
  background: linear-gradient(135deg, #0c2340, #2f7fe0);
  color: #fff;
}
.spec-btn-update:hover {
  background: linear-gradient(135deg, #1a3a5c, #45d6ff);
}
.spec-btn-comment {
  background: var(--bg-input);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.spec-btn-comment:hover {
  border-color: var(--nexora-cyan);
  color: var(--nexora-cyan);
}
.spec-btn-approve {
  background: linear-gradient(135deg, #064e3b, #10d9a0);
  color: #fff;
}
.spec-btn-reopen {
  background: linear-gradient(135deg, #7f1d1d, #ef4444);
  color: #fff;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MULTI-ASSIGNEE WIDGET
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.multi-assignee-box {
  min-height: 42px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: text;
  transition: border-color 0.2s;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.multi-assignee-box:focus-within {
  border-color: var(--accent-purple);
}
.multi-assignee-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.ma-placeholder {
  font-size: 12px;
  color: var(--text-muted);
  pointer-events: none;
}
.ma-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(
    135deg,
    rgba(168, 108, 246, 0.18),
    rgba(69, 214, 255, 0.12)
  );
  border: 1px solid rgba(168, 108, 246, 0.35);
  border-radius: 20px;
  padding: 3px 10px 3px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-white);
  animation: fadeIn 0.15s ease;
}
.ma-tag .ma-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--nexora-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.ma-tag .ma-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 1;
  padding: 0 0 0 2px;
  transition: color 0.15s;
}
.ma-tag .ma-remove:hover {
  color: var(--accent-red);
}

.ma-flow-order {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(69, 214, 255, 0.14);
  color: var(--nexora-cyan);
  border: 1px solid rgba(69, 214, 255, 0.28);
  font-size: 11px;
  font-weight: 900;
}

.ma-move-group {
  display: inline-flex;
  gap: 3px;
  margin-inline-start: 4px;
}

.ma-move-btn {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1px solid rgba(69, 214, 255, 0.22);
  background: rgba(69, 214, 255, 0.08);
  color: var(--nexora-cyan);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  font-size: 10px;
}

.ma-move-btn:hover {
  background: rgba(69, 214, 255, 0.16);
  transform: translateY(-1px);
}

.workflow-mode-hint {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}

.task-execution-plan-group {
  border: 1px solid rgba(69, 214, 255, 0.18);
  border-radius: 16px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.06), rgba(168, 108, 246, 0.05)),
    rgba(8, 22, 46, 0.22);
}

.task-execution-plan {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.task-execution-plan-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px dashed rgba(69, 214, 255, 0.28);
  border-radius: 14px;
  color: var(--text-muted);
  background: rgba(69, 214, 255, 0.05);
  font-size: 12px;
  font-weight: 800;
}

.task-execution-plan-empty i {
  color: var(--nexora-cyan);
}

.task-execution-step {
  display: grid;
  grid-template-columns: minmax(170px, 0.85fr) minmax(280px, 1.8fr);
  gap: 12px;
  align-items: stretch;
  border: 1px solid rgba(69, 214, 255, 0.18);
  border-radius: 16px;
  padding: 12px;
  background: rgba(6, 18, 38, 0.54);
}

.task-execution-step-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.task-execution-step-num {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.12);
  border: 1px solid rgba(69, 214, 255, 0.25);
  font-size: 12px;
  font-weight: 900;
}

.task-execution-step-main strong {
  display: block;
  color: var(--text-white);
  font-size: 13px;
  font-weight: 900;
}

.task-execution-step-main small {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}

.task-execution-step-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
}

.task-execution-step-controls label {
  display: grid;
  gap: 6px;
}

.task-execution-step-controls label > span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 900;
}

.task-execution-step-controls input,
.task-execution-step-controls select {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(69, 214, 255, 0.18);
  background: rgba(8, 22, 46, 0.8);
  color: var(--text-white);
  padding: 0 12px;
  font-family: var(--font);
  font-weight: 800;
}

.task-duration-inline {
  display: grid;
  grid-template-columns: minmax(72px, 0.8fr) minmax(80px, 1fr);
  gap: 6px;
}

.task-execution-note {
  grid-column: 1 / -1;
}

.task-sequential-step-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.task-sequential-step-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10px;
  font-weight: 800;
}

.task-sequential-step-meta i {
  color: var(--nexora-cyan);
}

[data-theme='light'] .task-execution-plan-group,
[data-theme='light'] .task-execution-step {
  background: rgba(255, 255, 255, 0.78);
}

[data-theme='light'] .task-execution-step-main strong {
  color: #1e293b;
}

[data-theme='light'] .task-execution-step-controls input,
[data-theme='light'] .task-execution-step-controls select {
  background: rgba(248, 252, 255, 0.92);
  color: #1e293b;
}

@media (max-width: 760px) {
  .task-execution-step {
    grid-template-columns: 1fr;
  }

  .task-execution-step-controls {
    grid-template-columns: 1fr;
  }
}
.ma-search {
  background: none !important;
  border: none !important;
  outline: none !important;
  padding: 2px 4px !important;
  font-size: 12px !important;
  color: var(--text-white) !important;
  min-width: 140px;
  flex: 1;
}
.ma-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  z-index: 9999;
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
}
.ma-dropdown::-webkit-scrollbar {
  width: 4px;
}
.ma-dropdown::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
.ma-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 12px;
}
.ma-item:hover {
  background: rgba(168, 108, 246, 0.12);
}
.ma-item.selected {
  background: rgba(69, 214, 255, 0.08);
  opacity: 0.5;
  pointer-events: none;
}
.ma-item .ma-item-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--nexora-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.ma-item-name {
  font-weight: 600;
  color: var(--text-white);
}
.ma-item-dept {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px;
}
.ma-item-role {
  margin-right: auto;
  font-size: 10px;
}
.ma-empty {
  text-align: center;
  padding: 16px;
  color: var(--text-muted);
  font-size: 12px;
}
/* parent group must be relative for dropdown positioning */
.form-group.ma-parent {
  position: relative;
}

/* â”€â”€ v8.11: Task Read-Only Row & Badge â”€â”€ */
/* ØµÙ Ø§Ù„Ù…Ù‡Ù…Ø© Ø§Ù„ØªÙŠ ÙŠØ±Ø§Ù‡Ø§ Ø§Ù„Ù…Ø®ØªØµ Ù„Ù„Ø§Ø·Ù„Ø§Ø¹ ÙÙ‚Ø· */
tr.task-row-readonly {
  opacity: 0.72;
  transition: opacity 0.15s;
}
tr.task-row-readonly:hover {
  opacity: 0.88;
  background: rgba(100, 116, 139, 0.05);
}
/* Ø´Ø§Ø±Ø© "Ø§Ø·Ù„Ø§Ø¹" Ø§Ù„ØµØºÙŠØ±Ø© Ø¨Ø¬Ø§Ù†Ø¨ Ø¹Ù†ÙˆØ§Ù† Ø§Ù„Ù…Ù‡Ù…Ø© */
.task-readonly-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 7px;
  margin-right: 6px;
  vertical-align: middle;
  letter-spacing: 0.3px;
}
.task-readonly-badge i {
  font-size: 8px;
}

/* â”€â”€ Review Note Banner â”€â”€ */
.review-note-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #fca5a5;
}
.review-note-banner i {
  color: var(--accent-red);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}
.review-note-banner.approved {
  background: rgba(16, 217, 160, 0.07);
  border-color: rgba(16, 217, 160, 0.25);
  color: #6ee7b7;
}
.review-note-banner.approved i {
  color: var(--accent-green);
}

/* â”€â”€ Review Panel (Admin) â”€â”€ */
.review-panel {
  background: rgba(168, 108, 246, 0.06);
  border: 1px solid rgba(168, 108, 246, 0.2);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
}
.review-panel-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-purple);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}

/* â”€â”€ Workflow Badges â”€â”€ */
.wf-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.wf-submitted {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.wf-review,
.wf-pending_review {
  background: rgba(168, 108, 246, 0.12);
  color: #c4b5fd;
  border: 1px solid rgba(168, 108, 246, 0.2);
}
.wf-approved {
  background: rgba(16, 217, 160, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(16, 217, 160, 0.2);
}
.wf-reopened {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.wf-todo {
  background: rgba(100, 116, 139, 0.12);
  color: var(--text-secondary);
  border: 1px solid rgba(100, 116, 139, 0.2);
}
.wf-in_progress {
  background: rgba(69, 214, 255, 0.1);
  color: var(--nexora-cyan);
  border: 1px solid rgba(69, 214, 255, 0.2);
}

/* â”€â”€ Comment Count Badge â”€â”€ */
.comment-count-badge {
  background: var(--accent-purple);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* ======================================================
   COMMENTS SECTION
====================================================== */
.comments-section {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 4px;
}

.comments-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 14px;
}
.comments-count {
  background: var(--accent-purple);
  color: #fff;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 10px;
  font-weight: 700;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  padding-left: 4px;
  margin-bottom: 14px;
}

/* â”€â”€ Comment Item â”€â”€ */
.comment-item {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.comment-item.comment-admin {
  border-color: rgba(69, 214, 255, 0.15);
  background: rgba(69, 214, 255, 0.03);
}
.comment-item.comment-me {
  border-color: rgba(168, 108, 246, 0.2);
}
.comment-item:hover {
  border-color: rgba(69, 214, 255, 0.25);
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.comment-body {
  flex: 1;
  min-width: 0;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.comment-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
}

.comment-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-right: auto;
}

.comment-role-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}
.crb-admin {
  background: rgba(69, 214, 255, 0.12);
  color: var(--nexora-cyan);
}
.crb-member {
  background: rgba(143, 163, 204, 0.1);
  color: var(--text-secondary);
}

.comment-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

/* â”€â”€ Comment Input â”€â”€ */
.comment-input-wrap {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--bg-base);
  border-radius: var(--radius-md);
  padding: 12px;
  border: 1px solid var(--border);
}
.comment-input-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.comment-input-box {
  flex: 1;
}
.comment-input-box textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 13px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  outline: none;
  resize: vertical;
  min-height: 64px;
  transition: var(--transition);
}
.comment-input-box textarea:focus {
  border-color: var(--nexora-cyan);
}
.comment-input-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

/* ======================================================
   NEXORA CUSTOM DIALOG  (replaces browser confirm/prompt)
====================================================== */
.ndlg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 20, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ndlgFadeIn 0.15s ease;
}
@keyframes ndlgFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.ndlg-box {
  background: var(--bg-card, #141929);
  border: 1px solid rgba(69, 214, 255, 0.18);
  border-radius: 16px;
  padding: 0;
  width: 360px;
  max-width: calc(100vw - 32px);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(69, 214, 255, 0.08);
  animation: ndlgSlideUp 0.18s cubic-bezier(0.34, 1.4, 0.64, 1);
  overflow: hidden;
}
@keyframes ndlgSlideUp {
  from {
    transform: translateY(18px) scale(0.97);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
.ndlg-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid rgba(69, 214, 255, 0.1);
  background: linear-gradient(
    135deg,
    rgba(69, 214, 255, 0.06) 0%,
    rgba(168, 108, 246, 0.06) 100%
  );
}
.ndlg-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--nexora-grad, linear-gradient(135deg, #45d6ff, #a86cf6));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}
.ndlg-brand {
  font-family: var(--font, 'Cairo', sans-serif);
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(90deg, #45d6ff, #a86cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}
.ndlg-message {
  font-family: var(--font, 'Cairo', sans-serif);
  font-size: 14px;
  color: var(--text-primary, #c8d4f0);
  line-height: 1.65;
  padding: 18px 20px 6px;
  white-space: pre-wrap;
  direction: rtl;
  text-align: right;
}
.ndlg-input-wrap {
  padding: 4px 20px 6px;
}
.ndlg-input {
  width: 100%;
  background: var(--bg-input, #1a2038);
  border: 1px solid rgba(69, 214, 255, 0.22);
  border-radius: 9px;
  color: var(--text-primary, #c8d4f0);
  font-family: var(--font, 'Cairo', sans-serif);
  font-size: 13px;
  padding: 9px 13px;
  outline: none;
  direction: rtl;
  text-align: right;
  transition: border-color 0.2s;
}
.ndlg-input:focus {
  border-color: var(--nexora-cyan, #45d6ff);
  box-shadow: 0 0 0 3px rgba(69, 214, 255, 0.1);
}
.ndlg-actions {
  display: flex;
  gap: 10px;
  padding: 14px 20px 18px;
  justify-content: flex-start;
  flex-direction: row-reverse;
}
.ndlg-btn {
  font-family: var(--font, 'Cairo', sans-serif);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 22px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  min-width: 80px;
}
.ndlg-btn-ok {
  background: var(--nexora-grad, linear-gradient(135deg, #45d6ff, #a86cf6));
  color: #fff;
}
.ndlg-btn-ok:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
.ndlg-btn-cancel {
  background: var(--bg-input, #1a2038);
  color: var(--text-secondary, #8892aa);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.07));
}
.ndlg-btn-cancel:hover {
  background: var(--bg-hover, #1e2640);
  color: var(--text-white, #fff);
}
/* danger variant â€” confirm destructive actions */
.ndlg-box.danger .ndlg-btn-ok {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}
.ndlg-box.danger .ndlg-header {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.08) 0%,
    rgba(185, 28, 28, 0.06) 100%
  );
  border-bottom-color: rgba(239, 68, 68, 0.15);
}
.ndlg-box.danger .ndlg-logo {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}

/* ======================================================
   SPECIALIST NAV ITEM â€” pink accent
====================================================== */
#specialistNavItem.active {
  background: linear-gradient(
    90deg,
    rgba(236, 72, 153, 0.15) 0%,
    transparent 100%
  );
  border-right: 2px solid #ec4899;
  color: #ec4899;
}
#specialistNavItem.active i {
  color: #ec4899;
}

/* â”€â”€ Specialist role badge â”€â”€ */
.rb-specialist {
  background: rgba(236, 72, 153, 0.12);
  color: #ec4899;
  border: 1px solid rgba(236, 72, 153, 0.25);
}

/* ======================================================
   MODAL â€” Large Size
====================================================== */
.modal-lg {
  width: 680px;
  max-width: 96vw;
}

/* ======================================================
   KANBAN CARD â€” workflow badges inline
====================================================== */
.kc-category {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kc-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
  margin: 6px 0 4px;
  line-height: 1.4;
}
.kc-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.5;
}
.kc-progress {
  margin-bottom: 10px;
}
.kc-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.kc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.kc-assignee {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary);
}
.kc-avatar {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.kc-due {
  font-size: 11px;
  color: var(--text-muted);
}
.kc-due.overdue {
  color: var(--accent-red);
  font-weight: 700;
}

/* â”€â”€ Action Button â”€â”€ */
.action-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  cursor: pointer;
  font-size: 13px;
  transition: var(--transition);
}
.action-btn:hover {
  background: var(--bg-hover);
  color: var(--text-white);
  border-color: rgba(69, 214, 255, 0.3);
}

/* â”€â”€ Detail Grid â”€â”€ */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.detail-item label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 4px;
}
.detail-item p {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 600;
}
.detail-desc {
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.6;
  white-space: pre-wrap;
  unicode-bidi: plaintext;
  text-align: start;
}
/* ÙˆØµÙ Ø¨ØªÙ†Ø³ÙŠÙ‚ Ù†Øµ Ø¹Ø§Ø¯ÙŠ */
.detail-desc.plain-content {
  white-space: pre-wrap;
}
/* ÙˆØµÙ Ø¨ØªÙ†Ø³ÙŠÙ‚ HTML ØºÙ†ÙŠ (Quill / Ù…Ø­Ø±Ø± Ù†ØµÙˆØµ) */
.detail-desc.rich-content {
  white-space: normal;
}
.detail-desc.rich-content p,
.detail-desc.rich-content li {
  margin: 0 0 6px;
}
.detail-desc.rich-content h1 {
  font-size: 18px;
  font-weight: 700;
  margin: 10px 0 6px;
  color: var(--text-white);
}
.detail-desc.rich-content h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 8px 0 5px;
  color: var(--text-white);
}
.detail-desc.rich-content h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 6px 0 4px;
  color: var(--text-white);
}
.detail-desc.rich-content strong {
  font-weight: 700;
}
.detail-desc.rich-content em {
  font-style: italic;
}
.detail-desc.rich-content u {
  text-decoration: underline;
}
.detail-desc.rich-content s {
  text-decoration: line-through;
}
.detail-desc.rich-content a {
  color: var(--nexora-cyan);
  text-decoration: underline;
}
.detail-desc.rich-content ul,
.detail-desc.rich-content ol {
  padding-right: 20px;
  margin: 4px 0 8px;
}
.detail-desc.rich-content ul {
  list-style: disc;
}
.detail-desc.rich-content ol {
  list-style: decimal;
}
.detail-desc.rich-content blockquote {
  border-right: 3px solid var(--nexora-cyan);
  padding: 6px 12px;
  margin: 8px 0;
  background: rgba(69, 214, 255, 0.05);
  color: var(--text-secondary);
  border-radius: 0 6px 6px 0;
}
.detail-desc.rich-content .ql-size-small {
  font-size: 11px;
}
.detail-desc.rich-content .ql-size-large {
  font-size: 16px;
}
.detail-desc.rich-content .ql-size-huge {
  font-size: 20px;
}
.detail-desc.rich-content .ql-align-center {
  text-align: center;
}
.detail-desc.rich-content .ql-align-left {
  text-align: left;
}
.detail-desc.rich-content .ql-align-right {
  text-align: right;
}

/* Ø²Ø± ØªØ¹Ø¯ÙŠÙ„ ØªÙØ§ØµÙŠÙ„ Ø§Ù„Ù…Ù‡Ù…Ø© */
.btn-edit-details {
  background: linear-gradient(
    135deg,
    rgba(168, 108, 246, 0.15),
    rgba(69, 214, 255, 0.12)
  );
  border: 1px solid rgba(168, 108, 246, 0.4);
  color: #c4b5fd;
  gap: 6px;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}
.btn-edit-details:hover {
  background: linear-gradient(
    135deg,
    rgba(168, 108, 246, 0.28),
    rgba(69, 214, 255, 0.2)
  );
  border-color: rgba(168, 108, 246, 0.7);
  color: #e9d5ff;
  transform: translateY(-1px);
}

/* â”€â”€ Priority Badges â”€â”€ */
.priority-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
}
.pb-urgent {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.pb-high {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.pb-medium {
  background: rgba(69, 214, 255, 0.1);
  color: var(--nexora-cyan);
  border: 1px solid rgba(69, 214, 255, 0.2);
}
.pb-low {
  background: rgba(143, 163, 204, 0.1);
  color: var(--text-secondary);
  border: 1px solid rgba(143, 163, 204, 0.2);
}

/* â”€â”€ Priority Dot â”€â”€ */
.priority-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.p-urgent {
  background: var(--accent-red);
}
.p-high {
  background: var(--accent-orange);
}
.p-medium {
  background: var(--nexora-cyan);
}
.p-low {
  background: var(--text-muted);
}

/* â”€â”€ Urgent Tasks â”€â”€ */
.urgent-task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 6px;
}
.urgent-task-item:hover {
  border-color: rgba(69, 214, 255, 0.2);
  transform: translateX(-2px);
}
.ut-info {
  flex: 1;
  min-width: 0;
}
.ut-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ut-sub {
  font-size: 11px;
  color: var(--text-muted);
}
.ut-assignee {
  font-size: 11px;
  color: var(--text-secondary);
}

/* â”€â”€ Activity Feed Items â”€â”€ */
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(30, 46, 85, 0.6);
}
.act-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.act-body {
  flex: 1;
  min-width: 0;
}
.act-body p {
  font-size: 12px;
  color: var(--text-primary);
  line-height: 1.5;
}
.act-body span {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.act-dept-badge {
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 10px;
  background: var(--bg-active);
  color: var(--text-secondary);
}

/* â”€â”€ Performance list â”€â”€ */
.tp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.tp-item:hover {
  background: var(--bg-hover);
}
.tp-rank {
  width: 24px;
  font-size: 15px;
  text-align: center;
  flex-shrink: 0;
}
.tp-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.tp-info {
  flex: 1;
  min-width: 0;
}
.tp-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 4px;
}
.tp-bar-wrap {
  height: 4px;
  background: var(--bg-input);
  border-radius: 10px;
  overflow: hidden;
}
.tp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-teal));
  border-radius: 10px;
  transition: width 0.8s ease;
}
.tp-score {
  font-size: 12px;
  font-weight: 700;
  color: var(--nexora-cyan);
  flex-shrink: 0;
}

/* â”€â”€ Employee Card â”€â”€ */
.employee-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
  text-align: center;
}
.employee-card:hover {
  border-color: rgba(69, 214, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.ec-avatar {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 10px;
  position: relative;
}
.ec-status-dot {
  position: absolute;
  bottom: -2px;
  left: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}
.ec-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 3px;
}
.ec-role {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 3px;
}
.ec-dept {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.ec-email {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  direction: ltr;
  text-align: center;
}
.ec-perf-bar {
  height: 5px;
  background: var(--bg-input);
  border-radius: 10px;
  overflow: hidden;
}
.ec-perf-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-teal));
  border-radius: 10px;
}

/* â”€â”€ Project Card â”€â”€ */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: var(--transition);
}
.project-card:hover {
  border-color: rgba(69, 214, 255, 0.2);
  box-shadow: var(--shadow-sm);
}
.pc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.pc-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 3px;
}
.pc-client {
  font-size: 12px;
  color: var(--text-muted);
}
.pc-body {
  margin-bottom: 10px;
}
.pc-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.5;
}
.pc-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.pc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}
.pc-team {
  display: flex;
  gap: 4px;
}
.pc-due {
  font-size: 12px;
  color: var(--text-muted);
}
.team-avatar {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  border: 2px solid var(--bg-card);
}

/* â”€â”€ Status Badges â”€â”€ */
.status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
}
.sb-todo {
  background: rgba(74, 96, 138, 0.2);
  color: var(--text-muted);
}
.sb-in_progress {
  background: rgba(69, 214, 255, 0.1);
  color: var(--nexora-cyan);
}
.sb-review {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
}
.sb-done {
  background: rgba(16, 217, 160, 0.1);
  color: var(--accent-green);
}

/* â”€â”€ Tags â”€â”€ */
.tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
}
.tag-active {
  background: rgba(16, 217, 160, 0.1);
  color: var(--accent-green);
}
.tag-completed {
  background: rgba(69, 214, 255, 0.1);
  color: var(--nexora-cyan);
}
.tag-on_hold {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
}
.tag-cancelled {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
}

/* â”€â”€ Progress Bars â”€â”€ */
.progress-bar {
  height: 6px;
  background: var(--bg-hover);
  border-radius: 10px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--nexora-cyan), var(--nexora-blue));
  transition: width 0.5s ease;
}
.progress-fill.green {
  background: linear-gradient(90deg, var(--accent-green), var(--accent-teal));
}
.progress-fill.orange {
  background: linear-gradient(90deg, #f97316, var(--accent-orange));
}

/* â”€â”€ Department Color Classes â”€â”€ */
.dept-SEO {
  background: linear-gradient(135deg, #064e3b, #10d9a0);
}
.dept-Design {
  background: linear-gradient(135deg, #3b0764, #a86cf6);
}
.dept-Motion {
  background: linear-gradient(135deg, #78350f, #f59e0b);
}
.dept-Social {
  background: linear-gradient(135deg, #831843, #ec4899);
}
.dept-Content {
  background: linear-gradient(135deg, #0c2340, #45d6ff);
}
.dept-Web {
  background: linear-gradient(135deg, #0c2340, #2f7fe0);
}
.dept-Management {
  background: linear-gradient(135deg, #7c2d12, #f97316);
}
.dept-Performance {
  background: linear-gradient(135deg, #1e1b4b, #6366f1);
}
.dept-Analytics {
  background: linear-gradient(135deg, #083344, #22d3ee);
}

/* â”€â”€ Data Table â”€â”€ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table thead {
  background: var(--bg-input);
}
.data-table th {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: right;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(30, 46, 85, 0.5);
  color: var(--text-primary);
  text-align: right;
}
.data-table tr:hover td {
  background: var(--bg-hover);
}

/* â”€â”€ Notification badges â”€â”€ */
.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}
.badge-red {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
}

/* â”€â”€ Dashboard project row â”€â”€ */
.project-row {
  padding: 12px 0;
  border-bottom: 1px solid rgba(30, 46, 85, 0.6);
}
.project-row:last-child {
  border-bottom: none;
}
.project-row-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.proj-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
}
.proj-meta {
  font-size: 11px;
  color: var(--text-muted);
}
.project-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}

/* â”€â”€ Nav Labels â”€â”€ */
.nav-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 14px 4px;
}

/* â”€â”€ Current User Widget â”€â”€ */
.current-user-widget {
  display: flex;
  align-items: center;
  gap: 9px;
}
.cuw-avatar {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--nexora-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.cuw-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.2;
}
.cuw-role {
  font-size: 11px;
  color: var(--nexora-cyan);
}

/* â”€â”€ Department dot â”€â”€ */
.dept-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* â”€â”€ Kanban Cards Container â”€â”€ */
.kanban-cards {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* â”€â”€ Kanban Card â”€â”€ */
.kanban-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  transition: var(--transition);
}
.kanban-card:hover {
  border-color: rgba(69, 214, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

/* â”€â”€ Dept Nav Links â”€â”€ */
.dept-item {
  padding-right: 14px !important;
}
.dept-item.active {
  color: var(--nexora-cyan);
}

/* â”€â”€ Spinner â”€â”€ */
.login-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.login-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* â”€â”€ Login form extras â”€â”€ */
.login-footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 18px;
}
.login-footer span {
  color: var(--nexora-cyan);
  font-weight: 700;
}

/* â”€â”€ Sidebar overlay â”€â”€ */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 499;
  background: rgba(0, 0, 0, 0.55);
}
.sidebar-overlay.show {
  display: block;
}

/* â”€â”€ Admin Grid â”€â”€ */
.admin-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.col-3-admin {
  grid-column: 1 / -1;
}
.admin-grid .card.col-3 {
  grid-column: 1 / -1;
}
@media (max-width: 1100px) {
  .admin-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-grid .card.col-2 {
    grid-column: 1 / -1;
  }
}
@media (max-width: 700px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

.activity-full-feed {
  max-height: 520px;
  overflow-y: auto;
}

/* â”€â”€ Users Table â”€â”€ */
.users-table-wrap {
  overflow-x: auto;
}
.users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.users-table th {
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: right;
  border-bottom: 1px solid var(--border);
  background: var(--bg-input);
}
.users-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(30, 46, 85, 0.4);
  text-align: right;
}
.users-table tr:hover td {
  background: var(--bg-hover);
}

/* â”€â”€ Role Select â”€â”€ */
.role-select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition);
  cursor: pointer;
}
.role-select:focus {
  border-color: var(--nexora-cyan);
}

/* â”€â”€ Role Badges â”€â”€ */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.rb-admin {
  background: var(--nexora-grad);
  color: var(--nexora-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border: 1px solid rgba(69, 214, 255, 0.3);
}
/* v8.27: Ù…Ø¯ÙŠØ± Ù…Ø³Ø§Ø¹Ø¯ badge (users table) */
.rb-admin-assistant {
  background: rgba(16, 217, 160, 0.1);
  color: #10d9a0;
  border: 1px solid rgba(16, 217, 160, 0.3);
}
.rb-supervisor {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.rb-specialist {
  background: rgba(236, 72, 153, 0.12);
  color: #ec4899;
  border: 1px solid rgba(236, 72, 153, 0.25);
}
.rb-member {
  background: rgba(143, 163, 204, 0.1);
  color: var(--text-secondary);
  border: 1px solid rgba(143, 163, 204, 0.15);
}

/* â”€â”€ Dept Toggle â”€â”€ */
.dept-toggle-grid {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dept-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-primary);
}
.dept-name {
  display: flex;
  align-items: center;
  gap: 8px;
}
.toggle-switch {
  position: relative;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: var(--bg-hover);
  border-radius: 22px;
  transition: 0.3s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  right: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--nexora-cyan);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(-16px);
}

/* â”€â”€ Modal enhancements â”€â”€ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(8, 15, 34, 0.85);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.open {
  display: flex;
  z-index: 99999;
}

.modal {
  background: var(--bg-card);
  border: 1px solid rgba(69, 214, 255, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  width: 520px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.25s ease;
  scrollbar-width: thin;
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 2;
}
.modal-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 9px;
}
.modal-header h3 i {
  color: var(--nexora-cyan);
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.modal-close:hover {
  color: var(--text-white);
  background: var(--bg-hover);
}
.modal-body {
  padding: 18px 20px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  position: sticky;
  bottom: 0;
  background: var(--bg-card);
}

/* â”€â”€ Form Controls â”€â”€ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 13px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--nexora-cyan);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-cancel {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-cancel:hover {
  border-color: var(--text-muted);
  color: var(--text-white);
}

.btn-save {
  background: var(--accent-purple);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(168, 108, 246, 0.3);
}
.btn-save:hover {
  background: #9256e8;
  transform: translateY(-1px);
}

/* â”€â”€ Permission Denied â”€â”€ */
.permission-denied {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  gap: 12px;
  text-align: center;
}
.permission-denied i {
  font-size: 56px;
  color: rgba(168, 108, 246, 0.4);
}
.permission-denied h2 {
  font-size: 20px;
  color: var(--text-white);
}
.permission-denied p {
  font-size: 14px;
  color: var(--text-muted);
}

/* â”€â”€ Stat Cards â”€â”€ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-right: 3px solid var(--accent, var(--nexora-cyan));
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
}
.stat-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(69, 214, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--accent, var(--nexora-cyan));
  flex-shrink: 0;
}
.stat-body {
  flex: 1;
}
.stat-value {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.1;
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  display: block;
}
.stat-trend {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}
.stat-trend.up {
  background: rgba(16, 217, 160, 0.1);
  color: var(--accent-green);
}
.stat-trend.down {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
}
.stat-trend.neutral {
  background: rgba(74, 96, 138, 0.15);
  color: var(--text-muted);
}

/* â”€â”€ Dashboard Grid â”€â”€ */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

/* â”€â”€ Card Component â”€â”€ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card.col-1 {
  grid-column: span 1;
}
.card.col-2 {
  grid-column: span 2;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.card-header h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-header h2 i {
  color: var(--nexora-cyan);
}
.btn-link {
  background: none;
  border: none;
  color: var(--nexora-cyan);
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font);
}
.btn-link:hover {
  text-decoration: underline;
}

/* â”€â”€ Page Toolbar â”€â”€ */
.page-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.filter-select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 13px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}
.filter-select:focus {
  border-color: var(--accent-purple);
}

/* â”€â”€ Projects / Employees Grids â”€â”€ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.employees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

/* â”€â”€ Activity Page â”€â”€ */
.activity-page-layout {
  display: flex;
  gap: 20px;
}
.activity-side {
  width: 300px;
  flex-shrink: 0;
}

/* â”€â”€ Task List View â”€â”€ */
.task-list-view {
  overflow-x: auto;
}

/* â”€â”€ Hidden â”€â”€ */
.hidden {
  display: none !important;
}

/* ======================================================
   PROFILE AVATAR (large) â€” edit profile modal
====================================================== */
.profile-avatar-lg {
  width: 86px;
  height: 86px;
  border-radius: 20px;
  background: var(--nexora-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  border: 2px solid rgba(69, 214, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  cursor: pointer;
  transition: var(--transition);
}
.profile-avatar-lg:hover {
  border-color: var(--nexora-cyan);
  box-shadow: 0 4px 20px rgba(69, 214, 255, 0.2);
}

/* â”€â”€ Small icon button â”€â”€ */
.btn-icon-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--nexora-cyan);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font);
  transition: var(--transition);
}
.btn-icon-sm:hover {
  background: rgba(69, 214, 255, 0.08);
  border-color: rgba(69, 214, 255, 0.4);
}

/* â”€â”€ User Avatar (admin users table) â”€â”€ */
.ut-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* â”€â”€ Specialization badge in dept header â”€â”€ */
.spec-job-title {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 12px;
  margin-top: 4px;
  display: inline-block;
}

/* â”€â”€ Generated Password Display â”€â”€ */
.pwd-display-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}

/* â”€â”€ Sidebar user avatar hover ring â”€â”€ */
.user-avatar:hover {
  box-shadow: 0 0 0 2px var(--nexora-cyan);
}

/* â”€â”€ Change password first-time alert â”€â”€ */
#changePwdAlert.show {
  display: block !important;
}

/* â”€â”€ "must change" pulse â”€â”€ */
@keyframes mustChangePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
  }
}
.must-change-badge {
  animation: mustChangePulse 2s ease infinite;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* â”€â”€ Social links row in profile â”€â”€ */
.social-links-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  text-decoration: none;
  transition: var(--transition);
}
.social-link:hover {
  color: var(--nexora-cyan);
  border-color: rgba(69, 214, 255, 0.3);
}

/* â”€â”€ Add User Modal â€” Section Labels â”€â”€ */
.add-user-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

/* â”€â”€ Auto Department Badge â”€â”€ */
.auto-dept-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(69, 214, 255, 0.06);
  border: 1px solid rgba(69, 214, 255, 0.2);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  transition: var(--transition);
}
.auto-dept-badge i {
  color: var(--nexora-cyan);
  font-size: 12px;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SUPERVISOR DEPT GRID  v8.22
   Ø´Ø¨ÙƒØ© Ø§Ø®ØªÙŠØ§Ø± Ø§Ù„Ù‚Ø³Ù… Ø¹Ù†Ø¯ Ø¥Ø¶Ø§ÙØ© Ù…Ø´Ø±Ù
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.supervisor-dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.sdept-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.18s ease;
  background: var(--bg-input);
  font-size: 12px;
  color: var(--text-secondary);
  user-select: none;
}
.sdept-card:hover {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.05);
  color: var(--text-white);
}
.sdept-card.selected {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  font-weight: 700;
}
.sdept-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sdept-card.selected .sdept-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f59e0b;
  color: #000;
  font-size: 8px;
  margin-right: auto;
  flex-shrink: 0;
}
.sdept-check {
  display: none;
}

/* â”€â”€ Admin Assistant Picker Cards v8.27 â”€â”€ */
.aa-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.18s ease;
  background: var(--bg-input);
  font-size: 12px;
  color: var(--text-secondary);
  user-select: none;
}
.aa-user-card:hover {
  border-color: rgba(16, 217, 160, 0.45);
  background: rgba(16, 217, 160, 0.05);
  color: var(--text-white);
}
.aa-user-card.aa-selected {
  border-color: #10d9a0;
  background: rgba(16, 217, 160, 0.1);
  color: var(--text-white);
  font-weight: 600;
}
.aa-user-card.aa-selected .aa-check {
  opacity: 1 !important;
}
.aa-check {
  transition: opacity 0.18s;
}

/* Info box ØªØ¸Ù‡Ø± Ø¹Ù†Ø¯ Ø§Ø®ØªÙŠØ§Ø± supervisor â€” ØªÙˆØ¶Ø­ Ø§Ù„ØµÙ„Ø§Ø­ÙŠØ§Øª */
.supervisor-perm-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.supervisor-perm-info i {
  color: #f59e0b;
  font-size: 15px;
  margin-top: 2px;
  flex-shrink: 0;
}
.supervisor-perm-info ul {
  margin: 0;
  padding: 0 16px 0 0;
  list-style: disc;
}
.supervisor-perm-info li {
  margin-bottom: 2px;
}

/* Admin info box */
.admin-perm-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(69, 214, 255, 0.07);
  border: 1px solid rgba(69, 214, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.admin-perm-info i {
  color: var(--nexora-cyan);
  font-size: 15px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* â”€â”€ Admin Members Picker â€” v8.23 â”€â”€ */
.amembers-list {
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}
.amembers-list::-webkit-scrollbar {
  width: 5px;
}
.amembers-list::-webkit-scrollbar-track {
  background: transparent;
}
.amembers-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

.amember-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
  position: relative;
}
.amember-row:last-child {
  border-bottom: none;
}
.amember-row:hover {
  background: var(--bg-input);
}
.amember-row.selected {
  background: rgba(69, 214, 255, 0.06);
  border-right: 3px solid var(--nexora-cyan);
}

.amember-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--nexora-grad);
  color: #000;
}

.amember-info {
  flex: 1;
  min-width: 0;
}
.amember-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.amember-dept {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 1px;
}

.amember-check {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--nexora-cyan);
  color: #000;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
  margin-right: auto;
}
.amember-row.selected .amember-check {
  display: flex;
}

/* Ø¹Ø¯Ø§Ø¯ Ø§Ù„Ø£Ø¹Ø¶Ø§Ø¡ Ø§Ù„Ù…Ø®ØªØ§Ø±ÙŠÙ† */
.amembers-counter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.08);
  border: 1px solid rgba(69, 214, 255, 0.2);
  border-radius: 20px;
  padding: 2px 9px;
  font-weight: 600;
}

/* badge Ø¹Ø¯Ø¯ Ø§Ù„Ø£Ø¹Ø¶Ø§Ø¡ Ø§Ù„Ù…ÙØ¯Ø§Ø±ÙŠÙ† ÙÙŠ Ø¬Ø¯ÙˆÙ„ Ø§Ù„Ù…Ø³ØªØ®Ø¯Ù…ÙŠÙ† */
.managed-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  background: rgba(69, 214, 255, 0.08);
  border: 1px solid rgba(69, 214, 255, 0.2);
  border-radius: 12px;
  padding: 1px 7px;
  color: var(--nexora-cyan);
  margin-right: 6px;
  cursor: default;
}

/* â”€â”€ Optgroup styling â”€â”€ */
select optgroup {
  font-weight: 700;
  color: var(--nexora-cyan);
  background: var(--bg-card);
  font-size: 11px;
}
select option {
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-card);
}

/* â”€â”€ Employee Card spec badge â”€â”€ */
.ec-spec-badge {
  display: inline-block;
  font-size: 10px;
  background: rgba(69, 214, 255, 0.08);
  border: 1px solid rgba(69, 214, 255, 0.15);
  border-radius: 12px;
  padding: 2px 8px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* â”€â”€ Profile page â€” spec info â”€â”€ */
.profile-spec-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.profile-dept-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* â”€â”€ Workflow badge block-level variant â”€â”€ */
.wf-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
}

/* â”€â”€ specialist stats row â”€â”€ */
.spec-stat-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* â”€â”€ filter-group spacing â”€â”€ */
.filter-group {
  display: flex;
  gap: 10px;
  flex: 1;
  flex-wrap: wrap;
}
.view-toggle {
  display: flex;
  gap: 4px;
  margin-right: auto;
}
.view-btn {
  width: 34px;
  height: 34px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.view-btn:hover {
  color: var(--text-white);
  border-color: var(--nexora-cyan);
}
.view-btn.active {
  background: var(--nexora-cyan);
  border-color: var(--nexora-cyan);
  color: var(--bg-base);
}

/* â”€â”€ Kanban columns â”€â”€ */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: start;
}
.kanban-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 180px;
}
.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  border-top: 3px solid transparent;
}
.kanban-col-header.todo {
  color: var(--text-secondary);
  border-top-color: var(--text-muted);
}
.kanban-col-header.inprogress {
  color: var(--nexora-cyan);
  border-top-color: var(--nexora-cyan);
}
.kanban-col-header.review {
  color: var(--accent-orange);
  border-top-color: var(--accent-orange);
}
.kanban-col-header.done {
  color: var(--accent-green);
  border-top-color: var(--accent-green);
}
.col-count {
  background: var(--bg-input);
  color: var(--text-muted);
  padding: 1px 8px;
  border-radius: 20px;
  font-size: 11px;
}

/* â”€â”€ Sidebar styles â”€â”€ */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.25s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 100;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--border);
}
.logo-text {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-white);
  background: var(--nexora-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sidebar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 10px;
  background: var(--bg-input);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  transition: var(--transition);
}
.sidebar-search:focus-within {
  border-color: var(--nexora-cyan);
}
.sidebar-search i {
  color: var(--text-muted);
  font-size: 13px;
}
.sidebar-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 13px;
  width: 100%;
}
.sidebar-search input::placeholder {
  color: var(--text-muted);
}
.sidebar-nav {
  padding: 0 8px;
  flex: 1;
  overflow-y: auto;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  user-select: none;
}
.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-white);
}
.nav-item.active {
  background: linear-gradient(
    90deg,
    rgba(47, 127, 224, 0.22),
    rgba(168, 108, 246, 0.12)
  );
  border-right: 2px solid var(--nexora-cyan);
  color: var(--nexora-cyan);
  font-weight: 600;
}
.nav-item i {
  width: 18px;
  text-align: center;
  font-size: 14px;
  flex-shrink: 0;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  transition: var(--transition);
}
.sidebar-user:hover {
  background: var(--bg-hover);
}
.user-info {
  flex: 1;
  overflow: hidden;
}
.user-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-role {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}
.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  transition: var(--transition);
  background: var(--nexora-grad);
}
.user-avatar:hover {
  box-shadow: 0 0 0 2px var(--nexora-cyan);
}

/* â”€â”€ Main wrapper â”€â”€ */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}
.topbar {
  height: 54px;
  background: var(--bg-sidebar);
  border-bottom: 1px solid rgba(69, 214, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
  position: relative;
  z-index: 50;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.sidebar-toggle:hover {
  background: var(--bg-hover);
  color: var(--text-white);
}
.page-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
}
.content-area {
  flex: 1;
  overflow-y: auto;
  padding: 22px 24px;
  background: var(--bg-base);
  position: relative;
  display: flex;
  flex-direction: column;
}
/* page rules defined once above â€” no duplicate here */
@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* â”€â”€ Button add task â”€â”€ */
.btn-add-task {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--nexora-grad);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 2px 14px rgba(69, 214, 255, 0.2);
}
.btn-add-task:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(69, 214, 255, 0.35);
}

/* â”€â”€ Notification button â”€â”€ */
.notif-btn {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: var(--transition);
  font-size: 16px;
}
.notif-btn:hover {
  background: var(--bg-hover);
  color: var(--text-white);
}
.notif-dot {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  border: 2px solid var(--bg-sidebar);
}
.notif-dropdown {
  display: none;
  position: absolute;
  top: 50px;
  left: 10px;
  width: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  z-index: 200;
  padding: 10px 0;
}
.notif-dropdown.open {
  display: block;
  animation: modalIn 0.15s ease;
}
.notif-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
  padding: 6px 16px 10px;
  border-bottom: 1px solid var(--border);
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: var(--transition);
}
.notif-item:hover {
  background: var(--bg-hover);
}
.notif-item p {
  font-size: 12.5px;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 2px;
}
.notif-item span {
  font-size: 11px;
  color: var(--text-muted);
}
.notif-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.notif-icon.orange {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}
.notif-icon.green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}
.notif-icon.blue {
  background: rgba(69, 214, 255, 0.12);
  color: var(--nexora-cyan);
}

/* â”€â”€ current user widget â”€â”€ */
.current-user-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 5px 10px;
  cursor: default;
}
.cuw-avatar {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--nexora-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.cuw-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1;
}
.cuw-role {
  font-size: 10px;
  color: var(--nexora-cyan);
  font-weight: 600;
}

/* â”€â”€ perm-denied â”€â”€ */
.perm-denied {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  gap: 14px;
}
.perm-denied i {
  font-size: 48px;
  color: var(--accent-purple);
  opacity: 0.5;
}
.perm-denied h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
}
.perm-denied p {
  font-size: 13px;
  color: var(--text-muted);
}

/* â”€â”€ Kanban board add-btn â”€â”€ */
.kanban-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px;
  background: none;
  border: 1px dashed var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 6px;
}
.kanban-add-btn:hover {
  border-color: var(--nexora-cyan);
  color: var(--nexora-cyan);
}

/* ======================================================
   RESPONSIVE
====================================================== */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .kanban-board {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  :root {
    --sidebar-width: 220px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .card.col-2,
  .card.col-1 {
    grid-column: span 1;
  }
  .activity-page-layout {
    flex-direction: column;
  }
  .activity-side {
    width: 100%;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    overflow: auto;
  }
  .sidebar {
    position: fixed;
    right: -280px;
    top: 0;
    height: 100vh;
    z-index: 500;
    transition: right 0.3s ease;
  }
  .sidebar.open {
    right: 0;
  }
  .main-wrapper {
    width: 100%;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .kanban-board {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .spec-dept-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .content-area {
    padding: 14px 12px;
  }
  .topbar {
    padding: 0 12px;
  }
  .activity-page-layout {
    flex-direction: column;
  }
  .activity-side {
    width: 100%;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .employees-grid {
    grid-template-columns: 1fr 1fr;
  }
  .modal {
    width: 95vw;
  }
}

/* ======================================================
   MISSING / EXTRA STYLES
====================================================== */

/* â”€â”€ Specialist page header layout â”€â”€ */
.spec-dept-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

/* â”€â”€ Specialist stats boxes â”€â”€ */
.spec-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  min-width: 70px;
  text-align: center;
}
.spec-stat span {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-white);
}
.spec-stat label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
}

/* â”€â”€ Specialist tasks list â”€â”€ */
.spec-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* â”€â”€ Specialist task card â”€â”€ */
.spec-task-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  border-right: 4px solid var(--text-muted);
  transition: var(--transition);
}
.spec-task-card:hover {
  border-color: rgba(69, 214, 255, 0.25);
  border-right-color: var(--nexora-cyan);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.spec-task-card.in_progress {
  border-right-color: #45d6ff;
}
.spec-task-card.submitted {
  border-right-color: #f59e0b;
}
.spec-task-card.pending_review {
  border-right-color: #a86cf6;
}
.spec-task-card.approved {
  border-right-color: #10d9a0;
}
.spec-task-card.reopened {
  border-right-color: #ef4444;
}

/* â”€â”€ Specialist card internals â”€â”€ */
.spec-task-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.spec-task-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
}
.spec-task-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.spec-task-desc {
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-input);
  border-right: 3px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 10px;
  line-height: 1.6;
}
.spec-task-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* â”€â”€ Specialist buttons â”€â”€ */
.spec-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.spec-btn:hover {
  transform: translateY(-1px);
}
.spec-btn-start {
  background: linear-gradient(135deg, #064e3b, #10d9a0);
  color: #fff;
}
.spec-btn-submit {
  background: linear-gradient(135deg, #78350f, #f59e0b);
  color: #fff;
}
.spec-btn-update {
  background: linear-gradient(135deg, #0c2340, #2f7fe0);
  color: #fff;
}
.spec-btn-update:hover {
  background: linear-gradient(135deg, #1a3a5c, #45d6ff);
}
.spec-btn-comment {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.spec-btn-comment:hover {
  color: var(--nexora-cyan);
  border-color: rgba(69, 214, 255, 0.4);
}
.spec-btn-approve {
  background: linear-gradient(135deg, #064e3b, #10d9a0);
  color: #fff;
}
.spec-btn-reopen {
  background: linear-gradient(135deg, #7f1d1d, #ef4444);
  color: #fff;
}

/* â”€â”€ Review note banners â”€â”€ */
.review-note-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #fca5a5;
}
.review-note-banner i {
  color: var(--accent-red);
  flex-shrink: 0;
  margin-top: 2px;
}
.review-note-banner.approved {
  background: rgba(16, 217, 160, 0.07);
  border-color: rgba(16, 217, 160, 0.25);
  color: #6ee7b7;
}
.review-note-banner.approved i {
  color: var(--accent-green);
}

/* â”€â”€ Review panel (admin) â”€â”€ */
.review-panel {
  background: rgba(168, 108, 246, 0.06);
  border: 1px solid rgba(168, 108, 246, 0.2);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
}
.review-panel-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-purple);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}

/* â”€â”€ Workflow Badges (detailed) â”€â”€ */
.wf-submitted {
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.wf-review {
  background: rgba(168, 108, 246, 0.12);
  color: #c4b5fd;
  border: 1px solid rgba(168, 108, 246, 0.25);
}
.wf-approved {
  background: rgba(16, 217, 160, 0.1);
  color: #6ee7b7;
  border: 1px solid rgba(16, 217, 160, 0.25);
}
.wf-reopened {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* â”€â”€ Comment count badge â”€â”€ */
.comment-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-purple);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 10px;
  padding: 0 5px;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ANNOUNCEMENTS & ALERTS â€” v8.44
   Ù‚Ø³Ù… Ø§Ù„Ø¥Ø¹Ù„Ø§Ù†Ø§Øª ÙˆØ§Ù„ØªÙ†Ø¨ÙŠÙ‡Ø§Øª
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Page Header â”€â”€ */
.ann-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 18px;
}
.ann-page-title {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ann-page-title i {
  font-size: 26px;
  background: linear-gradient(135deg, #45d6ff, #a86cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ann-page-title h1 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-white);
  margin: 0 0 2px;
}
.ann-page-title p {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.ann-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ann-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.ann-search-wrap i {
  position: absolute;
  right: 10px;
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
}
.ann-search-wrap input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 13px;
  padding: 7px 32px 7px 12px;
  border-radius: var(--radius-sm);
  outline: none;
  width: 210px;
  transition: var(--transition);
  direction: rtl;
}
.ann-search-wrap input:focus {
  border-color: var(--accent-purple);
}
.ann-filter {
  font-size: 12px;
  padding: 7px 10px;
}

/* â”€â”€ Stats Row â”€â”€ */
.ann-stats-row {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.ann-stat-card {
  flex: 1;
  min-width: 110px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}
.ann-stat-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.ann-stat-card i {
  font-size: 20px;
  flex-shrink: 0;
}
.ann-stat-card div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ann-stat-card span {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1;
}
.ann-stat-card small {
  font-size: 11px;
  color: var(--text-muted);
}
.ann-stat-card.urgent {
  border-right: 3px solid var(--accent-red);
}
.ann-stat-card.urgent i {
  color: var(--accent-red);
}
.ann-stat-card.important {
  border-right: 3px solid #f59e0b;
}
.ann-stat-card.important i {
  color: #f59e0b;
}
.ann-stat-card.normal {
  border-right: 3px solid var(--nexora-cyan);
}
.ann-stat-card.normal i {
  color: var(--nexora-cyan);
}
.ann-stat-card.pinned {
  border-right: 3px solid var(--accent-purple);
}
.ann-stat-card.pinned i {
  color: var(--accent-purple);
}
.ann-stat-card.unread {
  border-right: 3px solid #10d9a0;
}
.ann-stat-card.unread i {
  color: #10d9a0;
}

/* â”€â”€ Cards Grid â”€â”€ */
.ann-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

/* â”€â”€ Announcement Card â”€â”€ */
.ann-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  animation: annCardIn 0.3s ease;
}
@keyframes annCardIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ann-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  background: var(--text-muted);
  transition: background 0.2s;
}
.ann-card.priority-urgent::after {
  background: var(--accent-red);
}
.ann-card.priority-important::after {
  background: #f59e0b;
}
.ann-card.priority-normal::after {
  background: var(--nexora-cyan);
}
.ann-card:hover {
  border-color: rgba(69, 214, 255, 0.2);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}
/* Urgent glow effect */
.ann-card.priority-urgent {
  border-color: rgba(239, 68, 68, 0.25);
  background: linear-gradient(
    160deg,
    rgba(239, 68, 68, 0.04) 0%,
    var(--bg-card) 60%
  );
}
.ann-card.priority-urgent:hover {
  box-shadow: 0 6px 24px rgba(239, 68, 68, 0.18);
}
/* Pinned indicator */
.ann-card.is-pinned {
  border-top: 2px solid rgba(168, 108, 246, 0.35);
}
/* Unread dot */
.ann-card.is-unread .ann-card-title::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nexora-cyan);
  margin-left: 8px;
  flex-shrink: 0;
  animation: unreadPulse 2s infinite;
}
@keyframes unreadPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}
/* Archived card dim */
.ann-card.status-archived {
  opacity: 0.55;
}
/* Scheduled card dash border */
.ann-card.status-scheduled {
  border-style: dashed;
  opacity: 0.7;
}

/* â”€â”€ Card Header â”€â”€ */
.ann-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.ann-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ann-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
/* Type badges */
.ann-badge-general {
  background: rgba(69, 214, 255, 0.1);
  color: var(--nexora-cyan);
  border: 1px solid rgba(69, 214, 255, 0.2);
}
.ann-badge-alert {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.ann-badge-admin {
  background: rgba(168, 108, 246, 0.1);
  color: var(--accent-purple);
  border: 1px solid rgba(168, 108, 246, 0.2);
}
.ann-badge-system {
  background: rgba(16, 217, 160, 0.1);
  color: #10d9a0;
  border: 1px solid rgba(16, 217, 160, 0.2);
}
.ann-badge-date {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}
/* Priority badges */
.ann-badge-urgent {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.ann-badge-important {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.ann-badge-normal {
  background: rgba(69, 214, 255, 0.1);
  color: var(--nexora-cyan);
  border: 1px solid rgba(69, 214, 255, 0.2);
}
/* Status badges */
.ann-badge-published {
  background: rgba(16, 217, 160, 0.1);
  color: #10d9a0;
  border: 1px solid rgba(16, 217, 160, 0.2);
}
.ann-badge-archived {
  background: rgba(100, 116, 139, 0.1);
  color: var(--text-muted);
  border: 1px solid rgba(100, 116, 139, 0.2);
}
.ann-badge-scheduled {
  background: rgba(168, 108, 246, 0.1);
  color: var(--accent-purple);
  border: 1px solid rgba(168, 108, 246, 0.2);
}

/* Pinned label */
.ann-pin-label {
  font-size: 10px;
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

/* Admin actions */
.ann-card-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s;
}
.ann-card:hover .ann-card-actions {
  opacity: 1;
}
.ann-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.ann-action-btn:hover {
  color: var(--text-white);
  border-color: rgba(69, 214, 255, 0.3);
}
.ann-action-btn.del:hover {
  color: var(--accent-red);
  border-color: rgba(239, 68, 68, 0.3);
}
.ann-action-btn.archive:hover {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
}

/* â”€â”€ Card Title & Content â”€â”€ */
.ann-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 0;
}
.ann-card-content {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Full content when card is expanded */
.ann-card.expanded .ann-card-content {
  display: block;
  -webkit-line-clamp: unset;
}

/* â”€â”€ Card Footer â”€â”€ */
.ann-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.ann-card-author {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--text-muted);
}
.ann-card-author-av {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--nexora-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.ann-card-date {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.ann-read-count {
  font-size: 10px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-input);
  padding: 2px 8px;
  border-radius: 10px;
}

/* â”€â”€ Empty State â”€â”€ */
.ann-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  gap: 14px;
  color: var(--text-muted);
  text-align: center;
}
.ann-empty i {
  font-size: 54px;
  opacity: 0.2;
}
.ann-empty p {
  font-size: 15px;
}

/* â”€â”€ Modal: Toggle Row â”€â”€ */
.ann-toggle-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 14px 0 4px;
}
.ann-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  user-select: none;
}
.ann-toggle-label input[type='checkbox'] {
  display: none;
}
.ann-toggle-slider {
  width: 38px;
  height: 20px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 20px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}
.ann-toggle-slider::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-muted);
  top: 2px;
  right: 2px;
  transition:
    transform 0.2s,
    background 0.2s;
}
.ann-toggle-label input:checked + .ann-toggle-slider {
  background: rgba(69, 214, 255, 0.15);
  border-color: rgba(69, 214, 255, 0.4);
}
.ann-toggle-label input:checked + .ann-toggle-slider::before {
  background: var(--nexora-cyan);
  transform: translateX(-18px);
}

/* â”€â”€ Modal: User Picker â”€â”€ */
.ann-user-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 160px;
  overflow-y: auto;
  padding: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.ann-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 6px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}
.ann-user-chip:hover {
  border-color: rgba(69, 214, 255, 0.3);
  color: var(--text-white);
}
.ann-user-chip.selected {
  background: rgba(69, 214, 255, 0.1);
  border-color: rgba(69, 214, 255, 0.4);
  color: var(--nexora-cyan);
}
.ann-user-chip-av {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--nexora-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ANNOUNCEMENT POPUP â€” Ù†Ø§ÙØ°Ø© Pop-up
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.ann-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
  backdrop-filter: blur(3px);
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.ann-popup-box {
  background: var(--bg-card);
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px var(--border);
  animation: popupSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(24px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Urgent popup pulsing top border */
.ann-popup-box.urgent-popup {
  border-top: 3px solid var(--accent-red);
  box-shadow:
    0 24px 80px rgba(239, 68, 68, 0.25),
    0 0 0 1px var(--border);
}
.ann-popup-box.important-popup {
  border-top: 3px solid #f59e0b;
}

.ann-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-input);
}
.ann-popup-badge {
  display: flex;
  gap: 7px;
  align-items: center;
}
.ann-popup-body {
  padding: 22px 24px 18px;
}
.ann-popup-body h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.4;
  margin-bottom: 12px;
}
.ann-popup-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  white-space: pre-wrap;
}
.ann-popup-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 11px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.ann-popup-meta i {
  color: var(--nexora-cyan);
  margin-left: 3px;
}
.ann-popup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 18px;
  border-top: 1px solid var(--border);
}
.ann-popup-counter {
  font-size: 12px;
  color: var(--text-muted);
}

/* Ø²Ø± Ù‚Ø±Ø§Ø¡Ø© Ø§Ù„Ø¥Ø¹Ù„Ø§Ù† ÙƒØ§Ù…Ù„Ø§Ù‹ */
.btn-ann-read-full {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--nexora-cyan);
  background: transparent;
  color: var(--nexora-cyan);
  font-size: 13px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.18s,
    color 0.18s,
    transform 0.12s;
  white-space: nowrap;
}
.btn-ann-read-full:hover {
  background: var(--nexora-cyan);
  color: #0a0f1e;
  transform: translateY(-1px);
}
.btn-ann-read-full i {
  font-size: 12px;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Ø²Ø± ØªØ¨Ø¯ÙŠÙ„ RTL / LTR ÙÙŠ Ø£Ø´Ø±Ø·Ø© Quill  v8.50
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.ql-dir-toggle {
  width: 26px !important;
  height: 26px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 5px !important;
  background: transparent !important;
  border: 1px solid rgba(69, 214, 255, 0.25) !important;
  color: var(--text-muted) !important;
  cursor: pointer !important;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s !important;
  font-size: 11px !important;
  line-height: 1 !important;
}
.ql-dir-toggle:hover {
  background: rgba(69, 214, 255, 0.12) !important;
  border-color: var(--nexora-cyan) !important;
  color: var(--nexora-cyan) !important;
}
/* Ø§Ù„Ø­Ø§Ù„Ø© Ø§Ù„Ù†Ø´Ø·Ø©: LTR */
.ql-dir-toggle.dir-ltr {
  background: rgba(69, 214, 255, 0.15) !important;
  border-color: var(--nexora-cyan) !important;
  color: var(--nexora-cyan) !important;
}
/* Ø§Ù„Ø£ÙŠÙ‚ÙˆÙ†Ø© Ø¨Ø¯Ø§Ø®Ù„Ù‡ */
.ql-dir-toggle i {
  pointer-events: none;
  font-size: 11px;
}

/* Ù…Ø¤Ø´Ø± Ø§Ù„Ø§Ù‚ØªØ·Ø§Ø¹ ÙÙŠ Ù…Ø­ØªÙˆÙ‰ Ø§Ù„Ù€ popup */
#annPopupContent.is-truncated::after {
  content: '';
  display: block;
  height: 32px;
  margin-top: -32px;
  background: linear-gradient(to bottom, transparent, var(--bg-card, #1a2235));
  pointer-events: none;
  border-radius: 0 0 4px 4px;
}

/* â”€â”€ Responsive for Announcements â”€â”€ */
@media (max-width: 680px) {
  .ann-page-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .ann-header-actions {
    width: 100%;
  }
  .ann-search-wrap input {
    width: 100%;
  }
  .ann-grid {
    grid-template-columns: 1fr;
  }
  .ann-stats-row {
    gap: 8px;
  }
  .ann-stat-card {
    min-width: 90px;
    padding: 10px 12px;
  }
  .ann-popup-body h2 {
    font-size: 16px;
  }
}

/* â”€â”€ Comments section â”€â”€ */
.comments-section {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 16px;
}
.comments-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
}
.comments-header i {
  color: var(--nexora-cyan);
}
.comments-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-active);
  color: var(--nexora-cyan);
  font-size: 11px;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  padding: 0 6px;
}

/* â”€â”€ Comments list â”€â”€ */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 12px;
  padding-left: 2px;
}

/* â”€â”€ Comment item â”€â”€ */
.comment-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.comment-item:hover {
  background: var(--bg-hover);
}
.comment-admin {
  border-right: 2px solid var(--nexora-cyan);
}
.comment-member {
  border-right: 2px solid var(--accent-purple);
}
.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.comment-body {
  flex: 1;
  min-width: 0;
}
.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}
.comment-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
}
.comment-time {
  font-size: 11px;
  color: var(--text-muted);
}
.comment-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
}
.crb-admin {
  background: rgba(69, 214, 255, 0.1);
  color: var(--nexora-cyan);
  border: 1px solid rgba(69, 214, 255, 0.2);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
}
.crb-member {
  background: rgba(143, 163, 204, 0.1);
  color: var(--text-secondary);
  border: 1px solid rgba(143, 163, 204, 0.15);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
}

/* â”€â”€ Comment input â”€â”€ */
.comment-input-wrap {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.comment-input-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.comment-input-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comment-input-box textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 13px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  outline: none;
  resize: vertical;
  transition: var(--transition);
  min-height: 64px;
}
.comment-input-box textarea:focus {
  border-color: var(--nexora-cyan);
}
.comment-input-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* â”€â”€ Specialist nav badge â”€â”€ */
#specialistNavItem .badge-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  padding: 0 5px;
}

/* â”€â”€ Modal large (task detail) â”€â”€ */
.modal-lg {
  width: 680px;
  max-width: 95vw;
}

/* â”€â”€ Topbar enhancements â”€â”€ */
.topbar-left > .btn-add-task {
  display: none;
}

/* â”€â”€ Scrollbar in modal body â”€â”€ */
.modal-body::-webkit-scrollbar {
  width: 4px;
}
.modal-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   QUILL DESC EDITORS â€” Compact Dark Theme for Forms
   (Ù…Ù‡Ø§Ù… Ø¬Ø¯ÙŠØ¯Ø© / ØªØ¹Ø¯ÙŠÙ„ Ù…Ù‡Ù…Ø© / Ù…Ø´Ø§Ø±ÙŠØ¹)  v8.49
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.desc-quill-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.desc-quill-wrap:focus-within {
  border-color: rgba(69, 214, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(69, 214, 255, 0.07);
}

/* â”€â”€ Toolbar â”€â”€ */
.desc-quill-toolbar {
  background: var(--bg-input) !important;
  border: none !important;
  border-bottom: 1px solid var(--border) !important;
  border-radius: 0 !important;
  padding: 5px 8px !important;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
}
.desc-quill-toolbar .ql-formats {
  margin-right: 0 !important;
  display: flex;
  align-items: center;
  gap: 1px;
}
.desc-quill-toolbar .ql-formats:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--border);
  margin: 0 5px;
}
.desc-quill-toolbar button,
.desc-quill-toolbar .ql-picker {
  background: none !important;
  border: none !important;
  color: var(--text-secondary) !important;
  padding: 3px !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 5px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s,
    color 0.15s;
  cursor: pointer;
}
.desc-quill-toolbar button:hover,
.desc-quill-toolbar .ql-picker:hover {
  background: rgba(69, 214, 255, 0.1) !important;
  color: var(--nexora-cyan) !important;
}
.desc-quill-toolbar button.ql-active,
.desc-quill-toolbar .ql-picker.ql-expanded {
  background: rgba(69, 214, 255, 0.15) !important;
  color: var(--nexora-cyan) !important;
}
.desc-quill-toolbar button .ql-stroke {
  stroke: var(--text-secondary) !important;
}
.desc-quill-toolbar button:hover .ql-stroke,
.desc-quill-toolbar button.ql-active .ql-stroke {
  stroke: var(--nexora-cyan) !important;
}
.desc-quill-toolbar button .ql-fill {
  fill: var(--text-secondary) !important;
}
.desc-quill-toolbar button:hover .ql-fill,
.desc-quill-toolbar button.ql-active .ql-fill {
  fill: var(--nexora-cyan) !important;
}

/* Color picker */
.desc-quill-toolbar .ql-color .ql-picker-label svg,
.desc-quill-toolbar .ql-color .ql-picker-label .ql-stroke {
  stroke: var(--text-secondary) !important;
}
.desc-quill-toolbar .ql-color.ql-expanded .ql-picker-label .ql-stroke {
  stroke: var(--nexora-cyan) !important;
}
.desc-quill-toolbar .ql-picker-options {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
  padding: 6px !important;
}
.desc-quill-toolbar .ql-picker-item:hover {
  background: var(--bg-input) !important;
}

/* â”€â”€ Editor Area â”€â”€ */
.desc-quill-editor {
  background: var(--bg-input) !important;
  color: var(--text-primary) !important;
  border: none !important;
  border-radius: 0 !important;
  min-height: 100px;
  font-family: var(--font) !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
}
.desc-quill-editor.ql-container {
  border: none !important;
}
.desc-quill-editor .ql-editor {
  min-height: 100px;
  padding: 10px 14px !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
  color: var(--text-primary) !important;
  font-family: var(--font) !important;
  unicode-bidi: plaintext;
}
.desc-quill-editor .ql-editor.ql-blank::before {
  color: var(--text-muted) !important;
  font-style: normal !important;
  font-size: 13px !important;
  right: 14px;
  left: auto;
}
/* Rich content styles inside editor */
.desc-quill-editor .ql-editor p {
  margin: 0 0 4px;
}
.desc-quill-editor .ql-editor li {
  margin: 0 0 2px;
}
.desc-quill-editor .ql-editor ul,
.desc-quill-editor .ql-editor ol {
  padding-right: 18px;
  margin: 4px 0;
}
.desc-quill-editor .ql-editor strong {
  font-weight: 700;
}
.desc-quill-editor .ql-editor em {
  font-style: italic;
}
.desc-quill-editor .ql-editor a {
  color: var(--nexora-cyan);
}
.desc-quill-editor .ql-editor blockquote {
  border-right: 3px solid var(--nexora-cyan);
  padding: 4px 10px;
  margin: 6px 0;
  background: rgba(69, 214, 255, 0.04);
  border-radius: 0 4px 4px 0;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   QUILL RICH TEXT EDITOR â€” Dark Theme for Announcements
   v8.45
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Toolbar â”€â”€ */
.ann-quill-toolbar {
  background: var(--bg-input) !important;
  border: 1px solid var(--border) !important;
  border-bottom: none !important;
  border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
  padding: 6px 10px !important;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
}
.ann-quill-toolbar .ql-formats {
  margin-right: 6px !important;
  display: flex;
  align-items: center;
  gap: 1px;
}
.ann-quill-toolbar .ql-formats:not(:last-child) {
  border-left: 1px solid var(--border);
  padding-left: 6px;
  margin-left: 4px;
}

/* Toolbar buttons */
.ann-quill-toolbar button,
.ann-quill-toolbar .ql-picker {
  color: var(--text-secondary) !important;
  border: none !important;
  background: transparent !important;
  border-radius: 5px !important;
  padding: 3px 5px !important;
  height: 26px !important;
  transition:
    background 0.15s,
    color 0.15s !important;
}
.ann-quill-toolbar button:hover,
.ann-quill-toolbar .ql-picker:hover {
  background: rgba(69, 214, 255, 0.1) !important;
  color: var(--nexora-cyan) !important;
}
.ann-quill-toolbar button.ql-active,
.ann-quill-toolbar .ql-picker.ql-expanded {
  background: rgba(69, 214, 255, 0.15) !important;
  color: var(--nexora-cyan) !important;
}
/* SVG icons color */
.ann-quill-toolbar button .ql-stroke {
  stroke: var(--text-secondary) !important;
}
.ann-quill-toolbar button:hover .ql-stroke {
  stroke: var(--nexora-cyan) !important;
}
.ann-quill-toolbar button.ql-active .ql-stroke {
  stroke: var(--nexora-cyan) !important;
}
.ann-quill-toolbar button .ql-fill {
  fill: var(--text-secondary) !important;
}
.ann-quill-toolbar button:hover .ql-fill {
  fill: var(--nexora-cyan) !important;
}
.ann-quill-toolbar button.ql-active .ql-fill {
  fill: var(--nexora-cyan) !important;
}

/* Picker labels */
.ann-quill-toolbar .ql-picker-label {
  color: var(--text-secondary) !important;
  border: none !important;
  padding-right: 16px !important;
  font-family: var(--font) !important;
  font-size: 12px !important;
}
.ann-quill-toolbar .ql-picker-label::before {
  color: var(--text-secondary) !important;
}
.ann-quill-toolbar .ql-picker-label .ql-stroke {
  stroke: var(--text-secondary) !important;
}
/* Picker dropdowns */
.ann-quill-toolbar .ql-picker-options {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
  z-index: 99999 !important;
  padding: 4px !important;
}
.ann-quill-toolbar .ql-picker-item {
  color: var(--text-secondary) !important;
  font-family: var(--font) !important;
  font-size: 12px !important;
  border-radius: 4px !important;
  padding: 4px 8px !important;
  transition: background 0.15s !important;
}
.ann-quill-toolbar .ql-picker-item:hover {
  background: rgba(69, 214, 255, 0.1) !important;
  color: var(--nexora-cyan) !important;
}
.ann-quill-toolbar .ql-picker-item.ql-selected {
  color: var(--nexora-cyan) !important;
}
/* Header picker labels */
.ann-quill-toolbar .ql-header .ql-picker-label[data-value='1']::before {
  content: 'Ø¹Ù†ÙˆØ§Ù† 1' !important;
}
.ann-quill-toolbar .ql-header .ql-picker-label[data-value='2']::before {
  content: 'Ø¹Ù†ÙˆØ§Ù† 2' !important;
}
.ann-quill-toolbar .ql-header .ql-picker-label[data-value='3']::before {
  content: 'Ø¹Ù†ÙˆØ§Ù† 3' !important;
}
.ann-quill-toolbar .ql-header .ql-picker-label:not([data-value])::before {
  content: 'Ù†Øµ Ø¹Ø§Ø¯ÙŠ' !important;
}
.ann-quill-toolbar .ql-header .ql-picker-item[data-value='1']::before {
  content: 'Ø¹Ù†ÙˆØ§Ù† 1' !important;
  font-size: 18px;
  font-weight: 800;
}
.ann-quill-toolbar .ql-header .ql-picker-item[data-value='2']::before {
  content: 'Ø¹Ù†ÙˆØ§Ù† 2' !important;
  font-size: 15px;
  font-weight: 700;
}
.ann-quill-toolbar .ql-header .ql-picker-item[data-value='3']::before {
  content: 'Ø¹Ù†ÙˆØ§Ù† 3' !important;
  font-size: 13px;
  font-weight: 600;
}
.ann-quill-toolbar .ql-header .ql-picker-item:not([data-value])::before {
  content: 'Ù†Øµ Ø¹Ø§Ø¯ÙŠ' !important;
}
/* Size picker labels */
.ann-quill-toolbar .ql-size .ql-picker-label[data-value='small']::before {
  content: 'ØµØºÙŠØ±' !important;
}
.ann-quill-toolbar .ql-size .ql-picker-label:not([data-value])::before {
  content: 'Ø¹Ø§Ø¯ÙŠ' !important;
}
.ann-quill-toolbar .ql-size .ql-picker-label[data-value='large']::before {
  content: 'ÙƒØ¨ÙŠØ±' !important;
}
.ann-quill-toolbar .ql-size .ql-picker-label[data-value='huge']::before {
  content: 'ÙƒØ¨ÙŠØ± Ø¬Ø¯Ø§Ù‹' !important;
}
.ann-quill-toolbar .ql-size .ql-picker-item[data-value='small']::before {
  content: 'ØµØºÙŠØ±' !important;
  font-size: 10px;
}
.ann-quill-toolbar .ql-size .ql-picker-item:not([data-value])::before {
  content: 'Ø¹Ø§Ø¯ÙŠ' !important;
  font-size: 13px;
}
.ann-quill-toolbar .ql-size .ql-picker-item[data-value='large']::before {
  content: 'ÙƒØ¨ÙŠØ±' !important;
  font-size: 16px;
}
.ann-quill-toolbar .ql-size .ql-picker-item[data-value='huge']::before {
  content: 'ÙƒØ¨ÙŠØ± Ø¬Ø¯Ø§Ù‹' !important;
  font-size: 20px;
}

/* â”€â”€ Editor Container â”€â”€ */
.ann-quill-editor {
  background: var(--bg-input) !important;
  border: 1px solid var(--border) !important;
  border-radius: 0 0 var(--radius-md) var(--radius-md) !important;
  min-height: 180px;
  max-height: 320px;
  overflow-y: auto;
  transition: border-color 0.2s;
  font-family: var(--font) !important;
}
.ann-quill-editor:focus-within {
  border-color: var(--accent-purple) !important;
  box-shadow: 0 0 0 3px rgba(168, 108, 246, 0.1) !important;
}

/* Quill default .ql-editor inner content */
.ann-quill-editor .ql-editor {
  color: var(--text-primary) !important;
  font-family: var(--font) !important;
  font-size: 13px !important;
  line-height: 1.75 !important;
  padding: 14px 16px !important;
  unicode-bidi: plaintext;
  min-height: 180px;
}
.ann-quill-editor .ql-editor p,
.ann-quill-editor .ql-editor li {
  margin-bottom: 6px;
}
.ann-quill-editor .ql-editor h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 10px;
}
.ann-quill-editor .ql-editor h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
}
.ann-quill-editor .ql-editor h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 6px;
}
.ann-quill-editor .ql-editor a {
  color: var(--nexora-cyan);
  text-decoration: underline;
}
.ann-quill-editor .ql-editor blockquote {
  border-right: 3px solid var(--nexora-cyan);
  padding-right: 12px;
  margin: 8px 0;
  color: var(--text-muted);
  font-style: italic;
}
.ann-quill-editor .ql-editor ul,
.ann-quill-editor .ql-editor ol {
  padding-right: 20px;
  padding-left: 0;
}
/* Placeholder */
.ann-quill-editor .ql-editor.ql-blank::before {
  color: var(--text-muted) !important;
  font-style: normal !important;
  font-family: var(--font) !important;
  font-size: 13px !important;
  right: 16px !important;
  left: auto !important;
}
/* Scrollbar */
.ann-quill-editor::-webkit-scrollbar {
  width: 4px;
}
.ann-quill-editor::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

/* Quill tooltip / link prompt */
.ql-tooltip {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
  z-index: 99999 !important;
  font-family: var(--font) !important;
}
.ql-tooltip input[type='text'] {
  background: var(--bg-input) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
  border-radius: 6px !important;
  font-family: var(--font) !important;
}
.ql-tooltip a {
  color: var(--nexora-cyan) !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ANNOUNCEMENT VIEW MODAL â€” Ù†Ø§ÙØ°Ø© Ù‚Ø±Ø§Ø¡Ø© Ø§Ù„Ø¥Ø¹Ù„Ø§Ù†
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.ann-view-modal {
  max-width: 700px !important;
  width: 94vw !important;
  max-height: 88vh !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Priority banner at the very top */
.ann-view-banner {
  padding: 10px 22px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.03em;
}
.ann-view-banner.urgent {
  background: linear-gradient(
    90deg,
    rgba(239, 68, 68, 0.18) 0%,
    rgba(239, 68, 68, 0.06) 100%
  );
  color: #f87171;
  border-bottom: 1px solid rgba(239, 68, 68, 0.2);
}
.ann-view-banner.important {
  background: linear-gradient(
    90deg,
    rgba(245, 158, 11, 0.15) 0%,
    rgba(245, 158, 11, 0.05) 100%
  );
  color: #fbbf24;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

/* Header */
.ann-view-header {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 18px 22px 14px !important;
  border-bottom: 1px solid var(--border) !important;
  flex-shrink: 0;
  background: linear-gradient(
    135deg,
    rgba(69, 214, 255, 0.04) 0%,
    transparent 60%
  );
}
.ann-view-header-meta {
  flex: 1;
  min-width: 0;
}
.ann-view-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.ann-view-title {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: var(--text-white) !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  word-break: break-word;
}

/* Info bar (author + date + target) */
.ann-view-infobar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 22px;
  background: var(--bg-input);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.ann-view-infobar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ann-view-infobar-item i {
  color: var(--nexora-cyan);
  font-size: 13px;
}
.ann-view-infobar-avatar {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--nexora-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* Body: rich content area */
.ann-view-body {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 22px 26px !important;
}
.ann-view-body::-webkit-scrollbar {
  width: 5px;
}
.ann-view-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

/* The rich content rendered from Quill HTML */
.ann-view-content {
  font-family: var(--font) !important;
  font-size: 14px !important;
  color: var(--text-secondary) !important;
  line-height: 1.8 !important;
  unicode-bidi: plaintext;
  text-align: start;
  /* Reset Quill editor chrome â€” we're display-only */
  border: none !important;
  padding: 0 !important;
  min-height: unset !important;
}
/* Typography inside rich content */
.ann-view-content h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-white);
  margin: 0 0 14px;
  line-height: 1.3;
}
.ann-view-content h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-white);
  margin: 18px 0 10px;
  line-height: 1.4;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.ann-view-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-white);
  margin: 14px 0 8px;
}
.ann-view-content p {
  margin: 0 0 10px;
}
.ann-view-content strong {
  color: var(--text-white);
  font-weight: 700;
}
.ann-view-content em {
  color: var(--text-primary);
  font-style: italic;
}
.ann-view-content u {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ann-view-content s {
  color: var(--text-muted);
}
.ann-view-content a {
  color: var(--nexora-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ann-view-content a:hover {
  opacity: 0.85;
}
.ann-view-content ul,
.ann-view-content ol {
  padding-right: 22px;
  padding-left: 0;
  margin: 8px 0 12px;
}
.ann-view-content li {
  margin-bottom: 5px;
  color: var(--text-secondary);
}
.ann-view-content blockquote {
  border-right: 3px solid var(--nexora-cyan);
  border-left: none;
  padding: 8px 14px;
  margin: 12px 0;
  background: rgba(69, 214, 255, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  font-style: italic;
}
/* Size classes from Quill */
.ann-view-content .ql-size-small {
  font-size: 11px !important;
}
.ann-view-content .ql-size-large {
  font-size: 17px !important;
}
.ann-view-content .ql-size-huge {
  font-size: 22px !important;
}
/* Align helpers */
.ann-view-content .ql-align-center {
  text-align: center !important;
}
.ann-view-content .ql-align-left {
  text-align: left !important;
  direction: ltr;
}
.ann-view-content .ql-align-right {
  text-align: right !important;
}
/* Indent */
.ann-view-content .ql-indent-1 {
  padding-right: 3em;
}
.ann-view-content .ql-indent-2 {
  padding-right: 6em;
}

/* Footer */
.ann-view-footer {
  flex-shrink: 0;
  padding: 12px 22px !important;
  border-top: 1px solid var(--border) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: var(--bg-input);
}
.ann-view-footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Urgent card glow pulse animation */
@keyframes urgentGlow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.25);
  }
  50% {
    box-shadow: 0 0 20px 4px rgba(239, 68, 68, 0.18);
  }
}
.ann-view-modal.is-urgent {
  animation: urgentGlow 2.5s ease-in-out infinite;
}

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 680px) {
  .ann-view-modal {
    width: 98vw !important;
    max-height: 94vh !important;
  }
  .ann-view-title {
    font-size: 17px !important;
  }
  .ann-view-body {
    padding: 16px !important;
  }
  .ann-view-infobar {
    gap: 10px;
  }
  .ann-quill-toolbar {
    padding: 4px 6px !important;
  }
}

/* â”€â”€ Employee card department badge â”€â”€ */
.ec-dept {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 20px;
  background: rgba(168, 108, 246, 0.1);
  color: #c084fc;
  border: 1px solid rgba(168, 108, 246, 0.2);
}

/* â”€â”€ Login page grid overlay â”€â”€ */
.login-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(69, 214, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 214, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* â”€â”€ Topbar show btn based on permission â”€â”€ */
#btnAddTask {
  display: none;
}

/* â”€â”€ App wrapper animation â”€â”€ */
#appWrapper {
  display: none;
  flex-direction: row;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* â”€â”€ Scrollable content on small screens â”€â”€ */
@media (max-width: 680px) {
  .employees-grid {
    grid-template-columns: 1fr;
  }
  .spec-dept-header {
    padding: 14px;
  }
  .spec-stat {
    padding: 8px 12px;
    min-width: 60px;
  }
  .spec-stat span {
    font-size: 16px;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   COMMENT FILE ATTACHMENTS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.comment-file-area {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 6px 0;
}
.comment-attach-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.comment-attach-btn:hover {
  color: var(--nexora-cyan);
  border-color: rgba(69, 214, 255, 0.35);
}
.comment-file-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}
.attach-preview-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* comment attachments display */
.comment-attachments {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.attach-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  text-decoration: none;
  transition: var(--transition);
}
.attach-file {
  background: rgba(69, 214, 255, 0.06);
  border: 1px solid rgba(69, 214, 255, 0.2);
  color: var(--nexora-cyan);
}
.attach-file:hover {
  background: rgba(69, 214, 255, 0.12);
}
.attach-file i {
  flex-shrink: 0;
}
.attach-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attach-size {
  color: var(--text-muted);
}
.attach-img {
  flex-direction: column;
  align-items: flex-start;
  padding: 6px;
  background: var(--bg-input);
  border: 1px solid var(--border);
}
.attach-img button,
.sc-attach-img-wrap button,
.chat-attachment button {
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: zoom-in;
}
.comment-img-preview,
.sc-attach-img,
.chat-img-preview {
  max-width: 220px;
  max-height: 150px;
  display: block;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.attach-img button:hover .comment-img-preview,
.sc-attach-img-wrap button:hover .sc-attach-img,
.chat-attachment button:hover .chat-img-preview {
  transform: translateY(-2px);
  border-color: rgba(69, 214, 255, 0.48);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.image-viewer-overlay {
  z-index: 250000;
  padding: 22px;
  background: rgba(3, 8, 18, 0.78);
  backdrop-filter: blur(14px);
}
.image-viewer-shell {
  width: min(860px, 94vw);
  max-height: min(760px, 92vh);
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(69, 214, 255, 0.22);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.08), rgba(168, 108, 246, 0.08)),
    var(--bg-card);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
}
.image-viewer-topbar,
.image-viewer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.image-viewer-footer {
  border-top: 1px solid var(--border);
  border-bottom: 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 850;
}
.image-viewer-title {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-primary);
  font-weight: 950;
}
.image-viewer-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.image-viewer-title i {
  color: var(--nexora-cyan);
}
.image-viewer-tools {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.image-viewer-tools button,
.image-viewer-tools a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: var(--bg-input);
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    background 0.18s ease;
}
.image-viewer-tools button:hover,
.image-viewer-tools a:hover {
  transform: translateY(-1px);
  border-color: rgba(69, 214, 255, 0.42);
  background: rgba(69, 214, 255, 0.1);
  color: var(--nexora-cyan);
}
.image-viewer-stage {
  min-height: 260px;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 20%, rgba(69, 214, 255, 0.08), transparent 34%),
    rgba(2, 8, 23, 0.24);
}
.image-viewer-stage img {
  max-width: 100%;
  max-height: 58vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
  transform: scale(var(--image-viewer-scale, 1));
  transform-origin: center center;
  transition: transform 0.16s ease;
}
#imageViewerZoomLabel {
  color: var(--nexora-cyan);
  font-weight: 950;
}
[data-theme='light'] .image-viewer-shell {
  background: #fff;
}
[data-theme='light'] .image-viewer-tools button,
[data-theme='light'] .image-viewer-tools a {
  background: #edf4ff;
}
@media (max-width: 640px) {
  .image-viewer-overlay {
    padding: 10px;
  }
  .image-viewer-shell {
    width: 96vw;
    max-height: 90vh;
    border-radius: 16px;
  }
  .image-viewer-topbar {
    align-items: stretch;
    flex-direction: column;
  }
  .image-viewer-tools {
    justify-content: space-between;
  }
  .image-viewer-tools button,
  .image-viewer-tools a {
    width: 42px;
    height: 42px;
  }
  .image-viewer-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* â”€â”€ v8.32: upload progress bar (shared by task-detail + SC panels) â”€â”€ */
.cmt-upload-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px;
  background: rgba(69, 214, 255, 0.04);
  border-top: 1px solid rgba(69, 214, 255, 0.12);
  border-bottom: 1px solid rgba(69, 214, 255, 0.12);
  animation: fadeIn 0.15s ease;
}
.cmt-upload-bar-wrap {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.cmt-upload-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--nexora-cyan), #10d9a0);
  border-radius: 4px;
  transition: width 0.18s ease;
}
.cmt-upload-label {
  font-size: 10px;
  color: var(--nexora-cyan);
  white-space: nowrap;
  min-width: 120px;
  text-align: right;
  direction: rtl;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   EMPLOYEE REVIEW MODAL
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.modal-review {
  width: 700px;
  max-width: 96vw;
}

.review-stats-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.review-stat-card {
  flex: 1;
  min-width: 80px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.review-stat-card label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Skill rating rows */
.skill-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.skill-label {
  width: 210px;
  flex-shrink: 0;
}
.skill-label strong {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}
.skill-label small {
  display: block;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
  margin-top: 2px;
}
.skill-bar-wrap {
  flex: 1;
  height: 6px;
  background: var(--bg-hover);
  border-radius: 10px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s ease;
}
.skill-score {
  font-size: 12px;
  font-weight: 700;
  min-width: 38px;
  text-align: left;
}
.skill-range {
  -webkit-appearance: none;
  height: 4px;
  border-radius: 4px;
  background: var(--bg-hover);
  outline: none;
  cursor: pointer;
}
.skill-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--nexora-cyan);
  cursor: pointer;
  border: 2px solid var(--bg-card);
}
.auto-eval-source-badge {
  background: rgba(69, 214, 255, 0.1);
  border: 1px solid rgba(69, 214, 255, 0.22);
  border-radius: 999px;
  color: var(--nexora-cyan);
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  margin-right: 8px;
  padding: 2px 8px;
  text-transform: none;
}
.manual-override-panel {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 12px;
  margin: 6px 0 16px;
  padding: 12px;
}
.manual-override-head {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 10px;
}
.manual-override-head strong {
  color: var(--text-primary);
  font-size: 12px;
}
.manual-override-head span {
  color: var(--text-muted);
  font-size: 10px;
}
.manual-override-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 140px 1fr;
}
.manual-override-grid label {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.manual-override-grid label span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}
.manual-override-grid input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font);
  outline: none;
  padding: 9px 10px;
}
@media (max-width: 680px) {
  .skill-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  .skill-label {
    width: 100%;
  }
  .skill-bar-wrap {
    width: 100%;
  }
  .manual-override-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .manual-override-grid {
    grid-template-columns: 1fr;
  }
}

/* Print styles */
@media print {
  body * {
    visibility: hidden;
  }
  #review-print-area,
  #review-print-area * {
    visibility: visible;
  }
  #review-print-area {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    color: #0b1433;
    padding: 32px 40px;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
  }
  .review-print-header {
    display: block !important;
  }
  .review-print-footer {
    display: block !important;
  }
  .review-emp-header {
    display: none !important;
  }
  .review-panel,
  .modal-header,
  .modal-footer,
  .skill-range,
  #reviewSaveBtn {
    display: none !important;
  }
  .skill-bar-wrap {
    background: #e2e8f0;
  }
  .skill-bar-fill {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .review-stat-card {
    background: #f8fafc;
    border-color: #e2e8f0;
  }
  .skill-label,
  .skill-score {
    color: #334155;
  }
  .review-stats-row .review-stat-card label {
    color: #64748b;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   FORGOT PASSWORD â€” LOGIN PAGE MODALS
   ÙŠØ¬Ø¨ Ø£Ù† ØªÙƒÙˆÙ† z-index Ø£Ø¹Ù„Ù‰ Ù…Ù† #loginPage (9999)
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
/* Ù…ÙˆØ¯Ø§Ù„Ø§Øª login page Ø£ÙÙ†Ù‚Ù„Øª Ø¥Ù„Ù‰ Ø¯Ø§Ø®Ù„ #loginPage â€” z-index Ù…Ø¶Ø¨ÙˆØ· Ø¨Ù€ .login-modal-overlay */
#modal-emailRequired {
  z-index: 100000;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   EMAIL REQUIRED MODAL
   ÙŠØ¸Ù‡Ø± ØªÙ„Ù‚Ø§Ø¦ÙŠØ§Ù‹ Ø¹Ù†Ø¯ Ø§Ù„Ø¯Ø®ÙˆÙ„ Ø¨Ø¯ÙˆÙ† Ø¥ÙŠÙ…ÙŠÙ„ Ù…Ø³Ø¬Ù‘Ù„
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
#modal-emailRequired {
  z-index: 10000; /* ÙÙˆÙ‚ ÙƒÙ„ Ø´ÙŠØ¡ Ø¢Ø®Ø± */
}
#modal-emailRequired .modal {
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow:
    0 8px 40px rgba(245, 158, 11, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.6);
}
#modal-emailRequired .modal-header {
  background: rgba(245, 158, 11, 0.06);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}
#modal-emailRequired input[type='email']:focus {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.08);
  outline: none;
}
#modal-emailRequired .btn-save {
  background: linear-gradient(135deg, #78350f, #f59e0b);
}
#modal-emailRequired .btn-save:hover {
  background: linear-gradient(135deg, #92400e, #fbbf24);
}

/* â”€â”€ Email badge in edit profile â”€â”€ */
#epEmailBadge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
}

/* â”€â”€ Users table email column â”€â”€ */
.ut-email {
  font-size: 11px;
  color: var(--text-muted);
  direction: ltr;
  text-align: right;
  font-family: monospace;
}
.ut-email.has-email {
  color: #10d9a0;
}
.ut-email.no-email {
  color: var(--accent-orange);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PROJECT SYSTEM â€” Add/Edit Modal + Detail View
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Section labels inside project modal â”€â”€ */
.proj-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* â”€â”€ Social media grid â”€â”€ */
.proj-social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-bottom: 6px;
}
.proj-social-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.proj-social-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}
.proj-social-item input {
  flex: 1;
  font-size: 12px;
  padding: 6px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-white);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  outline: none;
  transition: var(--transition);
}
.proj-social-item input:focus {
  border-color: var(--accent-purple);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   TASK DETAIL â€” ADMIN ACTION BUTTONS  v8.18
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.btn-task-action {
  border: none;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.btn-edit-due {
  background: linear-gradient(135deg, #1e3a5f, #2563eb);
  color: #fff;
}
.btn-edit-due:hover {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
}

.btn-add-members {
  background: linear-gradient(135deg, #064e3b, #10d9a0);
  color: #fff;
}
.btn-add-members:hover {
  background: linear-gradient(135deg, #065f46, #34d399);
}

/* disabled state for confirm-add-members button */
#btnConfirmAddMembers:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ADD MEMBERS MODAL â€” member chip / search
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.member-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px 3px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}
.member-chip .chip-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.member-chip-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0 0 0 2px;
  font-size: 12px;
  line-height: 1;
  transition: color 0.15s;
}
.member-chip-remove:hover {
  color: var(--accent-red);
}

/* pending chip (green tint) */
.pending-chip {
  background: rgba(16, 217, 160, 0.1);
  border-color: rgba(16, 217, 160, 0.35);
}
.pending-chip .chip-avatar {
  background: linear-gradient(135deg, #065f46, #10d9a0);
}

/* existing chip (purple tint, no remove) */
.existing-chip {
  background: rgba(90, 72, 246, 0.12);
  border-color: rgba(90, 72, 246, 0.3);
}
.existing-chip .chip-avatar {
  background: var(--nexora-grad);
}

/* search result row */
.add-member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.add-member-row:last-child {
  border-bottom: none;
}
.add-member-row:hover {
  background: var(--bg-hover);
}
.add-member-row.disabled-row {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}
.add-member-row .amr-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.add-member-row .amr-info {
  flex: 1;
}
.add-member-row .amr-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.add-member-row .amr-dept {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}
.add-member-row .amr-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(16, 217, 160, 0.15);
  color: #10d9a0;
  font-weight: 700;
}
.add-member-row .amr-badge.already {
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-muted);
}

/* reopen warning banner inside editDueDate modal */
#editDueDateReopenNote {
  display: flex !important; /* override inline display:none via JS toggle */
}
#editDueDateReopenNote.hidden {
  display: none !important;
}

/* â”€â”€ Extra links â”€â”€ */
.extra-link-row {
  display: grid;
  grid-template-columns: 38px minmax(135px, 170px) minmax(130px, 1fr) minmax(190px, 1.4fr) 38px;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  padding: 8px;
  border: 1px solid rgba(69, 214, 255, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.06), rgba(168, 108, 246, 0.05)),
    rgba(15, 35, 62, 0.26);
}
.extra-link-type-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: rgba(69, 214, 255, 0.1);
  font-size: 15px;
}
.extra-link-row .el-type,
.extra-link-row .el-label,
.extra-link-row .el-url {
  min-width: 0;
  width: 100%;
  height: 36px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  outline: 0;
  color: var(--text-primary);
  background: rgba(9, 24, 44, 0.38);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 800;
  padding: 0 10px;
}
.extra-link-row .el-url {
  color: var(--text-secondary);
  direction: ltr;
  text-align: left;
}
.extra-link-row:focus-within {
  border-color: rgba(69, 214, 255, 0.5);
  box-shadow: 0 0 0 2px rgba(69, 214, 255, 0.1);
}
.proj-add-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(69, 214, 255, 0.06);
  border: 1px dashed rgba(69, 214, 255, 0.3);
  color: var(--nexora-cyan);
  font-family: var(--font);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 4px;
  min-height: 40px;
}
.proj-add-link-btn:hover {
  background: rgba(69, 214, 255, 0.12);
}
.proj-del-link-btn {
  background: rgba(239, 68, 68, 0.08);
  border: none;
  color: var(--accent-red);
  width: 28px;
  height: 28px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.proj-del-link-btn:hover {
  background: rgba(239, 68, 68, 0.18);
}
@media (max-width: 720px) {
  .extra-link-row {
    grid-template-columns: 34px 1fr 38px;
  }
  .extra-link-row .el-type,
  .extra-link-row .el-label,
  .extra-link-row .el-url {
    grid-column: 2 / 3;
  }
  .extra-link-row .proj-del-link-btn {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MANAGE MEMBERS MODAL  v8.19
   Tabs + dropdown + remove rows + archived
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Tab bar */
.amm-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}
.amm-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}
.amm-tab:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.amm-tab.amm-tab-active {
  background: rgba(90, 72, 246, 0.15);
  border-color: rgba(90, 72, 246, 0.4);
  color: var(--nexora-cyan);
}
#ammTabRemove.amm-tab-active {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

/* Section label */
.amm-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

/* Select wrapper with custom arrow */
.amm-select-wrap {
  position: relative;
}
.amm-select-arrow {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 11px;
  pointer-events: none;
}
.amm-select-wrap select {
  padding-left: 34px !important;
}
.amm-select-wrap select option,
.amm-select-wrap select optgroup {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* Remove member row */
.amm-remove-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  transition: border-color 0.2s;
}
.amm-remove-row:hover {
  border-color: rgba(239, 68, 68, 0.4);
}

.amm-remove-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.amm-remove-btn:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.55);
  color: #fca5a5;
}

/* Reused amr-* classes (shared with old search rows) */
.amr-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.amr-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.amr-dept {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CO-ASSIGNEES PANEL â€” removed members row  v8.19
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.co-assignee-row.removed-row {
  opacity: 0.62;
  background: rgba(239, 68, 68, 0.04);
  border: 1px dashed rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  padding: 6px 10px;
  position: relative;
}
.co-assignee-row.removed-row .co-av {
  filter: grayscale(0.7);
}
.removed-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.co-removed-note {
  font-size: 10px;
  color: #f87171;
  opacity: 0.8;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* â”€â”€ Visibility grid â”€â”€ */
.proj-visibility-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.proj-vis-item {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px 4px 6px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 12px;
}
.proj-vis-item:hover {
  border-color: var(--accent-purple);
}
.proj-vis-item input[type='checkbox'] {
  accent-color: var(--nexora-cyan);
  cursor: pointer;
}
.proj-vis-avatar {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
}
.proj-vis-name {
  color: var(--text-white);
  font-weight: 600;
}

.project-card {
  cursor: pointer;
}

/* â”€â”€ Project card extras â”€â”€ */
.pc-goal {
  font-size: 11px;
  color: var(--nexora-cyan);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
  opacity: 0.85;
}
.pc-goal i {
  margin-left: 4px;
  opacity: 0.7;
  font-size: 10px;
}
.pc-dur-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  background: rgba(69, 214, 255, 0.08);
  color: var(--nexora-cyan);
  border: 1px solid rgba(69, 214, 255, 0.15);
}
.pc-dur-badge.overdue {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
  border-color: rgba(239, 68, 68, 0.2);
}
.pc-dur-badge.urgent {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
  border-color: rgba(249, 115, 22, 0.2);
}

.pdl-section {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.pdl-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.pdl-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
}
.pdl-section-title i {
  color: var(--nexora-cyan);
  font-size: 14px;
}
.pdl-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  white-space: pre-wrap;
  unicode-bidi: plaintext;
  text-align: start;
}
/* Ù†Øµ Ø¹Ø§Ø¯ÙŠ */
.pdl-desc.plain-content {
  white-space: pre-wrap;
}
/* Ù…Ø­ØªÙˆÙ‰ HTML ØºÙ†ÙŠ (Quill / Ù…Ø­Ø±Ø± Ù†ØµÙˆØµ) */
.pdl-desc.rich-content {
  white-space: normal;
}
.pdl-desc.rich-content p,
.pdl-desc.rich-content li {
  margin: 0 0 6px;
}
.pdl-desc.rich-content h1 {
  font-size: 18px;
  font-weight: 700;
  margin: 10px 0 6px;
  color: var(--text-white);
}
.pdl-desc.rich-content h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 8px 0 5px;
  color: var(--text-white);
}
.pdl-desc.rich-content h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 6px 0 4px;
  color: var(--text-white);
}
.pdl-desc.rich-content strong {
  font-weight: 700;
}
.pdl-desc.rich-content em {
  font-style: italic;
}
.pdl-desc.rich-content u {
  text-decoration: underline;
}
.pdl-desc.rich-content s {
  text-decoration: line-through;
}
.pdl-desc.rich-content a {
  color: var(--nexora-cyan);
  text-decoration: underline;
}
.pdl-desc.rich-content ul,
.pdl-desc.rich-content ol {
  padding-right: 20px;
  margin: 4px 0 8px;
}
.pdl-desc.rich-content ul {
  list-style: disc;
}
.pdl-desc.rich-content ol {
  list-style: decimal;
}
.pdl-desc.rich-content blockquote {
  border-right: 3px solid var(--nexora-cyan);
  padding: 6px 12px;
  margin: 8px 0;
  background: rgba(69, 214, 255, 0.05);
  color: var(--text-secondary);
  border-radius: 0 6px 6px 0;
}
.pdl-desc.rich-content .ql-size-small {
  font-size: 11px;
}
.pdl-desc.rich-content .ql-size-large {
  font-size: 16px;
}
.pdl-desc.rich-content .ql-size-huge {
  font-size: 20px;
}
.pdl-desc.rich-content .ql-align-center {
  text-align: center;
}
.pdl-desc.rich-content .ql-align-left {
  text-align: left;
}
.pdl-desc.rich-content .ql-align-right {
  text-align: right;
}

/* Social buttons in detail */
.pdl-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pdl-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  transition: var(--transition);
  opacity: 0.92;
}
.pdl-social-btn:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* Extra links */
.pdl-extra-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.pdl-extra-link-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(69, 214, 255, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.07), rgba(168, 108, 246, 0.05)),
    rgba(15, 35, 62, 0.25);
  text-decoration: none;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}
.pdl-extra-link-card:hover {
  transform: translateY(-1px);
  border-color: rgba(69, 214, 255, 0.38);
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.12), rgba(168, 108, 246, 0.08)),
    rgba(15, 35, 62, 0.34);
}
.pdl-extra-link-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(69, 214, 255, 0.1);
  font-size: 17px;
}
.pdl-extra-link-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.pdl-extra-link-main strong,
.pdl-extra-link-main small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pdl-extra-link-main strong {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 900;
}
.pdl-extra-link-main small,
.pdl-extra-open {
  color: var(--text-muted);
  font-size: 11px;
}
.pdl-extra-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--nexora-cyan);
  font-size: 13px;
  text-decoration: none;
  padding: 5px 0;
}
.pdl-extra-link:hover {
  text-decoration: underline;
}

/* AI section */
.pdl-ai-section {
  background: rgba(168, 108, 246, 0.03);
  border-radius: 12px;
  padding: 14px;
}
.pdl-ai-section .pdl-section-title i {
  color: var(--nexora-purple);
}
.pdl-ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.pdl-ai-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  transition: var(--transition);
}
.pdl-ai-card:hover {
  border-color: rgba(168, 108, 246, 0.3);
}
.pdl-ai-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.pdl-ai-info {
  flex: 1;
}
.pdl-ai-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 2px;
}
.pdl-ai-dept {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.pdl-ai-reason {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.pdl-ai-gen-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(
    135deg,
    rgba(168, 108, 246, 0.15),
    rgba(69, 214, 255, 0.08)
  );
  border: 1px solid rgba(168, 108, 246, 0.3);
  color: var(--nexora-purple);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
}
.pdl-ai-gen-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(168, 108, 246, 0.25),
    rgba(69, 214, 255, 0.14)
  );
  transform: translateY(-1px);
}

/* req marker */
.req {
  color: var(--accent-red);
  margin-right: 2px;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PROJECT DETAIL â€” Enhanced Styles
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Info bar at top of detail */
.pdl-info-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding: 10px 14px;
  background: var(--bg-input);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.pdl-info-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}
.pdl-info-chip i {
  color: var(--nexora-cyan);
}
.pdl-info-chip.status-chip {
  margin-right: auto;
}

/* Goal section */
.pdl-goal-section {
  background: rgba(249, 115, 22, 0.03);
  border-radius: 10px;
  padding: 14px;
}
.pdl-goal-box {
  position: relative;
  background: rgba(249, 115, 22, 0.06);
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-right: 3px solid #f97316;
  border-radius: 8px;
  padding: 14px 14px 14px 18px;
}
.pdl-goal-quote {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 18px;
  color: rgba(249, 115, 22, 0.2);
}

/* Duration grid */
.pdl-duration-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}
.pdl-dur-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  flex: 1;
  min-width: 120px;
}
.pdl-dur-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.pdl-dur-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.pdl-dur-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
}
.pdl-dur-remain {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-top: 4px;
}
.pdl-dur-remain.overdue {
  background: rgba(239, 68, 68, 0.12);
  color: var(--accent-red);
}
.pdl-dur-remain.today {
  background: rgba(249, 115, 22, 0.12);
  color: #f97316;
}
.pdl-dur-remain.urgent {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
}
.pdl-dur-remain.ok {
  background: rgba(16, 217, 160, 0.1);
  color: var(--accent-green);
}

/* Progress row */
.pdl-progress-row {
  margin-top: 4px;
}

/* Team chips */
.pdl-team-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: 20px;
  transition: var(--transition);
}
.pdl-team-chip:hover {
  border-color: rgba(69, 214, 255, 0.2);
}
.pdl-team-av {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.pdl-team-name {
  font-size: 12px;
  color: var(--text-white);
  font-weight: 600;
}
.pdl-team-role {
  font-size: 10px;
  color: var(--text-muted);
}

/* AI Section â€” enhanced */
.pdl-ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.pdl-ai-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(168, 108, 246, 0.15);
  color: var(--nexora-purple);
  font-size: 10px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 6px;
}
.pdl-ai-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.pdl-ai-regen-btn {
  background: rgba(168, 108, 246, 0.1);
  border: 1px solid rgba(168, 108, 246, 0.25);
  color: var(--nexora-purple);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.pdl-ai-regen-btn:hover {
  background: rgba(168, 108, 246, 0.2);
  transform: rotate(180deg);
}
.pdl-ai-empty {
  text-align: center;
  padding: 20px;
}

/* Admin section */
.pdl-admin-section {
  background: rgba(69, 214, 255, 0.02);
  border-radius: 10px;
  padding: 14px;
}
.pdl-admin-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pdl-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pdl-ctrl-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}
.pdl-ctrl-btn.edit {
  background: rgba(69, 214, 255, 0.08);
  border-color: rgba(69, 214, 255, 0.2);
  color: var(--nexora-cyan);
}
.pdl-ctrl-btn.edit:hover {
  background: rgba(69, 214, 255, 0.15);
}
.pdl-ctrl-btn.delete {
  background: rgba(239, 68, 68, 0.07);
  border-color: rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
}
.pdl-ctrl-btn.delete:hover {
  background: rgba(239, 68, 68, 0.14);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PROJECT MODAL â€” Duration Row
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.proj-duration-row {
  margin-top: 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}
.proj-duration-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.proj-duration-fields {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.proj-duration-arrow {
  color: var(--text-muted);
  font-size: 12px;
  padding-bottom: 8px;
  flex-shrink: 0;
}
.proj-duration-badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(16, 217, 160, 0.1);
  border: 1px solid rgba(16, 217, 160, 0.2);
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-end;
  margin-bottom: 4px;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   DARK / LIGHT THEME SUPPORT
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
[data-theme='light'] {
  --bg-base: #f0f4ff;
  --bg-sidebar: #e4ecff;
  --bg-card: #ffffff;
  --bg-input: #f1f5ff;
  --bg-hover: #e8eeff;
  --bg-active: #d0dcff;
  --border: #c8d6f0;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-white: #0f172a;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
}
[data-theme='light'] body {
  background: var(--bg-base);
  color: var(--text-primary);
}
[data-theme='light'] ::-webkit-scrollbar-thumb {
  background: #c8d6f0;
}
[data-theme='light'] ::-webkit-scrollbar-thumb:hover {
  background: #2f7fe0;
}

/* â”€â”€ Theme toggle button (legacy) â”€â”€ */
.theme-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition);
}
.theme-toggle-btn:hover {
  background: var(--bg-hover);
  color: var(--nexora-cyan);
}

/* â”€â”€ Theme mode indicator â”€â”€ */
.theme-indicator {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11px;
  color: var(--text-muted);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 9000;
}
.theme-indicator.show {
  opacity: 1;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   THEME & LANGUAGE CONTROLS (topbar)
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.topbar-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.theme-btns-group {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px;
}
.theme-mini-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: var(--transition);
}
.theme-mini-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.theme-mini-btn.active {
  background: var(--nexora-grad);
  color: #fff;
  box-shadow: 0 2px 8px rgba(69, 214, 255, 0.3);
}
.lang-toggle-btn {
  height: 28px;
  min-width: 34px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  padding: 0 8px;
  transition: var(--transition);
  letter-spacing: 0.5px;
}
.lang-toggle-btn:hover {
  background: var(--bg-hover);
  color: var(--nexora-cyan);
  border-color: var(--nexora-cyan);
}

/* LTR body adjustments */
body.ltr {
  direction: ltr;
  font-family: 'Segoe UI', var(--font), sans-serif;
}
body.ltr .sidebar {
  border-left: none;
  border-right: 1px solid var(--border);
}
body.ltr .nav-item.active {
  border-right: none;
  border-left: 2px solid var(--nexora-cyan);
}
body.ltr .topbar-right {
  flex-direction: row;
}
body.ltr .sidebar-search input {
  text-align: left;
}
body.ltr .chat-room-item.active {
  border-right: none;
  border-left: 3px solid var(--nexora-cyan);
}
body.ltr .chat-reply-preview {
  border-right: none;
  border-left: 3px solid var(--nexora-cyan);
}
body.ltr .chat-msg-actions {
  left: auto;
  right: 8px;
}
body.ltr .chat-message.own .chat-msg-actions {
  right: auto;
  left: 8px;
}

/* â”€â”€ Chat quick links in sidebar â”€â”€ */
.chat-quick-link {
  font-size: 12px;
  padding: 7px 14px;
}
.chat-quick-link i {
  width: 16px;
  text-align: center;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MULTI-DEPT PICKER  v8.51
   Ø§Ø®ØªÙŠØ§Ø± Ø£ÙƒØ«Ø± Ù…Ù† Ù‚Ø³Ù… ÙÙŠ Ù†Ù…ÙˆØ°Ø¬ Ø¥Ø¶Ø§ÙØ© Ø§Ù„Ù…Ù‡Ù…Ø©
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.mdept-box {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 42px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 36px 6px 10px;
  cursor: pointer;
  transition: border-color 0.2s;
  flex-wrap: wrap;
  gap: 5px;
  user-select: none;
}
.mdept-box:hover,
.mdept-box.open {
  border-color: var(--nexora-cyan);
}
.mdept-box.open {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.mdept-arrow {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 11px;
  pointer-events: none;
  transition: transform 0.2s;
}
.mdept-box.open .mdept-arrow {
  transform: translateY(-50%) rotate(180deg);
}
.mdept-placeholder {
  font-size: 13px;
  color: var(--text-muted);
}
/* ÙƒÙ„ tag Ù‚Ø³Ù… Ù…Ø®ØªØ§Ø± */
.mdept-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(69, 214, 255, 0.12);
  border: 1px solid rgba(69, 214, 255, 0.3);
  color: var(--nexora-cyan);
  white-space: nowrap;
}
.mdept-tag .mdept-tag-x {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(69, 214, 255, 0.15);
  border: none;
  color: var(--nexora-cyan);
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: background 0.15s;
}
.mdept-tag .mdept-tag-x:hover {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
}
/* Dropdown */
.mdept-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--nexora-cyan);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.mdept-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
}
.mdept-search-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 12px;
}
.mdept-options {
  max-height: 220px;
  overflow-y: auto;
}
.mdept-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  transition: background 0.12s;
}
.mdept-option:hover {
  background: var(--bg-input);
  color: var(--text-white);
}
.mdept-option.selected {
  background: rgba(69, 214, 255, 0.07);
  color: var(--nexora-cyan);
}
.mdept-option-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mdept-option-check {
  margin-right: auto;
  color: var(--nexora-cyan);
  font-size: 12px;
  opacity: 0;
}
.mdept-option.selected .mdept-option-check {
  opacity: 1;
}
/* badge Ù…ØªØ¹Ø¯Ø¯ Ø§Ù„Ø£Ù‚Ø³Ø§Ù… ÙÙŠ Ø§Ù„ÙƒØ§Ù†Ø¨Ø§Ù†/Ø§Ù„Ø¬Ø¯ÙˆÙ„ */
.dept-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(69, 214, 255, 0.08);
  border: 1px solid rgba(69, 214, 255, 0.18);
  white-space: nowrap;
}
.dept-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
/* Ø­Ù‚Ù„ Ø§Ù„Ù‚Ø³Ù… â€” Ù†Ø³Ø¨Ø© Ù„Ù„Ù€ dropdown */
.form-group {
  position: relative;
}

/* â”€â”€ lang-toggle active state â”€â”€ */
.lang-toggle-btn.active {
  background: rgba(69, 214, 255, 0.15);
  color: var(--nexora-cyan);
  border-color: rgba(69, 214, 255, 0.4);
}

/* â”€â”€ chat mention highlight â”€â”€ */
.chat-mention {
  color: var(--nexora-cyan);
  font-weight: 700;
  cursor: pointer;
}
.chat-mention:hover {
  text-decoration: underline;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   NOTIFICATION PANEL
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.notif-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition);
}
.notif-btn:hover {
  background: var(--bg-hover);
  color: var(--nexora-cyan);
}

.notif-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  min-width: 18px;
  height: 18px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-base);
  pointer-events: none;
}

/* Panel container */
.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 380px;
  max-height: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  z-index: 8000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.notif-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-sidebar);
}
.notif-panel-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.notif-panel-actions {
  display: flex;
  gap: 6px;
}
.notif-panel-actions button {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: var(--transition);
}
.notif-panel-actions button:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.notif-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
}

.notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 13px;
}
.notif-empty i {
  font-size: 32px;
}

.notif-date-group {
  padding: 8px 14px 4px;
}
.notif-date-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}
.notif-item:last-child {
  border-bottom: none;
}
.notif-item:hover {
  background: var(--bg-hover);
}
.notif-item.unread {
  background: rgba(99, 102, 241, 0.04);
}
.notif-item.urgent {
  background: rgba(239, 68, 68, 0.05);
}
.notif-item.high-priority {
  background: rgba(245, 158, 11, 0.04);
}

.notif-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}
.notif-content {
  flex: 1;
  min-width: 0;
}
.notif-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}
.notif-msg {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.5;
}
.notif-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.notif-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6366f1;
  flex-shrink: 0;
  margin-top: 4px;
}
.notif-dismiss {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 11px;
  padding: 2px 4px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}
.notif-item:hover .notif-dismiss {
  opacity: 1;
}
.notif-dismiss:hover {
  color: #ef4444;
}

.notif-action-btn {
  margin-top: 6px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #6366f1;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}
.notif-action-btn:hover {
  background: rgba(99, 102, 241, 0.22);
}

/* â”€â”€ Toast Notifications â”€â”€ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 99999;
  pointer-events: none;
  max-width: 360px;
}

.notif-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow);
  pointer-events: all;
  opacity: 0;
  transform: translateX(20px);
  transition:
    opacity 0.35s,
    transform 0.35s;
  min-width: 280px;
}
.notif-toast.show {
  opacity: 1;
  transform: translateX(0);
}
.notif-toast.urgent {
  border-color: #ef444466;
}

.toast-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}
.toast-body {
  flex: 1;
  min-width: 0;
}
.toast-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}
.toast-msg {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.toast-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 12px;
  padding: 2px;
  flex-shrink: 0;
  transition: color 0.15s;
}
.toast-close:hover {
  color: var(--text-primary);
}

/* â”€â”€ Topbar positioning fix for notif panel â”€â”€ */
.topbar-left {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ANALYTICS PAGE
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
/* IMPORTANT: #page-analytics must NOT have display:flex without .active
   Otherwise charts ghost-render behind every other section */
#page-analytics {
  padding: 0;
  overflow-y: auto;
  /* No display:flex here â€” the .page rule handles display:none */
}
#page-analytics.active {
  padding: 20px !important;
  flex-direction: column;
  gap: 22px;
}
/* Extra safety: chart-containers collapse when analytics not active */
#page-analytics:not(.active) .chart-container,
#page-analytics:not(.active) .analytics-charts-grid {
  display: none !important;
}

.analytics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.analytics-header h2 {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-export {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #10b981;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  font-family: var(--font);
}
.btn-export:hover {
  background: rgba(16, 185, 129, 0.18);
}

/* Stat cards row */
.analytics-stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.analytics-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
}
.analytics-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}
.analytics-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.analytics-card-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}
.analytics-card-title {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
  font-weight: 600;
}
.analytics-card-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Charts grid */
.analytics-charts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.analytics-chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.analytics-chart-card.col-span-2 {
  grid-column: span 2;
}
.analytics-chart-card.col-span-4 {
  grid-column: span 4;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ANALYTICS FILTER BAR  â€” v8.14
   Ø´Ø±ÙŠØ· Ø§Ù„ÙÙ„ØªØ±Ø©: ÙƒÙ„ | Ø£Ù‚Ø³Ø§Ù… | Ù…ÙˆØ¸ÙÙˆÙ†
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.anl-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}
.anl-filter-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  flex-shrink: 0;
  margin-left: 4px;
}
.anl-filter-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}
.anl-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.18s;
  font-family: var(--font);
  white-space: nowrap;
}
.anl-filter-btn:hover {
  background: var(--bg-hover);
  color: var(--text-white);
  border-color: rgba(69, 214, 255, 0.25);
}
.anl-filter-btn.active {
  background: rgba(69, 214, 255, 0.1);
  color: var(--nexora-cyan);
  border-color: rgba(69, 214, 255, 0.35);
}
.anl-filter-btn.active-dept {
  background: rgba(168, 108, 246, 0.1);
  color: #c4b5fd;
  border-color: rgba(168, 108, 246, 0.35);
}
.anl-filter-btn.active-user {
  background: rgba(236, 72, 153, 0.1);
  color: #f9a8d4;
  border-color: rgba(236, 72, 153, 0.35);
}
.anl-filter-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  flex-shrink: 0;
}

/* â”€â”€ Secondary filter row (Ù‚Ø§Ø¦Ù…Ø© Ø§Ù„Ø£Ù‚Ø³Ø§Ù… / Ø§Ù„Ù…ÙˆØ¸ÙÙŠÙ†) â”€â”€ */
.anl-sub-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.anl-sub-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.18s;
  font-family: var(--font);
  white-space: nowrap;
}
.anl-sub-chip:hover {
  transform: translateY(-1px);
  opacity: 0.88;
}
.anl-sub-chip.selected {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.anl-sub-chip-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ANALYTICS DETAIL PANEL  â€” v8.14
   Ù„ÙˆØ­Ø© ØªÙØ§ØµÙŠÙ„ Ø§Ù„Ù‚Ø³Ù… Ø£Ùˆ Ø§Ù„Ù…ÙˆØ¸Ù
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.anl-detail-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}

/* â”€â”€ Detail header â”€â”€ */
.anl-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  background: linear-gradient(
    135deg,
    rgba(69, 214, 255, 0.05) 0%,
    rgba(168, 108, 246, 0.05) 100%
  );
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.anl-detail-hero {
  display: flex;
  align-items: center;
  gap: 14px;
}
.anl-detail-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.anl-detail-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 2px;
}
.anl-detail-sub {
  font-size: 12px;
  color: var(--text-muted);
}
.anl-detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.anl-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(69, 214, 255, 0.3);
  background: rgba(69, 214, 255, 0.08);
  color: var(--nexora-cyan);
  cursor: pointer;
  transition: all 0.18s;
  font-family: var(--font);
}
.anl-print-btn:hover {
  background: rgba(69, 214, 255, 0.15);
  border-color: rgba(69, 214, 255, 0.5);
  transform: translateY(-1px);
}

/* â”€â”€ Detail body â”€â”€ */
.anl-detail-body {
  padding: 20px 22px;
}

/* â”€â”€ KPI stat row â”€â”€ */
.anl-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.anl-kpi-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
  transition: border-color 0.18s;
}
.anl-kpi-card:hover {
  border-color: rgba(69, 214, 255, 0.2);
}
.anl-kpi-value {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 4px;
}
.anl-kpi-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* â”€â”€ Section sub-title â”€â”€ */
.anl-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 18px 0 10px;
}
.anl-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* â”€â”€ Progress row â”€â”€ */
.anl-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.anl-progress-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-white);
  width: 130px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.anl-progress-bar-wrap {
  flex: 1;
  height: 7px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.anl-progress-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.6s ease;
}
.anl-progress-pct {
  font-size: 11px;
  font-weight: 700;
  width: 38px;
  text-align: left;
  flex-shrink: 0;
}

/* â”€â”€ Task list inside detail â”€â”€ */
.anl-task-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
  padding-left: 2px;
}
.anl-task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  transition: border-color 0.15s;
}
.anl-task-item:hover {
  border-color: rgba(69, 214, 255, 0.2);
}
.anl-task-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.anl-task-title {
  flex: 1;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.anl-task-meta {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* â”€â”€ Recommendations inside detail â”€â”€ */
.anl-rec-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.anl-rec-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}
.anl-rec-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.anl-rec-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-top: 5px;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PRINT STYLES  â€” v8.14
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@media print {
  body > *:not(#printTarget) {
    display: none !important;
  }
  #printTarget {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #fff;
    color: #111;
    padding: 24px 32px;
    font-family: 'Cairo', 'Segoe UI', sans-serif;
    direction: rtl;
    overflow: auto;
  }
  #printTarget * {
    color: inherit !important;
  }
  .no-print {
    display: none !important;
  }
  .anl-print-page-break {
    page-break-before: always;
  }
}

#printTarget {
  display: none;
}
.anl-print-sheet {
  background: #fff;
  color: #111;
  direction: rtl;
  font-family: 'Cairo', 'Segoe UI', sans-serif;
  padding: 28px 36px;
  min-height: 100vh;
}
.anl-print-title {
  font-size: 22px;
  font-weight: 900;
  color: #111;
  margin-bottom: 4px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}
.anl-print-sub {
  font-size: 12px;
  color: #666;
  margin-bottom: 20px;
}
.anl-print-kpi-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.anl-print-kpi {
  flex: 1;
  min-width: 100px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 14px;
  text-align: center;
}
.anl-print-kpi-val {
  font-size: 22px;
  font-weight: 900;
  color: #333;
}
.anl-print-kpi-lbl {
  font-size: 10px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.anl-print-section {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  border-right: 3px solid #6366f1;
  padding-right: 10px;
  margin: 18px 0 10px;
}
.anl-print-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 16px;
}
.anl-print-table th {
  background: #f5f5f5;
  padding: 8px 10px;
  text-align: right;
  font-weight: 700;
  color: #444;
  border: 1px solid #ddd;
}
.anl-print-table td {
  padding: 7px 10px;
  border: 1px solid #eee;
  color: #333;
}
.anl-print-table tr:nth-child(even) td {
  background: #fafafa;
}
.anl-print-rec {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #eee;
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 12px;
  color: #444;
}
.anl-print-footer {
  margin-top: 28px;
  padding-top: 12px;
  border-top: 1px solid #ddd;
  font-size: 10px;
  color: #aaa;
  display: flex;
  justify-content: space-between;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   USER PROFILE MODAL  â€” v8.13
   Ù…Ù„Ù Ø§Ù„Ø´Ø®ØµÙŠ Ø§Ù„Ø§Ø­ØªØ±Ø§ÙÙŠ (Ù„Ù„Ù…Ø¯ÙŠØ± ÙÙ‚Ø·)
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Cover / Hero Banner â”€â”€ */
.up-cover {
  position: relative;
  height: 110px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(135deg, #0d1f4a 0%, #162040 40%, #1a1040 100%);
  overflow: hidden;
  flex-shrink: 0;
}
.up-cover-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 20% 50%,
      rgba(69, 214, 255, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 30%,
      rgba(168, 108, 246, 0.14) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 55% 80%,
      rgba(47, 127, 224, 0.1) 0%,
      transparent 40%
    );
}
.up-cover-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.06) 1px,
    transparent 1px
  );
  background-size: 22px 22px;
}

/* â”€â”€ Avatar â”€â”€ */
.up-avatar-wrap {
  position: absolute;
  bottom: -38px;
  right: 28px;
  z-index: 2;
}
.up-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 3px solid var(--bg-card);
  background: var(--nexora-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  background-size: cover;
  background-position: center;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(69, 214, 255, 0.2);
  flex-shrink: 0;
  overflow: hidden;
}
.up-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* â”€â”€ Status dot on avatar â”€â”€ */
.up-avatar-status {
  position: absolute;
  bottom: 4px;
  left: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}
.up-avatar-status.active {
  background: var(--accent-green);
}
.up-avatar-status.inactive {
  background: var(--text-muted);
}

/* â”€â”€ Body container â”€â”€ */
.up-body {
  padding: 48px 28px 24px;
  overflow-y: auto;
  flex: 1;
}

/* â”€â”€ Name + role row â”€â”€ */
.up-name-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.up-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.2;
}
.up-username {
  font-size: 12px;
  color: var(--text-muted);
  direction: ltr;
  font-family: monospace;
  margin-bottom: 8px;
}

/* â”€â”€ Info pills row â”€â”€ */
.up-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0 18px;
}
.up-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
}
.up-pill-role-admin {
  background: linear-gradient(
    90deg,
    rgba(69, 214, 255, 0.12),
    rgba(168, 108, 246, 0.12)
  );
  color: var(--nexora-cyan);
  border-color: rgba(69, 214, 255, 0.25);
}
/* v8.28: Ù…Ø¯ÙŠØ± Ù…Ø³Ø§Ø¹Ø¯ pill */
.up-pill-role-assistant {
  background: rgba(16, 217, 160, 0.1);
  color: #10d9a0;
  border-color: rgba(16, 217, 160, 0.28);
}
.up-pill-role-supervisor {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.22);
}
.up-pill-role-specialist {
  background: rgba(236, 72, 153, 0.1);
  color: #ec4899;
  border-color: rgba(236, 72, 153, 0.22);
}
.up-pill-role-member {
  background: rgba(143, 163, 204, 0.08);
  color: var(--text-secondary);
  border-color: rgba(143, 163, 204, 0.15);
}
.up-pill-dept {
  background: rgba(69, 214, 255, 0.07);
  color: var(--nexora-cyan);
  border-color: rgba(69, 214, 255, 0.18);
}
.up-pill-active {
  background: rgba(16, 217, 160, 0.08);
  color: var(--accent-green);
  border-color: rgba(16, 217, 160, 0.2);
}
.up-pill-inactive {
  background: rgba(100, 116, 139, 0.1);
  color: var(--text-muted);
  border-color: rgba(100, 116, 139, 0.18);
}
.up-pill-spec {
  background: rgba(168, 108, 246, 0.09);
  color: #c4b5fd;
  border-color: rgba(168, 108, 246, 0.22);
}

/* â”€â”€ Bio block â”€â”€ */
.up-bio {
  background: rgba(69, 214, 255, 0.04);
  border: 1px solid rgba(69, 214, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 18px;
  font-style: italic;
}

/* â”€â”€ Section title â”€â”€ */
.up-section-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 18px 0 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.up-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* â”€â”€ Info grid (2-column) â”€â”€ */
.up-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 4px;
}
@media (max-width: 500px) {
  .up-info-grid {
    grid-template-columns: 1fr;
  }
}
.up-info-item {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  transition: border-color 0.2s;
}
.up-info-item:hover {
  border-color: rgba(69, 214, 255, 0.2);
}
.up-info-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.up-info-text {
  flex: 1;
  min-width: 0;
}
.up-info-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}
.up-info-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.up-info-value.ltr {
  direction: ltr;
  text-align: right;
  font-family: monospace;
}
.up-info-value.muted {
  color: var(--text-muted);
  font-style: italic;
  font-weight: 400;
}

/* â”€â”€ Social links row â”€â”€ */
.up-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.up-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s;
}
.up-social-btn:hover {
  transform: translateY(-1px);
  opacity: 0.85;
}
.up-social-whatsapp {
  background: rgba(37, 211, 102, 0.09);
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.25);
}
.up-social-linkedin {
  background: rgba(0, 119, 181, 0.1);
  color: #0a66c2;
  border-color: rgba(0, 119, 181, 0.25);
}
.up-social-instagram {
  background: rgba(225, 48, 108, 0.09);
  color: #e1306c;
  border-color: rgba(225, 48, 108, 0.25);
}
.up-social-twitter {
  background: rgba(200, 200, 200, 0.07);
  color: #ccc;
  border-color: rgba(200, 200, 200, 0.18);
}
.up-social-portfolio {
  background: rgba(69, 214, 255, 0.08);
  color: var(--nexora-cyan);
  border-color: rgba(69, 214, 255, 0.22);
}

/* â”€â”€ Stats row (Ù…Ù‡Ø§Ù… / Ù†Ø´Ø§Ø·) â”€â”€ */
.up-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 4px;
}
.up-stat-box {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-align: center;
  transition: border-color 0.2s;
}
.up-stat-box:hover {
  border-color: rgba(69, 214, 255, 0.2);
}
.up-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--nexora-cyan);
  line-height: 1;
  margin-bottom: 4px;
}
.up-stat-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* â”€â”€ Footer actions in modal â”€â”€ */
.up-footer {
  display: flex;
  gap: 10px;
  padding: 14px 28px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.up-btn-edit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(69, 214, 255, 0.3);
  background: rgba(69, 214, 255, 0.08);
  color: var(--nexora-cyan);
  transition: all 0.18s;
  font-family: var(--font);
}
.up-btn-edit:hover {
  background: rgba(69, 214, 255, 0.14);
  border-color: rgba(69, 214, 255, 0.5);
  transform: translateY(-1px);
}
.up-btn-toggle-active {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.07);
  color: #fca5a5;
  transition: all 0.18s;
  font-family: var(--font);
}
.up-btn-toggle-active:hover {
  background: rgba(239, 68, 68, 0.13);
  border-color: rgba(239, 68, 68, 0.45);
}
.up-btn-toggle-active.activate {
  border-color: rgba(16, 217, 160, 0.3);
  background: rgba(16, 217, 160, 0.07);
  color: var(--accent-green);
}
.up-btn-toggle-active.activate:hover {
  background: rgba(16, 217, 160, 0.13);
  border-color: rgba(16, 217, 160, 0.45);
}

/* â”€â”€ "Ø¹Ø±Ø¶ Ø§Ù„Ù…Ù„Ù" button in users table â”€â”€ */
.btn-view-profile {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(69, 214, 255, 0.22);
  background: rgba(69, 214, 255, 0.07);
  color: var(--nexora-cyan);
  transition: all 0.18s;
  font-family: var(--font);
  white-space: nowrap;
}
.btn-view-profile:hover {
  background: rgba(69, 214, 255, 0.14);
  border-color: rgba(69, 214, 255, 0.4);
  transform: translateY(-1px);
}

/* â”€â”€ Full-width item (spans both columns) â”€â”€ */
.up-info-item.col-span-2 {
  grid-column: span 2;
}
@media (max-width: 500px) {
  .up-info-item.col-span-2 {
    grid-column: span 1;
  }
}

.chart-card-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-sidebar);
}
.chart-card-header h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.chart-container {
  padding: 16px;
}

/* Analytics section card */
.analytics-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Productivity table */
.prod-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.prod-table thead tr {
  background: var(--bg-sidebar);
}
.prod-table th {
  padding: 10px 14px;
  text-align: right;
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 12px;
  border-bottom: 1px solid var(--border);
}
.prod-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}
.prod-table tbody tr:hover {
  background: var(--bg-hover);
}
.prod-rank {
  font-size: 16px;
  text-align: center !important;
  width: 40px;
}
.prod-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.prod-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--nexora-grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.rate-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rate-bar-wrap > div:first-child {
  /* track */
  flex: 1;
  height: 6px;
  border-radius: 10px;
  background: var(--bg-hover);
  overflow: hidden;
  min-width: 60px;
}
.rate-bar {
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s;
}
.rate-bar-wrap span {
  font-size: 12px;
  font-weight: 700;
  min-width: 34px;
}

.dept-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

/* Dept summary grid */
.dept-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  padding: 16px;
}
.dept-summary-card {
  border: 1px solid;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.dept-summary-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.dept-summary-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 13px;
}
.dept-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dept-summary-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 8px 12px;
  font-size: 12px;
}
.dept-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0;
}
.dept-stat span {
  color: var(--text-muted);
  font-size: 11px;
}
.dept-stat strong {
  font-size: 15px;
  font-weight: 700;
}
.dept-progress-wrap {
  height: 4px;
  background: var(--bg-hover);
  margin: 6px 12px 0;
  border-radius: 10px;
  overflow: hidden;
}
.dept-progress-bar {
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s;
}
.dept-rate {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px 10px;
}

.no-data {
  padding: 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   TASK LINKS WIDGET  â€” v8.53
   Ø±ÙˆØ§Ø¨Ø· Ù…Ø±ØªØ¨Ø·Ø© Ø¨Ø§Ù„Ù…Ù‡Ù…Ø© (ÙÙŠ Ù…ÙˆØ¯Ø§Ù„ Ø§Ù„Ø¥Ø¶Ø§ÙØ© ÙˆØ§Ù„ØªØ¹Ø¯ÙŠÙ„)
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Ø²Ø± "Ø¥Ø¶Ø§ÙØ© Ø±Ø§Ø¨Ø·" ÙÙŠ Ø§Ù„Ø¹Ù†ÙˆØ§Ù† */
.btn-add-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(69, 214, 255, 0.07);
  border: 1px solid rgba(69, 214, 255, 0.22);
  color: var(--nexora-cyan);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.18s;
}
.btn-add-link:hover {
  background: rgba(69, 214, 255, 0.14);
  border-color: rgba(69, 214, 255, 0.45);
  transform: translateY(-1px);
}
.btn-add-link i {
  font-size: 10px;
}
.task-attach-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.task-attach-head strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 950;
}
.task-attach-head strong i {
  color: var(--nexora-cyan);
}
.task-attach-head small {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
}

/* Ø­Ø§ÙˆÙŠØ© Ù‚Ø§Ø¦Ù…Ø© Ø§Ù„Ø±ÙˆØ§Ø¨Ø· */
.task-links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.task-links-list:empty::before {
  content: '\0644\0627 \062A\0648\062C\062F \0631\0648\0627\0628\0637 \0645\0636\0627\0641\0629 \0628\0639\062F - \0627\0636\063A\0637 \0625\0636\0627\0641\0629 \0631\0627\0628\0637 \0644\0625\062F\0631\0627\062C Drive / Figma / Docs';
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  padding: 6px 2px;
}

/* ØµÙ Ø±Ø§Ø¨Ø· ÙˆØ§Ø­Ø¯ */
.tl-row {
  display: grid;
  grid-template-columns: 42px minmax(140px, 0.55fr) minmax(220px, 1fr) 34px;
  align-items: stretch;
  gap: 10px;
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.07), rgba(168, 108, 246, 0.045)),
    var(--bg-input);
  border: 1px solid rgba(69, 214, 255, 0.18);
  border-radius: 16px;
  padding: 10px;
  transition:
    border-color 0.18s,
    box-shadow 0.18s,
    background 0.18s;
}
.tl-row:focus-within {
  border-color: rgba(69, 214, 255, 0.4);
  box-shadow: 0 10px 24px rgba(69, 214, 255, 0.08);
}

/* Ø£ÙŠÙ‚ÙˆÙ†Ø© Ù†ÙˆØ¹ Ø§Ù„Ø±Ø§Ø¨Ø· */
.tl-type-icon {
  width: 42px;
  height: 100%;
  min-height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  background: rgba(69, 214, 255, 0.08);
  color: var(--nexora-cyan);
  transition: background 0.18s;
}
.tl-field {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  background: rgba(8, 15, 34, 0.24);
}
.tl-field span {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 900;
}

/* Ø­Ù‚Ù„ Ø§Ù„ØªØ³Ù…ÙŠØ© */
.tl-label-inp {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
  padding: 0;
  outline: none;
}
.tl-label-inp::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

/* Ø­Ù‚Ù„ Ø§Ù„Ø±Ø§Ø¨Ø· */
.tl-url-inp {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 13px;
  padding: 0;
  outline: none;
  direction: ltr;
  text-align: left;
  min-width: 0;
}
.tl-url-inp::placeholder {
  color: var(--text-muted);
}

/* Ø²Ø± Ø§Ù„Ø­Ø°Ù */
.tl-del-btn {
  align-self: stretch;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.16);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  border-radius: 12px;
  transition:
    color 0.15s,
    background 0.15s;
  flex-shrink: 0;
}
.tl-del-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.task-notes-picker {
  display: grid;
  gap: 10px;
}
.task-notes-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px dashed rgba(69, 214, 255, 0.26);
  border-radius: 16px;
  color: var(--text-muted);
  background: rgba(69, 214, 255, 0.04);
  font-size: 12px;
  font-weight: 800;
}
.task-notes-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}
.task-note-option {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr 28px;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.055), rgba(168, 108, 246, 0.035)),
    var(--bg-input);
  cursor: pointer;
  transition: var(--transition);
}
.task-note-option:hover,
.task-note-option.is-selected {
  border-color: rgba(69, 214, 255, 0.38);
  box-shadow: 0 10px 24px rgba(69, 214, 255, 0.08);
}
.task-note-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.task-note-option-icon,
.task-note-card-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: var(--note-color);
  background: color-mix(in srgb, var(--note-color) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--note-color) 24%, transparent);
}
.task-note-option-body {
  display: grid;
  min-width: 0;
  gap: 4px;
}
.task-note-option-body strong,
.task-note-card strong {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-note-option-body small,
.task-note-card small {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-note-option-check {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: transparent;
  background: rgba(148, 163, 184, 0.12);
}
.task-note-option.is-selected .task-note-option-check {
  color: #fff;
  background: var(--nexora-grad);
}
.task-notes-cards-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.task-note-card {
  display: inline-grid;
  grid-template-columns: 40px minmax(120px, 1fr) 14px;
  align-items: center;
  gap: 9px;
  max-width: 320px;
  padding: 9px 11px;
  border: 1px solid rgba(69, 214, 255, 0.2);
  border-radius: 16px;
  color: var(--text-secondary);
  background: var(--bg-input);
  font-family: var(--font);
  text-align: right;
  cursor: pointer;
  transition: var(--transition);
}
.task-note-card:hover {
  border-color: rgba(69, 214, 255, 0.42);
  color: var(--nexora-cyan);
  transform: translateY(-1px);
}

.task-notes-select-wrap {
  position: relative;
  display: grid;
  gap: 10px;
}
.task-notes-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid rgba(69, 214, 255, 0.22);
  border-radius: 16px;
  color: var(--text-primary);
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.08), rgba(168, 108, 246, 0.05)),
    var(--bg-input);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
  transition: var(--transition);
}
.task-notes-select:hover,
.task-notes-select.is-open {
  border-color: rgba(69, 214, 255, 0.45);
  box-shadow: 0 10px 26px rgba(69, 214, 255, 0.08);
}
.task-notes-select span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.task-notes-select i {
  color: var(--nexora-cyan);
}
.task-notes-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 28px;
}
.task-notes-selected > small {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}
.task-note-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid color-mix(in srgb, var(--note-color) 24%, transparent);
  border-radius: 999px;
  color: var(--note-color);
  background: color-mix(in srgb, var(--note-color) 10%, transparent);
  font-size: 11px;
  font-weight: 950;
}
.task-note-chip button {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  color: currentColor;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}
.task-notes-dropdown {
  display: none;
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 8px);
  z-index: 80;
  overflow: hidden;
  border: 1px solid rgba(69, 214, 255, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.08), rgba(168, 108, 246, 0.05)),
    var(--bg-card);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.36);
}
.task-notes-dropdown.is-open {
  display: grid;
}
.task-notes-search {
  position: relative;
  padding: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}
.task-notes-search i {
  position: absolute;
  top: 50%;
  inset-inline-start: 22px;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.task-notes-search input {
  width: 100%;
  height: 42px;
  padding: 0 42px 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 13px;
  color: var(--text-primary);
  background: var(--bg-input);
  font-family: var(--font);
  outline: none;
}
.task-notes-options {
  display: grid;
  max-height: 292px;
  overflow: auto;
  padding: 8px;
  gap: 6px;
}
.task-notes-options .task-note-option {
  grid-template-columns: 38px minmax(0, 1fr) auto 28px;
  width: 100%;
  min-height: 58px;
  border-radius: 14px;
  text-align: right;
}
.task-note-source {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
  white-space: nowrap;
}
.task-note-source.is-owned {
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.12);
}
.task-note-source.is-shared {
  color: #10d9a0;
  background: rgba(16, 217, 160, 0.12);
}

/* â”€â”€ Ø¹Ø±Ø¶ Ø§Ù„Ø±ÙˆØ§Ø¨Ø· ÙÙŠ Ù…ÙˆØ¯Ø§Ù„ Ø§Ù„ØªÙØ§ØµÙŠÙ„ â”€â”€ */
.task-links-section {
  margin-bottom: 16px;
}
.task-links-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}
.task-links-section-title i {
  color: var(--nexora-cyan);
  font-size: 12px;
}
.task-links-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Ø¨Ø·Ø§Ù‚Ø© Ø±Ø§Ø¨Ø· ÙÙŠ Ø¹Ø±Ø¶ Ø§Ù„ØªÙØ§ØµÙŠÙ„ */
.tl-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 7px 13px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.18s;
  cursor: pointer;
  max-width: 260px;
  overflow: hidden;
}
.tl-card:hover {
  border-color: rgba(69, 214, 255, 0.35);
  background: rgba(69, 214, 255, 0.06);
  color: var(--nexora-cyan);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(69, 214, 255, 0.1);
}
.tl-card-icon {
  font-size: 14px;
  flex-shrink: 0;
}
.tl-card-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tl-card-ext {
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.7;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .task-attach-head,
  .tl-row {
    grid-template-columns: 1fr;
  }
  .task-attach-head {
    display: grid;
  }
  .tl-type-icon,
  .tl-del-btn {
    width: 100%;
    min-height: 38px;
  }
}
.task-links-cards-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.delivery-links-panel,
.review-delivery-links-box {
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid rgba(69, 214, 255, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.08), rgba(168, 108, 246, 0.06)),
    rgba(15, 35, 62, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.task-assignee-board,
.submission-readiness,
.review-assignee-summary,
.review-decision-card {
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid rgba(69, 214, 255, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.08), rgba(168, 108, 246, 0.06)),
    rgba(15, 35, 62, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.task-assignee-board-head,
.submission-readiness-head,
.review-decision-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.task-assignee-board-head div,
.submission-readiness-head div,
.review-decision-head div {
  display: grid;
  gap: 4px;
}
.task-assignee-board-head strong,
.submission-readiness-head strong,
.review-decision-head strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 900;
}
.task-assignee-board-head i,
.submission-readiness-head i,
.review-decision-head i {
  color: var(--nexora-cyan);
}
.task-assignee-board-head small,
.review-decision-head small {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}
.task-assignee-board-head > span,
.submission-readiness-head > span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.12);
  border: 1px solid rgba(69, 214, 255, 0.28);
  font-size: 12px;
  font-weight: 900;
}
.task-assignee-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}
.task-assignee-pro-card {
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 15px;
  background: rgba(9, 24, 44, 0.54);
}
.task-assignee-pro-top {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.task-assignee-pro-avatar,
.review-assignee-summary-avatar {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.task-assignee-pro-name {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.task-assignee-pro-name strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 900;
}
.task-assignee-pro-name small,
.task-assignee-pro-last {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}
.task-assignee-pro-status,
.review-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.1);
  border: 1px solid rgba(69, 214, 255, 0.24);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}
.task-assignee-amber .task-assignee-pro-status,
.review-state-amber {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.11);
  border-color: rgba(245, 158, 11, 0.28);
}
.task-assignee-green .task-assignee-pro-status,
.review-state-green {
  color: #10d9a0;
  background: rgba(16, 217, 160, 0.11);
  border-color: rgba(16, 217, 160, 0.28);
}
.task-assignee-red .task-assignee-pro-status,
.review-state-red {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.26);
}
.task-assignee-pro-progress {
  height: 7px;
  overflow: hidden;
  margin: 12px 0 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
}
.task-assignee-pro-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #45d6ff, #a86cf6);
}
.task-assignee-pro-stats,
.review-assignee-summary-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.task-assignee-pro-stats span,
.review-assignee-summary-metrics > span:not(.review-state) {
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(69, 214, 255, 0.06);
  border: 1px solid rgba(69, 214, 255, 0.14);
}
.task-assignee-pro-stats strong,
.review-assignee-summary-metrics strong {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 900;
}
.task-assignee-pro-stats small,
.review-assignee-summary-metrics small {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
}
.task-assignee-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.task-assignee-timeline span,
.task-assignee-timeline.empty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--text-secondary);
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 10px;
  font-weight: 800;
}
.task-assignee-timeline em {
  color: var(--text-muted);
  font-style: normal;
}
.task-assignee-pro-last {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.submission-readiness.is-ready {
  border-color: rgba(16, 217, 160, 0.32);
  background:
    linear-gradient(135deg, rgba(16, 217, 160, 0.09), rgba(69, 214, 255, 0.07)),
    rgba(15, 35, 62, 0.24);
}
.submission-readiness.is-blocked {
  border-color: rgba(245, 158, 11, 0.32);
}
.submission-readiness-list {
  display: grid;
  gap: 8px;
}
.submit-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 12px;
  color: var(--text-secondary);
  background: rgba(148, 163, 184, 0.07);
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 12px;
  font-weight: 900;
}
.submit-check-item.ok {
  color: #10d9a0;
  background: rgba(16, 217, 160, 0.09);
  border-color: rgba(16, 217, 160, 0.24);
}
.submit-check-item.soft {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.24);
}
.submit-check-item.bad {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.24);
}
.submission-readiness-note {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}
.submission-jump-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  margin-inline-start: 8px;
  padding: 5px 10px;
  border: 1px solid rgba(69, 214, 255, 0.3);
  border-radius: 999px;
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.1);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.16s,
    background 0.16s,
    border-color 0.16s;
}
.submission-jump-link:hover {
  transform: translateY(-1px);
  background: rgba(69, 214, 255, 0.16);
  border-color: rgba(69, 214, 255, 0.48);
}
.review-assignee-summary {
  display: grid;
  gap: 12px;
}
.review-assignee-summary-main {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-assignee-summary-main strong {
  display: block;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 900;
}
.review-assignee-summary-main small {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}
.review-assignee-summary-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.review-assignee-summary-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}
.btn-save.is-disabled,
.btn-save:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  filter: saturate(0.7);
}
.delivery-links-panel.is-blocked-submit {
  border-color: rgba(239, 68, 68, 0.65);
}
[data-theme='light'] .task-assignee-board,
[data-theme='light'] .submission-readiness,
[data-theme='light'] .review-assignee-summary,
[data-theme='light'] .review-decision-card {
  background: linear-gradient(135deg, rgba(69, 214, 255, 0.09), rgba(168, 108, 246, 0.06)), #f8fbff;
  border-color: rgba(47, 127, 224, 0.18);
}
[data-theme='light'] .task-assignee-pro-card {
  background: #fff;
  border-color: #c8d8f2;
}
@media (max-width: 640px) {
  .task-assignee-board-head,
  .submission-readiness-head,
  .review-decision-head {
    flex-direction: column;
    align-items: stretch;
  }
  .task-assignee-board-grid,
  .task-assignee-pro-stats,
  .review-assignee-summary-metrics {
    grid-template-columns: 1fr;
  }
  .task-assignee-pro-top {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .task-assignee-pro-status {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
.delivery-links-panel.is-editable {
  border-color: rgba(16, 217, 160, 0.24);
  background:
    linear-gradient(135deg, rgba(16, 217, 160, 0.08), rgba(69, 214, 255, 0.06)),
    rgba(15, 35, 62, 0.24);
}
.delivery-links-panel.needs-attention {
  border-color: rgba(239, 68, 68, 0.65);
  box-shadow:
    0 0 0 2px rgba(239, 68, 68, 0.12),
    0 18px 40px rgba(239, 68, 68, 0.12);
}
.delivery-links-panel.is-submit-target {
  border-color: rgba(16, 217, 160, 0.58);
  background:
    linear-gradient(135deg, rgba(16, 217, 160, 0.13), rgba(69, 214, 255, 0.09)),
    rgba(15, 35, 62, 0.28);
}
.delivery-links-panel.is-submit-target .delivery-required-note {
  border-color: rgba(16, 217, 160, 0.35);
  background: rgba(16, 217, 160, 0.1);
  color: #10d9a0;
}
.delivery-links-panel.is-submit-target .delivery-required-note i {
  color: #10d9a0;
}
.delivery-required-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 9px 11px;
  border: 1px solid rgba(245, 158, 11, 0.26);
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.08);
  color: #f59e0b;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.6;
}
.delivery-required-note i {
  color: #f59e0b;
}
.delivery-links-head,
.review-delivery-links-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.delivery-links-head span,
.review-delivery-links-head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 900;
}
.delivery-links-head i,
.review-delivery-links-head i {
  color: var(--nexora-cyan);
}
.delivery-links-head em,
.review-delivery-links-head small {
  color: var(--text-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}
.delivery-links-list {
  display: grid;
  gap: 9px;
}
.dl-row {
  display: grid;
  grid-template-columns: 38px minmax(110px, 180px) minmax(180px, 1fr) 38px;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(9, 24, 44, 0.52);
}
.dl-row:focus-within {
  border-color: rgba(69, 214, 255, 0.55);
  box-shadow: 0 0 0 2px rgba(69, 214, 255, 0.1);
}
.dl-type-icon,
.dl-del-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
}
.dl-type-icon {
  background: rgba(69, 214, 255, 0.1);
  font-size: 15px;
}
.dl-label-inp,
.dl-url-inp {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text-primary);
  background: transparent;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
}
.dl-url-inp {
  color: var(--text-secondary);
  direction: ltr;
  text-align: left;
}
.dl-label-inp::placeholder,
.dl-url-inp::placeholder {
  color: var(--text-muted);
  font-weight: 600;
}
.dl-del-btn {
  border: 1px solid rgba(239, 68, 68, 0.22);
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  cursor: pointer;
  transition:
    transform 0.16s,
    background 0.16s,
    border-color 0.16s;
}
.dl-del-btn:hover {
  transform: translateY(-1px);
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.42);
}
.delivery-links-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  flex-wrap: wrap;
}
.dl-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(69, 214, 255, 0.22);
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.08);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.16s,
    box-shadow 0.16s,
    background 0.16s;
}
.dl-action-btn.save {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #10d9a0, #2f7fe0);
  box-shadow: 0 10px 24px rgba(16, 217, 160, 0.12);
}
.dl-action-btn:hover {
  transform: translateY(-1px);
}
.dl-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 9px;
}
.dl-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  text-decoration: none;
  color: var(--text-primary);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(9, 24, 44, 0.5);
  transition:
    transform 0.16s,
    border-color 0.16s,
    background 0.16s;
}
.dl-card:hover {
  transform: translateY(-1px);
  border-color: rgba(69, 214, 255, 0.45);
  background: rgba(69, 214, 255, 0.08);
}
.dl-card-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(69, 214, 255, 0.1);
}
.dl-card-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dl-card-main strong,
.dl-card-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dl-card-main strong {
  font-size: 12px;
  font-weight: 900;
}
.dl-card-main small {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  direction: ltr;
  text-align: left;
}
.dl-card-open {
  color: var(--text-muted);
  font-size: 12px;
}
.dl-empty {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.06);
  font-size: 12px;
  font-weight: 800;
}
[data-theme='light'] .delivery-links-panel,
[data-theme='light'] .review-delivery-links-box {
  background: linear-gradient(135deg, rgba(69, 214, 255, 0.09), rgba(168, 108, 246, 0.06)), #f8fbff;
  border-color: rgba(47, 127, 224, 0.18);
}
[data-theme='light'] .dl-row,
[data-theme='light'] .dl-card {
  background: #fff;
  border-color: #c8d8f2;
}
@media (max-width: 640px) {
  .delivery-links-head,
  .review-delivery-links-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .dl-row {
    grid-template-columns: 34px 1fr 34px;
  }
  .dl-url-inp {
    grid-column: 1 / -1;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(69, 214, 255, 0.06);
  }
  .dl-cards {
    grid-template-columns: 1fr;
  }
}

/* Responsive analytics */
@media (max-width: 900px) {
  .analytics-charts-grid {
    grid-template-columns: 1fr 1fr;
  }
  .analytics-chart-card.col-span-2 {
    grid-column: span 2;
  }
}
@media (max-width: 600px) {
  .analytics-charts-grid {
    grid-template-columns: 1fr;
  }
  .analytics-chart-card.col-span-2 {
    grid-column: span 1;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CHAT PAGE â€” Complete Styles (matches chat.js)
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
#page-chat {
  padding: 0;
  overflow: hidden;
}

/* chat-layout fills the page flex container */
.chat-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  height: 100%;
}

/* â”€â”€ Sidebar (room list) â”€â”€ */
.chat-sidebar {
  width: 250px;
  min-width: 200px;
  flex-shrink: 0;
  background: var(--bg-sidebar);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-sidebar-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.chat-sidebar-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

/* Online indicator */
.chat-online-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-muted);
}
.chat-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  animation: chatPulse 2s infinite;
}
@keyframes chatPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* Search */
.chat-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-input);
  flex-shrink: 0;
}
.chat-search-wrap i {
  color: var(--text-muted);
  font-size: 12px;
  flex-shrink: 0;
}
.chat-search-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font);
}

/* Room list scroll */
.chat-rooms-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

/* Room item (used by renderChatPage / chat.js) */
.chat-room-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
  border-radius: 0;
}
.chat-room-item:hover {
  background: var(--bg-hover);
}
.chat-room-item.active {
  background: rgba(69, 214, 255, 0.08);
  border-right: 3px solid var(--nexora-cyan);
}
.chat-room-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.chat-room-info {
  flex: 1;
  min-width: 0;
}
.chat-room-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.chat-room-preview {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-unread-badge {
  background: var(--nexora-cyan);
  color: #0a1628;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  flex-shrink: 0;
}

/* â”€â”€ Main chat area â”€â”€ */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-base);
  min-width: 0;
}

/* Empty state when no room is selected */
.chat-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 40px;
}

/* Room layout (rendered inside chatMain when a room is open) */
.chat-room-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* Room header */
.chat-room-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  flex-shrink: 0;
}
.chat-room-icon-lg {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.chat-room-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.chat-room-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

.chat-header-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: var(--transition);
}
.chat-header-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* Pinned banner */
.chat-pinned-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(245, 158, 11, 0.08);
  border-bottom: 1px solid rgba(245, 158, 11, 0.15);
  font-size: 12px;
  flex-shrink: 0;
}

/* Messages area */
.chat-messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chat-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 13px;
}
.chat-no-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  padding: 40px;
}

/* Typing bar */
.chat-typing-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  flex-shrink: 0;
}
.chat-typing-dots {
  display: flex;
  gap: 3px;
}
.chat-typing-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--nexora-cyan);
  animation: typingBounce 1.2s infinite;
}
.chat-typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.chat-typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes typingBounce {
  0%,
  80%,
  100% {
    transform: scale(0.6);
  }
  40% {
    transform: scale(1);
  }
}

/* Input area */
.chat-input-area {
  padding: 10px 14px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  flex-shrink: 0;
}
.chat-reply-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin-bottom: 8px;
  background: rgba(69, 214, 255, 0.06);
  border-radius: 8px;
  border-right: 3px solid var(--nexora-cyan);
}
.chat-reply-content {
  flex: 1;
  font-size: 12px;
  color: var(--text-secondary);
}
.chat-reply-cancel {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  padding: 2px 5px;
  border-radius: 4px;
  transition: var(--transition);
}
.chat-reply-cancel:hover {
  color: #ef4444;
}
.chat-file-preview-area {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.chat-file-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  color: var(--text-secondary);
}
.chat-file-chip button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0 2px;
  font-size: 11px;
  transition: color 0.15s;
}
.chat-file-chip button:hover {
  color: #ef4444;
}

.chat-input-row {
  display: flex;
  align-items: flex-end;
  gap: 7px;
}
.chat-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition);
  flex-shrink: 0;
}
.chat-action-btn:hover {
  color: var(--nexora-cyan);
  border-color: var(--nexora-cyan);
}
.chat-textarea {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 13px;
  font-family: var(--font);
  color: var(--text-primary);
  resize: none;
  outline: none;
  min-height: 36px;
  max-height: 120px;
  line-height: 1.5;
  transition: border-color 0.2s;
}
.chat-textarea:focus {
  border-color: rgba(69, 214, 255, 0.35);
}
.chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(69, 214, 255, 0.12);
  border: 1px solid rgba(69, 214, 255, 0.25);
  color: var(--nexora-cyan);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--transition);
  flex-shrink: 0;
}
.chat-send-btn:hover {
  background: rgba(69, 214, 255, 0.22);
}

/* Readonly bar (announce-only rooms) */
.chat-readonly-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  color: var(--text-muted);
  font-size: 12px;
  background: var(--bg-input);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* Emoji picker */
.chat-emoji-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, 30px);
  gap: 3px;
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  max-height: 160px;
  overflow-y: auto;
  position: absolute;
  bottom: 50px;
  z-index: 50;
  box-shadow: var(--shadow);
}
.emoji-opt {
  font-size: 18px;
  cursor: pointer;
  padding: 3px;
  border-radius: 5px;
  transition: background 0.1s;
  text-align: center;
}
.emoji-opt:hover {
  background: var(--bg-hover);
}

/* Message bubbles (chat.js renders .chat-message class) */
.chat-message {
  display: flex;
  gap: 10px;
  padding: 4px 0;
  transition: background 0.15s;
  position: relative;
}
.chat-message:hover {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
}
.chat-message.own {
  flex-direction: row-reverse;
}
.chat-message.admin-msg .chat-msg-bubble {
  border-right: 2px solid var(--nexora-cyan);
}
.chat-message.pinned {
  background: rgba(245, 158, 11, 0.04);
}

.chat-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--nexora-grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.chat-msg-bubble {
  max-width: 68%;
  min-width: 80px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0 14px 14px 14px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-primary);
  word-break: break-word;
  position: relative;
}
.chat-message.own .chat-msg-bubble {
  background: rgba(69, 214, 255, 0.09);
  border-color: rgba(69, 214, 255, 0.2);
  border-radius: 14px 0 14px 14px;
}
.chat-msg-author {
  font-size: 12px;
  font-weight: 700;
  color: var(--nexora-cyan);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat-msg-role {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.85;
}
.chat-msg-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.6;
}
.chat-mention {
  color: var(--nexora-cyan);
  font-weight: 600;
}
.chat-msg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  flex-wrap: wrap;
}
.chat-msg-time {
  font-size: 10px;
  color: var(--text-muted);
}
.chat-msg-edited {
  font-size: 10px;
  color: var(--text-muted);
  font-style: italic;
}

/* Actions hover */
.chat-msg-actions {
  display: none;
  position: absolute;
  top: -12px;
  left: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
  box-shadow: var(--shadow-sm);
}
.chat-message.own .chat-msg-actions {
  left: auto;
  right: 8px;
}
.chat-message:hover .chat-msg-actions {
  display: flex;
}
.chat-msg-actions button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px 6px;
  border-radius: 5px;
  font-size: 12px;
  transition: var(--transition);
}
.chat-msg-actions button:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* Reply reference */
.chat-reply-ref {
  background: var(--bg-hover);
  border-right: 2px solid var(--nexora-cyan);
  border-radius: 6px;
  padding: 5px 8px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.chat-reply-ref:hover {
  background: var(--bg-active);
}
.chat-reply-ref-author {
  font-size: 11px;
  font-weight: 700;
  color: var(--nexora-cyan);
  margin-bottom: 2px;
}
.chat-reply-ref-text {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Attachments */
.chat-attachment {
  margin-top: 6px;
}
.chat-img-preview {
  max-width: 220px;
  max-height: 180px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid var(--border);
}
.chat-file-download {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}
.chat-file-download:hover {
  border-color: var(--nexora-cyan);
  color: var(--nexora-cyan);
}

/* Date separator */
.chat-date-sep {
  text-align: center;
  padding: 10px 0;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-date-sep span {
  flex-shrink: 0;
  padding: 3px 10px;
  background: var(--bg-input);
  border-radius: 10px;
}
.chat-date-sep::before,
.chat-date-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Reactions */
.chat-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}
.reaction-chip {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2px 7px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}
.reaction-chip:hover {
  background: rgba(255, 255, 255, 0.1);
}
.reaction-chip.reacted {
  border-color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.08);
}

/* Nexora comment/chat action controls */
.comment-actions,
.chat-msg-actions {
  direction: rtl;
}

.comment-action-btn,
.chat-msg-actions button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(69, 214, 255, 0.22);
  border-radius: 7px;
  background: rgba(15, 29, 58, 0.82);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.comment-action-btn:hover,
.chat-msg-actions button:hover {
  transform: translateY(-1px);
  background: rgba(69, 214, 255, 0.12);
  border-color: rgba(69, 214, 255, 0.42);
  color: var(--nexora-cyan);
}

.comment-action-btn.danger,
.chat-msg-actions button[style*='accent-red'] {
  color: #f87171 !important;
  border-color: rgba(239, 68, 68, 0.18);
}

.comment-action-btn.danger:hover,
.chat-msg-actions button[style*='accent-red']:hover {
  color: #fff !important;
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.45);
}

.comment-reactions,
.chat-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.reaction-chip {
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(69, 214, 255, 0.2);
  border-radius: 999px;
  background: rgba(22, 32, 64, 0.75);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font: 700 11px/1 var(--font);
  transition: var(--transition);
}

.reaction-chip:hover {
  color: var(--text-primary);
  border-color: rgba(69, 214, 255, 0.45);
  background: rgba(69, 214, 255, 0.1);
}

.reaction-chip.reacted {
  color: #ffffff;
  border-color: rgba(69, 214, 255, 0.62);
  background: linear-gradient(
    135deg,
    rgba(69, 214, 255, 0.26),
    rgba(168, 108, 246, 0.2)
  );
  box-shadow:
    0 0 0 1px rgba(69, 214, 255, 0.08),
    0 8px 22px rgba(69, 214, 255, 0.08);
}

.chat-reaction-popup,
.task-comment-reaction-popup {
  position: absolute;
  z-index: 999;
  display: grid;
  grid-template-columns: repeat(4, 30px);
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(69, 214, 255, 0.24);
  border-radius: 10px;
  background: rgba(11, 20, 51, 0.96);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  backdrop-filter: blur(10px);
}

.task-comment-reaction-popup {
  position: relative;
  width: max-content;
  margin-top: 8px;
}

.chat-reaction-popup button,
.task-comment-reaction-popup button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: rgba(22, 32, 64, 0.86);
  cursor: pointer;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.14s ease,
    background 0.14s ease;
}

.chat-reaction-popup button:hover,
.task-comment-reaction-popup button:hover {
  transform: translateY(-1px) scale(1.06);
  background: rgba(69, 214, 255, 0.16);
}

[data-theme='light'] .comment-action-btn,
[data-theme='light'] .chat-msg-actions button {
  background: #ffffff;
  border-color: #cfe0ff;
  color: #64748b;
  box-shadow: 0 6px 18px rgba(47, 127, 224, 0.1);
}

[data-theme='light'] .comment-action-btn:hover,
[data-theme='light'] .chat-msg-actions button:hover {
  background: #eef7ff;
  border-color: rgba(47, 127, 224, 0.38);
  color: #2f7fe0;
}

[data-theme='light'] .comment-action-btn.danger,
[data-theme='light'] .chat-msg-actions button[style*='accent-red'] {
  background: #fff5f5;
  border-color: #fecaca;
  color: #ef4444 !important;
}

[data-theme='light'] .comment-action-btn.danger:hover,
[data-theme='light'] .chat-msg-actions button[style*='accent-red']:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c !important;
}

[data-theme='light'] .reaction-chip {
  background: #ffffff;
  border-color: #cfe0ff;
  color: #475569;
  box-shadow: 0 4px 12px rgba(47, 127, 224, 0.08);
}

[data-theme='light'] .reaction-chip:hover {
  background: #eef7ff;
  border-color: rgba(47, 127, 224, 0.35);
  color: #1d4ed8;
}

[data-theme='light'] .reaction-chip.reacted {
  background: linear-gradient(
    135deg,
    rgba(69, 214, 255, 0.24),
    rgba(168, 108, 246, 0.18)
  );
  border-color: #7dd3fc;
  color: #1e3a8a;
  box-shadow: 0 6px 18px rgba(47, 127, 224, 0.12);
}

[data-theme='light'] .chat-reaction-popup,
[data-theme='light'] .task-comment-reaction-popup {
  background: #ffffff;
  border-color: #cfe0ff;
  box-shadow:
    0 18px 45px rgba(47, 127, 224, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

[data-theme='light'] .chat-reaction-popup button,
[data-theme='light'] .task-comment-reaction-popup button {
  background: #f1f5ff;
}

[data-theme='light'] .chat-reaction-popup button:hover,
[data-theme='light'] .task-comment-reaction-popup button:hover {
  background: #e0f2fe;
}

/* Inline reaction picker */
.inline-reaction-picker {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  box-shadow: var(--shadow);
  margin-top: 6px;
}
.inline-reaction-picker button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding: 3px 5px;
  border-radius: 5px;
  transition: background 0.1s;
}
.inline-reaction-picker button:hover {
  background: var(--bg-hover);
}

/* Responsive */
@media (max-width: 768px) {
  .chat-sidebar {
    width: 60px;
    min-width: 60px;
  }
  .chat-room-info,
  .chat-sidebar-header h3 span {
    display: none;
  }
}

/* â”€â”€ Old channel-item aliases kept for backwards compat â”€â”€ */
.chat-channel-item {
  display: none;
} /* replaced by chat-room-item */
.chat-emoji-btn {
  background: var(--bg-input);
  color: var(--text-muted);
}
.chat-emoji-btn:hover {
  color: #f59e0b;
}
.chat-file-btn {
  background: var(--bg-input);
  color: var(--text-muted);
}
.chat-file-btn:hover {
  color: var(--nexora-cyan);
}
.chat-send-btn {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  color: #6366f1;
}
.chat-send-btn:hover {
  background: rgba(99, 102, 241, 0.25);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   REGISTRATION MODAL
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.register-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.register-grid .col-span-2 {
  grid-column: span 2;
}
.register-grid .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.register-grid label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}
.form-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text-primary);
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus {
  border-color: rgba(99, 102, 241, 0.4);
}

.input-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-password-wrap .form-input {
  width: 100%;
  padding-left: 36px;
}
.pwd-toggle {
  position: absolute;
  left: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 13px;
  padding: 4px;
  transition: color 0.15s;
}
.pwd-toggle:hover {
  color: var(--nexora-cyan);
}

@media (max-width: 500px) {
  .register-grid {
    grid-template-columns: 1fr;
  }
  .register-grid .col-span-2 {
    grid-column: span 1;
  }
}

/* â”€â”€ Badge variant for cyan â”€â”€ */
.badge-cyan {
  background: rgba(69, 214, 255, 0.15);
  color: #45d6ff;
}

/* â”€â”€ Nav item analytics/chat â”€â”€ */
.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   RESPONSIVE FIXES
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@media (max-width: 1200px) {
  .analytics-charts-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  #page-analytics {
    padding: 12px;
  }
  .analytics-stat-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .analytics-charts-grid {
    grid-template-columns: 1fr;
  }
  .analytics-chart-card.col-span-2 {
    grid-column: span 1;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SECTION COMMENTS BUTTON  (toolbar)
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.btn-section-comments {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(69, 214, 255, 0.25);
  background: rgba(69, 214, 255, 0.07);
  color: var(--nexora-cyan);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}
.btn-section-comments:hover {
  background: rgba(69, 214, 255, 0.15);
  border-color: rgba(69, 214, 255, 0.5);
  transform: translateY(-1px);
}
.btn-section-comments i {
  font-size: 14px;
}
.sec-comments-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--nexora-cyan);
  color: #0b1433;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SECTION COMMENTS MODAL
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.sc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 6000;
  background: rgba(5, 10, 25, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.28s ease;
}
.sc-modal-overlay.sc-modal-show {
  opacity: 1;
}

.sc-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(18px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sc-modal-overlay.sc-modal-show .sc-modal {
  transform: translateY(0) scale(1);
}

/* â”€â”€ Header â”€â”€ */
.sc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-sidebar);
  flex-shrink: 0;
}
.sc-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sc-header-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(69, 214, 255, 0.1);
  border: 1px solid rgba(69, 214, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.sc-modal-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
  margin: 0;
}
.sc-modal-header p {
  font-size: 11px;
  color: var(--text-muted);
  margin: 2px 0 0;
}
.sc-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--transition);
}
.sc-close-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

/* â”€â”€ Comments List â”€â”€ */
.sc-comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 200px;
  max-height: 460px;
}

/* â”€â”€ Loading â”€â”€ */
.sc-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 13px;
  flex: 1;
}
.sc-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--nexora-cyan);
  border-radius: 50%;
  animation: scSpin 0.8s linear infinite;
}
@keyframes scSpin {
  to {
    transform: rotate(360deg);
  }
}

/* â”€â”€ Empty State â”€â”€ */
.sc-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 50px 20px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}
.sc-empty-state i {
  font-size: 44px;
  opacity: 0.2;
}

/* â”€â”€ Comment Item â”€â”€ */
.sc-comment-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
  animation: scFadeIn 0.25s ease;
}
@keyframes scFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.sc-comment-item:hover {
  border-color: rgba(69, 214, 255, 0.2);
}

.sc-comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  margin-top: 2px;
}

.sc-comment-body {
  flex: 1;
  min-width: 0;
}

.sc-comment-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.sc-comment-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
}
.sc-role-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.sc-role-admin {
  background: rgba(69, 214, 255, 0.15);
  color: var(--nexora-cyan);
}
.sc-role-supervisor {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}
.sc-role-specialist {
  background: rgba(236, 72, 153, 0.15);
  color: #ec4899;
}
.sc-role-member {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}

.sc-dept-badge {
  font-size: 10px;
  color: var(--text-muted);
  background: var(--bg-hover);
  padding: 2px 7px;
  border-radius: 10px;
}
.sc-comment-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-right: auto;
}
.sc-edited-badge {
  font-size: 10px;
  color: var(--text-muted);
  font-style: italic;
}

.sc-comment-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.6;
  word-break: break-word;
  white-space: pre-wrap;
  margin-bottom: 8px;
}
.sc-mention {
  color: var(--nexora-cyan);
  font-weight: 600;
  background: rgba(69, 214, 255, 0.08);
  padding: 1px 4px;
  border-radius: 4px;
}

/* â”€â”€ Attachments â”€â”€ */
.sc-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.sc-attach-img-wrap img {
  max-width: 220px;
  max-height: 160px;
  border-radius: 8px;
  display: block;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: opacity 0.2s;
}
.sc-attach-img-wrap img:hover {
  opacity: 0.85;
}
.sc-attach-file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--nexora-cyan);
  font-size: 12px;
  text-decoration: none;
  transition: var(--transition);
}
.sc-attach-file:hover {
  border-color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.08);
}
.sc-attach-size {
  font-size: 10px;
  color: var(--text-muted);
}

/* â”€â”€ Footer Actions â”€â”€ */
.sc-comment-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.sc-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}
.sc-like-btn:hover {
  border-color: #ec4899;
  color: #ec4899;
  background: rgba(236, 72, 153, 0.08);
}
.sc-like-btn.sc-liked {
  border-color: #ec4899;
  color: #ec4899;
  background: rgba(236, 72, 153, 0.1);
}
.sc-comment-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}
.sc-act-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: var(--transition);
}
.sc-edit-btn {
  color: var(--nexora-cyan);
}
.sc-edit-btn:hover {
  background: rgba(69, 214, 255, 0.1);
  border-color: rgba(69, 214, 255, 0.3);
}
.sc-del-btn {
  color: var(--text-muted);
}
.sc-del-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* â”€â”€ Input Area â”€â”€ */
.sc-input-area {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg-sidebar);
  flex-shrink: 0;
}
.sc-file-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.sc-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 11px;
  color: var(--text-secondary);
}
.sc-chip-size {
  font-size: 10px;
  color: var(--text-muted);
}

.sc-input-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.sc-input-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--nexora-grad);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.sc-input-box {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}
.sc-input-box:focus-within {
  border-color: rgba(69, 214, 255, 0.45);
}
.sc-textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 13px;
  padding: 10px 14px;
  resize: none;
  min-height: 60px;
  max-height: 140px;
  line-height: 1.6;
}
.sc-textarea::placeholder {
  color: var(--text-muted);
}
.sc-input-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-top: 1px solid var(--border);
}
.sc-attach-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: var(--transition);
}
.sc-attach-btn:hover {
  color: var(--nexora-cyan);
  border-color: rgba(69, 214, 255, 0.4);
}
.sc-hint {
  font-size: 10px;
  color: var(--text-muted);
  flex: 1;
}
.sc-send-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(69, 214, 255, 0.35);
  background: rgba(69, 214, 255, 0.12);
  color: var(--nexora-cyan);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.sc-send-btn:hover {
  background: rgba(69, 214, 255, 0.22);
  border-color: rgba(69, 214, 255, 0.6);
}
.sc-send-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
/* v8.32: progress bar inside SC input box */
.sc-input-box .cmt-upload-progress {
  border-radius: 0;
  border-left: none;
  border-right: none;
  padding: 4px 10px;
}

/* LTR adjustments */
body.ltr .sc-comment-time {
  margin-right: 0;
  margin-left: auto;
}
body.ltr .sc-comment-actions {
  margin-right: 0;
  margin-left: auto;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   INLINE SECTION COMMENTS PANEL  (v2.0)
   Replaces modal â€” lives at bottom of each page
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.sc-inline-panel {
  margin-top: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* â”€â”€ Collapsible Header â”€â”€ */
.sc-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-sidebar);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}
.sc-panel-header:hover {
  background: var(--bg-hover);
}

.sc-panel-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sc-panel-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sc-panel-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(69, 214, 255, 0.08);
  border: 1px solid rgba(69, 214, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.sc-panel-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
}

.sc-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.sc-chevron {
  color: var(--text-muted);
  font-size: 12px;
  transition: transform 0.25s ease;
}
.sc-chevron-open {
  transform: rotate(180deg);
}

/* â”€â”€ Body (hidden by default, expands on toggle) â”€â”€ */
.sc-panel-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.sc-panel-body.sc-body-open {
  max-height: 900px;
}

/* â”€â”€ Comments list inside panel â”€â”€ */
.sc-list {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 80px;
  max-height: 480px;
  overflow-y: auto;
  border-bottom: 1px solid var(--border);
}

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 600px) {
  .sc-panel-header {
    padding: 12px 14px;
  }
  .sc-list {
    max-height: 300px;
    padding: 12px 14px;
  }
  .sc-input-area {
    padding: 12px 14px 16px;
  }
}

/* â”€â”€ Disabled notice â”€â”€ */
.sc-disabled-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(239, 68, 68, 0.07);
  border-top: 1px solid rgba(239, 68, 68, 0.15);
  color: #ef4444;
  font-size: 13px;
  font-weight: 500;
}
.sc-disabled-notice i {
  font-size: 16px;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ADMIN COMMENT CONTROL PANEL
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.sc-admin-ctrl-panel {
  margin: 0 16px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.05);
  overflow: hidden;
}
.sc-admin-ctrl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}
.sc-admin-ctrl-header:hover {
  background: rgba(245, 158, 11, 0.08);
}
.sc-ctrl-chevron {
  color: #f59e0b;
  font-size: 11px;
  transition: transform 0.25s ease;
}
.sc-admin-ctrl-body {
  border-top: 1px solid rgba(245, 158, 11, 0.15);
}
.sc-ctrl-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sc-ctrl-header {
  display: grid;
  grid-template-columns: 1fr 100px 110px;
  gap: 8px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sc-ctrl-row {
  display: grid;
  grid-template-columns: 1fr 100px 110px;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.15s;
}
.sc-ctrl-row:hover {
  background: var(--bg-hover);
}
.sc-ctrl-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}
.sc-ctrl-avatar {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--nexora-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.sc-ctrl-dept {
  font-size: 11px;
  color: var(--text-muted);
}
.sc-ctrl-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}
.sc-ctrl-enabled {
  background: rgba(16, 217, 160, 0.1);
  border-color: rgba(16, 217, 160, 0.3);
  color: #10d9a0;
}
.sc-ctrl-enabled:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}
.sc-ctrl-disabled {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}
.sc-ctrl-disabled:hover {
  background: rgba(16, 217, 160, 0.1);
  border-color: rgba(16, 217, 160, 0.3);
  color: #10d9a0;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CHAT PERMISSIONS PANEL  v8.30
   dropdown-based â€” same pattern as dept-visibility
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Detail container scrollable â”€â”€ */
#chat-perm-detail {
  padding: 0 14px 14px;
}

/* â”€â”€ User card (top of detail) â”€â”€ */
.cp-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--bg-input);
  margin-top: 12px;
  margin-bottom: 14px;
}
.cp-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.cp-user-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cp-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cp-user-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.cp-dot {
  opacity: 0.4;
}

/* â”€â”€ Section header (title row) â”€â”€ */
.cp-section-header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.cp-section-header i {
  font-size: 11px;
}
.cp-rooms-count {
  margin-right: auto;
  font-size: 10px;
  font-weight: 600;
  color: var(--nexora-cyan);
  opacity: 0.7;
  text-transform: none;
  letter-spacing: 0;
}

/* â”€â”€ Main chat on/off toggle row â”€â”€ */
.cp-main-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--border);
  margin-bottom: 6px;
}
.cp-main-toggle-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.cp-main-toggle-label {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cp-main-toggle-label.on {
  color: #10d9a0;
}
.cp-main-toggle-label.off {
  color: #ef4444;
}
.cp-main-toggle-hint {
  font-size: 10px;
  color: var(--text-muted);
}

/* â”€â”€ Rooms list â”€â”€ */
.cp-rooms-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.cp-room-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.cp-room-row:last-child {
  border-bottom: none;
}
.cp-room-row:hover {
  background: var(--bg-hover);
}
.cp-room-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-primary);
}
.cp-room-label i {
  font-size: 11px;
  width: 14px;
  text-align: center;
}

/* â”€â”€ Toggle switch (cp-toggle) â€” same mechanics as .toggle-switch â”€â”€ */
.cp-toggle {
  position: relative;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
  cursor: pointer;
  display: inline-block;
}
.cp-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cp-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-hover);
  border-radius: 22px;
  border: 1px solid var(--border);
  transition: background 0.25s;
}
.cp-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  right: 2px;
  top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.cp-toggle input:checked + .cp-slider {
  background: #10d9a0;
  border-color: rgba(16, 217, 160, 0.4);
}
.cp-toggle input:checked + .cp-slider::before {
  transform: translateX(-16px);
}

/* â”€â”€ Large toggle variant â”€â”€ */
.cp-toggle-lg {
  width: 44px;
  height: 26px;
}
.cp-toggle-lg .cp-slider::before {
  width: 20px;
  height: 20px;
}
.cp-toggle-lg input:checked + .cp-slider::before {
  transform: translateX(-18px);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MINI ANALYTICS PANEL  (per-section)
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.mini-analytics-panel {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.mini-analytics-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
@media (max-width: 768px) {
  .mini-analytics-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .mini-analytics-cards {
    grid-template-columns: 1fr 1fr;
  }
}
.mini-analytics-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-input);
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.mini-analytics-card:hover {
  border-color: rgba(69, 214, 255, 0.25);
  transform: translateY(-1px);
}
.mini-anl-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.mini-anl-body {
  flex: 1;
  min-width: 0;
}
.mini-anl-value {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2px;
}
.mini-anl-label {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-anl-progress {
  height: 5px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
  margin-bottom: 6px;
}
.mini-anl-progress-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
  max-width: 100%;
}
.mini-anl-rate {
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

/* sub-label under value */
.mini-anl-sub {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MINI-ANALYTICS â€” DEPT BREAKDOWN
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.mini-anl-dept-section,
.mini-anl-recs-section {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.mini-anl-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
/* Dept row */
.mini-anl-dept-row {
  display: grid;
  grid-template-columns: 90px 1fr 56px;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}
.mini-anl-dept-name {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-anl-dept-bar-wrap {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.mini-anl-dept-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
  min-width: 3px;
}
.mini-anl-dept-nums {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
  font-size: 11px;
  font-weight: 700;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MINI-ANALYTICS â€” RECOMMENDATIONS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.mini-anl-recs-section {
  margin-top: 10px;
}
.mini-anl-rec-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  margin-bottom: 5px;
  transition: border-color 0.18s;
}
.mini-anl-rec-item:hover {
  border-color: rgba(69, 214, 255, 0.2);
}
.mini-anl-rec-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}
.mini-anl-rec-text {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

/* Light theme overrides */
[data-theme='light'] .mini-anl-rec-item {
  background: #f4f7ff;
  border-color: #d0d9f0;
}
[data-theme='light'] .mini-analytics-card {
  background: #f8faff;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SKELETON LOADERS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@keyframes shimmer {
  0% {
    background-position: -600px 0;
  }
  100% {
    background-position: 600px 0;
  }
}
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-input) 25%,
    var(--bg-hover) 50%,
    var(--bg-input) 75%
  );
  background-size: 600px 100%;
  animation: shimmer 1.6s ease infinite;
  border-radius: var(--radius-sm);
}
.skeleton-text {
  height: 13px;
  width: 80%;
  margin-bottom: 8px;
}
.skeleton-text.sm {
  height: 11px;
  width: 55%;
}
.skeleton-text.lg {
  height: 18px;
  width: 70%;
}
.skeleton-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
}
.skeleton-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.skeleton-card {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.skeleton-block {
  height: 80px;
  border-radius: var(--radius-md);
}
.skeleton-circle {
  border-radius: 50% !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ADVANCED ANIMATIONS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(69, 214, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(69, 214, 255, 0);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.anim-fade-up {
  animation: fadeInUp 0.35s ease both;
}
.anim-fade-scale {
  animation: fadeInScale 0.3s ease both;
}
.anim-slide-right {
  animation: slideInRight 0.3s ease both;
}
.anim-delay-1 {
  animation-delay: 0.05s;
}
.anim-delay-2 {
  animation-delay: 0.1s;
}
.anim-delay-3 {
  animation-delay: 0.15s;
}
.anim-delay-4 {
  animation-delay: 0.2s;
}
.anim-delay-5 {
  animation-delay: 0.25s;
}

/* Hover lift for cards */
.card-hover-lift {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}
.card-hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   LOADING SPINNER OVERLAY
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 15, 34, 0.7);
  border-radius: inherit;
  z-index: 10;
  backdrop-filter: blur(2px);
}
.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(69, 214, 255, 0.15);
  border-top-color: var(--nexora-cyan);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
.loading-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}
.loading-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nexora-cyan);
  animation: loadDot 1.2s ease infinite;
}
.loading-dot:nth-child(2) {
  animation-delay: 0.2s;
}
.loading-dot:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes loadDot {
  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   EMPTY STATE COMPONENT
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  gap: 12px;
  text-align: center;
  color: var(--text-muted);
}
.empty-state-icon {
  font-size: 48px;
  opacity: 0.25;
  margin-bottom: 4px;
}
.empty-state-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
}
.empty-state-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.5;
}
.empty-state-action {
  margin-top: 6px;
  padding: 8px 20px;
  background: rgba(69, 214, 255, 0.1);
  border: 1px solid rgba(69, 214, 255, 0.25);
  color: var(--nexora-cyan);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}
.empty-state-action:hover {
  background: rgba(69, 214, 255, 0.18);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   STATUS BADGE PILL â€” enhanced
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.badge-pill.active {
  background: rgba(16, 217, 160, 0.12);
  color: #10d9a0;
  border: 1px solid rgba(16, 217, 160, 0.25);
}
.badge-pill.inactive {
  background: rgba(74, 96, 138, 0.15);
  color: var(--text-muted);
  border: 1px solid rgba(74, 96, 138, 0.2);
}
.badge-pill.urgent {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.badge-pill.warning {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.badge-pill.info {
  background: rgba(69, 214, 255, 0.1);
  color: #45d6ff;
  border: 1px solid rgba(69, 214, 255, 0.2);
}
.badge-pill.purple {
  background: rgba(168, 108, 246, 0.1);
  color: #a86cf6;
  border: 1px solid rgba(168, 108, 246, 0.2);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ACTION BUTTON IMPROVEMENTS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.action-btn {
  background: none;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 13px;
}
.action-btn:hover {
  background: var(--bg-hover);
}
.action-btn.danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444 !important;
}
.action-btn.success:hover {
  background: rgba(16, 217, 160, 0.1);
  color: #10d9a0 !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   IMPROVED TOPBAR SEARCH
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-wrap input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 13px;
  padding: 7px 12px 7px 36px;
  border-radius: 20px;
  outline: none;
  width: 220px;
  transition: all 0.25s ease;
}
.search-wrap input:focus {
  border-color: rgba(69, 214, 255, 0.4);
  width: 280px;
  background: var(--bg-hover);
}
.search-wrap .search-icon {
  position: absolute;
  left: 11px;
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   WEB PUSH PERMISSION BAR  â€” v8.15
   Ø´Ø±ÙŠØ· Ø·Ù„Ø¨ Ø¥Ø°Ù† Ø§Ù„ØªÙ†Ø¨ÙŠÙ‡Ø§Øª Ø¯Ø§Ø®Ù„ Ù„ÙˆØ­Ø© Ø§Ù„Ø¥Ø´Ø¹Ø§Ø±Ø§Øª
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Ø§Ù„Ø´Ø±ÙŠØ· Ø§Ù„Ø­Ø§ÙˆÙŠ */
.push-perm-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin: 0 10px 6px;
  background: linear-gradient(
    135deg,
    rgba(69, 214, 255, 0.06),
    rgba(168, 108, 246, 0.06)
  );
  border: 1px solid rgba(69, 214, 255, 0.18);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

/* Ù†Øµ Ø§Ù„ØªÙˆØ¶ÙŠØ­ */
.push-perm-hint {
  font-size: 10px;
  color: var(--text-muted);
  flex: 1;
  min-width: 120px;
  line-height: 1.4;
}

/* Ø§Ù„Ø²Ø± Ø§Ù„Ø£Ø³Ø§Ø³ÙŠ */
.push-perm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid;
  transition: all 0.2s;
  font-family: var(--font);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Ø§Ù„Ø­Ø§Ù„Ø© Ø§Ù„Ø§ÙØªØ±Ø§Ø¶ÙŠØ© â€” Ù„Ù… ÙŠÙØ·Ù„Ø¨ Ø§Ù„Ø¥Ø°Ù† Ø¨Ø¹Ø¯ */
.push-perm-btn.default {
  background: rgba(69, 214, 255, 0.1);
  border-color: rgba(69, 214, 255, 0.35);
  color: var(--nexora-cyan);
}
.push-perm-btn.default:hover {
  background: rgba(69, 214, 255, 0.18);
  border-color: rgba(69, 214, 255, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(69, 214, 255, 0.15);
}

/* Ø§Ù„Ø­Ø§Ù„Ø© Ø§Ù„Ù…ÙÙØ¹ÙŽÙ‘Ù„Ø© âœ… */
.push-perm-btn.granted {
  background: rgba(16, 217, 160, 0.1);
  border-color: rgba(16, 217, 160, 0.3);
  color: var(--accent-green);
  cursor: default;
  opacity: 0.85;
}

/* Ø§Ù„Ø­Ø§Ù„Ø© Ø§Ù„Ù…Ø­Ø¬ÙˆØ¨Ø© âŒ */
.push-perm-btn.denied {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
  color: #ef4444;
  cursor: not-allowed;
  opacity: 0.75;
}

/* Ø¥Ø®ÙØ§Ø¡ Ø§Ù„Ø´Ø±ÙŠØ· Ø¹Ù†Ø¯Ù…Ø§ Ø§Ù„ØªÙ†Ø¨ÙŠÙ‡Ø§Øª Ù…ÙÙØ¹ÙŽÙ‘Ù„Ø© Ø£Ùˆ Ù…Ø­Ø¬ÙˆØ¨Ø© (ØªÙ„Ù‚Ø§Ø¦ÙŠ) */
.push-perm-btn.granted ~ .push-perm-hint,
.push-perm-btn.denied ~ .push-perm-hint {
  display: none;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   IMPROVED SIDEBAR NAV ITEMS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.18s ease;
  font-size: 13.5px;
  font-weight: 600;
  position: relative;
  margin: 1px 6px;
}
.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-white);
}
.nav-item.active {
  background: linear-gradient(
    135deg,
    rgba(69, 214, 255, 0.12),
    rgba(47, 127, 224, 0.1)
  );
  color: var(--nexora-cyan);
  border-right: 2px solid var(--nexora-cyan);
}
.nav-item .nav-icon {
  width: 20px;
  text-align: center;
  font-size: 15px;
}
.nav-badge {
  margin-right: auto;
  background: var(--accent-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  line-height: 16px;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   KANBAN CARD ENHANCEMENTS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.kanban-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.kanban-card:hover {
  border-color: rgba(69, 214, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.kanban-card.overdue {
  border-left: 3px solid var(--accent-red) !important;
}
.kanban-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 8px;
  line-height: 1.45;
}
.kanban-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}
.kanban-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.kanban-progress {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}
.kanban-progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PROJECT CARD ENHANCEMENTS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  transition: all 0.22s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--nexora-grad);
  opacity: 0;
  transition: opacity 0.2s;
}
.project-card:hover {
  border-color: rgba(69, 214, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.project-card:hover::before {
  opacity: 1;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   EMPLOYEE CARD ENHANCEMENTS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.employee-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all 0.22s ease;
  cursor: pointer;
  text-align: center;
}
.employee-card:hover {
  border-color: rgba(168, 108, 246, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.employee-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.1);
}
.employee-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 4px;
}
.employee-dept {
  font-size: 11px;
  color: var(--text-muted);
}
.employee-perf {
  margin-top: 12px;
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.employee-perf-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PRIORITY DOT INDICATORS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.priority-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.priority-dot.urgent {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}
.priority-dot.high {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}
.priority-dot.medium {
  background: #45d6ff;
}
.priority-dot.low {
  background: #10d9a0;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   TASK DETAIL MODAL IMPROVEMENTS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.detail-section {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.detail-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.detail-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.detail-item-label {
  font-size: 11px;
  color: var(--text-muted);
}
.detail-item-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   IMPROVED NOTIFICATION DROPDOWN
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.notif-item-unread {
  background: rgba(69, 214, 255, 0.04);
  border-right: 3px solid var(--nexora-cyan);
}
.notif-item-unread:hover {
  background: rgba(69, 214, 255, 0.08);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CHAT PAGE IMPROVEMENTS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.chat-message {
  display: flex;
  gap: 10px;
  padding: 8px 14px;
  transition: background 0.15s;
  border-radius: 6px;
}
.chat-message:hover {
  background: var(--bg-hover);
}
.chat-message.own-message {
  flex-direction: row-reverse;
}
.chat-message.own-message .msg-bubble {
  background: rgba(69, 214, 255, 0.12);
  border-color: rgba(69, 214, 255, 0.2);
}
.msg-bubble {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px 0 12px 12px;
  padding: 10px 14px;
  max-width: 75%;
  line-height: 1.55;
  font-size: 13.5px;
  color: var(--text-primary);
  position: relative;
}
.msg-bubble.pinned {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.04);
}
.msg-meta {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PROGRESS BAR VARIANTS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.progress-bar-wrap {
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
  height: 6px;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s ease;
}
.progress-bar-fill.green {
  background: linear-gradient(90deg, #10d9a0, #0fa882);
}
.progress-bar-fill.blue {
  background: linear-gradient(90deg, #45d6ff, #2f7fe0);
}
.progress-bar-fill.orange {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}
.progress-bar-fill.red {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}
.progress-bar-fill.purple {
  background: linear-gradient(90deg, #a86cf6, #8b5cf6);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   TOPBAR IMPROVEMENTS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.topbar-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
  flex-shrink: 0;
}
.topbar-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
}
.topbar-btn:hover {
  background: var(--bg-hover);
  color: var(--text-white);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   DEPT SECTION TABS  (Dashboard)
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.dept-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.dept-tab {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: none;
  font-family: var(--font);
  transition: all 0.18s ease;
}
.dept-tab:hover {
  border-color: rgba(69, 214, 255, 0.3);
  color: var(--nexora-cyan);
}
.dept-tab.active {
  background: rgba(69, 214, 255, 0.1);
  border-color: rgba(69, 214, 255, 0.3);
  color: var(--nexora-cyan);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   INPUT WITH ICON
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.input-icon-wrap {
  position: relative;
}
.input-icon-wrap input {
  padding-right: 36px;
}
.input-icon-wrap .input-icon {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   REGISTER MODAL SPECIAL STYLES
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.reg-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin: 14px 0 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.reg-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   STATS CARD GLOW VARIANTS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.stat-card.glow-cyan {
  border-right-color: var(--nexora-cyan);
}
.stat-card.glow-green {
  border-right-color: var(--accent-green);
}
.stat-card.glow-orange {
  border-right-color: var(--accent-orange);
}
.stat-card.glow-purple {
  border-right-color: var(--accent-purple);
}
.stat-card.glow-cyan:hover {
  box-shadow: 0 8px 24px rgba(69, 214, 255, 0.15);
}
.stat-card.glow-green:hover {
  box-shadow: 0 8px 24px rgba(16, 217, 160, 0.15);
}
.stat-card.glow-orange:hover {
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
}
.stat-card.glow-purple:hover {
  box-shadow: 0 8px 24px rgba(168, 108, 246, 0.15);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   LIGHT THEME OVERRIDES
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
[data-theme='light'] {
  --bg-base: #f0f4ff;
  --bg-sidebar: #e8eeff;
  --bg-card: #ffffff;
  --bg-input: #f4f7ff;
  --bg-hover: #eaefff;
  --bg-active: #dde6ff;
  --border: #d0d9f0;
  --text-primary: #2d3d6e;
  --text-secondary: #5a6e9e;
  --text-muted: #8898be;
  --text-white: #111b3e;
  --shadow: 0 4px 24px rgba(20, 40, 100, 0.12);
  --shadow-sm: 0 2px 10px rgba(20, 40, 100, 0.08);
}
[data-theme='light'] .skeleton {
  background: linear-gradient(90deg, #e8eeff 25%, #f4f7ff 50%, #e8eeff 75%);
  background-size: 600px 100%;
}
[data-theme='light'] .admin-grid .card {
  box-shadow: 0 2px 10px rgba(20, 40, 100, 0.06);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SCROLLBAR REFINEMENTS (per-component)
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.chat-messages-list::-webkit-scrollbar,
.activity-full-feed::-webkit-scrollbar,
.modal::-webkit-scrollbar {
  width: 4px;
}
.chat-messages-list::-webkit-scrollbar-thumb,
.activity-full-feed::-webkit-scrollbar-thumb,
.modal::-webkit-scrollbar-thumb {
  background: rgba(69, 214, 255, 0.2);
  border-radius: 4px;
}
.chat-messages-list::-webkit-scrollbar-thumb:hover,
.activity-full-feed::-webkit-scrollbar-thumb:hover {
  background: rgba(69, 214, 255, 0.4);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   TOOLTIP
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-input);
  color: var(--text-white);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 100;
  font-family: var(--font);
}
[data-tooltip]:hover::after {
  opacity: 1;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   FOCUS VISIBLE (accessibility)
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
:focus-visible {
  outline: 2px solid rgba(69, 214, 255, 0.5);
  outline-offset: 2px;
}
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible) {
  outline: none;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   TASK MERGE FEATURE  â€” v8.55
   Ø¯Ù…Ø¬ Ø§Ù„Ù…Ù‡Ø§Ù…: Ø´Ø±ÙŠØ· Ø§Ù„ØªØ­Ø¯ÙŠØ¯ØŒ Ø§Ù„Ù€ checkboxesØŒ
   Ù†Ø§ÙØ°Ø© Ø§Ù„Ø¯Ù…Ø¬ØŒ Ù…Ø¹Ø§ÙŠÙ†Ø© Ø§Ù„Ø£Ø¹Ø¶Ø§Ø¡ ÙˆØ§Ù„Ø£Ù‚Ø³Ø§Ù…
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Ø´Ø±ÙŠØ· ÙˆØ¶Ø¹ Ø§Ù„Ø¯Ù…Ø¬ (ÙŠØ¸Ù‡Ø± Ø£Ø³ÙÙ„ Ø§Ù„Ù€ toolbar) â”€â”€ */
.merge-selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  margin-bottom: 14px;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.1),
    rgba(69, 214, 255, 0.06)
  );
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 12px;
  flex-wrap: wrap;
  animation: fadeInUp 0.25s ease both;
}
.merge-bar-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}
.merge-bar-info strong {
  color: #a78bfa;
}
.merge-count-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #a78bfa;
}
.merge-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-merge-confirm {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.7),
    rgba(139, 92, 246, 0.5)
  );
  border: 1px solid rgba(139, 92, 246, 0.5);
  color: #e9d5ff;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.18s ease;
}
.btn-merge-confirm:hover:not(:disabled) {
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.9),
    rgba(139, 92, 246, 0.7)
  );
  border-color: rgba(167, 139, 250, 0.7);
  transform: translateY(-1px);
}
.btn-merge-confirm:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.btn-merge-cancel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.18s ease;
}
.btn-merge-cancel:hover {
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
  background: rgba(239, 68, 68, 0.06);
}

/* â”€â”€ Checkbox Ù…Ø®ØµØµ Ù„Ù„Ø¯Ù…Ø¬ â”€â”€ */
.merge-checkbox-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.merge-checkbox-wrap input[type='checkbox'] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.merge-cb-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.06);
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.merge-checkbox-wrap input:checked + .merge-cb-box {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}
.merge-checkbox-wrap input:checked + .merge-cb-box::after {
  content: '';
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
  display: block;
}
.merge-checkbox-wrap:hover .merge-cb-box {
  border-color: #a78bfa;
  background: rgba(139, 92, 246, 0.12);
}

/* â”€â”€ ØµÙ Ø¬Ø¯ÙˆÙ„ ÙÙŠ ÙˆØ¶Ø¹ Ø§Ù„Ø¯Ù…Ø¬ â”€â”€ */
.task-row-merge {
  cursor: pointer;
  transition: background 0.15s;
}
.task-row-merge:hover {
  background: rgba(139, 92, 246, 0.05);
}
.task-row-merge.merge-selected {
  background: rgba(139, 92, 246, 0.1) !important;
}
.task-row-merge.merge-selected td {
  border-color: rgba(139, 92, 246, 0.2);
}

/* â”€â”€ ÙƒØ§Ø±Øª ÙƒØ§Ù†Ø¨Ø§Ù† ÙÙŠ ÙˆØ¶Ø¹ Ø§Ù„Ø¯Ù…Ø¬ â”€â”€ */
.kanban-card-merge {
  cursor: pointer;
  border-color: rgba(139, 92, 246, 0.2) !important;
}
.kanban-card-merge:hover {
  border-color: rgba(139, 92, 246, 0.5) !important;
  background: rgba(139, 92, 246, 0.06) !important;
}
.kc-merge-selected {
  border-color: #a78bfa !important;
  background: rgba(139, 92, 246, 0.12) !important;
  box-shadow:
    0 0 0 2px rgba(139, 92, 246, 0.2),
    0 4px 16px rgba(139, 92, 246, 0.15) !important;
}
.kc-merge-selected::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 11px;
  color: #a78bfa;
}

/* â”€â”€ Ù…Ø¹Ø§ÙŠÙ†Ø© Ù‚Ø§Ø¦Ù…Ø© Ø§Ù„Ù…Ù‡Ø§Ù… ÙÙŠ Ù†Ø§ÙØ°Ø© Ø§Ù„Ø¯Ù…Ø¬ â”€â”€ */
.merge-tasks-preview-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
  padding: 4px 0;
}
.merge-task-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(139, 92, 246, 0.07);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 9px;
  transition: border-color 0.15s;
}
.merge-task-chip:hover {
  border-color: rgba(139, 92, 246, 0.4);
}
.merge-chip-title {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.merge-chip-status {
  flex-shrink: 0;
}

/* â”€â”€ Ø´Ø¨ÙƒØ© Ø§Ù„Ø¨ÙŠØ§Ù†Ø§Øª Ø§Ù„ÙˆØµÙÙŠØ© Ù„Ù„Ø¯Ù…Ø¬ â”€â”€ */
.merge-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}
@media (max-width: 600px) {
  .merge-meta-grid {
    grid-template-columns: 1fr;
  }
}
.merge-meta-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}
.merge-meta-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* â”€â”€ Ù…Ø¹Ø§ÙŠÙ†Ø© Ø§Ù„Ø£Ø¹Ø¶Ø§Ø¡ ÙÙŠ Ù†Ø§ÙØ°Ø© Ø§Ù„Ø¯Ù…Ø¬ â”€â”€ */
.merge-assignees-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.merge-assignee-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(139, 92, 246, 0.06);
}
.merge-assignee-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* â”€â”€ light theme overrides â”€â”€ */
[data-theme='light'] .merge-selection-bar {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.06),
    rgba(69, 214, 255, 0.04)
  );
  border-color: rgba(139, 92, 246, 0.25);
}
[data-theme='light'] .merge-task-chip {
  background: rgba(139, 92, 246, 0.04);
}
[data-theme='light'] .merge-meta-card {
  background: #f4f7ff;
  border-color: #d8dff0;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ADMIN PANEL â€” EXTRA SPACING & POLISH
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
#page-admin .card {
  animation: fadeInUp 0.3s ease both;
}
#page-admin .card:nth-child(2) {
  animation-delay: 0.05s;
}
#page-admin .card:nth-child(3) {
  animation-delay: 0.1s;
}

.users-table .ut-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
}
.users-table .ut-sub {
  font-size: 11px;
  color: var(--text-muted);
  direction: ltr;
  unicode-bidi: embed;
}
.users-table .ut-dept-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
}

/* Online / Offline indicator dot */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.status-dot.online {
  background: #10d9a0;
  box-shadow: 0 0 5px rgba(16, 217, 160, 0.5);
}
.status-dot.offline {
  background: var(--text-muted);
}
.status-dot.away {
  background: #f59e0b;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PERMISSION CARD IN ADMIN
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.perm-role-card {
  background: var(--bg-input);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.perm-role-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   RESPONSIVE SIDEBAR â€” Mobile / Tablet  v8.26
   â”Œâ”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”
   â”‚  â‰¤ 768px  â†’ sidebar Ù…Ø®ÙÙŠ Ø®Ø§Ø±Ø¬ Ø§Ù„Ø´Ø§Ø´Ø©       â”‚
   â”‚             Ø²Ø± hamburger ÙŠÙØ¸Ù‡Ø±Ù‡ ÙƒÙ€ drawer   â”‚
   â”‚             overlay ÙŠÙØºÙ„Ù‚Ù‡ Ø¹Ù†Ø¯ Ø§Ù„Ù†Ù‚Ø±        â”‚
   â”‚  â‰¤ 480px  â†’ ØªØ¹Ø¯ÙŠÙ„Ø§Øª Ø¥Ø¶Ø§ÙÙŠØ© Ù„Ù„Ø¹Ù†Ø§ØµØ± Ø§Ù„ØµØºÙŠØ±Ø© â”‚
   â””â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”˜
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Hamburger button â€” Ù…Ø±Ø¦ÙŠ Ø¯Ø§Ø¦Ù…Ø§Ù‹ Ø¹Ù„Ù‰ Ø§Ù„Ø¬ÙˆØ§Ù„ â”€â”€ */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  flex-shrink: 0;
  line-height: 1;
}
.hamburger-btn:hover {
  background: var(--bg-hover);
  color: var(--nexora-cyan);
}

/* â”€â”€ Overlay Ù„Ø¥ØºÙ„Ø§Ù‚ Ø§Ù„Ù€ sidebar Ø¨Ø§Ù„Ù†Ù‚Ø± Ø®Ø§Ø±Ø¬Ù‡ â”€â”€ */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 15, 34, 0.72);
  backdrop-filter: blur(3px);
  z-index: 199;
  opacity: 0;
  transition: opacity 0.28s ease;
}
.sidebar-overlay.visible {
  display: block;
}
.sidebar-overlay.active {
  opacity: 1;
}
body.sidebar-mobile-active {
  overflow: hidden;
}

/* â”€â”€ Mobile breakpoint (â‰¤ 768px) â”€â”€ */
@media (max-width: 768px) {
  /* Ø¥Ø®ÙØ§Ø¡ Ø§Ù„Ù€ hamburger Ø§Ù„Ù‚Ø¯ÙŠÙ… ÙˆØ¥Ø¸Ù‡Ø§Ø± Ø§Ù„Ø¬Ø¯ÙŠØ¯ */
  .sidebar-toggle {
    display: none !important;
  }
  .hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Ø§Ù„Ù€ sidebar ÙŠØµØ¨Ø­ drawer ÙŠÙØ²Ù„Ù‚ Ù…Ù† Ø§Ù„ÙŠÙ…ÙŠÙ† */
  .sidebar {
    position: fixed;
    top: 0;
    right: 0; /* RTL: Ø§Ù„Ø¬Ø§Ù†Ø¨ Ø§Ù„Ø£ÙŠÙ…Ù† */
    bottom: 0;
    width: 272px !important;
    min-width: 272px !important;
    transform: translateX(100%); /* Ù…Ø®ÙÙŠ Ø®Ø§Ø±Ø¬ Ø§Ù„Ø´Ø§Ø´Ø© */
    transition:
      transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
      box-shadow 0.3s ease;
    z-index: 200;
    box-shadow: none;
  }

  /* Ø¹Ù†Ø¯ ÙØªØ­ Ø§Ù„Ù€ sidebar */
  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow:
      -8px 0 40px rgba(0, 0, 0, 0.65),
      -2px 0 12px rgba(69, 214, 255, 0.08);
  }

  body.ltr .sidebar {
    right: auto;
    left: 0;
    transform: translateX(-100%);
  }
  body.ltr .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow:
      8px 0 40px rgba(0, 0, 0, 0.65),
      2px 0 12px rgba(69, 214, 255, 0.08);
  }

  /* Ø§Ù„Ù€ appWrapper ÙŠØ£Ø®Ø° ÙƒØ§Ù…Ù„ Ø§Ù„Ø¹Ø±Ø¶ Ø¨Ù„Ø§ sidebar */
  #appWrapper {
    flex-direction: column !important;
  }
  .main-wrapper {
    width: 100% !important;
  }

  /* Topbar adjustments */
  .topbar {
    padding: 0 12px;
    gap: 8px;
  }
  .topbar-left {
    gap: 8px;
  }

  /* Ø¥Ø®ÙØ§Ø¡ widget Ø§Ù„Ù…Ø³ØªØ®Ø¯Ù… Ø¹Ù„Ù‰ Ø§Ù„Ø´Ø§Ø´Ø§Øª Ø§Ù„ØµØºÙŠØ±Ø© */
  .current-user-widget {
    display: none !important;
  }

  /* Ø¶Ø¨Ø· Ø§Ù„Ø¹Ù†Ø§ÙˆÙŠÙ† ÙˆØ§Ù„Ø¹Ù†Ø§ØµØ± */
  .page-title {
    font-size: 15px;
  }
  .content-area {
    padding: 14px 12px;
    overflow-y: auto;
  }

  /* Ø´Ø¨ÙƒØ§Øª Ù…ØªØ¬Ø§ÙˆØ¨Ø© */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
  .employees-grid {
    grid-template-columns: 1fr 1fr;
  }
  .kanban-board {
    grid-template-columns: 1fr;
    overflow-x: auto;
  }

  /* Ø§Ù„Ø¬Ø¯Ø§ÙˆÙ„ ØªÙÙ…Ø±ÙŽÙ‘Ø± Ø£ÙÙ‚ÙŠØ§Ù‹ */
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* ØªØµØºÙŠØ± Ø¨Ø¹Ø¶ Ø§Ù„Ù†ØµÙˆØµ */
  .btn-add-task span {
    display: none;
  } /* Ù†ØµÙ‘ "Ù…Ù‡Ù…Ø© Ø¬Ø¯ÙŠØ¯Ø©" ÙŠØ®ØªÙÙŠØŒ ÙŠØ¨Ù‚Ù‰ Ø§Ù„Ø£ÙŠÙ‚ÙˆÙ†Ø© */
  .btn-add-task {
    padding: 7px 10px;
    gap: 0;
  }
}

/* â”€â”€ Tablet-only (481px â€” 768px) â”€â”€ */
@media (min-width: 481px) and (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .employees-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* â”€â”€ Small mobile (â‰¤ 480px) â”€â”€ */
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .employees-grid {
    grid-template-columns: 1fr 1fr;
  }
  .kanban-board {
    grid-template-columns: 1fr;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .modal {
    width: 98vw;
    max-height: 96vh;
  }
  .topbar {
    padding: 0 10px;
    gap: 6px;
  }
  .page-toolbar {
    gap: 6px;
  }
  .filter-select {
    font-size: 12px;
    padding: 6px 8px;
  }
  .content-area {
    padding: 12px 10px;
  }
  .chat-ctrl-header {
    display: none;
  }
  .chat-ctrl-row {
    grid-template-columns: 1fr auto;
    gap: 6px;
  }
  .chat-ctrl-row .chat-ctrl-dept,
  .chat-ctrl-row .chat-ctrl-role {
    display: none;
  }

  /* Ø¥Ø®ÙØ§Ø¡ Ø¹Ù†Ø§ØµØ± Ø«Ø§Ù†ÙˆÙŠØ© ÙÙŠ Ø§Ù„Ù€ topbar */
  .topbar-controls {
    display: none !important;
  }
  .page-title {
    font-size: 14px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Ø¶Ø¨Ø· Ø¨Ø·Ø§Ù‚Ø§Øª Ø§Ù„Ù…ÙˆØ¸ÙÙŠÙ† Ø¹Ù„Ù‰ Ø§Ù„Ø´Ø§Ø´Ø§Øª Ø§Ù„ØµØºÙŠØ±Ø© Ø¬Ø¯Ø§Ù‹ */
  .employee-card {
    padding: 14px 10px;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PRINT STYLES
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@media print {
  .sidebar,
  .topbar,
  .modal-overlay {
    display: none !important;
  }
  .main-wrapper {
    margin: 0 !important;
    width: 100% !important;
  }
  .content-area {
    padding: 20px !important;
  }
  .card {
    break-inside: avoid;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .print-section {
    display: block !important;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MISCELLANEOUS HELPERS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.text-cyan {
  color: var(--nexora-cyan);
}
.text-green {
  color: var(--accent-green);
}
.text-orange {
  color: var(--accent-orange);
}
.text-red {
  color: var(--accent-red);
}
.text-purple {
  color: var(--accent-purple);
}
.text-muted {
  color: var(--text-muted);
}
.text-white {
  color: var(--text-white);
}
.text-bold {
  font-weight: 700;
}
.text-sm {
  font-size: 12px;
}
.text-xs {
  font-size: 11px;
}
.text-lg {
  font-size: 16px;
}
.gap-4 {
  gap: 4px;
}
.gap-8 {
  gap: 8px;
}
.gap-12 {
  gap: 12px;
}
.flex {
  display: flex;
}
.flex-center {
  display: flex;
  align-items: center;
}
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mt-8 {
  margin-top: 8px;
}
.mt-12 {
  margin-top: 12px;
}
.mt-16 {
  margin-top: 16px;
}
.mb-8 {
  margin-bottom: 8px;
}
.mb-12 {
  margin-bottom: 12px;
}
.p-0 {
  padding: 0;
}
.w-full {
  width: 100%;
}
.rounded-full {
  border-radius: 9999px;
}
.overflow-hidden {
  overflow: hidden;
}
.cursor-pointer {
  cursor: pointer;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CO-ASSIGNEES PROGRESS PANEL  â€” v8.16
   Ù„ÙˆØ­Ø© ØªÙ‚Ø¯Ù… Ø§Ù„Ø²Ù…Ù„Ø§Ø¡ ÙÙŠ Ø§Ù„Ù…Ù‡Ù…Ø© Ø§Ù„Ù…Ø´ØªØ±ÙƒØ© (Ù‚Ø±Ø§Ø¡Ø© ÙÙ‚Ø·)
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Ø§Ù„Ø­Ø§ÙˆÙŠ Ø§Ù„Ø±Ø¦ÙŠØ³ÙŠ */
.co-assignees-panel {
  margin: 10px 0 14px;
  border: 1px solid rgba(69, 214, 255, 0.15);
  border-radius: var(--radius-md);
  background: linear-gradient(
    135deg,
    rgba(69, 214, 255, 0.03),
    rgba(168, 108, 246, 0.03)
  );
  overflow: hidden;
}

/* Ø±Ø£Ø³ Ø§Ù„Ù„ÙˆØ­Ø© */
.co-assignees-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(69, 214, 255, 0.1);
  background: rgba(69, 214, 255, 0.04);
}

/* Ø¹Ø¯Ø§Ø¯ Ø§Ù„Ø²Ù…Ù„Ø§Ø¡ */
.co-assignees-count {
  background: rgba(69, 214, 255, 0.12);
  color: var(--nexora-cyan);
  border: 1px solid rgba(69, 214, 255, 0.25);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  min-width: 20px;
  text-align: center;
  margin-right: auto;
}

/* Ù‚Ø§Ø¦Ù…Ø© Ø§Ù„Ø²Ù…Ù„Ø§Ø¡ */
.co-assignees-list {
  padding: 6px 0;
}

/* ØµÙ ÙƒÙ„ Ø²Ù…ÙŠÙ„ */
.co-assignee-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 13px;
  transition: background 0.15s;
}
.co-assignee-row:hover {
  background: rgba(69, 214, 255, 0.04);
}
.co-assignee-row:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* Ø£ÙØ§ØªØ§Ø± Ø§Ù„Ø²Ù…ÙŠÙ„ */
.co-av {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* Ù…Ø¹Ù„ÙˆÙ…Ø§Øª Ø§Ù„Ø²Ù…ÙŠÙ„ */
.co-info {
  flex: 1;
  min-width: 0;
}
.co-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.co-status-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

/* Ø´Ø±ÙŠØ· Ø§Ù„ØªÙ‚Ø¯Ù… Ù„Ù„Ø²Ù…ÙŠÙ„ */
.co-progress-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  width: 110px;
}
.co-progress-bar {
  flex: 1;
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.co-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}
.co-pct {
  font-size: 11px;
  font-weight: 700;
  min-width: 32px;
  text-align: left;
}

/* Light theme tweaks */
[data-theme='light'] .co-assignees-panel {
  border-color: rgba(47, 127, 224, 0.2);
  background: linear-gradient(
    135deg,
    rgba(47, 127, 224, 0.04),
    rgba(168, 108, 246, 0.04)
  );
}
[data-theme='light'] .co-assignees-header {
  background: rgba(47, 127, 224, 0.05);
  border-bottom-color: rgba(47, 127, 224, 0.1);
}
[data-theme='light'] .co-assignee-row:hover {
  background: rgba(47, 127, 224, 0.05);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ENHANCED STAT CARDS v5
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.stat-card {
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  top: -40px;
  left: -40px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(69, 214, 255, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.stat-card.glow-green::after {
  background: radial-gradient(
    circle,
    rgba(16, 217, 160, 0.07) 0%,
    transparent 70%
  );
}
.stat-card.glow-orange::after {
  background: radial-gradient(
    circle,
    rgba(245, 158, 11, 0.07) 0%,
    transparent 70%
  );
}
.stat-card.glow-purple::after {
  background: radial-gradient(
    circle,
    rgba(168, 108, 246, 0.07) 0%,
    transparent 70%
  );
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   KANBAN COLUMN HEADER BADGES
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(4px);
}
.kanban-count {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  color: var(--text-muted);
  min-width: 22px;
  text-align: center;
}
.kanban-col-header.todo-h {
  color: var(--text-secondary);
}
.kanban-col-header.inpro-h {
  color: #45d6ff;
  border-bottom-color: rgba(69, 214, 255, 0.2);
}
.kanban-col-header.review-h {
  color: #f59e0b;
  border-bottom-color: rgba(245, 158, 11, 0.2);
}
.kanban-col-header.done-h {
  color: #10d9a0;
  border-bottom-color: rgba(16, 217, 160, 0.2);
}
.kanban-col-header.reopen-h {
  color: #ef4444;
  border-bottom-color: rgba(239, 68, 68, 0.2);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ENHANCED PROJECT CARD v5
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.project-card .pc-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  margin-left: 5px;
  flex-shrink: 0;
}
.pc-status-dot.active {
  background: #10d9a0;
  box-shadow: 0 0 6px rgba(16, 217, 160, 0.5);
}
.pc-status-dot.paused {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}
.pc-status-dot.completed {
  background: #45d6ff;
  box-shadow: 0 0 6px rgba(69, 214, 255, 0.4);
}
.pc-status-dot.cancelled {
  background: #ef4444;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ENHANCED EMPLOYEE CARD v5
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.employee-card .emp-score-ring {
  position: relative;
  width: 48px;
  height: 48px;
  margin: 8px auto 0;
}
.emp-score-ring svg {
  transform: rotate(-90deg);
}
.emp-score-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-white);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PAGE TRANSITION ANIMATION
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.page.active {
  animation: pageEnter 0.28s ease both;
}
@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PROJECT DETAIL â€” LINKED TASKS SECTION  v8.20
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* section title badge (Ø¹Ø¯Ø¯ Ø§Ù„Ù…Ù‡Ø§Ù…) */
.pdl-tasks-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(69, 214, 255, 0.14);
  color: var(--nexora-cyan);
  margin-right: 6px;
}

/* stats row at top of tasks section */
.pdl-tasks-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}
.pdl-tasks-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid;
  font-size: 11.5px;
  font-weight: 600;
}

/* empty state */
.pdl-tasks-empty {
  text-align: center;
  padding: 22px 0 8px;
  color: var(--text-muted);
  font-size: 12px;
}

/* tasks list container */
.pdl-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* single task row */
.pdl-task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--bg-input);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.15s;
}
.pdl-task-row:last-child {
  border-bottom: none;
}
.pdl-task-row:hover {
  background: rgba(69, 214, 255, 0.05);
}

/* status dot on the right */
.pdl-task-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* main content area */
.pdl-task-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* task title */
.pdl-task-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* overdue badge inside title */
.pdl-task-overdue-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  flex-shrink: 0;
}

/* meta row: status + priority + due date */
.pdl-task-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pdl-task-status-lbl,
.pdl-task-priority,
.pdl-task-due {
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* progress bar under meta */
.pdl-task-progress-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.pdl-task-progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  overflow: hidden;
}
.pdl-task-progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
  min-width: 2px;
}
.pdl-task-progress-pct {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 28px;
  text-align: left;
}

/* assignee avatars stack on the left */
.pdl-task-assignees {
  display: flex;
  align-items: center;
  flex-direction: row-reverse; /* stack right-to-left in RTL */
  flex-shrink: 0;
}
.pdl-task-av {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  border: 2px solid var(--bg-card);
  margin-right: -6px;
  flex-shrink: 0;
  cursor: default;
}
.pdl-task-av:first-child {
  margin-right: 0;
}
.pdl-task-av-more {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.12);
  border: 2px solid var(--bg-card);
  margin-right: -6px;
  flex-shrink: 0;
}

/* Light theme adjustments */
[data-theme='light'] .pdl-task-row {
  background: #f4f7ff;
  border-bottom-color: #e5eaf5;
}
[data-theme='light'] .pdl-task-row:hover {
  background: rgba(47, 127, 224, 0.06);
}
[data-theme='light'] .pdl-task-progress-bar {
  background: rgba(0, 0, 0, 0.08);
}
[data-theme='light'] .pdl-tasks-list {
  border-color: #d8e0f0;
}
[data-theme='light'] .pdl-tasks-count {
  background: rgba(47, 127, 224, 0.12);
  color: #2f7fe0;
}

/* Responsive */
@media (max-width: 500px) {
  .pdl-task-meta {
    gap: 6px;
  }
  .pdl-task-due {
    display: none;
  }
  .pdl-task-assignees {
    display: none;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   DASHBOARD CARD HOVER â€” deep glow
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.card {
  transition:
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
  border-color: rgba(69, 214, 255, 0.12);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   FILTER SELECT IMPROVEMENTS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.filter-select:focus {
  border-color: rgba(69, 214, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(69, 214, 255, 0.08);
  outline: none;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   TASK TABLE ROW ENHANCEMENTS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.task-table tbody tr {
  transition: background 0.15s ease;
}
.task-table tbody tr:hover {
  background: var(--bg-hover) !important;
}
.task-table tbody tr td:first-child {
  border-right: 3px solid transparent;
  transition: border-color 0.15s;
}
.task-table tbody tr:hover td:first-child {
  border-right-color: rgba(69, 214, 255, 0.4);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SIDEBAR USER PANEL ENHANCEMENT
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.sidebar-user {
  position: relative;
  overflow: hidden;
}
.sidebar-user::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(69, 214, 255, 0.04)
  );
  pointer-events: none;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MODAL BACKDROP BLUR ENHANCEMENT
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.modal-overlay {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal {
  animation: modalEnter 0.3s cubic-bezier(0.34, 1.3, 0.64, 1) both;
}
@keyframes modalEnter {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SEARCH RESULTS HIGHLIGHT
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.search-highlight {
  background: rgba(69, 214, 255, 0.2);
  color: var(--nexora-cyan);
  border-radius: 2px;
  padding: 0 2px;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ACTIVITY LOG FEED ITEMS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.activity-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(69, 214, 255, 0.05);
  transition: background 0.15s;
}
.activity-item:hover {
  background: var(--bg-hover);
}
.activity-item:last-child {
  border-bottom: none;
}
.activity-dot {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}
.activity-body {
  flex: 1;
  min-width: 0;
}
.activity-action {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.activity-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.activity-dept-chip {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   URGENT TASKS LIST ITEMS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.urgent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(69, 214, 255, 0.05);
  cursor: pointer;
  transition: background 0.15s;
}
.urgent-item:hover {
  background: var(--bg-hover);
  border-radius: 8px;
}
.urgent-item:last-child {
  border-bottom: none;
}
.urgent-item-title {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.urgent-item-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   TASK STATUS WORKFLOW BADGE
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.wf-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.wf-badge.todo {
  background: rgba(143, 163, 204, 0.1);
  color: var(--text-muted);
  border: 1px solid rgba(143, 163, 204, 0.15);
}
.wf-badge.in_progress {
  background: rgba(69, 214, 255, 0.1);
  color: #45d6ff;
  border: 1px solid rgba(69, 214, 255, 0.2);
}
.wf-badge.submitted {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.wf-badge.pending_review {
  background: rgba(168, 108, 246, 0.1);
  color: #a86cf6;
  border: 1px solid rgba(168, 108, 246, 0.2);
}
.wf-badge.approved {
  background: rgba(16, 217, 160, 0.1);
  color: #10d9a0;
  border: 1px solid rgba(16, 217, 160, 0.2);
}
.wf-badge.reopened {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   BTN-PRIMARY  /  BTN-SECONDARY  â€” v8.55
   Ø£Ø²Ø±Ø§Ø± Ù…ÙˆØ­Ù‘Ø¯Ø© Ù„Ø¬Ù…ÙŠØ¹ Ø§Ù„Ù€ modal-footer
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 22px;
  min-height: 38px;
  background: var(
    --nexora-grad,
    linear-gradient(135deg, #45d6ff, #2f7fe0, #a86cf6)
  );
  color: #fff;
  border: none;
  border-radius: var(--radius-sm, 9px);
  font-family: var(--font, 'Cairo', sans-serif);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(69, 214, 255, 0.25);
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(69, 214, 255, 0.35);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 20px;
  min-height: 38px;
  background: var(--bg-input, #1a2038);
  color: var(--text-secondary, #8892aa);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-sm, 9px);
  font-family: var(--font, 'Cairo', sans-serif);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-secondary:hover {
  background: var(--bg-hover, #1e2640);
  color: var(--text-white, #fff);
  border-color: var(--text-muted, #5c6b8a);
}
.btn-secondary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* â”€â”€ Ø²Ø± Ø§Ù„Ø¯Ù…Ø¬ Ø§Ù„Ø¨Ù†ÙØ³Ø¬ÙŠ (variant Ø®Ø§Øµ) â”€â”€ */
.btn-primary.btn-merge {
  background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 50%, #a78bfa 100%);
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.4);
}
.btn-primary.btn-merge:hover {
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.55);
  opacity: 0.93;
}

/* â”€â”€ Ripple effect â”€â”€ */
.btn-primary::after,
.btn-save::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.14);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s ease;
  border-radius: inherit;
  pointer-events: none;
}
.btn-primary:active::after,
.btn-save:active::after {
  transform: scaleX(1);
}
/* btn-save Ù…ØªÙˆØ§ÙÙ‚ Ù…Ø¹ Ø§Ù„ØªØ¹Ø±ÙŠÙ Ø§Ù„Ù‚Ø¯ÙŠÙ… */
.btn-save {
  position: relative;
  overflow: hidden;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PROJECT PROGRESS BAR ANIMATED
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.proj-prog-bar {
  height: 6px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 8px;
}
.proj-prog-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(90deg, #45d6ff, #2f7fe0);
}
.proj-prog-fill.high {
  background: linear-gradient(90deg, #10d9a0, #0fa882);
}
.proj-prog-fill.low {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   DEPT FILTER PILL ROW
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.dept-filter-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  padding: 8px 0 4px;
}
.dept-filter-pill {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: none;
  font-family: var(--font);
  transition: all 0.18s ease;
}
.dept-filter-pill:hover {
  border-color: rgba(69, 214, 255, 0.35);
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.06);
}
.dept-filter-pill.active {
  background: rgba(69, 214, 255, 0.1);
  border-color: rgba(69, 214, 255, 0.35);
  color: var(--nexora-cyan);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   TOAST NOTIFICATION v5
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.toast {
  animation: toastSlide 0.35s cubic-bezier(0.34, 1.3, 0.64, 1) both;
}
@keyframes toastSlide {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
.toast.removing {
  animation: toastOut 0.25s ease forwards;
}
@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateX(40px);
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   TOPBAR USER AVATAR BADGE
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.topbar-avatar-wrap {
  position: relative;
  display: inline-flex;
}
.topbar-avatar-online {
  position: absolute;
  bottom: 1px;
  left: 1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10d9a0;
  border: 2px solid var(--bg-base);
  box-shadow: 0 0 6px rgba(16, 217, 160, 0.5);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   IMPROVED SECTION HEADER ROW
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CHART CONTAINER IMPROVEMENTS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.chart-container {
  position: relative;
  padding: 4px 0;
}
.chart-legend-custom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}
.chart-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
}
.chart-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   KANBAN DRAG HINT
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.kanban-empty-col {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  border: 2px dashed rgba(69, 214, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 12px;
  margin: 6px;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   GLOBAL CUSTOM SCROLLBAR
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(69, 214, 255, 0.18);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(69, 214, 255, 0.35);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   IMPROVED MODAL HEADER
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--bg-card), var(--bg-input));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: sticky;
  top: 0;
  z-index: 5;
}
.modal-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-title-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(69, 214, 255, 0.1);
  border: 1px solid rgba(69, 214, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--nexora-cyan);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   TASK PROGRESS SLIDER STYLE
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
input[type='range'] {
  -webkit-appearance: none;
  height: 5px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  width: 100%;
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--nexora-cyan);
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 6px rgba(69, 214, 255, 0.4);
  transition: transform 0.15s;
}
input[type='range']::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
input[type='range']::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--nexora-cyan);
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   IMPROVED FORM INPUT FOCUS STATES
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(69, 214, 255, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(69, 214, 255, 0.08) !important;
  background: var(--bg-hover) !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PROJECTS GRID ENHANCED
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.project-card .pc-tag-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.pc-tag {
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(69, 214, 255, 0.08);
  border: 1px solid rgba(69, 214, 255, 0.15);
  color: var(--text-secondary);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   EMPLOYEES GRID ENHANCED
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.employees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PERFORMANCE SCORE BADGE
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.perf-score {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
}
.perf-score.excellent {
  background: rgba(16, 217, 160, 0.12);
  color: #10d9a0;
}
.perf-score.good {
  background: rgba(69, 214, 255, 0.1);
  color: #45d6ff;
}
.perf-score.average {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}
.perf-score.poor {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   GLASSMORPHISM CARD VARIANT
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   NOTIFICATION BELL ANIMATION
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@keyframes bellRing {
  0%,
  100% {
    transform: rotate(0);
  }
  10%,
  30% {
    transform: rotate(-14deg);
  }
  20%,
  40% {
    transform: rotate(14deg);
  }
  50% {
    transform: rotate(0);
  }
}
.bell-ring {
  animation: bellRing 0.8s ease;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SIDEBAR NAV HOVER INDICATOR
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.nav-item::before {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--nexora-cyan);
  border-radius: 3px 0 0 3px;
  transition: height 0.2s ease;
}
.nav-item:hover::before {
  height: 60%;
}
.nav-item.active::before {
  height: 70%;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   AVATAR INITIALS VARIANTS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.avatar-sm {
  width: 28px;
  height: 28px;
  font-size: 10px;
  border-radius: 8px;
}
.avatar-md {
  width: 36px;
  height: 36px;
  font-size: 13px;
  border-radius: 10px;
}
.avatar-lg {
  width: 48px;
  height: 48px;
  font-size: 16px;
  border-radius: 14px;
}
.avatar-xl {
  width: 64px;
  height: 64px;
  font-size: 22px;
  border-radius: 18px;
}
.avatar-base {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CARD INNER DIVIDER
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.card-divider {
  height: 1px;
  background: var(--border);
  margin: 12px -16px;
  opacity: 0.6;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   IMPROVED TABLE PAGINATION
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}
.table-pagination {
  display: flex;
  gap: 4px;
  align-items: center;
}
.page-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
}
.page-btn:hover {
  background: var(--bg-hover);
  color: var(--text-white);
}
.page-btn.active {
  background: rgba(69, 214, 255, 0.12);
  border-color: rgba(69, 214, 255, 0.3);
  color: var(--nexora-cyan);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   QUICK ACTION FLOATING BUTTON
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.fab-btn {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--nexora-grad);
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(69, 214, 255, 0.3);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.fab-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 10px 28px rgba(69, 214, 255, 0.4);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   IMPROVED SIDEBAR SEPARATOR
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.nav-separator {
  margin: 6px 12px;
  height: 1px;
  background: var(--border);
  opacity: 0.5;
}
.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 8px 22px 4px;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   IMPROVED CHAT INPUT AREA
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.chat-input-area {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-card), var(--bg-input));
  padding: 12px 16px;
}
#chatInput:focus {
  border-color: rgba(69, 214, 255, 0.4) !important;
  background: var(--bg-hover) !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SIDEBAR COLLAPSE ANIMATION
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@media (max-width: 900px) {
  .sidebar {
    transition:
      transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.3s ease;
  }
  .sidebar:not(.open) {
    transform: translateX(100%);
    opacity: 0.95;
  }
  .sidebar.open {
    transform: translateX(0);
    opacity: 1;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   NEXORA v5 â€” FINAL POLISH
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
/* Smooth focus transitions on all interactives */
button,
a,
input,
select,
textarea {
  transition:
    color 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (forced-colors: active) {
  .stat-card,
  .card,
  .kanban-card,
  .project-card,
  .employee-card {
    border: 1px solid ButtonText;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   v8.56 â€” ACTIVITY LOG FULL PAGE ENHANCED
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Ø´Ø±ÙŠØ· Ø§Ù„Ø¥Ø­ØµØ§Ø¡ Ø§Ù„Ø³Ø±ÙŠØ¹ */
.act-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}
.act-stat-pill strong {
  color: var(--text-white);
  font-weight: 800;
}

/* ÙØ§ØµÙ„ Ø§Ù„ØªØ§Ø±ÙŠØ® Ø¨ÙŠÙ† Ù…Ø¬Ù…ÙˆØ¹Ø§Øª Ø§Ù„Ù†Ø´Ø§Ø· */
.act-date-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.act-date-divider::before,
.act-date-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  opacity: 0.5;
}

/* Ø¨Ø·Ø§Ù‚Ø© Ø§Ù„Ù†Ø´Ø§Ø· Ø§Ù„Ù…Ø­Ø³Ù‘Ù†Ø© v8.56 */
.act-item-v56 {
  background: var(--bg-input);
  border-radius: 10px;
  margin: 0 12px 5px;
  border: 1px solid var(--border);
  transition:
    background 0.15s,
    border-color 0.18s,
    transform 0.15s;
}
.act-item-v56:hover {
  background: var(--bg-hover);
  border-color: rgba(69, 214, 255, 0.18);
  transform: translateX(-2px);
}

/* Ø­Ø§ÙˆÙŠØ© Ø§Ù„Ø£ÙŠÙ‚ÙˆÙ†Ø© + Ø§Ù„Ø£ÙØ§ØªØ§Ø± */
.act-icon-wrap {
  position: relative;
  flex-shrink: 0;
}
.act-avatar {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}
.act-type-badge {
  position: absolute;
  bottom: -3px;
  left: -3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ÙØ¹Ù„ Ø§Ù„Ù†Ø´Ø§Ø· */
.act-verb {
  color: var(--text-secondary);
  font-weight: 400;
  margin: 0 4px;
}

/* Ø±Ø§Ø¨Ø· Ø§Ù„Ù…Ù‡Ù…Ø© */
.act-task-link {
  color: var(--nexora-cyan);
  font-weight: 600;
  font-size: 12px;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}

/* ØªÙØ±ÙŠØº Ø§Ù„Ù€ feed Ù„Ø¥Ø²Ø§Ù„Ø© padding Ø§Ù„Ø²Ø§Ø¦Ø¯ */
.activity-full-feed {
  padding: 4px 0 12px;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   v8.561 â€” ACTIVITY ITEM CLICKABLE (deep-link)
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Ø§Ù„Ø¨Ø·Ø§Ù‚Ø© Ø§Ù„Ù‚Ø§Ø¨Ù„Ø© Ù„Ù„Ù†Ù‚Ø± */
.act-item-link {
  border-color: rgba(69, 214, 255, 0.12);
}
.act-item-link:hover {
  background: var(--bg-hover);
  border-color: rgba(69, 214, 255, 0.3);
  transform: translateX(-3px);
  box-shadow: 0 2px 16px rgba(69, 214, 255, 0.08);
}
.act-item-link:active {
  transform: translateX(-1px) scale(0.995);
}

/* ÙˆØ³Ù… Ø§Ù„ÙˆØ¬Ù‡Ø© (Ù…Ù‡Ù…Ø© / Ù…Ø´Ø±ÙˆØ¹) */
.act-dest-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
}
.act-dest-badge.task {
  background: rgba(69, 214, 255, 0.08);
  border: 1px solid rgba(69, 214, 255, 0.22);
  color: #45d6ff;
}
.act-dest-badge.project {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.22);
  color: #fbbf24;
}

/* Ù†Øµ "Ø§Ø¶ØºØ· Ù„Ù„Ø§Ù†ØªÙ‚Ø§Ù„" */
.act-nav-hint {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.18s ease;
  margin-right: 2px;
}
.act-item-link:hover .act-nav-hint {
  opacity: 1;
}

/* Project card snippets and full link row */
.pc-desc,
.pc-goal {
  word-break: break-word;
}
.pc-social-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 8px;
  position: relative;
  z-index: 3;
}
.pc-social-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  transition:
    transform 0.16s ease,
    opacity 0.16s ease,
    box-shadow 0.16s ease;
}
.pc-social-icon:hover {
  transform: translateY(-2px);
  opacity: 0.92;
  box-shadow: 0 12px 24px rgba(69, 214, 255, 0.16);
}
.pc-social-icon.extra {
  background: linear-gradient(
    135deg,
    var(--nexora-indigo),
    var(--nexora-blue)
  ) !important;
}
.pc-social-more {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid rgba(69, 214, 255, 0.24);
  border-radius: 999px;
  background: rgba(69, 214, 255, 0.08);
  color: var(--nexora-cyan);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
[data-theme='light'] .pc-social-icon {
  box-shadow: 0 8px 18px rgba(47, 127, 224, 0.14);
}
[data-theme='light'] .pc-social-more {
  background: #eef7ff;
  border-color: #cfe0ff;
  color: #2f7fe0;
}

.pc-client {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.pc-client-name {
  min-height: 18px;
}
.pc-client-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
  z-index: 4;
}

.auto-performance-panel {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid rgba(69, 214, 255, 0.22);
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(69, 214, 255, 0.06),
    rgba(168, 108, 246, 0.06)
  );
}
.auto-performance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.auto-performance-head strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-white);
  font-size: 14px;
}
.auto-performance-head span {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 11px;
}
.auto-performance-score {
  min-width: 70px;
  text-align: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--nexora-grad);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}
.auto-performance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.auto-performance-grid div,
.task-evaluation-row {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-input);
}
.auto-performance-grid div {
  padding: 10px;
}
.auto-performance-grid b {
  display: block;
  color: var(--nexora-cyan);
  font-size: 18px;
}
.auto-performance-grid span,
.task-evaluation-row span,
.task-evaluation-row small {
  color: var(--text-muted);
  font-size: 11px;
}
.auto-performance-summary {
  margin: 12px 0;
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}
.task-evaluation-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}
.task-evaluation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
}
.task-evaluation-row strong {
  display: block;
  color: var(--text-primary);
  font-size: 12px;
}
.task-evaluation-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.task-evaluation-breakdown small {
  border: 1px solid rgba(69, 214, 255, 0.16);
  border-radius: 999px;
  color: var(--text-secondary);
  background: rgba(69, 214, 255, 0.06);
  font-size: 10px;
  padding: 2px 7px;
}
.task-evaluation-score {
  min-width: 76px;
  text-align: center;
}
.task-evaluation-score b {
  color: var(--nexora-cyan);
  font-size: 16px;
}
.auto-performance-empty {
  padding: 12px;
  border-radius: 10px;
  background: var(--bg-input);
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}
.review-eval-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.review-eval-grid label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}
.review-eval-grid select,
.review-eval-grid input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 12px;
  outline: none;
  padding: 8px 10px;
}
.review-counts-toggle {
  align-items: center;
  background: rgba(69, 214, 255, 0.06);
  border: 1px solid rgba(69, 214, 255, 0.16);
  border-radius: 9px;
  color: var(--text-secondary);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 10px;
}
[data-theme='light'] .auto-performance-panel {
  background: linear-gradient(
    135deg,
    rgba(47, 127, 224, 0.06),
    rgba(168, 108, 246, 0.05)
  );
  border-color: #cfe0ff;
}
[data-theme='light'] .task-evaluation-breakdown small,
[data-theme='light'] .review-counts-toggle {
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(14, 165, 233, 0.2);
}
@media (max-width: 680px) {
  .auto-performance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .task-evaluation-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .review-eval-grid {
    grid-template-columns: 1fr;
  }
}

.extension-panel {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(69, 214, 255, 0.22);
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(69, 214, 255, 0.06),
    rgba(168, 108, 246, 0.05)
  );
}
.extension-panel.manager {
  border-color: rgba(245, 158, 11, 0.28);
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.08),
    rgba(69, 214, 255, 0.04)
  );
}
.extension-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.extension-panel-head i {
  color: var(--nexora-cyan);
}
.extension-panel p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.7;
}
.extension-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.extension-panel input,
.extension-panel select,
.extension-panel textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 13px;
  padding: 9px 11px;
  border-radius: 8px;
  outline: none;
}
.extension-panel textarea {
  resize: vertical;
  margin-bottom: 8px;
}
.extension-actions,
.extension-request-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.extension-actions span {
  color: var(--text-muted);
  font-size: 11px;
}
.extension-request-list {
  display: grid;
  gap: 8px;
}
.extension-request-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-input);
}
.extension-request-row strong,
.extension-request-row span,
.extension-request-row small {
  display: block;
}
.extension-request-row strong {
  color: var(--text-primary);
  font-size: 13px;
}
.extension-request-row span {
  color: var(--nexora-cyan);
  font-size: 12px;
  margin-top: 2px;
}
.extension-request-row small {
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 4px;
}
.extension-approve,
.extension-reject {
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}
.extension-approve {
  color: #10d9a0;
  background: rgba(16, 217, 160, 0.1);
  border: 1px solid rgba(16, 217, 160, 0.28);
}
.extension-reject {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.28);
}
[data-theme='light'] .extension-panel {
  background: #f8fbff;
  border-color: #cfe0ff;
}
[data-theme='light'] .extension-request-row {
  background: #ffffff;
}
@media (max-width: 680px) {
  .extension-form-grid {
    grid-template-columns: 1fr;
  }
  .extension-request-row {
    flex-direction: column;
  }
}

/* ======================================================
   v8.59.9 MOBILE OVERLAY HARDENING
   Fixes the mobile drawer blur layer getting stuck without
   the sidebar being visible.
====================================================== */
.sidebar-overlay {
  visibility: hidden;
  pointer-events: none;
}
.sidebar-overlay.visible,
.sidebar-overlay.show,
.sidebar-overlay.active {
  visibility: visible;
}
body:not(.sidebar-mobile-active) .sidebar-overlay {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.sidebar-mobile-active .sidebar-overlay.visible,
body.sidebar-mobile-active .sidebar-overlay.show,
body.sidebar-mobile-active .sidebar-overlay.active {
  display: block !important;
  pointer-events: auto;
}

@media (max-width: 900px) {
  .sidebar.mobile-open {
    transform: translateX(0) !important;
    opacity: 1 !important;
  }
  body.ltr .sidebar.mobile-open {
    transform: translateX(0) !important;
    opacity: 1 !important;
  }
}

@media (max-width: 768px) {
  .sidebar {
    z-index: 1200 !important;
  }
  .sidebar-overlay {
    z-index: 1190 !important;
    background: rgba(8, 15, 34, 0.46) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .modal-overlay:not(.open),
  .login-modal-overlay:not(.open) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .content-area,
  .main-wrapper,
  #appWrapper,
  .page {
    min-width: 0 !important;
    max-width: 100vw !important;
  }
}

@media (max-width: 560px) {
  .employees-grid,
  .projects-grid {
    grid-template-columns: 1fr !important;
  }
  .employee-card,
  .project-card {
    width: 100%;
    min-width: 0;
  }
}

/* v8.56 / 8608 â€” Private Notes Workspace */
.notes-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.1), rgba(168, 108, 246, 0.08)),
    var(--bg-card);
  box-shadow: var(--shadow-md);
}
.notes-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  margin-bottom: 8px;
  border: 1px solid rgba(69, 214, 255, 0.28);
  border-radius: 999px;
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.1);
  font-size: 12px;
  font-weight: 900;
}
.notes-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 26px;
  font-weight: 950;
}
.notes-subtitle {
  margin: 7px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.8;
}
.notes-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.notes-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(160px, 220px) minmax(150px, 190px) auto;
  gap: 10px;
  margin-bottom: 14px;
}
.notes-search {
  position: relative;
}
.notes-search i {
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.notes-search input {
  width: 100%;
  height: 48px;
  padding: 0 42px 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font);
  font-weight: 700;
}
.notes-toggle-filter {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-input);
  color: var(--text-secondary);
  font-weight: 800;
  cursor: pointer;
}
.notes-quick-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.notes-stat-card {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.notes-stat-card span {
  font-size: 18px;
}
.notes-stat-card strong {
  color: var(--text-primary);
  font-size: 24px;
  line-height: 1;
}
.notes-stat-card small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}
.personal-notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.personal-note-card {
  min-height: 226px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.personal-note-card:hover,
.personal-note-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(69, 214, 255, 0.4);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  outline: none;
}
.personal-note-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #45d6ff, #a86cf6);
  opacity: 0;
}
.personal-note-card.is-pinned::before {
  opacity: 1;
}
.personal-note-card.is-archived {
  opacity: 0.76;
}
.note-card-top,
.note-card-meta,
.personal-note-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.note-type-badge,
.note-project-chip,
.note-sensitive-badge,
.note-shared-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}
.note-type-badge {
  color: var(--note-color);
  background: color-mix(in srgb, var(--note-color) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--note-color) 28%, transparent);
}
.note-project-chip {
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.1);
  border: 1px solid rgba(69, 214, 255, 0.22);
}
.note-sensitive-badge {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.24);
}
.note-shared-badge {
  color: #10d9a0;
  background: rgba(16, 217, 160, 0.1);
  border: 1px solid rgba(16, 217, 160, 0.24);
}
.note-card-actions {
  display: flex;
  gap: 6px;
}
.note-card-actions button {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  background: var(--bg-input);
  cursor: pointer;
  transition: 0.18s ease;
}
.note-card-actions button:hover {
  color: var(--nexora-cyan);
  border-color: rgba(69, 214, 255, 0.35);
  transform: translateY(-1px);
}
.note-card-actions button.danger:hover {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.35);
}
.personal-note-card h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.5;
}
.note-preview {
  margin: 0;
  min-height: 48px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.8;
}
.note-share-preview {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(69, 214, 255, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.08), rgba(168, 108, 246, 0.06)),
    rgba(148, 163, 184, 0.05);
}
.note-share-preview-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--nexora-cyan);
  font-size: 11px;
  font-weight: 950;
}
.note-share-preview-users {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.note-share-preview-user,
.note-share-preview-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--share-color, #45d6ff) 28%, transparent);
  border-radius: 999px;
  color: var(--text-secondary);
  background: color-mix(in srgb, var(--share-color, #45d6ff) 10%, transparent);
  font-size: 10px;
  font-weight: 900;
}
.note-share-preview-avatar {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: var(--share-color, var(--nexora-grad));
  font-size: 9px;
  font-weight: 950;
}
.note-share-preview-name {
  overflow: hidden;
  max-width: 112px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.note-share-preview-more {
  --share-color: #94a3b8;
  justify-content: center;
  min-width: 32px;
  color: var(--text-muted);
}
.note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
}
.note-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(168, 108, 246, 0.12);
  color: #a86cf6;
  font-size: 10px;
  font-weight: 900;
}
.personal-note-card footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
}
.modal-note-view {
  max-width: 1120px;
  width: min(1120px, calc(100vw - 32px));
}
.note-view-body {
  display: grid;
  gap: 16px;
}
.note-view-hero {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(69, 214, 255, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.11), rgba(168, 108, 246, 0.08)),
    rgba(9, 24, 44, 0.56);
}
.note-view-hero h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 950;
  line-height: 1.45;
}
.note-view-hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.8;
}
.note-view-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.note-view-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  color: var(--text-secondary);
  background: rgba(148, 163, 184, 0.08);
  font-size: 11px;
  font-weight: 900;
}
.note-view-meta .is-warning {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.1);
}
.note-view-meta .is-shared {
  color: #10d9a0;
  border-color: rgba(16, 217, 160, 0.28);
  background: rgba(16, 217, 160, 0.1);
}
.note-view-content {
  min-height: 180px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(9, 24, 44, 0.42);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 2;
  max-width: 100%;
  overflow-x: auto;
}
.note-view-empty {
  display: grid;
  place-items: center;
  min-height: 120px;
  color: var(--text-muted);
  font-weight: 850;
}
.note-rich-wrap {
  overflow: hidden;
}
.note-rich-wrap .desc-quill-editor {
  min-height: 210px;
}
.note-rich-fallback {
  padding: 14px 16px;
  outline: none;
}
.note-rich-fallback:empty::before {
  content: attr(data-placeholder);
  color: var(--text-muted);
  pointer-events: none;
}
.note-rich-display {
  color: var(--text-secondary);
  line-height: 1.95;
  word-break: break-word;
}
.note-rich-display p {
  margin: 0 0 10px;
}
.note-rich-display h2,
.note-rich-display h3 {
  margin: 0 0 12px;
  color: var(--text-primary);
  line-height: 1.45;
}
.note-rich-display ul,
.note-rich-display ol {
  margin: 0 0 12px;
  padding-inline-start: 24px;
}
.note-rich-display blockquote {
  margin: 10px 0;
  padding: 10px 14px;
  border-inline-start: 3px solid var(--nexora-cyan);
  border-radius: 10px;
  background: rgba(69, 214, 255, 0.08);
  color: var(--text-primary);
}
.note-rich-display a {
  color: var(--nexora-cyan);
  font-weight: 900;
}
.note-view-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(69, 214, 255, 0.18);
  border-radius: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(69, 214, 255, 0.55) rgba(9, 24, 44, 0.45);
}
.note-view-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.note-view-table th,
.note-view-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  border-inline-end: 1px solid rgba(148, 163, 184, 0.14);
  text-align: start;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.note-view-table th {
  color: var(--text-primary);
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.14), rgba(168, 108, 246, 0.1)),
    rgba(9, 24, 44, 0.7);
  font-size: 12px;
  font-weight: 950;
}
.note-view-checklist {
  display: grid;
  gap: 10px;
}
.note-view-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.06);
}
.note-view-check-item i {
  color: var(--nexora-cyan);
}
.note-view-check-item.is-done span {
  color: var(--text-muted);
  text-decoration: line-through;
}
.note-view-credentials {
  display: grid;
  gap: 10px;
}
.note-view-credential {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.06);
}
.note-view-credential strong,
.note-view-credential small,
.note-view-credential a {
  display: block;
}
.note-view-credential strong {
  color: var(--text-primary);
}
.note-view-credential small {
  color: var(--text-muted);
  margin-top: 3px;
}
.note-view-credential a {
  color: var(--nexora-cyan);
  margin-top: 4px;
  font-weight: 900;
}
.note-view-secret {
  color: var(--text-muted);
  font-weight: 950;
  letter-spacing: 2px;
}
.note-view-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.note-view-actions .btn-danger {
  border: 1px solid rgba(239, 68, 68, 0.32);
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  padding: 11px 16px;
  font-family: var(--font);
  font-weight: 900;
  cursor: pointer;
}
.note-view-actions .btn-danger:hover {
  background: rgba(239, 68, 68, 0.18);
}
.notes-empty {
  grid-column: 1 / -1;
  min-height: 320px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 30px;
  border: 1px dashed var(--border);
  border-radius: 18px;
  color: var(--text-muted);
  background: var(--bg-card);
  text-align: center;
}
.notes-empty i {
  color: var(--nexora-cyan);
  font-size: 42px;
  opacity: 0.8;
}
.notes-empty h3 {
  margin: 0;
  color: var(--text-primary);
}
.modal-notes {
  max-width: 860px;
  width: min(860px, calc(100vw - 24px));
}
.modal-notes.modal-note-view {
  max-width: 1120px;
  width: min(1120px, calc(100vw - 32px));
}
.modal-note-share {
  max-width: 680px;
}
.note-share-body {
  display: grid;
  gap: 14px;
}
.note-share-hint {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid rgba(16, 217, 160, 0.24);
  border-radius: 14px;
  color: #10d9a0;
  background: rgba(16, 217, 160, 0.08);
  font-size: 12px;
  font-weight: 900;
}
.note-share-search {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-input);
  padding: 0 12px;
}
.note-share-search i {
  color: var(--text-muted);
}
.note-share-search input {
  min-height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font);
  font-weight: 800;
}
.note-share-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-inline-end: 4px;
}
.note-share-option {
  display: grid;
  grid-template-columns: 24px 44px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(9, 24, 44, 0.45);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
}
.note-share-option:hover {
  transform: translateY(-1px);
  border-color: rgba(69, 214, 255, 0.34);
  background: rgba(69, 214, 255, 0.08);
}
.note-share-option input {
  accent-color: var(--nexora-cyan);
}
.note-share-avatar {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #45d6ff, #a86cf6);
  font-size: 13px;
  font-weight: 950;
}
.note-share-person {
  min-width: 0;
}
.note-share-person strong,
.note-share-person small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.note-share-person strong {
  color: var(--text-primary);
  font-weight: 950;
}
.note-share-person small {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}
.note-share-option > i {
  color: var(--nexora-cyan);
}
.note-share-empty {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 150px;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.06);
  font-weight: 900;
  text-align: center;
}
.note-share-empty i {
  color: var(--nexora-cyan);
  font-size: 28px;
}
.notes-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.notes-flags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 14px;
}
.notes-flags-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-input);
  color: var(--text-secondary);
  font-weight: 800;
  cursor: pointer;
}
.note-editor-section textarea,
.credentials-builder textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-input);
  color: var(--text-primary);
  padding: 12px;
  font-family: var(--font);
}
.notes-builder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(69, 214, 255, 0.07);
}
.notes-builder-header strong {
  display: block;
  color: var(--text-primary);
  font-size: 14px;
}
.notes-builder-header small {
  display: block;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 700;
}
.note-table-tools,
.note-table-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.note-table-tools .btn-secondary {
  min-height: 38px;
  border-color: rgba(69, 214, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.18), rgba(168, 108, 246, 0.12)),
    rgba(9, 24, 44, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.note-table-tools .btn-secondary:hover {
  border-color: rgba(69, 214, 255, 0.55);
  transform: translateY(-1px);
}
.note-table-toolbar {
  margin: 10px 0;
}
.note-table-toolbar button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background: rgba(9, 24, 44, 0.55);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.18s ease;
}
.note-table-toolbar button:hover {
  color: var(--nexora-cyan);
  border-color: rgba(69, 214, 255, 0.34);
  transform: translateY(-1px);
}
.note-table-toolbar button.is-accent {
  color: var(--nexora-cyan);
  border-color: rgba(69, 214, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.12), rgba(168, 108, 246, 0.08)),
    rgba(9, 24, 44, 0.58);
}
.note-table-toolbar button.is-accent:hover {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.32), rgba(168, 108, 246, 0.24)),
    rgba(9, 24, 44, 0.78);
}
.note-table-import {
  display: grid;
  gap: 10px;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(69, 214, 255, 0.22);
  border-radius: 14px;
  background: rgba(69, 214, 255, 0.06);
}
.note-table-import > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.note-table-wrap {
  overflow: auto;
  border: 1px solid rgba(69, 214, 255, 0.18);
  border-radius: 16px;
  background: rgba(7, 19, 36, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  scrollbar-color: rgba(69, 214, 255, 0.55) rgba(9, 24, 44, 0.5);
}
.note-table-builder {
  min-width: 620px;
}
.note-excel-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--text-primary);
}
.note-excel-table th,
.note-excel-table td {
  min-width: 150px;
  border-inline-end: 1px solid rgba(148, 163, 184, 0.16);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  padding: 0;
}
.note-excel-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.16), rgba(168, 108, 246, 0.12)),
    rgba(9, 24, 44, 0.95);
}
.note-excel-table .note-corner-cell,
.note-excel-table .note-row-number {
  min-width: 48px;
  width: 48px;
  position: sticky;
  inset-inline-start: 0;
  z-index: 2;
  text-align: center;
  color: var(--text-muted);
  background: rgba(69, 214, 255, 0.08);
  font-size: 12px;
  font-weight: 950;
}
.note-excel-table .note-corner-cell {
  z-index: 3;
}
.note-excel-table input {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-primary);
  padding: 10px 12px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 750;
  outline: none;
}
.note-excel-table thead input {
  color: var(--text-primary);
  font-weight: 950;
}
.note-excel-table td:focus-within,
.note-excel-table th:focus-within {
  outline: 2px solid rgba(69, 214, 255, 0.68);
  outline-offset: -2px;
  background: rgba(69, 214, 255, 0.08);
}
.note-excel-table tbody tr:nth-child(even) td {
  background: rgba(148, 163, 184, 0.03);
}
.credentials-builder {
  display: grid;
  gap: 12px;
}
.credential-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(69, 214, 255, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.08), rgba(168, 108, 246, 0.06)),
    var(--bg-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.credential-row-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-primary);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}
.credential-platform-head {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.credential-platform-head strong {
  display: block;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.3;
}
.credential-platform-head small {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 850;
}
.credential-platform-icon {
  --platform-color: #45d6ff;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 15px;
  color: #fff;
  font-size: 20px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), transparent 28%),
    var(--platform-color);
  box-shadow:
    0 14px 26px color-mix(in srgb, var(--platform-color) 28%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.credential-remove-btn,
.secret-input-wrap button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  background: var(--bg-input);
  cursor: pointer;
  transition: 0.18s ease;
}
.credential-remove-btn:hover {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.09);
}
.credential-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.credential-field-wide {
  grid-column: span 1;
}
.credential-field span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 900;
}
.credential-field span i {
  color: var(--nexora-cyan);
}
.credential-row input,
.credential-row select,
.credential-row textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: rgba(9, 24, 44, 0.55);
  color: var(--text-primary);
  padding: 11px 12px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 750;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.credential-row select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 50%,
    calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-inline-start: 30px;
}
html[dir='rtl'] .credential-row select,
body.rtl .credential-row select {
  background-position: 16px 50%, 11px 50%;
}
.credential-row textarea {
  min-height: 86px;
}
.credential-row input:focus,
.credential-row select:focus,
.credential-row textarea:focus {
  border-color: rgba(69, 214, 255, 0.7);
  background: rgba(9, 24, 44, 0.78);
  box-shadow: 0 0 0 3px rgba(69, 214, 255, 0.12);
}
.secret-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 7px;
}
.secret-input-wrap button:hover {
  color: var(--nexora-cyan);
  border-color: rgba(69, 214, 255, 0.35);
}
[data-theme='light'] .notes-hero,
[data-theme='light'] .notes-stat-card,
[data-theme='light'] .personal-note-card,
[data-theme='light'] .note-view-hero,
[data-theme='light'] .note-view-content,
[data-theme='light'] .note-view-check-item,
[data-theme='light'] .note-view-credential,
[data-theme='light'] .notes-empty,
[data-theme='light'] .note-share-option,
[data-theme='light'] .note-share-empty,
[data-theme='light'] .credential-row {
  background: #fff;
}
[data-theme='light'] .note-view-meta span,
[data-theme='light'] .note-view-table th {
  background: #edf4ff;
}
[data-theme='light'] .notes-search input,
[data-theme='light'] .notes-toggle-filter,
[data-theme='light'] .note-card-actions button,
[data-theme='light'] .notes-flags-row label,
[data-theme='light'] .note-editor-section textarea,
[data-theme='light'] .note-share-search,
[data-theme='light'] .credentials-builder textarea,
[data-theme='light'] .credential-row-head button,
[data-theme='light'] .secret-input-wrap button {
  background: #edf4ff;
}
[data-theme='light'] .note-table-toolbar button,
[data-theme='light'] .note-table-tools .btn-secondary,
[data-theme='light'] .note-table-wrap {
  background: #edf4ff;
}
[data-theme='light'] .note-table-toolbar button.is-accent {
  color: #168bd4;
  background: linear-gradient(135deg, rgba(69, 214, 255, 0.16), rgba(168, 108, 246, 0.09)), #f7fbff;
}
[data-theme='light'] .note-excel-table thead th {
  background: linear-gradient(135deg, rgba(69, 214, 255, 0.18), rgba(168, 108, 246, 0.12)), #f7fbff;
}
[data-theme='light'] .note-excel-table .note-corner-cell,
[data-theme='light'] .note-excel-table .note-row-number {
  background: #e8f3ff;
}
[data-theme='light'] .note-excel-table tbody tr:nth-child(even) td {
  background: rgba(47, 127, 224, 0.04);
}
[data-theme='light'] .credential-row input,
[data-theme='light'] .credential-row select,
[data-theme='light'] .credential-row textarea {
  background: #edf4ff;
  border-color: #c7d7f0;
  color: #172033;
}
[data-theme='light'] .credential-row input:focus,
[data-theme='light'] .credential-row select:focus,
[data-theme='light'] .credential-row textarea:focus {
  background: #fff;
}
@media (max-width: 900px) {
  .notes-hero {
    align-items: stretch;
    flex-direction: column;
  }
  .notes-actions {
    justify-content: flex-start;
  }
  .notes-filters,
  .notes-quick-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .notes-hero {
    padding: 16px;
    border-radius: 14px;
  }
  .notes-title {
    font-size: 22px;
  }
  .notes-actions,
  .notes-actions button,
  .notes-filters,
  .notes-quick-stats,
  .notes-form-grid,
  .credential-row {
    grid-template-columns: 1fr;
  }
  .credential-field-wide {
    grid-column: auto;
  }
  .notes-actions button {
    width: 100%;
    justify-content: center;
  }
  .notes-builder-header {
    align-items: stretch;
    flex-direction: column;
  }
  .note-table-tools,
  .note-table-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .note-table-tools button,
  .note-table-toolbar button {
    width: 100%;
    justify-content: center;
  }
  .note-table-builder {
    min-width: 560px;
  }
  .note-view-hero h2 {
    font-size: 20px;
  }
  .note-view-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .note-view-actions button {
    width: 100%;
    justify-content: center;
  }
  .note-view-credential {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .note-view-secret {
    grid-column: 1 / -1;
  }
  .personal-notes-grid {
    grid-template-columns: 1fr;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   FINAL MODAL LAYOUT OVERRIDE â€” stable body scroll, no bottom gap
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.modal-overlay.open {
  align-items: center !important;
  justify-content: center !important;
  padding: 18px !important;
}
.modal-overlay.open .modal {
  width: min(560px, calc(100vw - 36px)) !important;
  max-width: calc(100vw - 36px) !important;
  max-height: min(92dvh, 860px) !important;
  height: auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border: 1px solid rgba(69, 214, 255, 0.2) !important;
  border-radius: 20px !important;
  background:
    linear-gradient(180deg, rgba(69, 214, 255, 0.035), transparent 90px),
    var(--bg-card) !important;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}
.modal-overlay.open .modal.modal-lg {
  width: min(860px, calc(100vw - 36px)) !important;
}
.modal-overlay.open .modal-header,
.modal-overlay.open .modal-footer {
  flex: 0 0 auto !important;
  position: relative !important;
  inset: auto !important;
  z-index: 3 !important;
  background:
    linear-gradient(180deg, rgba(69, 214, 255, 0.035), transparent),
    var(--bg-card) !important;
}
.modal-overlay.open .modal-header {
  padding: 17px 22px !important;
  border-bottom: 1px solid rgba(69, 214, 255, 0.16) !important;
}
.modal-overlay.open .modal-header h3 {
  margin: 0 !important;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary) !important;
  font-size: 16px !important;
  font-weight: 900 !important;
}
.modal-overlay.open .modal-close {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  border-radius: 12px !important;
  background: rgba(148, 163, 184, 0.06) !important;
}
.modal-overlay.open .modal-close:hover {
  border-color: rgba(69, 214, 255, 0.38) !important;
  background: rgba(69, 214, 255, 0.1) !important;
  color: var(--nexora-cyan) !important;
}
.modal-overlay.open .modal-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 18px 22px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.modal-overlay.open .modal-body::-webkit-scrollbar {
  width: 8px;
}
.modal-overlay.open .modal-body::-webkit-scrollbar-track {
  background: transparent;
}
.modal-overlay.open .modal-body::-webkit-scrollbar-thumb {
  background: rgba(69, 214, 255, 0.24);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}
.modal-overlay.open .modal-footer {
  padding: 14px 22px !important;
  border-top: 1px solid rgba(69, 214, 255, 0.16) !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  box-shadow: 0 -18px 40px rgba(5, 12, 28, 0.1);
}
#modal-taskDetail.open .modal {
  width: min(900px, calc(100vw - 36px)) !important;
}
#modal-taskDetail.open #taskDetailBody {
  padding-bottom: 18px !important;
}
#modal-taskDetail.open .comments-section {
  margin-bottom: 6px;
}
[data-theme='light'] .modal-overlay.open .modal {
  background:
    linear-gradient(180deg, rgba(47, 127, 224, 0.04), transparent 90px),
    #ffffff !important;
  border-color: rgba(47, 127, 224, 0.2) !important;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22) !important;
}
[data-theme='light'] .modal-overlay.open .modal-header,
[data-theme='light'] .modal-overlay.open .modal-footer {
  background:
    linear-gradient(180deg, rgba(47, 127, 224, 0.035), transparent),
    #ffffff !important;
}
@media (max-width: 640px) {
  .modal-overlay.open {
    align-items: stretch !important;
    padding: 8px !important;
  }
  .modal-overlay.open .modal,
  .modal-overlay.open .modal.modal-lg,
  #modal-taskDetail.open .modal {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    max-height: calc(100dvh - 16px) !important;
    border-radius: 16px !important;
  }
  .modal-overlay.open .modal-header {
    padding: 14px 15px !important;
  }
  .modal-overlay.open .modal-body {
    padding: 15px !important;
  }
  .modal-overlay.open .modal-footer {
    padding: 12px 15px !important;
  }
}

/* Timeline final override v8660 EOF: old Gantt look, RTL time, details only on hover */
#page-timeline .timeline-grid {
  direction: ltr !important;
}

#page-timeline .timeline-bar {
  cursor: help !important;
}

#page-timeline .timeline-bar > .timeline-progress-fill {
  inset: 0 0 0 auto !important;
}

#page-timeline .timeline-bar > .timeline-progress-label {
  pointer-events: none;
}

#page-timeline .timeline-activity-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 230px;
  overflow: hidden;
  padding: 0;
  border: 0;
  color: var(--text-primary);
  background: transparent;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.5;
  text-align: right;
  white-space: nowrap;
  cursor: pointer;
}

#page-timeline .timeline-activity-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#page-timeline .timeline-activity-name i {
  flex: 0 0 auto;
  color: var(--nexora-cyan);
}

#page-timeline .timeline-activity-name:hover,
#page-timeline .timeline-activity-name:focus-visible {
  color: var(--nexora-cyan);
}

#page-timeline .timeline-row-label small,
#page-timeline .timeline-row-label em,
#page-timeline .timeline-row-edit {
  display: none !important;
}

.timeline-floating-tooltip.show {
  display: block !important;
  animation: timelineTooltipSoftInFinal 0.18s ease both;
}

@keyframes timelineTooltipSoftInFinal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Timeline completion control + light progress text v8674 EOF */
[data-theme='light'] #page-timeline .timeline-bar > .timeline-progress-label {
  color: #111827 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.58) !important;
}

#modal-projectTimelineActivity .ptl-manual-complete,
#modal-projectTimelineActivity .ptl-footer-complete {
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: flex-start !important;
  border-color: rgba(16, 217, 160, 0.24) !important;
  background:
    linear-gradient(135deg, rgba(16, 217, 160, 0.12), rgba(69, 214, 255, 0.075)) !important;
}

#modal-projectTimelineActivity .ptl-manual-complete input,
#modal-projectTimelineActivity .ptl-footer-complete input {
  margin-top: 5px;
}

#modal-projectTimelineActivity .ptl-manual-complete span,
#modal-projectTimelineActivity .ptl-footer-complete span {
  display: grid;
  gap: 3px;
}

#modal-projectTimelineActivity .ptl-manual-complete b,
#modal-projectTimelineActivity .ptl-footer-complete b {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 950;
}

#modal-projectTimelineActivity .ptl-manual-complete small,
#modal-projectTimelineActivity .ptl-footer-complete small {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.6;
}

[data-theme='light'] #modal-projectTimelineActivity .ptl-manual-complete,
[data-theme='light'] #modal-projectTimelineActivity .ptl-footer-complete {
  border-color: rgba(7, 148, 115, 0.24) !important;
  background:
    linear-gradient(135deg, rgba(16, 217, 160, 0.14), rgba(45, 214, 255, 0.12)) !important;
}

#modal-projectTimelineActivity .ptl-footer-complete {
  display: inline-grid !important;
  min-height: 46px !important;
  max-width: 230px;
  padding: 8px 12px !important;
  border: 1px solid rgba(16, 217, 160, 0.24) !important;
  border-radius: 12px !important;
}

/* Unified alerts center v8675 */
.nav-hidden-unified-alerts {
  display: none !important;
}

.notif-center-card.is-action {
  border-color: rgba(69, 214, 255, 0.28);
  background:
    radial-gradient(circle at 0 0, rgba(69, 214, 255, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(69, 214, 255, 0.08), rgba(124, 92, 255, 0.055)),
    var(--bg-card);
}

.notif-center-card.is-timeline {
  border-color: rgba(16, 217, 160, 0.26);
}

.notif-center-card.high-priority {
  border-color: rgba(245, 158, 11, 0.34);
}

.notif-center-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 8px 0 9px;
}

.notif-center-meta em {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(69, 214, 255, 0.18);
  border-radius: 999px;
  color: var(--text-secondary);
  background: rgba(69, 214, 255, 0.075);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.notif-center-card.is-action .notif-center-head span {
  color: #fff;
  background: linear-gradient(135deg, var(--nexora-cyan), var(--nexora-purple));
}

[data-theme='light'] .notif-center-card.is-action {
  background:
    radial-gradient(circle at 0 0, rgba(31, 182, 255, 0.14), transparent 30%),
    linear-gradient(135deg, #f7fdff, #f7f6ff);
}

[data-theme='light'] .notif-center-meta em {
  color: #23405f;
  background: #eefbff;
}

/* Unified smart activity center v8676 */
.activity-smart-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 12px;
  padding: 10px 16px 14px;
  border-bottom: 1px solid rgba(69, 214, 255, 0.12);
}

.activity-smart-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.activity-smart-tabs button {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(69, 214, 255, 0.18);
  border-radius: 999px;
  color: var(--text-secondary);
  background: rgba(69, 214, 255, 0.055);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.activity-smart-tabs button:hover,
.activity-smart-tabs button.active {
  transform: translateY(-1px);
  border-color: rgba(69, 214, 255, 0.42);
  color: #fff;
  background: linear-gradient(135deg, rgba(69, 214, 255, 0.9), rgba(139, 107, 255, 0.9));
  box-shadow: 0 12px 26px rgba(69, 214, 255, 0.16);
}

.activity-smart-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(69, 214, 255, 0.18);
  border-radius: 14px;
  background: rgba(2, 13, 31, 0.34);
  color: var(--text-muted);
}

.activity-smart-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text-primary);
  background: transparent;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
}

.activity-smart-search input::placeholder {
  color: var(--text-muted);
}

.smart-activity-item {
  position: relative;
  grid-template-columns: auto minmax(0, 1fr) auto;
  border-color: rgba(69, 214, 255, 0.14);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--act-color, #45d6ff) 9%, transparent), transparent 55%),
    rgba(7, 22, 43, 0.72);
}

.smart-activity-item::before {
  content: "";
  position: absolute;
  inset-block: 14px;
  inset-inline-start: 0;
  width: 3px;
  border-radius: 999px;
  background: var(--act-color, #45d6ff);
  opacity: 0.9;
}

.smart-activity-item.priority-urgent {
  border-color: rgba(248, 113, 113, 0.38);
  background:
    linear-gradient(90deg, rgba(248, 113, 113, 0.13), transparent 56%),
    rgba(7, 22, 43, 0.78);
}

.smart-activity-item.priority-high {
  border-color: rgba(251, 191, 36, 0.32);
}

.smart-activity-item .act-avatar {
  display: grid;
  place-items: center;
  color: var(--act-color, var(--nexora-cyan));
  background: color-mix(in srgb, var(--act-color, #45d6ff) 14%, rgba(2, 13, 31, 0.5));
}

.smart-activity-item .activity-body {
  min-width: 0;
}

.smart-activity-item .activity-action {
  gap: 8px;
  flex-wrap: wrap;
}

.smart-activity-desc {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.7;
}

.smart-activity-item .activity-meta {
  gap: 7px;
  flex-wrap: wrap;
}

.smart-activity-item .activity-meta > span,
.smart-activity-item .act-dest-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 25px;
  padding: 4px 9px;
  border: 1px solid rgba(69, 214, 255, 0.14);
  border-radius: 999px;
  background: rgba(69, 214, 255, 0.055);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 850;
}

.smart-activity-item .act-dest-badge {
  color: var(--act-color, var(--nexora-cyan));
  border-color: color-mix(in srgb, var(--act-color, #45d6ff) 28%, transparent);
  background: color-mix(in srgb, var(--act-color, #45d6ff) 10%, transparent);
}

.act-open-btn {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(69, 214, 255, 0.24);
  border-radius: 12px;
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.08);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.act-open-btn:hover {
  border-color: rgba(69, 214, 255, 0.45);
  background: rgba(69, 214, 255, 0.14);
  transform: translateY(-1px);
}

[data-theme='light'] .activity-smart-search,
[data-theme='light'] .smart-activity-item {
  background: rgba(255, 255, 255, 0.92);
}

[data-theme='light'] .activity-smart-tabs button {
  color: #26364d;
  background: rgba(69, 214, 255, 0.08);
}

@media (max-width: 900px) {
  .activity-smart-toolbar {
    grid-template-columns: 1fr;
    padding-inline: 12px;
  }

  .smart-activity-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .act-open-btn {
    grid-column: 2;
    justify-self: start;
  }
}

/* Assignee review picker reliability v8677 */
.review-empty-assignee-picker {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 118px;
  padding: 18px;
  border: 1px dashed rgba(248, 113, 113, 0.34);
  border-radius: 16px;
  color: var(--text-secondary);
  background: rgba(248, 113, 113, 0.06);
  text-align: center;
}

.review-empty-assignee-picker i {
  color: #f87171;
  font-size: 24px;
}

.review-empty-assignee-picker strong {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 900;
}

.review-empty-assignee-picker span {
  max-width: 520px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.8;
}

/* Task lifecycle workflow v8679 */
.task-lifecycle-panel {
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid rgba(69, 214, 255, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.08), rgba(168, 108, 246, 0.07)),
    rgba(10, 28, 50, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.task-lifecycle-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.task-lifecycle-head > div {
  display: grid;
  gap: 4px;
}

.task-lifecycle-head i,
.task-lifecycle-head strong {
  color: var(--nexora-cyan);
}

.task-lifecycle-head strong {
  font-size: 15px;
  font-weight: 900;
}

.task-lifecycle-head small {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}

.task-lifecycle-head > span {
  border: 1px solid rgba(69, 214, 255, 0.28);
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.1);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.task-lifecycle-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.task-lifecycle-steps span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  color: var(--text-muted);
  background: rgba(9, 24, 44, 0.44);
  font-size: 12px;
  font-weight: 900;
}

.task-lifecycle-steps span.done {
  color: #ecfeff;
  border-color: rgba(69, 214, 255, 0.4);
  background: linear-gradient(135deg, rgba(69, 214, 255, 0.2), rgba(168, 108, 246, 0.16));
  box-shadow: 0 12px 24px rgba(69, 214, 255, 0.08);
}

.task-lifecycle-log {
  display: grid;
  gap: 8px;
}

.task-lifecycle-event,
.task-lifecycle-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid rgba(69, 214, 255, 0.14);
  border-radius: 13px;
  background: rgba(8, 22, 40, 0.38);
}

.task-lifecycle-event > i,
.task-lifecycle-empty > i {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.12);
  flex: 0 0 auto;
}

.task-lifecycle-event span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.task-lifecycle-event strong {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 900;
}

.task-lifecycle-event small,
.task-lifecycle-empty {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}

.delivery-submit-note {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}

.delivery-submit-note span {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 900;
}

.delivery-submit-note span i {
  color: var(--nexora-cyan);
  margin-inline-end: 6px;
}

.delivery-submit-note textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  border: 1px solid rgba(69, 214, 255, 0.2);
  border-radius: 14px;
  padding: 11px 12px;
  color: var(--text-primary);
  background: rgba(5, 18, 34, 0.62);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.7;
  outline: none;
}

.delivery-submit-note textarea:focus {
  border-color: rgba(69, 214, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(69, 214, 255, 0.1);
}

.review-assignee-submit-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid rgba(69, 214, 255, 0.18);
  border-radius: 13px;
  color: var(--text-primary);
  background: rgba(69, 214, 255, 0.07);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.7;
}

.review-assignee-submit-note i {
  color: var(--nexora-cyan);
  margin-top: 4px;
}

[data-theme='light'] .task-lifecycle-panel {
  background: linear-gradient(135deg, rgba(69, 214, 255, 0.08), rgba(168, 108, 246, 0.06)), #f8fbff;
  border-color: rgba(47, 127, 224, 0.18);
}

[data-theme='light'] .task-lifecycle-steps span,
[data-theme='light'] .task-lifecycle-event,
[data-theme='light'] .task-lifecycle-empty,
[data-theme='light'] .delivery-submit-note textarea {
  background: #fff;
  border-color: #c8d8f2;
}

[data-theme='light'] .task-lifecycle-head strong,
[data-theme='light'] .task-lifecycle-event strong,
[data-theme='light'] .task-lifecycle-steps span {
  color: #17243a;
}

[data-theme='light'] .task-lifecycle-head small,
[data-theme='light'] .task-lifecycle-event small,
[data-theme='light'] .task-lifecycle-empty {
  color: #52657f;
}

[data-theme='light'] .task-lifecycle-steps span.done {
  color: #08324a;
  border-color: rgba(20, 184, 226, 0.56);
  background: linear-gradient(135deg, rgba(69, 214, 255, 0.28), rgba(168, 108, 246, 0.18)), #ffffff;
}

[data-theme='light'] .task-lifecycle-head > span {
  color: #035b7a;
  background: rgba(69, 214, 255, 0.16);
  border-color: rgba(20, 184, 226, 0.38);
}

[data-theme='light'] .delivery-submit-note span,
[data-theme='light'] .review-assignee-submit-note {
  color: #17243a;
}

@media (max-width: 680px) {
  .task-lifecycle-steps {
    grid-template-columns: 1fr;
  }

  .task-lifecycle-head {
    flex-direction: column;
  }
}

/* Task modal width + execution plan layout v8684 */
#modal-addTask.open .modal,
#modal-editTaskDetails.open .modal {
  width: min(1480px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 28px);
}

#modal-addTask.open .modal.modal-lg,
#modal-editTaskDetails.open .modal.modal-lg {
  width: min(1480px, calc(100vw - 32px));
  max-width: none;
}

#modal-addTask.open .modal-body,
#modal-editTaskDetails.open .modal-body {
  padding-inline: 34px;
}

#modal-addTask .form-row,
#modal-editTaskDetails .form-row {
  gap: 16px;
}

#modal-addTask .task-execution-plan-group,
#modal-editTaskDetails .task-execution-plan-group {
  overflow: visible;
}

#modal-addTask .task-execution-step,
#modal-editTaskDetails .task-execution-step {
  grid-template-columns: minmax(260px, 0.65fr) minmax(760px, 1.65fr);
  align-items: start;
  gap: 16px;
  padding: 16px;
}

#modal-addTask .task-execution-step-controls,
#modal-editTaskDetails .task-execution-step-controls {
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1fr) minmax(290px, 1.05fr);
  align-items: end;
}

#modal-addTask .task-duration-inline,
#modal-editTaskDetails .task-duration-inline {
  grid-template-columns: minmax(86px, 0.75fr) minmax(96px, 0.95fr);
}

#modal-addTask .task-execution-note,
#modal-editTaskDetails .task-execution-note {
  grid-column: 1 / -1;
}

#modal-addTask .task-execution-step-controls input,
#modal-addTask .task-execution-step-controls select,
#modal-editTaskDetails .task-execution-step-controls input,
#modal-editTaskDetails .task-execution-step-controls select {
  width: 100%;
  min-width: 0;
}

#modal-addTask .task-execution-step-main,
#modal-editTaskDetails .task-execution-step-main,
#modal-addTask .task-execution-step-main > div,
#modal-editTaskDetails .task-execution-step-main > div {
  min-width: 0;
}

#modal-addTask .task-execution-step-main strong,
#modal-editTaskDetails .task-execution-step-main strong {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

@media (max-width: 1320px) {
  #modal-addTask .task-execution-step,
  #modal-editTaskDetails .task-execution-step {
    grid-template-columns: 1fr;
  }

  #modal-addTask .task-execution-step-controls,
  #modal-editTaskDetails .task-execution-step-controls {
    grid-template-columns: minmax(190px, 1fr) minmax(220px, 1fr) minmax(240px, 1fr);
  }
}

@media (max-width: 980px) {
  #modal-addTask.open .modal,
  #modal-editTaskDetails.open .modal,
  #modal-addTask.open .modal.modal-lg,
  #modal-editTaskDetails.open .modal.modal-lg {
    width: calc(100vw - 12px);
    max-width: none;
  }

  #modal-addTask.open .modal-body,
  #modal-editTaskDetails.open .modal-body {
    padding-inline: 22px;
  }

  #modal-addTask .task-execution-step-controls,
  #modal-editTaskDetails .task-execution-step-controls {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  #modal-addTask .task-execution-note,
  #modal-editTaskDetails .task-execution-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  #modal-addTask.open .modal,
  #modal-editTaskDetails.open .modal,
  #modal-addTask.open .modal.modal-lg,
  #modal-editTaskDetails.open .modal.modal-lg {
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }

  #modal-addTask .task-duration-inline,
  #modal-editTaskDetails .task-duration-inline {
    grid-template-columns: 1fr 1fr;
  }

  #modal-addTask .task-execution-step-controls,
  #modal-editTaskDetails .task-execution-step-controls {
    grid-template-columns: 1fr;
  }
}

/* Sequential stage planner v8685 */
#modal-addTask.open,
#modal-editTaskDetails.open {
  padding: 10px !important;
}

#modal-addTask.open .modal,
#modal-editTaskDetails.open .modal,
#modal-addTask.open .modal.modal-lg,
#modal-editTaskDetails.open .modal.modal-lg {
  width: min(1540px, calc(100vw - 20px)) !important;
  max-width: none !important;
}

#modal-addTask .task-execution-plan,
#modal-editTaskDetails .task-execution-plan {
  gap: 14px;
}

#modal-addTask .task-execution-step,
#modal-editTaskDetails .task-execution-step {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(220px, 0.8fr) minmax(620px, 1.9fr);
  gap: 14px;
  align-items: stretch;
  width: 100%;
  padding: 16px;
  overflow: hidden;
}

#modal-addTask .task-execution-step-main,
#modal-editTaskDetails .task-execution-step-main {
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(69, 214, 255, 0.06);
  border: 1px solid rgba(69, 214, 255, 0.12);
}

#modal-addTask .task-execution-avatar,
#modal-editTaskDetails .task-execution-avatar {
  flex: 0 0 auto;
}

#modal-addTask .task-execution-member-copy,
#modal-editTaskDetails .task-execution-member-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

#modal-addTask .task-execution-member-copy em,
#modal-editTaskDetails .task-execution-member-copy em {
  color: var(--nexora-cyan);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

#modal-addTask .task-execution-schedule-summary,
#modal-editTaskDetails .task-execution-schedule-summary {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(69, 214, 255, 0.08), rgba(168, 108, 246, 0.06));
  border: 1px solid rgba(69, 214, 255, 0.16);
}

#modal-addTask .task-execution-schedule-summary span,
#modal-editTaskDetails .task-execution-schedule-summary span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.45;
}

#modal-addTask .task-execution-schedule-summary i,
#modal-editTaskDetails .task-execution-schedule-summary i {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.12);
}

#modal-addTask .task-execution-step-controls,
#modal-editTaskDetails .task-execution-step-controls {
  grid-template-columns: repeat(4, minmax(135px, 1fr));
  gap: 10px;
  align-items: end;
}

#modal-addTask .task-execution-note,
#modal-editTaskDetails .task-execution-note {
  grid-column: 1 / -1;
}

[data-theme='light'] #modal-addTask .task-execution-step-main,
[data-theme='light'] #modal-editTaskDetails .task-execution-step-main,
[data-theme='light'] #modal-addTask .task-execution-schedule-summary,
[data-theme='light'] #modal-editTaskDetails .task-execution-schedule-summary {
  background: rgba(241, 250, 255, 0.96);
  border-color: #bdeeff;
}

.task-flow-delay {
  color: #f59e0b !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
  background: rgba(245, 158, 11, 0.12) !important;
}

@media (max-width: 1260px) {
  #modal-addTask .task-execution-step,
  #modal-editTaskDetails .task-execution-step {
    grid-template-columns: minmax(230px, 0.75fr) minmax(0, 1fr);
  }

  #modal-addTask .task-execution-step-controls,
  #modal-editTaskDetails .task-execution-step-controls {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  #modal-addTask.open,
  #modal-editTaskDetails.open {
    padding: 4px !important;
  }

  #modal-addTask.open .modal,
  #modal-editTaskDetails.open .modal,
  #modal-addTask.open .modal.modal-lg,
  #modal-editTaskDetails.open .modal.modal-lg {
    width: calc(100vw - 8px) !important;
  }

  #modal-addTask.open .modal-body,
  #modal-editTaskDetails.open .modal-body {
    padding-inline: 14px;
  }

  #modal-addTask .task-execution-step,
  #modal-editTaskDetails .task-execution-step,
  #modal-addTask .task-execution-step-controls,
  #modal-editTaskDetails .task-execution-step-controls {
    grid-template-columns: 1fr;
  }
}

/* v8.68.8: Project Knowledge Hub */
#modal-projectDetail {
  padding: 18px;
}

#modal-projectDetail .project-detail-modal {
  width: min(1460px, calc(100vw - 36px));
  max-width: min(1460px, calc(100vw - 36px));
  border: 1px solid rgba(69, 214, 255, 0.22);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 0%, rgba(69, 214, 255, 0.12), transparent 32%),
    linear-gradient(135deg, var(--bg-card), color-mix(in srgb, var(--bg-card), var(--nexora-purple) 5%));
}

#modal-projectDetail .modal-header {
  padding: 22px 28px;
  border-bottom: 1px solid rgba(69, 214, 255, 0.14);
  background:
    linear-gradient(90deg, rgba(69, 214, 255, 0.08), transparent 46%),
    color-mix(in srgb, var(--bg-card), transparent 4%);
}

#modal-projectDetail .modal-body {
  padding: 24px 28px 28px;
}

#modal-projectDetail .pdl-info-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

#modal-projectDetail .pdl-section {
  border-bottom: 0;
}

#modal-projectDetail .pdl-desc,
#modal-projectDetail .detail-desc,
#modal-projectDetail .rich-content,
#modal-projectDetail .plain-content {
  overflow-wrap: anywhere;
  word-break: normal;
}

.pk-hub {
  margin: 18px 0;
  padding: 22px;
  border: 1px solid rgba(69, 214, 255, 0.22);
  border-radius: 26px;
  background:
    radial-gradient(circle at 12% 0%, rgba(69, 214, 255, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(69, 214, 255, 0.07), rgba(168, 108, 246, 0.06)),
    var(--bg-card);
  box-shadow: 0 18px 42px rgba(2, 8, 23, 0.14);
}

.pk-hub-compact {
  padding: 14px;
  border-radius: 18px;
  margin: 14px 0;
}

.pk-hub-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  margin-bottom: 14px;
}

.pk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--nexora-cyan);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}

.pk-hub h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 950;
}

.pk-hub p {
  margin: 6px 0 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.pk-score {
  min-width: 82px;
  padding: 10px 12px;
  border: 1px solid rgba(69, 214, 255, 0.24);
  border-radius: 18px;
  background: rgba(69, 214, 255, 0.09);
  text-align: center;
}

.pk-score strong {
  display: block;
  color: var(--nexora-cyan);
  font-size: 22px;
  line-height: 1;
}

.pk-score span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}

.pk-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.pk-kpi {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 9px;
  align-items: center;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--pk-color), transparent 72%);
  border-radius: 16px;
  background: color-mix(in srgb, var(--pk-color), transparent 91%);
}

.pk-kpi i {
  grid-row: span 2;
  color: var(--pk-color);
  font-size: 15px;
}

.pk-kpi strong {
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1;
}

.pk-kpi span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}

.pk-brief {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(168, 108, 246, 0.22);
  border-radius: 16px;
  background: rgba(168, 108, 246, 0.08);
}

.pk-brief strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-weight: 950;
}

.pk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 16px;
}

.pk-grid-bottom {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  margin-top: 16px;
}

.pk-panel {
  min-width: 0;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(69, 214, 255, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.055), transparent 52%),
    color-mix(in srgb, var(--bg-input), transparent 12%);
}

.pk-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 950;
}

.pk-panel-title i {
  color: var(--nexora-cyan);
}

.pk-links,
.pk-notes,
.pk-docs,
.pk-task-feed {
  display: grid;
  gap: 8px;
}

.pk-link,
.pk-note,
.pk-doc,
.pk-task-row {
  width: 100%;
  min-width: 0;
  display: grid;
  align-items: center;
  gap: 5px 12px;
  padding: 12px 14px;
  border: 1px solid rgba(69, 214, 255, 0.16);
  border-radius: 18px;
  background: var(--bg-card);
  color: var(--text-primary);
  text-align: start;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.pk-link:hover,
.pk-note:hover,
.pk-doc:hover,
.pk-task-row:hover {
  transform: translateY(-1px);
  border-color: rgba(69, 214, 255, 0.42);
  background: rgba(69, 214, 255, 0.08);
}

.pk-link {
  grid-template-columns: 38px minmax(0, 1fr);
}

.pk-link > span,
.pk-note > span,
.pk-doc > i {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--pk-color, #45d6ff), transparent 86%);
  color: var(--pk-color, #45d6ff);
}

.pk-link strong,
.pk-note strong,
.pk-doc strong,
.pk-task-row strong {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: var(--text-primary);
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.45;
}

.pk-link small,
.pk-note small,
.pk-doc small,
.pk-task-row small {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}

.pk-note,
.pk-doc {
  grid-template-columns: 38px minmax(0, 1fr);
  cursor: pointer;
}

.pk-doc span {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.pk-task-row {
  grid-template-columns: minmax(116px, 132px) minmax(0, 1fr);
  cursor: pointer;
}

.pk-task-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: 132px;
  padding: 6px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pk-color), transparent 88%);
  color: var(--pk-color);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.pk-task-row small {
  grid-column: 2;
}

.pk-empty {
  min-height: 62px;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  color: var(--text-muted);
  text-align: center;
  font-weight: 800;
}

.pk-decision-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.08);
  color: var(--text-primary);
  font-weight: 850;
}

.pk-decision-strip i {
  color: #f59e0b;
}

@media (max-width: 920px) {
  #modal-projectDetail {
    padding: 8px;
  }

  #modal-projectDetail .project-detail-modal {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    border-radius: 20px;
  }

  #modal-projectDetail .modal-header,
  #modal-projectDetail .modal-body {
    padding-inline: 16px;
  }

  .pk-hub-head,
  .pk-grid {
    grid-template-columns: 1fr;
  }

  .pk-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pk-score {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .pk-hub {
    padding: 12px;
    border-radius: 16px;
  }

  .pk-kpis,
  .pk-task-row {
    grid-template-columns: 1fr;
  }

  .pk-task-row small {
    grid-column: auto;
  }
}

/* Nexora calendar wide pure view v8715 */
#modal-nexoraCalendar.open {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  width: 100vw !important;
  height: 100vh !important;
  padding: 9px !important;
  align-items: center !important;
  justify-content: center !important;
}

#modal-nexoraCalendar.open .calendar-modal {
  width: calc(100vw - 18px) !important;
  max-width: calc(100vw - 18px) !important;
  height: calc(100vh - 18px) !important;
  max-height: calc(100vh - 18px) !important;
}

#modal-nexoraCalendar.open .calendar-shell {
  height: calc(100vh - 104px);
  max-height: calc(100vh - 104px);
  padding: 14px;
  overflow: auto;
}

#modal-nexoraCalendar.open .calendar-controls,
#modal-nexoraCalendar.open .calendar-side-panel,
#modal-nexoraCalendar.open .calendar-note {
  display: none !important;
}

#modal-nexoraCalendar.open .pure-calendar-content {
  height: 100%;
}

#modal-nexoraCalendar.open .pure-calendar-card {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: visible;
}

#modal-nexoraCalendar.open .pure-calendar-weekdays,
#modal-nexoraCalendar.open .pure-calendar-grid {
  min-width: 0 !important;
  width: 100%;
}

#modal-nexoraCalendar.open .pure-calendar-weekdays,
#modal-nexoraCalendar.open .pure-calendar-grid .calendar-week-row {
  grid-template-columns: 54px repeat(7, minmax(0, 1fr)) !important;
}

#modal-nexoraCalendar.open .pure-calendar-grid {
  overflow: visible;
}

#modal-nexoraCalendar.open .pure-calendar-grid .calendar-week-row {
  min-width: 0 !important;
  min-height: calc((100vh - 236px) / 6);
}

#modal-nexoraCalendar.open .pure-calendar-grid .calendar-day {
  min-height: calc((100vh - 236px) / 6);
}

#modal-nexoraCalendar.open .pure-calendar-nav {
  padding: 10px 16px;
}

#modal-nexoraCalendar.open .pure-calendar-nav strong {
  font-size: 34px;
}

#modal-nexoraCalendar.open .calendar-modal-header {
  min-height: 58px;
  padding: 10px 18px;
}

#modal-nexoraCalendar.open .calendar-modal-header p {
  display: none;
}

@media (max-width: 900px) {
  #modal-nexoraCalendar.open .calendar-modal {
    width: calc(100vw - 8px) !important;
    max-width: calc(100vw - 8px) !important;
    height: calc(100vh - 8px) !important;
    max-height: calc(100vh - 8px) !important;
  }

  #modal-nexoraCalendar.open .calendar-shell {
    height: calc(100vh - 86px);
    max-height: calc(100vh - 86px);
    padding: 8px;
  }

  #modal-nexoraCalendar.open .pure-calendar-weekdays,
  #modal-nexoraCalendar.open .pure-calendar-grid {
    min-width: 760px !important;
  }
}

/* Calendar stats top bar final priority v8.73.1 */
#page-calendar .nexora-calendar-page {
  gap: 12px !important;
}

#page-calendar .nexora-calendar-hero {
  padding: 10px 12px !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14) !important;
}

#page-calendar .nexora-calendar-hero-stat-card {
  display: grid !important;
  grid-template-columns: minmax(188px, 230px) minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 10px !important;
  padding: 10px !important;
  border-radius: 16px !important;
}

#page-calendar .calendar-hero-stats-head {
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  gap: 8px !important;
  padding: 0 !important;
}

#page-calendar .calendar-hero-title {
  min-height: 58px !important;
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  justify-items: start !important;
  gap: 1px 9px !important;
  padding: 9px 10px !important;
  border-radius: 14px !important;
  text-align: right !important;
}

#page-calendar .calendar-hero-title i {
  grid-row: 1 / 3 !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  font-size: 17px !important;
  box-shadow: none !important;
}

#page-calendar .calendar-hero-title span {
  font-size: 15px !important;
  line-height: 1.15 !important;
}

#page-calendar .calendar-hero-title strong {
  font-size: 13px !important;
  line-height: 1.15 !important;
}

#page-calendar .calendar-hero-stats-head .nexora-calendar-period-card {
  position: static !important;
  width: 100% !important;
  min-height: 42px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 8px 10px !important;
  transform: none !important;
  border-radius: 13px !important;
}

#page-calendar .nexora-calendar-period-card span {
  font-size: 11px !important;
  line-height: 1.2 !important;
}

#page-calendar .nexora-calendar-period-card strong {
  font-size: 13px !important;
  line-height: 1.2 !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stats-list {
  display: grid !important;
  grid-template-columns: minmax(172px, 210px) minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 10px !important;
  margin: 0 !important;
  direction: rtl !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stats-hero {
  grid-column: auto !important;
  grid-row: auto !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: 56px minmax(0, 1fr) !important;
  align-items: center !important;
  justify-items: stretch !important;
  gap: 9px !important;
  margin: 0 !important;
  padding: 9px 10px !important;
  border-radius: 14px !important;
  text-align: right !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-ring {
  width: 56px !important;
  height: 56px !important;
  margin: 0 !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-ring strong {
  font-size: 16px !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-ring span {
  font-size: 9px !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-kicker {
  margin: 0 !important;
  padding: 3px 7px !important;
  font-size: 9px !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stats-hero > div:last-child {
  align-items: flex-start !important;
  gap: 3px !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stats-hero > div:last-child > strong {
  font-size: 13px !important;
  line-height: 1.2 !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stats-hero small {
  display: none !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-grid {
  grid-column: auto !important;
  grid-row: auto !important;
  display: grid !important;
  grid-template-columns: repeat(6, minmax(78px, 1fr)) !important;
  gap: 8px !important;
  direction: rtl !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-card:nth-child(n+7) {
  display: none !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-card {
  min-height: 68px !important;
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  gap: 2px 8px !important;
  padding: 9px 10px !important;
  border-radius: 13px !important;
  text-align: right !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-card::before {
  width: 48px !important;
  height: 48px !important;
  inset: auto -12px -18px auto !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-card i {
  grid-row: 1 / 3 !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-card span {
  font-size: 10px !important;
  line-height: 1.15 !important;
  white-space: normal !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-card strong {
  font-size: 22px !important;
  line-height: 1 !important;
}

@media (max-width: 1280px) {
  #page-calendar .nexora-calendar-hero-stat-card {
    grid-template-columns: 1fr !important;
  }

  #page-calendar .calendar-hero-stats-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 220px) !important;
  }
}

@media (max-width: 980px) {
  #page-calendar .nexora-calendar-hero-stat-card .calendar-stats-list {
    grid-template-columns: 1fr !important;
  }

  #page-calendar .nexora-calendar-hero-stat-card .calendar-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  #page-calendar .calendar-hero-stats-head {
    grid-template-columns: 1fr !important;
  }

  #page-calendar .nexora-calendar-hero-stat-card .calendar-stat-grid {
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(112px, 1fr) !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    padding-bottom: 2px !important;
  }
}

/* Plain full-screen calendar v8717 */
#modal-nexoraCalendar.open {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100vw !important;
  height: 100vh !important;
  padding: 8px !important;
}

#modal-nexoraCalendar.open .calendar-only-modal {
  position: relative !important;
  width: calc(100vw - 16px) !important;
  max-width: calc(100vw - 16px) !important;
  height: calc(100vh - 16px) !important;
  max-height: calc(100vh - 16px) !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 18px !important;
}

#modal-nexoraCalendar.open .calendar-floating-close {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 80;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(69, 214, 255, 0.24);
  background: rgba(8, 21, 43, 0.88);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 18px;
}

#modal-nexoraCalendar.open .calendar-floating-close:hover {
  color: var(--text-white);
  border-color: rgba(69, 214, 255, 0.65);
}

#modal-nexoraCalendar.open .calendar-shell {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  padding: 12px !important;
  overflow: auto !important;
}

#modal-nexoraCalendar.open .pure-calendar-content {
  width: 100% !important;
  height: 100% !important;
}

#modal-nexoraCalendar.open .pure-calendar-card {
  width: 100% !important;
  height: 100% !important;
  display: grid !important;
  grid-template-rows: 60px 46px minmax(0, 1fr) !important;
  border-radius: 16px !important;
  overflow: visible !important;
}

#modal-nexoraCalendar.open .pure-calendar-nav {
  height: 60px !important;
  padding: 8px 68px 8px 18px !important;
  margin: 0 !important;
}

#modal-nexoraCalendar.open .pure-calendar-nav strong {
  font-size: 32px !important;
}

#modal-nexoraCalendar.open .pure-calendar-weekdays,
#modal-nexoraCalendar.open .pure-calendar-grid .calendar-week-row {
  display: grid !important;
  grid-template-columns: 48px repeat(7, minmax(0, 1fr)) !important;
  min-width: 0 !important;
  width: 100% !important;
}

#modal-nexoraCalendar.open .pure-calendar-weekdays {
  height: 46px !important;
}

#modal-nexoraCalendar.open .pure-calendar-grid {
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  overflow: visible !important;
}

#modal-nexoraCalendar.open .pure-calendar-grid .calendar-week-row {
  min-height: calc((100vh - 134px) / 6) !important;
}

#modal-nexoraCalendar.open .pure-calendar-grid .calendar-day {
  min-height: calc((100vh - 134px) / 6) !important;
  padding: 10px !important;
}

#modal-nexoraCalendar.open .calendar-day-tooltip {
  z-index: 2147483001 !important;
}

@media (max-width: 900px) {
  #modal-nexoraCalendar.open .pure-calendar-weekdays,
  #modal-nexoraCalendar.open .pure-calendar-grid {
    min-width: 760px !important;
  }
}

/* Calendar fit-to-window + month picker v8718 */
#modal-nexoraCalendar.open .calendar-only-modal {
  width: min(1480px, calc(100vw - 48px)) !important;
  max-width: calc(100vw - 48px) !important;
  height: min(860px, calc(100vh - 48px)) !important;
  max-height: calc(100vh - 48px) !important;
}

#modal-nexoraCalendar.open .calendar-shell {
  overflow: hidden !important;
  padding: 10px !important;
}

#modal-nexoraCalendar.open .pure-calendar-card {
  grid-template-rows: 56px 40px minmax(0, 1fr) !important;
  overflow: visible !important;
}

#modal-nexoraCalendar.open .pure-calendar-nav {
  position: relative;
  height: 56px !important;
  padding: 7px 62px 7px 14px !important;
}

#modal-nexoraCalendar.open .calendar-month-title {
  border: 0;
  background: transparent;
  color: var(--text-white);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 31px;
  font-weight: 950;
  cursor: pointer;
}

#modal-nexoraCalendar.open .calendar-month-title i {
  color: var(--nexora-cyan);
  font-size: 15px;
}

#modal-nexoraCalendar.open .pure-calendar-weekdays {
  height: 40px !important;
}

#modal-nexoraCalendar.open .pure-calendar-weekdays span {
  min-height: 40px !important;
}

#modal-nexoraCalendar.open .pure-calendar-grid {
  display: grid !important;
  grid-template-rows: repeat(6, minmax(0, 1fr)) !important;
  min-height: 0 !important;
  height: 100% !important;
}

#modal-nexoraCalendar.open .pure-calendar-grid .calendar-week-row {
  min-height: 0 !important;
  height: auto !important;
}

#modal-nexoraCalendar.open .pure-calendar-grid .calendar-day {
  min-height: 0 !important;
  height: auto !important;
  padding: 8px !important;
}

#modal-nexoraCalendar.open .calendar-day-head {
  margin-bottom: 6px;
}

#modal-nexoraCalendar.open .pure-calendar-grid .calendar-day-number {
  height: 26px;
  min-width: 26px;
  font-size: 15px;
}

#modal-nexoraCalendar.open .calendar-day-head small {
  font-size: 10px;
}

#modal-nexoraCalendar.open .calendar-day-track {
  gap: 4px;
}

#modal-nexoraCalendar.open .calendar-event-bar {
  height: 9px;
}

#modal-nexoraCalendar.open .calendar-month-picker {
  position: absolute;
  top: 52px;
  left: 50%;
  z-index: 90;
  width: min(430px, calc(100vw - 96px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(69, 214, 255, 0.28);
  background: rgba(8, 21, 43, 0.98);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.32);
}

#modal-nexoraCalendar.open .calendar-month-picker button {
  min-height: 42px;
  border-radius: 13px;
  border: 1px solid rgba(69, 214, 255, 0.18);
  background: rgba(69, 214, 255, 0.08);
  color: var(--text-secondary);
  font-family: inherit;
  font-weight: 900;
  cursor: pointer;
}

#modal-nexoraCalendar.open .calendar-month-picker button:hover,
#modal-nexoraCalendar.open .calendar-month-picker button.active {
  color: #061225;
  background: var(--nexora-grad);
  border-color: rgba(69, 214, 255, 0.7);
}

@media (max-height: 760px) {
  #modal-nexoraCalendar.open .calendar-only-modal {
    height: calc(100vh - 28px) !important;
    max-height: calc(100vh - 28px) !important;
  }

  #modal-nexoraCalendar.open .pure-calendar-card {
    grid-template-rows: 48px 34px minmax(0, 1fr) !important;
  }

  #modal-nexoraCalendar.open .pure-calendar-nav {
    height: 48px !important;
  }

  #modal-nexoraCalendar.open .calendar-month-title {
    font-size: 26px;
  }

  #modal-nexoraCalendar.open .pure-calendar-weekdays,
  #modal-nexoraCalendar.open .pure-calendar-weekdays span {
    height: 34px !important;
    min-height: 34px !important;
  }
}

/* Calendar final lock: 8717 fullscreen layout + month picker v8722 */
#modal-nexoraCalendar.open {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100vw !important;
  height: 100vh !important;
  padding: 8px !important;
}

#modal-nexoraCalendar.open .calendar-only-modal {
  position: relative !important;
  width: calc(100vw - 16px) !important;
  max-width: calc(100vw - 16px) !important;
  height: calc(100vh - 16px) !important;
  max-height: calc(100vh - 16px) !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 18px !important;
}

#modal-nexoraCalendar.open .calendar-shell {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  padding: 12px !important;
  overflow: auto !important;
}

#modal-nexoraCalendar.open .pure-calendar-content,
#modal-nexoraCalendar.open .pure-calendar-card {
  width: 100% !important;
  height: 100% !important;
}

#modal-nexoraCalendar.open .pure-calendar-card {
  display: grid !important;
  grid-template-rows: 60px 46px minmax(0, 1fr) !important;
  border-radius: 16px !important;
  overflow: visible !important;
}

#modal-nexoraCalendar.open .pure-calendar-nav {
  position: relative !important;
  height: 60px !important;
  min-height: 60px !important;
  padding: 8px 68px 8px 18px !important;
  margin: 0 !important;
}

#modal-nexoraCalendar.open .calendar-month-title,
#modal-nexoraCalendar.open .pure-calendar-nav strong {
  font-size: 32px !important;
  line-height: 1.15 !important;
}

#modal-nexoraCalendar.open .pure-calendar-weekdays,
#modal-nexoraCalendar.open .pure-calendar-grid .calendar-week-row {
  display: grid !important;
  grid-template-columns: 48px repeat(7, minmax(0, 1fr)) !important;
  min-width: 0 !important;
  width: 100% !important;
}

#modal-nexoraCalendar.open .pure-calendar-weekdays,
#modal-nexoraCalendar.open .pure-calendar-weekdays span {
  height: 46px !important;
  min-height: 46px !important;
  font-size: 14px !important;
}

#modal-nexoraCalendar.open .pure-calendar-grid {
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  overflow: visible !important;
}

#modal-nexoraCalendar.open .pure-calendar-grid .calendar-week-row {
  height: auto !important;
  min-height: calc((100vh - 134px) / 6) !important;
}

#modal-nexoraCalendar.open .pure-calendar-grid .calendar-day {
  height: auto !important;
  min-height: calc((100vh - 134px) / 6) !important;
  padding: 10px !important;
}

#modal-nexoraCalendar.open .calendar-day-head {
  margin-bottom: 10px !important;
}

#modal-nexoraCalendar.open .pure-calendar-grid .calendar-day-number {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  font-size: 19px !important;
}

#modal-nexoraCalendar.open .calendar-day-head small {
  font-size: 11px !important;
}

#modal-nexoraCalendar.open .calendar-day-track {
  gap: 6px !important;
}

#modal-nexoraCalendar.open .calendar-event-bar {
  height: 12px !important;
}

#modal-nexoraCalendar.open .calendar-day-tooltip {
  z-index: 2147483001 !important;
}

#modal-nexoraCalendar.open .calendar-month-picker {
  top: 56px !important;
  right: 50% !important;
  transform: translateX(50%) !important;
  width: min(520px, calc(100vw - 72px)) !important;
  z-index: 2147483002 !important;
}

@media (max-width: 900px) {
  #modal-nexoraCalendar.open .calendar-only-modal {
    width: calc(100vw - 8px) !important;
    max-width: calc(100vw - 8px) !important;
    height: calc(100vh - 8px) !important;
    max-height: calc(100vh - 8px) !important;
  }

  #modal-nexoraCalendar.open .pure-calendar-weekdays,
  #modal-nexoraCalendar.open .pure-calendar-grid {
    min-width: 760px !important;
  }
}

/* Calendar stats top bar final priority v8.73.1 */
#page-calendar .nexora-calendar-page {
  gap: 12px !important;
}

#page-calendar .nexora-calendar-hero {
  padding: 10px 12px !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14) !important;
}

#page-calendar .nexora-calendar-hero-stat-card {
  display: grid !important;
  grid-template-columns: minmax(188px, 230px) minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 10px !important;
  padding: 10px !important;
  border-radius: 16px !important;
}

#page-calendar .calendar-hero-stats-head {
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  gap: 8px !important;
  padding: 0 !important;
}

#page-calendar .calendar-hero-title {
  min-height: 58px !important;
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  justify-items: start !important;
  gap: 1px 9px !important;
  padding: 9px 10px !important;
  border-radius: 14px !important;
  text-align: right !important;
}

#page-calendar .calendar-hero-title i {
  grid-row: 1 / 3 !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  font-size: 17px !important;
  box-shadow: none !important;
}

#page-calendar .calendar-hero-title span {
  font-size: 15px !important;
  line-height: 1.15 !important;
}

#page-calendar .calendar-hero-title strong {
  font-size: 13px !important;
  line-height: 1.15 !important;
}

#page-calendar .calendar-hero-stats-head .nexora-calendar-period-card {
  position: static !important;
  width: 100% !important;
  min-height: 42px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 8px 10px !important;
  transform: none !important;
  border-radius: 13px !important;
}

#page-calendar .nexora-calendar-period-card span {
  font-size: 11px !important;
  line-height: 1.2 !important;
}

#page-calendar .nexora-calendar-period-card strong {
  font-size: 13px !important;
  line-height: 1.2 !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stats-list {
  display: grid !important;
  grid-template-columns: minmax(172px, 210px) minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 10px !important;
  margin: 0 !important;
  direction: rtl !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stats-hero {
  grid-column: auto !important;
  grid-row: auto !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: 56px minmax(0, 1fr) !important;
  align-items: center !important;
  justify-items: stretch !important;
  gap: 9px !important;
  margin: 0 !important;
  padding: 9px 10px !important;
  border-radius: 14px !important;
  text-align: right !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-ring {
  width: 56px !important;
  height: 56px !important;
  margin: 0 !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-ring strong {
  font-size: 16px !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-ring span {
  font-size: 9px !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-kicker {
  margin: 0 !important;
  padding: 3px 7px !important;
  font-size: 9px !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stats-hero > div:last-child {
  align-items: flex-start !important;
  gap: 3px !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stats-hero > div:last-child > strong {
  font-size: 13px !important;
  line-height: 1.2 !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stats-hero small {
  display: none !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-grid {
  grid-column: auto !important;
  grid-row: auto !important;
  display: grid !important;
  grid-template-columns: repeat(6, minmax(78px, 1fr)) !important;
  gap: 8px !important;
  direction: rtl !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-card:nth-child(n+7) {
  display: none !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-card {
  min-height: 68px !important;
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  gap: 2px 8px !important;
  padding: 9px 10px !important;
  border-radius: 13px !important;
  text-align: right !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-card::before {
  width: 48px !important;
  height: 48px !important;
  inset: auto -12px -18px auto !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-card i {
  grid-row: 1 / 3 !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-card span {
  font-size: 10px !important;
  line-height: 1.15 !important;
  white-space: normal !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-card strong {
  font-size: 22px !important;
  line-height: 1 !important;
}

@media (max-width: 1280px) {
  #page-calendar .nexora-calendar-hero-stat-card {
    grid-template-columns: 1fr !important;
  }

  #page-calendar .calendar-hero-stats-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 220px) !important;
  }
}

@media (max-width: 980px) {
  #page-calendar .nexora-calendar-hero-stat-card .calendar-stats-list {
    grid-template-columns: 1fr !important;
  }

  #page-calendar .nexora-calendar-hero-stat-card .calendar-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  #page-calendar .calendar-hero-stats-head {
    grid-template-columns: 1fr !important;
  }

  #page-calendar .nexora-calendar-hero-stat-card .calendar-stat-grid {
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(112px, 1fr) !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    padding-bottom: 2px !important;
  }
}

/* Calendar stats top bar v8.73.1 */
#page-calendar .nexora-calendar-page {
  gap: 12px !important;
}

#page-calendar .nexora-calendar-hero {
  padding: 10px 12px !important;
  border-radius: 18px !important;
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.12), rgba(168, 108, 246, 0.08)),
    rgba(7, 18, 42, 0.9) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14) !important;
}

#page-calendar .nexora-calendar-hero-stat-card {
  display: grid !important;
  grid-template-columns: minmax(188px, 230px) minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 10px !important;
  padding: 10px !important;
  border-radius: 16px !important;
  background:
    linear-gradient(180deg, rgba(13, 31, 67, 0.7), rgba(7, 18, 42, 0.82)) !important;
}

#page-calendar .calendar-hero-stats-head {
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  gap: 8px !important;
  padding: 0 !important;
}

#page-calendar .calendar-hero-title {
  min-height: 58px !important;
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  justify-items: start !important;
  column-gap: 9px !important;
  row-gap: 1px !important;
  padding: 9px 10px !important;
  border: 1px solid rgba(69, 214, 255, 0.18) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  text-align: right !important;
}

#page-calendar .calendar-hero-title i {
  grid-row: 1 / 3 !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  font-size: 17px !important;
  box-shadow: none !important;
}

#page-calendar .calendar-hero-title span {
  width: 100% !important;
  color: var(--text-white) !important;
  font-size: 15px !important;
  line-height: 1.15 !important;
}

#page-calendar .calendar-hero-title strong {
  width: 100% !important;
  color: var(--nexora-cyan) !important;
  font-size: 13px !important;
  line-height: 1.15 !important;
}

#page-calendar .calendar-hero-stats-head .nexora-calendar-period-card {
  position: static !important;
  width: 100% !important;
  min-height: 42px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 8px 10px !important;
  transform: none !important;
  border-radius: 13px !important;
}

#page-calendar .nexora-calendar-period-card span {
  font-size: 11px !important;
  line-height: 1.2 !important;
}

#page-calendar .nexora-calendar-period-card strong {
  font-size: 13px !important;
  line-height: 1.2 !important;
  text-align: left !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stats-list {
  display: grid !important;
  grid-template-columns: minmax(172px, 210px) minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 10px !important;
  margin: 0 !important;
  direction: rtl !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stats-hero {
  grid-column: auto !important;
  grid-row: auto !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: 56px minmax(0, 1fr) !important;
  align-items: center !important;
  justify-items: stretch !important;
  gap: 9px !important;
  margin: 0 !important;
  padding: 9px 10px !important;
  border-radius: 14px !important;
  text-align: right !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-ring {
  width: 56px !important;
  height: 56px !important;
  margin: 0 !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-ring strong {
  font-size: 16px !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-ring span {
  font-size: 9px !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-kicker {
  margin: 0 !important;
  padding: 3px 7px !important;
  font-size: 9px !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stats-hero > div:last-child {
  align-items: flex-start !important;
  gap: 3px !important;
  min-width: 0 !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stats-hero > div:last-child > strong {
  font-size: 13px !important;
  line-height: 1.2 !important;
  white-space: normal !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stats-hero small {
  display: none !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-grid {
  grid-column: auto !important;
  grid-row: auto !important;
  display: grid !important;
  grid-template-columns: repeat(6, minmax(78px, 1fr)) !important;
  gap: 8px !important;
  direction: rtl !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-card:nth-child(n+7) {
  display: none !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-card {
  min-height: 68px !important;
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  gap: 2px 8px !important;
  padding: 9px 10px !important;
  border-radius: 13px !important;
  text-align: right !important;
  box-shadow: inset 0 -2px 0 color-mix(in srgb, currentColor 54%, transparent) !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-card::before {
  width: 48px !important;
  height: 48px !important;
  inset: auto -12px -18px auto !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-card i {
  grid-row: 1 / 3 !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-card span {
  min-width: 0 !important;
  color: var(--text-secondary) !important;
  font-size: 10px !important;
  line-height: 1.15 !important;
  white-space: normal !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-card strong {
  font-size: 22px !important;
  line-height: 1 !important;
}

#page-calendar .nexora-calendar-controls-card {
  margin-top: 0 !important;
}

[data-theme='light'] #page-calendar .nexora-calendar-hero {
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.12), rgba(168, 108, 246, 0.08)),
    #f7fbff !important;
}

[data-theme='light'] #page-calendar .nexora-calendar-hero-stat-card,
[data-theme='light'] #page-calendar .calendar-hero-title,
[data-theme='light'] #page-calendar .calendar-stats-hero,
[data-theme='light'] #page-calendar .calendar-stat-card,
[data-theme='light'] #page-calendar .nexora-calendar-period-card {
  border-color: rgba(47, 127, 224, 0.16) !important;
  background: #ffffff !important;
  box-shadow: 0 10px 22px rgba(35, 74, 130, 0.07) !important;
}

[data-theme='light'] #page-calendar .calendar-hero-title span,
[data-theme='light'] #page-calendar .calendar-stat-card strong,
[data-theme='light'] #page-calendar .calendar-stats-hero > div:last-child > strong {
  color: #13243a !important;
}

[data-theme='light'] #page-calendar .calendar-hero-title strong {
  color: #2563eb !important;
}

@media (max-width: 1280px) {
  #page-calendar .nexora-calendar-hero-stat-card {
    grid-template-columns: 1fr !important;
  }

  #page-calendar .calendar-hero-stats-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 220px) !important;
  }
}

@media (max-width: 980px) {
  #page-calendar .nexora-calendar-hero-stat-card .calendar-stats-list {
    grid-template-columns: 1fr !important;
  }

  #page-calendar .nexora-calendar-hero-stat-card .calendar-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  #page-calendar .nexora-calendar-hero {
    padding: 8px !important;
  }

  #page-calendar .calendar-hero-stats-head {
    grid-template-columns: 1fr !important;
  }

  #page-calendar .nexora-calendar-hero-stat-card .calendar-stat-grid {
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(112px, 1fr) !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    padding-bottom: 2px !important;
  }
}

/* Calendar stats reference layout v8.72.9 */
#page-calendar .nexora-calendar-hero {
  padding: 20px 24px !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 12% 12%, rgba(69, 214, 255, 0.16), transparent 24%),
    radial-gradient(circle at 86% 8%, rgba(168, 108, 246, 0.18), transparent 26%),
    linear-gradient(145deg, rgba(7, 18, 42, 0.98), rgba(8, 14, 34, 0.96)) !important;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.18) !important;
}

#page-calendar .nexora-calendar-hero-stat-card {
  padding: 24px 26px !important;
  gap: 18px !important;
  border-radius: 20px !important;
  border-color: rgba(93, 135, 255, 0.26) !important;
  background:
    linear-gradient(180deg, rgba(16, 31, 70, 0.46), rgba(7, 17, 40, 0.74)),
    rgba(4, 13, 31, 0.9) !important;
}

#page-calendar .calendar-hero-stats-head {
  min-height: 92px !important;
  align-items: center !important;
  justify-content: center !important;
  padding-inline: 250px 20px !important;
}

#page-calendar .calendar-hero-title {
  gap: 14px !important;
}

#page-calendar .calendar-hero-title i {
  width: 52px !important;
  height: 52px !important;
  border-radius: 15px !important;
  font-size: 25px !important;
  color: var(--accent-purple) !important;
  background:
    radial-gradient(circle, rgba(168, 108, 246, 0.28), rgba(47, 127, 240, 0.08)) !important;
}

#page-calendar .calendar-hero-title span {
  color: var(--text-white) !important;
  font-size: clamp(28px, 3.2vw, 46px) !important;
  font-weight: 950 !important;
}

#page-calendar .calendar-hero-title strong {
  color: #3b8cff !important;
  font-size: clamp(24px, 2.4vw, 34px) !important;
  font-weight: 950 !important;
}

#page-calendar .calendar-hero-stats-head .nexora-calendar-period-card {
  right: 0 !important;
  top: 50% !important;
  width: 220px !important;
  min-height: 76px !important;
  padding: 14px 18px !important;
  transform: translateY(-50%) !important;
  border-radius: 16px !important;
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.10), rgba(168, 108, 246, 0.07)),
    rgba(7, 18, 42, 0.86) !important;
}

#page-calendar .nexora-calendar-period-card span {
  color: var(--nexora-cyan) !important;
  font-size: 14px !important;
}

#page-calendar .nexora-calendar-period-card strong {
  color: var(--text-white) !important;
  font-size: 22px !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stats-list {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 300px !important;
  gap: 18px !important;
  align-items: stretch !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-grid {
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stats-hero {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: flex !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 22px 20px !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 18px !important;
  text-align: center !important;
  border-radius: 20px !important;
  border-color: rgba(69, 214, 255, 0.36) !important;
  background:
    radial-gradient(circle at 50% 24%, rgba(47, 127, 240, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(15, 42, 78, 0.78), rgba(10, 20, 48, 0.88)) !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-ring {
  width: 118px !important;
  height: 118px !important;
  margin: 0 !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-ring strong {
  font-size: 28px !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-kicker {
  margin-inline: auto !important;
  color: var(--accent-purple) !important;
  background: rgba(168, 108, 246, 0.15) !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stats-hero > div:last-child {
  align-items: center !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stats-hero > div:last-child > strong {
  font-size: 23px !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stats-hero small {
  max-width: 190px !important;
  color: var(--text-secondary) !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-card {
  min-height: 128px !important;
  padding: 20px 22px !important;
  border-radius: 14px !important;
  border-color: rgba(110, 147, 255, 0.20) !important;
  background:
    radial-gradient(circle at 12% 28%, color-mix(in srgb, currentColor 24%, transparent), transparent 30%),
    linear-gradient(180deg, rgba(13, 31, 67, 0.82), rgba(7, 18, 42, 0.94)) !important;
  box-shadow:
    inset 0 -2px 0 color-mix(in srgb, currentColor 72%, transparent),
    0 18px 32px rgba(0, 0, 0, 0.12) !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-card i {
  width: 52px !important;
  height: 52px !important;
  border-radius: 999px !important;
  font-size: 21px !important;
  background: color-mix(in srgb, currentColor 18%, transparent) !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-card span {
  color: var(--text-secondary) !important;
  font-size: 17px !important;
  line-height: 1.25 !important;
}

#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-card strong {
  font-size: 42px !important;
  line-height: 1 !important;
}

@media (max-width: 1500px) {
  #page-calendar .nexora-calendar-hero-stat-card .calendar-stats-list {
    grid-template-columns: 1fr !important;
  }

  #page-calendar .nexora-calendar-hero-stat-card .calendar-stat-grid,
  #page-calendar .nexora-calendar-hero-stat-card .calendar-stats-hero {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  #page-calendar .nexora-calendar-hero-stat-card .calendar-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  #page-calendar .nexora-calendar-hero-stat-card .calendar-stats-hero {
    display: grid !important;
    grid-template-columns: 108px minmax(0, 1fr) !important;
    min-height: 116px !important;
    text-align: right !important;
    justify-items: start !important;
  }

  #page-calendar .nexora-calendar-hero-stat-card .calendar-stats-hero > div:last-child {
    align-items: flex-start !important;
  }

  #page-calendar .nexora-calendar-hero-stat-card .calendar-stats-hero small {
    max-width: 360px !important;
  }
}

@media (max-width: 900px) {
  #page-calendar .calendar-hero-stats-head {
    min-height: 0 !important;
    padding-inline: 0 !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  #page-calendar .calendar-hero-stats-head .nexora-calendar-period-card {
    position: static !important;
    width: 100% !important;
    transform: none !important;
  }

  #page-calendar .calendar-hero-title {
    align-items: flex-start !important;
  }

  #page-calendar .nexora-calendar-hero-stat-card .calendar-stat-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 620px) {
  #page-calendar .nexora-calendar-hero,
  #page-calendar .nexora-calendar-hero-stat-card {
    padding: 16px !important;
  }

  #page-calendar .nexora-calendar-hero-stat-card .calendar-stat-grid,
  #page-calendar .nexora-calendar-hero-stat-card .calendar-stats-hero {
    grid-template-columns: 1fr !important;
  }
}

/* Calendar light theme contrast fix v8.73.0 */
[data-theme='light'] #page-calendar,
[data-theme='light'] #page-calendar .nexora-calendar-page {
  color: #172033 !important;
}

[data-theme='light'] #page-calendar .nexora-calendar-hero,
[data-theme='light'] #page-calendar .nexora-calendar-controls-card,
[data-theme='light'] #page-calendar .nexora-calendar-legend,
[data-theme='light'] #page-calendar .nexora-calendar-widget,
[data-theme='light'] #page-calendar .nexora-calendar-main {
  border-color: rgba(47, 127, 224, 0.18) !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(69, 214, 255, 0.14), transparent 30%),
    linear-gradient(180deg, #ffffff, #f4f8ff) !important;
  box-shadow: 0 18px 40px rgba(27, 61, 120, 0.10) !important;
}

[data-theme='light'] #page-calendar .nexora-calendar-hero-stat-card {
  border-color: rgba(47, 127, 224, 0.18) !important;
  background:
    radial-gradient(circle at 84% 0%, rgba(168, 108, 246, 0.12), transparent 26%),
    linear-gradient(180deg, #ffffff, #f6faff) !important;
}

[data-theme='light'] #page-calendar .calendar-hero-title span,
[data-theme='light'] #page-calendar .nexora-calendar-title,
[data-theme='light'] #page-calendar .nexora-calendar-widget h2,
[data-theme='light'] #page-calendar .nexora-calendar-cell-head strong,
[data-theme='light'] #page-calendar .nexora-calendar-upcoming-item strong {
  color: #13243a !important;
}

[data-theme='light'] #page-calendar .calendar-hero-title strong {
  color: #2563eb !important;
}

[data-theme='light'] #page-calendar .calendar-hero-title i,
[data-theme='light'] #page-calendar .nexora-calendar-period-card i {
  background: linear-gradient(135deg, rgba(69, 214, 255, 0.18), rgba(168, 108, 246, 0.16)) !important;
}

[data-theme='light'] #page-calendar .nexora-calendar-period-card,
[data-theme='light'] #page-calendar .calendar-stats-hero,
[data-theme='light'] #page-calendar .calendar-stat-card,
[data-theme='light'] #page-calendar .calendar-upcoming-list > *,
[data-theme='light'] #page-calendar .nexora-calendar-empty {
  border-color: rgba(47, 127, 224, 0.16) !important;
  background: #ffffff !important;
  color: #172033 !important;
  box-shadow: 0 12px 28px rgba(35, 74, 130, 0.08) !important;
}

[data-theme='light'] #page-calendar .nexora-calendar-period-card span,
[data-theme='light'] #page-calendar .calendar-stat-card span,
[data-theme='light'] #page-calendar .calendar-stats-hero small,
[data-theme='light'] #page-calendar .nexora-calendar-cell-head small,
[data-theme='light'] #page-calendar .nexora-calendar-widget small,
[data-theme='light'] #page-calendar .nexora-calendar-upcoming-item em,
[data-theme='light'] #page-calendar .nexora-calendar-empty,
[data-theme='light'] #page-calendar .nexora-calendar-legend span {
  color: #536981 !important;
}

[data-theme='light'] #page-calendar .nexora-calendar-period-card strong,
[data-theme='light'] #page-calendar .calendar-stats-hero > div:last-child > strong {
  color: #13243a !important;
}

[data-theme='light'] #page-calendar .calendar-stat-ring {
  background:
    radial-gradient(circle at center, #ffffff 58%, transparent 60%),
    conic-gradient(var(--cal-cyan) var(--ring), rgba(47, 127, 224, 0.13) 0) !important;
}

[data-theme='light'] #page-calendar .calendar-stat-ring strong {
  color: #13243a !important;
}

[data-theme='light'] #page-calendar .nexora-calendar-country-select,
[data-theme='light'] #page-calendar .calendar-nav-btn,
[data-theme='light'] #page-calendar .calendar-today-btn,
[data-theme='light'] #page-calendar .nexora-calendar-mode-toggle button {
  border-color: rgba(47, 127, 224, 0.22) !important;
  background: #ffffff !important;
  color: #172033 !important;
}

[data-theme='light'] #page-calendar .calendar-nav-btn:hover,
[data-theme='light'] #page-calendar .calendar-today-btn:hover,
[data-theme='light'] #page-calendar .nexora-calendar-mode-toggle button:hover,
[data-theme='light'] #page-calendar .nexora-calendar-mode-toggle button.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #38bdf8, #8b5cf6) !important;
}

[data-theme='light'] #page-calendar .nexora-weekdays {
  border-color: rgba(47, 127, 224, 0.16) !important;
  background: linear-gradient(180deg, #e9f7ff, #f6fbff) !important;
}

[data-theme='light'] #page-calendar .nexora-weekdays span {
  color: #405b78 !important;
}

[data-theme='light'] #page-calendar .nexora-month-grid,
[data-theme='light'] #page-calendar .nexora-week-grid,
[data-theme='light'] #page-calendar .nexora-year-grid {
  border-color: rgba(47, 127, 224, 0.14) !important;
  background: #f7fbff !important;
}

[data-theme='light'] #page-calendar .nexora-calendar-cell {
  border-color: rgba(47, 127, 224, 0.14) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(238, 247, 255, 0.92)) !important;
}

[data-theme='light'] #page-calendar .nexora-calendar-cell:hover,
[data-theme='light'] #page-calendar .nexora-calendar-cell:focus {
  background: #ffffff !important;
  box-shadow:
    inset 0 0 0 1px rgba(69, 214, 255, 0.45),
    0 16px 34px rgba(47, 127, 224, 0.12) !important;
}

[data-theme='light'] #page-calendar .nexora-calendar-cell.muted {
  opacity: 0.54 !important;
}

[data-theme='light'] #page-calendar .nexora-calendar-task-chip {
  color: #172033 !important;
  background: #edf6ff !important;
  border-color: rgba(47, 127, 224, 0.18) !important;
}

[data-theme='light'] #page-calendar .nexora-calendar-tooltip {
  border-color: rgba(47, 127, 224, 0.38) !important;
  background: #ffffff !important;
  color: #172033 !important;
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.16) !important;
}

[data-theme='light'] #page-calendar .tooltip-date,
[data-theme='light'] #page-calendar .tooltip-section-title,
[data-theme='light'] #page-calendar .tooltip-task-row strong,
[data-theme='light'] #page-calendar .tooltip-event-row strong {
  color: #13243a !important;
}

/* ==========================================================================
   Standalone Nexora Calendar Page v8.72.5
========================================================================== */
.nexora-calendar-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--text-primary);
}

.nexora-calendar-hero,
.nexora-calendar-controls-card,
.nexora-calendar-legend,
.nexora-calendar-widget,
.nexora-calendar-main {
  border: 1px solid rgba(69, 214, 255, 0.2);
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.1), rgba(168, 108, 246, 0.06)),
    rgba(8, 20, 43, 0.82);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.nexora-calendar-hero {
  display: block;
  padding: 28px 32px;
  border-radius: 26px;
}

.nexora-calendar-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}

.nexora-calendar-kicker,
.nexora-calendar-period-card span {
  color: var(--nexora-cyan);
  font-size: 13px;
  font-weight: 800;
}

.nexora-calendar-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nexora-calendar-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.1;
  letter-spacing: 0;
}

.nexora-calendar-hero p {
  max-width: 640px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 700;
}

.nexora-calendar-period-card {
  width: 250px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 18px 22px;
  border: 1px solid rgba(69, 214, 255, 0.22);
  border-radius: 18px;
  background: rgba(7, 18, 39, 0.7);
}

.nexora-calendar-hero-stat-card {
  position: relative;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 24px;
  padding: 22px 26px 26px;
  border: 1px solid rgba(69, 214, 255, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(69, 214, 255, 0.16), transparent 38%),
    radial-gradient(circle at 90% 18%, rgba(168, 108, 246, 0.18), transparent 30%),
    rgba(7, 18, 39, 0.62);
}

.calendar-hero-stats-head {
  min-height: 112px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
}

.calendar-hero-stats-head .nexora-calendar-period-card {
  position: absolute;
  right: 0;
  top: 0;
}

.calendar-hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.calendar-hero-title i {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(168, 108, 246, 0.14);
  color: var(--accent-purple);
  font-size: 28px;
  box-shadow: 0 18px 40px rgba(168, 108, 246, 0.18);
}

.calendar-hero-title span,
.nexora-calendar-hero-stat-card > span {
  color: var(--accent-purple);
  font-size: 15px;
  font-weight: 900;
}

.calendar-hero-title strong,
.nexora-calendar-hero-stat-card > strong {
  color: var(--text-white);
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.25;
}

.nexora-calendar-hero-stat-card .calendar-stats-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: stretch;
  margin-top: 0;
  direction: ltr;
}

.nexora-calendar-hero-stat-card .calendar-stats-hero {
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  margin: 0;
  padding: 18px;
  text-align: center;
}

.nexora-calendar-hero-stat-card .calendar-stat-ring {
  width: 112px;
  height: 112px;
  margin: 6px 0;
}

.nexora-calendar-hero-stat-card .calendar-stat-ring strong {
  font-size: 28px;
}

.nexora-calendar-hero-stat-card .calendar-stat-grid {
  grid-column: 1;
  grid-row: 1;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  direction: rtl;
}

.nexora-calendar-hero-stat-card .calendar-stat-card {
  min-height: 122px;
  padding: 18px;
  gap: 9px;
  border-radius: 16px;
}

.nexora-calendar-hero-stat-card .calendar-stat-card i {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  font-size: 18px;
}

.nexora-calendar-hero-stat-card .calendar-stat-card span {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 900;
}

.nexora-calendar-hero-stat-card .calendar-stat-card strong {
  color: currentColor;
  font-size: 34px;
}

.nexora-calendar-period-card strong {
  color: var(--text-white);
  font-size: 24px;
  line-height: 1.25;
}

.nexora-calendar-controls-card {
  display: grid;
  grid-template-columns: auto 1fr minmax(220px, 280px);
  align-items: end;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
}

.nexora-calendar-nav,
.nexora-calendar-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(69, 214, 255, 0.16);
  border-radius: 16px;
  background: rgba(7, 18, 39, 0.72);
}

.nexora-calendar-controls-card .calendar-nav-btn,
.nexora-calendar-controls-card .calendar-today-btn,
.nexora-calendar-mode-toggle button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(69, 214, 255, 0.22);
  border-radius: 12px;
  background: rgba(69, 214, 255, 0.08);
  color: var(--text-primary);
  font-family: var(--font);
  font-weight: 900;
  cursor: pointer;
  transition: var(--transition);
}

.nexora-calendar-controls-card .calendar-nav-btn {
  width: 44px;
  padding: 0;
}

.nexora-calendar-controls-card button:hover,
.nexora-calendar-mode-toggle button.active {
  color: var(--text-white);
  border-color: rgba(69, 214, 255, 0.85);
  background: linear-gradient(135deg, var(--nexora-cyan), var(--accent-purple));
  box-shadow: 0 12px 30px rgba(69, 214, 255, 0.18);
}

.nexora-calendar-country-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nexora-calendar-country-wrap label {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 900;
}

.nexora-calendar-country-select {
  min-height: 54px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid rgba(69, 214, 255, 0.24);
  border-radius: 14px;
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 900;
}

.nexora-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
}

.nexora-calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 900;
}

.legend-dot,
.nexora-calendar-dots i,
.calendar-upcoming-item > i,
.tooltip-task-row i,
.tooltip-event-row i {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  display: inline-block;
}

.priority-low,
.low { background: #22c55e; }
.priority-medium,
.medium { background: #f59e0b; }
.priority-high,
.high { background: #fb923c; }
.priority-urgent,
.urgent,
.task-overdue,
.overdue { background: #ef4444; }
.event-national { background: #16a34a; }
.event-public { background: #3b82f6; }
.event-religious { background: #a855f7; }
.event-special { background: #ec4899; }

.nexora-calendar-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  direction: ltr;
}

.nexora-calendar-side,
.nexora-calendar-main {
  direction: rtl;
}

.nexora-calendar-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.nexora-calendar-widget,
.nexora-calendar-main {
  border-radius: 20px;
  padding: 16px;
}

.nexora-calendar-widget h2 {
  margin: 0 0 14px;
  color: var(--text-white);
  font-size: 18px;
  letter-spacing: 0;
}

.calendar-upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-inline-end: 2px;
}

.calendar-upcoming-item {
  width: 100%;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(69, 214, 255, 0.16);
  border-radius: 14px;
  background: rgba(15, 31, 63, 0.74);
  color: var(--text-primary);
  font-family: var(--font);
  text-align: right;
  cursor: pointer;
  transition: var(--transition);
}

.calendar-upcoming-item:hover {
  border-color: rgba(69, 214, 255, 0.55);
  transform: translateY(-1px);
}

.calendar-upcoming-item span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.calendar-upcoming-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-white);
  font-size: 13px;
}

.calendar-upcoming-item small,
.calendar-upcoming-item em {
  color: var(--text-secondary);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.calendar-stats-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.calendar-stat-card {
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(69, 214, 255, 0.16);
  border-radius: 14px;
  background: rgba(15, 31, 63, 0.74);
}

.calendar-stat-card span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 900;
}

.calendar-stat-card strong {
  color: var(--nexora-cyan);
  font-size: 28px;
  line-height: 1;
}

.calendar-stat-card.red strong { color: #ef4444; }
.calendar-stat-card.green strong { color: #22c55e; }
.calendar-stat-card.blue strong { color: #3b82f6; }
.calendar-stat-card.pink strong { color: #ec4899; }
.calendar-stat-card.purple strong { color: #a855f7; }

.nexora-calendar-root {
  min-height: 620px;
}

.nexora-weekdays,
.nexora-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  direction: rtl;
}

.nexora-weekdays {
  border: 1px solid rgba(69, 214, 255, 0.16);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.nexora-weekdays span {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 900;
  background: rgba(69, 214, 255, 0.08);
}

.nexora-month-grid {
  border-inline-start: 1px solid rgba(69, 214, 255, 0.16);
  border-top: 1px solid rgba(69, 214, 255, 0.16);
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}

.nexora-calendar-cell {
  position: relative;
  min-height: 126px;
  padding: 12px;
  border-inline-end: 1px solid rgba(69, 214, 255, 0.16);
  border-bottom: 1px solid rgba(69, 214, 255, 0.16);
  background: rgba(10, 27, 55, 0.72);
  transition: var(--transition);
  outline: none;
}

.nexora-calendar-cell:hover,
.nexora-calendar-cell:focus {
  z-index: 2;
  background: rgba(24, 50, 90, 0.92);
  box-shadow: inset 0 0 0 1px rgba(69, 214, 255, 0.65);
}

.nexora-calendar-cell.muted {
  opacity: 0.42;
}

.nexora-calendar-cell.today {
  box-shadow: inset 0 0 0 2px var(--nexora-cyan);
}

.nexora-calendar-cell-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.nexora-calendar-cell-head strong {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--text-white);
  font-size: 20px;
  line-height: 1;
}

.nexora-calendar-cell.today .nexora-calendar-cell-head strong {
  background: linear-gradient(135deg, var(--nexora-cyan), var(--accent-purple));
}

.nexora-calendar-cell-head small {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 900;
}

.nexora-calendar-dots {
  min-height: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.nexora-calendar-dots .event-national,
.tooltip-event-row.event-national i { background: #16a34a; }
.nexora-calendar-dots .event-public,
.tooltip-event-row.event-public i { background: #3b82f6; }
.nexora-calendar-dots .event-religious,
.tooltip-event-row.event-religious i { background: #a855f7; }
.nexora-calendar-dots .event-special,
.tooltip-event-row.event-special i { background: #ec4899; }

.nexora-calendar-cell-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nexora-calendar-task-chip,
.nexora-calendar-event-chip {
  min-width: 0;
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid rgba(69, 214, 255, 0.16);
  border-radius: 9px;
  background: rgba(13, 28, 58, 0.88);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 900;
}

.nexora-calendar-task-chip {
  width: 100%;
  cursor: pointer;
  text-align: right;
}

.nexora-calendar-task-chip:hover {
  border-color: rgba(69, 214, 255, 0.62);
  color: var(--text-white);
}

.nexora-calendar-task-chip i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--nexora-cyan);
}

.nexora-calendar-task-chip.low i { background: #22c55e; }
.nexora-calendar-task-chip.medium i { background: #f59e0b; }
.nexora-calendar-task-chip.high i { background: #fb923c; }
.nexora-calendar-task-chip.urgent i,
.nexora-calendar-task-chip.overdue i { background: #ef4444; }

.nexora-calendar-task-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nexora-calendar-event-chip {
  width: max-content;
  max-width: 100%;
}

.nexora-calendar-event-chip.event-national { color: #86efac; }
.nexora-calendar-event-chip.event-public { color: #93c5fd; }
.nexora-calendar-event-chip.event-religious { color: #d8b4fe; }
.nexora-calendar-event-chip.event-special { color: #f9a8d4; }

.nexora-calendar-more {
  width: max-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(69, 214, 255, 0.12);
  color: var(--nexora-cyan);
  font-size: 11px;
  font-weight: 900;
}

.nexora-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(170px, 1fr));
  gap: 12px;
  overflow-x: auto;
}

.nexora-week-day {
  min-width: 170px;
}

.nexora-week-day header {
  margin-bottom: 8px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(69, 214, 255, 0.08);
}

.nexora-week-day header strong,
.nexora-week-day header span {
  display: block;
}

.nexora-week-day header span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.nexora-day-focus {
  display: grid;
  gap: 16px;
}

.nexora-day-focus header,
.nexora-day-focus section {
  padding: 18px;
  border: 1px solid rgba(69, 214, 255, 0.16);
  border-radius: 16px;
  background: rgba(10, 27, 55, 0.68);
}

.nexora-day-focus h2,
.nexora-day-focus h3 {
  margin: 0;
  color: var(--text-white);
}

.nexora-day-focus header span {
  color: var(--nexora-cyan);
  font-weight: 900;
}

.nexora-focus-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.nexora-calendar-year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.nexora-calendar-mini-month {
  padding: 14px;
  border: 1px solid rgba(69, 214, 255, 0.16);
  border-radius: 16px;
  background: rgba(10, 27, 55, 0.68);
}

.nexora-calendar-mini-month h3 {
  margin: 0 0 12px;
  color: var(--text-white);
  font-size: 16px;
}

.nexora-mini-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.nexora-mini-month-grid span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 900;
  outline: none;
}

.nexora-mini-month-grid span.marked {
  color: var(--text-white);
  background: rgba(69, 214, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(69, 214, 255, 0.32);
}

.nexora-calendar-empty {
  padding: 14px;
  border: 1px dashed rgba(69, 214, 255, 0.22);
  border-radius: 14px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.nexora-calendar-tooltip {
  position: fixed;
  z-index: 2147482900;
  width: min(380px, calc(100vw - 24px));
  max-height: min(470px, calc(100vh - 24px));
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(69, 214, 255, 0.58);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(13, 32, 67, 0.98), rgba(24, 26, 66, 0.98));
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(168, 108, 246, 0.16);
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.nexora-calendar-tooltip.open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tooltip-date,
.tooltip-section-title,
.tooltip-task-row,
.tooltip-event-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tooltip-date {
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(69, 214, 255, 0.14);
  color: var(--text-white);
}

.tooltip-section-title {
  margin-top: 12px;
  margin-bottom: 8px;
  color: var(--nexora-cyan);
  font-size: 13px;
  font-weight: 900;
}

.tooltip-task-row {
  width: 100%;
  min-height: 34px;
  justify-content: space-between;
  margin-bottom: 7px;
  padding: 7px 9px;
  border: 1px solid rgba(69, 214, 255, 0.14);
  border-radius: 11px;
  background: rgba(6, 18, 40, 0.74);
  color: var(--text-primary);
  font-family: var(--font);
  text-align: right;
}

.tooltip-task-row span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.tooltip-task-row em,
.tooltip-event-row em {
  color: var(--text-secondary);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.tooltip-event-row {
  justify-content: space-between;
  margin-bottom: 7px;
  padding: 7px 9px;
  border-radius: 11px;
  background: rgba(6, 18, 40, 0.56);
}

.tooltip-event-row span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.tooltip-empty,
.tooltip-hint {
  display: block;
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .nexora-calendar-controls-card,
  .nexora-calendar-layout {
    grid-template-columns: 1fr;
  }

  .calendar-hero-stats-head {
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .calendar-hero-stats-head .nexora-calendar-period-card {
    position: static;
    width: 100%;
  }

  .nexora-calendar-hero-stat-card .calendar-stats-list {
    grid-template-columns: 1fr;
  }

  .nexora-calendar-hero-stat-card .calendar-stats-hero,
  .nexora-calendar-hero-stat-card .calendar-stat-grid {
    grid-column: auto;
    grid-row: auto;
  }

  .nexora-calendar-hero-stat-card .calendar-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nexora-calendar-side {
    order: 2;
  }

  .nexora-calendar-main {
    order: 1;
  }
}

@media (max-width: 760px) {
  .nexora-calendar-hero {
    flex-direction: column;
  }

  .nexora-calendar-period-card,
  .nexora-calendar-hero-stat-card {
    min-width: 0;
    width: 100%;
  }

  .nexora-calendar-hero-stat-card .calendar-stats-list,
  .nexora-calendar-hero-stat-card .calendar-stat-grid {
    grid-template-columns: 1fr;
  }

  .nexora-calendar-controls-card {
    align-items: stretch;
  }

  .nexora-calendar-nav,
  .nexora-calendar-mode-toggle {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .nexora-calendar-root {
    min-height: 0;
    overflow-x: auto;
  }

  .nexora-weekdays,
  .nexora-month-grid {
    min-width: 760px;
  }

  .nexora-calendar-cell {
    min-height: 112px;
  }
}

/* Calendar polish v8.72.6: stronger event visibility + richer stats */
.nexora-calendar-page {
  --cal-cyan: #45d6ff;
  --cal-blue: #2f7ff0;
  --cal-purple: #a86cf6;
  --cal-green: #22c55e;
  --cal-amber: #f59e0b;
  --cal-red: #ef4444;
  --cal-pink: #ec4899;
}

.nexora-calendar-hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(69, 214, 255, 0.24), transparent 30%),
    radial-gradient(circle at 88% 20%, rgba(168, 108, 246, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(8, 22, 48, 0.96), rgba(9, 15, 39, 0.92));
}

.nexora-calendar-main {
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.08), rgba(168, 108, 246, 0.05)),
    rgba(7, 18, 39, 0.9);
}

.nexora-calendar-cell {
  background:
    linear-gradient(180deg, rgba(18, 44, 80, 0.74), rgba(8, 21, 45, 0.86));
}

.nexora-calendar-cell.has-events {
  box-shadow:
    inset 0 0 0 1px rgba(168, 108, 246, 0.22),
    inset 4px 0 0 rgba(168, 108, 246, 0.55);
}

.nexora-calendar-cell.has-events::after {
  content: "\f073";
  position: absolute;
  left: 10px;
  top: 10px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(168, 108, 246, 0.16);
  color: var(--cal-purple);
  font-family: "Font Awesome 6 Free";
  font-size: 12px;
  font-weight: 900;
}

.nexora-calendar-event-chip {
  position: relative;
  min-height: 30px;
  padding-inline-start: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.nexora-calendar-event-chip::before {
  content: "\f005";
  position: absolute;
  right: 9px;
  color: currentColor;
  font-family: "Font Awesome 6 Free";
  font-size: 10px;
  font-weight: 900;
}

.nexora-calendar-event-chip.event-national {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(20, 120, 67, 0.92));
}

.nexora-calendar-event-chip.event-public {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(37, 99, 235, 0.9));
}

.nexora-calendar-event-chip.event-religious {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.95), rgba(124, 58, 237, 0.9));
}

.nexora-calendar-event-chip.event-special {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.95), rgba(190, 24, 93, 0.9));
}

.nexora-calendar-dots i {
  box-shadow: 0 0 14px currentColor;
}

.calendar-stats-list {
  display: block;
}

.calendar-stats-hero {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid rgba(69, 214, 255, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.12), rgba(168, 108, 246, 0.12)),
    rgba(9, 24, 50, 0.84);
}

.calendar-stat-ring {
  width: 88px;
  height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(8, 20, 43, 0.96) 58%, transparent 60%),
    conic-gradient(var(--cal-cyan) var(--ring), rgba(69, 214, 255, 0.13) 0);
  box-shadow: 0 16px 36px rgba(69, 214, 255, 0.12);
}

.calendar-stat-ring strong {
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.calendar-stat-ring span,
.calendar-stats-hero small {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 900;
}

.calendar-stats-hero > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.calendar-stat-kicker {
  width: max-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(69, 214, 255, 0.12);
  color: var(--cal-cyan);
  font-size: 11px;
  font-weight: 900;
}

.calendar-stats-hero > div:last-child > strong {
  color: var(--text-white);
  font-size: 16px;
}

.calendar-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.calendar-stat-card {
  position: relative;
  min-height: 92px;
  overflow: hidden;
  gap: 8px;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(145deg, rgba(15, 31, 63, 0.9), rgba(8, 20, 43, 0.78));
}

.calendar-stat-card::before {
  content: "";
  position: absolute;
  inset: auto -20px -30px auto;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.08;
}

.calendar-stat-card i {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: currentColor;
}

.calendar-stat-card.cyan { color: var(--cal-cyan); }
.calendar-stat-card.red { color: var(--cal-red); }
.calendar-stat-card.green { color: var(--cal-green); }
.calendar-stat-card.blue { color: var(--cal-blue); }
.calendar-stat-card.pink { color: var(--cal-pink); }
.calendar-stat-card.purple { color: var(--cal-purple); }

.calendar-stat-card strong {
  color: currentColor;
  font-size: 30px;
}

.nexora-calendar-tooltip {
  border-color: rgba(69, 214, 255, 0.75);
  background:
    radial-gradient(circle at 18% 12%, rgba(69, 214, 255, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(9, 28, 62, 0.98), rgba(16, 17, 50, 0.98));
}

/* Professional standalone calendar page v8.72.4 */
.task-calendar-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--text-primary);
}

.task-calendar-hero,
.task-calendar-toolbar,
.task-calendar-legend,
.task-calendar-main,
.task-calendar-side section {
  border: 1px solid rgba(69, 214, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.08), rgba(168, 108, 246, 0.05)),
    var(--bg-card);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.18);
}

.task-calendar-hero {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 18px;
  padding: 22px;
  border-radius: 18px;
}

.task-calendar-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--nexora-cyan);
  font-weight: 900;
  font-size: 13px;
}

.task-calendar-hero h2 {
  margin: 8px 0 6px;
  color: var(--text-white);
  font-size: 34px;
  letter-spacing: 0;
}

.task-calendar-hero p {
  margin: 0;
  color: var(--text-secondary);
  font-weight: 700;
}

.task-calendar-title-card {
  min-width: 260px;
  padding: 18px;
  border: 1px solid rgba(69, 214, 255, 0.2);
  border-radius: 16px;
  background: rgba(6, 18, 37, 0.58);
}

.task-calendar-title-card small {
  display: block;
  color: var(--text-muted);
  font-weight: 800;
  margin-bottom: 8px;
}

.task-calendar-title-card strong {
  color: var(--text-white);
  font-size: 22px;
}

.task-calendar-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: end;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
}

.task-calendar-country {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-muted);
  font-weight: 900;
  font-size: 12px;
}

.task-calendar-country select {
  min-height: 48px;
  border: 1px solid rgba(69, 214, 255, 0.24);
  border-radius: 13px;
  background: var(--bg-input);
  color: var(--text-white);
  font: inherit;
  font-weight: 900;
  padding: 0 14px;
}

.task-calendar-country select,
.task-calendar-country option,
.nexora-calendar-country-select,
.nexora-calendar-country-select option,
.project-country-select,
.project-country-select option {
  font-family: var(--font, "Cairo", sans-serif);
}

.nexora-calendar-country-select.is-enhanced-country-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.nexora-country-picker {
  position: relative;
  width: min(360px, 100%);
  font-family: "Cairo", sans-serif;
  z-index: 30;
}

.nexora-country-picker-trigger,
.nexora-country-picker-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 1px solid rgba(69, 214, 255, 0.28);
  background: var(--bg-input);
  color: var(--text-primary);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.nexora-country-picker-trigger {
  min-height: 58px;
  border-radius: 18px;
  padding: 0 14px;
  box-shadow: 0 14px 34px rgba(69, 214, 255, 0.08);
}

.nexora-country-picker-current,
.nexora-country-picker-option span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nexora-country-flag-img {
  width: 30px;
  height: 20px;
  flex: 0 0 30px;
  border-radius: 5px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.14), 0 5px 14px rgba(15, 23, 42, 0.12);
}

.nexora-country-picker-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline: 0;
  display: none;
  max-height: 360px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(69, 214, 255, 0.24);
  border-radius: 18px;
  background: var(--surface-primary);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.22);
  z-index: 120;
}

.nexora-country-picker.is-open .nexora-country-picker-menu {
  display: grid;
  gap: 6px;
}

.nexora-country-picker-option {
  justify-content: flex-start;
  min-height: 44px;
  border-color: transparent;
  border-radius: 12px;
  padding: 8px 12px;
  text-align: right;
  background: transparent;
}

.nexora-country-picker-option:hover,
.nexora-country-picker-option.active {
  border-color: rgba(69, 214, 255, 0.28);
  background: rgba(69, 214, 255, 0.12);
  color: var(--text-primary);
}

[data-theme='light'] .nexora-country-picker-trigger,
[data-theme='light'] .nexora-country-picker-menu {
  background: rgba(255, 255, 255, 0.98);
}

.task-calendar-modes,
.task-calendar-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(69, 214, 255, 0.16);
  border-radius: 14px;
  background: rgba(6, 18, 37, 0.5);
}

.task-calendar-modes button,
.task-calendar-nav button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-weight: 900;
  padding: 0 16px;
  cursor: pointer;
  transition: var(--transition);
}

.task-calendar-modes button:hover,
.task-calendar-nav button:hover,
.task-calendar-modes button.active {
  color: #061225;
  border-color: rgba(69, 214, 255, 0.65);
  background: var(--nexora-grad);
  box-shadow: 0 12px 26px rgba(69, 214, 255, 0.18);
}

.task-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 12px 16px;
  border-radius: 14px;
  color: var(--text-secondary);
  font-weight: 800;
}

.task-calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.dot.low { background: #22c55e; }
.dot.medium { background: #f59e0b; }
.dot.high { background: #f97316; }
.dot.urgent,
.dot.overdue { background: #f43f5e; }
.dot.national { background: #22c55e; }
.dot.public { background: #3b82f6; }
.dot.religious { background: #a855f7; }
.dot.special { background: #ec4899; }

.task-calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
}

.task-calendar-main {
  padding: 14px;
  border-radius: 18px;
  overflow: visible;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid rgba(69, 214, 255, 0.12);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
}

.calendar-weekdays span {
  padding: 13px 10px;
  background: rgba(69, 214, 255, 0.08);
  color: var(--text-secondary);
  text-align: center;
  font-weight: 900;
}

.calendar-grid.month {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-height: 650px;
  border: 1px solid rgba(69, 214, 255, 0.12);
  border-radius: 0 0 14px 14px;
  overflow: visible;
}

.calendar-grid.week {
  display: grid;
  grid-template-columns: repeat(7, minmax(170px, 1fr));
  min-height: 620px;
  overflow-x: auto;
}

.calendar-day-cell {
  position: relative;
  min-height: 112px;
  padding: 12px;
  border-left: 1px solid rgba(69, 214, 255, 0.1);
  border-bottom: 1px solid rgba(69, 214, 255, 0.1);
  background: rgba(11, 28, 55, 0.44);
  outline: none;
  transition: var(--transition);
}

.calendar-day-cell:hover,
.calendar-day-cell:focus-within,
.calendar-day-cell:focus {
  z-index: 10;
  background: rgba(69, 214, 255, 0.08);
  box-shadow: inset 0 0 0 1px var(--nexora-cyan);
}

.calendar-day-muted {
  opacity: 0.42;
}

.calendar-day-today {
  background: linear-gradient(135deg, rgba(69, 214, 255, 0.14), rgba(168, 108, 246, 0.12));
}

.calendar-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.calendar-day-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--text-white);
  font-size: 20px;
  font-weight: 900;
}

.calendar-day-today .calendar-day-number {
  background: var(--nexora-grad);
  color: #061225;
}

.calendar-day-head span:last-child {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}

.calendar-day-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 16px;
  margin-bottom: 8px;
}

.calendar-day-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calendar-task-chip,
.calendar-event-chip,
.task-calendar-side button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-primary);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 8px;
  cursor: pointer;
  text-align: right;
}

.calendar-task-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-task-chip small,
.task-calendar-side button em {
  color: var(--text-muted);
  font-size: 10px;
  font-style: normal;
}

.calendar-task-chip.low { border-right: 3px solid #22c55e; }
.calendar-task-chip.medium { border-right: 3px solid #f59e0b; }
.calendar-task-chip.high { border-right: 3px solid #f97316; }
.calendar-task-chip.urgent,
.calendar-task-chip.overdue { border-right: 3px solid #f43f5e; }

.calendar-event-chip {
  cursor: default;
  justify-content: center;
}

.calendar-event-national { color: #86efac; background: rgba(34, 197, 94, 0.12); }
.calendar-event-public { color: #93c5fd; background: rgba(59, 130, 246, 0.12); }
.calendar-event-religious { color: #d8b4fe; background: rgba(168, 85, 247, 0.14); }
.calendar-event-special { color: #f9a8d4; background: rgba(236, 72, 153, 0.14); }

.calendar-more {
  align-self: flex-start;
  color: var(--nexora-cyan);
  font-size: 11px;
  font-weight: 900;
}

.task-calendar-page .calendar-tooltip {
  position: absolute;
  right: 18px;
  top: 56px;
  z-index: 40;
  width: min(360px, calc(100vw - 48px));
  max-height: 420px;
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(69, 214, 255, 0.45);
  border-radius: 16px;
  background: rgba(8, 18, 38, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  transition: 0.18s ease;
}

.calendar-day-cell:hover .calendar-tooltip,
.calendar-day-cell:focus .calendar-tooltip,
.calendar-day-cell:focus-within .calendar-tooltip,
.calendar-mini-days span:hover .calendar-tooltip,
.calendar-mini-days span:focus .calendar-tooltip {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.calendar-tooltip-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-white);
  font-weight: 900;
  margin-bottom: 12px;
}

.calendar-tooltip-section {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid rgba(69, 214, 255, 0.12);
  margin-top: 10px;
}

.calendar-tooltip-section strong {
  color: var(--nexora-cyan);
  font-size: 12px;
}

.calendar-tooltip-section p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}

.calendar-tooltip-task {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  padding: 8px;
  text-align: right;
  cursor: pointer;
}

.calendar-tooltip-task em,
.calendar-tooltip-event em {
  color: var(--text-muted);
  font-style: normal;
  font-size: 11px;
}

.calendar-tooltip-event {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 7px;
  align-items: center;
  padding: 7px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
}

.calendar-day-focus {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.calendar-day-focus section,
.task-calendar-side section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
}

.calendar-day-focus h3,
.task-calendar-side h3 {
  margin: 0;
  color: var(--text-white);
  font-size: 17px;
}

.calendar-focus-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calendar-empty {
  padding: 16px;
  border: 1px dashed rgba(69, 214, 255, 0.22);
  border-radius: 14px;
  color: var(--text-muted);
  text-align: center;
  font-weight: 800;
}

.calendar-year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.calendar-mini-month {
  padding: 14px;
  border: 1px solid rgba(69, 214, 255, 0.14);
  border-radius: 15px;
  background: rgba(6, 18, 37, 0.44);
}

.calendar-mini-month h3 {
  margin: 0 0 12px;
  color: var(--text-white);
  font-size: 16px;
}

.calendar-mini-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-mini-days span {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 900;
  outline: none;
}

.calendar-mini-days span.marked {
  color: #061225;
  background: var(--nexora-grad);
}

.task-calendar-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 12px;
}

.task-calendar-side button {
  justify-content: flex-start;
  cursor: pointer;
}

.task-calendar-side button span {
  flex: 1;
}

.calendar-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.calendar-stat strong {
  color: var(--nexora-cyan);
  font-size: 22px;
}

.calendar-stat span {
  color: var(--text-secondary);
  font-weight: 800;
}

@media (max-width: 1100px) {
  .task-calendar-layout,
  .calendar-day-focus {
    grid-template-columns: 1fr;
  }

  .task-calendar-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .task-calendar-hero,
  .task-calendar-toolbar {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .task-calendar-toolbar {
    display: flex;
    align-items: stretch;
  }

  .task-calendar-modes,
  .task-calendar-nav {
    width: 100%;
    justify-content: space-between;
  }

  .calendar-grid.month {
    min-height: 520px;
  }

  .calendar-day-cell {
    min-height: 84px;
    padding: 8px;
  }

  .calendar-day-items {
    display: none;
  }
}

/* Calendar: restore 8717 fullscreen scale + keep month picker v8721 */
#modal-nexoraCalendar.open {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100vw !important;
  height: 100vh !important;
  padding: 8px !important;
}

#modal-nexoraCalendar.open .calendar-only-modal {
  position: relative !important;
  width: calc(100vw - 16px) !important;
  max-width: calc(100vw - 16px) !important;
  height: calc(100vh - 16px) !important;
  max-height: calc(100vh - 16px) !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 18px !important;
}

#modal-nexoraCalendar.open .calendar-shell {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  padding: 12px !important;
  overflow: auto !important;
}

#modal-nexoraCalendar.open .pure-calendar-content,
#modal-nexoraCalendar.open .pure-calendar-card {
  width: 100% !important;
  height: 100% !important;
}

#modal-nexoraCalendar.open .pure-calendar-card {
  display: grid !important;
  grid-template-rows: 60px 46px minmax(0, 1fr) !important;
  border-radius: 16px !important;
  overflow: visible !important;
}

#modal-nexoraCalendar.open .pure-calendar-nav {
  position: relative !important;
  height: 60px !important;
  min-height: 60px !important;
  padding: 8px 68px 8px 18px !important;
  margin: 0 !important;
}

#modal-nexoraCalendar.open .calendar-month-title,
#modal-nexoraCalendar.open .pure-calendar-nav strong {
  font-size: 32px !important;
  line-height: 1.15 !important;
}

#modal-nexoraCalendar.open .pure-calendar-weekdays,
#modal-nexoraCalendar.open .pure-calendar-grid .calendar-week-row {
  display: grid !important;
  grid-template-columns: 48px repeat(7, minmax(0, 1fr)) !important;
  min-width: 0 !important;
  width: 100% !important;
}

#modal-nexoraCalendar.open .pure-calendar-weekdays,
#modal-nexoraCalendar.open .pure-calendar-weekdays span {
  height: 46px !important;
  min-height: 46px !important;
  font-size: 14px !important;
}

#modal-nexoraCalendar.open .pure-calendar-grid {
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  overflow: visible !important;
}

#modal-nexoraCalendar.open .pure-calendar-grid .calendar-week-row {
  height: auto !important;
  min-height: calc((100vh - 134px) / 6) !important;
}

#modal-nexoraCalendar.open .pure-calendar-grid .calendar-day {
  height: auto !important;
  min-height: calc((100vh - 134px) / 6) !important;
  padding: 10px !important;
}

#modal-nexoraCalendar.open .calendar-day-head {
  margin-bottom: 10px !important;
}

#modal-nexoraCalendar.open .pure-calendar-grid .calendar-day-number {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  font-size: 19px !important;
}

#modal-nexoraCalendar.open .calendar-day-head small {
  font-size: 11px !important;
}

#modal-nexoraCalendar.open .calendar-day-track {
  gap: 6px !important;
}

#modal-nexoraCalendar.open .calendar-event-bar {
  height: 12px !important;
}

#modal-nexoraCalendar.open .calendar-day-tooltip {
  z-index: 2147483001 !important;
}

#modal-nexoraCalendar.open .calendar-month-picker {
  top: 56px !important;
  right: 50% !important;
  transform: translateX(50%) !important;
  width: min(520px, calc(100vw - 72px)) !important;
  z-index: 2147483002 !important;
}

@media (max-width: 900px) {
  #modal-nexoraCalendar.open .calendar-only-modal {
    width: calc(100vw - 8px) !important;
    max-width: calc(100vw - 8px) !important;
    height: calc(100vh - 8px) !important;
    max-height: calc(100vh - 8px) !important;
  }

  #modal-nexoraCalendar.open .pure-calendar-weekdays,
  #modal-nexoraCalendar.open .pure-calendar-grid {
    min-width: 760px !important;
  }
}

/* Calendar refined modal size, keep previous visual scale v8720 */
#modal-nexoraCalendar.open {
  padding: 22px !important;
}

#modal-nexoraCalendar.open .calendar-only-modal {
  width: calc(100vw - 44px) !important;
  max-width: calc(100vw - 44px) !important;
  height: calc(100vh - 44px) !important;
  max-height: calc(100vh - 44px) !important;
  overflow: hidden !important;
}

#modal-nexoraCalendar.open .calendar-shell {
  width: 100% !important;
  height: 100% !important;
  padding: 12px !important;
  overflow: hidden !important;
}

#modal-nexoraCalendar.open .pure-calendar-content {
  width: 100% !important;
  height: 100% !important;
}

#modal-nexoraCalendar.open .pure-calendar-card {
  width: 100% !important;
  height: 100% !important;
  grid-template-rows: 62px 46px minmax(0, 1fr) !important;
  overflow: visible !important;
}

#modal-nexoraCalendar.open .pure-calendar-nav {
  height: 62px !important;
  min-height: 62px !important;
  padding: 9px 70px 9px 18px !important;
}

#modal-nexoraCalendar.open .calendar-month-title,
#modal-nexoraCalendar.open .pure-calendar-nav strong {
  font-size: 34px !important;
  line-height: 1.15 !important;
}

#modal-nexoraCalendar.open .pure-calendar-weekdays,
#modal-nexoraCalendar.open .pure-calendar-weekdays span {
  height: 46px !important;
  min-height: 46px !important;
  font-size: 14px !important;
}

#modal-nexoraCalendar.open .pure-calendar-weekdays,
#modal-nexoraCalendar.open .pure-calendar-grid .calendar-week-row {
  grid-template-columns: 48px repeat(7, minmax(0, 1fr)) !important;
  min-width: 0 !important;
  width: 100% !important;
}

#modal-nexoraCalendar.open .pure-calendar-grid {
  display: grid !important;
  grid-template-rows: repeat(6, minmax(0, 1fr)) !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: visible !important;
}

#modal-nexoraCalendar.open .pure-calendar-grid .calendar-week-row {
  height: auto !important;
  min-height: 0 !important;
}

#modal-nexoraCalendar.open .pure-calendar-grid .calendar-day {
  height: auto !important;
  min-height: 0 !important;
  padding: 10px !important;
}

#modal-nexoraCalendar.open .calendar-day-head {
  margin-bottom: 10px !important;
}

#modal-nexoraCalendar.open .pure-calendar-grid .calendar-day-number {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  font-size: 19px !important;
}

#modal-nexoraCalendar.open .calendar-day-head small {
  font-size: 11px !important;
}

#modal-nexoraCalendar.open .calendar-day-track {
  gap: 6px !important;
}

#modal-nexoraCalendar.open .calendar-event-bar {
  height: 12px !important;
}

#modal-nexoraCalendar.open .calendar-month-picker {
  top: 59px !important;
}

@media (max-width: 900px) {
  #modal-nexoraCalendar.open {
    padding: 8px !important;
  }

  #modal-nexoraCalendar.open .calendar-only-modal {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    height: calc(100vh - 16px) !important;
    max-height: calc(100vh - 16px) !important;
  }
}

@media (max-width: 900px) {
  #modal-nexoraCalendar.open .calendar-only-modal {
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
  }

  #modal-nexoraCalendar.open .pure-calendar-weekdays,
  #modal-nexoraCalendar.open .pure-calendar-grid {
    min-width: 0 !important;
  }

  #modal-nexoraCalendar.open .pure-calendar-weekdays,
  #modal-nexoraCalendar.open .pure-calendar-grid .calendar-week-row {
    grid-template-columns: 34px repeat(7, minmax(0, 1fr)) !important;
  }
}

/* Calendar balanced window, original visual scale v8719 */
#modal-nexoraCalendar.open {
  padding: 28px !important;
}

#modal-nexoraCalendar.open .calendar-only-modal {
  width: min(1320px, calc(100vw - 72px)) !important;
  max-width: calc(100vw - 72px) !important;
  height: min(790px, calc(100vh - 72px)) !important;
  max-height: calc(100vh - 72px) !important;
}

#modal-nexoraCalendar.open .calendar-shell {
  padding: 12px !important;
  overflow: hidden !important;
}

#modal-nexoraCalendar.open .pure-calendar-card {
  grid-template-rows: 62px 46px minmax(0, 1fr) !important;
}

#modal-nexoraCalendar.open .pure-calendar-nav {
  height: 62px !important;
  padding: 9px 68px 9px 18px !important;
}

#modal-nexoraCalendar.open .calendar-month-title {
  font-size: 32px !important;
  line-height: 1.2;
}

#modal-nexoraCalendar.open .pure-calendar-weekdays,
#modal-nexoraCalendar.open .pure-calendar-weekdays span {
  height: 46px !important;
  min-height: 46px !important;
}

#modal-nexoraCalendar.open .pure-calendar-grid {
  display: grid !important;
  grid-template-rows: repeat(6, minmax(0, 1fr)) !important;
  min-height: 0 !important;
  overflow: visible !important;
}

#modal-nexoraCalendar.open .pure-calendar-grid .calendar-week-row {
  min-height: 0 !important;
  height: auto !important;
}

#modal-nexoraCalendar.open .pure-calendar-grid .calendar-day {
  min-height: 0 !important;
  height: auto !important;
  padding: 10px !important;
}

#modal-nexoraCalendar.open .calendar-day-head {
  margin-bottom: 10px !important;
}

#modal-nexoraCalendar.open .pure-calendar-grid .calendar-day-number {
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  font-size: 18px !important;
}

#modal-nexoraCalendar.open .calendar-day-head small {
  font-size: 11px !important;
}

#modal-nexoraCalendar.open .calendar-day-track {
  gap: 6px !important;
}

#modal-nexoraCalendar.open .calendar-event-bar {
  height: 12px !important;
}

#modal-nexoraCalendar.open .calendar-month-picker {
  top: 58px !important;
}

@media (max-height: 760px) {
  #modal-nexoraCalendar.open {
    padding: 18px !important;
  }

  #modal-nexoraCalendar.open .calendar-only-modal {
    height: calc(100vh - 36px) !important;
    max-height: calc(100vh - 36px) !important;
  }

  #modal-nexoraCalendar.open .pure-calendar-card {
    grid-template-rows: 54px 40px minmax(0, 1fr) !important;
  }

  #modal-nexoraCalendar.open .pure-calendar-nav {
    height: 54px !important;
  }

  #modal-nexoraCalendar.open .calendar-month-title {
    font-size: 29px !important;
  }

  #modal-nexoraCalendar.open .pure-calendar-weekdays,
  #modal-nexoraCalendar.open .pure-calendar-weekdays span {
    height: 40px !important;
    min-height: 40px !important;
  }
}

/* Calendar true final lock: 8717 fullscreen layout + month picker v8722 */
#modal-nexoraCalendar.open {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100vw !important;
  height: 100vh !important;
  padding: 8px !important;
}

#modal-nexoraCalendar.open .calendar-only-modal {
  position: relative !important;
  width: calc(100vw - 16px) !important;
  max-width: calc(100vw - 16px) !important;
  height: calc(100vh - 16px) !important;
  max-height: calc(100vh - 16px) !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 18px !important;
}

#modal-nexoraCalendar.open .calendar-shell {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  padding: 12px !important;
  overflow: auto !important;
}

#modal-nexoraCalendar.open .pure-calendar-content,
#modal-nexoraCalendar.open .pure-calendar-card {
  width: 100% !important;
  height: 100% !important;
}

#modal-nexoraCalendar.open .pure-calendar-card {
  display: grid !important;
  grid-template-rows: 60px 46px minmax(0, 1fr) !important;
  border-radius: 16px !important;
  overflow: visible !important;
}

#modal-nexoraCalendar.open .pure-calendar-nav {
  position: relative !important;
  height: 60px !important;
  min-height: 60px !important;
  padding: 8px 68px 8px 18px !important;
  margin: 0 !important;
}

#modal-nexoraCalendar.open .calendar-month-title,
#modal-nexoraCalendar.open .pure-calendar-nav strong {
  font-size: 32px !important;
  line-height: 1.15 !important;
}

#modal-nexoraCalendar.open .pure-calendar-weekdays,
#modal-nexoraCalendar.open .pure-calendar-grid .calendar-week-row {
  display: grid !important;
  grid-template-columns: 48px repeat(7, minmax(0, 1fr)) !important;
  min-width: 0 !important;
  width: 100% !important;
}

#modal-nexoraCalendar.open .pure-calendar-weekdays,
#modal-nexoraCalendar.open .pure-calendar-weekdays span {
  height: 46px !important;
  min-height: 46px !important;
  font-size: 14px !important;
}

#modal-nexoraCalendar.open .pure-calendar-grid {
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  overflow: visible !important;
}

#modal-nexoraCalendar.open .pure-calendar-grid .calendar-week-row {
  height: auto !important;
  min-height: calc((100vh - 134px) / 6) !important;
}

#modal-nexoraCalendar.open .pure-calendar-grid .calendar-day {
  height: auto !important;
  min-height: calc((100vh - 134px) / 6) !important;
  padding: 10px !important;
}

#modal-nexoraCalendar.open .calendar-day-head {
  margin-bottom: 10px !important;
}

#modal-nexoraCalendar.open .pure-calendar-grid .calendar-day-number {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  font-size: 19px !important;
}

#modal-nexoraCalendar.open .calendar-day-head small {
  font-size: 11px !important;
}

#modal-nexoraCalendar.open .calendar-day-track {
  gap: 6px !important;
}

#modal-nexoraCalendar.open .calendar-event-bar {
  height: 12px !important;
}

#modal-nexoraCalendar.open .calendar-day-tooltip {
  z-index: 2147483001 !important;
}

#modal-nexoraCalendar.open .calendar-month-picker {
  top: 56px !important;
  right: 50% !important;
  transform: translateX(50%) !important;
  width: min(520px, calc(100vw - 72px)) !important;
  z-index: 2147483002 !important;
}

@media (max-width: 900px) {
  #modal-nexoraCalendar.open .calendar-only-modal {
    width: calc(100vw - 8px) !important;
    max-width: calc(100vw - 8px) !important;
    height: calc(100vh - 8px) !important;
    max-height: calc(100vh - 8px) !important;
  }

  #modal-nexoraCalendar.open .pure-calendar-weekdays,
  #modal-nexoraCalendar.open .pure-calendar-grid {
    min-width: 760px !important;
  }
}

/* Country picker layer fix: keep the flag dropdown above calendar legend/grid */
#page-calendar .nexora-calendar-controls-card,
#page-calendar .nexora-calendar-country-wrap,
#page-calendar .nexora-country-picker {
  position: relative !important;
  overflow: visible !important;
}

#page-calendar .nexora-calendar-controls-card {
  z-index: 2147483100 !important;
}

#page-calendar .nexora-country-picker {
  z-index: 2147483200 !important;
}

#page-calendar .nexora-country-picker-menu {
  z-index: 2147483300 !important;
  background: #0f213a !important;
  border-color: rgba(69, 214, 255, 0.45) !important;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55) !important;
}

#page-calendar .nexora-country-picker-option {
  background: transparent !important;
}

#page-calendar .nexora-country-picker-option:hover,
#page-calendar .nexora-country-picker-option.active {
  background: rgba(69, 214, 255, 0.18) !important;
}

#page-calendar .nexora-calendar-legend,
#page-calendar .nexora-calendar-layout,
#page-calendar .nexora-calendar-main {
  position: relative !important;
  z-index: 1 !important;
}

[data-theme='light'] #page-calendar .nexora-country-picker-menu {
  background: #ffffff !important;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.26) !important;
}
/* Calendar stats top bar final priority v8.73.1 */
#page-calendar .nexora-calendar-page { gap: 12px !important; }
#page-calendar .nexora-calendar-hero {
  padding: 10px 12px !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14) !important;
}
#page-calendar .nexora-calendar-hero-stat-card {
  display: grid !important;
  grid-template-columns: minmax(188px, 230px) minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 10px !important;
  padding: 10px !important;
  border-radius: 16px !important;
}
#page-calendar .calendar-hero-stats-head {
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  gap: 8px !important;
  padding: 0 !important;
}
#page-calendar .calendar-hero-title {
  min-height: 58px !important;
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  justify-items: start !important;
  gap: 1px 9px !important;
  padding: 9px 10px !important;
  border-radius: 14px !important;
  text-align: right !important;
}
#page-calendar .calendar-hero-title i {
  grid-row: 1 / 3 !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  font-size: 17px !important;
  box-shadow: none !important;
}
#page-calendar .calendar-hero-title span { font-size: 15px !important; line-height: 1.15 !important; }
#page-calendar .calendar-hero-title strong { font-size: 13px !important; line-height: 1.15 !important; }
#page-calendar .calendar-hero-stats-head .nexora-calendar-period-card {
  position: static !important;
  width: 100% !important;
  min-height: 42px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 8px 10px !important;
  transform: none !important;
  border-radius: 13px !important;
}
#page-calendar .nexora-calendar-period-card span { font-size: 11px !important; line-height: 1.2 !important; }
#page-calendar .nexora-calendar-period-card strong { font-size: 13px !important; line-height: 1.2 !important; }
#page-calendar .nexora-calendar-hero-stat-card .calendar-stats-list {
  display: grid !important;
  grid-template-columns: minmax(172px, 210px) minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 10px !important;
  margin: 0 !important;
  direction: rtl !important;
}
#page-calendar .nexora-calendar-hero-stat-card .calendar-stats-hero {
  grid-column: auto !important;
  grid-row: auto !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: 56px minmax(0, 1fr) !important;
  align-items: center !important;
  justify-items: stretch !important;
  gap: 9px !important;
  margin: 0 !important;
  padding: 9px 10px !important;
  border-radius: 14px !important;
  text-align: right !important;
}
#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-ring {
  width: 56px !important;
  height: 56px !important;
  margin: 0 !important;
}
#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-ring strong { font-size: 16px !important; }
#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-ring span { font-size: 9px !important; }
#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-kicker {
  margin: 0 !important;
  padding: 3px 7px !important;
  font-size: 9px !important;
}
#page-calendar .nexora-calendar-hero-stat-card .calendar-stats-hero > div:last-child {
  align-items: flex-start !important;
  gap: 3px !important;
}
#page-calendar .nexora-calendar-hero-stat-card .calendar-stats-hero > div:last-child > strong {
  font-size: 13px !important;
  line-height: 1.2 !important;
}
#page-calendar .nexora-calendar-hero-stat-card .calendar-stats-hero small { display: none !important; }
#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-grid {
  grid-column: auto !important;
  grid-row: auto !important;
  display: grid !important;
  grid-template-columns: repeat(6, minmax(78px, 1fr)) !important;
  gap: 8px !important;
  direction: rtl !important;
}
#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-card:nth-child(n+7) { display: none !important; }
#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-card {
  min-height: 68px !important;
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  gap: 2px 8px !important;
  padding: 9px 10px !important;
  border-radius: 13px !important;
  text-align: right !important;
}
#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-card::before {
  width: 48px !important;
  height: 48px !important;
  inset: auto -12px -18px auto !important;
}
#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-card i {
  grid-row: 1 / 3 !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
}
#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-card span {
  font-size: 10px !important;
  line-height: 1.15 !important;
  white-space: normal !important;
}
#page-calendar .nexora-calendar-hero-stat-card .calendar-stat-card strong {
  font-size: 22px !important;
  line-height: 1 !important;
}
@media (max-width: 1280px) {
  #page-calendar .nexora-calendar-hero-stat-card { grid-template-columns: 1fr !important; }
  #page-calendar .calendar-hero-stats-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 220px) !important;
  }
}
@media (max-width: 980px) {
  #page-calendar .nexora-calendar-hero-stat-card .calendar-stats-list { grid-template-columns: 1fr !important; }
  #page-calendar .nexora-calendar-hero-stat-card .calendar-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 620px) {
  #page-calendar .calendar-hero-stats-head { grid-template-columns: 1fr !important; }
  #page-calendar .nexora-calendar-hero-stat-card .calendar-stat-grid {
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(112px, 1fr) !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    padding-bottom: 2px !important;
  }
}

/* Calendar tooltip light theme contrast fix v8.73.2 */
[data-theme='light'] .nexora-calendar-tooltip,
body[data-theme='light'] .nexora-calendar-tooltip,
html[data-theme='light'] .nexora-calendar-tooltip {
  border-color: rgba(47, 127, 224, 0.32) !important;
  background:
    radial-gradient(circle at 16% 10%, rgba(69, 214, 255, 0.13), transparent 30%),
    linear-gradient(180deg, #ffffff, #f7fbff) !important;
  color: #172033 !important;
  box-shadow:
    0 22px 54px rgba(35, 74, 130, 0.18),
    0 0 0 1px rgba(47, 127, 224, 0.08) !important;
}

[data-theme='light'] .nexora-calendar-tooltip .tooltip-date,
body[data-theme='light'] .nexora-calendar-tooltip .tooltip-date,
html[data-theme='light'] .nexora-calendar-tooltip .tooltip-date {
  border-bottom-color: rgba(47, 127, 224, 0.16) !important;
  color: #13243a !important;
}

[data-theme='light'] .nexora-calendar-tooltip .tooltip-date strong,
[data-theme='light'] .nexora-calendar-tooltip .tooltip-task-row span,
[data-theme='light'] .nexora-calendar-tooltip .tooltip-event-row span,
[data-theme='light'] .nexora-calendar-tooltip .tooltip-section-title,
body[data-theme='light'] .nexora-calendar-tooltip .tooltip-date strong,
body[data-theme='light'] .nexora-calendar-tooltip .tooltip-task-row span,
body[data-theme='light'] .nexora-calendar-tooltip .tooltip-event-row span,
body[data-theme='light'] .nexora-calendar-tooltip .tooltip-section-title,
html[data-theme='light'] .nexora-calendar-tooltip .tooltip-date strong,
html[data-theme='light'] .nexora-calendar-tooltip .tooltip-task-row span,
html[data-theme='light'] .nexora-calendar-tooltip .tooltip-event-row span,
html[data-theme='light'] .nexora-calendar-tooltip .tooltip-section-title {
  color: #13243a !important;
}

[data-theme='light'] .nexora-calendar-tooltip .tooltip-section-title,
body[data-theme='light'] .nexora-calendar-tooltip .tooltip-section-title,
html[data-theme='light'] .nexora-calendar-tooltip .tooltip-section-title {
  color: #0ea5e9 !important;
}

[data-theme='light'] .nexora-calendar-tooltip .tooltip-task-row,
[data-theme='light'] .nexora-calendar-tooltip .tooltip-event-row,
body[data-theme='light'] .nexora-calendar-tooltip .tooltip-task-row,
body[data-theme='light'] .nexora-calendar-tooltip .tooltip-event-row,
html[data-theme='light'] .nexora-calendar-tooltip .tooltip-task-row,
html[data-theme='light'] .nexora-calendar-tooltip .tooltip-event-row {
  border-color: rgba(47, 127, 224, 0.16) !important;
  background: #f4f9ff !important;
  color: #172033 !important;
}

[data-theme='light'] .nexora-calendar-tooltip .tooltip-task-row:hover,
body[data-theme='light'] .nexora-calendar-tooltip .tooltip-task-row:hover,
html[data-theme='light'] .nexora-calendar-tooltip .tooltip-task-row:hover {
  background: #eaf5ff !important;
  border-color: rgba(14, 165, 233, 0.36) !important;
}

[data-theme='light'] .nexora-calendar-tooltip .tooltip-task-row em,
[data-theme='light'] .nexora-calendar-tooltip .tooltip-event-row em,
[data-theme='light'] .nexora-calendar-tooltip .tooltip-empty,
[data-theme='light'] .nexora-calendar-tooltip .tooltip-hint,
body[data-theme='light'] .nexora-calendar-tooltip .tooltip-task-row em,
body[data-theme='light'] .nexora-calendar-tooltip .tooltip-event-row em,
body[data-theme='light'] .nexora-calendar-tooltip .tooltip-empty,
body[data-theme='light'] .nexora-calendar-tooltip .tooltip-hint,
html[data-theme='light'] .nexora-calendar-tooltip .tooltip-task-row em,
html[data-theme='light'] .nexora-calendar-tooltip .tooltip-event-row em,
html[data-theme='light'] .nexora-calendar-tooltip .tooltip-empty,
html[data-theme='light'] .nexora-calendar-tooltip .tooltip-hint {
  color: #536981 !important;
}

[data-theme='light'] .calendar-day-tooltip,
body[data-theme='light'] .calendar-day-tooltip,
html[data-theme='light'] .calendar-day-tooltip {
  border-color: rgba(47, 127, 224, 0.28) !important;
  background: #ffffff !important;
  color: #172033 !important;
  box-shadow: 0 24px 58px rgba(35, 74, 130, 0.16) !important;
}

[data-theme='light'] .calendar-day-tooltip::after,
body[data-theme='light'] .calendar-day-tooltip::after,
html[data-theme='light'] .calendar-day-tooltip::after {
  background: #ffffff !important;
  border-color: rgba(47, 127, 224, 0.28) !important;
}

[data-theme='light'] .calendar-day-tooltip > strong,
[data-theme='light'] .calendar-tooltip-event b,
body[data-theme='light'] .calendar-day-tooltip > strong,
body[data-theme='light'] .calendar-tooltip-event b,
html[data-theme='light'] .calendar-day-tooltip > strong,
html[data-theme='light'] .calendar-tooltip-event b {
  color: #13243a !important;
}

[data-theme='light'] .calendar-tooltip-event,
body[data-theme='light'] .calendar-tooltip-event,
html[data-theme='light'] .calendar-tooltip-event {
  background: #f4f9ff !important;
  border: 1px solid rgba(47, 127, 224, 0.14) !important;
}

[data-theme='light'] .calendar-tooltip-event small,
[data-theme='light'] .calendar-tooltip-event em,
[data-theme='light'] .calendar-day-tooltip.empty em,
body[data-theme='light'] .calendar-tooltip-event small,
body[data-theme='light'] .calendar-tooltip-event em,
body[data-theme='light'] .calendar-day-tooltip.empty em,
html[data-theme='light'] .calendar-tooltip-event small,
html[data-theme='light'] .calendar-tooltip-event em,
html[data-theme='light'] .calendar-day-tooltip.empty em {
  color: #536981 !important;
}

/* Task detail modal hard guard v8.73.6 */
#modal-taskDetail.open .modal {
  background: var(--surface) !important;
}

#modal-taskDetail.open .modal-header,
#modal-taskDetail.open .modal-footer {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#modal-taskDetail.open #taskDetailBody {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: var(--text-primary) !important;
}

/* Task detail modal scroll/blur stabilization v8.73.8 */
#modal-taskDetail:not(.open) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#modal-taskDetail.open {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

#modal-taskDetail.open .modal {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  max-height: min(92dvh, 860px) !important;
}

#modal-taskDetail.open .modal-header,
#modal-taskDetail.open .modal-footer {
  flex: 0 0 auto !important;
}

#modal-taskDetail.open #taskDetailBody {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* Task detail modal solid theme polish v8.73.9 */
#modal-taskDetail.open .modal {
  background: #111b2f !important;
  color: #e8eefb !important;
}

#modal-taskDetail.open .modal-header,
#modal-taskDetail.open .modal-footer {
  background: #111b2f !important;
  color: #e8eefb !important;
  border-color: rgba(71, 96, 132, 0.22) !important;
}

#modal-taskDetail.open #taskDetailBody {
  background: #111b2f !important;
  color: #e8eefb !important;
}

#modal-taskDetail.open .detail-item,
#modal-taskDetail.open .comments-section,
#modal-taskDetail.open .comments-list,
#modal-taskDetail.open .comment-input-box,
#modal-taskDetail.open .task-milestones-panel,
#modal-taskDetail.open .task-lifecycle-panel,
#modal-taskDetail.open .delivery-links-panel,
#modal-taskDetail.open .extension-panel {
  background: #17233a !important;
  border-color: rgba(110, 142, 188, 0.2) !important;
  color: #e8eefb !important;
}

#modal-taskDetail.open input,
#modal-taskDetail.open select,
#modal-taskDetail.open textarea {
  background: #17233a !important;
  color: #e8eefb !important;
  border-color: rgba(120, 152, 196, 0.42) !important;
}

#modal-taskDetail.open .comment-input-box textarea,
#modal-taskDetail.open .delivery-submit-note textarea {
  background: #17233a !important;
  color: #e8eefb !important;
}

[data-theme='light'] #modal-taskDetail.open .modal,
body[data-theme='light'] #modal-taskDetail.open .modal,
html[data-theme='light'] #modal-taskDetail.open .modal,
[data-theme='light'] #modal-taskDetail.open #taskDetailBody,
body[data-theme='light'] #modal-taskDetail.open #taskDetailBody,
html[data-theme='light'] #modal-taskDetail.open #taskDetailBody {
  background: #ffffff !important;
  color: #1e293b !important;
}

[data-theme='light'] #modal-taskDetail.open .modal-header,
[data-theme='light'] #modal-taskDetail.open .modal-footer,
body[data-theme='light'] #modal-taskDetail.open .modal-header,
body[data-theme='light'] #modal-taskDetail.open .modal-footer,
html[data-theme='light'] #modal-taskDetail.open .modal-header,
html[data-theme='light'] #modal-taskDetail.open .modal-footer {
  background: #ffffff !important;
  color: #1e293b !important;
  border-color: rgba(47, 127, 224, 0.18) !important;
}

[data-theme='light'] #modal-taskDetail.open .detail-item,
[data-theme='light'] #modal-taskDetail.open .comments-section,
[data-theme='light'] #modal-taskDetail.open .comments-list,
[data-theme='light'] #modal-taskDetail.open .comment-input-box,
[data-theme='light'] #modal-taskDetail.open .task-milestones-panel,
[data-theme='light'] #modal-taskDetail.open .task-lifecycle-panel,
[data-theme='light'] #modal-taskDetail.open .delivery-links-panel,
[data-theme='light'] #modal-taskDetail.open .extension-panel,
body[data-theme='light'] #modal-taskDetail.open .detail-item,
body[data-theme='light'] #modal-taskDetail.open .comments-section,
body[data-theme='light'] #modal-taskDetail.open .comments-list,
body[data-theme='light'] #modal-taskDetail.open .comment-input-box,
body[data-theme='light'] #modal-taskDetail.open .task-milestones-panel,
body[data-theme='light'] #modal-taskDetail.open .task-lifecycle-panel,
body[data-theme='light'] #modal-taskDetail.open .delivery-links-panel,
body[data-theme='light'] #modal-taskDetail.open .extension-panel,
html[data-theme='light'] #modal-taskDetail.open .detail-item,
html[data-theme='light'] #modal-taskDetail.open .comments-section,
html[data-theme='light'] #modal-taskDetail.open .comments-list,
html[data-theme='light'] #modal-taskDetail.open .comment-input-box,
html[data-theme='light'] #modal-taskDetail.open .task-milestones-panel,
html[data-theme='light'] #modal-taskDetail.open .task-lifecycle-panel,
html[data-theme='light'] #modal-taskDetail.open .delivery-links-panel,
html[data-theme='light'] #modal-taskDetail.open .extension-panel {
  background: #f7fbff !important;
  border-color: rgba(47, 127, 224, 0.14) !important;
  color: #1e293b !important;
}

/* Global modal theme redesign v8.74.0 */
.modal-overlay.open {
  background: rgba(5, 12, 27, 0.74) !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
}

.modal-overlay.open .modal {
  background: #101a2e !important;
  color: #e8eefb !important;
  border: 1px solid rgba(104, 136, 184, 0.28) !important;
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.42) !important;
}

.modal-overlay.open .modal-header,
.modal-overlay.open .modal-footer {
  background: #101a2e !important;
  color: #e8eefb !important;
  border-color: rgba(104, 136, 184, 0.24) !important;
}

.modal-overlay.open .modal-body {
  background: #101a2e !important;
  color: #e8eefb !important;
}

.modal-overlay.open .detail-item,
.modal-overlay.open .comments-section,
.modal-overlay.open .comments-list,
.modal-overlay.open .comment-input-box,
.modal-overlay.open .delivery-links-panel,
.modal-overlay.open .review-delivery-links-box,
.modal-overlay.open .dl-row,
.modal-overlay.open .dl-card,
.modal-overlay.open .task-milestones-panel,
.modal-overlay.open .task-lifecycle-panel,
.modal-overlay.open .extension-panel,
.modal-overlay.open .task-execution-plan-group,
.modal-overlay.open .task-execution-step,
.modal-overlay.open .form-section,
.modal-overlay.open .note-editor-section,
.modal-overlay.open .credential-row {
  background: #17243b !important;
  color: #e8eefb !important;
  border-color: rgba(104, 136, 184, 0.22) !important;
}

.modal-overlay.open input:not([type='checkbox']):not([type='radio']):not([type='range']),
.modal-overlay.open select,
.modal-overlay.open textarea,
.modal-overlay.open .form-input,
.modal-overlay.open .ql-container,
.modal-overlay.open .ql-toolbar {
  background: #142137 !important;
  color: #e8eefb !important;
  border-color: rgba(122, 154, 202, 0.36) !important;
}

.modal-overlay.open input::placeholder,
.modal-overlay.open textarea::placeholder {
  color: rgba(205, 216, 238, 0.58) !important;
}

.modal-overlay.open label,
.modal-overlay.open small,
.modal-overlay.open .text-muted,
.modal-overlay.open .delivery-required-note,
.modal-overlay.open .comment-input-actions span {
  color: #9fb0cc !important;
}

.modal-overlay.open strong,
.modal-overlay.open h3,
.modal-overlay.open h4,
.modal-overlay.open .detail-item p,
.modal-overlay.open .dl-card-main strong {
  color: #e8eefb !important;
}

[data-theme='light'] .modal-overlay.open,
body[data-theme='light'] .modal-overlay.open,
html[data-theme='light'] .modal-overlay.open {
  background: rgba(15, 23, 42, 0.2) !important;
  backdrop-filter: blur(3px) !important;
  -webkit-backdrop-filter: blur(3px) !important;
}

[data-theme='light'] .modal-overlay.open .modal,
body[data-theme='light'] .modal-overlay.open .modal,
html[data-theme='light'] .modal-overlay.open .modal {
  background: #ffffff !important;
  color: #1e293b !important;
  border-color: rgba(47, 127, 224, 0.18) !important;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18) !important;
}

[data-theme='light'] .modal-overlay.open .modal-header,
[data-theme='light'] .modal-overlay.open .modal-footer,
[data-theme='light'] .modal-overlay.open .modal-body,
body[data-theme='light'] .modal-overlay.open .modal-header,
body[data-theme='light'] .modal-overlay.open .modal-footer,
body[data-theme='light'] .modal-overlay.open .modal-body,
html[data-theme='light'] .modal-overlay.open .modal-header,
html[data-theme='light'] .modal-overlay.open .modal-footer,
html[data-theme='light'] .modal-overlay.open .modal-body {
  background: #ffffff !important;
  color: #1e293b !important;
  border-color: rgba(47, 127, 224, 0.16) !important;
}

[data-theme='light'] .modal-overlay.open .detail-item,
[data-theme='light'] .modal-overlay.open .comments-section,
[data-theme='light'] .modal-overlay.open .comments-list,
[data-theme='light'] .modal-overlay.open .comment-input-box,
[data-theme='light'] .modal-overlay.open .delivery-links-panel,
[data-theme='light'] .modal-overlay.open .review-delivery-links-box,
[data-theme='light'] .modal-overlay.open .dl-row,
[data-theme='light'] .modal-overlay.open .dl-card,
[data-theme='light'] .modal-overlay.open .task-milestones-panel,
[data-theme='light'] .modal-overlay.open .task-lifecycle-panel,
[data-theme='light'] .modal-overlay.open .extension-panel,
[data-theme='light'] .modal-overlay.open .task-execution-plan-group,
[data-theme='light'] .modal-overlay.open .task-execution-step,
[data-theme='light'] .modal-overlay.open .form-section,
[data-theme='light'] .modal-overlay.open .note-editor-section,
[data-theme='light'] .modal-overlay.open .credential-row,
body[data-theme='light'] .modal-overlay.open .detail-item,
body[data-theme='light'] .modal-overlay.open .comments-section,
body[data-theme='light'] .modal-overlay.open .comments-list,
body[data-theme='light'] .modal-overlay.open .comment-input-box,
body[data-theme='light'] .modal-overlay.open .delivery-links-panel,
body[data-theme='light'] .modal-overlay.open .review-delivery-links-box,
body[data-theme='light'] .modal-overlay.open .dl-row,
body[data-theme='light'] .modal-overlay.open .dl-card,
body[data-theme='light'] .modal-overlay.open .task-milestones-panel,
body[data-theme='light'] .modal-overlay.open .task-lifecycle-panel,
body[data-theme='light'] .modal-overlay.open .extension-panel,
body[data-theme='light'] .modal-overlay.open .task-execution-plan-group,
body[data-theme='light'] .modal-overlay.open .task-execution-step,
body[data-theme='light'] .modal-overlay.open .form-section,
body[data-theme='light'] .modal-overlay.open .note-editor-section,
body[data-theme='light'] .modal-overlay.open .credential-row,
html[data-theme='light'] .modal-overlay.open .detail-item,
html[data-theme='light'] .modal-overlay.open .comments-section,
html[data-theme='light'] .modal-overlay.open .comments-list,
html[data-theme='light'] .modal-overlay.open .comment-input-box,
html[data-theme='light'] .modal-overlay.open .delivery-links-panel,
html[data-theme='light'] .modal-overlay.open .review-delivery-links-box,
html[data-theme='light'] .modal-overlay.open .dl-row,
html[data-theme='light'] .modal-overlay.open .dl-card,
html[data-theme='light'] .modal-overlay.open .task-milestones-panel,
html[data-theme='light'] .modal-overlay.open .task-lifecycle-panel,
html[data-theme='light'] .modal-overlay.open .extension-panel,
html[data-theme='light'] .modal-overlay.open .task-execution-plan-group,
html[data-theme='light'] .modal-overlay.open .task-execution-step,
html[data-theme='light'] .modal-overlay.open .form-section,
html[data-theme='light'] .modal-overlay.open .note-editor-section,
html[data-theme='light'] .modal-overlay.open .credential-row {
  background: #f7fbff !important;
  color: #1e293b !important;
  border-color: rgba(47, 127, 224, 0.14) !important;
}

[data-theme='light'] .modal-overlay.open input:not([type='checkbox']):not([type='radio']):not([type='range']),
[data-theme='light'] .modal-overlay.open select,
[data-theme='light'] .modal-overlay.open textarea,
[data-theme='light'] .modal-overlay.open .form-input,
[data-theme='light'] .modal-overlay.open .ql-container,
[data-theme='light'] .modal-overlay.open .ql-toolbar,
body[data-theme='light'] .modal-overlay.open input:not([type='checkbox']):not([type='radio']):not([type='range']),
body[data-theme='light'] .modal-overlay.open select,
body[data-theme='light'] .modal-overlay.open textarea,
body[data-theme='light'] .modal-overlay.open .form-input,
body[data-theme='light'] .modal-overlay.open .ql-container,
body[data-theme='light'] .modal-overlay.open .ql-toolbar,
html[data-theme='light'] .modal-overlay.open input:not([type='checkbox']):not([type='radio']):not([type='range']),
html[data-theme='light'] .modal-overlay.open select,
html[data-theme='light'] .modal-overlay.open textarea,
html[data-theme='light'] .modal-overlay.open .form-input,
html[data-theme='light'] .modal-overlay.open .ql-container,
html[data-theme='light'] .modal-overlay.open .ql-toolbar {
  background: #ffffff !important;
  color: #1e293b !important;
  border-color: rgba(47, 127, 224, 0.24) !important;
}

[data-theme='light'] .modal-overlay.open input::placeholder,
[data-theme='light'] .modal-overlay.open textarea::placeholder,
body[data-theme='light'] .modal-overlay.open input::placeholder,
body[data-theme='light'] .modal-overlay.open textarea::placeholder,
html[data-theme='light'] .modal-overlay.open input::placeholder,
html[data-theme='light'] .modal-overlay.open textarea::placeholder {
  color: #7b8aa6 !important;
}

[data-theme='light'] .modal-overlay.open label,
[data-theme='light'] .modal-overlay.open small,
[data-theme='light'] .modal-overlay.open .text-muted,
[data-theme='light'] .modal-overlay.open .delivery-required-note,
[data-theme='light'] .modal-overlay.open .comment-input-actions span,
body[data-theme='light'] .modal-overlay.open label,
body[data-theme='light'] .modal-overlay.open small,
body[data-theme='light'] .modal-overlay.open .text-muted,
body[data-theme='light'] .modal-overlay.open .delivery-required-note,
body[data-theme='light'] .modal-overlay.open .comment-input-actions span,
html[data-theme='light'] .modal-overlay.open label,
html[data-theme='light'] .modal-overlay.open small,
html[data-theme='light'] .modal-overlay.open .text-muted,
html[data-theme='light'] .modal-overlay.open .delivery-required-note,
html[data-theme='light'] .modal-overlay.open .comment-input-actions span {
  color: #63748d !important;
}

[data-theme='light'] .modal-overlay.open strong,
[data-theme='light'] .modal-overlay.open h3,
[data-theme='light'] .modal-overlay.open h4,
[data-theme='light'] .modal-overlay.open .detail-item p,
[data-theme='light'] .modal-overlay.open .dl-card-main strong,
body[data-theme='light'] .modal-overlay.open strong,
body[data-theme='light'] .modal-overlay.open h3,
body[data-theme='light'] .modal-overlay.open h4,
body[data-theme='light'] .modal-overlay.open .detail-item p,
body[data-theme='light'] .modal-overlay.open .dl-card-main strong,
html[data-theme='light'] .modal-overlay.open strong,
html[data-theme='light'] .modal-overlay.open h3,
html[data-theme='light'] .modal-overlay.open h4,
html[data-theme='light'] .modal-overlay.open .detail-item p,
html[data-theme='light'] .modal-overlay.open .dl-card-main strong {
  color: #1e293b !important;
}

/* Task detail modal light specificity fix v8.74.0 */
[data-theme='light'] #modal-taskDetail.open input:not([type='checkbox']):not([type='radio']):not([type='range']),
[data-theme='light'] #modal-taskDetail.open select,
[data-theme='light'] #modal-taskDetail.open textarea,
[data-theme='light'] #modal-taskDetail.open .form-input,
[data-theme='light'] #modal-taskDetail.open .comment-input-box textarea,
[data-theme='light'] #modal-taskDetail.open .delivery-submit-note textarea,
[data-theme='light'] #modal-taskDetail.open .dl-row input,
body[data-theme='light'] #modal-taskDetail.open input:not([type='checkbox']):not([type='radio']):not([type='range']),
body[data-theme='light'] #modal-taskDetail.open select,
body[data-theme='light'] #modal-taskDetail.open textarea,
body[data-theme='light'] #modal-taskDetail.open .form-input,
body[data-theme='light'] #modal-taskDetail.open .comment-input-box textarea,
body[data-theme='light'] #modal-taskDetail.open .delivery-submit-note textarea,
body[data-theme='light'] #modal-taskDetail.open .dl-row input,
html[data-theme='light'] #modal-taskDetail.open input:not([type='checkbox']):not([type='radio']):not([type='range']),
html[data-theme='light'] #modal-taskDetail.open select,
html[data-theme='light'] #modal-taskDetail.open textarea,
html[data-theme='light'] #modal-taskDetail.open .form-input,
html[data-theme='light'] #modal-taskDetail.open .comment-input-box textarea,
html[data-theme='light'] #modal-taskDetail.open .delivery-submit-note textarea,
html[data-theme='light'] #modal-taskDetail.open .dl-row input {
  background: #ffffff !important;
  color: #1e293b !important;
  border-color: rgba(47, 127, 224, 0.24) !important;
  box-shadow: inset 0 0 0 1px rgba(47, 127, 224, 0.04) !important;
}

[data-theme='light'] #modal-taskDetail.open input::placeholder,
[data-theme='light'] #modal-taskDetail.open textarea::placeholder,
body[data-theme='light'] #modal-taskDetail.open input::placeholder,
body[data-theme='light'] #modal-taskDetail.open textarea::placeholder,
html[data-theme='light'] #modal-taskDetail.open input::placeholder,
html[data-theme='light'] #modal-taskDetail.open textarea::placeholder {
  color: #8291aa !important;
}

[data-theme='light'] #modal-taskDetail.open .delivery-submit-note,
[data-theme='light'] #modal-taskDetail.open .comment-input-box,
[data-theme='light'] #modal-taskDetail.open .comments-section,
[data-theme='light'] #modal-taskDetail.open .comments-list,
[data-theme='light'] #modal-taskDetail.open .delivery-links-panel,
[data-theme='light'] #modal-taskDetail.open .review-delivery-links-box,
[data-theme='light'] #modal-taskDetail.open .dl-row,
[data-theme='light'] #modal-taskDetail.open .dl-card,
[data-theme='light'] #modal-taskDetail.open .task-lifecycle-panel,
[data-theme='light'] #modal-taskDetail.open .submission-readiness,
body[data-theme='light'] #modal-taskDetail.open .delivery-submit-note,
body[data-theme='light'] #modal-taskDetail.open .comment-input-box,
body[data-theme='light'] #modal-taskDetail.open .comments-section,
body[data-theme='light'] #modal-taskDetail.open .comments-list,
body[data-theme='light'] #modal-taskDetail.open .delivery-links-panel,
body[data-theme='light'] #modal-taskDetail.open .review-delivery-links-box,
body[data-theme='light'] #modal-taskDetail.open .dl-row,
body[data-theme='light'] #modal-taskDetail.open .dl-card,
body[data-theme='light'] #modal-taskDetail.open .task-lifecycle-panel,
body[data-theme='light'] #modal-taskDetail.open .submission-readiness,
html[data-theme='light'] #modal-taskDetail.open .delivery-submit-note,
html[data-theme='light'] #modal-taskDetail.open .comment-input-box,
html[data-theme='light'] #modal-taskDetail.open .comments-section,
html[data-theme='light'] #modal-taskDetail.open .comments-list,
html[data-theme='light'] #modal-taskDetail.open .delivery-links-panel,
html[data-theme='light'] #modal-taskDetail.open .review-delivery-links-box,
html[data-theme='light'] #modal-taskDetail.open .dl-row,
html[data-theme='light'] #modal-taskDetail.open .dl-card,
html[data-theme='light'] #modal-taskDetail.open .task-lifecycle-panel,
html[data-theme='light'] #modal-taskDetail.open .submission-readiness {
  background: #f8fbff !important;
  color: #1e293b !important;
  border-color: rgba(47, 127, 224, 0.16) !important;
}

[data-theme='light'] #modal-taskDetail.open .delivery-submit-note h4,
[data-theme='light'] #modal-taskDetail.open .delivery-submit-note strong,
[data-theme='light'] #modal-taskDetail.open .comments-section h4,
[data-theme='light'] #modal-taskDetail.open .comments-section strong,
[data-theme='light'] #modal-taskDetail.open .comment-input-box strong,
[data-theme='light'] #modal-taskDetail.open .comment-input-actions span,
[data-theme='light'] #modal-taskDetail.open .dl-row input,
[data-theme='light'] #modal-taskDetail.open .dl-card-main strong,
body[data-theme='light'] #modal-taskDetail.open .delivery-submit-note h4,
body[data-theme='light'] #modal-taskDetail.open .delivery-submit-note strong,
body[data-theme='light'] #modal-taskDetail.open .comments-section h4,
body[data-theme='light'] #modal-taskDetail.open .comments-section strong,
body[data-theme='light'] #modal-taskDetail.open .comment-input-box strong,
body[data-theme='light'] #modal-taskDetail.open .comment-input-actions span,
body[data-theme='light'] #modal-taskDetail.open .dl-row input,
body[data-theme='light'] #modal-taskDetail.open .dl-card-main strong,
html[data-theme='light'] #modal-taskDetail.open .delivery-submit-note h4,
html[data-theme='light'] #modal-taskDetail.open .delivery-submit-note strong,
html[data-theme='light'] #modal-taskDetail.open .comments-section h4,
html[data-theme='light'] #modal-taskDetail.open .comments-section strong,
html[data-theme='light'] #modal-taskDetail.open .comment-input-box strong,
html[data-theme='light'] #modal-taskDetail.open .comment-input-actions span,
html[data-theme='light'] #modal-taskDetail.open .dl-row input,
html[data-theme='light'] #modal-taskDetail.open .dl-card-main strong {
  color: #1e293b !important;
}

/* Project timeline critical path cascade v8.74.1 */
.ptl-check.is-critical-path {
  border-color: rgba(244, 63, 94, 0.35);
  background: rgba(244, 63, 94, 0.08);
}

.ptl-critical-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-radius: 14px;
  background: rgba(244, 63, 94, 0.08);
  color: var(--text-secondary);
  line-height: 1.8;
}

.ptl-critical-hint i {
  color: #fb7185;
  margin-top: 4px;
}

.ptl-badge.critical-path,
.ptl-badge.danger {
  color: #fecdd3;
  border-color: rgba(244, 63, 94, 0.35);
  background: rgba(244, 63, 94, 0.14);
}

.ptl-badge.locked {
  color: #dbeafe;
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(96, 165, 250, 0.12);
}

.timeline-row-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.timeline-bar.is-critical {
  border-color: rgba(244, 63, 94, 0.75);
  box-shadow:
    0 0 0 1px rgba(244, 63, 94, 0.25),
    0 14px 30px rgba(244, 63, 94, 0.16);
}

.timeline-bar.is-critical::after {
  content: "مسار حرج";
  position: absolute;
  inset-inline-start: 10px;
  top: -22px;
  font-size: 11px;
  color: #fecdd3;
  background: rgba(244, 63, 94, 0.16);
  border: 1px solid rgba(244, 63, 94, 0.28);
  border-radius: 999px;
  padding: 2px 8px;
  pointer-events: none;
}

.gantt-tooltip-critical,
.gantt-tooltip-shift {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(244, 63, 94, 0.10);
  border: 1px solid rgba(244, 63, 94, 0.24);
  color: #fecdd3;
  line-height: 1.7;
}

.gantt-tooltip-critical i,
.gantt-tooltip-shift i {
  color: #fb7185;
  margin-top: 4px;
}

[data-theme='light'] .ptl-check.is-critical-path {
  background: rgba(244, 63, 94, 0.07);
  border-color: rgba(244, 63, 94, 0.28);
}

[data-theme='light'] .ptl-critical-hint,
[data-theme='light'] .gantt-tooltip-critical,
[data-theme='light'] .gantt-tooltip-shift {
  color: #9f1239;
  background: rgba(255, 241, 242, 0.92);
  border-color: rgba(244, 63, 94, 0.22);
}

[data-theme='light'] .ptl-badge.critical-path,
[data-theme='light'] .ptl-badge.danger {
  color: #9f1239;
  border-color: rgba(244, 63, 94, 0.28);
  background: rgba(255, 241, 242, 0.9);
}

.ptl-critical-settings {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(244, 63, 94, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(244, 63, 94, 0.10), rgba(168, 85, 247, 0.06)),
    rgba(15, 23, 42, 0.42);
  box-shadow: 0 18px 45px rgba(244, 63, 94, 0.08);
}

.ptl-critical-settings-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ptl-critical-settings-head i {
  color: #fb7185;
  margin-top: 4px;
}

.ptl-critical-settings-head strong {
  display: block;
  color: var(--text-primary);
  font-size: 15px;
}

.ptl-critical-settings-head span {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.8;
}

.ptl-critical-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(34, 211, 238, 0.20);
  border-radius: 14px;
  background: rgba(34, 211, 238, 0.06);
  color: var(--text-secondary);
  line-height: 1.8;
}

.ptl-critical-note i {
  color: var(--nexora-cyan, #22d3ee);
  margin-top: 4px;
}

.ptl-critical-preview {
  display: none;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(244, 63, 94, 0.26);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.42);
}

.ptl-critical-preview.show {
  display: grid;
}

.ptl-critical-preview-head,
.ptl-critical-preview-metrics,
.ptl-critical-preview-list {
  display: grid;
  gap: 10px;
}

.ptl-critical-preview-head {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.ptl-critical-preview-head strong {
  color: var(--text-primary);
}

.ptl-critical-preview-head span {
  color: #fecdd3;
  font-weight: 800;
}

.ptl-critical-preview-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ptl-critical-preview-metrics span {
  padding: 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.70);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--text-secondary);
  font-size: 12px;
}

.ptl-critical-preview-metrics b {
  color: var(--nexora-cyan, #22d3ee);
  font-size: 16px;
}

.ptl-critical-preview-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--text-secondary);
  font-size: 12px;
}

.ptl-critical-preview-row strong {
  color: var(--text-primary);
}

.ptl-critical-preview-row.is-blocked {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.10);
  color: #fde68a;
}

.ptl-critical-preview-empty {
  color: var(--text-muted);
  line-height: 1.8;
}

.timeline-bar.was-cascade-shifted {
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.26),
    0 14px 34px rgba(168, 85, 247, 0.16);
}

.login-logo-img {
  width: 220px !important;
  height: 220px !important;
}

.sidebar-logo img {
  width: 94px !important;
  height: 94px !important;
}

@media (max-width: 768px) {
  .login-logo-img {
    width: 184px !important;
    height: 184px !important;
  }

  .sidebar-logo img {
    width: 78px !important;
    height: 78px !important;
  }

  .ptl-critical-preview-metrics,
  .ptl-critical-preview-row {
    grid-template-columns: 1fr;
  }
}

/* Critical path identity polish v8.74.2 */
#modal-projectTimelineActivity.open .ptl-activity-modal {
  background: #ffffff !important;
  color: #1e293b !important;
}

#modal-projectTimelineActivity.open .modal-body {
  background: #f6fbff !important;
}

#modal-projectTimelineActivity .ptl-critical-settings {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(14, 165, 233, 0.18);
  background:
    linear-gradient(135deg, rgba(236, 254, 255, 0.96), rgba(250, 245, 255, 0.94)),
    #ffffff !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

#modal-projectTimelineActivity .ptl-critical-settings::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #22d3ee, #8b5cf6, #fb7185);
}

#modal-projectTimelineActivity .ptl-critical-settings-head {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
}

#modal-projectTimelineActivity .ptl-critical-settings-head > i {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff !important;
  background: linear-gradient(135deg, #22d3ee, #7c3aed);
  box-shadow: 0 12px 24px rgba(34, 211, 238, 0.24);
  margin: 0 !important;
}

#modal-projectTimelineActivity .ptl-critical-settings-head strong {
  color: #0f172a !important;
  font-size: 16px;
  font-weight: 900;
}

#modal-projectTimelineActivity .ptl-critical-settings-head span,
#modal-projectTimelineActivity .ptl-critical-note,
#modal-projectTimelineActivity .ptl-critical-hint {
  color: #53657f !important;
}

#modal-projectTimelineActivity .ptl-critical-settings .ptl-check {
  min-height: 52px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.18) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  color: #1e293b !important;
}

#modal-projectTimelineActivity .ptl-critical-settings .ptl-check.is-critical-path {
  border-color: rgba(244, 63, 94, 0.22) !important;
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.9), rgba(255, 255, 255, 0.78)) !important;
}

#modal-projectTimelineActivity .ptl-critical-settings input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #22d3ee;
}

#modal-projectTimelineActivity .ptl-critical-settings .ptl-check.is-critical-path input[type="checkbox"] {
  accent-color: #fb7185;
}

#modal-projectTimelineActivity .ptl-critical-settings select,
#modal-projectTimelineActivity .ptl-critical-settings input[type="number"] {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(14, 165, 233, 0.25) !important;
  background: #ffffff !important;
  color: #172033 !important;
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.03);
}

#modal-projectTimelineActivity .ptl-critical-note {
  border-color: rgba(14, 165, 233, 0.18) !important;
  background: rgba(236, 254, 255, 0.76) !important;
}

#modal-projectTimelineActivity .ptl-critical-preview {
  border-color: rgba(124, 58, 237, 0.18) !important;
  background: rgba(255, 255, 255, 0.78) !important;
}

#modal-projectTimelineActivity .ptl-critical-preview-row,
#modal-projectTimelineActivity .ptl-critical-preview-metrics span {
  background: #ffffff !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
  color: #475569 !important;
}

#modal-projectTimelineActivity .ptl-critical-preview-row strong,
#modal-projectTimelineActivity .ptl-critical-preview-head strong {
  color: #0f172a !important;
}

#page-timeline .timeline-row-label > div {
  display: grid;
  gap: 8px;
  align-content: center;
}

#page-timeline .timeline-row-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

#page-timeline .ptl-badge,
#page-timeline .timeline-row-badges .ptl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
}

#page-timeline .ptl-badge.critical-path {
  color: #be123c !important;
  border: 1px solid rgba(251, 113, 133, 0.28) !important;
  background: linear-gradient(135deg, #fff1f2, #ffe4e6) !important;
}

#page-timeline .ptl-badge.locked {
  color: #92400e !important;
  border: 1px solid rgba(245, 158, 11, 0.28) !important;
  background: #fffbeb !important;
}

#page-timeline .ptl-badge.cascade-shifted {
  color: #5b21b6 !important;
  border: 1px solid rgba(124, 58, 237, 0.25) !important;
  background: #f5f3ff !important;
}

#page-timeline .timeline-bar.is-critical::after {
  content: "";
  display: none !important;
}

#page-timeline .timeline-bar.is-critical {
  border: 1px solid rgba(244, 63, 94, 0.52) !important;
  background: linear-gradient(90deg, #fb7185, #f43f5e) !important;
  box-shadow:
    0 0 0 1px rgba(244, 63, 94, 0.16),
    0 12px 24px rgba(244, 63, 94, 0.16) !important;
}

#page-timeline .timeline-bar.is-critical .timeline-progress-fill {
  background: linear-gradient(90deg, rgba(255,255,255,0.25), rgba(255,255,255,0.48)) !important;
}

#page-timeline .timeline-bar.is-critical .timeline-progress-label {
  color: #ffffff !important;
}

[data-theme='dark'] #modal-projectTimelineActivity.open .ptl-activity-modal,
html[data-theme='dark'] #modal-projectTimelineActivity.open .ptl-activity-modal {
  background: #101a2e !important;
  color: #e8eefb !important;
}

[data-theme='dark'] #modal-projectTimelineActivity.open .modal-body,
html[data-theme='dark'] #modal-projectTimelineActivity.open .modal-body {
  background: #101a2e !important;
}

[data-theme='dark'] #modal-projectTimelineActivity .ptl-critical-settings,
html[data-theme='dark'] #modal-projectTimelineActivity .ptl-critical-settings {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(31, 41, 73, 0.94)),
    #101a2e !important;
  border-color: rgba(96, 165, 250, 0.22) !important;
}

[data-theme='dark'] #modal-projectTimelineActivity .ptl-critical-settings-head strong,
html[data-theme='dark'] #modal-projectTimelineActivity .ptl-critical-settings-head strong,
[data-theme='dark'] #modal-projectTimelineActivity .ptl-critical-preview-row strong,
html[data-theme='dark'] #modal-projectTimelineActivity .ptl-critical-preview-row strong,
[data-theme='dark'] #modal-projectTimelineActivity .ptl-critical-preview-head strong,
html[data-theme='dark'] #modal-projectTimelineActivity .ptl-critical-preview-head strong {
  color: #f8fafc !important;
}

[data-theme='dark'] #modal-projectTimelineActivity .ptl-critical-settings .ptl-check,
html[data-theme='dark'] #modal-projectTimelineActivity .ptl-critical-settings .ptl-check,
[data-theme='dark'] #modal-projectTimelineActivity .ptl-critical-preview-row,
html[data-theme='dark'] #modal-projectTimelineActivity .ptl-critical-preview-row,
[data-theme='dark'] #modal-projectTimelineActivity .ptl-critical-preview-metrics span,
html[data-theme='dark'] #modal-projectTimelineActivity .ptl-critical-preview-metrics span {
  background: rgba(15, 23, 42, 0.72) !important;
  color: #dbeafe !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}
/* Task detail milestones light theme polish v8.74.4 */
[data-theme='light'] #modal-taskDetail.open .task-milestones-panel,
body[data-theme='light'] #modal-taskDetail.open .task-milestones-panel,
html[data-theme='light'] #modal-taskDetail.open .task-milestones-panel,
body.light #modal-taskDetail.open .task-milestones-panel,
body.light-theme #modal-taskDetail.open .task-milestones-panel {
  background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%) !important;
  border-color: rgba(69, 214, 255, 0.24) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

[data-theme='light'] #modal-taskDetail.open .task-milestones-head,
body[data-theme='light'] #modal-taskDetail.open .task-milestones-head,
html[data-theme='light'] #modal-taskDetail.open .task-milestones-head,
body.light #modal-taskDetail.open .task-milestones-head,
body.light-theme #modal-taskDetail.open .task-milestones-head {
  color: #64748b !important;
}

[data-theme='light'] #modal-taskDetail.open .task-milestones-head i,
[data-theme='light'] #modal-taskDetail.open .task-milestones-head strong,
body[data-theme='light'] #modal-taskDetail.open .task-milestones-head i,
body[data-theme='light'] #modal-taskDetail.open .task-milestones-head strong,
html[data-theme='light'] #modal-taskDetail.open .task-milestones-head i,
html[data-theme='light'] #modal-taskDetail.open .task-milestones-head strong,
body.light #modal-taskDetail.open .task-milestones-head i,
body.light #modal-taskDetail.open .task-milestones-head strong,
body.light-theme #modal-taskDetail.open .task-milestones-head i,
body.light-theme #modal-taskDetail.open .task-milestones-head strong {
  color: #0ea5e9 !important;
}

[data-theme='light'] #modal-taskDetail.open .task-milestones-head > span,
body[data-theme='light'] #modal-taskDetail.open .task-milestones-head > span,
html[data-theme='light'] #modal-taskDetail.open .task-milestones-head > span,
body.light #modal-taskDetail.open .task-milestones-head > span,
body.light-theme #modal-taskDetail.open .task-milestones-head > span {
  color: #0f172a !important;
}

[data-theme='light'] #modal-taskDetail.open .task-milestones-progress,
body[data-theme='light'] #modal-taskDetail.open .task-milestones-progress,
html[data-theme='light'] #modal-taskDetail.open .task-milestones-progress,
body.light #modal-taskDetail.open .task-milestones-progress,
body.light-theme #modal-taskDetail.open .task-milestones-progress {
  background: #dbe8ff !important;
}

[data-theme='light'] #modal-taskDetail.open .task-milestone-check,
body[data-theme='light'] #modal-taskDetail.open .task-milestone-check,
html[data-theme='light'] #modal-taskDetail.open .task-milestone-check,
body.light #modal-taskDetail.open .task-milestone-check,
body.light-theme #modal-taskDetail.open .task-milestone-check {
  background: #ffffff !important;
  border-color: rgba(37, 99, 235, 0.16) !important;
  color: #0f172a !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 20px rgba(37, 99, 235, 0.06) !important;
}

[data-theme='light'] #modal-taskDetail.open .task-milestone-check:hover,
body[data-theme='light'] #modal-taskDetail.open .task-milestone-check:hover,
html[data-theme='light'] #modal-taskDetail.open .task-milestone-check:hover,
body.light #modal-taskDetail.open .task-milestone-check:hover,
body.light-theme #modal-taskDetail.open .task-milestone-check:hover {
  border-color: rgba(14, 165, 233, 0.34) !important;
  background: #f6fbff !important;
}

[data-theme='light'] #modal-taskDetail.open .task-milestone-title,
body[data-theme='light'] #modal-taskDetail.open .task-milestone-title,
html[data-theme='light'] #modal-taskDetail.open .task-milestone-title,
body.light #modal-taskDetail.open .task-milestone-title,
body.light-theme #modal-taskDetail.open .task-milestone-title {
  color: #172033 !important;
  font-weight: 800;
}

[data-theme='light'] #modal-taskDetail.open .task-milestone-box,
body[data-theme='light'] #modal-taskDetail.open .task-milestone-box,
html[data-theme='light'] #modal-taskDetail.open .task-milestone-box,
body.light #modal-taskDetail.open .task-milestone-box,
body.light-theme #modal-taskDetail.open .task-milestone-box {
  background: #eaf7ff !important;
  border-color: rgba(14, 165, 233, 0.38) !important;
  color: transparent !important;
}

[data-theme='light'] #modal-taskDetail.open .task-milestone-check.is-done,
body[data-theme='light'] #modal-taskDetail.open .task-milestone-check.is-done,
html[data-theme='light'] #modal-taskDetail.open .task-milestone-check.is-done,
body.light #modal-taskDetail.open .task-milestone-check.is-done,
body.light-theme #modal-taskDetail.open .task-milestone-check.is-done {
  background: #effdf7 !important;
  border-color: rgba(16, 185, 129, 0.28) !important;
}

[data-theme='light'] #modal-taskDetail.open .task-milestone-check.is-done .task-milestone-box,
body[data-theme='light'] #modal-taskDetail.open .task-milestone-check.is-done .task-milestone-box,
html[data-theme='light'] #modal-taskDetail.open .task-milestone-check.is-done .task-milestone-box,
body.light #modal-taskDetail.open .task-milestone-check.is-done .task-milestone-box,
body.light-theme #modal-taskDetail.open .task-milestone-check.is-done .task-milestone-box {
  background: #d1fae5 !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
  color: #059669 !important;
}

[data-theme='light'] #modal-taskDetail.open .task-milestone-check.is-done .task-milestone-title,
body[data-theme='light'] #modal-taskDetail.open .task-milestone-check.is-done .task-milestone-title,
html[data-theme='light'] #modal-taskDetail.open .task-milestone-check.is-done .task-milestone-title,
body.light #modal-taskDetail.open .task-milestone-check.is-done .task-milestone-title,
body.light-theme #modal-taskDetail.open .task-milestone-check.is-done .task-milestone-title {
  color: #64748b !important;
}

/* Project timeline light theme redesign v8.74.6 */
[data-theme='light'] #page-timeline .timeline-page-head,
body[data-theme='light'] #page-timeline .timeline-page-head,
html[data-theme='light'] #page-timeline .timeline-page-head,
body.light #page-timeline .timeline-page-head,
body.light-theme #page-timeline .timeline-page-head {
  border-color: rgba(37, 99, 235, 0.12) !important;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(124, 58, 237, 0.055)),
    #ffffff !important;
  box-shadow: 0 16px 38px rgba(51, 93, 145, 0.08) !important;
}

[data-theme='light'] #page-timeline .timeline-controls .filter-select,
body[data-theme='light'] #page-timeline .timeline-controls .filter-select,
html[data-theme='light'] #page-timeline .timeline-controls .filter-select,
body.light #page-timeline .timeline-controls .filter-select,
body.light-theme #page-timeline .timeline-controls .filter-select {
  background: #ffffff !important;
  color: #172033 !important;
  border-color: rgba(37, 99, 235, 0.22) !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.06) !important;
}

[data-theme='light'] #page-timeline .timeline-zoom-tabs,
body[data-theme='light'] #page-timeline .timeline-zoom-tabs,
html[data-theme='light'] #page-timeline .timeline-zoom-tabs,
body.light #page-timeline .timeline-zoom-tabs,
body.light-theme #page-timeline .timeline-zoom-tabs {
  border-color: rgba(37, 99, 235, 0.16) !important;
  background: #eaf2ff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

[data-theme='light'] #page-timeline .timeline-zoom-tabs button,
body[data-theme='light'] #page-timeline .timeline-zoom-tabs button,
html[data-theme='light'] #page-timeline .timeline-zoom-tabs button,
body.light #page-timeline .timeline-zoom-tabs button,
body.light-theme #page-timeline .timeline-zoom-tabs button {
  color: #53657f !important;
  background: transparent !important;
}

[data-theme='light'] #page-timeline .timeline-zoom-tabs button.active,
body[data-theme='light'] #page-timeline .timeline-zoom-tabs button.active,
html[data-theme='light'] #page-timeline .timeline-zoom-tabs button.active,
body.light #page-timeline .timeline-zoom-tabs button.active,
body.light-theme #page-timeline .timeline-zoom-tabs button.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #23b9e9, #6d5df6) !important;
  box-shadow: 0 12px 26px rgba(45, 125, 220, 0.22) !important;
}

[data-theme='light'] #page-timeline .timeline-summary div,
body[data-theme='light'] #page-timeline .timeline-summary div,
html[data-theme='light'] #page-timeline .timeline-summary div,
body.light #page-timeline .timeline-summary div,
body.light-theme #page-timeline .timeline-summary div {
  background: #ffffff !important;
  border-color: rgba(37, 99, 235, 0.1) !important;
  box-shadow: 0 12px 28px rgba(51, 93, 145, 0.08) !important;
}

[data-theme='light'] #page-timeline .timeline-summary b,
body[data-theme='light'] #page-timeline .timeline-summary b,
html[data-theme='light'] #page-timeline .timeline-summary b,
body.light #page-timeline .timeline-summary b,
body.light-theme #page-timeline .timeline-summary b {
  color: #0ea5e9 !important;
}

[data-theme='light'] #page-timeline .timeline-summary span,
body[data-theme='light'] #page-timeline .timeline-summary span,
html[data-theme='light'] #page-timeline .timeline-summary span,
body.light #page-timeline .timeline-summary span,
body.light-theme #page-timeline .timeline-summary span {
  color: #475569 !important;
}

[data-theme='light'] #page-timeline .timeline-gantt-shell,
body[data-theme='light'] #page-timeline .timeline-gantt-shell,
html[data-theme='light'] #page-timeline .timeline-gantt-shell,
body.light #page-timeline .timeline-gantt-shell,
body.light-theme #page-timeline .timeline-gantt-shell {
  border-color: rgba(37, 99, 235, 0.14) !important;
  background: #ffffff !important;
  box-shadow: 0 18px 42px rgba(51, 93, 145, 0.1) !important;
}

[data-theme='light'] #page-timeline .timeline-gantt-scroll,
body[data-theme='light'] #page-timeline .timeline-gantt-scroll,
html[data-theme='light'] #page-timeline .timeline-gantt-scroll,
body.light #page-timeline .timeline-gantt-scroll,
body.light-theme #page-timeline .timeline-gantt-scroll,
[data-theme='light'] #page-timeline .timeline-grid,
body[data-theme='light'] #page-timeline .timeline-grid,
html[data-theme='light'] #page-timeline .timeline-grid,
body.light #page-timeline .timeline-grid,
body.light-theme #page-timeline .timeline-grid {
  background: #f6fbff !important;
}

[data-theme='light'] #page-timeline .timeline-project-strip,
body[data-theme='light'] #page-timeline .timeline-project-strip,
html[data-theme='light'] #page-timeline .timeline-project-strip,
body.light #page-timeline .timeline-project-strip,
body.light-theme #page-timeline .timeline-project-strip {
  border-color: rgba(14, 165, 233, 0.18) !important;
  background: linear-gradient(180deg, #eefaff, #f8fdff) !important;
}

[data-theme='light'] #page-timeline .timeline-project-strip strong,
body[data-theme='light'] #page-timeline .timeline-project-strip strong,
html[data-theme='light'] #page-timeline .timeline-project-strip strong,
body.light #page-timeline .timeline-project-strip strong,
body.light-theme #page-timeline .timeline-project-strip strong,
[data-theme='light'] #page-timeline .timeline-label-head,
body[data-theme='light'] #page-timeline .timeline-label-head,
html[data-theme='light'] #page-timeline .timeline-label-head,
body.light #page-timeline .timeline-label-head,
body.light-theme #page-timeline .timeline-label-head {
  color: #172033 !important;
}

[data-theme='light'] #page-timeline .timeline-project-strip span,
body[data-theme='light'] #page-timeline .timeline-project-strip span,
html[data-theme='light'] #page-timeline .timeline-project-strip span,
body.light #page-timeline .timeline-project-strip span,
body.light-theme #page-timeline .timeline-project-strip span,
[data-theme='light'] #page-timeline .timeline-tick,
body[data-theme='light'] #page-timeline .timeline-tick,
html[data-theme='light'] #page-timeline .timeline-tick,
body.light #page-timeline .timeline-tick,
body.light-theme #page-timeline .timeline-tick {
  color: #526a86 !important;
}

[data-theme='light'] #page-timeline .timeline-project-strip button,
body[data-theme='light'] #page-timeline .timeline-project-strip button,
html[data-theme='light'] #page-timeline .timeline-project-strip button,
body.light #page-timeline .timeline-project-strip button,
body.light-theme #page-timeline .timeline-project-strip button {
  border-color: rgba(14, 165, 233, 0.28) !important;
  color: #0b99c9 !important;
  background: #e7f8ff !important;
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.08) !important;
}

[data-theme='light'] #page-timeline .timeline-tick,
body[data-theme='light'] #page-timeline .timeline-tick,
html[data-theme='light'] #page-timeline .timeline-tick,
body.light #page-timeline .timeline-tick,
body.light-theme #page-timeline .timeline-tick,
[data-theme='light'] #page-timeline .timeline-label-head,
body[data-theme='light'] #page-timeline .timeline-label-head,
html[data-theme='light'] #page-timeline .timeline-label-head,
body.light #page-timeline .timeline-label-head,
body.light-theme #page-timeline .timeline-label-head {
  border-color: rgba(14, 165, 233, 0.16) !important;
  background: linear-gradient(180deg, #f5fbff, #eaf6ff) !important;
  text-shadow: none !important;
}

[data-theme='light'] #page-timeline .timeline-label-head,
body[data-theme='light'] #page-timeline .timeline-label-head,
html[data-theme='light'] #page-timeline .timeline-label-head,
body.light #page-timeline .timeline-label-head,
body.light-theme #page-timeline .timeline-label-head {
  box-shadow:
    -14px 0 28px rgba(71, 104, 145, 0.12),
    0 8px 16px rgba(71, 104, 145, 0.08),
    -1px 0 0 rgba(14, 165, 233, 0.2) inset !important;
}

[data-theme='light'] #page-timeline .timeline-row,
body[data-theme='light'] #page-timeline .timeline-row,
html[data-theme='light'] #page-timeline .timeline-row,
body.light #page-timeline .timeline-row,
body.light-theme #page-timeline .timeline-row {
  border-bottom-color: rgba(14, 165, 233, 0.13) !important;
}

[data-theme='light'] #page-timeline .timeline-row-activity,
body[data-theme='light'] #page-timeline .timeline-row-activity,
html[data-theme='light'] #page-timeline .timeline-row-activity,
body.light #page-timeline .timeline-row-activity,
body.light-theme #page-timeline .timeline-row-activity {
  background: #f8fdff !important;
}

[data-theme='light'] #page-timeline .timeline-row-track,
body[data-theme='light'] #page-timeline .timeline-row-track,
html[data-theme='light'] #page-timeline .timeline-row-track,
body.light #page-timeline .timeline-row-track,
body.light-theme #page-timeline .timeline-row-track {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(14, 165, 233, 0.14) 0,
      rgba(14, 165, 233, 0.14) 1px,
      transparent 1px,
      transparent 64px
    ),
    linear-gradient(180deg, #fbfeff, #f1f9ff) !important;
}

[data-theme='light'] #page-timeline .timeline-row-label,
body[data-theme='light'] #page-timeline .timeline-row-label,
html[data-theme='light'] #page-timeline .timeline-row-label,
body.light #page-timeline .timeline-row-label,
body.light-theme #page-timeline .timeline-row-label {
  border-color: rgba(14, 165, 233, 0.18) !important;
  background:
    linear-gradient(90deg, rgba(235, 248, 255, 0.95), #ffffff 22%, #ffffff 100%) !important;
  box-shadow:
    -16px 0 28px rgba(71, 104, 145, 0.13),
    -1px 0 0 rgba(14, 165, 233, 0.18) inset !important;
}

[data-theme='light'] #page-timeline .timeline-row-label::before,
body[data-theme='light'] #page-timeline .timeline-row-label::before,
html[data-theme='light'] #page-timeline .timeline-row-label::before,
body.light #page-timeline .timeline-row-label::before,
body.light-theme #page-timeline .timeline-row-label::before {
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.08), transparent 58%),
    #ffffff !important;
}

[data-theme='light'] #page-timeline .timeline-row-label .timeline-activity-name,
body[data-theme='light'] #page-timeline .timeline-row-label .timeline-activity-name,
html[data-theme='light'] #page-timeline .timeline-row-label .timeline-activity-name,
body.light #page-timeline .timeline-row-label .timeline-activity-name,
body.light-theme #page-timeline .timeline-row-label .timeline-activity-name {
  color: #172033 !important;
}

[data-theme='light'] #page-timeline .timeline-row-label i,
body[data-theme='light'] #page-timeline .timeline-row-label i,
html[data-theme='light'] #page-timeline .timeline-row-label i,
body.light #page-timeline .timeline-row-label i,
body.light-theme #page-timeline .timeline-row-label i {
  color: #0ea5e9 !important;
}

[data-theme='light'] #page-timeline .timeline-bar,
body[data-theme='light'] #page-timeline .timeline-bar,
html[data-theme='light'] #page-timeline .timeline-bar,
body.light #page-timeline .timeline-bar,
body.light-theme #page-timeline .timeline-bar {
  border-color: rgba(14, 165, 233, 0.34) !important;
  background: #dff5ff !important;
  color: #0f172a !important;
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.13) !important;
}

[data-theme='light'] #page-timeline .timeline-bar > .timeline-progress-fill,
body[data-theme='light'] #page-timeline .timeline-bar > .timeline-progress-fill,
html[data-theme='light'] #page-timeline .timeline-bar > .timeline-progress-fill,
body.light #page-timeline .timeline-bar > .timeline-progress-fill,
body.light-theme #page-timeline .timeline-bar > .timeline-progress-fill {
  background: linear-gradient(270deg, #22c1ee, #6d5df6) !important;
}

[data-theme='light'] #page-timeline .timeline-bar > .timeline-progress-label,
body[data-theme='light'] #page-timeline .timeline-bar > .timeline-progress-label,
html[data-theme='light'] #page-timeline .timeline-bar > .timeline-progress-label,
body.light #page-timeline .timeline-bar > .timeline-progress-label,
body.light-theme #page-timeline .timeline-bar > .timeline-progress-label {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.28) !important;
}

[data-theme='light'] #page-timeline .timeline-bar.is-critical,
body[data-theme='light'] #page-timeline .timeline-bar.is-critical,
html[data-theme='light'] #page-timeline .timeline-bar.is-critical,
body.light #page-timeline .timeline-bar.is-critical,
body.light-theme #page-timeline .timeline-bar.is-critical {
  border-color: rgba(225, 29, 72, 0.38) !important;
  background: #ffe4e8 !important;
  box-shadow:
    0 0 0 1px rgba(225, 29, 72, 0.08),
    0 12px 24px rgba(225, 29, 72, 0.1) !important;
}

[data-theme='light'] #page-timeline .timeline-bar.is-critical > .timeline-progress-fill,
body[data-theme='light'] #page-timeline .timeline-bar.is-critical > .timeline-progress-fill,
html[data-theme='light'] #page-timeline .timeline-bar.is-critical > .timeline-progress-fill,
body.light #page-timeline .timeline-bar.is-critical > .timeline-progress-fill,
body.light-theme #page-timeline .timeline-bar.is-critical > .timeline-progress-fill {
  background: linear-gradient(270deg, #fb7185, #e11d48) !important;
}

[data-theme='light'] #page-timeline .ptl-badge.critical-path,
body[data-theme='light'] #page-timeline .ptl-badge.critical-path,
html[data-theme='light'] #page-timeline .ptl-badge.critical-path,
body.light #page-timeline .ptl-badge.critical-path,
body.light-theme #page-timeline .ptl-badge.critical-path {
  color: #be123c !important;
  border-color: rgba(225, 29, 72, 0.18) !important;
  background: #fff1f4 !important;
}

[data-theme='light'] #page-timeline .timeline-floating-tooltip,
body[data-theme='light'] #page-timeline .timeline-floating-tooltip,
html[data-theme='light'] #page-timeline .timeline-floating-tooltip,
body.light #page-timeline .timeline-floating-tooltip,
body.light-theme #page-timeline .timeline-floating-tooltip,
[data-theme='light'] .timeline-floating-tooltip,
body[data-theme='light'] .timeline-floating-tooltip,
html[data-theme='light'] .timeline-floating-tooltip,
body.light .timeline-floating-tooltip,
body.light-theme .timeline-floating-tooltip {
  border-color: rgba(37, 99, 235, 0.18) !important;
  color: #172033 !important;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(124, 58, 237, 0.045)),
    #ffffff !important;
  box-shadow:
    0 28px 70px rgba(51, 93, 145, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset !important;
  backdrop-filter: blur(8px) saturate(1.05) !important;
  -webkit-backdrop-filter: blur(8px) saturate(1.05) !important;
}

[data-theme='light'] .timeline-floating-tooltip .gantt-tooltip-title,
[data-theme='light'] .timeline-floating-tooltip strong,
body[data-theme='light'] .timeline-floating-tooltip .gantt-tooltip-title,
body[data-theme='light'] .timeline-floating-tooltip strong,
html[data-theme='light'] .timeline-floating-tooltip .gantt-tooltip-title,
html[data-theme='light'] .timeline-floating-tooltip strong,
body.light .timeline-floating-tooltip .gantt-tooltip-title,
body.light .timeline-floating-tooltip strong,
body.light-theme .timeline-floating-tooltip .gantt-tooltip-title,
body.light-theme .timeline-floating-tooltip strong {
  color: #172033 !important;
  text-shadow: none !important;
}

[data-theme='light'] .timeline-floating-tooltip .gantt-tooltip-range,
[data-theme='light'] .timeline-floating-tooltip span,
[data-theme='light'] .timeline-floating-tooltip p,
[data-theme='light'] .timeline-floating-tooltip li,
body[data-theme='light'] .timeline-floating-tooltip .gantt-tooltip-range,
body[data-theme='light'] .timeline-floating-tooltip span,
body[data-theme='light'] .timeline-floating-tooltip p,
body[data-theme='light'] .timeline-floating-tooltip li,
html[data-theme='light'] .timeline-floating-tooltip .gantt-tooltip-range,
html[data-theme='light'] .timeline-floating-tooltip span,
html[data-theme='light'] .timeline-floating-tooltip p,
html[data-theme='light'] .timeline-floating-tooltip li,
body.light .timeline-floating-tooltip .gantt-tooltip-range,
body.light .timeline-floating-tooltip span,
body.light .timeline-floating-tooltip p,
body.light .timeline-floating-tooltip li,
body.light-theme .timeline-floating-tooltip .gantt-tooltip-range,
body.light-theme .timeline-floating-tooltip span,
body.light-theme .timeline-floating-tooltip p,
body.light-theme .timeline-floating-tooltip li {
  color: #526a86 !important;
}

[data-theme='light'] .timeline-floating-tooltip .gantt-tooltip-details li,
[data-theme='light'] .timeline-floating-tooltip .gantt-tooltip-tasks li,
[data-theme='light'] .timeline-floating-tooltip .is-description-only .gantt-tooltip-empty,
body[data-theme='light'] .timeline-floating-tooltip .gantt-tooltip-details li,
body[data-theme='light'] .timeline-floating-tooltip .gantt-tooltip-tasks li,
body[data-theme='light'] .timeline-floating-tooltip .is-description-only .gantt-tooltip-empty,
html[data-theme='light'] .timeline-floating-tooltip .gantt-tooltip-details li,
html[data-theme='light'] .timeline-floating-tooltip .gantt-tooltip-tasks li,
html[data-theme='light'] .timeline-floating-tooltip .is-description-only .gantt-tooltip-empty,
body.light .timeline-floating-tooltip .gantt-tooltip-details li,
body.light .timeline-floating-tooltip .gantt-tooltip-tasks li,
body.light .timeline-floating-tooltip .is-description-only .gantt-tooltip-empty,
body.light-theme .timeline-floating-tooltip .gantt-tooltip-details li,
body.light-theme .timeline-floating-tooltip .gantt-tooltip-tasks li,
body.light-theme .timeline-floating-tooltip .is-description-only .gantt-tooltip-empty {
  border-color: rgba(14, 165, 233, 0.14) !important;
  background: #f5fbff !important;
}

[data-theme='light'] .timeline-floating-tooltip .gantt-tooltip-grid em,
body[data-theme='light'] .timeline-floating-tooltip .gantt-tooltip-grid em,
html[data-theme='light'] .timeline-floating-tooltip .gantt-tooltip-grid em,
body.light .timeline-floating-tooltip .gantt-tooltip-grid em,
body.light-theme .timeline-floating-tooltip .gantt-tooltip-grid em {
  color: #0891b2 !important;
  background: #e7f8ff !important;
}

[data-theme='light'] .timeline-floating-tooltip .gantt-tooltip-critical,
[data-theme='light'] .timeline-floating-tooltip .gantt-tooltip-shift,
body[data-theme='light'] .timeline-floating-tooltip .gantt-tooltip-critical,
body[data-theme='light'] .timeline-floating-tooltip .gantt-tooltip-shift,
html[data-theme='light'] .timeline-floating-tooltip .gantt-tooltip-critical,
html[data-theme='light'] .timeline-floating-tooltip .gantt-tooltip-shift,
body.light .timeline-floating-tooltip .gantt-tooltip-critical,
body.light .timeline-floating-tooltip .gantt-tooltip-shift,
body.light-theme .timeline-floating-tooltip .gantt-tooltip-critical,
body.light-theme .timeline-floating-tooltip .gantt-tooltip-shift {
  color: #be123c !important;
  background: #fff1f4 !important;
  border-color: rgba(225, 29, 72, 0.16) !important;
}

/* Timeline floating tooltip explicit light class v8.74.7 */
#timelineFloatingTooltip.timeline-floating-tooltip.is-light-theme {
  border-color: rgba(37, 99, 235, 0.2) !important;
  color: #172033 !important;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(124, 58, 237, 0.045)),
    #ffffff !important;
  box-shadow:
    0 28px 70px rgba(51, 93, 145, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.85) inset !important;
  backdrop-filter: blur(8px) saturate(1.05) !important;
  -webkit-backdrop-filter: blur(8px) saturate(1.05) !important;
}

#timelineFloatingTooltip.timeline-floating-tooltip.is-light-theme .gantt-tooltip-title,
#timelineFloatingTooltip.timeline-floating-tooltip.is-light-theme strong {
  color: #172033 !important;
  text-shadow: none !important;
}

#timelineFloatingTooltip.timeline-floating-tooltip.is-light-theme .gantt-tooltip-range,
#timelineFloatingTooltip.timeline-floating-tooltip.is-light-theme span,
#timelineFloatingTooltip.timeline-floating-tooltip.is-light-theme p,
#timelineFloatingTooltip.timeline-floating-tooltip.is-light-theme li {
  color: #526a86 !important;
}

#timelineFloatingTooltip.timeline-floating-tooltip.is-light-theme .gantt-tooltip-head em {
  color: #8a5a00 !important;
  border-color: rgba(217, 119, 6, 0.22) !important;
  background: #fff7dc !important;
}

#timelineFloatingTooltip.timeline-floating-tooltip.is-light-theme .gantt-tooltip-people {
  color: #475569 !important;
  border-color: rgba(14, 165, 233, 0.16) !important;
  background: #f5fbff !important;
}

#timelineFloatingTooltip.timeline-floating-tooltip.is-light-theme .gantt-tooltip-people b,
#timelineFloatingTooltip.timeline-floating-tooltip.is-light-theme .gantt-tooltip-more,
#timelineFloatingTooltip.timeline-floating-tooltip.is-light-theme li b {
  color: #0891b2 !important;
}

#timelineFloatingTooltip.timeline-floating-tooltip.is-light-theme .gantt-tooltip-grid em {
  color: #0891b2 !important;
  background: #e7f8ff !important;
}

#timelineFloatingTooltip.timeline-floating-tooltip.is-light-theme .gantt-tooltip-grid small {
  color: #64748b !important;
}

#timelineFloatingTooltip.timeline-floating-tooltip.is-light-theme .gantt-tooltip-details li,
#timelineFloatingTooltip.timeline-floating-tooltip.is-light-theme .gantt-tooltip-tasks li,
#timelineFloatingTooltip.timeline-floating-tooltip.is-light-theme .gantt-tooltip-empty,
#timelineFloatingTooltip.timeline-floating-tooltip.is-light-theme .is-description-only .gantt-tooltip-empty {
  border-color: rgba(14, 165, 233, 0.14) !important;
  background: #f5fbff !important;
}

#timelineFloatingTooltip.timeline-floating-tooltip.is-light-theme .gantt-tooltip-critical,
#timelineFloatingTooltip.timeline-floating-tooltip.is-light-theme .gantt-tooltip-shift {
  color: #be123c !important;
  background: #fff1f4 !important;
  border-color: rgba(225, 29, 72, 0.16) !important;
}

#timelineFloatingTooltip.timeline-floating-tooltip.is-light-theme .gantt-tooltip-critical span,
#timelineFloatingTooltip.timeline-floating-tooltip.is-light-theme .gantt-tooltip-shift span {
  color: #be123c !important;
}

#timelineFloatingTooltip.timeline-floating-tooltip.is-light-theme .gantt-tooltip-tasks li.is-alert {
  border-color: rgba(217, 119, 6, 0.2) !important;
  background: #fff8e6 !important;
}

#timelineFloatingTooltip.timeline-floating-tooltip.is-light-theme .gantt-tooltip-tasks li.is-alert i,
#timelineFloatingTooltip.timeline-floating-tooltip.is-light-theme .gantt-tooltip-people i {
  color: #d97706 !important;
}

/* Role-aware executive dashboard v8.74.3 */
.role-dashboard {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--text-white);
}

.rd-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(69, 214, 255, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.16), rgba(168, 108, 246, 0.12)),
    rgba(11, 22, 46, 0.86);
  box-shadow: 0 20px 48px rgba(6, 15, 35, 0.24);
}

.rd-eyebrow,
.rd-hero-scope {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(69, 214, 255, 0.28);
  background: rgba(69, 214, 255, 0.12);
  color: #45d6ff;
  font-size: 12px;
  font-weight: 800;
}

.rd-hero h2 {
  margin: 12px 0 6px;
  font-size: 28px;
  line-height: 1.4;
  color: var(--text-white);
}

.rd-hero p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.9;
}

.rd-hero-scope {
  color: #c4b5fd;
  border-color: rgba(168, 108, 246, 0.3);
  background: rgba(168, 108, 246, 0.12);
}

.rd-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: rgba(15, 29, 58, 0.62);
}

.rd-filter-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rd-filter-group label {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.rd-filter-group select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(69, 214, 255, 0.22);
  background: rgba(8, 15, 34, 0.88);
  color: var(--text-white);
  font-family: var(--font);
  font-weight: 800;
  outline: none;
}

.rd-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
}

.rd-kpi,
.rd-panel {
  border: 1px solid rgba(69, 214, 255, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(11, 22, 46, 0.82);
  box-shadow: 0 18px 42px rgba(4, 11, 28, 0.2);
}

.rd-kpi {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 116px;
  padding: 16px;
  overflow: hidden;
  position: relative;
}

.rd-kpi::after {
  content: "";
  position: absolute;
  inset-inline-end: -34px;
  bottom: -42px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.08;
}

.rd-kpi-icon {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: currentColor;
  font-size: 18px;
}

.rd-kpi-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.rd-kpi-value {
  font-size: 29px;
  font-weight: 900;
  line-height: 1;
  color: var(--text-white);
}

.rd-kpi-label {
  color: var(--text-white);
  font-size: 13px;
  font-weight: 900;
}

.rd-kpi small {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
}

.rd-tone-cyan { color: #45d6ff; }
.rd-tone-green { color: #10d9a0; }
.rd-tone-red { color: #fb7185; }
.rd-tone-purple { color: #a86cf6; }

.rd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 16px;
}

.rd-layout-compact,
.rd-layout-lists {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rd-panel {
  min-width: 0;
  padding: 16px;
}

.rd-panel-wide {
  min-height: 320px;
}

.rd-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.rd-panel-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text-white);
  font-size: 15px;
  font-weight: 900;
}

.rd-panel-head h3 i {
  color: #45d6ff;
}

.rd-panel-head span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}

.rd-link {
  border: 1px solid rgba(69, 214, 255, 0.24);
  border-radius: 10px;
  background: rgba(69, 214, 255, 0.1);
  color: #45d6ff;
  padding: 7px 11px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.rd-chart-box {
  position: relative;
  height: 260px;
  min-height: 260px;
}

.rd-chart-box canvas {
  width: 100% !important;
  height: 100% !important;
}

.rd-chart-fallback,
.rd-empty {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  min-height: 160px;
  color: var(--text-muted);
  text-align: center;
  font-weight: 800;
}

.rd-empty {
  display: flex;
  padding: 22px 12px;
}

.rd-empty i {
  color: rgba(69, 214, 255, 0.72);
  font-size: 24px;
}

.rd-empty strong {
  color: var(--text-secondary);
  font-size: 13px;
}

.rd-empty span {
  font-size: 12px;
}

.rd-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rd-progress-row,
.rd-task-row,
.rd-note-row,
.rd-project-row,
.rd-activity-row {
  width: 100%;
  display: grid;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-white);
  font-family: var(--font);
}

.rd-task-row,
.rd-note-row,
.rd-project-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 58px;
  padding: 10px 12px;
  text-align: inherit;
  cursor: pointer;
}

.rd-task-row:hover,
.rd-note-row:hover,
.rd-project-row:hover,
.rd-progress-row:hover {
  border-color: rgba(69, 214, 255, 0.36);
  background: rgba(69, 214, 255, 0.08);
}

.rd-task-row i,
.rd-note-row i {
  color: #45d6ff;
}

.rd-task-row span,
.rd-note-row span,
.rd-project-row span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.rd-task-row strong,
.rd-note-row strong,
.rd-project-row strong,
.rd-progress-row strong {
  overflow: hidden;
  color: var(--text-white);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rd-task-row small,
.rd-note-row small,
.rd-project-row small,
.rd-progress-row span {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rd-task-row b,
.rd-project-row b,
.rd-activity-row b {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.rd-danger {
  border-color: rgba(251, 113, 133, 0.26);
  background: rgba(251, 113, 133, 0.08);
}

.rd-danger i {
  color: #fb7185;
}

.rd-progress-row {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
  cursor: pointer;
}

.rd-progress-row > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.rd-progress-row b {
  color: #45d6ff;
  font-size: 13px;
  font-weight: 900;
}

.rd-progress {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
}

.rd-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #45d6ff, #10d9a0);
}

.rd-activity-row {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  padding: 10px 12px;
}

.rd-activity-row > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #45d6ff, #a86cf6);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.rd-activity-row div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.rd-activity-row strong,
.rd-activity-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rd-activity-row strong {
  color: var(--text-white);
  font-size: 12px;
}

.rd-activity-row small {
  color: var(--text-secondary);
  font-size: 11px;
}

body.light .role-dashboard,
body.light-theme .role-dashboard,
[data-theme='light'] .role-dashboard {
  color: #172033;
}

body.light .rd-hero,
body.light-theme .rd-hero,
[data-theme='light'] .rd-hero,
body.light .rd-kpi,
body.light-theme .rd-kpi,
[data-theme='light'] .rd-kpi,
body.light .rd-panel,
body.light-theme .rd-panel,
[data-theme='light'] .rd-panel {
  border-color: rgba(69, 214, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.12), rgba(168, 108, 246, 0.08)),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 42px rgba(92, 119, 170, 0.14);
}

body.light .rd-filters,
body.light-theme .rd-filters,
[data-theme='light'] .rd-filters {
  background: rgba(246, 250, 255, 0.96);
  border-color: rgba(69, 214, 255, 0.22);
}

body.light .rd-filter-group select,
body.light-theme .rd-filter-group select,
[data-theme='light'] .rd-filter-group select {
  background: #fff;
  color: #172033;
}

body.light .rd-hero h2,
body.light-theme .rd-hero h2,
[data-theme='light'] .rd-hero h2,
body.light .rd-panel-head h3,
body.light-theme .rd-panel-head h3,
[data-theme='light'] .rd-panel-head h3,
body.light .rd-kpi-value,
body.light-theme .rd-kpi-value,
[data-theme='light'] .rd-kpi-value,
body.light .rd-kpi-label,
body.light-theme .rd-kpi-label,
[data-theme='light'] .rd-kpi-label,
body.light .rd-task-row strong,
body.light-theme .rd-task-row strong,
[data-theme='light'] .rd-task-row strong,
body.light .rd-note-row strong,
body.light-theme .rd-note-row strong,
[data-theme='light'] .rd-note-row strong,
body.light .rd-project-row strong,
body.light-theme .rd-project-row strong,
[data-theme='light'] .rd-project-row strong,
body.light .rd-progress-row strong,
body.light-theme .rd-progress-row strong,
[data-theme='light'] .rd-progress-row strong,
body.light .rd-activity-row strong,
body.light-theme .rd-activity-row strong,
[data-theme='light'] .rd-activity-row strong {
  color: #172033;
}

body.light .rd-task-row,
body.light-theme .rd-task-row,
[data-theme='light'] .rd-task-row,
body.light .rd-note-row,
body.light-theme .rd-note-row,
[data-theme='light'] .rd-note-row,
body.light .rd-project-row,
body.light-theme .rd-project-row,
[data-theme='light'] .rd-project-row,
body.light .rd-progress-row,
body.light-theme .rd-progress-row,
[data-theme='light'] .rd-progress-row,
body.light .rd-activity-row,
body.light-theme .rd-activity-row,
[data-theme='light'] .rd-activity-row {
  background: rgba(243, 248, 255, 0.92);
  border-color: rgba(148, 163, 184, 0.24);
  color: #172033;
}

@media (max-width: 1180px) {
  .rd-kpi-grid,
  .rd-layout-compact,
  .rd-layout-lists {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rd-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .rd-hero,
  .rd-filters,
  .rd-kpi-grid,
  .rd-layout-compact,
  .rd-layout-lists {
    grid-template-columns: 1fr;
  }

  .rd-hero {
    padding: 18px;
  }

  .rd-hero h2 {
    font-size: 22px;
  }

  .rd-chart-box {
    height: 230px;
    min-height: 230px;
  }
}

/* Project timeline date-aware drag and drop v8.74.8 */
#page-timeline .timeline-row-label {
  gap: 8px !important;
}

#page-timeline .timeline-row-main {
  min-width: 0 !important;
  display: grid !important;
  gap: 8px;
  align-content: center;
}

.timeline-dnd-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 18px;
  border-block: 1px solid rgba(69, 214, 255, 0.16);
  color: var(--text-secondary);
  background: rgba(69, 214, 255, 0.07);
  font-weight: 800;
}

.timeline-dnd-hint i {
  color: var(--nexora-cyan);
}

.timeline-drag-handle,
.timeline-row-move-btn {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(69, 214, 255, 0.22);
  border-radius: 10px;
  background: rgba(12, 28, 50, 0.72);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  transition: var(--transition);
  flex: 0 0 auto;
}

.timeline-row-move-btn {
  cursor: pointer;
}

.timeline-drag-handle:hover,
.timeline-row-move-btn:hover {
  color: var(--nexora-cyan);
  border-color: rgba(69, 214, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(69, 214, 255, 0.1);
}

.timeline-drag-handle:active {
  cursor: grabbing;
}

.timeline-row-move-btn:disabled {
  cursor: not-allowed;
  opacity: 0.36;
  box-shadow: none;
}

#page-timeline .timeline-row-label > .timeline-row-controls,
.timeline-row-controls {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin-inline-start: 4px;
  position: relative;
  z-index: 4;
  min-width: max-content !important;
}

.timeline-row-activity.is-dragging {
  opacity: 0.55;
  filter: saturate(1.2);
}

.timeline-row-activity.drop-before,
.timeline-row-activity.drop-after {
  position: relative;
}

.timeline-row-activity.drop-before::before,
.timeline-row-activity.drop-after::after {
  content: '';
  position: absolute;
  inset-inline: 8px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--nexora-cyan), var(--accent-purple));
  box-shadow: 0 0 18px rgba(69, 214, 255, 0.45);
  z-index: 300;
}

.timeline-row-activity.drop-before::before {
  top: 0;
}

.timeline-row-activity.drop-after::after {
  bottom: 0;
}

.timeline-drag-active .timeline-row-activity {
  transition: transform 0.16s ease, opacity 0.16s ease, box-shadow 0.16s ease;
}

#timelineGantt.is-saving-order .timeline-drag-handle,
#timelineGantt.is-saving-order .timeline-row-move-btn {
  pointer-events: none;
  opacity: 0.55;
}

.ptl-badge.drag-rescheduled,
.ptl-badge.reordered {
  color: #bae6fd;
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.12);
}

.timeline-bar.was-drag-rescheduled {
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.25),
    0 14px 30px rgba(56, 189, 248, 0.12);
}

.gantt-tooltip-drag-reflow {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 12px;
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.1);
  line-height: 1.7;
}

.gantt-tooltip-drag-reflow small {
  color: inherit;
  opacity: 0.82;
}

[data-theme='light'] #page-timeline .timeline-dnd-hint,
body[data-theme='light'] #page-timeline .timeline-dnd-hint,
html[data-theme='light'] #page-timeline .timeline-dnd-hint,
body.light #page-timeline .timeline-dnd-hint,
body.light-theme #page-timeline .timeline-dnd-hint {
  color: #24415f !important;
  border-color: rgba(14, 165, 233, 0.2) !important;
  background: linear-gradient(90deg, #ecfeff, #f8fdff) !important;
}

[data-theme='light'] #page-timeline .timeline-drag-handle,
[data-theme='light'] #page-timeline .timeline-row-move-btn,
body[data-theme='light'] #page-timeline .timeline-drag-handle,
body[data-theme='light'] #page-timeline .timeline-row-move-btn,
html[data-theme='light'] #page-timeline .timeline-drag-handle,
html[data-theme='light'] #page-timeline .timeline-row-move-btn,
body.light #page-timeline .timeline-drag-handle,
body.light #page-timeline .timeline-row-move-btn,
body.light-theme #page-timeline .timeline-drag-handle,
body.light-theme #page-timeline .timeline-row-move-btn {
  color: #25637f !important;
  border-color: rgba(14, 165, 233, 0.22) !important;
  background: #f8fdff !important;
  box-shadow: 0 8px 18px rgba(15, 118, 160, 0.08);
}

[data-theme='light'] #page-timeline .timeline-drag-handle:hover,
[data-theme='light'] #page-timeline .timeline-row-move-btn:hover,
body[data-theme='light'] #page-timeline .timeline-drag-handle:hover,
body[data-theme='light'] #page-timeline .timeline-row-move-btn:hover,
html[data-theme='light'] #page-timeline .timeline-drag-handle:hover,
html[data-theme='light'] #page-timeline .timeline-row-move-btn:hover,
body.light #page-timeline .timeline-drag-handle:hover,
body.light #page-timeline .timeline-row-move-btn:hover,
body.light-theme #page-timeline .timeline-drag-handle:hover,
body.light-theme #page-timeline .timeline-row-move-btn:hover {
  color: #0284c7 !important;
  border-color: rgba(14, 165, 233, 0.48) !important;
  background: #effbff !important;
}

[data-theme='light'] #page-timeline .ptl-badge.drag-rescheduled,
body[data-theme='light'] #page-timeline .ptl-badge.drag-rescheduled,
html[data-theme='light'] #page-timeline .ptl-badge.drag-rescheduled,
body.light #page-timeline .ptl-badge.drag-rescheduled,
body.light-theme #page-timeline .ptl-badge.drag-rescheduled {
  color: #0369a1 !important;
  border-color: rgba(14, 165, 233, 0.28) !important;
  background: rgba(224, 242, 254, 0.92) !important;
}

#timelineFloatingTooltip.timeline-floating-tooltip.is-light-theme .gantt-tooltip-drag-reflow {
  color: #075985 !important;
  border-color: rgba(14, 165, 233, 0.24) !important;
  background: #effbff !important;
}

@media (max-width: 768px) {
  #page-timeline .timeline-drag-handle {
    display: none;
  }

  #page-timeline .timeline-row-controls {
    gap: 4px;
  }
}

/* Project timeline preserve activity names after drag reflow v8.74.9 */
#page-timeline .timeline-row-label {
  position: sticky !important;
  z-index: 240 !important;
  min-width: 0 !important;
  overflow: visible !important;
}

#page-timeline .timeline-row-label-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  min-width: 0 !important;
  width: 100% !important;
}

#page-timeline .timeline-row-main {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  overflow: visible !important;
}

#page-timeline .timeline-activity-name {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 84px !important;
  max-width: 100% !important;
  flex: 1 1 auto !important;
  color: var(--text-primary) !important;
  font-weight: 900 !important;
  text-align: start !important;
  white-space: nowrap !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#page-timeline .timeline-activity-name .timeline-activity-title-text,
#page-timeline .timeline-activity-title-text {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#page-timeline .timeline-row-badges {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}

#page-timeline .timeline-row-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex: 0 0 auto !important;
  position: relative !important;
  z-index: 5 !important;
}

#page-timeline .timeline-row-actions .timeline-row-controls {
  margin-inline-start: 0 !important;
}

#page-timeline .timeline-drag-handle,
#page-timeline .timeline-row-move-btn {
  flex: 0 0 auto !important;
}

#page-timeline .timeline-row.is-dragging .timeline-activity-title-text,
#page-timeline .timeline-row.was-drag-reflowed .timeline-activity-title-text,
#page-timeline .timeline-row-activity.is-dragging .timeline-activity-title-text,
#page-timeline .timeline-row-activity.was-drag-rescheduled .timeline-activity-title-text {
  opacity: 1 !important;
  visibility: visible !important;
}

[data-theme='light'] #page-timeline .timeline-activity-name,
body[data-theme='light'] #page-timeline .timeline-activity-name,
html[data-theme='light'] #page-timeline .timeline-activity-name,
body.light #page-timeline .timeline-activity-name,
body.light-theme #page-timeline .timeline-activity-name {
  color: #172033 !important;
}

/* Project timeline horizontal bar resize v8.75.0 */
#page-timeline .timeline-bar.is-resizable {
  cursor: ew-resize;
  overflow: visible !important;
}

#page-timeline .timeline-resize-handle {
  position: absolute;
  top: 50%;
  z-index: 20;
  width: 16px;
  height: calc(100% + 10px);
  min-height: 42px;
  transform: translateY(-50%);
  border: 1px solid rgba(69, 214, 255, 0.58);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(224, 242, 254, 0.92));
  box-shadow:
    0 0 0 4px rgba(69, 214, 255, 0.1),
    0 8px 18px rgba(15, 23, 42, 0.2);
  cursor: ew-resize;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  touch-action: none;
}

#page-timeline .timeline-resize-handle::before {
  content: "";
  position: absolute;
  inset: 8px 5px;
  border-inline: 2px solid rgba(14, 165, 233, 0.75);
  border-radius: 6px;
}

#page-timeline .timeline-resize-handle.start {
  right: -8px;
}

#page-timeline .timeline-resize-handle.end {
  left: -8px;
}

#page-timeline .timeline-bar.is-resizable:hover .timeline-resize-handle,
#page-timeline .timeline-bar.is-resizing .timeline-resize-handle,
#page-timeline .timeline-row.is-resizing-row .timeline-resize-handle {
  opacity: 1;
}

#page-timeline .timeline-bar.is-resizing {
  z-index: 250 !important;
  box-shadow:
    0 0 0 2px rgba(69, 214, 255, 0.35),
    0 18px 40px rgba(69, 214, 255, 0.22) !important;
}

#page-timeline .timeline-row.is-resizing-row {
  z-index: 240 !important;
  background: rgba(69, 214, 255, 0.08) !important;
}

body.is-timeline-bar-resizing,
body.is-timeline-bar-resizing * {
  cursor: ew-resize !important;
  user-select: none !important;
}

.timeline-resize-bubble {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 99999;
  min-width: 190px;
  max-width: 280px;
  padding: 9px 12px;
  border: 1px solid rgba(69, 214, 255, 0.38);
  border-radius: 13px;
  background: rgba(8, 15, 31, 0.94);
  color: #e0f7ff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.timeline-resize-bubble.show {
  opacity: 1;
}

[data-theme='light'] .timeline-resize-bubble,
body.light .timeline-resize-bubble,
body.light-theme .timeline-resize-bubble {
  color: #0f172a;
  border-color: rgba(14, 165, 233, 0.28);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

[data-theme='light'] #page-timeline .timeline-resize-handle,
body.light #page-timeline .timeline-resize-handle,
body.light-theme #page-timeline .timeline-resize-handle {
  border-color: rgba(14, 165, 233, 0.42);
  background: linear-gradient(180deg, #ffffff, #e0f2fe);
}

/* v8751: holiday-aware project timeline */
.timeline-country-warning,
.timeline-country-chip {
  margin: 14px 0;
  border: 1px solid rgba(14, 165, 233, 0.28);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.9), rgba(239, 246, 255, 0.94));
  color: var(--text-primary);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.timeline-country-warning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.timeline-country-warning > div:first-child,
.timeline-country-chip {
  display: flex;
  align-items: center;
  gap: 12px;
}

.timeline-country-warning i,
.timeline-country-chip i {
  color: #06b6d4;
  font-size: 18px;
}

.timeline-country-warning strong,
.timeline-country-chip span {
  font-weight: 900;
}

.timeline-country-warning span {
  display: block;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.7;
}

.timeline-country-picker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.timeline-country-picker select {
  min-width: 210px;
  border: 1px solid rgba(14, 165, 233, 0.3);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text-primary);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
}

.timeline-country-picker button {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #22c55e, #06b6d4);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.ptl-badge.holiday-adjusted {
  color: #047857;
  border-color: rgba(16, 185, 129, 0.34);
  background: rgba(209, 250, 229, 0.88);
}

.ptl-badge.holiday-override {
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.36);
  background: rgba(254, 243, 199, 0.92);
}

.timeline-bar.was-holiday-adjusted {
  box-shadow:
    0 0 0 1px rgba(16, 185, 129, 0.22),
    0 16px 34px rgba(16, 185, 129, 0.14);
}

.timeline-bar.has-holiday-override {
  border-style: dashed;
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, 0.2),
    0 16px 34px rgba(245, 158, 11, 0.14);
}

.gantt-tooltip-holidays {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.24);
  background: rgba(236, 253, 245, 0.92);
  color: #065f46;
  line-height: 1.7;
}

.gantt-tooltip-holidays i {
  color: #10b981;
}

.gantt-tooltip-holidays small {
  color: #047857;
  font-weight: 800;
}

.gantt-tooltip-holidays.is-override {
  border-color: rgba(245, 158, 11, 0.32);
  background: rgba(255, 251, 235, 0.94);
  color: #92400e;
}

.gantt-tooltip-holidays.is-override i,
.gantt-tooltip-holidays.is-override small {
  color: #d97706;
}

.timeline-floating-tooltip.is-light-theme .gantt-tooltip-critical,
.timeline-floating-tooltip.is-light-theme .gantt-tooltip-shift,
.timeline-floating-tooltip.is-light-theme .gantt-tooltip-drag-reflow {
  background: rgba(255, 247, 237, 0.94);
  border-color: rgba(251, 113, 133, 0.28);
  color: #9f1239;
}

html[data-theme="dark"] .timeline-country-warning,
html[data-theme="dark"] .timeline-country-chip,
body.dark-theme .timeline-country-warning,
body.dark-theme .timeline-country-chip {
  background: rgba(15, 23, 42, 0.86);
  border-color: rgba(56, 189, 248, 0.22);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] .timeline-country-picker select,
body.dark-theme .timeline-country-picker select {
  background: rgba(15, 23, 42, 0.92);
  color: var(--text-primary);
}

/* v8752: visible non-working days overlay inside timeline Gantt */
#page-timeline .timeline-grid {
  position: relative;
}

#page-timeline .timeline-nonwork-layer {
  position: absolute;
  top: 48px;
  left: 0;
  width: var(--timeline-days-width);
  height: var(--timeline-layer-height);
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

#page-timeline .timeline-nonwork-band {
  position: absolute;
  top: 0;
  left: var(--x);
  width: var(--w);
  height: var(--h, 100%);
  border-inline-start: 1px solid rgba(14, 165, 233, 0.08);
  border-inline-end: 1px solid rgba(14, 165, 233, 0.06);
  opacity: 0.95;
}

#page-timeline .timeline-nonwork-weekend {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(14, 165, 233, 0.07) 0,
      rgba(14, 165, 233, 0.07) 8px,
      rgba(14, 165, 233, 0.16) 8px,
      rgba(14, 165, 233, 0.16) 14px
    );
}

#page-timeline .timeline-nonwork-religious {
  background: rgba(168, 85, 247, 0.14);
  box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.14);
}

#page-timeline .timeline-nonwork-national {
  background: rgba(34, 197, 94, 0.12);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.14);
}

#page-timeline .timeline-nonwork-public {
  background: rgba(59, 130, 246, 0.11);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.13);
}

#page-timeline .timeline-nonwork-special {
  background: rgba(236, 72, 153, 0.12);
  box-shadow: inset 0 0 0 1px rgba(236, 72, 153, 0.13);
}

#page-timeline .timeline-holiday-range {
  position: absolute;
  top: 8px;
  left: var(--x);
  width: var(--w);
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #0f172a;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: auto;
  z-index: 4;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
}

#page-timeline .timeline-holiday-religious {
  color: #7e22ce;
  background: rgba(243, 232, 255, 0.94);
  border: 1px solid rgba(168, 85, 247, 0.35);
}

#page-timeline .timeline-holiday-national {
  color: #047857;
  background: rgba(220, 252, 231, 0.95);
  border: 1px solid rgba(34, 197, 94, 0.34);
}

#page-timeline .timeline-holiday-public {
  color: #1d4ed8;
  background: rgba(219, 234, 254, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.32);
}

#page-timeline .timeline-holiday-special {
  color: #be185d;
  background: rgba(252, 231, 243, 0.95);
  border: 1px solid rgba(236, 72, 153, 0.32);
}

#page-timeline .timeline-row {
  position: relative;
}

#page-timeline .timeline-row-track {
  position: relative;
  z-index: 1;
}

#page-timeline .timeline-bar {
  position: relative;
  z-index: 6;
}

#page-timeline .timeline-resize-handle,
#page-timeline .timeline-drag-handle,
#page-timeline .timeline-row-move-btn {
  position: relative;
  z-index: 9;
}

#page-timeline .timeline-tick {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: sticky;
  z-index: 7;
}

#page-timeline .timeline-tick.is-nonwork {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(239, 246, 255, 0.9)),
    var(--bg-card);
}

#page-timeline .timeline-tick-holiday-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 18px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.24);
  background: rgba(224, 242, 254, 0.85);
  color: #0369a1;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.2;
  cursor: help;
}

#page-timeline .timeline-tick-religious {
  color: #9333ea;
  border-color: rgba(168, 85, 247, 0.28);
  background: rgba(243, 232, 255, 0.9);
}

#page-timeline .timeline-tick-national {
  color: #047857;
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(220, 252, 231, 0.92);
}

#page-timeline .timeline-tick-public {
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.28);
  background: rgba(219, 234, 254, 0.92);
}

#page-timeline .timeline-tick-special {
  color: #be185d;
  border-color: rgba(236, 72, 153, 0.28);
  background: rgba(252, 231, 243, 0.92);
}

#page-timeline .timeline-holiday-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 10px 0 14px;
  color: var(--text-secondary);
  font-size: 12px;
}

#page-timeline .timeline-holiday-legend .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(14, 165, 233, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  font-weight: 850;
}

#page-timeline .legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.08);
}

#page-timeline .legend-dot.weekend { background: #38bdf8; }
#page-timeline .legend-dot.religious { background: #a855f7; }
#page-timeline .legend-dot.national { background: #22c55e; }
#page-timeline .legend-dot.public { background: #3b82f6; }
#page-timeline .legend-dot.special { background: #ec4899; }

.timeline-holiday-tooltip-events {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

[data-theme='dark'] #page-timeline .timeline-tick.is-nonwork,
body.dark-theme #page-timeline .timeline-tick.is-nonwork {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.82)),
    var(--bg-card);
}

[data-theme='dark'] #page-timeline .timeline-holiday-legend .legend-item,
body.dark-theme #page-timeline .timeline-holiday-legend .legend-item {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

[data-theme='dark'] #page-timeline .timeline-holiday-range,
body.dark-theme #page-timeline .timeline-holiday-range {
  color: #e5f7ff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

[data-theme='dark'] #page-timeline .timeline-holiday-religious,
body.dark-theme #page-timeline .timeline-holiday-religious {
  color: #f5d0fe;
  background: rgba(168, 85, 247, 0.22);
}

[data-theme='dark'] #page-timeline .timeline-holiday-national,
body.dark-theme #page-timeline .timeline-holiday-national {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.2);
}

[data-theme='dark'] #page-timeline .timeline-holiday-public,
body.dark-theme #page-timeline .timeline-holiday-public {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.2);
}

[data-theme='dark'] #page-timeline .timeline-holiday-special,
body.dark-theme #page-timeline .timeline-holiday-special {
  color: #fbcfe8;
  background: rgba(236, 72, 153, 0.2);
}

/* v8754: restore project timeline vertical activity reorder controls */
#page-timeline .timeline-row-label,
#page-timeline .timeline-row-label-inner,
#page-timeline .timeline-row-actions,
#page-timeline .timeline-row-controls {
  pointer-events: auto !important;
}

#page-timeline .timeline-row-label {
  z-index: 260 !important;
}

#page-timeline .timeline-row-actions {
  isolation: isolate;
}

#page-timeline .timeline-row-drag-handle,
#page-timeline .timeline-drag-handle[data-timeline-drag-handle="true"] {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 280 !important;
  touch-action: none;
  user-select: none;
  cursor: grab;
}

#page-timeline .timeline-row-drag-handle:active,
#page-timeline .timeline-drag-handle[data-timeline-drag-handle="true"]:active {
  cursor: grabbing;
}

#page-timeline .timeline-row-order-btn {
  position: relative !important;
  z-index: 275 !important;
}

#page-timeline .timeline-row-activity.is-reorder-target {
  background: rgba(69, 214, 255, 0.08);
}

#page-timeline .timeline-row-activity.is-dragging {
  opacity: 0.62;
  transform: scale(0.997);
}

#page-timeline .timeline-nonwork-layer,
#page-timeline .timeline-nonwork-band {
  pointer-events: none !important;
}

#page-timeline .timeline-holiday-range {
  pointer-events: auto;
}

body.is-timeline-row-reordering,
body.is-timeline-row-reordering * {
  cursor: grabbing !important;
  user-select: none !important;
}

[data-theme='light'] #page-timeline .timeline-row-drag-handle,
[data-theme='light'] #page-timeline .timeline-drag-handle[data-timeline-drag-handle="true"],
body[data-theme='light'] #page-timeline .timeline-row-drag-handle,
body[data-theme='light'] #page-timeline .timeline-drag-handle[data-timeline-drag-handle="true"],
html[data-theme='light'] #page-timeline .timeline-row-drag-handle,
html[data-theme='light'] #page-timeline .timeline-drag-handle[data-timeline-drag-handle="true"],
body.light #page-timeline .timeline-row-drag-handle,
body.light #page-timeline .timeline-drag-handle[data-timeline-drag-handle="true"],
body.light-theme #page-timeline .timeline-row-drag-handle,
body.light-theme #page-timeline .timeline-drag-handle[data-timeline-drag-handle="true"] {
  color: #0369a1 !important;
  border-color: rgba(14, 165, 233, 0.36) !important;
  background: linear-gradient(135deg, #ffffff, #e0f7ff) !important;
  box-shadow:
    0 0 0 3px rgba(14, 165, 233, 0.08),
    0 10px 20px rgba(15, 118, 160, 0.1) !important;
}

[data-theme='light'] #page-timeline .timeline-row-activity.is-dragging,
body[data-theme='light'] #page-timeline .timeline-row-activity.is-dragging,
html[data-theme='light'] #page-timeline .timeline-row-activity.is-dragging,
body.light #page-timeline .timeline-row-activity.is-dragging,
body.light-theme #page-timeline .timeline-row-activity.is-dragging {
  background: rgba(224, 247, 255, 0.76) !important;
}

/* v8755: keep vertical reorder controls visible in the sticky activity column */
#page-timeline .timeline-row-label-inner {
  justify-content: flex-start !important;
}

#page-timeline .timeline-row-actions {
  order: -1 !important;
  margin-inline-end: 8px !important;
}

#page-timeline .timeline-row-actions .timeline-row-controls {
  padding: 4px;
  border: 1px solid rgba(69, 214, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

#page-timeline .timeline-row-main {
  flex: 1 1 0 !important;
}

[data-theme='light'] #page-timeline .timeline-row-actions .timeline-row-controls,
body[data-theme='light'] #page-timeline .timeline-row-actions .timeline-row-controls,
html[data-theme='light'] #page-timeline .timeline-row-actions .timeline-row-controls,
body.light #page-timeline .timeline-row-actions .timeline-row-controls,
body.light-theme #page-timeline .timeline-row-actions .timeline-row-controls {
  border-color: rgba(14, 165, 233, 0.26) !important;
  background: rgba(248, 253, 255, 0.96) !important;
}

/* v8756: final timeline interaction separation */
#page-timeline #timelineGantt {
  --timeline-activity-col-width: 360px;
}

#page-timeline .timeline-grid,
#page-timeline .timeline-row {
  align-items: stretch;
}

#page-timeline .timeline-row-track,
#page-timeline .timeline-non-working-overlay,
#page-timeline .timeline-holiday-overlay,
#page-timeline .timeline-friday-overlay,
#page-timeline .timeline-event-band,
#page-timeline .timeline-holiday-band,
#page-timeline .timeline-nonwork-layer,
#page-timeline .timeline-nonwork-band,
#page-timeline .timeline-holiday-range {
  pointer-events: none !important;
}

#page-timeline .timeline-row-label {
  position: sticky !important;
  right: 0 !important;
  z-index: 300 !important;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: var(--timeline-activity-col-width, 360px) !important;
  width: var(--timeline-activity-col-width, 360px) !important;
  max-width: none !important;
  overflow: visible !important;
  pointer-events: auto !important;
}

#page-timeline .timeline-row-label-content {
  min-width: 0 !important;
  overflow: visible !important;
}

#page-timeline .timeline-activity-name {
  max-width: none !important;
  width: 100% !important;
  min-width: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  justify-content: flex-start !important;
  overflow: visible !important;
}

#page-timeline .timeline-activity-name span,
#page-timeline .timeline-activity-title-text {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: none !important;
}

#page-timeline .timeline-row-drag-handle {
  width: 34px !important;
  height: 34px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  background: rgba(224, 242, 254, 0.7) !important;
  color: #0284c7 !important;
  cursor: grab !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  z-index: 360 !important;
  pointer-events: auto !important;
  touch-action: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#page-timeline .timeline-row-drag-handle:active,
#page-timeline .timeline-row-activity.is-row-dragging .timeline-row-drag-handle {
  cursor: grabbing !important;
  transform: scale(0.98);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

#page-timeline .timeline-row-order-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  position: relative !important;
  z-index: 355 !important;
  pointer-events: auto !important;
}

#page-timeline .timeline-row-order-btn {
  width: 34px !important;
  height: 34px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  background: rgba(240, 249, 255, 0.8) !important;
  color: #0284c7 !important;
  pointer-events: auto !important;
}

#page-timeline .timeline-label-head {
  position: sticky !important;
  right: 0 !important;
  z-index: 380 !important;
  min-width: var(--timeline-activity-col-width, 360px) !important;
  width: var(--timeline-activity-col-width, 360px) !important;
  max-width: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  overflow: visible !important;
  pointer-events: auto !important;
}

#page-timeline .timeline-activity-column-resize-handle {
  width: 12px;
  align-self: stretch;
  min-height: 42px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.15), rgba(14, 165, 233, 0.45), rgba(14, 165, 233, 0.15));
  cursor: ew-resize;
  position: relative;
  z-index: 410;
  pointer-events: auto !important;
  touch-action: none;
}

#page-timeline .timeline-activity-column-autofit {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #0284c7;
  background: rgba(224, 242, 254, 0.68);
  pointer-events: auto !important;
}

#page-timeline .timeline-bar {
  position: relative;
  z-index: 40;
  overflow: visible !important;
  pointer-events: auto;
}

#page-timeline .timeline-bar-resize-handle {
  position: absolute !important;
  top: 6px !important;
  bottom: 6px !important;
  width: 12px !important;
  height: auto !important;
  min-height: 0 !important;
  border-radius: 999px !important;
  background: rgba(14, 165, 233, 0.8) !important;
  border: 2px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15) !important;
  z-index: 330 !important;
  pointer-events: auto !important;
  cursor: ew-resize !important;
  touch-action: none !important;
  opacity: 1 !important;
  transform: none !important;
}

#page-timeline .timeline-bar-resize-handle.resize-start {
  right: -7px !important;
  left: auto !important;
}

#page-timeline .timeline-bar-resize-handle.resize-end {
  left: -7px !important;
  right: auto !important;
}

#page-timeline .timeline-bar-resize-handle:hover {
  transform: scaleX(1.25) !important;
}

#page-timeline .timeline-row-activity.is-row-dragging {
  opacity: 0.78;
  outline: 2px dashed rgba(14, 165, 233, 0.65);
  outline-offset: -3px;
}

#page-timeline .timeline-row-activity.is-drop-target-before::before,
#page-timeline .timeline-row-activity.is-drop-target-after::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  height: 3px;
  background: #0ea5e9;
  box-shadow: 0 0 18px rgba(14, 165, 233, 0.55);
  z-index: 390;
}

#page-timeline .timeline-row-activity.is-drop-target-before::before {
  top: 0;
}

#page-timeline .timeline-row-activity.is-drop-target-after::after {
  bottom: 0;
}

#timelineActivityTooltip,
#timelineFloatingTooltip,
.timeline-activity-tooltip,
.gantt-tooltip {
  pointer-events: none !important;
}

/* Final country dropdown stacking guard */
#page-calendar .nexora-calendar-controls-card,
#page-calendar .nexora-calendar-country-wrap,
#page-calendar .nexora-country-picker {
  position: relative !important;
  overflow: visible !important;
}

#page-calendar .nexora-calendar-controls-card {
  z-index: 2147483100 !important;
}

#page-calendar .nexora-country-picker {
  z-index: 2147483200 !important;
}

#page-calendar .nexora-country-picker-menu {
  z-index: 2147483300 !important;
  background: #0f213a !important;
  opacity: 1 !important;
  isolation: isolate !important;
}

[data-theme='light'] #page-calendar .nexora-country-picker-menu {
  background: #ffffff !important;
}

/* Arabic typography guard: keep platform text on Cairo while preserving icon fonts */
:root {
  --font: "Cairo", sans-serif !important;
}

html[lang='ar'],
html[lang='ar'] body,
html[lang='ar'] body *:not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands),
html[lang='ar'] button,
html[lang='ar'] input,
html[lang='ar'] textarea,
html[lang='ar'] select,
html[lang='ar'] option,
html[lang='ar'] .nexora-country-picker,
html[lang='ar'] .nexora-country-picker *:not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands) {
  font-family: var(--font) !important;
}

.fa,
.fas,
.fa-solid {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}

.far,
.fa-regular {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 400 !important;
}

.fab,
.fa-brands {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}

/* Documents center */
#page-documents {
  font-family: var(--font);
}

.documents-page-shell {
  display: grid;
  gap: 16px;
}

.documents-hero,
.documents-toolbar,
.documents-sidebar > *,
.documents-main {
  border: 1px solid rgba(69, 214, 255, 0.2);
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.08), rgba(168, 108, 246, 0.06)),
    var(--surface-primary);
  border-radius: 18px;
}

.documents-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}

.documents-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--nexora-cyan);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 6px;
}

.documents-hero h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 28px;
  font-weight: 900;
}

.documents-hero p {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
}

.documents-hero-actions,
.documents-path-row,
.documents-card-actions,
.documents-tree-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.documents-hero-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.documents-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(190px, 260px) minmax(170px, 220px);
  gap: 12px;
  padding: 14px;
}

.documents-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(69, 214, 255, 0.22);
  border-radius: 14px;
  background: var(--bg-input);
  color: var(--text-secondary);
}

.documents-search input,
.documents-toolbar select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(69, 214, 255, 0.22);
  border-radius: 14px;
  background: var(--bg-input);
  color: var(--text-primary);
  font: inherit;
  font-weight: 800;
  padding: 0 12px;
}

.documents-search input {
  min-height: 0;
  border: 0;
  background: transparent;
  padding: 0;
  outline: none;
}

.documents-layout {
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.documents-sidebar {
  display: grid;
  gap: 14px;
}

.documents-storage-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
}

.documents-storage-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.12);
}

.documents-storage-card span,
.documents-storage-card small,
.documents-storage-card em {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.documents-storage-card strong {
  display: block;
  margin: 3px 0;
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 900;
}

.documents-tree-card {
  padding: 14px;
}

.documents-tree-head {
  justify-content: space-between;
  margin-bottom: 12px;
}

.documents-tree-head strong {
  color: var(--text-primary);
  font-weight: 900;
}

.documents-tree-head button,
.documents-card-actions button,
.documents-up-btn {
  border: 1px solid rgba(69, 214, 255, 0.24);
  border-radius: 12px;
  background: rgba(69, 214, 255, 0.08);
  color: var(--text-primary);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.documents-tree-head button,
.documents-card-actions button {
  width: 34px;
  height: 34px;
}

.documents-up-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
}

.documents-project-tree {
  display: grid;
  gap: 8px;
}

.documents-project-tree button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  text-align: right;
}

.documents-project-tree button:hover,
.documents-project-tree button.active {
  color: var(--text-primary);
  border-color: rgba(69, 214, 255, 0.26);
  background: rgba(69, 214, 255, 0.1);
}

.documents-main {
  min-height: 520px;
  padding: 16px;
}

.documents-path-row {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.documents-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.documents-breadcrumbs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.documents-breadcrumbs button.active {
  color: var(--nexora-cyan);
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.documents-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 150px;
  padding: 14px;
  border: 1px solid rgba(69, 214, 255, 0.18);
  border-radius: 16px;
  background: rgba(8, 22, 46, 0.42);
  color: var(--text-primary);
}

.documents-card-open {
  display: grid;
  gap: 10px;
  justify-items: start;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 900;
  text-align: right;
  cursor: pointer;
}

.documents-card-open i,
.documents-file-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--nexora-cyan);
  background: rgba(69, 214, 255, 0.12);
  font-size: 20px;
}

.documents-card strong,
.documents-card-open span {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.documents-card small {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.documents-card-actions {
  margin-top: auto;
}

.documents-card-actions button:hover,
.documents-tree-head button:hover,
.documents-up-btn:hover {
  border-color: rgba(69, 214, 255, 0.6);
  background: rgba(69, 214, 255, 0.18);
}

.documents-empty-state,
.documents-empty-mini {
  color: var(--text-secondary);
  font-weight: 800;
}

.documents-empty-state {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 280px;
  text-align: center;
}

.documents-empty-state i {
  color: var(--nexora-cyan);
  font-size: 38px;
}

.documents-empty-state strong {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 900;
}

[data-theme='light'] .documents-hero,
[data-theme='light'] .documents-toolbar,
[data-theme='light'] .documents-sidebar > *,
[data-theme='light'] .documents-main {
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.12), rgba(168, 108, 246, 0.06)),
    rgba(255, 255, 255, 0.96);
}

[data-theme='light'] .documents-card {
  background: rgba(255, 255, 255, 0.84);
}

@media (max-width: 980px) {
  .documents-hero,
  .documents-layout,
  .documents-toolbar {
    grid-template-columns: 1fr;
  }

  .documents-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .documents-hero-actions {
    justify-content: stretch;
  }

  .documents-hero-actions button {
    flex: 1;
  }
}

/* Announcements rich editor text + image popup announcement */
#modal-announcement,
#modal-announcement *:not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands),
.ann-quill-toolbar,
.ann-quill-toolbar *:not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands),
.ann-quill-editor,
.ann-quill-editor *:not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands) {
  font-family: var(--font, "Cairo", sans-serif) !important;
}

.ann-quill-toolbar .ql-header .ql-picker-label[data-value='1']::before,
.ann-quill-toolbar .ql-header .ql-picker-item[data-value='1']::before {
  content: "عنوان 1" !important;
}

.ann-quill-toolbar .ql-header .ql-picker-label[data-value='2']::before,
.ann-quill-toolbar .ql-header .ql-picker-item[data-value='2']::before {
  content: "عنوان 2" !important;
}

.ann-quill-toolbar .ql-header .ql-picker-label[data-value='3']::before,
.ann-quill-toolbar .ql-header .ql-picker-item[data-value='3']::before {
  content: "عنوان 3" !important;
}

.ann-quill-toolbar .ql-header .ql-picker-label:not([data-value])::before,
.ann-quill-toolbar .ql-header .ql-picker-item:not([data-value])::before {
  content: "نص عادي" !important;
}

.ann-quill-toolbar .ql-size .ql-picker-label[data-value='small']::before,
.ann-quill-toolbar .ql-size .ql-picker-item[data-value='small']::before {
  content: "صغير" !important;
}

.ann-quill-toolbar .ql-size .ql-picker-label:not([data-value])::before,
.ann-quill-toolbar .ql-size .ql-picker-item:not([data-value])::before {
  content: "عادي" !important;
}

.ann-quill-toolbar .ql-size .ql-picker-label[data-value='large']::before,
.ann-quill-toolbar .ql-size .ql-picker-item[data-value='large']::before {
  content: "كبير" !important;
}

.ann-quill-toolbar .ql-size .ql-picker-label[data-value='huge']::before,
.ann-quill-toolbar .ql-size .ql-picker-item[data-value='huge']::before {
  content: "كبير جداً" !important;
}

.ann-quill-toolbar .ql-picker-label,
.ann-quill-toolbar .ql-picker-item {
  min-width: 72px;
  color: var(--text-primary) !important;
  letter-spacing: 0 !important;
}

.ann-quill-toolbar .ql-picker-options {
  z-index: 2147483001 !important;
  background: var(--surface-primary, var(--bg-card)) !important;
}

.ann-image-upload-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(69, 214, 255, 0.22);
  border-radius: 16px;
  background: rgba(69, 214, 255, 0.06);
}

.ann-image-preview {
  min-height: 180px;
  display: grid;
  place-items: center;
  gap: 8px;
  overflow: hidden;
  border: 1px dashed rgba(69, 214, 255, 0.34);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-weight: 800;
  text-align: center;
}

.ann-image-preview i {
  color: var(--nexora-cyan);
  font-size: 34px;
}

.ann-image-preview img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
}

.ann-image-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ann-image-upload-box small {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.ann-popup-box.ann-image-popup-box {
  width: min(820px, calc(100vw - 32px));
  max-height: calc(100vh - 42px);
  padding: 12px;
  border-radius: 24px;
  background: rgba(8, 18, 38, 0.96);
}

.ann-image-popup-box .ann-popup-header {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  z-index: 3;
  background: transparent;
  padding: 0;
}

.ann-image-popup-box .ann-popup-header .modal-close {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
  display: grid;
  place-items: center;
}

.ann-image-popup-box .ann-popup-body {
  padding: 0;
}

.ann-image-popup-box .ann-popup-body h2,
.ann-image-popup-box .ann-popup-meta,
.ann-image-popup-box .ann-popup-counter,
.ann-image-popup-box .btn-ann-read-full {
  display: none !important;
}

.ann-popup-image {
  width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  display: block;
  border-radius: 18px;
  background: #fff;
}

.ann-image-popup-box .ann-popup-image {
  max-height: calc(100vh - 66px);
}

.ann-image-popup-box .ann-popup-footer {
  display: none !important;
}

.ann-image-popup-box #annPopupClose {
  min-width: 140px;
}

.ann-badge-image {
  color: #67e8f9;
  border-color: rgba(69, 214, 255, 0.35);
  background: rgba(69, 214, 255, 0.12);
}

[data-theme='light'] .ann-image-upload-box {
  background: rgba(69, 214, 255, 0.08);
}

[data-theme='light'] .ann-popup-box.ann-image-popup-box {
  background: rgba(255, 255, 255, 0.98);
}

/* Restore Font Awesome after announcement typography guards */
#modal-announcement .fa,
#modal-announcement .fas,
#modal-announcement .fa-solid,
.ann-popup-overlay .fa,
.ann-popup-overlay .fas,
.ann-popup-overlay .fa-solid {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}

#modal-announcement .far,
#modal-announcement .fa-regular,
.ann-popup-overlay .far,
.ann-popup-overlay .fa-regular {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 400 !important;
}

#modal-announcement .fab,
#modal-announcement .fa-brands,
.ann-popup-overlay .fab,
.ann-popup-overlay .fa-brands {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}

/* Announcement rich editor toolbar polish */
#modal-announcement .ann-quill-toolbar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  row-gap: 8px !important;
  padding: 8px 10px !important;
  overflow: visible !important;
}

#modal-announcement .ann-quill-toolbar .ql-formats {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  border-inline-start: 1px solid rgba(148, 163, 184, 0.28);
}

#modal-announcement .ann-quill-toolbar .ql-formats:first-child {
  border-inline-start: 0;
}

#modal-announcement .ann-quill-toolbar button {
  display: inline-grid !important;
  place-items: center !important;
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  padding: 0 !important;
  line-height: 1 !important;
}

#modal-announcement .ann-quill-toolbar button svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
}

#modal-announcement .ann-quill-toolbar .ql-header,
#modal-announcement .ann-quill-toolbar .ql-size {
  width: 112px !important;
  min-width: 112px !important;
}

#modal-announcement .ann-quill-toolbar .ql-header .ql-picker-label,
#modal-announcement .ann-quill-toolbar .ql-size .ql-picker-label {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 30px !important;
  padding: 0 10px !important;
  white-space: nowrap !important;
}

#modal-announcement .ann-quill-toolbar .ql-color,
#modal-announcement .ann-quill-toolbar .ql-background {
  width: 34px !important;
  min-width: 34px !important;
  height: 30px !important;
}

#modal-announcement .ann-quill-toolbar .ql-color .ql-picker-label,
#modal-announcement .ann-quill-toolbar .ql-background .ql-picker-label {
  display: grid !important;
  place-items: center !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 30px !important;
  padding: 0 !important;
}

#modal-announcement .ann-quill-toolbar .ql-color .ql-picker-label::before,
#modal-announcement .ann-quill-toolbar .ql-background .ql-picker-label::before,
#modal-announcement .ann-quill-toolbar .ql-color .ql-picker-item::before,
#modal-announcement .ann-quill-toolbar .ql-background .ql-picker-item::before {
  content: none !important;
}

#modal-announcement .ann-quill-toolbar .ql-color .ql-picker-label svg,
#modal-announcement .ann-quill-toolbar .ql-background .ql-picker-label svg {
  display: block !important;
  width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  max-height: 18px !important;
  overflow: visible !important;
}

#modal-announcement .ann-quill-toolbar .ql-picker-options {
  min-width: 140px !important;
  z-index: 9999 !important;
}

#modal-announcement .ann-quill-toolbar .ql-color:not(.ql-expanded) .ql-picker-options,
#modal-announcement .ann-quill-toolbar .ql-background:not(.ql-expanded) .ql-picker-options {
  display: none !important;
}

#modal-announcement .ann-quill-toolbar .ql-color.ql-expanded .ql-picker-options,
#modal-announcement .ann-quill-toolbar .ql-background.ql-expanded .ql-picker-options {
  display: grid !important;
  grid-template-columns: repeat(6, 22px) !important;
  gap: 6px !important;
  width: 176px !important;
  min-width: 176px !important;
  padding: 10px !important;
}

#modal-announcement .ann-quill-toolbar .ql-color .ql-picker-item,
#modal-announcement .ann-quill-toolbar .ql-background .ql-picker-item {
  width: 22px !important;
  min-width: 22px !important;
  height: 22px !important;
  padding: 0 !important;
  border-radius: 6px !important;
}

#modal-announcement .ann-quill-toolbar .ql-align,
#modal-announcement .ann-quill-toolbar .ql-list,
#modal-announcement .ann-quill-toolbar .ql-blockquote,
#modal-announcement .ann-quill-toolbar .ql-link,
#modal-announcement .ann-quill-toolbar .ql-clean,
#modal-announcement .ann-quill-toolbar .ql-dir-toggle {
  flex: 0 0 auto !important;
}

/* Image announcements should open as image-only viewers */
.ann-view-modal.is-image-only {
  width: min(900px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 12px;
  overflow: hidden;
  background: rgba(8, 18, 38, 0.96);
}

[data-theme='light'] .ann-view-modal.is-image-only {
  background: rgba(255, 255, 255, 0.98);
}

.ann-view-modal.is-image-only .ann-view-banner,
.ann-view-modal.is-image-only .ann-view-badges,
.ann-view-modal.is-image-only .ann-view-title,
.ann-view-modal.is-image-only .ann-view-infobar,
.ann-view-modal.is-image-only .ann-view-footer {
  display: none !important;
}

.ann-view-modal.is-image-only .ann-view-header {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  z-index: 5;
  justify-content: flex-end;
  border: 0;
  padding: 0;
  background: transparent;
}

.ann-view-modal.is-image-only .ann-view-header-meta {
  display: none !important;
}

.ann-view-modal.is-image-only .modal-close {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  background: rgba(15, 23, 42, 0.72) !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.28);
}

[data-theme='light'] .ann-view-modal.is-image-only .modal-close {
  color: #102033 !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  background: rgba(255, 255, 255, 0.9) !important;
}

.ann-view-modal.is-image-only .ann-view-body {
  max-height: calc(100vh - 56px);
  padding: 0;
  overflow: auto;
  background: transparent;
}

.ann-view-modal.is-image-only .ann-view-content {
  padding: 0 !important;
  min-height: 0;
  background: transparent;
}

.ann-view-image-only {
  display: block;
  width: 100%;
  max-height: calc(100vh - 56px);
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
}

/* Documents member sharing */
.documents-share-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  margin: 2px auto 0;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(69, 214, 255, 0.28);
  background: rgba(69, 214, 255, 0.1);
  color: var(--nexora-cyan);
  font-size: 12px;
  font-weight: 900;
}

.documents-share-badge.private {
  color: var(--text-secondary);
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(148, 163, 184, 0.1);
}

.document-share-modal {
  width: min(560px, calc(100vw - 28px));
}

.documents-share-summary {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(69, 214, 255, 0.22);
  border-radius: 16px;
  background: rgba(69, 214, 255, 0.07);
}

.documents-share-summary span,
.documents-share-summary small {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.documents-share-summary strong {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 900;
}

.documents-share-list {
  display: grid;
  gap: 10px;
  max-height: 390px;
  margin-top: 14px;
  overflow: auto;
  padding-inline-end: 4px;
}

.documents-share-member {
  display: grid;
  grid-template-columns: auto 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.documents-share-member input {
  width: 18px;
  height: 18px;
  accent-color: var(--nexora-cyan);
}

.documents-share-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  background: var(--nexora-grad);
  font-weight: 900;
}

.documents-share-member strong,
.documents-share-member small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.documents-share-member strong {
  color: var(--text-primary);
  font-weight: 900;
}

.documents-share-member small {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}

[data-theme='light'] .documents-share-member {
  background: rgba(255, 255, 255, 0.78);
}
