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

:root {
  --card: #FFFFFF;
  --theme-d: #00866A;
  --theme-g: rgba(0, 168, 130, 0.10);
  --warn: #D97706;
  --danger: #DC2626;
  --info: #2563EB;
  --muted: #94A3B8;
  --text: #1A202C;
  --text-dim: #64748B;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'Inter', 'Helvetica Neue', sans-serif;
  --theme: #085d6a;
  --theme-light: #EEF3FF;
  --theme-mid: #C7D9FF;
  --green: #17B26A;
  --green-light: #ECFDF3;
  --orange: #F79009;
  --orange-light: #FFF6E5;
  --red: #F04438;
  --red-light: #FEF3F2;
  --purple: #7C3AED;
  --purple-light: #F5F3FF;

  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --border: #E5E9F0;
  --border-dark: #C8D0DC;

  --text-primary: #111827;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;

  --sidebar-w: 245px;
  --radius: 10px;
  --shadow: 0 1px 4px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .04);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, .10);

  --font: 'DM Sans', -apple-system, sans-serif;
}

html {
  font-size: 13px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
}

html,
body {
  height: 100%;
}

/* â”€â”€ SCROLLBAR â”€â”€ */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E0;
  border-radius: 2px;
}

a {
  text-decoration: none;
}

/* â”€â”€ SIDEBAR â”€â”€ */
#sidebar {
  width: 220px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100vh;
}

.logo-area {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #00D4A4, #4A9EFF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  flex-shrink: 0;
}

.logo-text {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.logo-sub {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

nav {
  flex: 1;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-icon {
  font-size: 14px;
  width: 16px;
  text-align: center;
}

.nav-label {
  flex: 1;
}

.nav-badge {
  background: var(--theme);
  color: #FFFFFF;
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 700;
}

/* â”€â”€ MAIN â”€â”€ */
#main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* â”€â”€ TOPBAR â”€â”€ */

#page-title {
  flex: 1;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

.search-wrap {
  position: relative;
  width: 320px;
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 20px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 7px 10px 7px 30px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  outline: none;
}

.search-input:focus {
  border-color: var(--theme);
  box-shadow: 0 0 0 2px var(--theme-g);
}

.search-input::placeholder {
  color: var(--text-dim);
}

.notif-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 15px;
  cursor: pointer;
  position: relative;
}

.notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--danger);
  animation: pulse 2s ease-in-out infinite;
}

/* â”€â”€ CONTENT â”€â”€ */
#content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 12px;
  cursor: pointer;
  font-family: var(--sans);
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-ghost:hover {
  border-color: var(--theme);
  color: var(--theme);
}

.btn-rework {
  background: rgba(231, 76, 60, 0.12);
  color: var(--danger);
  border: 1px solid rgba(231, 76, 60, 0.2);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  font-family: var(--sans);
  transition: all 0.15s;
}

.btn-rework:hover {
  background: rgba(231, 76, 60, 0.22);
}

/* â”€â”€ CARDS & LAYOUT â”€â”€ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.card-title {
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.grid-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.stat-theme-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #00d4a4;
}

.stat-label {
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.stat-value {
  color: var(--text);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  font-family: var(--mono);
}

.stat-sub {
  color: var(--text-dim);
  font-size: 11px;
  margin-top: 6px;
}

/* â”€â”€ STATUS BADGE â”€â”€ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

/* â”€â”€ PRIORITY BADGE â”€â”€ */
.priority {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* â”€â”€ TABLE â”€â”€ */
.table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 15px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  padding: 11px 16px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

tr:last-child td {
  border-bottom: none;
}

tbody tr {
  transition: background 0.1s;
}

tbody tr:hover {
  background: rgba(0, 0, 0, 0.025);
}

.mono {
  font-family: var(--mono);
}

/* â”€â”€ WORKFLOW PILLS â”€â”€ */
.wf-row {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.wf-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: default;
  min-width: 72px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.03);
}

.wf-pill.active {
  background: var(--theme-g);
  border-color: var(--theme);
}

.wf-pill .wf-num {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--text-dim);
}

.wf-pill.active .wf-num {
  color: var(--theme);
}

.wf-pill .wf-lbl {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-dim);
}

.wf-pill.active .wf-lbl {
  color: var(--theme);
}

.wf-arrow {
  color: var(--muted);
  font-size: 16px;
  flex-shrink: 0;
}

/* â”€â”€ ACTIVITY ITEM â”€â”€ */

.activity-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}

.activity-msg {
  color: var(--text);
  font-size: 12px;
}

.activity-time {
  color: var(--text-dim);
  font-size: 10px;
  margin-top: 2px;
}

/* â”€â”€ MY TASK ROW â”€â”€ */
.task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.task-title {
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-id {
  color: var(--text-dim);
  font-size: 10px;
  font-family: var(--mono);
  margin-top: 2px;
}

/* â”€â”€ FILTER CHIPS â”€â”€ */
.filter-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.chip {
  padding: 5px 12px;
  border-radius: 20px;
  border: none;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-dim);
}

.chip.active {
  background: var(--theme);
  color: #FFFFFF;
}

.chip:hover:not(.active) {
  background: rgba(0, 0, 0, 0.08);
}

/* â”€â”€ APPROVAL CARD â”€â”€ */
.approval-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 10px;
}

.approval-note {
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12px;
}

.approval-note-label {
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.file-chip {
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* â”€â”€ ALERT BARS â”€â”€ */
.alert-warn {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(245, 166, 35, 0.2);
  background: rgba(245, 166, 35, 0.06);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--warn);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 10px;
}

.alert-info {
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid rgba(0, 212, 164, 0.15);
  background: rgba(0, 212, 164, 0.05);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 12px;
}

/* â”€â”€ SYNC BAR â”€â”€ */
.sync-bar {
  display: flex;
  gap: 2px;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

/* â”€â”€ MODAL â”€â”€ */
#modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

#modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  max-width: 480px;
  min-width: 420px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.18s ease;
  display: block;
  left: auto;
  height: auto;
  top: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0;
  padding-bottom: 15px;
  border-bottom: 1px solid #E2E8F0;
}

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

.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 5px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--theme);
  box-shadow: 0 0 0 2px var(--theme-g);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-dim);
}

.form-textarea {
  resize: vertical;
}

.form-select option {
  background: var(--card);
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 6px;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

.btn-blue-ghost {
  background: transparent;
  color: var(--info);
  border: 1px solid rgba(74, 158, 255, 0.3);
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 12px;
  cursor: pointer;
  font-family: var(--sans);
  transition: all 0.15s;
}

.btn-blue-ghost:hover {
  background: rgba(74, 158, 255, 0.08);
}

/* â”€â”€ PART RESERVED TAG â”€â”€ */
.reserved-tag {
  padding: 6px 14px;
  border-radius: 7px;
  border: 1px solid var(--theme);
  color: var(--theme);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--mono);
}

/* â”€â”€ SECTION DIVIDER â”€â”€ */
.table-header-bar {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* â”€â”€ ANIMATIONS â”€â”€ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.4
  }
}

/* â”€â”€ SELECT OVERRIDE â”€â”€ */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238892A4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  cursor: pointer;
}

.filter-select {
  padding: 6px 28px 6px 10px;
  background-color: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-dim);
  font-family: var(--sans);
  font-size: 12px;
  outline: none;
}

.filter-select:focus {
  border-color: var(--theme);
}

.filter-select option {
  background: var(--card);
}

/* â”€â”€ EMPTY STATE â”€â”€ */
.empty-state {
  padding: 40px;
  text-align: center;
  color: var(--text-dim);
}

/* â”€â”€ PART NUMBER HIGHLIGHT â”€â”€ */
.part-no {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--theme);
  font-weight: 600;
}


.status-container {
  display: flex;
  gap: 25px;
  align-items: center;
  border-radius: 8px;
  width: fit-content;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #475569;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.count {
  font-weight: bold;
  font-size: 12px;
}

.success-text {
  color: #22c55e;
}

.pending-text {
  color: #f59e0b;
}

.failed-text {
  color: #ef4444;
}



/* ACTION BUTTONS (match your UI) */

.btn-sm-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  font-family: var(--sans);
  transition: all 0.15s;
  white-space: nowrap;
  margin-right: 6px;
}

.btn-sm-ghost:hover {
  border-color: var(--theme);
  color: var(--theme);
}

.btn-approve {
  background: rgba(0, 212, 164, 0.12);
  color: var(--theme);
  border: 1px solid rgba(0, 212, 164, 0.2);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  font-family: var(--sans);
  transition: all 0.15s;
}

.btn-approve:hover {
  background: rgba(0, 212, 164, 0.22);
}


/* TEXTAREA */
textarea {
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  border-radius: 6px;
  background: #F8F9FA;
  border: 1px solid #E2E8F0;
  color: #1A202C;
}

.text-warning {
  color: var(--warn);
}

.align-items-center {
  align-items: center;
}

/* HEADER */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

/* GRID */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

/* CARD */
.stat-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 20px;
}

/* TAG */
.reserved-tag {
  border: 1px solid #00D4A4;
  color: #00D4A4;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
}


/* COLORS */
.success {
  background: #00D4A420;
  color: #00D4A4;
}

.pending {
  background: #F5A62320;
  color: #F5A623;
}

.failed {
  background: #E74C3C20;
  color: #E74C3C;
}

.retry {
  background: #4A9EFF20;
  color: #4A9EFF;
}

/* GRID */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

/* MOBILE SIDEBAR FIX */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #1A202C;
  font-size: 20px;
  margin-right: 10px;
  float: right;
  text-align: right;
}

/* Overlay */
#sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
  display: none;
}

/* Mobile behavior */
@media (max-width: 992px) {

  #sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    height: 100%;
    width: 260px;
    z-index: 999;
    transition: 0.3s ease;
  }

  #sidebar.open {
    left: 0;
  }

  #main {
    margin-left: 0 !important;
  }

  .mobile-menu-btn {
    display: inline-block;
    position: absolute;
    right: 0px;
  }

  #sidebar-overlay.active {
    display: block;
  }
}

.form-select,
.form-input {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  color: #1A202C;
  font-size: 11px;
}

.form-select:focus,
.form-input:focus {
  border-color: #00D4A4;
  outline: none;
}

.min-w-75px {
  min-width: 75px;
}

.min-w-95px {
  min-width: 95px;
}

.min-w-100px {
  min-width: 100px;
}

.min-w-150px {
  min-width: 150px;
}

.min-w-200px {
  min-width: 200px;
}

.min-w-250px {
  min-width: 250px;
}

.min-w-300px {
  min-width: 300px;
}

.table-wrap th:last-child,
.table-wrap td:last-child {
  position: sticky;
  right: 0;
  background: #FFFFFF;
  z-index: 2;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.open {
  display: flex;
}

.table-wrap a {
  text-decoration: none;
}

.info-block {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.info-label {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.info-value {
  font-size: 13px;
  color: var(--text);
}

/* LIST */
.file-list {
  display: flex;
  flex-direction: column;
}

/* ROW */
.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: 0.2s;
}

.file-row:hover {
  background: #F8FAFC;
}

/* ICON */
.file-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.bg-primary {
  background: var(--theme) !important;
  color: white !important;
}

.file-dwg {
  background: rgba(0, 168, 130, 0.12);
  color: #00A882;
  font-size: 11px !important;
}

.file-pdf {
  background: rgba(231, 76, 60, 0.12);
  color: #E74C3C;
  font-size: 11px !important;
}

/* INFO */
.file-info {
  flex: 1;
}

.file-name {
  font-size: 13px;
  font-weight: 500;
}

.file-meta {
  font-size: 11px;
  color: var(--text-dim);
}

/* ACTIONS */
.file-actions {
  display: flex;
  gap: 6px;
}

.fs-13px {
  font-size: 13px !important;
}

.workflow-premium {
  display: flex;
  align-items: center;
  gap: 3px;
  overflow-x: auto;
  padding: 8px 4px;
}

/* STEP */

.wf-step {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
}
/* ICON */
.wf-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-bottom: 4px;
  border: 1px solid var(--border);
}

/* LABEL */
.wf-label {
  font-size: 11px;
  color: var(--text-dim);
}

/* LINE */
.wf-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  min-width: 20px;
}

/* DONE */
.wf-step.done .wf-icon {
  background: rgba(0, 168, 130, 0.12);
  color: #00A882;
  border-color: #00A882;
}

.wf-step.done .wf-label {
  color: #00A882;
}

/* ACTIVE */
.wf-step.active .wf-icon {
  background: rgba(245, 166, 35, 0.12);
  color: #F5A623;
  border-color: #F5A623;
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.15);
}

.wf-step.active .wf-label {
  color: #F5A623;
  font-weight: 600;
}

/* HOVER (nice touch) */
.wf-step:hover .wf-icon {
  transform: translateY(-2px);
}

.max-w-600px {
  max-width: 600px;
}

.justify-content-flex-end {
  justify-content: flex-end;
}

.justify-content-space-between {
  justify-content: space-between;
}

/* GRID */
.permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

/* CARD STYLE */
.perm-card {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: 0.2s;
  font-size: 13px;
}

/* HOVER */
.perm-card:hover {
  border-color: var(--theme);
  background: #F8FAFC;
}

/* CHECKBOX */
.perm-card input {
  theme-color: #00A882;
}

/* ALERT ROW */
.row-alert {
  background: rgba(231, 76, 60, 0.05);
}

/* ACTION PANEL */
.action-item {
  padding: 6px;
  font-size: 13px;
  border-bottom: 1px solid #eee;
}

.action-item span {
  display: block;
  font-size: 11px;
  color: #6c757d;
}

.action-item.urgent {
  color: #dc3545;
  font-weight: 600;
}

.analytics-card {
  background: #f8fafc;
  border-radius: 20px;
  padding: 20px;
}

.analytics-card.large {
  padding: 25px;
}

/* DONUT */
.donut-wrap {
  position: relative;
  width: 180px;
  margin: auto;
}

.donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.donut-center strong {
  font-size: 22px;
}

/* LEGEND */
.legend-list div {
  display: flex;
  justify-content: space-between;
  margin-top: 0px;
  align-items: center;
  gap: 5px;
}

.bg-yellow {
  background: #facc15;
}
/* STATUS LIST */
.status-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid #e5e7eb;
}

.status-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.bg-blue {
  background: #3b82f6;
}

.bg-purple {
  background: #8b5cf6;
}

.bg-gray {
  background: #9ca3af;
}

