
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Calibri', 'Segoe UI', Arial, sans-serif;
  background: #FAFAFA;
  color: #1C1C1C;
}
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 236px;
  background: #FFFFFF;
  border-right: 1px solid #E7E7E7;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.brand { display:flex; align-items:center; gap:10px; padding: 0 6px 28px 6px; }
.brand-badge {
  width: 34px; height: 34px; border-radius: 8px; background: #0A0A0A;
  display:flex; align-items:center; justify-content:center;
  color: #E8CE1E; font-weight: 700; font-size: 15px; font-family: Cambria, serif;
}
.brand-name { font-size: 13.5px; font-weight: 700; color: #0A0A0A; line-height:1.15; }
.brand-sub { font-size: 9.5px; color: #8A8A8A; letter-spacing: 0.5px; text-transform: uppercase; }
.nav { display:flex; flex-direction:column; gap:8px; margin-top: 6px; }
.nav a {
  display:flex; align-items:center; gap:10px;
  padding: 11px 14px; border-radius: 8px;
  background: #E8CE1E; color: #0A0A0A;
  font-size: 12.5px; font-weight: 700; text-decoration:none;
}
.nav a .dot { width:7px; height:7px; border-radius:50%; background:#0A0A0A; opacity:0.55; }
.nav a.active { background: #0A0A0A; color: #E8CE1E; }
.nav a.active .dot { background:#E8CE1E; opacity:1; }
.nav a.inactive { background: #FBF6DD; color: #0A0A0A; }
.nav a.inactive .dot { background:#B99A0E; opacity:0.8; }
.sidebar-foot { margin-top: auto; }
.logout {
  display:flex; align-items:center; gap:10px;
  background:#0A0A0A; color:#fff; font-size:12.5px; font-weight:700;
  padding: 11px 14px; border-radius: 8px;
}
.main { flex:1; min-height:100vh; display:flex; flex-direction:column; }
.topbar {
  height: 66px; background:#FFFFFF; border-bottom:1px solid #E7E7E7;
  display:flex; align-items:center; justify-content:space-between; padding: 0 32px;
}
.topbar-title { font-size: 19px; font-weight: 700; color:#0A0A0A; font-family: Cambria, serif; }
.topbar-crumb { font-size: 11px; color:#8A8A8A; margin-top: 2px; }
.topbar-right { display:flex; align-items:center; gap:16px; }
.user-chip { display:flex; align-items:center; gap:9px; }
.avatar { width:32px; height:32px; border-radius:50%; background:#E8CE1E; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:12px; color:#0A0A0A; }
.user-name { font-size:12px; font-weight:700; color:#0A0A0A; }
.user-role { font-size:10px; color:#8A8A8A; }
.content { padding: 26px 32px 36px 32px; flex:1; }
.tabs { display:flex; gap:6px; margin-bottom: 20px; }
.tab { padding: 9px 16px; border-radius: 7px; font-size:12.5px; font-weight:700; color:#8A8A8A; background:transparent; border:1px solid #E7E7E7; }
.tab.active { background:#0A0A0A; color:#E8CE1E; border-color:#0A0A0A; }
.toolbar { display:flex; align-items:center; justify-content:space-between; margin-bottom: 18px; gap: 14px; }
.toolbar-left { display:flex; gap:10px; align-items:center; }
.search { width: 240px; padding: 9px 12px; border-radius:7px; border:1px solid #E7E7E7; font-size:11.5px; color:#8A8A8A; background:#fff; }
.select { padding: 9px 12px; border-radius:7px; border:1px solid #E7E7E7; font-size:11.5px; color:#1C1C1C; background:#fff; min-width: 120px; }
.btn { padding: 9px 16px; border-radius:7px; font-size:11.5px; font-weight:700; border:none; }
.btn-gold { background:#E8CE1E; color:#0A0A0A; }
.btn-ink { background:#0A0A0A; color:#fff; }
.btn-outline { background:#fff; color:#1C1C1C; border:1px solid #E7E7E7; }
.card { background:#FFFFFF; border:1px solid #E7E7E7; border-radius:10px; padding:18px 20px; }
.kpi-row { display:flex; gap:16px; margin-bottom:18px; }
.kpi { flex:1; background:#FFFFFF; border:1px solid #E7E7E7; border-radius:10px; padding:16px 18px; }
.kpi.highlight { border:1.5px solid #E8CE1E; }
.kpi-label { font-size:10.5px; color:#8A8A8A; text-transform:uppercase; letter-spacing:0.4px; font-weight:700; }
.kpi-value { font-size:26px; font-weight:700; color:#0A0A0A; font-family: Cambria, serif; margin-top:6px; }
.kpi-delta { font-size:10.5px; font-weight:700; margin-top:6px; }
.kpi-delta.down { color:#B23B2E; }
.kpi-delta.up { color:#2E7D46; }
.kpi-sub { font-size:9.5px; color:#8A8A8A; margin-top:2px; }
table { width:100%; border-collapse:collapse; }
th { text-align:left; font-size:10px; text-transform:uppercase; letter-spacing:0.3px; color:#8A8A8A; font-weight:700; padding:10px 12px; border-bottom:1.5px solid #E7E7E7; }
td { font-size:12px; color:#1C1C1C; padding:12px 12px; border-bottom:1px solid #E7E7E7; }
tr:last-child td { border-bottom:none; }
.pill { display:inline-block; padding:4px 10px; border-radius:20px; font-size:10px; font-weight:700; }
.pill-validated { background:#E5F3E8; color:#2E7D46; }
.pill-pending { background:#FDF1D6; color:#9A7A12; }
.pill-rejected { background:#FBE7E4; color:#B23B2E; }
.pill-approved { background:#E5F3E8; color:#2E7D46; }
.section-title { font-size:14px; font-weight:700; color:#0A0A0A; margin-bottom:12px; font-family: Cambria, serif; }
.grid2 { display:grid; grid-template-columns: 1fr 1fr; gap:16px; }
.grid3 { display:grid; grid-template-columns: 1fr 1fr 1fr; gap:16px; }
.legend { display:flex; gap:14px; margin-top:10px; flex-wrap:wrap; }
.legend-item { display:flex; align-items:center; gap:6px; font-size:10px; color:#4A4A4A; }
.legend-dot { width:9px; height:9px; border-radius:2px; }
.bars { display:flex; align-items:flex-end; gap:10px; height:150px; padding-top:8px; }
.bar-col { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; height:100%; gap:6px; }
.bar-stack { width:100%; max-width:34px; display:flex; flex-direction:column-reverse; border-radius:3px 3px 2px 2px; overflow:hidden; }
.bar-seg { width:100%; }
.bar-xlabel { font-size:9px; color:#8A8A8A; margin-top:2px; }
.slider-row { display:flex; align-items:center; gap:16px; margin-bottom:20px; }
.slider-track { flex:1; height:5px; background:#E7E7E7; border-radius:3px; position:relative; }
.slider-fill { position:absolute; left:0; top:0; height:100%; background:#E8CE1E; border-radius:3px; }
.slider-handle { position:absolute; top:50%; width:14px; height:14px; border-radius:50%; background:#E8CE1E; border:2px solid #0A0A0A; transform:translate(-50%,-50%); }
.badge-num { background:#0A0A0A; color:#E8CE1E; font-size:10px; font-weight:700; border-radius:20px; padding:2px 9px; }
.note { font-size:10.5px; color:#8A8A8A; margin-top:10px; }
.ticket-row { display:flex; align-items:center; justify-content:space-between; padding:13px 4px; border-bottom:1px solid #E7E7E7; }
.ticket-id { font-size:11px; font-weight:700; color:#8A8A8A; width:70px; }
.ticket-title { font-size:12px; color:#1C1C1C; flex:1; }
.sla-bar { width:90px; height:5px; background:#E7E7E7; border-radius:3px; overflow:hidden; margin-right:20px;}
.sla-fill { height:100%; }
.filter-card { margin-bottom:18px; padding:14px 18px 16px 18px; }
.filter-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.filter-title { font-size:12px; font-weight:700; color:#0A0A0A; text-transform:uppercase; letter-spacing:0.5px; }
.filter-grid { display:grid; grid-template-columns: repeat(5, 1fr); gap:10px 12px; }
.ff-label { font-size:9.5px; color:#8A8A8A; font-weight:700; text-transform:uppercase; letter-spacing:0.3px; margin-bottom:4px; }
.ff-box { display:flex; justify-content:space-between; align-items:center; padding:8px 11px; border-radius:7px; border:1px solid #E7E7E7; font-size:11.5px; color:#1C1C1C; background:#fff; }
.ff-caret { color:#8A8A8A; font-size:9px; }
.link-reset { font-size:11px; font-weight:700; color:#B99A0E; margin-right:6px; }
.co2 { font-weight:700; color:#0A0A0A; }
.auto-tag { font-size:8.5px; font-weight:700; color:#B99A0E; background:#FBF6DD; border-radius:4px; padding:1px 5px; margin-left:4px; vertical-align:middle; }
.field-label { font-size:10.5px; font-weight:700; color:#1C1C1C; margin-bottom:5px; display:block; }
.field { padding:10px 12px; border-radius:7px; border:1px solid #E7E7E7; font-size:12px; color:#1C1C1C; margin-bottom:14px; background:#fff; }
.info-box { background:#FBF6DD; border-radius:8px; padding:12px 14px; font-size:11px; color:#1C1C1C; line-height:1.45; margin:4px 0 16px 0; }
.pill-draft { background:#EFEFEF; color:#5A5A5A; }
.tpl-grid { display:grid; grid-template-columns: 1fr 1fr 1fr; gap:12px; }
.tpl { border:1px solid #E7E7E7; border-radius:9px; padding:13px 14px; background:#fff; }
.tpl.sel { border:1.5px solid #E8CE1E; background:#FFFDF2; }
.tpl-name { font-size:12.5px; font-weight:700; color:#0A0A0A; margin-bottom:4px; }
.tpl-desc { font-size:10.5px; color:#4A4A4A; line-height:1.35; min-height:28px; }
.tpl-meta { display:flex; justify-content:space-between; align-items:center; margin-top:10px; }
.tag { font-size:9px; font-weight:700; color:#0A0A0A; background:#F2F2F2; border-radius:4px; padding:2px 6px; }
.warn-box { background:#FDF1D6; border-radius:8px; padding:11px 13px; font-size:11px; color:#6B5410; line-height:1.45; margin:2px 0 14px 0; }
.sumtable td { padding:9px 12px; font-size:11.5px; }
.sumtable th { padding:8px 12px; }
.sumtable td.num, .sumtable th.num { text-align:right; }
.sumtable tr.total td { font-weight:700; background:#FBF6DD; border-top:1.5px solid #E8CE1E; }
.catdot { display:inline-block; width:8px; height:8px; border-radius:2px; margin-right:7px; }
.contrib-row { display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid #E7E7E7; font-size:11.5px; }
.pill-awaiting { background:#EFEFEF; color:#5A5A5A; }
.pill-overdue { background:#B23B2E; color:#fff; }
.dl { font-size:11.5px; white-space:nowrap; }
.dl-sub { font-size:9.5px; font-weight:700; margin-top:2px; }
.sub2 { font-size:9.5px; color:#8A8A8A; margin-top:2px; }
.cycle { background:#0A0A0A; border-radius:10px; padding:14px 20px; display:flex; align-items:center; gap:26px; margin-bottom:16px; color:#fff; }
.cycle-title { font-family:Cambria,serif; font-size:17px; font-weight:700; color:#E8CE1E; white-space:nowrap; }
.cycle-label { font-size:9px; text-transform:uppercase; letter-spacing:0.4px; color:#A8A8A8; font-weight:700; }
.cycle-val { font-size:12px; font-weight:700; margin-top:3px; white-space:nowrap; }
.chip { display:inline-block; font-size:9.5px; font-weight:700; border-radius:10px; padding:2px 8px; margin-left:6px; }
.chip-red { background:#B23B2E; color:#fff; }
.chip-amber { background:#E8CE1E; color:#0A0A0A; }
.chip-green { background:#2E7D46; color:#fff; }
.bell { position:relative; width:36px; height:36px; border-radius:50%; border:1px solid #E7E7E7; display:flex; align-items:center; justify-content:center; background:#fff; }
.bell.open { border-color:#E8CE1E; background:#FBF6DD; }
.bell-badge { position:absolute; top:-4px; right:-4px; background:#B23B2E; color:#fff; font-size:9.5px; font-weight:700; border-radius:9px; padding:1px 5px; border:2px solid #fff; }
.notif { position:absolute; top:60px; right:32px; width:400px; background:#fff; border:1px solid #E7E7E7; border-radius:12px; box-shadow:0 18px 40px rgba(0,0,0,0.16); z-index:10; }
.notif-head { display:flex; justify-content:space-between; align-items:center; padding:14px 16px; border-bottom:1px solid #E7E7E7; }
.notif-item { display:flex; gap:11px; padding:12px 16px; border-bottom:1px solid #E7E7E7; }
.notif-item.unread { background:#FFFDF2; }
.notif-dot { width:9px; height:9px; border-radius:50%; margin-top:4px; flex-shrink:0; }
.notif-title { font-size:11.5px; font-weight:700; color:#0A0A0A; }
.notif-body { font-size:10.5px; color:#4A4A4A; margin-top:2px; line-height:1.35; }
.notif-time { font-size:9.5px; color:#8A8A8A; margin-top:4px; }
.subtabs { display:flex; gap:4px; border-bottom:1.5px solid #E7E7E7; margin-bottom:18px; }
.subtab { padding:10px 16px; font-size:12px; font-weight:700; color:#8A8A8A; border-bottom:3px solid transparent; margin-bottom:-1.5px; }
.subtab.active { color:#0A0A0A; border-bottom-color:#E8CE1E; }
.subtab .cnt { display:inline-block; margin-left:6px; font-size:9.5px; background:#F0F0F0; color:#4A4A4A; border-radius:9px; padding:1px 7px; }
.subtab.active .cnt { background:#0A0A0A; color:#E8CE1E; }
.achips { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px; }
.achip { font-size:10.5px; font-weight:700; border:1px solid #E7E7E7; border-radius:14px; padding:4px 10px; color:#1C1C1C; background:#fff; }
.achip.on { background:#0A0A0A; color:#E8CE1E; border-color:#0A0A0A; }
.seg { display:flex; border:1px solid #E7E7E7; border-radius:8px; overflow:hidden; margin-bottom:14px; }
.seg div { flex:1; text-align:center; font-size:11px; font-weight:700; padding:9px 4px; color:#4A4A4A; border-right:1px solid #E7E7E7; }
.seg div:last-child { border-right:none; }
.seg div.on { background:#E8CE1E; color:#0A0A0A; }
.mv { display:inline-block; font-size:10px; font-weight:700; border-radius:5px; padding:3px 8px; }
.mv-add { background:#E5F3E8; color:#2E7D46; }
.mv-del { background:#FBE7E4; color:#B23B2E; }
.mv-chg { background:#E8EDF7; color:#2C3E66; }
.hist-row { display:flex; justify-content:space-between; font-size:11px; padding:8px 0; border-bottom:1px solid #E7E7E7; color:#1C1C1C; }

/* ---------- app additions ---------- */
body { min-width: 1280px; }
a { color: inherit; text-decoration: none; }
.nav a { cursor: pointer; }
.nav a:hover { filter: brightness(0.96); }
.sidebar { position: sticky; top: 0; height: 100vh; }
.sidebar-foot form { margin: 0; }
.logout { width: 100%; border: none; cursor: pointer; font-family: inherit; }
.main { min-width: 0; }
.content { max-width: 1680px; }
button.btn, a.btn { cursor: pointer; font-family: inherit; display: inline-block; text-decoration: none; line-height: 1.2; }
.btn-sm { padding: 6px 11px; font-size: 11px; }
.btn-green { background: #2E7D46; color: #fff; }
.btn-red { background: #fff; color: #B23B2E; border: 1px solid #E8C3BD; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.linkbtn { background: none; border: none; padding: 0; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.linkbtn.green { color: #2E7D46; } .linkbtn.red { color: #B23B2E; } .linkbtn.gold { color: #B99A0E; } .linkbtn.grey { color: #8A8A8A; }
input.inp, select.inp, textarea.inp { width: 100%; padding: 9px 11px; border-radius: 7px; border: 1px solid #E7E7E7; font-size: 12px;
  color: #1C1C1C; background: #fff; font-family: inherit; }
textarea.inp { min-height: 70px; }
input.inp:focus, select.inp:focus, textarea.inp:focus { outline: 2px solid #E8CE1E; border-color: #E8CE1E; }
.val { width: 110px; padding: 6px 8px; border-radius: 6px; border: 1px solid #E7E7E7; font-size: 11.5px; font-family: inherit; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.form-grid .full { grid-column: 1 / -1; }
.lbl { font-size: 10.5px; font-weight: 700; color: #1C1C1C; margin-bottom: 5px; display: block; }
.hint { font-size: 10px; color: #8A8A8A; margin-top: 4px; }
.filter-grid .ff-box { padding: 0; border: none; }
.filter-grid select, .filter-grid input { width: 100%; padding: 8px 10px; border-radius: 7px; border: 1px solid #E7E7E7; font-size: 11.5px; background: #fff; font-family: inherit; }
.flash { padding: 11px 14px; border-radius: 8px; font-size: 12px; margin-bottom: 14px; font-weight: 700; }
.flash.ok { background: #E5F3E8; color: #1F5E33; } .flash.error { background: #FBE7E4; color: #8E2B20; } .flash.warn { background: #FDF1D6; color: #6B5410; }
.tabs a.tab { text-decoration: none; }
.subtabs a.subtab { text-decoration: none; }
.dl-sub.good { color: #2E7D46; } .dl-sub.bad { color: #B23B2E; } .dl-sub.warn { color: #9A7A12; } .dl-sub.muted { color: #8A8A8A; }
.pill-submitted { background: #FDF1D6; color: #9A7A12; }
.pill-overdue_approval { background: #B23B2E; color: #fff; }
.pill-issued { background: #E5F3E8; color: #2E7D46; } .pill-awaiting_signoff { background: #FDF1D6; color: #9A7A12; }
.pill-open { background: #FDF1D6; color: #9A7A12; } .pill-in_progress { background: #E8EDF7; color: #2C3E66; }
.pill-resolved, .pill-closed { background: #E5F3E8; color: #2E7D46; } .pill-retired { background: #EFEFEF; color: #5A5A5A; }
.pill-reminder { background: #FDF1D6; color: #9A7A12; } .pill-breach { background: #FBE7E4; color: #B23B2E; } .pill-cycle { background: #EFEFEF; color: #5A5A5A; }
.pager { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin-top: 12px; font-size: 11px; color: #8A8A8A; }
.pager a { padding: 5px 10px; border: 1px solid #E7E7E7; border-radius: 6px; background: #fff; color: #1C1C1C; font-weight: 700; }
.empty { padding: 28px; text-align: center; color: #8A8A8A; font-size: 12px; }
tr.sel td { background: #FBF6DD; }
tr.row-overdue td { background: #FDF3F1; }
.chk { width: 15px; height: 15px; accent-color: #0A0A0A; }
details.notif-dd { position: relative; }
details.notif-dd > summary { list-style: none; cursor: pointer; }
details.notif-dd > summary::-webkit-details-marker { display: none; }
details.notif-dd .notif { top: 46px; right: -60px; }
.notif-foot { padding: 10px 16px; text-align: center; font-size: 11px; font-weight: 700; }
.kpi .kpi-value.sm { font-size: 20px; }
.chart svg text { font-family: 'Calibri', 'Segoe UI', Arial, sans-serif; }
.two-col { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; }
.two-col-eq { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.three-col { display: grid; grid-template-columns: 1fr 1fr 0.8fr; gap: 16px; }
.mt16 { margin-top: 16px; } .mb16 { margin-bottom: 16px; } .mb8 { margin-bottom: 8px; }
.muted { color: #8A8A8A; } .small { font-size: 10.5px; } .bold { font-weight: 700; } .right { text-align: right; }
.target-ok { color: #2E7D46; font-weight: 700; } .target-bad { color: #B23B2E; font-weight: 700; }
.report-doc h2 { font-family: Cambria, serif; font-size: 16px; margin: 22px 0 10px 0; }
.report-doc h1 { font-family: Cambria, serif; font-size: 22px; }
.report-doc table td, .report-doc table th { font-size: 11.5px; }
.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #FAFAFA 0%, #F3EFDD 100%); }
.login-card { width: 420px; background: #fff; border: 1px solid #E7E7E7; border-radius: 16px; padding: 44px 40px; box-shadow: 0 18px 40px rgba(0,0,0,0.08); }
.login-badge { width: 56px; height: 56px; border-radius: 12px; background: #0A0A0A; color: #E8CE1E; display: flex; align-items: center; justify-content: center; font-family: Cambria, serif; font-weight: 700; font-size: 22px; margin: 0 auto 18px auto; }
.login-title { text-align: center; font-family: Cambria, serif; font-size: 21px; font-weight: 700; color: #0A0A0A; }
.login-sub { text-align: center; font-size: 11.5px; color: #8A8A8A; margin-top: 6px; margin-bottom: 26px; }
.login-btn { width: 100%; padding: 13px; border-radius: 8px; background: #E8CE1E; color: #0A0A0A; font-weight: 700; font-size: 13px; border: none; margin-top: 6px; cursor: pointer; }
.demo-users { margin-top: 20px; font-size: 10.5px; color: #4A4A4A; background: #FAFAFA; border: 1px dashed #E7E7E7; border-radius: 8px; padding: 10px 12px; line-height: 1.6; }
@media print {
  .sidebar, .topbar, .no-print, .tabs, .flash { display: none !important; }
  body { min-width: 0; background: #fff; }
  .content { padding: 0; }
  .card { border: none; padding: 0; }
}
