:root {
  --blue: #185FA5; --blue-light: #E6F1FB; --blue-dark: #0C447C;
  --green: #3B6D11; --green-light: #EAF3DE; --green-dark: #27500A;
  --amber: #854F0B; --amber-light: #FAEEDA; --amber-dark: #633806;
  --red: #A32D2D; --red-light: #FCEBEB; --red-dark: #791F1F;
  --gray: #6b6b6b; --gray-light: #f5f5f5; --border: #e0e0e0;
  --text: #1a1a1a; --text-muted: #6b6b6b;
  --radius: 8px; --radius-lg: 12px;
  --sidebar-w: 220px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f8f8f6; color: var(--text); font-size: 14px; line-height: 1.6; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── SIDEBAR ── */
.sidebar {
  position: fixed; top: 0; left: 0; width: var(--sidebar-w);
  height: 100vh; background: #fff; border-right: 0.5px solid var(--border);
  display: flex; flex-direction: column; z-index: 200;
  transition: transform .25s ease;
}
.sidebar-logo { padding: 18px 18px 14px; border-bottom: 0.5px solid var(--border); }
.sidebar-logo .logo-text { font-size: 15px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; }
.sidebar-logo .logo-text i { color: var(--blue); font-size: 20px; }
.sidebar-logo .logo-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; padding-left: 28px; }
.sidebar-nav { padding: 10px 10px; flex: 1; overflow-y: auto; }
.nav-section { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); padding: 10px 8px 4px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; user-select: none; }
.nav-section:hover { color: var(--text); }
.nav-chevron { font-size: 12px; transition: transform .18s ease; flex-shrink: 0; }
.nav-section.collapsed .nav-chevron { transform: rotate(-90deg); }
.nav-group { overflow: hidden; }
.nav-group.collapsed { display: none; }
.nav-item { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: var(--radius); font-size: 13px; color: var(--text-muted); cursor: pointer; transition: all .15s; text-decoration: none; margin-bottom: 2px; }
.nav-item:hover { background: var(--gray-light); color: var(--text); text-decoration: none; }
.nav-item.active { background: var(--blue-light); color: var(--blue-dark); font-weight: 500; }
.nav-item i { font-size: 16px; width: 18px; flex-shrink: 0; }
.sidebar-footer { padding: 12px 14px; border-top: 0.5px solid var(--border); }
.sidebar-footer .user { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--blue-light); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: var(--blue-dark); flex-shrink: 0; }

/* Overlay for mobile sidebar */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.4); z-index: 190;
}
.sidebar-overlay.active { display: block; }