/* â”€â”€ SIDEBAR â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sidebar {
  width: var(--sidebar-w);
  background: #171E20;
  color: #CBD5E1;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  padding: 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: white;
}

.logo-text {
  font-size: 15px;
  font-weight: 700;
  color: #F1F5F9;
  letter-spacing: -.3px;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  color: #94A3B8;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: background .15s, color .15s;
  position: relative;
  border: none;
  border-left: 2px solid transparent;

}
.current-tag {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #00D4A420;
  color: #00D4A4;
}
.nav-item svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.nav-item:hover {
  background: rgba(255, 255, 255, .06);
  color: #F1F5F9;
}

.nav-item.active {
  background: rgba(79,127,250,.18);
  color: #47b8c9;
  border-left-color: #47b8c9;
}

.nav-item.active svg {
  color: #47b8c9;
}

.nav-badge {
  margin-left: auto;
  background: #374151;
  color: #CBD5E1;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 20px;
}

.nav-badge.urgent {
  background: var(--theme);
}

.nav-divider {
  border-top: 1px solid rgb(255 255 255 / 14%);
  margin: 8px 0;
}

.sidebar-user {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: var(--theme);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #F1F5F9;
}

.user-role {
  font-size: 11px;
  color: #64748B;
}

/* â”€â”€ MAIN CONTENT â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* â”€â”€ TOP BAR â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-left {
  display: flex;
  flex-direction: column;
  position: relative;
}

.page-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.page-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

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

.btn-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background .15s;
}

.btn-icon svg {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
}

.btn-icon:hover {
  background: var(--bg);
}

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

.btn-primary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--theme);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background .15s, transform .1s;
}

.btn-primary svg {
  width: 16px;
  height: 16px;
}

.btn-primary:hover {
  background: var(--theme);
}

.btn-primary.small {
  padding: 7px 13px;
  font-size: 13px;
}

/* â”€â”€ DASHBOARD GRID â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.dashboard-grid {
  display: block;
  grid-template-columns: 1fr 380px;
  gap: 18px;
  padding: 22px 20px 40px;
  align-items: start;
}

.d-grid {
  display: grid !important;
}

.full-width {
  grid-column: 1 / -1;
}

.col-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.col-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* â”€â”€ ALERTS ROW â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.alerts-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.alert-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  border-left: 4px solid var(--border);
  transition: box-shadow .15s;
}

.alert-card.urgent {
  border-left-color: var(--red);
}

.alert-card.warning {
  border-left-color: var(--orange);
}

.alert-card.info {
  border-left-color: var(--theme);
}

.alert-card.clickable {
  cursor: pointer;
}

.alert-card.clickable:hover {
  box-shadow: var(--shadow-md);
}

.alert-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.alert-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.alert-body strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.alert-body span {
  font-size: 12px;
  color: var(--text-secondary);
}

.alert-arrow {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* â”€â”€ PIPELINE â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pipeline-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.section-link {
  font-size: 13px;
  color: var(--theme);
  text-decoration: none;
  font-weight: 500;
}

.section-link:hover {
  text-decoration: underline;
}

.pipeline-stages {
  display: flex;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  gap: 4px;
  overflow-x: auto;
}

.stage-arrow {
  color: var(--text-muted);
  font-size: 18px;
  padding: 16px 4px 0;
  flex-shrink: 0;
}

.stage-card {
  flex: 1;
  min-width: 140px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  transition: 0.2s;
}

.stage-card:hover {
  background: #F8FAFC;
}

.stage-card.active {
  border-color: #00A882;
  background: rgba(0, 168, 130, 0.08);
}

.stage-card strong {
  font-size: 18px;
  display: block;
}

.stage-card small {
  font-size: 11px;
  color: var(--text-dim);
}

.stage-card.clickable {
  cursor: pointer;
}

.stage-card.clickable:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--theme);
}

.stage-card.stuck {
  border-color: var(--orange);
  background: #FFFBF0;
}

.stage-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.stage-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .5px;
  flex: 1;
}

.stage-count {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.stuck-badge {
  font-size: 8px;
  font-weight: 700;
  background: var(--orange-light);
  color: var(--orange);
  padding: 2px 6px;
  border-radius: 20px;
}

.stage-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 10px;
}

.stage-fill {
  height: 3px;
  border-radius: 2px;
}

.stage-fill.draft {
  background: #94A3B8;
}

.stage-fill.submitted {
  background: var(--theme);
}

.stage-fill.review {
  background: var(--orange);
}

.stage-fill.approved {
  background: var(--green);
}

.stage-fill.rework {
  background: var(--red);
}

.stage-fill.completed {
  background: #10B981;
}

.stage-items {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.stage-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
}

.stage-item.muted {
  opacity: .6;
}

.stage-item.stuck-item .item-id,
.stage-item.stuck-item .item-name {
  color: #B45309;
}

.item-id {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.item-name {
  flex: 1;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-owner {
  width: 22px;
  height: 22px;
  background: var(--theme-light);
  color: var(--theme);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stuck-owner {
  background: var(--orange-light);
  color: var(--orange);
  width: auto;
  border-radius: 4px;
  padding: 0 5px;
  font-size: 10px;
}

.stage-more {
  font-size: 11px;
  color: var(--theme);
  text-decoration: none;
  margin-top: 3px;
}

.stage-more:hover {
  text-decoration: underline;
}

/* â”€â”€ METRICS STRIP â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
  transition: box-shadow .15s;
}

.metric-card:hover {
  box-shadow: var(--shadow-md);
}

.metric-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.metric-value.red {
  color: var(--red);
}

.metric-value.orange {
  color: var(--orange);
}

.metric-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.metric-delta {
  font-size: 11px;
  color: var(--text-muted);
}

.metric-delta.positive {
  color: var(--green);
}

.metric-delta.negative {
  color: var(--red);
}

/* â”€â”€ PANELS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.panel-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
}

.panel-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--red-light);
  color: var(--red);
}

.panel-link {
  font-size: 13px;
  color: var(--theme);
  text-decoration: none;
  font-weight: 500;
}

.panel-link:hover {
  text-decoration: underline;
}

.panel-link-sm {
  font-size: 12px;
  color: var(--theme);
  text-decoration: none;
  font-weight: 500;
}

.panel-body {
  padding: 12px 0;
}

.panel-footer {
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.panel-footer .panel-link {
  font-size: 12.5px;
}

/* â”€â”€ ACTION ITEMS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.action-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}

.action-item:last-child {
  border-bottom: none;
}

.action-item.clickable:hover {
  background: var(--bg);
  cursor: pointer;
}

.action-status {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .4px;
  flex-shrink: 0;
  margin-top: 2px;
}

.action-status.review {
  background: var(--orange-light);
  color: var(--orange);
}

.action-status.submitted {
  background: var(--theme-light);
  color: var(--theme);
}

.action-status.rework-status {
  background: var(--red-light);
  color: var(--red);
}

.action-status.draft-status {
  background: #F1F5F9;
  color: #64748B;
}

.action-detail {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.action-id {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}

.action-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.action-meta {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.action-buttons {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  margin-top: 2px;
}

.btn-badge {
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-family: var(--font);
  transition: background .12s, color .12s;
}

.btn-badge.approve {
  border-color: var(--green);
  color: var(--green);
}

.btn-badge.approve:hover {
  background: var(--green);
  color: white;
}

.btn-badge.rework {
  border-color: var(--orange);
  color: var(--orange);
}

.btn-badge.rework:hover {
  background: var(--orange);
  color: white;
}

.btn-badge.view {
  border-color: var(--theme);
  color: var(--theme);
}

.btn-badge.view:hover {
  background: var(--theme);
  color: white;
}

/* â”€â”€ ACTIVITY FEED â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.activity-feed {
  display: flex;
  flex-direction: column;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-item.clickable:hover {
  background: var(--bg);
  cursor: pointer;
}

.activity-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.activity-avatar.green {
  background: var(--green);
}

.activity-avatar.orange {
  background: var(--orange);
}

.activity-avatar.blue {
  background: var(--theme);
}

.activity-avatar.purple {
  background: var(--purple);
}

.activity-avatar.red {
  background: var(--red);
}

.activity-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.activity-text {
  font-size: 12.5px;
  color: var(--text-primary);
}

.activity-text a {
  color: var(--theme);
  text-decoration: none;
}

.activity-text a:hover {
  text-decoration: underline;
}

.activity-time {
  font-size: 11px;
  color: var(--text-muted);
}

.activity-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  flex-shrink: 0;
}

.approved-tag {
  background: var(--green-light);
  color: var(--green);
}

.rework-tag {
  background: var(--orange-light);
  color: var(--orange);
}

.draft-tag {
  background: #F1F5F9;
  color: #64748B;
}

.sync-tag {
  background: var(--green-light);
  color: var(--green);
}

.failed-tag {
  background: var(--red-light);
  color: var(--red);
}

/* â”€â”€ SIMPRO SYNC â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sync-summary {
  display: flex;
  gap: 5px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}

.sync-stat {
  flex: 1;
  text-align: center;
}

.sync-num {
  display: block;
  font-size: 24px;
  font-weight: 800;
}

.sync-num.green {
  color: var(--green);
}

.sync-num.orange {
  color: var(--orange);
}

.sync-num.red {
  color: var(--red);
}

.sync-lbl {
  font-size: 11px;
  color: var(--text-secondary);
}

.sync-list {
  display: flex;
  flex-direction: column;
}

.sync-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}

.sync-row:last-child {
  border-bottom: none;
}

.sync-row.clickable:hover {
  background: var(--bg);
  cursor: pointer;
}

.sync-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sync-req {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}

.sync-part {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}

.sync-status-col {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sync-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

.sync-badge.synced {
  background: var(--green-light);
  color: var(--green);
}

.sync-badge.pending {
  background: var(--orange-light);
  color: var(--orange);
}

.sync-badge.failed {
  background: var(--red-light);
  color: var(--red);
}

.btn-retry {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--orange-light);
  color: var(--orange);
  border: 1px solid var(--orange);
  cursor: pointer;
  font-family: var(--font);
  transition: background .12s;
}

.btn-retry:hover {
  background: var(--orange);
  color: white;
}

.btn-simpro {
  font-size: 11px;
  font-weight: 600;
  color: var(--theme);
  text-decoration: none;
  white-space: nowrap;
}

.btn-simpro:hover {
  text-decoration: underline;
}

/* â”€â”€ TEAM WORKLOAD â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.team-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}

.team-member:last-child {
  border-bottom: none;
}

.team-member.clickable:hover {
  background: var(--bg);
  cursor: pointer;
}

.member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.member-avatar.purple {
  background: var(--purple);
}

.member-avatar.blue {
  background: var(--theme);
}

.member-avatar.orange {
  background: var(--orange);
}

.member-avatar.green {
  background: var(--green);
}

.member-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.member-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.member-role {
  font-size: 11px;
  color: var(--text-muted);
}

.member-load {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.load-bar {
  width: 70px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.load-fill {
  height: 4px;
  background: var(--theme);
  border-radius: 2px;
}

.load-fill.high {
  background: var(--red);
}

.load-count {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.load-count.load-high {
  color: var(--red);
  font-weight: 600;
}

/* â”€â”€ DEADLINES â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.deadline-list {
  display: flex;
  flex-direction: column;
}

.deadline-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}

.deadline-item:last-child {
  border-bottom: none;
}

.deadline-item.clickable:hover {
  background: var(--bg);
  cursor: pointer;
}

.deadline-item.overdue {
  background: #FFF5F5;
}

.deadline-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 38px;
  flex-shrink: 0;
  font-size: 10px;
  color: var(--text-muted);
}

.deadline-date span {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.deadline-date strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.overdue-date .deadline-date strong {
  color: var(--red);
}

.today-date span,
.today-date strong {
  color: var(--theme);
}

.deadline-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.deadline-id {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.deadline-status {
  font-size: 11.5px;
  color: var(--text-muted);
}

.today-badge {
  color: var(--theme);
  font-weight: 600;
}

/* â”€â”€ REQUESTS TABLE â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.table-wrapper {
  overflow-x: auto;
}

.table-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group {
  display: flex;
  gap: 8px;
}

.filter-select {
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 13px;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--surface);
  cursor: pointer;
  outline: none;
}

.filter-select:hover {
  border-color: var(--theme);
}

.requests-table {
  width: 100%;
  border-collapse: collapse;
}

.requests-table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 10px 14px;
  border-bottom: 2px solid var(--border);
  background: var(--bg);
  white-space: nowrap;
}

.requests-table td {
  padding: 11px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.table-row {
  transition: background .12s;
}

.table-row.clickable:hover {
  background: var(--theme-light);
  cursor: pointer;
}

.table-row.overdue-row {
  background: #FFF9F9;
}

.table-row.muted-row {
  opacity: .75;
}

.req-id {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.part-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.due-date {
  font-size: 12px;
  color: var(--text-secondary);
}

.overdue-date-cell {
  color: var(--red) !important;
  font-weight: 600;
}

.updated {
  font-size: 12px;
  color: var(--text-muted);
}

/* Status pills */
.status-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .3px;
  white-space: nowrap;
}

.status-pill.draft {
  background: #F1F5F9;
  color: #64748B;
}

.status-pill.submitted {
  background: var(--theme-light);
  color: var(--theme);
}

.status-pill.review {
  background: var(--orange-light);
  color: var(--orange);
}

.status-pill.approved-pill {
  background: var(--green-light);
  color: var(--green);
}

.status-pill.rework {
  background: var(--red-light);
  color: var(--red);
}

.status-pill.completed-pill {
  background: #F0FDF4;
  color: #166534;
}

/* Sync pills (table) */
.sync-pill {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

.sync-pill.synced {
  background: var(--green-light);
  color: var(--green);
}

.sync-pill.pending-sync {
  background: var(--orange-light);
  color: var(--orange);
}

.sync-pill.failed-sync {
  background: var(--red-light);
  color: var(--red);
}

.sync-pill.no-sync {
  background: #F1F5F9;
  color: #94A3B8;
}

/* Assignee chip */
.assignee-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 500;
}

.chip-av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chip-av.purple {
  background: var(--purple);
}

.chip-av.blue {
  background: var(--theme);
}

.chip-av.orange {
  background: var(--orange);
}

.chip-av.green {
  background: var(--green);
}

/* Table action buttons */
.actions-cell {
  white-space: nowrap;
}

.btn-xs {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-family: var(--font);
  margin-right: 4px;
  transition: background .12s, border-color .12s;
  text-decoration: none;
  display: inline-block;
}

.btn-xs:hover {
  background: var(--bg);
  border-color: var(--theme);
  color: var(--theme);
}

.approve-xs {
  border-color: var(--green);
  color: var(--green);
}

.approve-xs:hover {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.retry-xs {
  border-color: var(--orange);
  color: var(--orange);
}

.retry-xs:hover {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}

.simpro-xs {
  border-color: var(--theme);
  color: var(--theme);
}

.simpro-xs:hover {
  background: var(--theme);
  color: white;
  border-color: var(--theme);
}

/* Table footer */
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.table-count {
  font-size: 12px;
  color: var(--text-muted);
}

.pagination {
  display: flex;
  gap: 4px;
}

.page-btn {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  font-size: 12px;
  font-family: var(--font);
  cursor: pointer;
  transition: background .12s;
}

.page-btn:hover {
  background: var(--bg);
  border-color: var(--theme);
  color: var(--theme);
}

.page-btn.active {
  background: var(--theme);
  color: white;
  border-color: var(--theme);
}

.page-btn.disabled {
  opacity: .4;
  cursor: default;
  pointer-events: none;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MODAL
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.modal-panel {
  background: var(--surface);
  border-radius: 14px;
  width: 100%;
  max-width: 900px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  overflow: hidden;
  transform: translateY(-10px);
  transition: transform .2s;
}

.modal-overlay.open .modal-panel {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}

.modal-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-req-id {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}

.modal-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-close {
  min-width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s;
  margin-bottom: 5px;
}

.modal-close:hover {
  background: var(--bg);
  color: var(--text-primary);
}

/* Workflow status bar */
.modal-status-bar {
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.workflow-steps {
  display: flex;
  align-items: center;
  gap: 6px;
}


.wf-step.done {
  background: var(--green-light);
  border-color: var(--green);
  color: var(--green);
}

.wf-step.active {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
}

.wf-arrow {
  color: var(--text-muted);
  font-size: 14px;
}

/* Modal body */
.m-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  min-height: 420px;
}

.modal-left {
  padding: 20px 24px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modal-right {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-section h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* File list */
.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.file-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.file-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.file-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.file-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.file-actions {
  display: flex;
  gap: 6px;
}

.btn-file {
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
  font-family: var(--font);
  color: var(--theme);
  border-color: var(--theme);
  transition: background .12s;
}

.btn-file:hover {
  background: var(--theme);
  color: white;
}

/* Comments */
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.comment {
  display: flex;
  gap: 10px;
}

.comment-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comment-avatar.orange {
  background: var(--orange);
}

.comment-avatar.blue {
  background: var(--theme);
}

.comment-body {
  flex: 1;
}

.comment-author {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.comment-time {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 6px;
}

.comment-body p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.comment-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.comment-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 8px 12px;
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  transition: border-color .15s;
}

.comment-input:focus {
  border-color: var(--theme);
}

.btn-sm-blue {
  padding: 8px 14px;
  background: var(--theme);
  color: white;
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
}

.btn-sm-blue:hover {
  background: #3B68E8;
}

/* Modal meta card */
.modal-meta-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.meta-row {
  display: flex;
  align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}

.meta-row:last-child {
  border-bottom: none;
}

.meta-key {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
  width: 100px;
  flex-shrink: 0;
}

.meta-val {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

.meta-val .mono {
  font-family: var(--mono);
}

.ext-link {
  color: var(--theme);
  text-decoration: none;
  font-weight: 600;
}

.ext-link:hover {
  text-decoration: underline;
}

.btn-action {
  width: 100%;
  padding: 10px ;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .15s, transform .1s;
}

.btn-action:hover {
  transform: translateY(-1px);
}

.approve-btn {
  background: var(--green);
  color: white;
}

.approve-btn:hover {
  background: #13A35E;
}

.rework-btn {
  background: var(--orange-light);
  color: var(--orange);
  border-color: var(--orange);
}

.rework-btn:hover {
  background: var(--orange);
  color: white;
}

.neutral-btn {
  background: var(--bg);
  color: var(--text-secondary);
  border-color: var(--border);
}

.neutral-btn:hover {
  background: var(--border);
}

/* Revision list */
.revision-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rev-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 7px;
  background: var(--bg);
}

.rev-row.active-rev {
  background: var(--theme-light);
  border: 1px solid var(--theme-mid);
}

.rev-ver {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  width: 38px;
}

.rev-info {
  flex: 1;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.rev-current {
  font-size: 11px;
  font-weight: 700;
  color: var(--theme);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   TOAST NOTIFICATION
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font);
  color: white;
  background: #1E293B;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s, opacity .25s;
  z-index: 9999;
  max-width: 340px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.show.success {
  background: var(--green);
}

.toast.show.warning {
  background: var(--orange);
}

.toast.show.info {
  background: var(--theme);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SCROLLBAR
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   RESPONSIVE
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@media (max-width: 1200px) {
  .metrics-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1000px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .files-shell {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
}
.topbar {
  display: block;
}
  .col-right {
    grid-column: 1;
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-w: 0px;
  }

  .sidebar {
    display: none;
  }

  .alerts-row {
    grid-template-columns: 1fr;
  }

  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .ap-stats {
    grid-template-columns: repeat(2, 1fr) !important ;
  }
  .ap-card {
    display: block !important;
  }
  .m-body {
    grid-template-columns: 1fr;
  }

  .workflow-steps {
    flex-wrap: wrap;
  }
}

.border-right {
  border-right: 1px solid #eee;
}
 /* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
       FILES PAGE â€” extends style.css, no overrides
    â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
  /* â”€â”€ Three-column shell â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
  .files-shell {
    display: grid;
    grid-template-columns: 220px 1fr 340px;
    gap: 0;
    height: calc(100vh - 61px);
    /* topbar height */
    overflow: hidden;
}

/* â”€â”€ Explorer (left column) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.files-explorer {
    border-right: 1px solid var(--border, rgba(255, 255, 255, .08));
    overflow-y: auto;
    padding: 16px 0;
    background: var(--surface, #0f1623);
}

.explorer-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: var(--text-muted, #6b7a99);
    padding: 10px 18px 4px;
}

.explorer-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary, #94a3b8);
    cursor: pointer;
    border-radius: 0;
    transition: background .13s, color .13s;
    text-decoration: none;
    position: relative;
}

.explorer-item:hover {
    background: rgb(237 248 249);
}

.explorer-item.active {
    background: rgba(71, 184, 201, .10);
    color: #47b8c9;
    border-right: 2px solid #47b8c9;
}

.explorer-item .fa {
    width: 16px;
    text-align: center;
    font-size: 12px;
}

.explorer-count {
    margin-left: auto;
    font-size: 10.5px;
    font-weight: 700;
    background: rgba(255, 255, 255, .07);
    color: var(--text-muted, #6b7a99);
    padding: 1px 7px;
    border-radius: 20px;
}

.explorer-sub {
    padding-left: 36px;
}

.explorer-divider {
    border-top: 1px solid rgba(255, 255, 255, .06);
    margin: 8px 0;
}

.explorer-tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* â”€â”€ Files list (center column) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.files-list-col {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: var(--bg, #0b1120);
}

.files-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    border-bottom: 1px solid var(--border, rgba(255, 255, 255, .08));
    background: var(--surface, #0f1623);
    position: sticky;
    top: 0;
    z-index: 10;
    flex-wrap: wrap;
}

.files-search-wrap {
    position: relative;
    flex: 1;
    min-width: 160px;
}

.files-search-wrap .fa {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted, #6b7a99);
    font-size: 12px;
}

.files-search {
    width: 100%;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 7px;
    padding: 7px 10px 7px 30px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    color: #e2e8f0;
    outline: none;
    transition: border-color .15s;
}

.files-search:focus {
    border-color: #47b8c9;
}

.files-search::placeholder {
    color: var(--text-muted, #6b7a99);
}

.view-toggle {
    display: flex;
    gap: 2px;
    background: rgba(255, 255, 255, .05);
    border-radius: 7px;
    padding: 3px;
}

.view-btn {
    padding: 5px 9px;
    border: none;
    background: transparent;
    color: var(--text-muted, #6b7a99);
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    transition: background .13s, color .13s;
}

.view-btn.active {
    background: rgba(71, 184, 201, .18);
    color: #47b8c9;
}

.sort-select {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 7px;
    padding: 6px 10px;
    font-size: 12.5px;
    font-family: 'Inter', sans-serif;
    color: #94a3b8;
    cursor: pointer;
    outline: none;
}

.sort-select option {
    background: #1a2235;
}

/* Breadcrumb */
.files-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 12.5px;
    color: var(--text-muted, #6b7a99);
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.files-breadcrumb a {
    color: #47b8c9;
    text-decoration: none;
}

.files-breadcrumb a:hover {
    text-decoration: underline;
}

.bc-sep {
    color: rgba(255, 255, 255, .2);
}

/* File rows */
.files-table-head {
    display: grid;
    grid-template-columns: 32px 1fr 90px 100px 90px 70px 50px;
    gap: 0;
    padding: 8px 20px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--text-muted, #6b7a99);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    background: var(--surface, #0f1623);
}

.files-table-head .th-check {
    display: flex;
    align-items: center;
}

.file-row:hover {
    background: rgba(255, 255, 255, .03);
}

.file-row.selected {
    background: rgba(71, 184, 201, .07);
    border-left: 2px solid #47b8c9;
    padding-left: 18px;
}

.file-row.folder-row {
    opacity: .9;
}

.file-check input[type=checkbox] {
    cursor: pointer;
    accent-color: #47b8c9;
}

.file-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.file-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.fi-pdf {
    background: rgba(239, 68, 68, .15);
    color: #ef4444;
}

.fi-dwg {
    background: rgba(59, 130, 246, .15);
    color: #3b82f6;
}

.fi-folder {
    background: rgba(251, 191, 36, .12);
    color: #f59e0b;
}

.fi-step {
    background: rgba(139, 92, 246, .15);
    color: #8b5cf6;
}

.fi-xlsx {
    background: rgba(34, 197, 94, .15);
    color: #22c55e;
}

.fi-img {
    background: rgba(236, 72, 153, .15);
    color: #ec4899;
}

.file-name-text {
    min-width: 0;
}

.fname {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fname-sub {
    font-size: 11px;
    color: var(--text-muted, #6b7a99);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.td-cell {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 8px;
}

.td-mono {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11.5px;
    color: #6b7a99;
}

/* version badge */
.ver-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(71, 184, 201, .12);
    color: #47b8c9;
    border: 1px solid rgba(71, 184, 201, .2);
    cursor: pointer;
}

.ver-badge:hover {
    background: rgba(71, 184, 201, .22);
}

/* status pills (reuse existing .status-pill pattern) */
.spill {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.spill-approved {
    background: rgba(34, 197, 94, .12);
    color: #22c55e;
}

.spill-review {
    background: rgba(251, 191, 36, .12);
    color: #f59e0b;
}

.spill-draft {
    background: rgba(148, 163, 184, .1);
    color: #94a3b8;
}

.spill-rework {
    background: rgba(239, 68, 68, .12);
    color: #ef4444;
}

/* row actions */
.row-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity .13s;
}

.file-row:hover .row-actions {
    opacity: 1;
}

.file-row.selected .row-actions {
    opacity: 1;
}

.ra-btn {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 6px;
    background: rgba(255, 255, 255, .04);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    transition: background .12s, color .12s;
}

.ra-btn:hover {
    background: rgba(71, 184, 201, .18);
    color: #47b8c9;
    border-color: rgba(71, 184, 201, .3);
}

/* Grid view */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    padding: 18px 20px;
}

.file-card {
    background: var(--surface, #0f1623);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    padding: 16px 14px 12px;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
    position: relative;
}

.file-card:hover {
    border-color: rgba(71, 184, 201, .35);
    box-shadow: 0 4px 24px rgba(71, 184, 201, .08);
}

.file-card.selected {
    border-color: #47b8c9;
    background: rgba(71, 184, 201, .05);
}

.file-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 10px;
}

.file-card-name {
    font-size: 12.5px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 3px;
    line-height: 1.3;
}

.file-card-meta {
    font-size: 11px;
    color: #6b7a99;
}

.file-card-badges {
    display: flex;
    gap: 5px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.file-card-check {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
    transition: opacity .12s;
}

.file-card:hover .file-card-check,
.file-card.selected .file-card-check {
    opacity: 1;
}

/* Empty state */
.empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #6b7a99;
    text-align: center;
}

.empty-state .fa {
    font-size: 40px;
    margin-bottom: 16px;
    opacity: .4;
}

.empty-state p {
    font-size: 14px;
    margin: 0;
}

/* â”€â”€ Preview Panel (right column) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.files-preview {
    border-left: 1px solid rgba(255, 255, 255, .08);
    overflow-y: auto;
    background: var(--surface, #0f1623);
    display: flex;
    flex-direction: column;
}

.preview-header {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.preview-title-group {
    min-width: 0;
}

.preview-filename {
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-reqid {
    font-size: 11px;
    font-family: 'IBM Plex Mono', monospace;
    color: #6b7a99;
}

.preview-close {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 6px;
    background: transparent;
    color: #6b7a99;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: background .12s;
    flex-shrink: 0;
}

.preview-close:hover {
    background: rgba(255, 255, 255, .07);
}

/* Thumbnail */
.preview-thumb {
    background: rgb(237 248 249);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    position: relative;
    overflow: hidden;
}

.preview-thumb-icon {
    font-size: 56px;
    opacity: .25;
}

.preview-thumb-label {
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    background: rgba(0, 0, 0, .6);
    color: #94a3b8;
    padding: 2px 8px;
    border-radius: 4px;
}

.preview-open-btn {
    position: absolute;
    bottom: 10px;
    left: 12px;
}

/* Preview meta table */
.preview-meta {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.pmeta-row {
    display: flex;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    gap: 10px;
}

.pmeta-row:last-child {
    border-bottom: none;
}

.pmeta-key {
    font-size: 11.5px;
    color: #6b7a99;
    font-weight: 500;
    width: 100px;
    flex-shrink: 0;
}

.pmeta-val {
    font-size: 12.5px;
    color: #656565;
    font-weight: 500;
}

.pmeta-val a {
    color: #47b8c9;
    text-decoration: none;
}

.pmeta-val a:hover {
    text-decoration: underline;
}

.pmeta-mono {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
}

/* Preview actions */
.preview-actions {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.pact-row {
    display: flex;
    gap: 7px;
}

.pact-btn {
    flex: 1;
    padding: 8px 10px;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: opacity .13s, filter .13s;
}

.pact-btn:hover {
    opacity: .88;
    filter: brightness(1.07);
}

.pact-approve {
    background: rgba(34, 197, 94, .18);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, .25);
}

.pact-rework {
    background: rgba(251, 191, 36, .12);
    color: #f59e0b;
    border: 1px solid rgba(251, 191, 36, .2);
}

.pact-download {
    background: rgba(71, 184, 201, .12);
    color: #47b8c9;
    border: 1px solid rgba(71, 184, 201, .2);
}

.pact-upload {
    background: rgba(139, 92, 246, .12);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, .2);
}

/* Version history */
.preview-section {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.preview-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #6b7a99;
    margin-bottom: 10px;
}

.ver-history-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 7px;
    border: 1px solid transparent;
    margin-bottom: 4px;
    transition: background .12s;
    cursor: pointer;
}

.ver-history-row:hover {
    background: rgba(255, 255, 255, .04);
}

.ver-history-row.current-ver {
    background: rgba(71, 184, 201, .08);
    border-color: rgba(71, 184, 201, .2);
}

.ver-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(255, 255, 255, .15);
}

.ver-dot.current {
    background: #47b8c9;
}

.ver-history-info {
    flex: 1;
}

.ver-num {
    font-size: 12px;
    font-weight: 700;
}

.ver-by {
    font-size: 11px;
    color: #6b7a99;
}

.ver-date {
    font-size: 11px;
    color: #6b7a99;
    margin-left: auto;
    white-space: nowrap;
}

.ver-cur-badge {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .4px;
    background: rgba(71, 184, 201, .18);
    color: #47b8c9;
    padding: 1px 6px;
    border-radius: 20px;
}

/* Comments */
.preview-comments {
    padding: 14px 18px;
    flex: 1;
}

.pc-item {
    display: flex;
    gap: 9px;
    margin-bottom: 14px;
}

.pc-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 9.5px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pc-body {
    flex: 1;
}

.pc-author {
    font-size: 12px;
    font-weight: 600;
}

.pc-time {
    font-size: 10.5px;
    color: #6b7a99;
    margin-left: 6px;
}

.pc-text {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
    line-height: 1.5;
}

.pc-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.pc-input {
    flex: 1;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 7px;
    padding: 7px 11px;
    font-size: 12.5px;
    font-family: 'Inter', sans-serif;
    color: #e2e8f0;
    outline: none;
    transition: border-color .15s;
}

.pc-input:focus {
    border-color: #47b8c9;
}

.pc-send {
    padding: 7px 13px;
    border-radius: 7px;
    background: #47b8c9;
    color: #0b1120;
    border: none;
    font-size: 12.5px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: opacity .13s;
}

.pc-send:hover {
    opacity: .85;
}

/* upload modal specifics */
.upload-drop {
    border: 2px dashed rgba(71, 184, 201, .3);
    border-radius: 10px;
    padding: 32px 20px;
    text-align: center;
    color: #6b7a99;
    font-size: 13px;
    background: rgba(71, 184, 201, .03);
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.upload-drop:hover {
    border-color: #47b8c9;
    background: rgba(71, 184, 201, .06);
}

.upload-drop .fa {
    font-size: 28px;
    color: #47b8c9;
    margin-bottom: 8px;
    display: block;
}

/* right-click context menu */
.ctx-menu {
    position: fixed;
    z-index: 9999;
    background: #1a2235;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .4);
    min-width: 180px;
    padding: 5px 0;
    display: none;
}

.ctx-menu.visible {
    display: block;
}

.ctx-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    font-size: 13px;
    color: #cbd5e1;
    cursor: pointer;
    transition: background .12s;
}

.ctx-item:hover {
    background: rgba(71, 184, 201, .1);
    color: #47b8c9;
}

.ctx-item .fa {
    width: 14px;
    text-align: center;
    font-size: 12px;
}

.ctx-divider {
    border-top: 1px solid rgba(255, 255, 255, .07);
    margin: 4px 0;
}

.ctx-item.danger {
    color: #ef4444;
}

.ctx-item.danger:hover {
    background: rgba(239, 68, 68, .08);
    color: #ef4444;
}

/* selection banner */
.sel-banner {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 9px 20px;
    background: rgba(71, 184, 201, .1);
    border-bottom: 1px solid rgba(71, 184, 201, .2);
    font-size: 13px;
    color: #47b8c9;
    font-weight: 600;
}

.sel-banner.visible {
    display: flex;
}

.sel-banner .fa {
    font-size: 12px;
}

.sel-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

/* stat cards for files page */
.files-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.fstat {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 8px;
    padding: 11px 14px;
}

.fstat-val {
    font-size: 22px;
    font-weight: 800;
    color: #e2e8f0;
    line-height: 1.1;
}

.fstat-label {
    font-size: 11px;
    color: #6b7a99;
    margin-top: 2px;
}

/* Colour helpers matching existing palette */
.c-cyan {
    color: #47b8c9;
}

.c-green {
    color: #22c55e;
}

.c-orange {
    color: #f59e0b;
}

.c-red {
    color: #ef4444;
}

.c-purple {
    color: #a78bfa;
}

/* avatar colours reuse existing pattern */
.av-green {
    background: #16a34a;
}

.av-blue {
    background: #2563eb;
}

.av-orange {
    background: #d97706;
}

.av-purple {
    background: #7c3aed;
}

.av-cyan {
    background: #0891b2;
}

/* List view hidden by default */
.list-view {
    display: block;
}

.grid-view {
    display: none;
}

.mode-grid .list-view {
    display: none;
}

.mode-grid .grid-view {
    display: block;
}

/* scrollbar match */
.files-explorer::-webkit-scrollbar,
.files-list-col::-webkit-scrollbar,
.files-preview::-webkit-scrollbar {
    width: 5px;
}

.files-explorer::-webkit-scrollbar-thumb,
.files-list-col::-webkit-scrollbar-thumb,
.files-preview::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .1);
    border-radius: 3px;
}

/* modal overrides for upload */
#uploadModal .modal {
    max-width: 500px;
}

/* No-select on rows */
.file-row,
.file-card {
    user-select: none;
}
 /* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
       APPROVALS PAGE â€” extends style.css, no overrides
    â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
/* â”€â”€ Page layout â”€â”€ */
.ap-content {
  flex: 1;
  overflow-y: auto;
  padding: 22px 24px 40px;
  background: var(--bg);
}

/* â”€â”€ Stats strip â”€â”€ */
.ap-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.ap-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  cursor: pointer;
  transition: box-shadow .15s, border-color .15s;
  position: relative;
  overflow: hidden;
}
.ap-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.ap-stat.s-pending::before  { background: var(--orange); }
.ap-stat.s-approved::before { background: var(--green); }
.ap-stat.s-rework::before   { background: var(--red); }
.ap-stat.s-overdue::before  { background: #7C3AED; }
.ap-stat:hover { box-shadow: var(--shadow-md); border-color: var(--border-dark); }
.ap-stat:hover.s-pending  { border-color: var(--orange); }
.ap-stat:hover.s-approved { border-color: var(--green); }
.ap-stat:hover.s-rework   { border-color: var(--red); }
.ap-stat:hover.s-overdue  { border-color: var(--purple); }
.ap-stat-val {
  font-size: 32px;
  font-weight: 800;
  font-family: var(--mono);
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.ap-stat.s-pending  .ap-stat-val { color: var(--orange); }
.ap-stat.s-approved .ap-stat-val { color: var(--green); }
.ap-stat.s-rework   .ap-stat-val { color: var(--red); }
.ap-stat.s-overdue  .ap-stat-val { color: var(--purple); }
.ap-stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-dim);
}
.ap-stat-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 5px;
}
.ap-stat-icon {
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
}

