/* ===== Shift Hub — общие стили ===== */
:root{
  --bg: #f7f6f3;
  --sidebar-bg: #fbfaf8;
  --border: #e9e7e2;
  --text: #37352f;
  --text-light: #787774;
  --accent: #2f6fed;
  --accent-light: #eaf1ff;
  --card-bg: #ffffff;
  --danger: #e5533d;
  --success: #2a9d5c;
  --warning: #d9a227;
  --radius: 10px;
  --sidebar-w: 268px;
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  font-family:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:var(--bg);
  color:var(--text);
  min-height:100vh;
}

a{color:inherit;text-decoration:none;}

/* ---------- Layout ---------- */
.app-shell{
  display:flex;
  min-height:100vh;
}

.sidebar{
  width:var(--sidebar-w);
  flex-shrink:0;
  background:var(--sidebar-bg);
  border-right:1px solid var(--border);
  padding:18px 12px;
  position:fixed;
  top:0;left:0;bottom:0;
  overflow-y:auto;
  z-index:40;
  transition:transform .25s ease;
}

.sidebar-brand{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px 18px;
  font-weight:700;
  font-size:16px;
}
.sidebar-brand .brand-emoji{font-size:22px;}

.sidebar nav{display:flex;flex-direction:column;gap:2px;}
.sidebar-section-label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:var(--text-light);
  padding:14px 10px 6px;
}
.sidebar-link{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:8px;
  font-size:14px;
  color:var(--text);
  font-weight:500;
}
.sidebar-link:hover{background:#efeeea;}
.sidebar-link.active{background:var(--accent-light);color:var(--accent);}
.sidebar-link .icon{width:20px;text-align:center;font-size:15px;}

.main-content{
  margin-left:var(--sidebar-w);
  flex:1;
  min-height:100vh;
  padding:32px 40px 60px;
  width:100%;
}

.sidebar-toggle{
  display:none;
  position:fixed;
  top:14px;left:14px;
  z-index:50;
  background:var(--card-bg);
  border:1px solid var(--border);
  border-radius:8px;
  width:38px;height:38px;
  align-items:center;justify-content:center;
  box-shadow:0 1px 3px rgba(0,0,0,.08);
  cursor:pointer;
}

@media (max-width: 900px){
  .sidebar{transform:translateX(-100%);}
  .sidebar.open{transform:translateX(0);}
  .main-content{margin-left:0;padding:70px 18px 50px;}
  .sidebar-toggle{display:flex;}
}

/* ---------- Page header ---------- */
.page-title{
  font-size:30px;
  font-weight:800;
  margin:0 0 6px;
  display:flex;
  align-items:center;
  gap:12px;
}
.page-subtitle{
  color:var(--text-light);
  font-size:15px;
  margin:0 0 28px;
  max-width:820px;
  line-height:1.5;
}

/* ---------- Callout ---------- */
.callout{
  background:#f1f0ec;
  border-radius:var(--radius);
  padding:16px 18px;
  display:flex;
  gap:12px;
  margin-bottom:24px;
  font-size:14px;
  line-height:1.55;
}
.callout .callout-icon{font-size:18px;flex-shrink:0;}

/* ---------- Cards grid (home) ---------- */
.card-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:20px;
  margin-top:10px;
}
@media (max-width:760px){ .card-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:520px){ .card-grid{grid-template-columns:1fr;} }

.hub-card{
  background:var(--card-bg);
  border:1px solid var(--border);
  border-radius:14px;
  padding:26px 18px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  transition:transform .15s ease, box-shadow .15s ease;
  cursor:pointer;
}
.hub-card:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 24px rgba(0,0,0,.08);
}
.hub-card .emoji-badge{
  width:64px;height:64px;
  border-radius:16px;
  display:flex;align-items:center;justify-content:center;
  font-size:30px;
}
.hub-card .card-label{font-weight:700;font-size:15px;}