/* ── MAIN ── */
.main { margin-left: var(--sidebar-w); min-height: 100vh; }
.topbar {
  background: #fff; border-bottom: 0.5px solid var(--border);
  padding: 12px 20px; display: flex; align-items: center;
  justify-content: space-between; position: sticky; top: 0; z-index: 100;
}
.topbar-title { font-size: 15px; font-weight: 600; color: var(--text); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.hamburger {
  display: none; background: none; border: 0.5px solid var(--border);
  border-radius: var(--radius); padding: 6px 8px; cursor: pointer;
  color: var(--text); font-size: 18px; line-height: 1;
}
.content { padding: 20px; }

/* ── WATERMARK ── */
.watermark {
  text-align: center;
  padding: 14px 20px 20px;
  font-size: 11px;
  color: #c0c0c0;
  letter-spacing: 0.03em;
}
.watermark i { font-size: 11px; }
.watermark strong { color: #b0b0b0; font-weight: 600; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--radius); font-size: 13px; font-weight: 500; cursor: pointer; border: 0.5px solid transparent; transition: all .15s; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn:disabled, .btn[disabled] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.btn-primary:disabled, .btn-primary[disabled] { background: var(--blue); }
.btn-primary { background: var(--blue); color: #E6F1FB; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--gray-light); }
.btn-danger { background: var(--red-light); color: var(--red); border-color: #F7C1C1; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-success { background: var(--green-light); color: var(--green-dark); border-color: #C0DD97; }

/* ── CARDS ── */
.card { background: #fff; border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.card-title { font-size: 14px; font-weight: 600; color: var(--text); }

/* ── STATS ── */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.stat-card { background: #fff; border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 14px; }
.stat-label { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; display: flex; align-items: center; gap: 4px; }
.stat-val { font-size: 26px; font-weight: 700; color: var(--text); }
.stat-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.stat-card.stat-accent { border-left: 3px solid #185FA5; }

/* ── RECRUITMENT: stat grid / panels / empty states / bars ── */
.rec-stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 16px; }
@media (max-width: 1100px) { .rec-stat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .rec-stat-grid { grid-template-columns: repeat(2, 1fr); } }

.rec-panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
@media (max-width: 900px) { .rec-panel-grid { grid-template-columns: 1fr; } }

.rec-empty { text-align: center; color: var(--text-muted); padding: 28px 10px; font-size: 13px; }
.rec-empty i { font-size: 26px; display: block; margin-bottom: 8px; color: var(--border); }

.rec-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 12px; }
.rec-bar-row:last-child { margin-bottom: 0; }
.rec-bar-grade { width: 16px; font-weight: 600; color: var(--text); }
.rec-bar-track { flex: 1; background: #f1f1ee; border-radius: 6px; height: 10px; overflow: hidden; }
.rec-bar-fill { height: 100%; border-radius: 6px; background: #185FA5; }
.rec-bar-count { width: 22px; text-align: right; color: var(--text-muted); }

.rec-progress-wrap { margin-top: 10px; max-width: 420px; }
.rec-progress-track { background: #ebebea; border-radius: 6px; height: 8px; overflow: hidden; }
.rec-progress-fill { height: 100%; background: #185FA5; border-radius: 6px; width: 0%; transition: width .25s ease; }
.rec-progress-text { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

.rec-grade-circle { width: 64px; height: 64px; border-radius: 50%; border: 3px solid currentColor; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; line-height: 1; flex-shrink: 0; }
.rec-grade-circle .rec-grade-letter { font-size: 10px; font-weight: 600; margin-top: 1px; }
.rec-grade-wrap { text-align: center; }
.rec-grade-rec { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

.rec-score-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
@media (max-width: 640px) { .rec-score-grid { grid-template-columns: 1fr; } }
.rec-score-box { background: #fafaf8; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px; text-align: center; }
.rec-score-box-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.rec-score-box-val { font-size: 22px; font-weight: 700; }

.rec-callout-amber { background: #FAEEDA; border: 1px solid #F0DBB0; color: #854F0B; border-radius: var(--radius-lg); padding: 12px 14px; margin-bottom: 14px; font-size: 13px; }

.rec-grade-circle-sm { width: 40px; height: 40px; border-radius: 50%; border: 2px solid currentColor; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.rec-role-group { margin-bottom: 18px; }
.rec-role-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.rec-role-title { font-size: 14px; font-weight: 600; color: var(--text); }
.rec-role-sub { font-size: 12px; color: var(--text-muted); margin-left: 8px; }
.rec-altrole-pill { display: inline-flex; align-items: center; background: #FAEEDA; border: 1px solid #F0DBB0; color: #854F0B; border-radius: 16px; padding: 4px 10px; font-size: 11px; max-width: 220px; }

/* ── BADGES ── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--radius); font-size: 11px; font-weight: 500; white-space: nowrap; }
.badge-it { background: var(--blue-light); color: var(--blue-dark); }
.badge-fac { background: var(--green-light); color: var(--green-dark); }
.badge-mel { background: var(--amber-light); color: var(--amber-dark); }
.badge-open { background: #FAECE7; color: #993C1D; }
.badge-inprogress { background: var(--amber-light); color: var(--amber-dark); }
.badge-pending { background: #f1f0ec; color: #444; }
.badge-pendingclosure { background: #FAEEDA; color: #854F0B; border: 0.5px solid #FAC775; }
.badge-resolved { background: var(--green-light); color: var(--green-dark); }
.badge-critical { background: var(--red-light); color: var(--red-dark); }
.badge-high { background: var(--amber-light); color: var(--amber-dark); }
.badge-medium { background: var(--blue-light); color: var(--blue-dark); }
.badge-low { background: var(--green-light); color: var(--green-dark); }
.badge-incident { background: var(--red-light); color: var(--red-dark); }
.badge-request { background: var(--blue-light); color: var(--blue-dark); }
.badge-area-manager { background: #EDE9FE; color: #5B21B6; }
.badge-sla-breached { background: var(--red-light); color: var(--red-dark); }
.badge-sla-atrisk   { background: #FFF3CD; color: #7B4F00; }
.badge-sla-ontrack  { background: var(--green-light); color: var(--green-dark); }

/* ── NEW ACTIVITY INDICATOR (ticket list) ── */
.row-new-activity { background: #F5F9FF !important; }
.row-new-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #185FA5;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── NOTIFICATIONS ── */
.notif-badge-count {
  display: inline-flex; align-items: center;
  background: #185FA5; color: #fff;
  font-size: 10px; font-weight: 600;
  border-radius: 10px; padding: 1px 7px;
  margin-left: 6px; vertical-align: middle;
}
.notif-sidebar-badge {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: #A32D2D; color: #fff;
  font-size: 10px; font-weight: 700;
  border-radius: 10px; padding: 1px 6px;
  min-width: 18px; text-align: center;
  line-height: 16px;
}
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 0.5px solid var(--border);
  position: relative; transition: background 0.15s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item-new { background: #F0F6FF; border-radius: 8px; padding: 10px 8px; margin: 2px 0; }
.notif-icon {
  flex-shrink: 0; width: 32px; height: 32px;
  background: #f5f5f3; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.notif-content { flex: 1; min-width: 0; }
.notif-text { display: flex; align-items: baseline; gap: 6px; margin-bottom: 2px; flex-wrap: wrap; }
.notif-ticket-link { font-weight: 600; font-size: 12px; color: #185FA5; text-decoration: none; flex-shrink: 0; }
.notif-ticket-link:hover { text-decoration: underline; }
.notif-subject { font-size: 12px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.notif-meta { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-author { font-weight: 500; }
.notif-sep { margin: 0 4px; }
.notif-time { font-size: 10px; color: #9b9b9b; }
.notif-dot {
  flex-shrink: 0; width: 8px; height: 8px;
  background: #185FA5; border-radius: 50%;
  margin-top: 6px;
}

/* ── TABLE ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 0.5px solid var(--border); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; min-width: 600px; }
th { text-align: left; padding: 10px 12px; font-size: 11px; font-weight: 600; color: var(--text-muted); background: #fafaf8; border-bottom: 0.5px solid var(--border); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
td { padding: 11px 12px; border-bottom: 0.5px solid var(--border); vertical-align: middle; color: var(--text); }
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #fafaf8; }
.ticket-link { font-weight: 500; color: var(--text); }
.ticket-link:hover { color: var(--blue); text-decoration: none; }

/* ── FORMS ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group.full { grid-column: 1 / -1; }
label { display: block; font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
label .req { color: var(--red); margin-left: 2px; }
input[type=text], input[type=email], input[type=password], select, textarea {
  width: 100%; padding: 10px 12px; border: 0.5px solid #c8c8c8; border-radius: var(--radius);
  font-size: 14px; font-family: inherit; background: #fff; color: var(--text); outline: none;
  transition: border-color .15s; -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(24,95,165,.08); }
textarea { min-height: 90px; resize: vertical; }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* ── DEPT CARDS ── */
.dept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dept-card { border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 14px; cursor: pointer; transition: all .15s; }
.dept-card:hover { border-color: #c8c8c8; background: var(--gray-light); }
.dept-card.selected-IT { border: 2px solid var(--blue); background: var(--blue-light); }
.dept-card.selected-Facilities { border: 2px solid var(--green); background: var(--green-light); }
.dept-card.selected-MEL { border: 2px solid var(--amber); background: var(--amber-light); }
.dept-icon { font-size: 22px; margin-bottom: 6px; }
.dept-IT .dept-icon { color: var(--blue); }
.dept-Facilities .dept-icon { color: var(--green); }
.dept-MEL .dept-icon { color: var(--amber); }
.dept-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.dept-desc { font-size: 11px; color: var(--text-muted); }

/* ── PRIORITY CARDS ── */
.pri-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pri-card { border: 0.5px solid var(--border); border-radius: var(--radius); padding: 10px 6px; cursor: pointer; text-align: center; transition: all .15s; }
.pri-card:hover { background: var(--gray-light); }
.pri-card.selected { border-width: 2px; }
.pri-Critical { color: var(--red); }.pri-Critical.selected { border-color: var(--red); background: var(--red-light); }
.pri-High { color: var(--amber); }.pri-High.selected { border-color: var(--amber); background: var(--amber-light); }
.pri-Medium { color: var(--blue); }.pri-Medium.selected { border-color: var(--blue); background: var(--blue-light); }
.pri-Low { color: var(--green); }.pri-Low.selected { border-color: var(--green); background: var(--green-light); }
.pri-name { font-size: 12px; font-weight: 600; }
.pri-sla { font-size: 10px; opacity: .7; }

/* ── FLASH ── */
.flash { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 14px; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.flash-success { background: var(--green-light); color: var(--green-dark); border: 0.5px solid #9FE1CB; }
.flash-error { background: var(--red-light); color: var(--red-dark); border: 0.5px solid #F7C1C1; }

/* ── DETAIL ── */
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.meta-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 0.5px solid var(--border); font-size: 13px; flex-wrap: wrap; gap: 4px; }
.meta-row:last-child { border-bottom: none; }
.meta-key { color: var(--text-muted); }
.comment-box { background: var(--gray-light); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; }
.comment-author { font-size: 12px; font-weight: 600; margin-bottom: 3px; }
.comment-time { font-size: 11px; color: var(--text-muted); }
.comment-text { font-size: 13px; margin-top: 4px; }
.section-title { font-size: 14px; font-weight: 600; margin-bottom: 12px; }

/* ── PROGRESS ── */
.progress-bar { height: 4px; background: var(--border); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 2px; }
.pf-open { background: #D85A30; width: 10%; }
.pf-inprogress { background: #BA7517; width: 55%; }
.pf-resolved { background: #639922; width: 100%; }
.pf-pending { background: var(--gray); width: 5%; }

/* ── FILTERS ── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filter-bar input[type=text] { width: 180px; }
.filter-select { width: auto !important; }

/* ── TWO COL ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }

/* ── DEPT BAR ── */
.dept-bar { background: var(--gray-light); border-radius: var(--radius); padding: 12px; margin-bottom: 8px; }
.dept-bar-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 13px; font-weight: 500; }
.dept-bar-fill { height: 6px; border-radius: 3px; }

/* ── SUCCESS ── */
.success-wrap { max-width: 480px; margin: 40px auto; text-align: center; padding: 0 16px; }
.success-icon { font-size: 52px; color: var(--green); margin-bottom: 12px; }
.success-ticket { font-size: 26px; font-weight: 700; color: var(--green-dark); margin: 8px 0; }
.success-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }

/* ── EMPTY ── */
.empty { text-align: center; padding: 40px 20px; color: var(--text-muted); font-size: 13px; }
.empty i { font-size: 36px; display: block; margin-bottom: 10px; }

/* ── STATUS ITEM ── */
.status-item { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; background: var(--gray-light); border-radius: var(--radius); margin-bottom: 6px; font-size: 13px; }

/* ── MOBILE BOTTOM NAV — removed, kept empty for safety ── */

/* ══════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤900px)
══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤768px)
══════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Sidebar — hidden by default, slides in on toggle */
  .sidebar {
    transform: translateX(-100%);
    box-shadow: 4px 0 20px rgba(0,0,0,.15);
  }
  .sidebar.open { transform: translateX(0); }

  /* Main takes full width */
  .main { margin-left: 0; padding-bottom: 20px; }

  /* Topbar */
  .topbar { padding: 10px 14px; }
  .topbar-title { font-size: 14px; }
  .hamburger { display: flex; align-items: center; justify-content: center; }

  /* Content */
  .content { padding: 14px; }

  /* Stats — 2 columns on mobile */
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
  .stat-val { font-size: 22px; }

  /* Cards */
  .card { padding: 14px; }

  /* Layouts — all single column */
  .two-col { grid-template-columns: 1fr; gap: 10px; }
  .detail-grid { grid-template-columns: 1fr; gap: 10px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }

  /* Dept cards — 1 column on small phones */
  .dept-grid { grid-template-columns: 1fr; gap: 8px; }
  .dept-card { display: flex; align-items: center; gap: 12px; padding: 12px; }
  .dept-icon { font-size: 24px; margin-bottom: 0; flex-shrink: 0; }
  .dept-desc { display: none; }

  /* Priority — 2x2 grid on mobile */
  .pri-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  /* Filter bar — wrap and full width selects */
  .filter-bar { gap: 6px; }
  .filter-bar input[type=text] { width: 100%; }
  .filter-select { flex: 1; min-width: 120px; }

  /* Success page */
  .success-wrap { margin: 20px auto; }
  .success-icon { font-size: 44px; }

  /* Table — make it card-style on mobile */
  .ticket-table-mobile { display: block; }
  .ticket-table-mobile thead { display: none; }
  .ticket-table-mobile tbody { display: block; }
  .ticket-table-mobile tr {
    display: block; background: #fff; border: 0.5px solid var(--border);
    border-radius: var(--radius-lg); margin-bottom: 10px; padding: 12px;
  }
  .ticket-table-mobile td {
    display: flex; justify-content: space-between; align-items: center;
    padding: 5px 0; border: none; font-size: 13px; flex-wrap: wrap; gap: 4px;
  }
  .ticket-table-mobile td::before {
    content: attr(data-label);
    font-size: 11px; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .04em; min-width: 80px;
  }
  .ticket-table-mobile td:first-child { border-bottom: 0.5px solid var(--border); padding-bottom: 8px; margin-bottom: 4px; }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — SMALL PHONES (≤400px)
══════════════════════════════════════════════════ */
@media (max-width: 400px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .stat-val { font-size: 20px; }
  .pri-grid { grid-template-columns: repeat(2, 1fr); }
  .content { padding: 10px; }
}

/* ══════════════════════════════════════════════════
   DASHBOARD — NEW STAT CARD LAYOUT
══════════════════════════════════════════════════ */
.dash-stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.dash-stat {
  background: #fff;
  border: 1px solid #e2e2de;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.dash-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.dash-stat-value {
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
}
.dash-danger  { color: #c0392b !important; }
.dash-info    { color: #185FA5 !important; }
.dash-success { color: #3B6D11 !important; }

.dash-section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
}

/* Dept cards grid (master) */
.dash-dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}
.dash-dept-card {
  background: #fff;
  border: 1px solid #e2e2de;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}
.dash-dept-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.dash-dept-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 5px;
}
.dash-open-badge {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 20px;
  font-size: 11px;
  padding: 2px 9px;
  color: var(--text-muted);
}

/* Section blocks inside cards */
.dash-sec-block {
  background: #f7f7f5;
  border: 1px solid #ebebea;
  border-radius: 8px;
  padding: 9px 11px;
  margin-bottom: 7px;
}
.dash-sec-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Stat grids inside blocks */
.dash-stats4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.dash-stats3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.dash-si { text-align: center; }
.dash-n {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}
.dash-l {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* 3-column layout (admin / user) */
.dash-col3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}
.dash-col-card {
  background: #fff;
  border: 1px solid #e2e2de;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}
.dash-col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Responsive — stack on tablet/mobile */
@media (max-width: 800px) {
  .dash-stat-cards { grid-template-columns: repeat(2, 1fr); }
  .dash-dept-grid  { grid-template-columns: 1fr; }
  .dash-col3       { grid-template-columns: 1fr; }
  .dash-stats4     { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
  .dash-stat-cards { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .dash-stat-value { font-size: 22px; }
  .dash-n          { font-size: 15px; }
}

/* ══════════════════════════════════════════════════
   DASHBOARD — RECENT TICKETS + QUICK ACTIONS
══════════════════════════════════════════════════ */
.dash-recent-card {
  background: #fff;
  border: 1px solid #e2e2de;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
  overflow: hidden;
}
.dash-quick-card {
  background: #fff;
  border: 1px solid #e2e2de;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
  padding: 16px;
  min-width: 200px;
  width: 200px;
}
.dash-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #f0f0ee;
}
.dash-recent-title {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
}
.dash-recent-viewall {
  font-size: 12px;
  color: #185FA5;
  text-decoration: none;
  font-weight: 500;
}
.dash-recent-viewall:hover { text-decoration: underline; }
.dash-recent-list { padding: 6px 0; }
.dash-recent-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  text-decoration: none;
  color: #1a1a1a;
  font-size: 13px;
  border-bottom: 1px solid #f7f7f5;
  transition: background 0.12s;
}
.dash-recent-row:last-child { border-bottom: none; }
.dash-recent-row:hover { background: #f7f7f5; }
.dash-recent-num {
  font-size: 11px;
  font-weight: 600;
  color: #185FA5;
  white-space: nowrap;
  min-width: 70px;
}
.dash-recent-subj {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #3a3a3a;
}
.dash-recent-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
/* Type badges */
.dash-badge-type-incident  { background: #fff0f0; color: #c0392b; }
.dash-badge-type-request   { background: #eef4ff; color: #185FA5; }
/* Status badges */
.dash-badge-open           { background: #e8f5e9; color: #2e7d32; }
.dash-badge-in-progress    { background: #e3f2fd; color: #1565c0; }
.dash-badge-pending        { background: #fff8e1; color: #f57f17; }
.dash-badge-resolved       { background: #f3e5f5; color: #6a1b9a; }
.dash-badge-closed         { background: #f0f0ee; color: #6b6b6b; }

@media (max-width: 600px) {
  .dash-quick-card { width: 100%; }
}

/* ══════════════════════════════════════════════════
   NOTIFICATION BELL — TOPBAR
══════════════════════════════════════════════════ */
.notif-wrap {
  position: relative;
}
.notif-bell {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--surface, #f5f5f3);
  color: var(--text, #1a1a1a);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: background .15s;
}
.notif-bell:hover { background: var(--border, #e8e8e4); }
.notif-bell-badge {
  position: absolute;
  top: -3px; right: -3px;
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  padding: 0 3px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg, #fff);
  line-height: 1;
}

/