/* â”€â”€ Section header row â”€â”€ */
.ap-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}
.ap-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.ap-section-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* â”€â”€ Filter chips â”€â”€ */
.ap-filter-row {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* â”€â”€ Approval queue cards â”€â”€ */
.ap-queue {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.ap-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 4px solid var(--border);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  transition: box-shadow .15s, border-color .15s;
  box-shadow: var(--shadow);
}
.ap-card:hover { box-shadow: var(--shadow-md); }
.ap-card.urgent  { border-left-color: var(--red); }
.ap-card.pending { border-left-color: var(--orange); }
.ap-card.info    { border-left-color: var(--theme); }
.ap-card.done    { border-left-color: var(--green); opacity: .75; }

/* Priority indicator */
.ap-priority-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}
.dot-urgent   { background: var(--red); box-shadow: 0 0 0 3px rgba(240,68,56,.15); }
.dot-high     { background: var(--orange); }
.dot-normal   { background: var(--theme); }
.dot-low      { background: var(--muted); }

/* Card body */
.ap-card-body { min-width: 0; }
.ap-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.ap-req-id {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-dim);
  font-weight: 600;
}
.ap-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ap-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.ap-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-dim);
}
.ap-meta-item .fa { font-size: 10px; color: var(--muted); }
.ap-meta-item strong { color: var(--text); font-weight: 600; }

/* Workflow progress in card */
.ap-wf-mini {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}
.ap-wf-dot {
  width: 22px; height: 4px;
  border-radius: 2px;
  background: var(--border);
}
.ap-wf-dot.done   { background: var(--green); }
.ap-wf-dot.active { background: var(--orange); }

/* Card actions */
.ap-card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.ap-card-btns {
  display: flex;
  gap: 6px;
}
.ap-time-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
}
.ap-time-badge.overdue { color: var(--red); }

/* â”€â”€ Approval table â”€â”€ */
.ap-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.ap-table-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
}
.ap-table-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
}
.ap-table-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ap-table { width: 100%; border-collapse: collapse; }
.ap-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: .07em;
  text-transform: uppercase;
  background: rgba(0,0,0,.025);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.ap-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text);
  vertical-align: middle;
}
.ap-table tbody tr { transition: background .1s; cursor: pointer; }
.ap-table tbody tr:hover { background: rgba(0,0,0,.025); }
.ap-table tbody tr:last-child td { border-bottom: none; }
.ap-table tbody tr.overdue-row { background: rgba(240,68,56,.025); }

/* Assignee chip in table */
.asn-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}
.asn-av {
  width: 24px; height: 24px;
  border-radius: 50%;
  font-size: 9px; font-weight: 800;
  color: white;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.av-theme  { background: var(--theme); }
.av-orange { background: var(--orange); }
.av-green  { background: var(--green); }
.av-purple { background: var(--purple); }
.av-red    { background: var(--red); }
.av-blue   { background: #2563EB; }

/* Table row actions */
.tbl-acts { display: flex; gap: 5px; }

.tbl-act-btn.approve { border-color: var(--green); color: var(--green); }
.tbl-act-btn.approve:hover { background: var(--green); color: white; }
.tbl-act-btn.rework  { border-color: var(--orange); color: var(--orange); }
.tbl-act-btn.rework:hover { background: var(--orange); color: white; }

/* Due date cell */
.due-cell { font-size: 12px; white-space: nowrap; }
.due-cell.overdue { color: var(--red); font-weight: 700; }
.due-cell.today   { color: var(--orange); font-weight: 700; }
.due-cell.soon    { color: var(--text-dim); }

/* â”€â”€ Approval detail slide panel â”€â”€ */
.detail-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 400;
  display: none;
  justify-content: flex-end;
}
.detail-overlay.open { display: flex; }
.detail-panel {
  width: 560px;
  max-width: 95vw;
  background: var(--surface);
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,.12);
  animation: slideIn .22s ease;
}
@keyframes slideIn {
  from { transform: translateX(40px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

.dp-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
}
.dp-header-body { flex: 1; min-width: 0; }
.dp-req-id { font-family: var(--mono); font-size: 11px; color: var(--text-dim); margin-bottom: 3px; }
.dp-title  { font-size: 16px; font-weight: 800; color: var(--text); line-height: 1.3; }
.dp-close {
  width: 30px; height: 30px;
  border: 1px solid var(--border); border-radius: 7px;
  background: transparent; color: var(--text-dim);
  cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .12s;
}
.dp-close:hover { background: var(--bg); color: var(--text); }

/* Workflow tracker in detail panel */
.dp-workflow {
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}
.dp-wf-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-muted); margin-bottom: 10px;
}
.dp-wf-track {
  display: flex;
  align-items: center;
  gap: 0;
}
.dp-wf-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.dp-wf-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all .2s;
}
.dp-wf-step.done .dp-wf-circle   { background: var(--green); border-color: var(--green); color: white; }
.dp-wf-step.active .dp-wf-circle { background: var(--orange); border-color: var(--orange); color: white; box-shadow: 0 0 0 4px rgba(247,144,9,.15); }
.dp-wf-step-label { font-size: 10px; font-weight: 600; color: var(--text-dim); white-space: nowrap; }
.dp-wf-step.done .dp-wf-step-label   { color: var(--green); }
.dp-wf-step.active .dp-wf-step-label { color: var(--orange); font-weight: 700; }
.dp-wf-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-bottom: 16px;
  min-width: 20px;
}
.dp-wf-line.done { background: var(--green); }

/* Detail panel body */
.dp-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dp-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  padding: 0 22px;
}
.dp-tab {
  padding: 11px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.dp-tab:hover { color: var(--text); }
.dp-tab.active { color: var(--theme); border-bottom-color: var(--theme); }

.dp-tab-content { display: none; flex: 1; overflow-y: auto; padding: 18px 22px; }
.dp-tab-content.active { display: block; }

/* Meta grid in detail */
.dp-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.dp-meta-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.dp-meta-key {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.dp-meta-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.dp-meta-val a { color: var(--theme); text-decoration: none; font-weight: 700; }
.dp-meta-val a:hover { text-decoration: underline; }
.dp-meta-val.mono { font-family: var(--mono); font-size: 12px; }

/* Files in detail */
.dp-file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  background: var(--bg);
}
.dp-file-icon {
  width: 34px; height: 34px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.dp-file-info { flex: 1; min-width: 0; }
.dp-file-name { font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-file-meta { font-size: 11px; color: var(--text-dim); }
.dp-file-acts { display: flex; gap: 5px; flex-shrink: 0; }

/* Comments in detail */
.dp-comment {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.dp-c-av {
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 9.5px; font-weight: 800;
  color: white;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.dp-c-body { flex: 1; }
.dp-c-author { font-size: 12px; font-weight: 700; color: var(--text); }
.dp-c-time   { font-size: 10.5px; color: var(--text-muted); margin-left: 6px; font-weight: 400; }
.dp-c-text   { font-size: 12.5px; color: var(--text-secondary); margin-top: 3px; line-height: 1.55; }
.dp-c-input-row {
  display: flex; gap: 8px; align-items: center;
  padding-top: 12px; border-top: 1px solid var(--border);
  margin-top: 4px;
}
.dp-c-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-family: var(--font);
  color: var(--text);
  background: rgba(0,0,0,.03);
  outline: none;
}
.dp-c-input:focus { border-color: var(--theme); box-shadow: 0 0 0 2px var(--theme-g); }

/* Decision section in detail */
.dp-decision {
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}
.dp-decision-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-muted); margin-bottom: 10px;
}
.dp-decision-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.dp-dec-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px; font-weight: 700;
  font-family: var(--font);
  cursor: pointer; border: 1px solid transparent;
  display: flex; align-items: center; justify-content: center;
  gap: 7px;
  transition: all .15s;
}
.dp-dec-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.dec-approve { background: var(--green); color: white; border-color: var(--green); }
.dec-approve:hover { background: #13A35E; }
.dec-rework  { background: var(--orange-light); color: var(--orange); border-color: var(--orange); }
.dec-rework:hover { background: var(--orange); color: white; }
.dec-reject  { background: var(--red-light); color: var(--red); border-color: var(--red); }
.dec-reject:hover { background: var(--red); color: white; }
.dec-forward { background: var(--surface); color: var(--theme); border-color: var(--theme); }
.dec-forward:hover { background: var(--theme); color: white; }
.dp-note-row { display: flex; gap: 8px; }
.dp-note-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  outline: none;
}
.dp-note-input:focus { border-color: var(--theme); box-shadow: 0 0 0 2px var(--theme-g); }

/* â”€â”€ Timeline in history tab â”€â”€ */
.dp-timeline { position: relative; padding-left: 24px; }
.dp-timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 4px; bottom: 4px;
  width: 2px; background: var(--border);
}
.dp-tl-item { position: relative; margin-bottom: 18px; }
.dp-tl-dot {
  position: absolute;
  left: -21px; top: 3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
}
.dp-tl-dot.green  { background: var(--green);  border-color: var(--green); }
.dp-tl-dot.orange { background: var(--orange); border-color: var(--orange); }
.dp-tl-dot.blue   { background: var(--theme);  border-color: var(--theme); }
.dp-tl-dot.red    { background: var(--red);    border-color: var(--red); }
.dp-tl-dot .fa    { font-size: 6px; color: white; }
.dp-tl-time  { font-size: 10.5px; color: var(--text-muted); margin-bottom: 2px; }
.dp-tl-event { font-size: 12.5px; color: var(--text); font-weight: 600; }
.dp-tl-note  { font-size: 12px; color: var(--text-dim); margin-top: 2px; line-height: 1.5; }