.badge-orange{background:linear-gradient(135deg,#ffe6c2,#ffd39a);}
.badge-pink{background:linear-gradient(135deg,#ffd7e0,#ffc2cf);}
.badge-blue{background:linear-gradient(135deg,#cfe0ff,#aecbff);}
.badge-green{background:linear-gradient(135deg,#d3f2df,#b3e6c6);}
.badge-yellow{background:linear-gradient(135deg,#fff0c2,#ffe49a);}
.badge-purple{background:linear-gradient(135deg,#e4d7ff,#d0bbff);}
.badge-teal{background:linear-gradient(135deg,#c9f0ea,#a7e6dc);}

/* ---------- Generic cards / sections ---------- */
.section-block{
  background:var(--card-bg);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:22px;
  margin-bottom:22px;
}
.section-heading{
  font-size:13px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:var(--text-light);
  margin:0 0 14px;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 16px;
  border-radius:8px;
  font-size:14px;
  font-weight:600;
  border:1px solid var(--border);
  background:var(--card-bg);
  cursor:pointer;
  transition:background .15s ease;
}
.btn:hover{background:#f2f1ec;}
.btn-primary{background:var(--accent);color:#fff;border-color:var(--accent);}
.btn-primary:hover{background:#2059c9;}
.btn-danger{background:var(--danger);color:#fff;border-color:var(--danger);}
.btn-danger:hover{background:#c9432f;}
.btn-sm{padding:5px 10px;font-size:12.5px;}
.btn-block-action{
  border:none;
  border-radius:12px;
  padding:20px;
  color:#fff;
  font-weight:800;
  font-size:15px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  cursor:pointer;
}

/* ---------- Table ---------- */
.data-table{
  width:100%;
  border-collapse:collapse;
  font-size:13.5px;
}
.data-table th{
  text-align:left;
  padding:10px 12px;
  border-bottom:1px solid var(--border);
  color:var(--text-light);
  font-weight:600;
  white-space:nowrap;
}
.data-table td{
  padding:10px 12px;
  border-bottom:1px solid #f0efeb;
  vertical-align:top;
}
.data-table tr:hover td{background:#faf9f6;}

.tag{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:3px 9px;
  border-radius:20px;
  font-size:12px;
  font-weight:600;
}
.tag-dot{width:7px;height:7px;border-radius:50%;}
.tag-green{background:#e4f7ea;color:#1e7f45;}
.tag-yellow{background:#fff5da;color:#a3760a;}
.tag-orange{background:#ffe8d9;color:#b95a12;}
.tag-red{background:#fde1de;color:#c62e21;}
.tag-gray{background:#eeece8;color:#5f5d58;}
.tag-blue{background:#e3edff;color:#2454b3;}

/* ---------- Accordion (FAQ) ---------- */
.accordion-item{
  border:1px solid var(--border);
  border-radius:10px;
  margin-bottom:10px;
  overflow:hidden;
  background:var(--card-bg);
}
.accordion-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:14px 16px;
  cursor:pointer;
  font-weight:600;
  font-size:14.5px;
}
.accordion-header:hover{background:#faf9f6;}
.accordion-header .chev{transition:transform .2s ease;color:var(--text-light);}
.accordion-item.open .chev{transform:rotate(180deg);}
.accordion-body{
  max-height:0;
  overflow:hidden;
  transition:max-height .25s ease;
  padding:0 16px;
  font-size:13.5px;
  color:var(--text-light);
  line-height:1.6;
}
.accordion-item.open .accordion-body{padding-bottom:16px;}

/* ---------- Kanban ---------- */
.kanban-wrap{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
@media (max-width:800px){.kanban-wrap{grid-template-columns:1fr;}}
.kanban-col{
  background:#f1f0ec;
  border-radius:12px;
  padding:12px;
  min-height:120px;
}
.kanban-col-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:13px;
  font-weight:700;
  padding:4px 6px 12px;
  color:var(--text-light);
}
.kanban-count{
  background:#e2e0da;
  border-radius:10px;
  padding:1px 7px;
  font-size:11.5px;
}
.kanban-card{
  background:var(--card-bg);
  border:1px solid var(--border);
  border-radius:8px;
  padding:12px;
  margin-bottom:8px;
  font-size:13.5px;
  cursor:pointer;
  box-shadow:0 1px 2px rgba(0,0,0,.03);
}
.kanban-card:hover{box-shadow:0 4px 10px rgba(0,0,0,.08);}
.kanban-card .kc-title{font-weight:600;margin-bottom:6px;}
.kanban-card .kc-meta{display:flex;gap:6px;flex-wrap:wrap;}

/* ---------- Modal ---------- */
.modal-overlay{
  position:fixed;inset:0;
  background:rgba(20,18,15,.45);
  display:none;
  align-items:center;justify-content:center;
  z-index:100;
  padding:20px;
}
.modal-overlay.show{display:flex;}
.modal-box{
  background:#fff;
  border-radius:14px;
  width:100%;max-width:520px;
  max-height:90vh;
  overflow-y:auto;
  padding:26px;
  box-shadow:0 20px 50px rgba(0,0,0,.25);
}
.modal-box h3{margin:0 0 18px;font-size:18px;}
.form-group{margin-bottom:14px;}
.form-group label{
  display:block;
  font-size:12.5px;
  font-weight:600;
  color:var(--text-light);
  margin-bottom:5px;
}
.form-group input,
.form-group select,
.form-group textarea{
  width:100%;
  padding:9px 11px;
  border:1px solid var(--border);
  border-radius:8px;
  font-size:14px;
  font-family:inherit;
  background:#fbfaf8;
}
.form-group textarea{resize:vertical;min-height:80px;}
.form-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:18px;
}

/* ---------- Search box ---------- */
.search-box{
  display:flex;
  align-items:center;
  gap:8px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:8px;
  padding:8px 12px;
  max-width:320px;
  margin-bottom:18px;
}
.search-box input{
  border:none;outline:none;
  font-size:14px;width:100%;
  background:transparent;
}

/* ---------- Toolbar row ---------- */
.toolbar-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:18px;
}

/* ---------- Leaderboard ---------- */
.leader-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 12px;
  border-bottom:1px solid #f0efeb;
  font-size:14px;
}
.leader-rank{
  width:26px;height:26px;
  border-radius:50%;
  background:#f1f0ec;
  display:flex;align-items:center;justify-content:center;
  font-size:12px;font-weight:700;
  margin-right:10px;
}
.leader-name{display:flex;align-items:center;font-weight:600;}
.leader-points{font-weight:700;color:var(--danger);}

/* ---------- Empty state ---------- */
.empty-state{
  text-align:center;
  padding:40px 20px;
  color:var(--text-light);
  font-size:14px;
}

/* ---------- Utility ---------- */
.flex-between{display:flex;align-items:center;justify-content:space-between;}
.text-muted{color:var(--text-light);}
.mb-0{margin-bottom:0;}
.icon-btn{
  background:none;border:none;cursor:pointer;
  color:var(--text-light);
  font-size:14px;
  padding:4px 6px;
  border-radius:6px;
}
.icon-btn:hover{background:#eeece8;color:var(--text);}

/* ---------- Status select (Providers page) ---------- */
.status-select{
  padding:5px 8px;
  border-radius:7px;
  font-size:12.5px;
  font-weight:600;
  border:1px solid var(--border);
  background:#fbfaf8;
  cursor:pointer;
  min-width:130px;
}
.status-select.status-success{background:#e4f7ea;color:#1e7f45;border-color:#bfe8cd;}
.status-select.status-fail{background:#fde1de;color:#c62e21;border-color:#f7c3bd;}
.status-select.status-not_checked{background:#eeece8;color:#5f5d58;}

/* ---------- Sidebar user widget / notifications ---------- */
.sidebar-user-widget{
  margin-top:auto;
  padding:12px 6px 4px;
  border-top:1px solid var(--border);
  position:relative;
}
.sidebar-user-row{
  display:flex;
  align-items:center;
  gap:6px;
}
.user-select{
  flex:1;
  min-width:0;
  padding:7px 8px;
  border-radius:8px;
  border:1px solid var(--border);
  font-size:12.5px;
  background:#fff;
  font-family:inherit;
}
.notif-bell{
  position:relative;
  width:34px;height:34px;
  border-radius:8px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
  font-size:15px;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.notif-bell:hover{background:#f2f1ec;}
.notif-badge{
  position:absolute;
  top:-6px;right:-6px;
  background:var(--danger);
  color:#fff;
  border-radius:10px;
  font-size:10px;
  font-weight:700;
  padding:1px 5px;
  min-width:16px;
  text-align:center;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.notif-panel{
  display:none;
  position:absolute;
  bottom:52px;
  left:0;right:0;
  max-height:360px;
  overflow-y:auto;
  background:#fff;
  border:1px solid var(--border);
  border-radius:10px;
  box-shadow:0 12px 30px rgba(0,0,0,.15);
  z-index:60;
}
.notif-panel.open{display:block;}
.notif-panel-actions{
  display:flex;
  gap:6px;
  padding:8px 10px;
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  background:#fff;
  z-index:1;
}
.notif-panel-action-btn{
  flex:1;
  border:1px solid var(--border);
  background:#fbfaf8;
  border-radius:7px;
  padding:5px 6px;
  font-size:11px;
  font-weight:600;
  cursor:pointer;
  color:var(--text);
}
.notif-panel-action-btn:hover:not(:disabled){background:#efeeea;}
.notif-panel-action-btn:disabled{opacity:.4;cursor:not-allowed;}
.notif-panel-action-danger{color:var(--danger);}
.notif-panel-action-danger:hover:not(:disabled){background:#fdecea;}
.notif-item{
  display:flex;
  align-items:stretch;
  gap:4px;
  padding:0;
  border-bottom:1px solid #f0efeb;
  font-size:12.5px;
  color:var(--text);
}
.notif-item:hover{background:#faf9f6;}
.notif-item.unread{background:var(--accent-light);}
.notif-item-link{
  flex:1;
  min-width:0;
  display:block;
  padding:10px 4px 10px 12px;
}
.notif-item-title{font-weight:700;margin-bottom:2px;}
.notif-item-msg{color:var(--text-light);margin-bottom:3px;line-height:1.4;}
.notif-item-time{font-size:11px;color:var(--text-light);}
.notif-item-actions{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:8px 8px 8px 2px;
  flex-shrink:0;
}
.notif-action-btn{
  width:24px;height:24px;
  border:1px solid var(--border);
  background:#fff;
  border-radius:6px;
  font-size:11px;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  color:var(--text-light);
}
.notif-action-btn:hover{background:#f2f1ec;color:var(--text);}
.notif-action-danger:hover{background:#fdecea;color:var(--danger);border-color:#f3c9c4;}
.notif-empty{padding:16px;text-align:center;color:var(--text-light);font-size:12.5px;}

/* make sidebar a flex column so the user widget sticks to bottom */
.sidebar{display:flex;flex-direction:column;}
.sidebar nav{flex-shrink:0;}

/* ---------- Multi-assignee checkbox list ---------- */
.assignee-checklist{
  border:1px solid var(--border);
  border-radius:8px;
  background:#fbfaf8;
  max-height:220px;
  overflow-y:auto;
  padding:6px 4px;
}
.assignee-select-all-row{
  display:flex;
  gap:6px;
  padding:2px 4px 8px;
  border-bottom:1px solid var(--border);
  margin-bottom:6px;
  position:sticky;
  top:0;
  background:#fbfaf8;
  z-index:1;
}
.assignee-select-all-btn{
  border:1px solid var(--border);
  background:#fff;
  border-radius:6px;
  padding:4px 9px;
  font-size:11.5px;
  cursor:pointer;
  color:var(--text-light);
}
.assignee-select-all-btn:hover{background:#efeeea;color:var(--text);}
.assignee-check-row{
  display:flex;
  align-items:center;
  gap:9px;
  padding:6px 8px;
  font-size:13px;
  cursor:pointer;
  border-radius:6px;
}
.assignee-check-row:hover{background:#efeeea;}
.assignee-check-row input{width:15px;height:15px;flex-shrink:0;accent-color:var(--accent);cursor:pointer;}

/* ---------- Task-scoped providers section ---------- */
.tp-table{font-size:12.5px;}
.tp-table .status-select{min-width:100px;font-size:11.5px;padding:4px 6px;}
.tp-table .tp-comment-input{
  width:100%;
  border:1px solid var(--border);
  border-radius:6px;
  padding:5px 7px;
  font-size:12px;
  background:#fff;
}
.tp-import-row{
  display:flex;
  gap:8px;
  align-items:flex-start;
  margin-bottom:14px;
}
.tp-import-row textarea{
  flex:1;
  border:1px solid var(--border);
  border-radius:8px;
  padding:8px 10px;
  font-size:13px;
  font-family:inherit;
  resize:vertical;
}
.tp-add-row{
  display:flex;
  gap:8px;
  margin-top:12px;
}
.tp-add-row input{
  flex:1;
  border:1px solid var(--border);
  border-radius:8px;
  padding:7px 10px;
  font-size:13px;
  font-family:inherit;
}


/* =========================================================
   Shift Hub — Visual Refresh
   ========================================================= */
:root{
  --bg:#f5f7fb;
  --sidebar-bg:#111827;
  --sidebar-hover:#1b2536;
  --sidebar-text:#cbd5e1;
  --sidebar-muted:#7f8da3;
  --border:#e7eaf0;
  --text:#182230;
  --text-light:#718096;
  --accent:#3b6ff5;
  --accent-dark:#2858d9;
  --accent-light:#edf3ff;
  --card-bg:#ffffff;
  --success:#25a56a;
  --warning:#e8a11a;
  --danger:#e35d5b;
  --shadow:0 8px 30px rgba(20,32,55,.06);
  --shadow-hover:0 14px 36px rgba(20,32,55,.10);
  --radius:14px;
  --sidebar-w:260px;
}

body{
  background:
    radial-gradient(circle at 80% -10%,rgba(59,111,245,.08),transparent 30%),
    var(--bg);
  color:var(--text);
}
.sidebar{
  background:linear-gradient(180deg,#111827 0%,#0f1724 100%);
  border-right:0;
  padding:18px 12px 12px;
  box-shadow:8px 0 30px rgba(15,23,36,.08);
}
.sidebar-brand{
  color:#fff;
  padding:10px 12px 22px;
  font-size:18px;
  letter-spacing:-.02em;
}
.sidebar-brand .brand-emoji{
  width:36px;height:36px;
  display:flex;align-items:center;justify-content:center;
  border-radius:11px;
  background:rgba(255,255,255,.10);
}
.sidebar-section-label{
  color:#66758d;
  font-size:10px;
  font-weight:800;
  letter-spacing:.12em;
  padding:16px 12px 7px;
}
.sidebar-link{
  color:var(--sidebar-text);
  padding:10px 12px;
  border-radius:10px;
  font-size:13.5px;
}
.sidebar-link:hover{background:var(--sidebar-hover);color:#fff;}
.sidebar-link.active{
  background:linear-gradient(90deg,rgba(59,111,245,.22),rgba(59,111,245,.10));
  color:#fff;
  box-shadow:inset 3px 0 0 var(--accent);
}
.sidebar-link .icon{font-size:16px;}
.sidebar-user-widget{
  border-top:1px solid rgba(255,255,255,.09);
}
.user-select,.notif-bell{
  background:#172235;
  border-color:#2b384c;
  color:#dbe5f3;
}
.notif-bell:hover{background:#223049;}
.main-content{
  padding:38px 46px 70px;
  max-width:1500px;
}
.page-title{
  font-size:31px;
  letter-spacing:-.035em;
}
.page-subtitle{
  font-size:14px;
  color:#7b8798;
}
.callout{
  border:1px solid #dfe8ff;
  background:linear-gradient(135deg,#f5f8ff,#edf3ff);
  box-shadow:none;
  border-radius:12px;
}
.callout-accent{border-left:4px solid var(--accent);}
.section-block{
  border-color:var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:22px;
}
.section-heading{
  color:#7a8798;
  letter-spacing:.08em;
}
.btn{
  border-color:#dde3ec;
  border-radius:10px;
  box-shadow:0 1px 2px rgba(20,32,55,.03);
}
.btn:hover{background:#f7f9fc;}
.btn-primary{
  background:linear-gradient(135deg,#4679f6,#3567e8);
  border-color:#3567e8;
  box-shadow:0 6px 16px rgba(59,111,245,.20);
}
.btn-primary:hover{background:linear-gradient(135deg,#3567e8,#2858d9);}
.btn-large{padding:11px 17px;font-size:13px;}
.btn-ghost{background:rgba(255,255,255,.72);}
.search-box{
  max-width:420px;
  background:#fff;
  border-color:#dfe4ec;
  border-radius:10px;
  box-shadow:0 2px 8px rgba(20,32,55,.03);
}
.data-table th{
  background:#f8fafc;
  color:#718096;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.data-table td{padding:12px;}
.data-table tr:hover td{background:#f8fbff;}
.hub-card{
  border-color:var(--border);
  box-shadow:var(--shadow);
}
.hub-card:hover{box-shadow:var(--shadow-hover);transform:translateY(-4px);}
.kanban-col{
  background:#eef2f7;
  border:1px solid #e3e8ef;
}
.kanban-card{
  border-color:#e4e8ef;
  border-radius:11px;
  box-shadow:0 2px 7px rgba(20,32,55,.04);
}
.modal-box{
  border:1px solid #e5e9ef;
  box-shadow:0 25px 70px rgba(20,32,55,.22);
}
.form-group input,.form-group select,.form-group textarea{
  background:#fff;
  border-color:#dce2ea;
}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{
  outline:none;
  border-color:#7fa1fa;
  box-shadow:0 0 0 3px rgba(59,111,245,.10);
}
.status-pill{
  display:inline-flex;align-items:center;gap:6px;
  padding:4px 9px;border-radius:999px;font-size:11px;font-weight:700;
}
.status-pill:before{content:"";width:6px;height:6px;border-radius:50%;}
.status-on{background:#e8f8f0;color:#1f8558;}
.status-on:before{background:#25a56a;}
.status-off{background:#f1f3f6;color:#7b8798;}
.status-off:before{background:#9aa5b4;}
.check-inline{display:flex!important;align-items:center;gap:8px;}
.check-inline input{width:16px!important;height:16px;box-shadow:none!important;}

.sidebar-user-widget .notif-bell{font-size:14px;}
.notif-panel{
  background:#172235;
  border-color:#2b384c;
}
.notif-panel-actions{background:#172235;border-color:#2b384c;}
.notif-panel-action-btn,.notif-action-btn{background:#1f2b3d;border-color:#334156;color:#dbe5f3;}
.notif-item{border-color:#2b384c;color:#e6edf7;}
.notif-item:hover{background:#1d2a3d;}
.notif-item.unread{background:rgba(59,111,245,.16);}
.notif-item-msg,.notif-item-time{color:#92a1b7;}
.notif-empty{color:#92a1b7;}

/* Dashboard */
.dashboard{max-width:1520px;}
.hero{
  display:flex;align-items:flex-end;justify-content:space-between;gap:30px;
  padding:30px 32px;
  margin-bottom:20px;
  border-radius:20px;
  background:
    radial-gradient(circle at 90% 0%,rgba(111,146,255,.25),transparent 35%),
    linear-gradient(135deg,#162033,#202d43);
  color:#fff;
  box-shadow:0 18px 45px rgba(15,23,36,.13);
}
.eyebrow{
  font-size:10px;font-weight:800;letter-spacing:.16em;
  color:#8fa9ff;margin-bottom:10px;
}
.hero h1{
  font-size:38px;letter-spacing:-.045em;margin:0 0 8px;
}
.hero h1 span{font-size:30px;}
.hero p{
  margin:0;color:#b9c5d7;max-width:700px;line-height:1.6;font-size:14px;
}
.hero-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end;}
.hero .btn-primary{background:#fff;color:#2455cf;border-color:#fff;box-shadow:none;}
.hero .btn-primary:hover{background:#f2f5ff;}
.hero .btn-ghost{background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.16);}
.hero .btn-ghost:hover{background:rgba(255,255,255,.14);}
.stats-grid{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px;
}
.stat-card{
  display:flex;align-items:center;gap:13px;padding:17px 18px;
  background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);
}
.stat-card span{display:block;color:#7b8798;font-size:11.5px;margin-bottom:3px;}
.stat-card strong{font-size:23px;letter-spacing:-.03em;}
.stat-icon{
  width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:19px;
}
.stat-icon.blue{background:#edf3ff;}
.stat-icon.green{background:#eaf8f1;}
.stat-icon.purple{background:#f1ecff;}
.stat-icon.orange{background:#fff2e4;}
.dashboard-grid{
  display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,1fr);gap:18px;
}
.dashboard-main-card,.dashboard-side{margin-bottom:0;}
.section-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px;}
.section-kicker{font-size:10px;font-weight:800;letter-spacing:.12em;color:#8491a3;margin-bottom:5px;}
.section-block h2{margin:0;font-size:19px;letter-spacing:-.025em;}
.quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;}
.quick-card{
  min-height:82px;padding:14px;border:1px solid var(--border);border-radius:12px;
  display:flex;align-items:center;gap:12px;background:#fff;transition:.16s ease;
}
.quick-card:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(20,32,55,.07);}
.quick-card>span{
  width:42px;height:42px;border-radius:11px;display:flex;align-items:center;justify-content:center;font-size:20px;
}
.quick-card div{min-width:0;flex:1;}
.quick-card b{display:block;font-size:13.5px;margin-bottom:3px;}
.quick-card small{display:block;color:#8792a2;font-size:11.5px;line-height:1.35;}
.quick-card i{font-style:normal;color:#9aa6b6;font-size:17px;}
.quick-blue>span{background:#edf3ff}.quick-green>span{background:#eaf8f1}.quick-orange>span{background:#fff2e4}
.quick-purple>span{background:#f1ecff}.quick-pink>span{background:#ffedf2}.quick-yellow>span{background:#fff7dc}
.dashboard-side h2{margin-bottom:13px;}
.side-link{
  display:flex;align-items:center;gap:11px;padding:12px 0;border-top:1px solid #edf0f4;
}
.side-link>span{
  width:36px;height:36px;border-radius:10px;background:#f4f6f9;display:flex;align-items:center;justify-content:center;
}
.side-link div{flex:1}.side-link b{display:block;font-size:13px}.side-link small{color:#8a95a5;font-size:11px;}
.side-link em{font-style:normal;color:#a1aaba;}
.dashboard-footer-note{
  margin-top:16px;padding:13px 15px;border:1px dashed #cfd7e4;border-radius:11px;
  color:#7b8798;font-size:12px;background:rgba(255,255,255,.55);
}

/* Shift Check */
.check-progress-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;color:#6f7d90;font-size:12.5px;}
.check-progress-head strong{color:var(--accent);font-size:15px;}
.progress-track{height:8px;background:#e9edf3;border-radius:99px;overflow:hidden;margin-bottom:14px;}
.progress-fill{height:100%;background:linear-gradient(90deg,#4a7cf5,#6d92ff);border-radius:99px;transition:width .2s ease;}
.filter-pills{display:flex;gap:6px;flex-wrap:wrap;}
.filter-pills .filter-active{background:var(--accent-light);border-color:#cbd9ff;color:var(--accent);}
.check-row{
  display:grid;grid-template-columns:18px 44px 1fr;gap:10px;align-items:start;
  padding:11px 10px;border-bottom:1px solid #edf0f4;cursor:pointer;border-radius:8px;
}
.check-row:hover{background:#f8fafc;}
.check-row input{margin-top:3px;width:15px;height:15px;accent-color:var(--accent);}
.check-number{font-size:11px;font-weight:800;color:#9aa5b4;padding-top:2px;}
.check-question{font-size:13px;line-height:1.5;}
.check-row.is-done{background:#f5fbf8;}
.check-row.is-done .check-question{text-decoration:line-through;color:#9aa5b4;}

/* Content readability */
.accordion-body{color:#66758a;line-height:1.7;}
.accordion-body p:last-child{margin-bottom:0!important;}
.accordion-body h3,.accordion-body h4,.accordion-body h5{color:var(--text);}
.accordion-item.open{border-color:#d8e1f4;box-shadow:0 3px 12px rgba(20,32,55,.04);}
.dept-card{text-align:left;align-items:flex-start;}
.dept-card .emoji-badge{margin-bottom:2px;}
.dept-card .card-label{font-size:16px;}
.table-responsive{overflow:auto;border:1px solid var(--border);border-radius:12px;}
@media (max-width:1050px){
  .stats-grid{grid-template-columns:repeat(2,1fr);}
  .dashboard-grid{grid-template-columns:1fr;}
}
@media (max-width:800px){
  .main-content{padding:70px 18px 50px;}
  .hero{padding:24px;align-items:flex-start;flex-direction:column;}
  .hero h1{font-size:31px;}
  .hero-actions{justify-content:flex-start;}
  .quick-grid{grid-template-columns:1fr;}
}
@media (max-width:560px){
  .stats-grid{grid-template-columns:1fr;}
  .stat-card{padding:14px;}
}

/* Monthly error reports */
.error-report-filter{background:linear-gradient(135deg,#fff,#f8faff);border-color:#dfe7f7;}
.report-period-controls{display:flex;gap:8px;align-items:flex-end;}
.report-period-controls label{display:block;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#8792a2;margin:0 0 5px;}
.report-period-controls select{min-width:125px;padding:10px 12px;border:1px solid #dce3ed;border-radius:10px;background:#fff;color:#253044;font-weight:600;}
.report-period-controls select:focus{outline:none;border-color:#7fa1fa;box-shadow:0 0 0 3px rgba(59,111,245,.10);}
.report-summary{margin-top:6px;}
.report-period-title{font-size:12px;font-weight:800;color:#60708a;text-transform:uppercase;letter-spacing:.08em;margin-bottom:9px;}
.report-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;}
.report-stat{padding:13px 14px;border:1px solid #e6eaf0;background:#fff;border-radius:11px;}
.report-stat span{display:block;font-size:10.5px;color:#8994a4;margin-bottom:4px;}
.report-stat b{font-size:20px;letter-spacing:-.02em;}
@media(max-width:800px){
  .report-period-controls{width:100%;}
  .report-period-controls>div{flex:1;}
  .report-period-controls select{width:100%;min-width:0;}
  .report-summary-grid{grid-template-columns:repeat(2,1fr);}
}

/* Notion-like expandable sections for FAQ / Knowledge */
.notion-toggle-group{
  overflow:hidden;
  border:1px solid #e8eaf0;
  border-radius:12px;
  background:#fff;
  margin-bottom:12px;
}
.notion-toggle-header{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:48px;
  padding:10px 14px;
  cursor:pointer;
  user-select:none;
  font-weight:650;
  color:#30343b;
  transition:background .15s ease;
}
.notion-toggle-header:hover{background:#f7f8fa;}
.notion-toggle-header:focus-visible{outline:2px solid #6d8df7;outline-offset:-2px;}
.notion-toggle-chevron{
  width:16px;
  font-size:11px;
  color:#747b87;
  transition:transform .16s ease;
}
.notion-toggle-group.open .notion-toggle-chevron{transform:rotate(90deg);}
.notion-toggle-icon{font-size:16px;line-height:1;}
.notion-toggle-title{flex:1;font-size:15px;}
.notion-toggle-count{
  min-width:22px;
  height:22px;
  padding:0 7px;
  border-radius:999px;
  background:#f0f1f3;
  color:#737985;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:700;
}
.notion-toggle-content{
  display:none;
  padding:0 14px 14px 38px;
}
.notion-toggle-group.open .notion-toggle-content{display:block;}
.notion-toggle-content .accordion-item{
  border:0;
  border-top:1px solid #f0f1f3;
  border-radius:0;
  margin:0;
}
.notion-toggle-content .accordion-header{
  min-height:42px;
  padding:9px 2px;
}
.notion-toggle-content .accordion-body{
  padding:0 2px 12px 24px;
}

/* ===== Polished Knowledge / FAQ UI ===== */
.faq-grid,.knowledge-layout{display:flex;flex-direction:column;gap:14px;max-width:1180px;}
.faq-category,.knowledge-group{
  background:rgba(255,255,255,.92);
  border:1px solid #e4e8ef;
  border-radius:18px;
  box-shadow:0 5px 18px rgba(31,42,61,.045);
  overflow:hidden;
}
.faq-category-head,.knowledge-group-head{
  width:100%;display:flex;align-items:center;gap:12px;border:0;background:#fff;
  padding:16px 18px;text-align:left;color:#202936;
}
.faq-category-head{cursor:pointer;}
.faq-cat-icon,.knowledge-group-icon{font-size:20px;width:28px;text-align:center;}
.faq-cat-main{display:flex;flex-direction:column;gap:3px;flex:1;}
.faq-cat-main b,.knowledge-group-head b{font-size:16px;}
.faq-cat-main small{font-size:12px;color:#8993a3;font-weight:500;}
.faq-cat-chevron,.knowledge-card-chevron{font-size:17px;color:#8a94a4;transition:transform .2s ease;}
.faq-category.is-open .faq-cat-chevron,.knowledge-card.is-open .knowledge-card-chevron{transform:rotate(180deg);}
.faq-category-body{display:none;border-top:1px solid #edf0f4;padding:8px 14px 14px;}
.faq-category.is-open .faq-category-body{display:block;}
.faq-card{border-bottom:1px solid #edf0f4;}
.faq-card:last-child{border-bottom:0;}
.faq-question{
  width:100%;display:flex;align-items:center;gap:10px;padding:14px 8px;
  border:0;background:transparent;text-align:left;cursor:pointer;color:#303846;font:inherit;
}
.faq-q-icon{width:25px;height:25px;border-radius:8px;background:#eef3ff;color:#4772df;display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:12px;flex:0 0 25px;}
.faq-question>span:nth-child(2){flex:1;font-weight:600;}
.faq-q-chevron{color:#99a1ad;transition:transform .2s ease;}
.faq-card.is-open .faq-q-chevron{transform:rotate(180deg);}
.faq-question .edit-faq-btn{margin-left:4px;flex:0 0 auto;}
.faq-answer{display:none;padding:0 45px 17px 45px;color:#596579;font-size:13.5px;}
.faq-card.is-open .faq-answer{display:block;}
.faq-dept-link{display:inline-flex;margin-top:10px;padding:8px 11px;border:1px solid #dfe5ee;border-radius:9px;text-decoration:none;color:#3f69ce;background:#f8faff;font-size:12px;font-weight:600;}

.knowledge-group-head{justify-content:space-between;border-bottom:1px solid #edf0f4;}
.knowledge-group-head>div{display:flex;align-items:center;gap:10px;}
.knowledge-count{background:#f0f2f6;color:#697486;border-radius:999px;padding:4px 9px;font-size:11px;font-weight:700;}
.knowledge-cards{padding:10px;}
.knowledge-card{border:1px solid #e8ebf1;border-radius:13px;background:#fff;overflow:hidden;margin-bottom:9px;transition:box-shadow .18s,border-color .18s;}
.knowledge-card:last-child{margin-bottom:0;}
.knowledge-card:hover{border-color:#d9e0eb;box-shadow:0 4px 14px rgba(31,42,61,.05);}
.knowledge-card-featured{border-color:#dce5fb;background:linear-gradient(180deg,#fff,#fbfcff);}
.knowledge-card-head{
  width:100%;display:flex;align-items:center;gap:11px;padding:14px;border:0;background:transparent;
  cursor:pointer;text-align:left;color:#273142;font:inherit;
}
.knowledge-card-icon{font-size:19px;width:29px;text-align:center;}
.knowledge-card-title{flex:1;display:flex;flex-direction:column;gap:3px;}
.knowledge-card-title b{font-size:14px;}
.knowledge-card-title small{font-size:11px;color:#919aa8;}
.knowledge-card-body{display:none;border-top:1px solid #edf0f4;padding:18px 20px 22px;color:#566275;font-size:13.5px;line-height:1.65;}
.knowledge-card.is-open .knowledge-card-body{display:block;}
.knowledge-card-body .kb-h1{font-size:22px;margin:0 0 16px;color:#202938;}
.knowledge-card-body .kb-h2{font-size:17px;margin:24px 0 9px;color:#2c3748;padding-bottom:6px;border-bottom:1px solid #edf0f4;}
.knowledge-card-body .kb-h3{font-size:14px;margin:17px 0 7px;color:#394558;}
.kb-paragraph{margin:0 0 10px;line-height:1.7;}
.kb-list{margin:7px 0 14px;padding-left:22px;}
.kb-list li{margin:5px 0;}
.kb-checklist{margin:7px 0 14px;padding:0;list-style:none;}
.kb-checklist li{display:flex;gap:8px;margin:6px 0;}
.kb-check{width:19px;height:19px;border-radius:6px;background:#eef3ff;color:#4d74dc;display:inline-flex;align-items:center;justify-content:center;font-size:11px;flex:0 0 19px;}
.kb-callout{display:flex;gap:10px;padding:12px 14px;margin:12px 0;border:1px solid #e0e7f5;background:#f7f9fe;border-radius:10px;color:#53627a;}
.kb-callout-icon{flex:0 0 auto;}
.kb-divider{border:0;border-top:1px solid #e7ebf0;margin:18px 0;}
.kb-link{color:#416bd3;text-decoration:none;font-weight:600;}
.kb-link:hover{text-decoration:underline;}
.kb-code{background:#202733;border-radius:10px;padding:13px 15px;margin:12px 0;overflow:auto;}
.kb-code pre{margin:0;color:#eef2f7;font:12.5px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;}
.kb-table-wrap{overflow:auto;margin:12px 0 17px;border:1px solid #e4e8ee;border-radius:10px;}
.kb-table{width:100%;border-collapse:collapse;min-width:420px;background:#fff;}
.kb-table th{background:#f6f8fb;color:#4d596b;font-weight:700;text-align:left;}
.kb-table th,.kb-table td{padding:9px 11px;border-bottom:1px solid #edf0f4;font-size:12.5px;vertical-align:top;}
.kb-table tr:last-child td{border-bottom:0;}
@media(max-width:700px){
  .faq-answer{padding-left:43px;padding-right:12px;}
  .knowledge-card-body{padding:15px;}
  .faq-category-head,.knowledge-group-head{padding:14px;}
}

/* Dashboard active Shift Check action */
.hero-actions a[href="shift-check.html"]{cursor:pointer;}
.hero-actions a[href="shift-check.html"]:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(63,105,211,.14);}

/* Knowledge Base: neutral label for imported legacy materials */
.knowledge-featured .knowledge-group-head b{letter-spacing:.1px;}

/* ===== Departments polish ===== */
.dept-card .text-muted{margin-top:7px;}
.dept-card .text-muted::first-letter{}
/* ===== Shift Flow — advanced timeline UI ===== */
.flow-page-hero{
  display:flex;justify-content:space-between;align-items:center;gap:25px;
  padding:24px 28px;margin-bottom:18px;border-radius:20px;
  background:linear-gradient(135deg,#17223b 0%,#2d3d67 100%);color:#fff;
  box-shadow:0 12px 28px rgba(26,39,68,.16);
}
.flow-page-hero .page-title{color:#fff;margin:5px 0 0;}
.flow-page-hero .page-subtitle{color:#cbd5e7;margin:7px 0 0;}
.flow-hero-icon{width:70px;height:70px;border-radius:20px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.12);font-size:35px;flex:0 0 70px;}
.flow-kicker{font-size:10px;letter-spacing:1.6px;font-weight:800;color:#7196ff;}
.flow-page-hero .flow-kicker{color:#9db7ff;}
.flow-overview{
  display:flex;justify-content:space-between;gap:18px;align-items:center;
  padding:22px 24px;margin:18px 0 14px;background:#fff;border:1px solid #e2e7ef;
  border-radius:18px;box-shadow:0 6px 20px rgba(35,48,70,.05);
}
.flow-overview-main h2{margin:4px 0 5px;font-size:21px;color:#202b3c;}
.flow-overview-main p{margin:0;color:#7a8697;font-size:13px;}
.flow-progress-card{min-width:190px;padding:12px 15px;background:#f6f8fc;border-radius:13px;color:#7b8798;font-size:11px;}
.flow-progress-card strong{display:block;font-size:25px;color:#243149;margin:2px 0 8px;}
.flow-progress{height:5px;border-radius:99px;background:#e2e7ef;overflow:hidden;}
.flow-progress i{display:block;height:100%;background:#4d73e8;border-radius:inherit;}
.flow-stage-nav{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 25px;}
.flow-stage-chip{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid #dfe5ee;background:#fff;border-radius:999px;color:#4c596b;text-decoration:none;font-size:12px;font-weight:600;box-shadow:0 3px 10px rgba(31,42,61,.035);}
.flow-stage-chip:hover{border-color:#bfcdf2;color:#3e63c6;background:#f8faff;}
.flow-stage-chip b{font-size:10px;color:#8090a5;}
.flow-timeline{position:relative;padding:4px 0 30px;}
.flow-timeline::before{content:"";position:absolute;left:25px;top:25px;bottom:30px;width:2px;background:#dfe5ef;}
.flow-stage{position:relative;padding-left:65px;margin-bottom:28px;scroll-margin-top:20px;}
.flow-stage-marker{position:absolute;left:0;top:0;width:52px;height:52px;border-radius:16px;background:#edf2ff;border:1px solid #dce5fb;display:flex;align-items:center;justify-content:center;font-size:22px;z-index:1;box-shadow:0 0 0 6px #f3f6fb;}
.flow-stage-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:10px;}
.flow-stage-label{font-size:9px;letter-spacing:1.4px;font-weight:800;color:#7890b8;}
.flow-stage-heading h3{margin:2px 0 0;font-size:19px;color:#263247;}
.flow-stage-count{padding:5px 9px;border-radius:999px;background:#f1f3f7;color:#758195;font-size:10px;font-weight:700;}
.flow-step-card{background:#fff;border:1px solid #e3e8f0;border-radius:13px;margin:8px 0;overflow:hidden;box-shadow:0 3px 12px rgba(31,42,61,.035);transition:.18s ease;}
.flow-step-card:hover{border-color:#cfd8ea;box-shadow:0 6px 16px rgba(31,42,61,.06);}
.flow-step-card.open{border-color:#cbd8f3;}
.flow-step-head{width:100%;border:0;background:#fff;display:flex;align-items:center;gap:12px;padding:13px 14px;text-align:left;cursor:pointer;color:#2b3546;font:inherit;}
.flow-step-number{width:31px;height:31px;border-radius:9px;background:#f0f4ff;color:#4a6ed4;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:800;flex:0 0 31px;}
.flow-step-title{font-size:13.5px;font-weight:650;flex:1;}
.flow-step-actions{display:flex;align-items:center;gap:8px;}
.flow-step-actions .icon-btn{padding:4px;}
.flow-step-chevron{color:#98a2b1;transition:transform .2s;}
.flow-step-card.open .flow-step-chevron{transform:rotate(180deg);}
.flow-step-body{max-height:0;overflow:hidden;transition:max-height .22s ease;border-top:0;}
.flow-step-card.open .flow-step-body{border-top:1px solid #edf0f4;}
.flow-step-inner{padding:14px 18px 17px 57px;color:#5b687a;font-size:13px;line-height:1.65;}
.flow-step-inner .kb-paragraph{margin-bottom:8px;}
.flow-step-inner .kb-list{margin-top:4px;}
.flow-empty-stage{padding:15px 16px;border:1px dashed #d9dfe8;border-radius:12px;color:#8b96a5;background:#fafbfd;font-size:12px;}
.flow-empty{padding:45px;text-align:center;background:#fff;border:1px dashed #d7dee9;border-radius:16px;color:#7c8797;}
.flow-empty-icon{font-size:32px;margin-bottom:6px;}
.flow-empty h3{margin:0 0 5px;color:#303b4d;}
.flow-empty p{margin:0;font-size:13px;}
.flow-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:20px 0 13px;padding:16px 18px;background:#f7f9fc;border:1px solid #e3e8ef;border-radius:14px;}
.flow-toolbar h2{margin:3px 0;font-size:17px;color:#2a3547;}
.flow-toolbar p{margin:0;color:#8993a2;font-size:11.5px;}
@media(max-width:700px){
  .flow-page-hero{padding:20px;}
  .flow-hero-icon{display:none;}
  .flow-overview{align-items:stretch;flex-direction:column;}
  .flow-progress-card{min-width:0;}
  .flow-stage{padding-left:50px;}
  .flow-timeline::before{left:20px;}
  .flow-stage-marker{width:42px;height:42px;border-radius:13px;font-size:18px;}
  .flow-step-inner{padding-left:48px;}
  .flow-toolbar{align-items:flex-start;flex-direction:column;}
}

/* =========================================================
   FAQ — premium knowledge interface
   ========================================================= */
.faq-page-hero{display:flex;align-items:center;gap:17px;margin-bottom:8px;}
.faq-page-icon{width:52px;height:52px;border-radius:16px;background:linear-gradient(135deg,#fff1ef,#fff);border:1px solid #ffd9d4;color:#e44e42;display:flex;align-items:center;justify-content:center;font-size:30px;font-weight:800;box-shadow:0 8px 22px rgba(224,78,66,.08);}
.faq-page-hero .page-title{margin:0;font-size:31px;}
.faq-page-hero .page-subtitle{margin:3px 0 0;max-width:900px;font-size:13.5px;}
.faq-section-kicker{display:block;font-size:9px;letter-spacing:1.6px;font-weight:800;color:#6684ce;margin-bottom:3px;}
.faq-intro{display:flex;align-items:flex-start;gap:12px;padding:14px 17px;margin:8px 0 20px;border:1px solid #dce5fb;border-radius:14px;background:linear-gradient(135deg,#f8faff,#f3f6ff);color:#4e5d73;font-size:13px;line-height:1.55;}
.faq-intro>span{font-size:17px;}
.faq-intro b{color:#26354e;margin-right:5px;}
.faq-intro div{display:flex;gap:5px;flex-wrap:wrap;}
.faq-grid{display:flex;flex-direction:column;gap:10px;}
.faq-category{background:#fff;border:1px solid #e1e6ef;border-radius:16px;overflow:hidden;box-shadow:0 5px 18px rgba(28,43,68,.045);}
.faq-category-head{width:100%;border:0;background:#fff;padding:15px 17px;display:flex;align-items:center;gap:12px;text-align:left;cursor:pointer;}
.faq-category-head:hover{background:#fafcff;}
.faq-cat-icon,.faq-direct-icon{width:38px;height:38px;border-radius:11px;background:#eef3ff;color:#4e70d8;display:flex;align-items:center;justify-content:center;font-size:18px;flex:0 0 38px;}
.faq-cat-main{display:flex;flex-direction:column;gap:2px;flex:1;}
.faq-cat-main b{font-size:15px;color:#263247;}
.faq-cat-main small{font-size:10.5px;color:#8793a5;}
.faq-cat-chevron{color:#8a96a8;transition:.2s;}
.faq-category.is-open .faq-cat-chevron{transform:rotate(180deg);}
.faq-category-body{display:none;padding:0 10px 10px;}
.faq-category.is-open .faq-category-body{display:block;}
.faq-category-direct{overflow:visible;}
.faq-category-direct .faq-category-body{display:block;padding:0 10px 10px;}
.faq-direct-heading{display:flex;align-items:center;gap:12px;padding:17px 18px 13px;border-bottom:1px solid #edf0f4;}
.faq-direct-heading h2{font-size:17px;margin:0;color:#243149;}
.faq-direct-heading p{font-size:11px;color:#8a95a6;margin:3px 0 0;}
.faq-card{border:1px solid #e5e9f0;border-radius:12px;margin:8px 0;overflow:hidden;background:#fff;transition:.18s ease;}
.faq-card:hover{border-color:#ccd7eb;box-shadow:0 5px 16px rgba(35,51,77,.05);}
.faq-card.is-open{border-color:#d4def5;background:#fbfcff;}
.faq-question{width:100%;border:0;background:transparent;padding:13px 14px;display:flex;align-items:center;gap:11px;text-align:left;cursor:pointer;color:#293448;font:inherit;}
.faq-q-icon{width:30px;height:30px;border-radius:9px;background:#f0f4ff;color:#4d6ed3;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;flex:0 0 30px;}
.faq-q-content{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0;}
.faq-q-content b{font-size:13.5px;line-height:1.35;}
.faq-q-content small{font-size:10.5px;color:#94a0b1;}
.faq-q-chevron{color:#8b97a8;transition:.2s;flex:0 0 auto;}
.faq-card.is-open .faq-q-chevron{transform:rotate(180deg);}
.faq-answer{display:none;border-top:1px solid #edf0f4;}
.faq-card.is-open .faq-answer{display:block;}
.faq-answer-inner{padding:15px 18px 8px 55px;color:#667388;font-size:13px;line-height:1.65;}
.faq-answer-inner p{margin:0 0 9px;}
.faq-answer-inner ul,.faq-answer-inner ol{margin:7px 0 10px;padding-left:20px;}
.faq-answer-inner blockquote{margin:9px 0;padding:9px 12px;border-left:3px solid #6b86db;background:#f5f7ff;border-radius:0 8px 8px 0;}
.faq-dept-link{display:inline-flex;margin:3px 18px 15px 55px;padding:7px 10px;border:1px solid #dce3f0;border-radius:8px;background:#fff;color:#4767bd;font-size:11.5px;font-weight:650;}
.faq-dept-link:hover{background:#f4f7ff;border-color:#c9d5ee;}
.faq-category-direct .faq-card:first-child{margin-top:10px;}
@media(max-width:700px){
  .faq-page-hero .page-title{font-size:25px;}
  .faq-answer-inner{padding-left:18px;}
  .faq-dept-link{margin-left:18px;}
}

/* =========================================================
   Departments — premium directory
   ========================================================= */
.dept-page-hero{display:flex;align-items:center;gap:17px;margin-bottom:8px;}
.dept-page-icon{width:52px;height:52px;border-radius:16px;background:linear-gradient(135deg,#eef3ff,#fff);border:1px solid #d8e2fa;display:flex;align-items:center;justify-content:center;font-size:27px;box-shadow:0 8px 22px rgba(59,111,245,.07);}
.dept-page-hero .page-title{margin:0;font-size:31px;}
.dept-page-hero .page-subtitle{margin:3px 0 0;max-width:900px;font-size:13.5px;}
.dept-section-kicker{display:block;font-size:9px;letter-spacing:1.6px;font-weight:800;color:#6684ce;margin-bottom:3px;}
.dept-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:5px;}
.dept-modern-card{position:relative;background:#fff;border:1px solid #e2e7ef;border-radius:17px;padding:18px;min-height:205px;cursor:pointer;box-shadow:0 5px 18px rgba(28,43,68,.045);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;display:flex;flex-direction:column;}
.dept-modern-card:hover{transform:translateY(-3px);border-color:#cbd7ed;box-shadow:0 14px 34px rgba(28,43,68,.10);}
.dept-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px;}
.dept-icon{width:50px;height:50px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:24px;}
.dept-modern-card h2{font-size:17px;line-height:1.25;margin:0 0 8px;color:#233047;}
.dept-modern-card p{font-size:12.5px;line-height:1.5;color:#778498;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.dept-open-hint{font-size:10px;color:#9aa5b5;opacity:0;transform:translateX(-3px);transition:.18s;}
.dept-modern-card:hover .dept-open-hint{opacity:1;transform:none;}
.dept-edit-btn{position:absolute;top:12px;right:12px!important;z-index:2;background:rgba(255,255,255,.9)!important;}
.dept-card-footer{margin-top:auto;padding-top:16px;display:flex;align-items:center;justify-content:space-between;gap:7px;min-height:27px;}
.dept-card-label{font-size:8.5px;letter-spacing:1px;font-weight:800;color:#a0a9b8;}
.dept-contact-pill{font-size:10px;color:#4c69bd;background:#f0f4ff;border:1px solid #dce5fa;padding:4px 7px;border-radius:8px;white-space:nowrap;max-width:150px;overflow:hidden;text-overflow:ellipsis;}
.dept-modal-contact{margin:0 0 16px;}
.dept-modal-content{border-top:1px solid #edf0f4;padding-top:18px;font-size:14px;color:#354158;line-height:1.7;}
.dept-modal-content h2,.dept-modal-content h3{color:#243149;margin:18px 0 8px;}
.dept-modal-content ul,.dept-modal-content ol{padding-left:22px;}
.dept-modal-content blockquote{margin:12px 0;padding:10px 13px;background:#f5f7ff;border-left:3px solid #6b86db;border-radius:0 9px 9px 0;color:#65738a;}
@media(max-width:1150px){.dept-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:850px){.dept-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:560px){.dept-grid{grid-template-columns:1fr;}.dept-page-hero .page-title{font-size:25px;}}

.faq-category-direct{border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;}
.faq-category-direct .faq-direct-body{padding:0!important;}
.faq-category-direct .faq-card:first-child{margin-top:0;}
.faq-category-direct .faq-card:first-child .faq-q-content b::before{content:"";display:none;}
.faq-card.is-open .faq-answer{animation:faqAnswerIn .18s ease;}
@keyframes faqAnswerIn{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}

.current-user-resolved{font-size:9.5px;line-height:1.3;color:#8390a4;padding:4px 5px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.current-user-resolved b{color:#5f72a8;}
.current-user-warning{color:#c9872e;}

.user-select-locked{opacity:.88;cursor:not-allowed!important;background:#f2f5fb!important;color:#33415c!important;}
.current-user-lock{margin-left:6px;font-size:10px;opacity:.7;}