/* â”€â”€ Empty state â”€â”€ */
.ap-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-dim);
}
.ap-empty .fa { font-size: 38px; opacity: .2; margin-bottom: 14px; color: var(--theme); }
.ap-empty h4  { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.ap-empty p   { font-size: 13px; }

/* â”€â”€ Pagination â”€â”€ */
.ap-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  font-size: 12px;
  color: var(--text-dim);
}
.pg-btns { display: flex; gap: 4px; }
.pg-btn {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  font-size: 12px;
  font-family: var(--font);
  color: var(--text-dim);
  cursor: pointer;
  transition: all .12s;
}
.pg-btn:hover { border-color: var(--theme); color: var(--theme); }
.pg-btn.active { background: var(--theme); color: white; border-color: var(--theme); }
.pg-btn.disabled { opacity: .4; cursor: default; pointer-events: none; }

/* â”€â”€ Bulk action bar â”€â”€ */
.bulk-bar {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: rgba(8,93,106,.07);
  border: 1px solid rgba(8,93,106,.18);
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--theme);
}
.bulk-bar.visible { display: flex; }
.bulk-actions { display: flex; gap: 8px; margin-left: auto; }

/* â”€â”€ Alert banner â”€â”€ */
.ap-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 9px;
  border: 1px solid;
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 16px;
  cursor: pointer;
  transition: opacity .15s;
}
.ap-alert:hover { opacity: .85; }
.ap-alert.overdue-alert {
  background: rgba(240,68,56,.06);
  border-color: rgba(240,68,56,.2);
  color: var(--red);
}
.ap-alert.pending-alert {
  background: rgba(247,144,9,.06);
  border-color: rgba(247,144,9,.2);
  color: var(--orange);
}
.ap-alert .fa { font-size: 14px; }
.ap-alert-text { flex: 1; }
.ap-alert-text strong { display: block; font-size: 13px; }
.ap-alert-text span { font-size: 11.5px; opacity: .8; }

    /* Overdue highlight */
    .ap-content input[type=checkbox] { accent-color: var(--theme); cursor: pointer; }
  /* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
           SIMPRO SYNC PAGE
        â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

        .sync-content {
          padding: 22px 24px 40px;
          background: var(--bg);
      }

      /* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
         STATS
      â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

      .sync-stats {
          display: grid;
          grid-template-columns: repeat(5, 1fr);
          gap: 14px;
          margin-bottom: 22px;
      }
      .tag-pending {
        background: #ffda00;
    }
      .sync-stat {
          position: relative;
          overflow: hidden;
          background: var(--surface);
          border: 1px solid var(--border);
          border-radius: var(--radius);
          padding: 18px 20px;
          transition: .15s;
          cursor: pointer;
          text-align: left;
      }

      .sync-stat:hover {
          border-color: var(--border-dark);
          box-shadow: var(--shadow-md);
      }

      .sync-stat::before {
          content: '';
          position: absolute;
          left: 0;
          right: 0;
          top: 0;
          height: 3px;
      }

      .sync-stat.synced::before {
          background: var(--green);
      }

      .sync-stat.pending::before {
          background: var(--orange);
      }

      .sync-stat.failed::before {
          background: var(--red);
      }

      .sync-stat.total::before {
          background: var(--theme);
      }

      .sync-stat-value {
          font-size: 34px;
          font-weight: 800;
          line-height: 1;
          font-family: var(--mono);
          margin-bottom: 5px;
      }

      .sync-stat.synced .sync-stat-value {
          color: var(--green);
      }

      .sync-stat.pending .sync-stat-value {
          color: var(--orange);
      }

      .sync-stat.failed .sync-stat-value {
          color: var(--red);
      }

      .sync-stat.total .sync-stat-value {
          color: var(--theme);
      }

      .sync-stat-label {
          font-size: 11px;
          text-transform: uppercase;
          letter-spacing: .08em;
          font-weight: 700;
          color: var(--text-dim);
      }

      .sync-stat-sub {
          margin-top: 6px;
          font-size: 11px;
          color: var(--text-muted);
      }

      .sync-stat-icon {
          position: absolute;
          right: 18px;
          top: 50%;
          transform: translateY(-50%);
          font-size: 28px;
      }

      /* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
         LAYOUT
      â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

      .sync-grid {
          display: grid;
          grid-template-columns: 1.2fr .8fr;
          gap: 18px;
          margin-bottom: 20px;
      }

      .sync-panel {
          background: var(--surface);
          border: 1px solid var(--border);
          border-radius: var(--radius);
          box-shadow: var(--shadow);
          overflow: hidden;
      }

      .sync-panel-header {
          padding: 16px 18px;
          border-bottom: 1px solid var(--border);
          display: flex;
          align-items: center;
          justify-content: space-between;
          gap: 10px;
      }

      .sync-panel-title {
          font-size: 14px;
          font-weight: 700;
          color: var(--text);
      }

      .sync-panel-body {
          padding: 18px;
      }

      /* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
         LIVE STATUS
      â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

      .live-row {
          display: flex;
          align-items: center;
          justify-content: space-between;
          gap: 12px;
          padding: 12px 0;
          border-bottom: 1px solid var(--border);
      }

      .live-row:last-child {
          border-bottom: none;
          padding-bottom: 0;
      }

      .live-left {
          display: flex;
          align-items: center;
          gap: 12px;
          min-width: 0;
      }

      .sync-icon {
          width: 42px;
          height: 42px;
          border-radius: 10px;
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 16px;
          flex-shrink: 0;
      }

      .icon-green {
          background: rgba(34, 197, 94, .12);
          color: var(--green);
      }

      .icon-red {
          background: rgba(239, 68, 68, .12);
          color: var(--red);
      }

      .icon-orange {
          background: rgba(245, 158, 11, .12);
          color: var(--orange);
      }

      .live-info {
          min-width: 0;
      }

      .live-title {
          font-size: 13px;
          font-weight: 700;
          color: var(--text);
          margin-bottom: 2px;
      }

      .live-meta {
          font-size: 11.5px;
          color: var(--text-dim);
      }

      .sync-pill {
          padding: 6px 10px;
          border-radius: 30px;
          font-size: 10px;
          font-weight: 700;
          letter-spacing: .05em;
          text-transform: uppercase;
          white-space: nowrap;
      }

      .pill-success {
          background: rgba(34, 197, 94, .12);
          color: var(--green);
      }

      .pill-failed {
          background: rgba(239, 68, 68, .12);
          color: var(--red);
      }

      .pill-pending {
          background: rgba(245, 158, 11, .12);
          color: var(--orange);
      }

      /* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
         QUEUE
      â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

      .queue-card {
          border: 1px solid var(--border);
          border-left: 4px solid var(--theme);
          border-radius: 10px;
          padding: 14px;
          margin-bottom: 10px;
          transition: .15s;
          cursor: pointer;
          background: var(--surface);
      }

      .queue-card:hover {
          box-shadow: var(--shadow-md);
      }

      .queue-card.failed {
          border-left-color: var(--red);
      }

      .queue-card.pending {
          border-left-color: var(--orange);
      }

      .queue-top {
          display: flex;
          align-items: center;
          justify-content: space-between;
          gap: 10px;
          margin-bottom: 6px;
      }

      .queue-id {
          font-family: var(--mono);
          font-size: 11px;
          color: var(--text-dim);
          font-weight: 600;
      }

      .queue-title {
          font-size: 13px;
          font-weight: 700;
          color: var(--text);
          margin-bottom: 6px;
      }

      .queue-meta {
          display: flex;
          flex-wrap: wrap;
          gap: 14px;
          font-size: 11.5px;
          color: var(--text-dim);
      }

      /* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
         TABLE
      â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

      .sync-table-wrap {
          background: var(--surface);
          border: 1px solid var(--border);
          border-radius: var(--radius);
          overflow: hidden;
          box-shadow: var(--shadow);
      }

      .sync-table-toolbar {
          padding: 14px 18px;
          border-bottom: 1px solid var(--border);
          display: flex;
          align-items: center;
          justify-content: space-between;
          gap: 12px;
          flex-wrap: wrap;
      }

      .sync-filter-row {
          display: flex;
          gap: 8px;
          flex-wrap: wrap;
      }

      .sync-chip {
          padding: 7px 12px;
          border-radius: 30px;
          border: 1px solid var(--border);
          background: var(--surface);
          font-size: 11px;
          font-weight: 700;
          color: var(--text-dim);
          cursor: pointer;
          transition: .15s;
      }

      .sync-chip.active,
      .sync-chip:hover {
          border-color: var(--theme);
          color: var(--theme);
          background: var(--theme-g);
      }

      .sync-table {
          width: 100%;
          border-collapse: collapse;
      }

      .sync-table th {
          padding: 11px 14px;
          background: rgba(0, 0, 0, .03);
          text-align: left;
          font-size: 10px;
          letter-spacing: .08em;
          text-transform: uppercase;
          color: var(--text-dim);
          font-weight: 700;
          border-bottom: 1px solid var(--border);
          white-space: nowrap;
      }

      .sync-table td {
          padding: 14px;
          border-bottom: 1px solid var(--border);
          font-size: 12.5px;
          color: var(--text);
          vertical-align: middle;
      }

      .sync-table tbody tr {
          transition: .12s;
      }

      .sync-table tbody tr:hover {
          background: rgba(0, 0, 0, .02);
      }

      .sync-table tbody tr:last-child td {
          border-bottom: none;
      }

      .req-title {
          font-size: 13px;
          font-weight: 700;
          color: var(--text);
          margin-bottom: 3px;
      }

      .req-sub {
          font-size: 11px;
          color: var(--text-dim);
      }

      .mono {
          font-family: var(--mono);
      }

      .table-actions {
          display: flex;
          gap: 6px;
      }

      .tbl-btn {
          padding: 5px 10px;
          border-radius: 7px;
          border: 1px solid var(--border);
          background: var(--surface);
          font-size: 11px;
          font-weight: 700;
          color: var(--text-dim);
          cursor: pointer;
          transition: .15s;
      }

      .tbl-btn:hover {
          border-color: var(--theme);
          color: var(--theme);
      }

      .tbl-btn.retry {
          border-color: var(--orange);
          color: var(--orange);
      }

      .tbl-btn.retry:hover {
          background: var(--orange);
          color: #fff;
      }

      .tbl-btn.success {
          border-color: var(--green);
          color: var(--green);
      }

      .tbl-btn.success:hover {
          background: var(--green);
          color: #fff;
      }

      @media(max-width:1200px) {
          .sync-grid {
              grid-template-columns: 1fr;
          }
      }

      @media(max-width:992px) {
          .sync-stats {
              grid-template-columns: repeat(2, 1fr);
          }
      }

      @media(max-width:640px) {
          .sync-stats {
              grid-template-columns: 1fr;
          }

          .sync-table-wrap {
              overflow-x: auto;
          }

          .sync-table {
              min-width: 1100px;
          }
      }
       /* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
           TEAM MANAGEMENT PAGE
        â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

        .team-content {
          padding: 22px 24px 40px;
          background: var(--bg);
      }

      /* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
         STATS
      â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

      .team-stats {
          display: grid;
          grid-template-columns: repeat(4, 1fr);
          gap: 14px;
          margin-bottom: 22px;
      }

      .team-stat {
          position: relative;
          overflow: hidden;
          background: var(--surface);
          border: 1px solid var(--border);
          border-radius: var(--radius);
          padding: 18px 20px;
          transition: .15s;
          cursor: pointer;
      }

      .team-stat:hover {
          border-color: var(--border-dark);
          box-shadow: var(--shadow-md);
      }

      .team-stat::before {
          content: '';
          position: absolute;
          left: 0;
          right: 0;
          top: 0;
          height: 3px;
      }

      .team-stat.total::before {
          background: var(--theme);
      }

      .team-stat.online::before {
          background: var(--green);
      }

      .team-stat.review::before {
          background: var(--orange);
      }

      .team-stat.overdue::before {
          background: var(--red);
      }

      .team-stat-value {
          font-size: 34px;
          font-weight: 800;
          line-height: 1;
          margin-bottom: 5px;
          font-family: var(--mono);
      }

      .team-stat.total .team-stat-value {
          color: var(--theme);
      }

      .team-stat.online .team-stat-value {
          color: var(--green);
      }

      .team-stat.review .team-stat-value {
          color: var(--orange);
      }

      .team-stat.overdue .team-stat-value {
          color: var(--red);
      }

      .team-stat-label {
          font-size: 11px;
          font-weight: 700;
          text-transform: uppercase;
          letter-spacing: .08em;
          color: var(--text-dim);
      }

      .team-stat-sub {
          margin-top: 6px;
          font-size: 11px;
          color: var(--text-muted);
      }

      .team-stat-icon {
          position: absolute;
          right: 18px;
          top: 50%;
          transform: translateY(-50%);
          font-size: 28px;
      }

      /* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
         LAYOUT
      â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

      .team-layout {
          display: grid;
          grid-template-columns: 278px 1fr;
          gap: 18px;
      }

      /* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
         LEFT PANEL
      â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

      .team-sidebar {
          background: var(--surface);
          border: 1px solid var(--border);
          border-radius: var(--radius);
          overflow: hidden;
          box-shadow: var(--shadow);
          height: fit-content;
      }

      .team-side-header {
          padding: 18px;
          border-bottom: 1px solid var(--border);
      }

      .team-side-title {
          font-size: 14px;
          font-weight: 700;
          color: var(--text);
      }

      .team-filter-list {
          padding: 10px;
      }

      .team-filter-item {
          display: flex;
          align-items: center;
          justify-content: space-between;
          gap: 10px;
          padding: 11px 12px;
          border-radius: 10px;
          cursor: pointer;
          transition: .15s;
          margin-bottom: 4px;
          color: var(--text-dim);
          font-size: 13px;
          font-weight: 600;
      }

      .team-filter-item:hover,
      .team-filter-item.active {
          background: var(--theme-g);
          color: var(--theme);
      }

      .filter-count {
          font-size: 11px;
          padding: 4px 8px;
          border-radius: 20px;
          background: rgba(0, 0, 0, .05);
          font-family: var(--mono);
      }

      .team-divider {
          height: 1px;
          background: var(--border);
          margin: 10px 0;
      }

      /* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
         MAIN TABLE
      â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

      .team-main {
          background: var(--surface);
          border: 1px solid var(--border);
          border-radius: var(--radius);
          box-shadow: var(--shadow);
      }

      .team-toolbar {
          padding: 16px 18px;
          border-bottom: 1px solid var(--border);
          display: flex;
          align-items: center;
          justify-content: space-between;
          gap: 14px;
          flex-wrap: wrap;
      }

      .team-toolbar-left {
          display: flex;
          align-items: center;
          gap: 10px;
          flex-wrap: wrap;
      }

      .team-chip {
          padding: 7px 12px;
          border-radius: 30px;
          border: 1px solid var(--border);
          background: var(--surface);
          font-size: 11px;
          font-weight: 700;
          color: var(--text-dim);
          cursor: pointer;
          transition: .15s;
      }

      .team-chip.active,
      .team-chip:hover {
          border-color: var(--theme);
          color: var(--theme);
          background: var(--theme-g);
      }

      .team-search {
          position: relative;
      }

      .team-search input {
          width: 240px;
          border: 1px solid var(--border);
          background: rgba(0, 0, 0, .03);
          height: 38px;
          border-radius: 10px;
          padding: 0 14px 0 38px;
          font-size: 13px;
          outline: none;
          color: var(--text);
      }

      .team-search i {
          position: absolute;
          left: 13px;
          top: 50%;
          transform: translateY(-50%);
          font-size: 12px;
          color: var(--text-muted);
      }

      /* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
         TABLE
      â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

      .team-table {
          width: 100%;
          border-collapse: collapse;
      }

      .team-table th {
          padding: 11px 14px;
          text-align: left;
          font-size: 10px;
          font-weight: 700;
          text-transform: uppercase;
          letter-spacing: .08em;
          color: var(--text-dim);
          background: rgba(0, 0, 0, .03);
          border-bottom: 1px solid var(--border);
          white-space: nowrap;
      }

      .team-table td {
          padding: 14px;
          border-bottom: 1px solid var(--border);
          font-size: 12.5px;
          color: var(--text);
          vertical-align: middle;
      }

      .team-table tbody tr {
          transition: .12s;
      }

      .team-table tbody tr:hover {
          background: rgba(0, 0, 0, .02);
      }

      .team-table tbody tr:last-child td {
          border-bottom: none;
      }

      /* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
         USER CELL
      â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

      .user-cell {
          display: flex;
          align-items: center;
          gap: 12px;
          min-width: 0;
      }

      .user-avatar-lg {
          width: 42px;
          height: 42px;
          border-radius: 12px;
          flex-shrink: 0;
          font-size: 13px;
          font-weight: 800;
          color: #fff;
          display: flex;
          align-items: center;
          justify-content: center;
      }

      .bg-theme {
          background: var(--theme);
      }

      .bg-green {
          background: var(--green);
      }

      .bg-orange {
          background: var(--orange);
      }

      .bg-red {
          background: var(--red);
      }
      .user-info-wrap {
          min-width: 0;
      }

      .user-email {
          font-size: 11.5px;
          color: var(--text-dim);
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
      }

      .mono {
          font-family: var(--mono);
      }

      /* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
         STATUS / ROLE
      â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

      .role-badge {
          display: inline-flex;
          align-items: center;
          gap: 6px;
          padding: 6px 10px;
          border-radius: 30px;
          font-size: 10px;
          font-weight: 700;
          text-transform: uppercase;
          letter-spacing: .05em;
      }

      .role-admin {
          background: rgba(71, 184, 201, .12);
          color: var(--theme);
      }

      .role-reviewer {
          background: rgba(245, 158, 11, .12);
          color: var(--orange);
      }

      .role-engineer {
          background: rgba(34, 197, 94, .12);
          color: var(--green);
      }

      .role-manager {
          background: rgba(124, 58, 237, .12);
          color: #7C3AED;
      }

      .status-pill {
          padding: 6px 10px;
          border-radius: 30px;
          font-size: 10px;
          font-weight: 700;
          text-transform: uppercase;
          letter-spacing: .05em;
      }

      .online {
          background: rgba(34, 197, 94, .12);
          color: var(--green);
      }

      .offline {
          background: rgba(239, 68, 68, .12);
          color: var(--red);
      }

      .away {
          background: rgba(245, 158, 11, .12);
          color: var(--orange);
      }

      /* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
         ACTIONS
      â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

      .team-actions {
          display: flex;
          gap: 6px;
      }

      .team-btn {
          width: 34px;
          height: 34px;
          border-radius: 8px;
          border: 1px solid var(--border);
          background: var(--surface);
          color: var(--text-dim);
          cursor: pointer;
          transition: .15s;
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 12px;
      }

      .team-btn:hover {
          border-color: var(--theme);
          color: var(--theme);
          box-shadow: var(--shadow-md);
      }

      /* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
         RESPONSIVE
      â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

      @media(max-width:1200px) {
          .team-layout {
              grid-template-columns: 1fr;
          }
      }

      @media(max-width:992px) {
          .team-stats {
              grid-template-columns: repeat(2, 1fr);
          }
      }

      @media(max-width:640px) {
          .team-stats {
              grid-template-columns: 1fr;
          }

          .team-main {
              overflow-x: auto;
          }

          .team-table {
              min-width: 1200px;
          }
      }
  /* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
           ROLE & PERMISSION PAGE
        â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

        .role-content {
          padding: 22px 24px 40px;
          background: var(--bg);
        }

        /* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
               STATS
            â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

        .role-stats {
          display: grid;
          grid-template-columns: repeat(4, 1fr);
          gap: 14px;
          margin-bottom: 22px;
        }

        .role-stat {
          background: var(--surface);
          border: 1px solid var(--border);
          border-radius: var(--radius);
          padding: 18px 20px;
          position: relative;
          overflow: hidden;
          transition: .15s;
          cursor: pointer;
        }

        .role-stat:hover {
          box-shadow: var(--shadow-md);
          border-color: var(--border-dark);
        }

        .role-stat::before {
          content: '';
          position: absolute;
          left: 0;
          right: 0;
          top: 0;
          height: 3px;
        }

        .stat-theme::before {
          background: var(--theme);
        }

        .stat-green::before {
          background: var(--green);
        }

        .stat-orange::before {
          background: var(--orange);
        }

        .stat-red::before {
          background: var(--red);
        }

        .role-stat-value {
          font-size: 34px;
          font-weight: 800;
          line-height: 1;
          font-family: var(--mono);
          margin-bottom: 6px;
        }

        .stat-theme .role-stat-value {
          color: var(--theme);
        }

        .stat-green .role-stat-value {
          color: var(--green);
        }

        .stat-orange .role-stat-value {
          color: var(--orange);
        }

        .stat-red .role-stat-value {
          color: var(--red);
        }

        .role-stat-label {
          font-size: 11px;
          font-weight: 700;
          text-transform: uppercase;
          letter-spacing: .08em;
          color: var(--text-dim);
        }

        .role-stat-sub {
          margin-top: 6px;
          font-size: 11px;
          color: var(--text-muted);
        }

        .role-stat-icon {
          position: absolute;
          right: 18px;
          top: 50%;
          transform: translateY(-50%);
          font-size: 28px;
          opacity: .08;
        }

        /* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
               LAYOUT
            â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

        .role-layout {
          display: grid;
          grid-template-columns: 320px 1fr;
          gap: 18px;
        }

        /* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
               SIDEBAR
            â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

        .role-sidebar {
          background: var(--surface);
          border: 1px solid var(--border);
          border-radius: var(--radius);
          overflow: hidden;
          height: fit-content;
          box-shadow: var(--shadow);
        }

        .role-side-header {
          padding: 18px;
          border-bottom: 1px solid var(--border);
        }

        .role-side-title {
          font-size: 14px;
          font-weight: 700;
          color: var(--text);
        }

        .role-list {
          padding: 10px;
        }

        .role-item {
          border: 1px solid transparent;
          border-radius: 12px;
          padding: 14px;
          margin-bottom: 8px;
          cursor: pointer;
          transition: .15s;
        }

        .role-item:hover,
        .role-item.active {
          border-color: var(--theme);
          background: var(--theme-g);
        }

        .role-top {
          display: flex;
          align-items: center;
          justify-content: space-between;
          gap: 10px;
          margin-bottom: 6px;
        }

        .role-name {
          font-size: 13px;
          font-weight: 700;
          color: var(--text);
        }

        .role-users {
          font-size: 10px;
          padding: 4px 8px;
          border-radius: 20px;
          background: rgba(0, 0, 0, .05);
          font-family: var(--mono);
          color: var(--text-dim);
        }

        .role-desc {
          font-size: 11.5px;
          color: var(--text-dim);
          line-height: 1.5;
        }

        /* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
               MAIN PANEL
            â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

        .role-main {
          background: var(--surface);
          border: 1px solid var(--border);
          border-radius: var(--radius);
          overflow: hidden;
          box-shadow: var(--shadow);
        }

        .role-toolbar {
          padding: 16px 18px;
          border-bottom: 1px solid var(--border);
          display: flex;
          align-items: center;
          justify-content: space-between;
          gap: 14px;
          flex-wrap: wrap;
        }

        .role-toolbar-left {
          display: flex;
          align-items: center;
          gap: 10px;
          flex-wrap: wrap;
        }

        .role-title {
          font-size: 15px;
          font-weight: 700;
          color: var(--text);
        }

        .role-subtitle {
          font-size: 12px;
          color: var(--text-dim);
        }

        /* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
               PERMISSION TABLE
            â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

        .perm-table-wrap {
          overflow-x: auto;
        }

        .perm-table {
          width: 100%;
          border-collapse: collapse;
        }

        .perm-table th {
          padding: 12px 14px;
          text-align: left;
          font-size: 10px;
          font-weight: 700;
          text-transform: uppercase;
          letter-spacing: .08em;
          color: var(--text-dim);
          background: rgba(0, 0, 0, .03);
          border-bottom: 1px solid var(--border);
          white-space: nowrap;
        }

        .perm-table td {
          padding: 14px;
          border-bottom: 1px solid var(--border);
          vertical-align: middle;
          font-size: 12.5px;
          color: var(--text);
        }

        .perm-table tbody tr {
          transition: .12s;
        }

        .perm-table tbody tr:hover {
          background: rgba(0, 0, 0, .02);
        }

        .perm-group {
          background: rgba(0, 0, 0, .02);
        }

        .perm-group td {
          font-size: 11px;
          font-weight: 700;
          text-transform: uppercase;
          letter-spacing: .08em;
          color: var(--text-dim);
          padding: 10px 14px;
        }

        .perm-module {
          display: flex;
          align-items: center;
          gap: 10px;
        }

        .perm-icon {
          width: 34px;
          height: 34px;
          border-radius: 10px;
          background: rgba(71, 184, 201, .12);
          color: var(--theme);
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 13px;
          flex-shrink: 0;
        }

        .perm-info {
          min-width: 0;
        }

        .perm-name {
          font-size: 13px;
          font-weight: 700;
          color: var(--text);
          margin-bottom: 2px;
        }

        .perm-desc {
          font-size: 11px;
          color: var(--text-dim);
        }

        /* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
               SWITCH
            â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

        .switch-wrap {
          display: flex;
          justify-content: center;
        }

        .switch {
          position: relative;
          width: 44px;
          height: 24px;
        }

        .switch input {
          display: none;
        }

        .slider {
          position: absolute;
          inset: 0;
          background: #d7dce5;
          border-radius: 50px;
          cursor: pointer;
          transition: .2s;
        }

        .slider::before {
          content: '';
          position: absolute;
          width: 18px;
          height: 18px;
          border-radius: 50%;
          background: #fff;
          left: 3px;
          top: 3px;
          transition: .2s;
          box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
        }

        .switch input:checked+.slider {
          background: var(--theme);
        }

        .switch input:checked+.slider::before {
          transform: translateX(20px);
        }

        /* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
               USER ASSIGNMENT
            â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

        .assign-wrap {
          padding: 18px;
          border-top: 1px solid var(--border);
          background: rgba(0, 0, 0, .015);
        }

        .assign-title {
          font-size: 13px;
          font-weight: 700;
          color: var(--text);
          margin-bottom: 14px;
        }

        .assign-grid {
          display: grid;
          grid-template-columns: repeat(3, 1fr);
          gap: 12px;
        }

        .assign-card {
          border: 1px solid var(--border);
          border-radius: 12px;
          padding: 12px;
          display: flex;
          align-items: center;
          gap: 12px;
          background: var(--surface);
          transition: .15s;
        }

        .assign-card:hover {
          border-color: var(--theme);
          box-shadow: var(--shadow-md);
        }

        .assign-avatar {
          width: 42px;
          height: 42px;
          border-radius: 12px;
          background: var(--theme);
          color: #fff;
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 13px;
          font-weight: 800;
          flex-shrink: 0;
        }

        .assign-info {
          flex: 1;
          min-width: 0;
        }

        .assign-name {
          font-size: 13px;
          font-weight: 700;
          color: var(--text);
          margin-bottom: 2px;
        }

        .assign-role {
          font-size: 11px;
          color: var(--text-dim);
        }

        /* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
               RESPONSIVE
            â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

        @media(max-width:1200px) {
          .assign-grid {
            grid-template-columns: repeat(2, 1fr);
          }
        }

        @media(max-width:992px) {

          .role-layout,
          .role-stats {
            grid-template-columns: 1fr;
          }
        }

        @media(max-width:768px) {
          .assign-grid {
            grid-template-columns: 1fr;
          }
        }
 /* â”€â”€ SETTINGS LAYOUT â”€â”€ */
 .settings-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: start;
}

/* Settings sidebar nav */
.settings-nav {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: sticky;
  top: 20px;
}

.settings-nav-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-secondary);
}

.settings-nav-list {
  padding: 8px;
}

.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary);
  transition: .12s;
  border: 1px solid transparent;
  text-decoration: none;
}

.settings-nav-item:hover {
  background: var(--bg);
  color: var(--text-primary);
}

.settings-nav-item.active {
  background: rgba(8, 93, 106, .08);
  border-color: rgba(8, 93, 106, .15);
  color: var(--theme);
  font-weight: 600;
}

.settings-nav-item i {
  width: 16px;
  text-align: center;
  font-size: 13px;
  opacity: .75;
}

.settings-nav-item.active i {
  opacity: 1;
}

.settings-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 10px;
}

/* Settings content panels */
.settings-section {
  display: none;
}

.settings-section.active {
  display: block;
}

.settings-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}

.settings-panel-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.settings-panel-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.settings-panel-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.settings-panel-body {
  padding: 20px;
}

/* Form elements */
.field-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.field-row:last-child {
  border-bottom: none;
}

.field-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  padding-top: 2px;
}

.field-hint {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.4;
}

.field-input {
  width: 100%;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 12.5px;
  font-family: var(--sans);
  color: var(--text-primary);
  background: var(--surface);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.field-input:focus {
  border-color: var(--theme);
  box-shadow: 0 0 0 2px rgba(8, 93, 106, .1);
}

.field-input.mono-input {
  font-family: var(--mono);
  font-size: 12px;
}

.field-select {
  width: 100%;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 12.5px;
  font-family: var(--sans);
  color: var(--text-primary);
  background: var(--surface);
  outline: none;
  cursor: pointer;
  transition: border-color .15s;
}

.field-select:focus {
  border-color: var(--theme);
}

.field-textarea {
  width: 100%;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 12.5px;
  font-family: var(--sans);
  color: var(--text-primary);
  background: var(--surface);
  outline: none;
  resize: vertical;
  min-height: 72px;
  transition: border-color .15s;
}

.field-textarea:focus {
  border-color: var(--theme);
  box-shadow: 0 0 0 2px rgba(8, 93, 106, .1);
}

/* Toggle switch (reusing existing .switch pattern) */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.toggle-row:last-child {
  border-bottom: none;
}

.toggle-info {
  flex: 1;
  padding-right: 20px;
}

.toggle-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.toggle-desc {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Badge / pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
}

.pill-blue {
  background: #EFF6FF;
  color: #2563EB;
}

.pill-gray {
  background: rgba(0, 0, 0, .06);
  color: var(--text-secondary);
}
.btn-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

/* Connection status */
.conn-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  margin-bottom: 16px;
}

.conn-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.conn-dot.connected {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 178, 106, .2);
}

.conn-dot.error {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(240, 68, 56, .2);
}

.conn-text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.conn-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

/* User/Member table */
.member-table {
  width: 100%;
  border-collapse: collapse;
}

.member-table th {
  padding: 9px 14px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, .025);
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.member-table td {
  padding: 11px 14px;
  font-size: 12.5px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.member-table tbody tr:last-child td {
  border-bottom: none;
}

.member-table tbody tr:hover td {
  background: rgba(0, 0, 0, .015);
}

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

.av-teal {
  background: var(--theme);
}

.av-orange {
  background: var(--orange);
}

.av-purple {
  background: var(--purple, #7C3AED);
}

.av-green {
  background: var(--green);
}

.av-red {
  background: var(--red);
}

/* Danger zone */
.danger-zone {
  border: 1px solid rgba(240, 68, 56, .3);
  background: var(--red-light, #FEF3F2);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.danger-zone-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 4px;
}

.danger-zone-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

/* Security items */
.security-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.security-row:last-child {
  border-bottom: none;
}

.security-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.security-desc {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Color swatch picker */
.color-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: .15s;
}

.swatch.selected {
  border-color: var(--text-primary);
  transform: scale(1.15);
}

/* Page footer save bar */
.save-bar {
  position: sticky;
  bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 10;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .05);
}

.save-bar-hint {
  font-size: 12px;
  color: var(--text-secondary);
}

@media (max-width: 992px) {
  .settings-layout {
    grid-template-columns: 1fr;
    display: block;
  }

  .settings-nav {
    position: static;
    margin-bottom: 10px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}

.position-relative {
  position: relative;
}

.fileupload_input {
  position: absolute;
  width: 100%;
  background: #f4e2e2;
  height: 38px;
  cursor: pointer;
  opacity: 0;
}
  /* â”€â”€ REPORT-PAGE SPECIFIC â”€â”€ */
  .rpt-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  .rpt-select {
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--surface);
    color: var(--text-primary);
    font-family: var(--sans);
    font-size: 12px;
    cursor: pointer;
    outline: none;
    transition: border-color .15s;
  }
  .rpt-select:focus { border-color: var(--theme); }

  /* KPI strip */
  .kpi-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 20px;
  }
  .kpi-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 16px 14px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
  }
  .kpi-accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
  }
  .kpi-value {
    font-family: var(--mono);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
  }
  .kpi-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-secondary);
  }
  .kpi-delta {
    margin-top: 8px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .kpi-delta.pos { color: var(--green); }
  .kpi-delta.neg { color: var(--red); }
  .kpi-delta.neu { color: var(--text-muted); }

  /* Chart panels */
  .chart-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
  }
  .chart-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
  }
  .rpt-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
  }
  .rpt-panel-head {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .rpt-panel-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
  }
  .rpt-panel-sub {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 1px;
  }
  .rpt-panel-body {
    padding: 18px;
  }
  .chart-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    background: var(--theme-g, rgba(8,93,106,.08));
    color: var(--theme);
  }

  /* Team performance table */
  .team-table { width: 100%; border-collapse: collapse; }
  .team-table th {
    padding: 9px 14px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-secondary);
    background: rgba(0,0,0,.025);
    border-bottom: 1px solid var(--border);
    text-align: left;
  }
  .team-table td {
    padding: 11px 14px;
    font-size: 12.5px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
  }
  .team-table tbody tr:last-child td { border-bottom: none; }
  .team-table tbody tr:hover td { background: rgba(0,0,0,.018); }

  .t-avatar {
    width: 30px; height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
  }
  .av-teal   { background: var(--theme); }
  .av-orange { background: var(--orange); }
  .av-purple { background: var(--purple); }
  .av-green  { background: var(--green); }
  .av-red    { background: var(--red); }

  .bar-mini-wrap { display: flex; align-items: center; gap: 8px; }
  .bar-mini-bg {
    flex: 1; height: 6px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
  }
  .bar-mini-fill {
    height: 100%;
    border-radius: 4px;
  }
  .bar-mini-label { font-size: 11px; font-family: var(--mono); color: var(--text-secondary); min-width: 28px; text-align: right; }

  /* Audit log */
  .audit-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }
  .audit-row:last-child { border-bottom: none; }
  .audit-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
  }
  .audit-time {
    font-size: 10.5px;
    color: var(--text-muted);
    font-family: var(--mono);
    white-space: nowrap;
    min-width: 85px;
  }
  .audit-text { font-size: 12.5px; color: var(--text-primary); line-height: 1.45; }
  .audit-text strong { font-weight: 600; }
  .audit-text span { color: var(--text-secondary); }

  /* Overdue table */
  .overdue-table { width: 100%; border-collapse: collapse; }
  .overdue-table th {
    padding: 9px 14px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-secondary);
    background: rgba(0,0,0,.025);
    border-bottom: 1px solid var(--border);
    text-align: left;
  }
  .overdue-table td {
    padding: 11px 14px;
    font-size: 12.5px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
  }
  .overdue-table tbody tr:last-child td { border-bottom: none; }
  .overdue-table tbody tr:hover td { background: rgba(0,0,0,.018); }

  .pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
  }
  .pill-red    { background: var(--red-light);    color: var(--red); }
  .pill-orange { background: var(--orange-light); color: var(--orange); }
  .pill-green  { background: var(--green-light);  color: var(--green); }
  .pill-blue   { background: #EFF6FF; color: #2563EB; }
  .pill-purple { background: var(--purple-light); color: var(--purple); }

  .mono-sm { font-family: var(--mono); font-size: 11.5px; color: var(--text-secondary); }

  .section-divider {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    margin: 24px 0 12px;
  }

  .donut-wrap-sm {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 14px;
  }
  .donut-center-sm {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }
  .donut-center-sm span { font-size: 10px; color: var(--text-secondary); }
  .donut-center-sm strong { font-family: var(--mono); font-size: 18px; font-weight: 700; color: var(--text-primary); }

  .legend-sm { display: flex; flex-direction: column; gap: 6px; }
  .legend-sm-row { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--text-secondary); }
  .legend-sm-row .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
  .legend-sm-row b { font-family: var(--mono); font-weight: 700; color: var(--text-primary); }

  @media (max-width: 1200px) {
    .kpi-strip { grid-template-columns: repeat(3, 1fr); }
    .chart-grid { grid-template-columns: 1fr; }
    .chart-grid-3 { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 768px) {
    .kpi-strip { grid-template-columns: 1fr 1fr; }
    .chart-grid-3 { grid-template-columns: 1fr; }
  }
 /* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
       PAGE LAYOUT â€” SPLIT PANEL
    â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
    .requests-page {
      display: flex;
      height: calc(100vh - 57px); /* topbar height */
      overflow: hidden;
    }

    /* â”€â”€ LIST PANEL â”€â”€ */
    .req-list-panel {
      width: 420px;
      min-width: 340px;
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
      border-right: 1px solid var(--border);
      background: var(--surface);
      height: 100%;
      overflow: hidden;
      padding: 10px;
    }

    .req-list-toolbar {
      padding: 14px 16px 0;
      flex-shrink: 0;
    }

    .req-search-wrap {
      position: relative;
      margin-bottom: 10px;
    }
    .req-search-icon {
      position: absolute; left: 10px; top: 50%;
      transform: translateY(-50%);
      color: var(--text-muted); font-size: 16px; pointer-events: none;
    }
    .req-search {
      width: 100%;
      padding: 7px 10px 7px 32px;
      border: 1px solid var(--border);
      border-radius: 8px;
      font-size: 12.5px;
      font-family: var(--sans);
      color: var(--text-primary);
      background: var(--bg);
      outline: none;
      transition: border-color .15s;
    }
    .req-search:focus { border-color: var(--theme); background: #fff; }
    .req-search::placeholder { color: var(--text-muted); }

    .req-filter-row {
      display: flex; gap: 6px; flex-wrap: nowrap;
      overflow-x: auto; padding-bottom: 10px;
    }
    .req-filter-row::-webkit-scrollbar { height: 0; }

    .status-chip {
      display: inline-flex; align-items: center; gap: 4px;
      padding: 4px 11px; border-radius: 20px;
      font-size: 11px; font-weight: 600; cursor: pointer;
      border: 1.5px solid transparent; white-space: nowrap;
      background: rgba(0,0,0,.04); color: var(--text-secondary);
      transition: all .14s;
    }
    .status-chip:hover { background: rgba(0,0,0,.07); }
    .status-chip.active {
      background: var(--theme); color: #fff; border-color: var(--theme);
    }
    .status-chip .chip-dot {
      width: 6px; height: 6px; border-radius: 50%;
    }

    .req-sort-row {
      display: flex; align-items: center; justify-content: space-between;
      padding: 8px 16px; border-bottom: 1px solid var(--border);
      border-top: 1px solid var(--border);
      background: rgba(0,0,0,.018); flex-shrink: 0;
    }
    .req-sort-label { font-size: 11px; color: var(--text-secondary); font-weight: 600; }
    .req-sort-select {
      font-size: 11px; color: var(--text-secondary);
      border: none; background: transparent;
      font-family: var(--sans); cursor: pointer; outline: none;
      padding-right: 16px;
    }
    .req-count-badge {
      display: inline-flex; align-items: center;
      padding: 2px 8px; border-radius: 10px;
      background: rgba(0,0,0,.06); font-size: 10px;
      font-weight: 700; color: var(--text-secondary);
    }

    /* â”€â”€ REQUEST LIST ITEMS â”€â”€ */
    .req-list-body {
      flex: 1; overflow-y: auto; padding: 8px 8px 60px;
    }
    .req-list-body::-webkit-scrollbar { width: 3px; }
    .req-list-body::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 2px; }

    .req-item {
      border: 1.5px solid var(--border);
      border-radius: 10px;
      padding: 12px 14px;
      margin-bottom: 6px;
      cursor: pointer;
      transition: all .13s;
      background: var(--surface);
      position: relative;
    }
    .req-item:hover {
      border-color: var(--theme);
      box-shadow: 0 2px 10px rgba(8,93,106,.08);
    }
    .req-item.selected {
      border-color: var(--theme);
      background: rgba(8,93,106,.04);
      box-shadow: 0 2px 12px rgba(8,93,106,.1);
    }
    .req-item-top {
      display: flex; align-items: flex-start;
      justify-content: space-between; gap: 8px; margin-bottom: 6px;
    }
    .req-item-id {
      font-family: var(--mono); font-size: 10.5px;
      color: var(--text-muted); font-weight: 600;
    }
    .req-item-title {
      font-size: 13px; font-weight: 600;
      color: var(--text-primary); line-height: 1.35;
      flex: 1;
    }
    .req-item-meta {
      display: flex; align-items: center;
      gap: 8px; flex-wrap: wrap; margin-top: 7px;
    }
    .req-item-assignee {
      display: flex; align-items: center; gap: 5px;
      font-size: 11px; color: var(--text-secondary);
    }
    .mini-av {
      width: 20px; height: 20px; border-radius: 5px;
      display: inline-flex; align-items: center; justify-content: center;
      font-size: 8px; font-weight: 800; color: #fff; flex-shrink: 0;
    }
    .req-item-due {
      font-size: 10.5px; color: var(--text-muted);
      display: flex; align-items: center; gap: 3px;
    }
    .req-item-due.overdue { color: var(--red); font-weight: 600; }

    .req-priority-bar {
      position: absolute; left: 0; top: 0; bottom: 0;
      width: 3px; border-radius: 10px 0 0 10px;
    }

    /* status pills */
    .spl { display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:20px;font-size:10px;font-weight:700; }
    .spl-draft     { background:#EFF6FF;  color:#2563EB; }
    .spl-submitted { background:#FFFBEB;  color:#D97706; }
    .spl-review    { background:#F0FDFA;  color:#0D9488; }
    .spl-approved  { background:#F0FDF4;  color:#16A34A; }
    .spl-rework    { background:#FFF1F2;  color:#E11D48; }
    .spl-completed { background:#F5F3FF;  color:#7C3AED; }

    /* priority */
    .pri { display:inline-block;padding:2px 7px;border-radius:4px;font-size:9.5px;font-weight:700;letter-spacing:.05em; }
    .pri-high   { background:#FFF1F2;color:#E11D48; }
    .pri-medium { background:#FFFBEB;color:#D97706; }
    .pri-low    { background:#F0FDF4;color:#16A34A; }

    .sync-dot {
      width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
    }
    .sync-ok  { background: var(--green); }
    .sync-fail{ background: var(--red);   }
    .sync-pend{ background: var(--orange);}

    /* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
       DETAIL PANEL
    â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
    .req-detail-panel {
      flex: 1; display: flex; flex-direction: column;
      overflow: hidden; background: var(--bg);
      transition: transform .2s;
    }
    .req-detail-panel.empty {
      align-items: center; justify-content: center;
    }
    .empty-state-detail {
      text-align: center; color: var(--text-muted);
    }
    .empty-state-detail .empty-icon {
      font-size: 48px; margin-bottom: 12px; opacity: .3;
    }
    .empty-state-detail p {
      font-size: 13px; margin-top: 4px;
    }

    /* Detail header */
    .detail-header {
      background: var(--surface);
      border-bottom: 1px solid var(--border);
      padding: 14px 20px;
      flex-shrink: 0;
    }
    .detail-header-top {
      display: flex; align-items: flex-start;
      justify-content: space-between; gap: 12px; margin-bottom: 10px;
    }
    .detail-req-id {
      font-family: var(--mono); font-size: 11px;
      color: var(--text-muted); font-weight: 600; margin-bottom: 3px;
    }
    .detail-req-title {
      font-size: 16px; font-weight: 700; color: var(--text-primary);
      line-height: 1.3;
    }
    .detail-header-actions {
      display: flex; align-items: center; gap: 8px; flex-shrink: 0;
    }
    .detail-badges {
      display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    }

    /* workflow tracker */
    .workflow-track {
      display: flex; align-items: center; gap: 0;
      background: var(--surface);
      border-bottom: 1px solid var(--border);
      padding: 12px 20px; flex-shrink: 0; overflow-x: auto;
    }
    .workflow-track::-webkit-scrollbar { height: 0; }
    .wt-step {
      display: flex; flex-direction: column; align-items: center;
      gap: 4px; flex-shrink: 0; min-width: 70px;
    }
    .wt-node {
      width: 30px; height: 30px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      border: 2px solid var(--border); background: var(--surface);
      font-size: 12px; font-weight: 700; color: var(--text-muted);
      transition: all .2s; position: relative; z-index: 1;
    }
    .wt-label {
      font-size: 10px; font-weight: 600; color: var(--text-muted);
      text-align: center; white-space: nowrap;
    }
    .wt-step.done .wt-node {
      background: var(--green); border-color: var(--green); color: #fff;
    }
    .wt-step.done .wt-label { color: var(--green); }
    .wt-step.active .wt-node {
      background: var(--theme); border-color: var(--theme); color: #fff;
      box-shadow: 0 0 0 4px rgba(8,93,106,.15);
    }
    .wt-step.active .wt-label { color: var(--theme); font-weight: 700; }
    .wt-step.rework-step .wt-node {
      background: var(--red); border-color: var(--red); color: #fff;
    }
    .wt-step.rework-step .wt-label { color: var(--red); }
    .wt-connector {
      flex: 1; height: 2px; background: var(--border);
      min-width: 24px; margin-bottom: 18px;
    }
    .wt-connector.done { background: var(--green); }

    /* detail body with tabs */
    .detail-body {
      flex: 1; display: flex; overflow: hidden;
    }
    .detail-main {
      flex: 1; display: flex; flex-direction: column; overflow: hidden;
    }

    /* tabs */
    .detail-tabs {
      display: flex; gap: 0; border-bottom: 1px solid var(--border);
      background: var(--surface); flex-shrink: 0; padding: 0 20px;
    }
    .dtab {
      padding: 10px 16px; font-size: 12.5px; font-weight: 500;
      color: var(--text-secondary); cursor: pointer; border-bottom: 2px solid transparent;
      transition: all .13s; white-space: nowrap;
    }
    .dtab:hover { color: var(--text-primary); }
    .dtab.active { color: var(--theme); border-bottom-color: var(--theme); font-weight: 600; }
    .dtab .tab-badge {
      display: inline-flex; align-items: center;
      width: 16px; height: 16px; border-radius: 50%;
      background: var(--theme); color: #fff;
      font-size: 9px; font-weight: 700;
      justify-content: center; margin-left: 5px;
    }

    /* tab panels */
    .tab-content { display: none; flex: 1; overflow-y: auto; padding: 18px 20px 80px; }
    .tab-content.active { display: block; }
    .tab-content::-webkit-scrollbar { width: 4px; }
    .tab-content::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 2px; }

    /* â”€â”€ OVERVIEW tab â”€â”€ */
    .desc-block {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px;
    }
    .block-label {
      font-size: 10.5px; font-weight: 700; text-transform: uppercase;
      letter-spacing: .07em; color: var(--text-muted); margin-bottom: 8px;
    }
    .desc-text { font-size: 13px; color: var(--text-primary); line-height: 1.6; }

    /* drawing preview */
    .drawing-preview {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); overflow: hidden; margin-bottom: 14px;
    }
    .drawing-preview-head {
      display: flex; align-items: center; justify-content: space-between;
      padding: 10px 14px; border-bottom: 1px solid var(--border);
    }
    .drawing-preview-title { font-size: 12.5px; font-weight: 700; color: var(--text-primary); }
    .drawing-canvas {
      height: 200px; background: #f0f4f8;
      display: flex; align-items: center; justify-content: center;
      position: relative; overflow: hidden;
    }
    .drawing-canvas svg { opacity: .18; }
    .drawing-overlay {
      position: absolute; inset: 0; display: flex; flex-direction: column;
      align-items: center; justify-content: center; gap: 6px;
    }
    .drawing-overlay .file-badge {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 8px; padding: 6px 14px;
      display: flex; align-items: center; gap: 7px;
      font-size: 12.5px; font-weight: 600; color: var(--text-primary);
      box-shadow: var(--shadow);
    }
    .drawing-overlay .rev-tag {
      font-size: 10px; font-family: var(--mono);
      background: var(--theme); color: #fff;
      border-radius: 4px; padding: 2px 7px; font-weight: 700;
    }
    .drawing-footer {
      padding: 10px 14px; display: flex; align-items: center;
      justify-content: space-between; gap: 10px;
    }
    .drawing-footer-meta { font-size: 11px; color: var(--text-muted); }

    /* file attachment list */
    .attach-list { display: flex; flex-direction: column; gap: 0; }
    .attach-row {
      display: flex; align-items: center; gap: 12px;
      padding: 10px 14px; border-bottom: 1px solid var(--border);
      transition: background .12s;
    }
    .attach-row:last-child { border-bottom: none; }
    .attach-row:hover { background: rgba(0,0,0,.02); }
    .attach-icon {
      width: 36px; height: 36px; border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      font-size: 11px; font-weight: 700; flex-shrink: 0;
    }
    .attach-pdf { background: rgba(240,68,56,.1); color: var(--red); }
    .attach-dwg { background: rgba(8,93,106,.1);  color: var(--theme); }
    .attach-dxf { background: rgba(23,178,106,.1);color: var(--green); }
    .attach-info { flex: 1; min-width: 0; }
    .attach-name { font-size: 12.5px; font-weight: 600; color: var(--text-primary); }
    .attach-meta { font-size: 10.5px; color: var(--text-muted); margin-top: 1px; }
    .attach-actions { display: flex; gap: 5px; }

    /* upload drop zone */
    .upload-zone {
      border: 2px dashed var(--border); border-radius: var(--radius);
      padding: 20px; text-align: center; cursor: pointer;
      transition: all .15s; margin-top: 10px;
    }
    .upload-zone:hover {
      border-color: var(--theme); background: rgba(8,93,106,.03);
    }
    .upload-zone .uz-icon { font-size: 24px; color: var(--text-muted); margin-bottom: 6px; }
    .upload-zone p { font-size: 12px; color: var(--text-secondary); margin: 0; }
    .upload-zone span { font-size: 11px; color: var(--text-muted); }

    /* â”€â”€ VERSIONS tab â”€â”€ */
    .versions-header {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 14px;
    }
    .versions-title { font-size: 13px; font-weight: 700; color: var(--text-primary); }

    .version-timeline { position: relative; padding-left: 28px; }
    .version-timeline::before {
      content: ''; position: absolute;
      left: 10px; top: 8px; bottom: 8px;
      width: 2px; background: var(--border); border-radius: 2px;
    }

    .ver-item {
      position: relative; margin-bottom: 14px;
    }
    .ver-item::before {
      content: ''; position: absolute;
      left: -24px; top: 12px; width: 14px; height: 2px;
      background: var(--border);
    }
    .ver-dot {
      position: absolute; left: -31px; top: 5px;
      width: 16px; height: 16px; border-radius: 50%;
      border: 2px solid var(--border);
      background: var(--surface); z-index: 1;
      display: flex; align-items: center; justify-content: center;
    }
    .ver-dot.current {
      border-color: var(--theme); background: var(--theme);
    }
    .ver-dot.current i { color: #fff; font-size: 8px; }
    .ver-dot.approved {
      border-color: var(--green); background: var(--green);
    }
    .ver-dot.approved i { color: #fff; font-size: 8px; }
    .ver-dot.rework-dot {
      border-color: var(--red); background: var(--red-light);
    }
    .ver-dot.rework-dot i { color: var(--red); font-size: 8px; }
    .ver-dot i { font-size: 8px; color: var(--text-muted); }

    .ver-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); overflow: hidden;
      box-shadow: var(--shadow); transition: border-color .13s;
    }
    .ver-card.current-ver { border-color: var(--theme); }
    .ver-card:hover { border-color: var(--border-dark); }
    .ver-card.current-ver:hover { border-color: var(--theme); }

    .ver-card-head {
      display: flex; align-items: center; justify-content: space-between;
      padding: 10px 14px; border-bottom: 1px solid var(--border);
      background: rgba(0,0,0,.015);
    }
    .ver-card-left { display: flex; align-items: center; gap: 10px; }
    .ver-num {
      font-family: var(--mono); font-size: 12px;
      font-weight: 700; color: var(--text-primary);
    }
    .ver-current-tag {
      padding: 2px 8px; border-radius: 10px;
      background: rgba(8,93,106,.1); color: var(--theme);
      font-size: 9.5px; font-weight: 700;
    }
    .ver-card-body { padding: 12px 14px; }
    .ver-info-row {
      display: flex; align-items: flex-start;
      gap: 10px; margin-bottom: 8px;
    }
    .ver-info-row:last-child { margin-bottom: 0; }
    .ver-info-icon {
      width: 28px; height: 28px; border-radius: 7px;
      background: rgba(0,0,0,.04); display: flex;
      align-items: center; justify-content: center;
      font-size: 11px; color: var(--text-muted); flex-shrink: 0;
    }
    .ver-info-text { font-size: 12px; color: var(--text-primary); line-height: 1.5; }
    .ver-info-text b { font-weight: 600; }
    .ver-info-text span { color: var(--text-muted); font-size: 11px; display: block; margin-top: 1px; }

    .ver-files { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
    .ver-file-chip {
      display: inline-flex; align-items: center; gap: 5px;
      padding: 4px 10px; border-radius: 6px;
      border: 1px solid var(--border); background: var(--bg);
      font-size: 11px; color: var(--text-secondary); cursor: pointer;
      transition: all .13s;
    }
    .ver-file-chip:hover { border-color: var(--theme); color: var(--theme); }
    .ver-file-chip i { font-size: 10px; }

    .ver-card-foot {
      padding: 8px 14px; border-top: 1px solid var(--border);
      display: flex; align-items: center; justify-content: space-between;
      gap: 8px; background: rgba(0,0,0,.012);
    }
    .ver-reviewer {
      display: flex; align-items: center; gap: 7px;
      font-size: 11.5px; color: var(--text-secondary);
    }
    .ver-actions { display: flex; gap: 6px; }

    /* rework note */
    .rework-note {
      background: var(--red-light, #FEF3F2);
      border: 1px solid rgba(240,68,56,.2);
      border-radius: 8px; padding: 10px 12px;
      font-size: 12px; color: #b91c1c; margin-top: 8px;
      display: flex; gap: 8px; align-items: flex-start;
    }
    .rework-note i { margin-top: 2px; flex-shrink: 0; }

    /* version upload zone */
    .ver-upload-zone {
      border: 2px dashed var(--border); border-radius: var(--radius);
      padding: 16px; text-align: center; cursor: pointer;
      transition: all .15s; margin-top: 12px;
      background: rgba(8,93,106,.02);
    }
    .ver-upload-zone:hover {
      border-color: var(--theme); background: rgba(8,93,106,.05);
    }
    .ver-upload-zone p { font-size: 12px; color: var(--text-secondary); margin: 6px 0 0; }

    /* â”€â”€ COMMENTS tab â”€â”€ */
    .comment-thread { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
    .comment-item { display: flex; gap: 10px; }
    .comment-av {
      width: 32px; height: 32px; border-radius: 9px;
      display: flex; align-items: center; justify-content: center;
      font-size: 11px; font-weight: 800; color: #fff; flex-shrink: 0;
    }
    .comment-bubble {
      flex: 1; background: var(--surface);
      border: 1px solid var(--border); border-radius: 0 10px 10px 10px;
      padding: 10px 12px; box-shadow: var(--shadow);
    }
    .comment-bubble.own { border-radius: 10px 0 10px 10px; background: rgba(8,93,106,.04); border-color: rgba(8,93,106,.15); }
    .comment-author {
      font-size: 12px; font-weight: 700; color: var(--text-primary);
    }
    .comment-time {
      font-size: 10.5px; color: var(--text-muted);
      margin-left: 8px; font-weight: 400;
    }
    .comment-text {
      font-size: 12.5px; color: var(--text-primary);
      line-height: 1.5; margin-top: 4px;
    }
    .comment-actions-row {
      display: flex; gap: 10px; margin-top: 7px;
    }
    .comment-action-btn {
      font-size: 10.5px; color: var(--text-muted); cursor: pointer;
      display: flex; align-items: center; gap: 3px; transition: color .12s;
    }
    .comment-action-btn:hover { color: var(--theme); }

    /* system comment */
    .sys-comment {
      display: flex; align-items: center; gap: 10px;
      padding: 8px 12px; border-radius: 8px;
      background: rgba(0,0,0,.025); border: 1px solid var(--border);
    }
    .sys-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
    .sys-text { font-size: 11.5px; color: var(--text-secondary); }
    .sys-text b { color: var(--text-primary); font-weight: 600; }
    .sys-time { font-size: 10.5px; color: var(--text-muted); margin-left: auto; white-space: nowrap; }

    /* comment input */
    .comment-input-area {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
      position: sticky; bottom: 0;
    }
    .comment-input-head {
      display: flex; align-items: center; gap: 8px; padding: 10px 12px 6px;
    }
    .comment-textarea {
      width: 100%; border: none; outline: none;
      font-family: var(--sans); font-size: 12.5px;
      color: var(--text-primary); resize: none;
      background: transparent; padding: 0 12px 10px;
      min-height: 52px;
    }
    .comment-textarea::placeholder { color: var(--text-muted); }
    .comment-input-foot {
      padding: 8px 12px; border-top: 1px solid var(--border);
      display: flex; align-items: center; justify-content: space-between;
      background: rgba(0,0,0,.015);
    }
    .comment-tools { display: flex; gap: 4px; }
    .comment-tool {
      width: 28px; height: 28px; border-radius: 6px;
      display: flex; align-items: center; justify-content: center;
      font-size: 12px; color: var(--text-muted); cursor: pointer;
      transition: all .12s;
    }
    .comment-tool:hover { background: rgba(0,0,0,.05); color: var(--text-primary); }

    /* â”€â”€ ACTIVITY tab â”€â”€ */
    .activity-timeline { position: relative; padding-left: 26px; }
    .activity-timeline::before {
      content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px;
      width: 2px; background: var(--border); border-radius: 2px;
    }
    .act-item {
      position: relative; margin-bottom: 14px; display: flex; gap: 10px;
    }
    .act-dot {
      position: absolute; left: -21px; top: 3px;
      width: 12px; height: 12px; border-radius: 50%;
      border: 2px solid var(--surface); z-index: 1;
    }
    .act-body { flex: 1; }
    .act-title { font-size: 12.5px; color: var(--text-primary); line-height: 1.4; }
    .act-title b { font-weight: 600; }
    .act-meta { font-size: 10.5px; color: var(--text-muted); margin-top: 2px; display: flex; align-items: center; gap: 6px; }

    /* â”€â”€ DETAIL SIDEBAR (meta + actions) â”€â”€ */
    .detail-sidebar {
      width: 248px; flex-shrink: 0;
      border-left: 1px solid var(--border);
      background: var(--surface);
      display: flex; flex-direction: column;
      overflow-y: auto;
    }
    .detail-sidebar::-webkit-scrollbar { width: 3px; }
    .detail-sidebar::-webkit-scrollbar-thumb { background: var(--border-dark); }

    /* action buttons */
    .action-panel {
      padding: 14px; border-bottom: 1px solid var(--border);
    }
    .action-panel-title {
      font-size: 10px; font-weight: 700; text-transform: uppercase;
      letter-spacing: .08em; color: var(--text-muted); margin-bottom: 10px;
    }

    .btn-action-full {
      display: flex; align-items: center; gap: 8px;
      width: 100%; padding: 9px 12px; border-radius: 8px;
      font-size: 12.5px; font-weight: 600; cursor: pointer;
      border: 1.5px solid transparent; transition: all .14s;
      margin-bottom: 7px; text-align: left;
    }
    .btn-action-full i { font-size: 13px; width: 16px; text-align: center; flex-shrink: 0; }
    .btn-action-full:last-child { margin-bottom: 0; }

    .btn-approve-full {
      background: rgba(22,163,74,.1); color: #15803d;
      border-color: rgba(22,163,74,.2);
    }
    .btn-approve-full:hover { background: rgba(22,163,74,.18); }

    .btn-rework-full {
      background: rgba(225,29,72,.08); color: #be123c;
      border-color: rgba(225,29,72,.2);
    }
    .btn-rework-full:hover { background: rgba(225,29,72,.14); }

    .btn-draft-full {
      background: rgba(37,99,235,.07); color: #1d4ed8;
      border-color: rgba(37,99,235,.15);
    }
    .btn-draft-full:hover { background: rgba(37,99,235,.13); }

    .btn-assign-full {
      background: rgba(0,0,0,.04); color: var(--text-primary);
      border-color: var(--border);
    }
    .btn-assign-full:hover { border-color: var(--theme); color: var(--theme); }

    .btn-sync-full {
      background: rgba(8,93,106,.08); color: var(--theme);
      border-color: rgba(8,93,106,.2);
    }
    .btn-sync-full:hover { background: rgba(8,93,106,.15); }

    .btn-archive-full {
      background: rgba(0,0,0,.03); color: var(--text-secondary);
      border-color: var(--border);
    }
    .btn-archive-full:hover { border-color: var(--red); color: var(--red); }

    /* meta card */
    .meta-panel {
      padding: 14px; border-bottom: 1px solid var(--border);
    }
    .meta-panel-title {
      font-size: 10px; font-weight: 700; text-transform: uppercase;
      letter-spacing: .08em; color: var(--text-muted); margin-bottom: 10px;
    }
    .meta-row {
      display: flex; align-items: flex-start;
      justify-content: space-between; gap: 8px;
      padding: 7px 0; border-bottom: 1px solid rgba(0,0,0,.05);
    }
    .meta-row:last-child { border-bottom: none; padding-bottom: 0; }
    .meta-key { font-size: 11px; color: var(--text-muted); font-weight: 600; flex-shrink: 0; }
    .meta-val { font-size: 12px; color: var(--text-primary); text-align: right; }
    .meta-val.mono { font-family: var(--mono); font-size: 11.5px; color: var(--theme); }
    .meta-val.overdue { color: var(--red); font-weight: 600; }

    /* assignee chip */
    .assignee-chip {
      display: inline-flex; align-items: center; gap: 5px;
      font-size: 11.5px; color: var(--text-primary);
    }
    .chip-av {
      width: 20px; height: 20px; border-radius: 5px;
      display: inline-flex; align-items: center; justify-content: center;
      font-size: 7.5px; font-weight: 800; color: #fff;
    }

    /* sync pill */
    .sync-pill {
      display: inline-flex; align-items: center; gap: 4px;
      padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 700;
    }
    .synced   { background: var(--green-light); color: var(--green); }
    .pending-sync { background: var(--orange-light); color: var(--orange); }
    .failed-sync { background: var(--red-light); color: var(--red); }

    /* watchers */
    .watchers-panel {
      padding: 14px;
    }
    .watcher-row {
      display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
    }
    .watcher-row:last-child { margin-bottom: 0; }
    .watcher-name { font-size: 12px; color: var(--text-primary); flex: 1; }
    .watcher-role { font-size: 10.5px; color: var(--text-muted); }

    /* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
       MODALS
    â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
    .overlay {
      position: fixed; inset: 0;
      background: rgba(0,0,0,.45);
      display: none; align-items: center; justify-content: center;
      z-index: 1000;
    }
    .overlay.open { display: flex; }
    .mini-modal {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 14px; padding: 22px;
      width: 420px; max-width: 94vw;
      box-shadow: 0 24px 60px rgba(0,0,0,.16);
      animation: fadeIn .18s ease;
    }
    .mini-modal h3 {
      font-size: 15px; font-weight: 700; color: var(--text-primary);
      margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
      display: flex; align-items: center; justify-content: space-between;
    }
    .mini-modal h3 button {
      background: none; border: none; font-size: 18px;
      color: var(--text-muted); cursor: pointer; line-height: 1;
    }
    .modal-form-group { margin-bottom: 14px; }
    .modal-form-group label {
      display: block; font-size: 10.5px; font-weight: 700;
      text-transform: uppercase; letter-spacing: .06em;
      color: var(--text-muted); margin-bottom: 5px;
    }
    .modal-input, .modal-select, .modal-textarea {
      width: 100%; padding: 8px 12px;
      border: 1px solid var(--border); border-radius: 8px;
      font-size: 12.5px; font-family: var(--sans);
      color: var(--text-primary); background: var(--bg);
      outline: none; transition: border-color .15s;
    }
    .modal-input:focus, .modal-select:focus, .modal-textarea:focus {
      border-color: var(--theme); background: #fff;
      box-shadow: 0 0 0 2px rgba(8,93,106,.1);
    }
    .modal-textarea { resize: vertical; min-height: 80px; }
    .modal-footer-btns {
      display: flex; justify-content: flex-end; gap: 8px;
      padding-top: 14px; border-top: 1px solid var(--border); margin-top: 4px;
    }

    /* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
       TOPBAR OVERRIDE FOR REQUESTS
    â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
    .rq-topbar-right { display: flex; align-items: center; gap: 8px; }
    .btn-primary-sm {
      padding: 7px 14px; background: var(--theme); color: #fff;
      border: none; border-radius: 7px; font-size: 12.5px;
      font-weight: 600; cursor: pointer; transition: opacity .14s;
    }
     .btn-danger-sm {
      padding: 7px 14px; background: var(--danger); color: #fff;
      border: none; border-radius: 7px; font-size: 12.5px;
      font-weight: 600; cursor: pointer; transition: opacity .14s;
    }

    .btn-primary-sm:hover { opacity: .87; }
    .btn-ghost-sm {
      padding: 7px 12px; background: transparent; color: var(--text-secondary);
      border: 1px solid var(--border); border-radius: 7px;
      font-size: 12.5px; font-weight: 500; cursor: pointer; transition: all .14s;
    }
    .btn-ghost-sm:hover { border-color: var(--theme); color: var(--theme); }
    .filter-sel {
      padding: 6px 28px 6px 10px;
      background-color: rgba(0,0,0,.04);
      border: 1px solid var(--border); border-radius: 7px;
      color: var(--text-secondary); font-family: var(--sans);
      font-size: 12px; outline: none; cursor: pointer;
    }
    .filter-sel:focus { border-color: var(--theme); }

    /* panel section header */
    .section-hdr {
      font-size: 11px; font-weight: 700; text-transform: uppercase;
      letter-spacing: .07em; color: var(--text-muted);
      margin: 16px 0 8px; padding-bottom: 6px;
      border-bottom: 1px solid var(--border);
    }
    .section-hdr:first-child { margin-top: 0; }

    /* responsive */
    @media (max-width: 1100px) {
      .detail-sidebar { width: 210px; }
    }
    @media (max-width: 900px) {
      .req-list-panel { width: 100%; }
      .detail-body {
        display: block;
      }
      .requests-page {
        display: block;
        height: auto;
        overflow: scroll;
    }
      .req-detail-panel { display: block;  }
      .req-detail-panel.mobile-open { display: flex; }
      .detail-sidebar { width: 100%; }
    }
/*simPro style*/
:root {
  --teal-dk:    #0b5ed7;
  --teal-glow:  rgba(13,110,253,.12);
  --teal-soft:  rgba(13,110,253,.08);

  --bg:         #f4f7fb;
  --s1:         #ffffff;
  --s2:         #f8fafc;
  --s3:         #eef2f7;
  --s4:         #e5eaf1;

  --b1:         #dbe3ec;
  --b2:         #c9d4e0;

  --green:      #16a34a;
  --yellow:     #d97706;
  --red:        #dc2626;
  --blue:       #2563eb;
  --orange:     #ea580c;

  --text:       #1e293b;
  --muted:      #64748b;
  --dim:        #94a3b8;

  --r:  5px;
  --rl: 9px;
  --sw: 228px;
}
    /* â”€â”€ SEARCH CARD â”€â”€ */
    .sc{background:var(--s1);border:1px solid var(--b1);border-radius:var(--rl);overflow:hidden;}

    /* Catalogue/Pre-Builds tabs */
    .cat-tabs{display:flex;border-bottom:1px solid var(--b1);padding:0 16px;}
    .ct{padding:11px 17px;font-size:13px;font-weight:600;font-family:inherit;color:var(--muted);background:transparent;border:none;border-bottom:2px solid transparent;margin-bottom:-1px;cursor:pointer;transition:all .13s;}
    .ct:hover{color:var(--text);}
    .ct.active{color:var(--theme);border-bottom-color:var(--theme);}

    /* Search bar */
    .sbr{display:flex;align-items:center;gap:8px;padding:14px 16px 12px;}
    .sw{flex:1;position:relative;}
    .si{position:absolute;left:11px;top:50%;transform:translateY(-50%);color:var(--dim);font-size:14px;pointer-events:none;}
    .sinput{width:100%;background:var(--s2);border:1px solid var(--b1);border-radius:var(--r);padding:9px 12px 9px 34px;font-size:13px;font-family:inherit;color:var(--text);outline:none;transition:border-color .13s,box-shadow .13s;}
    .sinput::placeholder{color:var(--dim);}
    .sinput:focus{border-color:var(--theme);box-shadow:0 0 0 3px var(--teal-glow);}
    .em-row{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--muted);cursor:pointer;user-select:none;white-space:nowrap;}
    .em-row input{accent-color:var(--theme);cursor:pointer;}

    /* Mode tabs row */
    .mode-row{display:flex;align-items:center;border-top:1px solid var(--b1);padding:0 16px;}
    .mt{padding:9px 13px;font-size:12px;font-weight:500;font-family:inherit;color:var(--muted);background:transparent;border:none;border-bottom:2px solid transparent;margin-bottom:-1px;cursor:pointer;transition:all .12s;}
    .mt:hover{color:var(--text);}
    .mt.active{color:var(--theme);border-bottom-color:var(--theme);}
    .mdiv{width:1px;height:18px;background:var(--b1);margin:0 3px;align-self:center;}
    .fav-row{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--muted);cursor:pointer;user-select:none;margin-right:4px;}
    .fav-row input{accent-color:var(--theme);cursor:pointer;}
    .mr-auto{margin-left:auto;}

    /* Filter section */
    .fsec{padding:14px 16px 16px;border-top:1px solid var(--b1);display:none;}
    .fsec.open{display:block;}
    .flbl{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:var(--muted);margin-bottom:12px;}
    .fgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px 14px;}
    .fg{display:flex;flex-direction:column;gap:4px;}
    .fl{font-size:11px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.5px;}
    .fi,.fsel{background:var(--s2);border:1px solid var(--b1);border-radius:var(--r);padding:7px 10px;font-size:12.5px;font-family:inherit;color:var(--text);outline:none;transition:border-color .13s;}
    .fi::placeholder{color:var(--dim);}
    .fi:focus,.fsel:focus{border-color:var(--theme);}
    .fsel option{background:var(--s3);}
    .fopts{display:flex;align-items:center;gap:14px;margin-top:12px;padding-top:12px;border-top:1px solid var(--b1);}
    .fc{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--muted);cursor:pointer;user-select:none;}
    .fc input{accent-color:var(--theme);cursor:pointer;}
    .factions{margin-left:auto;display:flex;gap:7px;}

    /* Active filters */
    .afs{display:none;align-items:center;gap:6px;flex-wrap:wrap;padding:8px 16px 10px;}
    .afs.show{display:flex;}
    .afl{font-size:11px;color:var(--muted);font-weight:600;}
    .aft{display:inline-flex;align-items:center;gap:5px;background:rgba(0,180,180,.1);border:1px solid rgba(0,180,180,.25);color:var(--theme);border-radius:20px;padding:3px 9px;font-size:11px;font-weight:500;}
    .aft .x{color:rgba(0,180,180,.5);cursor:pointer;font-size:13px;line-height:1;}
    .aft .x:hover{color:var(--red);}

    /* â”€â”€ STATS â”€â”€ */
    .stats{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;}
    .stat{position:relative;background:var(--s1);border:1px solid var(--b1);border-radius:var(--rl);padding:14px 16px;transition:border-color .13s;}
    .stat:hover{border-color:var(--b2);}
    .slbl{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.9px;color:var(--muted);margin-bottom:6px;}
    .sval{font-size:24px;font-weight:700;font-family:'JetBrains Mono',monospace;color:var(--text);letter-spacing:-1px;}
    .snote{font-size:11px;color:var(--muted);margin-top:3px;}
    .snote.up{color:var(--green);}
    .snote.warn{color:var(--yellow);}

    /* â”€â”€ TOOLBAR â”€â”€ */
    .tb{display:flex;align-items:center;gap:10px;}
    .rc{font-size:12.5px;color:var(--muted);flex:1;}
    .rc strong{color:var(--text);}
    .ssel{background:var(--s2);border:1px solid var(--b1);border-radius:var(--r);padding:6px 10px;font-size:12px;font-family:inherit;color:var(--muted);outline:none;cursor:pointer;}
    .ssel:focus{border-color:var(--theme);}

    /* â”€â”€ TABLE â”€â”€ */
    .tw{background:var(--s1);border:1px solid var(--b1);border-radius:var(--rl);    overflow-x: auto;margin-top:10px;}
    table{width:100%;border-collapse:collapse;}
    thead th{padding:10px 14px;text-align:left;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.9px;color:var(--muted);background:var(--s2);border-bottom:1px solid var(--b1);white-space:nowrap;cursor:pointer;user-select:none;}
    thead th:hover{color:var(--text);}
    thead th.sorted{color:var(--theme);}
    .sic{opacity:.35;font-style:normal;font-size:10px;margin-left:3px;}
    thead th.sorted .sic{opacity:1;}
    tbody tr{border-bottom:1px solid var(--b1);cursor:pointer;transition:background .11s;}
    tbody tr:last-child{border-bottom:none;}
    tbody tr:hover{background:var(--s2);}
    tbody tr.exp{background:var(--s2);}
    td{padding:11px 14px;vertical-align:middle;}
    .eic{font-size:10px;color:var(--dim);width:16px;display:inline-block;text-align:center;transition:color .12s;}
    tr:hover .eic,tr.exp .eic{color:var(--theme);}
    .pno{font-family:'JetBrains Mono',monospace;font-size:11.5px;font-weight:600;color:var(--theme);white-space:nowrap;}
    .drw{font-family:'JetBrains Mono',monospace;font-size:11px;color:var(--yellow);background:rgba(245,158,11,.08);border:1px solid rgba(245,158,11,.2);padding:2px 7px;border-radius:3px;display:inline-block;}
    .rev{font-size:10px;font-family:'JetBrains Mono',monospace;color:var(--muted);background:var(--s3);border:1px solid var(--b1);padding:2px 6px;border-radius:3px;display:inline-block;margin-left:5px;}
    .dc{max-width:250px;line-height:1.4;}
    .hl{background:rgba(0,180,180,.18);color:var(--theme);border-radius:2px;padding:0 2px;}
    .tb-a{display:inline-flex;align-items:center;padding:3px 9px;border-radius:20px;font-size:11px;font-weight:600;white-space:nowrap;}
    .ta{background:rgb(8 93 106 / 10%);border:1px solid rgb(8 93 106 / 20%);color:var(--theme);}
    .tp{background:rgba(34,197,94,.09);border:1px solid rgba(34,197,94,.27);color:#4ade80;}
    .tpb{background:rgba(249,115,22,.1);border:1px solid rgba(249,115,22,.27);color:#fb923c;}
    .st{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--muted);}
    .st::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--dim);flex-shrink:0;}
    .sa::before{background:var(--green);}
    .sr::before{background:var(--yellow);}
    .so::before{background:var(--red);}
    .wupips{display:flex;align-items:center;gap:3px;}
    .pip{width:7px;height:7px;border-radius:50%;background:var(--s3);border:1px solid var(--b1);}
    .pip.on{background:var(--theme);border-color:var(--theme);}
    .pnum{font-size:11px;font-family:'JetBrains Mono',monospace;color:var(--muted);margin-left:4px;}
    .ra{display:flex;gap:3px;justify-content:flex-end;}
    .ib{background:transparent;border:1px solid transparent;border-radius:var(--r);padding:4px 7px;font-size:12px;color:var(--dim);cursor:pointer;transition:all .11s;}
    .ib:hover{color:var(--text);background:var(--s3);border-color:var(--b1);}

    /* â”€â”€ WHERE USED PANEL â”€â”€ */
    .wuex td{padding:0;}
    .wup{display:none;background:#ecf1f9;border-top:2px solid var(--teal-soft);padding:5px;animation:fd .16s ease;}
    .wup.open{display:block;}
    @keyframes fd{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
    .wuh{display:flex;align-items:center;gap:10px;margin-bottom:12px;}
    .wut{font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.8px;color:var(--theme);}
    .wus{font-size:11px;color:var(--muted);margin-left:auto;}
    .wucards{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px;}
    .wuc{background:var(--s1);border:1px solid var(--b1);border-radius:var(--r);padding:10px 13px;cursor:pointer;transition:border-color .12s;}
    .wuc:hover{border-color:var(--theme);}
    .wucn{font-family:'JetBrains Mono',monospace;font-size:11px;font-weight:600;color:var(--theme);margin-bottom:2px;}
    .wucname{font-size:12px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:5px;}
    .wucf{display:flex;align-items:center;gap:6px;}
    .wuqty{font-family:'JetBrains Mono',monospace;font-size:10px;background:var(--teal-soft);border:1px solid rgba(0,180,180,.2);color:var(--theme);padding:1px 6px;border-radius:20px;}
    .wu-nil{font-size:12px;color:var(--muted);font-style:italic;}
    .ecn-note{background:rgb(8 93 106 / 10%);border: 1px solid rgb(8 93 106 / 20%);border-radius:var(--r);padding:8px 13px;font-size:11.5px;color:var(--theme);margin-top:10px;display:flex;align-items:center;gap:7px;}

    /* â”€â”€ PAGER â”€â”€ */
    .pb{background:var(--s1);border:1px solid var(--b1);border-radius:var(--r);padding:5px 11px;font-size:11.5px;font-family:'JetBrains Mono',monospace;color:var(--muted);cursor:pointer;transition:all .11s;}
    .pb:hover{color:var(--text);border-color:var(--b2);}
    .pb.on{background:var(--theme);border-color:var(--theme);color:#fff;}
    .pb:disabled{opacity:.3;cursor:not-allowed;pointer-events:none;}

    ::-webkit-scrollbar{width:5px;height:5px;}
    ::-webkit-scrollbar-track{background:transparent;}
    ::-webkit-scrollbar-thumb{background:var(--b2);border-radius:3px;}

    @media(max-width:960px){
      .stats{grid-template-columns:repeat(3,1fr);}
      .fgrid{grid-template-columns:1fr 1fr;}
    }
    @media(max-width:991px){

      .topbar-left {
        margin-bottom: 10px;
      }
      .sidebar{
        position: fixed !important;
        top: 0;
        left: -100% !important;
        width: 280px !important;
        height: 100vh !important;
        background: #0f172a !important;
        z-index: 99999 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        transition: all .35s ease !important;
        display: flex !important;
        flex-direction: column !important;
      }

      .sidebar.mobile-open{
        left: 0 !important;
      }

      .sidebar-nav{
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
      }

      .sidebar .nav-item{
        display: flex !important;
        align-items: center !important;
        width: 100%;
      }

      .main-content{
        margin-left: 0 !important;
        width: 100% !important;
      }

      #sidebar-overlay{
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.6);
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: .3s ease;
      }

      #sidebar-overlay.active{
        opacity: 1;
        visibility: visible;
      }

    }
/* SYNC LOG MODAL */
.sync-log-modal{
  width:min(760px,95%);
}

.sync-log-subtitle{
  font-size:12px;
  color:var(--text-soft);
  margin-top:4px;
}

.sync-log-top{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin-bottom:20px;
}

.sync-log-box{
  background: rgb(199 210 248 / 43%);
  border: 1px solid rgb(96 127 227 / 21%);
  border-radius:14px;
  padding:14px;
}

.sync-log-box .label{
  display:block;
  font-size:11px;
  color:var(--text-soft);
  margin-bottom:6px;
  text-transform:uppercase;
  letter-spacing:.5px;
}

.sync-error-card{
  display:flex;
  gap:16px;
  align-items:flex-start;
  padding:18px;
  border-radius:16px;
  background:rgba(239,68,68,.08);
  border:1px solid rgba(239,68,68,.18);
  margin-bottom:22px;
}

.error-icon{
  width:42px;
  height:42px;
  border-radius:12px;
  background:rgba(239,68,68,.15);
  color:#ef4444;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
}

.error-title{
  font-weight:600;
  margin-bottom:6px;
}

.error-desc{
  font-size:13px;
  color:var(--text-soft);
  line-height:1.6;
}

.sync-log-timeline{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.timeline-row{
  display:flex;
  gap:14px;
  position:relative;
}

.timeline-row::before{
  content:"";
  position:absolute;
  left:7px;
  top:18px;
  width:2px;
  height:calc(100% + 18px);
  background:rgb(0 0 0 / 18%);
}

.timeline-row:last-child::before{
  display:none;
}

.timeline-dot{
  width:16px;
  height:16px;
  border-radius:50%;
  margin-top:4px;
  flex-shrink:0;
}

.timeline-row.success .timeline-dot{
  background:#10b981;
}

.timeline-row.info .timeline-dot{
  background:#3b82f6;
}

.timeline-row.failed .timeline-dot{
  background:#ef4444;
}

.timeline-row.retry .timeline-dot{
  background:#f59e0b;
}

.timeline-content{
  flex:1;
}

.timeline-title{
  font-size:14px;
  font-weight:500;
}

.timeline-time{
  font-size:12px;
  color:var(--text-soft);
  margin-top:4px;
}

@media(max-width:768px){

  .sync-log-top{
      grid-template-columns:1fr 1fr;
  }

}
.rev-label {
  font-size: 8px;
  font-weight: bold;
  color: #28a745;
}
.revision-badge {
  background: #e4fae6;
  display: inline-block;
  color: #15a34a;
  padding: 2px 8px;
  border-radius: 11px;
  font-size: 10px;
}
.rev-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .3px;
  white-space: nowrap;
}
.rev-pill.current {
  background: var(--green-light);
  color: var(--green);
}
.btn-sm {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 5px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: var(--font);
  margin-right: 4px;
  transition: background .12s, border-color .12s;
  text-decoration: none;
  display: inline-block;
}
.w-50px {
  width: 50px;
}
.compare-strip{
  display:flex;
  justify-content:center;
  align-items:center;
  margin:10px 0;
  position:relative;
}

.compare-strip::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:50%;
  height:1px;
  background:rgba(255,255,255,0.06);
  z-index:1;
}

.compare-btn{
  position:relative;
  z-index:2;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 14px;
  border-radius:999px;
  border:1px solid rgba(71,184,201,0.22);
  background:rgba(71,184,201,0.08);
  color:#47b8c9;
  font-size:11.5px;
  font-weight:600;
  letter-spacing:.2px;
  cursor:pointer;
  transition:all .25s ease;
  backdrop-filter:blur(10px);
}

.compare-btn i{
  font-size:11px;
  opacity:.9;
}


.compare-btn:active{
  transform:scale(.98);
}

.rev-wrap{
  display:flex;
  gap:2px;
  margin-top:4px;
}

.rev-current{
  font-size:10px;
  opacity:.9;
}
.bg-cyan {
  background: cyan;
}
.dashboard-filter-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
}

.filter-group{
  display:flex;
  gap:12px;
}


.action-filter-bar{
  display:flex;
  gap:10px;
  margin:20px 0;
  flex-wrap:wrap;
}

.status-row.clickable{
  cursor:pointer;
  transition:.2s;
}

.status-row.clickable:hover{
  background:rgba(71,184,201,.08);
}

.custom-date-box{
  display:none;
  gap: 14px;
  align-items: end;
  margin-top: 0;
  padding: 16px;
  border-radius: 12px;
  background: white;
  border: 1px solid #eee;
}

.date-field{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.date-field label{
  font-size:12px;
  color:#94a3b8;
}

.date-field input{
  height:40px;
  padding:0 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.08);
  background:#0f172a;
  color:#fff;
}
.date-range-field{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:260px;
}
.date-range-input{
  height: 42px;
  border-radius: 10px;
  border: 1px solid #eee;
  padding: 0 14px;
  font-size: 13px;
  cursor: pointer;
}

.flatpickr-calendar{
  background:#111827;
  border:none;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}

.flatpickr-day{
  color:#fff;
}

.flatpickr-day.selected{
  background:#47b8c9;
  border-color:#47b8c9;
}
.action-filter-bar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:end;
  margin-bottom:20px;
  padding:18px;
  border-radius:16px;
  background:#ffffff;
  border:1px solid #e5e7eb;
  box-shadow:0 4px 18px rgba(15,23,42,.04);
}

.filter-block{
  display:flex;
  flex-direction:column;
  gap:6px;
  max-width:200px;
}

.filter-label{
  font-size:12px;
  font-weight:600;
  color:#64748b;
  margin-bottom:2px;
}

.filter-input-wrap{
  position:relative;
}

.filter-icon{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  color:#94a3b8;
  font-size:13px;
  z-index:2;
}

.dashboard-filter-select{
  height:44px;
  border-radius:12px;
  border:1px solid #dbe2ea;
  background:#ffffff;
  color:#0f172a;
  padding-left:38px;
  font-size:13px;
  transition:.2s;
}

.dashboard-filter-select:focus{
  box-shadow:0 0 0 3px rgba(71,184,201,.12);
  border-color:#47b8c9;
  outline:none;
}

.filter-actions{
  display:flex;
  gap:10px;
  align-items:center;
}

.btn-filter-primary{
  height:44px;
  padding:0 18px;
  border:none;
  border-radius:12px;
  background:var(--theme);
  color:#fff;
  font-size:13px;
  font-weight:600;
  display:flex;
  align-items:center;
  gap:8px;
  transition:.2s;
}


.btn-filter-reset{
  height:44px;
  padding:0 18px;
  border-radius:12px;
  border:1px solid #dbe2ea;
  background:#ffffff;
  color:#475569;
  font-size:13px;
  font-weight:500;
  transition:.2s;
}

.btn-filter-reset:hover{
  background:#f8fafc;
}
.analytics-topbar{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:20px;
  flex-wrap:wrap;
}

.analytics-title{
  font-size:16px;
  font-weight:700;
  color:#0f172a;
  margin:0;
}

.analytics-subtitle{
  font-size:12px;
  color:#64748b;
}

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

.analytics-select{
  min-width:180px;
  height:42px;
  border-radius:12px;
  border:1px solid #dbe2ea;
  background:#fff;
  font-size:13px;
  color:#0f172a;
}

.analytics-select:focus{
  box-shadow:none;
  border-color:#47b8c9;
}

.analytics-date-input{
  height:42px;
  border-radius:12px;
  border:1px solid #dbe2ea;
}

.chart-area{
  margin-top:18px;
}

.sync-header,
.queue-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:20px;
}

.queue-live-badge{
  background:rgba(34,197,94,.12);
  color:#22c55e;
  font-size:11px;
  font-weight:600;
  padding:5px 10px;
  border-radius:20px;
}

.legend-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 12px;
  border-radius:12px;
  transition:.2s;
  cursor:pointer;
}

.legend-item:hover{
  background:#f8fafc;
}
.assigned-status{
  background:rgba(59,130,246,.12);
  color:var(--info);
}
.review-tag{
  background:rgba(245,158,11,.12);
  color:var(--orange);
}

.assigned-tag{
  background:rgba(59,130,246,.12);
  color:var(--info);
}

.released-tag{
  background:rgba(139,92,246,.12);
  color:var(--purple);
}
.sync-stat.clickable{
  cursor:pointer;
  transition:.2s;
}

.sync-stat.clickable:hover{
  transform:translateY(-2px);
}

.overload{
  color:var(--red);
  font-weight:600;
}
.mh-80vh {
  max-height: 80vh;
}
.mw-650px {
  max-width: 650px;
}
.section-divider{
  display:flex;
  align-items:center;
  gap:12px;
  margin:20px 0 14px;
  font-size:13px;
  font-weight:600;
  color:var(--text-secondary);
}

.section-divider::after{
  content:'';
  flex:1;
  height:1px;
  background:var(--border);
}

.required{
  color:var(--red);
}

.field-note{
  display:block;
  margin-top:6px;
  font-size:12px;
  color:var(--text-secondary);
}

.checkbox-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-bottom:16px;
}

.checkbox-item{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
}
.spl-pending{
  background:rgba(37,99,235,.1);
  color:#2563EB;
}

.spl-assigned{
  background:rgba(74,158,255,.12);
  color:#4A9EFF;
}

.spl-progress{
  background:rgba(217,119,6,.12);
  color:#D97706;
}
/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   APPROVAL MATRIX
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.approval-matrix{
  border:1px solid var(--border);
  border-radius:10px;
  padding:14px;
  background:#fff;
  margin-bottom:16px;
}

.approval-title{
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--text-dim);
  margin-bottom:12px;
}

.approval-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 0;
  border-bottom:1px solid var(--border);
}

.approval-row:last-child{
  border-bottom:none;
}

.approval-left{
  display:flex;
  align-items:center;
  gap:8px;
}

.approval-dot{
  width:8px;
  height:8px;
  border-radius:50%;
}

.approval-dot.success{
  background:var(--green);
}

.approval-dot.pending{
  background:var(--orange);
}

.approval-status{
  font-size:11px;
  font-weight:600;
}

.approval-progress{
  margin-top:12px;
  padding-top:12px;
  border-top:1px dashed var(--border);
  font-size:11px;
  font-weight:600;
  color:var(--text-dim);
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   RELEASE WARNING
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.release-lock-warning{
  display:flex;
  align-items:center;
  gap:8px;
  padding:12px 14px;
  border-radius:8px;
  background:rgba(245,166,35,.08);
  border:1px solid rgba(245,166,35,.2);
  color:var(--orange);
  font-size:12px;
  font-weight:500;
  margin-bottom:12px;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   DISABLED ACTION BUTTON
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.disabled-action{
  opacity:.7;
  cursor:not-allowed !important;
  background:#CBD5E1 !important;
  border-color:#CBD5E1 !important;
  color:#64748B !important;
}

.disabled-action:hover{
  transform:none !important;
  box-shadow:none !important;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   SMALL GHOST BUTTON
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.btn-ghost-sm{
  background:transparent;
  border:1px solid var(--border);
  border-radius:6px;
  padding:4px 10px;
  font-size:11px;
  color:var(--text-dim);
  cursor:pointer;
  transition:.15s;
}

.btn-ghost-sm:hover{
  border-color:var(--theme);
  color:var(--theme);
  background:rgba(0,0,0,.02);
}
/* APPROVAL BADGES */

.badge-escalated{
  background:rgba(124,58,237,.08);
  color:#7C3AED;
}

/* AGING */

.aging-badge{
  display:inline-flex;
  align-items:center;
  padding:5px 10px;
  border-radius:20px;
  font-size:10px;
  font-weight:700;
  background:var(--red-light);
  color:var(--red);
  margin-bottom:8px;
}
.approval-row.active{
  background:rgba(8,93,106,.04);
  border-radius:8px;
  padding-left:10px;
  padding-right:10px;
}
/* APPROVAL MATRIX */

.approval-matrix{
  border:1px solid var(--border);
  border-radius:12px;
  padding:14px;
  margin-bottom:14px;
  background:#fff;
}

.approval-title{
  font-size:11px;
  font-weight:700;
  color:var(--text-dim);
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:12px;
}

.approval-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 0;
  border-bottom:1px solid var(--border);
}

.approval-row:last-child{
  border-bottom:none;
}

.approval-left{
  display:flex;
  align-items:center;
  gap:8px;
}

.approval-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#CBD5E1;
}

.approval-dot.success{
  background:var(--green);
}

.approval-dot.pending{
  background:var(--orange);
}

/* RELEASE WARNING */

.release-lock-warning{
  display:flex;
  align-items:center;
  gap:8px;
  padding:12px 14px;
  border-radius:10px;
  margin:14px 0;
  background:var(--orange-light);
  color:var(--orange);
}
/* DRAWING TYPE */

.drawing-type-row{
  margin-top:6px;
}

.drawing-type{
  display:inline-flex;
  align-items:center;
  padding:3px 8px;
  border-radius:20px;
  font-size:10px;
  font-weight:700;
}

.drawing-type.sales{
  background:rgba(59,130,246,.08);
  color:#3B82F6;
}

.drawing-type.production{
  background:rgba(34,197,94,.08);
  color:#22C55E;
}

.drawing-type.asbuilt{
  background:rgba(168,85,247,.08);
  color:#7C3AED;
}

/* MINI APPROVAL */

.approval-mini{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:6px;
}

.approval-mini span{
  font-size:10px;
  font-weight:600;
}

.approval-mini-done{
  color:var(--green);
}

.approval-mini-pending{
  color:var(--orange);
}

/* STATUS */

.spill-pending{
  background:rgba(59,130,246,.08);
  color:#3B82F6;
}
.tag-assigned {
  background: #9b00ff;
}
.notif-strip {
  padding: 5px;
  background: #f5f1e5;
}
.health-dot{
  animation:pulseHealth 1.8s infinite;
}

@keyframes pulseHealth{
  0%{opacity:1;transform:scale(1);}
  50%{opacity:.45;transform:scale(1.2);}
  100%{opacity:1;transform:scale(1);}
}

.multi-approval-summary{
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
  margin-bottom:20px;
  background:#fff;
}

.multi-ap-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:16px;
}

.multi-ap-title{
  font-size:15px;
  font-weight:700;
  color:var(--text);
}

.multi-ap-count{
  font-size:12px;
  font-weight:700;
  color:var(--theme);
  background:rgba(8,93,106,.08);
  padding:6px 10px;
  border-radius:30px;
}

.multi-ap-grid{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.multi-ap-card{
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.multi-ap-card.approved{
  background:rgba(34,197,94,.04);
}

.multi-ap-card.pending{
  background:rgba(245,158,11,.05);
}

.multi-ap-icon{
  width:42px;
  height:42px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(8,93,106,.08);
  color:var(--theme);
  font-size:18px;
}

.multi-ap-body{
  flex:1;
}

.multi-ap-dept{
  font-size:13px;
  font-weight:700;
  color:var(--text);
}

.multi-ap-user{
  font-size:12px;
  color:var(--text-dim);
  margin-top:4px;
}

.multi-ap-badge{
  padding:6px 12px;
  border-radius:30px;
  font-size:11px;
  font-weight:700;
}

.multi-ap-badge.success{
  background:rgba(34,197,94,.1);
  color:#22c55e;
}

.multi-ap-badge.pending{
  background:rgba(245,158,11,.1);
  color:#f59e0b;
}

.multi-ap-footer{
  margin-top:16px;
  padding:12px 14px;
  border-radius:12px;
  background:rgba(240,68,56,.06);
  color:var(--red);
  font-size:12px;
  font-weight:600;
}

.priority-chip{
  display:inline-flex;
  align-items:center;
  padding:6px 12px;
  border-radius:30px;
  font-size:11px;
  font-weight:700;
}

.priority-chip.high{
  background:rgba(240,68,56,.1);
  color:var(--red);
}

.priority-chip.medium{
  background:rgba(245,158,11,.12);
  color:#f59e0b;
}

.priority-chip.low{
  background:rgba(34,197,94,.1);
  color:#22c55e;
}


.dynamic-prompt{
  padding:10px 14px;
  border-radius:12px;
  background:rgba(71,184,201,.08);
  border:1px solid rgba(71,184,201,.18);
  color:#47b8c9;
  font-size:12px;
  margin-bottom:14px;
  line-height:1.5;
}

.required{
  color:#ef4444;
  margin-left:3px;
}

.required-error{
  border-color:#ef4444 !important;
  box-shadow:0 0 0 3px rgba(239,68,68,.08);
}
.w-150px {
  width: 150px;
}
/* ===================================
   REQUEST WORKFLOW MINI
=================================== */

.workflow-mini{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:14px 18px;
  margin:12px 0 18px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  flex-wrap:wrap;
}

.workflow-step{
  padding:8px 14px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  background:#f3f4f6;
  color:#6b7280;
  border:1px solid #e5e7eb;
  transition:all .25s ease;
}

.workflow-step.active{
  background:var(--theme);
  color:#fff;
  border-color:var(--theme);
  box-shadow:0 4px 12px rgba(37,99,235,.25);
}

.workflow-step.done{
  background:#dcfce7;
  color:#166534;
  border-color:#bbf7d0;
}

.workflow-arrow{
  font-size:18px;
  font-weight:700;
  color:#94a3b8;
  line-height:1;
}

/* Mobile */
@media(max-width:768px){

  .workflow-mini{
      flex-direction:column;
      align-items:stretch;
      gap:10px;
  }

  .workflow-arrow{
      transform:rotate(90deg);
      text-align:center;
  }

  .workflow-step{
      text-align:center;
  }
}
.req-quick-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
  align-items: center;
}

.req-quick-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  line-height: 1;
}

.req-quick-meta i {
  color: #085d6a;
  font-size: 11px;
}

.req-quick-meta strong {
  color: #111827;
  font-weight: 600;
}
.sidebar-section-title{
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:#64748B;
  padding:16px 10px 6px;
  margin-top:8px;
}

.nav-divider{
  display:none;
}
.sidebar-section-title::after{
  content:'';
  display:block;
  height:1px;
  background:rgba(255,255,255,.08);
  margin-top:6px;
}
.part-summary{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:15px;
  padding:12px 15px;
  background:#ecf1f9;
  border-radius:8px;
}

.summary-item{
  display:flex;
  flex-direction:column;
}

.summary-item .lbl{
  font-size:11px;
  color:#6b7280;
  text-transform:uppercase;
  margin-bottom:3px;
}

.summary-item .val{
  font-size:13px;
  font-weight:600;
}

.summary-desc{
  padding:12px 15px;
  font-size:13px;
  border-top:1px solid #e5e7eb;
}
/* ===================================
   VIEW DETAILS MODAL
=================================== */

.view-field {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: all .2s ease;
}

.view-field:hover {
  background: #f1f5f9;
}

/* Section Headers */

#viewPartModal .card-header {
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
  font-weight: 600;
}

/* Labels */

#viewPartModal .form-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 6px;
}

/* Read Only Badges */

.view-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
}

.badge-engineering {
  background: #dbeafe;
  color: #1d4ed8;
}

.badge-purchasing {
  background: #fef3c7;
  color: #b45309;
}

.badge-finance {
  background: #ede9fe;
  color: #6d28d9;
}

.badge-approved,
.badge-synced {
  background: #dcfce7;
  color: #15803d;
}

.badge-rejected,
.badge-failed {
  background: #fee2e2;
  color: #dc2626;
}

/* Modal Width */

#viewPartModal .modal {
  width: 1100px;
  max-width: 95vw;
}

/* Better spacing */

#viewPartModal .card-body {
  padding: 20px;
}

#viewPartModal .row > div {
  margin-bottom: 12px;
}

/* Footer */

#viewPartModal .modal-footer {
  border-top: 1px solid #e5e7eb;
  background: #fff;
  padding: 15px 20px;
}

/* Responsive */

@media (max-width: 768px) {

  #viewPartModal .modal {
      width: 100%;
      max-width: 100%;
      margin: 10px;
  }

  .view-field {
      min-height: 40px;
      font-size: 13px;
  }

}
