/*
 * DA RFO 10 Document & Procurement Tracking System — Modern v2 Theme
 * Visual baseline: approved 25 Sep 2026 mockup.
 */
:root {
  --dt2-forest-950: #04342c;
  --dt2-forest-900: #06483b;
  --dt2-forest-800: #075b49;
  --dt2-forest-700: #087359;
  --dt2-green-600: #079b69;
  --dt2-green-500: #0aa875;
  --dt2-green-100: #e7f7f0;
  --dt2-green-050: #f4fbf8;
  --dt2-blue-600: #168bd2;
  --dt2-blue-100: #e9f5fd;
  --dt2-orange-500: #f4a11a;
  --dt2-orange-100: #fff4df;
  --dt2-red-500: #ed4f60;
  --dt2-red-100: #fdebed;
  --dt2-slate-950: #132720;
  --dt2-slate-800: #2c3f38;
  --dt2-slate-600: #66766f;
  --dt2-slate-500: #7f8e88;
  --dt2-border: #dce6e2;
  --dt2-border-soft: #e9efec;
  --dt2-bg: #f3f7fa;
  --dt2-card: #ffffff;
  --dt2-sidebar-w: 250px;
  --dt2-topbar-h: 68px;
  --dt2-radius: 14px;
  --dt2-radius-sm: 10px;
  --dt2-shadow: 0 8px 28px rgba(14, 58, 45, .07);
  --dt2-shadow-sm: 0 3px 12px rgba(14, 58, 45, .06);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--dt2-bg) !important;
  color: var(--dt2-slate-950);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}
a { transition: color .16s ease, background-color .16s ease, border-color .16s ease, opacity .16s ease; }

/* Hide legacy Bracket shell when v2 shell is present. */
.br-logo, .br-sideleft, .br-header { display: none !important; }
.page { margin: 0 !important; padding: 0 !important; }
.page main.cf { min-height: 100vh; }

/* ---------- Application shell ---------- */
.dt2-shell { min-height: 100vh; }
.dt2-sidebar {
  position: fixed;
  z-index: 1040;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--dt2-sidebar-w);
  display: flex;
  flex-direction: column;
  color: #fff;
  background:
    radial-gradient(circle at 15% -10%, rgba(255,255,255,.10), transparent 28%),
    linear-gradient(180deg, var(--dt2-forest-900) 0%, var(--dt2-forest-950) 100%);
  box-shadow: 5px 0 18px rgba(5, 48, 39, .12);
  overflow-y: auto;
}
.dt2-brand {
  min-height: 104px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.dt2-brand img {
  width: 49px;
  height: 49px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 3px;
}
.dt2-brand-title { font-size: 18px; line-height: 1.05; font-weight: 800; letter-spacing: .2px; }
.dt2-brand-sub { margin-top: 5px; font-size: 10px; line-height: 1.3; color: rgba(255,255,255,.67); }
.dt2-nav { padding: 14px 10px 24px; flex: 1; }
.dt2-nav-label {
  padding: 15px 11px 7px;
  color: rgba(255,255,255,.42);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.dt2-nav-link,
.dt2-nav-group-title {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  color: rgba(255,255,255,.82) !important;
  text-decoration: none !important;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}
.dt2-nav-link i, .dt2-nav-group-title i { width: 18px; text-align: center; font-size: 15px; opacity: .92; }
.dt2-nav-link:hover, .dt2-nav-link:focus,
.dt2-nav-link.active,
.dt2-nav-group-title:hover {
  color: #fff !important;
  background: rgba(20, 190, 131, .20);
}
.dt2-nav-link.active { background: linear-gradient(90deg, #079a6a, #07895f); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.dt2-nav-sub { padding: 2px 0 5px 13px; }
.dt2-nav-sub .dt2-nav-link { min-height: 34px; padding: 7px 10px 7px 22px; font-size: 12px; color: rgba(255,255,255,.68) !important; position: relative; }
.dt2-nav-sub .dt2-nav-link::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.35); position: absolute; left: 8px; }
.dt2-nav-admin {
  margin: 8px 4px 0;
  padding-top: 7px;
  border-top: 1px solid rgba(255,255,255,.09);
}
.dt2-sidebar-footer { padding: 15px 19px 18px; border-top: 1px solid rgba(255,255,255,.09); color: rgba(255,255,255,.50); font-size: 10px; }

.dt2-topbar {
  position: fixed;
  z-index: 1030;
  top: 0;
  right: 0;
  left: var(--dt2-sidebar-w);
  height: var(--dt2-topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 24px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--dt2-border);
  box-shadow: 0 2px 10px rgba(18, 51, 41, .035);
  backdrop-filter: blur(8px);
}
.dt2-top-left, .dt2-top-right { display: flex; align-items: center; gap: 13px; min-width: 0; }
.dt2-menu-btn {
  width: 36px; height: 36px; border: 0; border-radius: 9px; background: #f1f6f4; color: var(--dt2-forest-800); cursor: pointer;
}
.dt2-global-search { position: relative; width: min(520px, 42vw); }
.dt2-global-search i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #8c9a95; font-size: 12px; }
.dt2-global-search input {
  width: 100%; height: 38px; padding: 0 14px 0 36px; border: 1px solid #dce6e2; border-radius: 9px; background: #f7faf9; color: #30433c; font-size: 12px; outline: 0;
}
.dt2-global-search input:focus { border-color: #85cdb2; background: #fff; box-shadow: 0 0 0 3px rgba(7,155,105,.08); }
.dt2-notify { width: 35px; height: 35px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #f5f8f7; color: #4b6158; position: relative; }
.dt2-notify-badge { position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; line-height: 16px; text-align: center; border-radius: 8px; background: var(--dt2-red-500); color: #fff; font-size: 9px; font-weight: 800; }
.dt2-user-menu { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dt2-avatar { width: 35px; height: 35px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0f78c7, #1459b8); color: #fff; font-size: 11px; font-weight: 800; flex: 0 0 auto; }
.dt2-user-copy { line-height: 1.2; max-width: 220px; }
.dt2-user-name { color: #263a32; font-size: 12px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt2-user-role { margin-top: 2px; color: #819089; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt2-logout { margin-left: 3px; color: #789086; font-size: 15px; }
.dt2-logout:hover { color: var(--dt2-red-500); }

.dt2-main {
  min-height: 100vh;
  margin-left: var(--dt2-sidebar-w);
  padding-top: var(--dt2-topbar-h);
  background: var(--dt2-bg);
}
.dt2-main > .ng-scope { min-height: calc(100vh - var(--dt2-topbar-h)); }
.br-mainpanel { margin-left: 0 !important; width: auto !important; min-height: 0 !important; }

/* ---------- Shared page primitives ---------- */
.dt2-page { padding: 24px 28px 44px; max-width: 1700px; margin: 0 auto; }
.dt2-page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 18px; }
.dt2-page-kicker { margin: 0 0 4px; color: var(--dt2-green-600); font-size: 10px; font-weight: 800; letter-spacing: .10em; text-transform: uppercase; }
.dt2-page-title { margin: 0; color: #172b24; font-size: 25px; line-height: 1.15; font-weight: 800; }
.dt2-page-subtitle { margin: 6px 0 0; color: var(--dt2-slate-600); font-size: 12px; }
.dt2-head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.dt2-card { background: #fff; border: 1px solid var(--dt2-border); border-radius: var(--dt2-radius); box-shadow: var(--dt2-shadow-sm); }
.dt2-card-head { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--dt2-border-soft); }
.dt2-card-title { margin: 0; color: #21362e; font-size: 13px; font-weight: 800; }
.dt2-card-sub { color: var(--dt2-slate-500); font-size: 10px; margin-top: 2px; }
.dt2-card-body { padding: 17px; }
.dt2-grid { display: grid; gap: 14px; }
.dt2-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.dt2-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.dt2-grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.dt2-span-2 { grid-column: span 2; }
.dt2-span-3 { grid-column: span 3; }
.dt2-span-4 { grid-column: span 4; }

.dt2-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 7px 13px; border: 1px solid transparent; border-radius: 9px; font-size: 11px; line-height: 1; font-weight: 750; text-decoration: none !important; cursor: pointer; box-shadow: none;
}
.dt2-btn-sm { min-height: 31px; padding: 6px 9px; font-size: 10px; border-radius: 7px; }
.dt2-btn-primary { color: #fff !important; background: linear-gradient(135deg, #079b69, #07845b); border-color: #07845b; }
.dt2-btn-primary:hover { background: #087a57; }
.dt2-btn-blue { color:#fff !important; background: var(--dt2-blue-600); border-color: var(--dt2-blue-600); }
.dt2-btn-orange { color:#fff !important; background: var(--dt2-orange-500); border-color: var(--dt2-orange-500); }
.dt2-btn-danger { color:#fff !important; background: var(--dt2-red-500); border-color: var(--dt2-red-500); }
.dt2-btn-light { color: #365149 !important; background: #fff; border-color: #d8e3df; }
.dt2-btn-light:hover { background: #f5f9f7; }
.dt2-btn-ghost { color: #4d6b61 !important; background: #f4f8f6; border-color: transparent; }
.dt2-btn[disabled], .dt2-btn.disabled { opacity: .55; cursor: not-allowed; }

.dt2-field { margin-bottom: 13px; }
.dt2-label { display: block; margin: 0 0 6px; color: #31463f; font-size: 10px; font-weight: 800; }
.dt2-required::after { content: ' *'; color: var(--dt2-red-500); }
.dt2-control,
.dt2-card .form-control {
  width: 100%; min-height: 39px; padding: 8px 11px; border: 1px solid #cfdcd7; border-radius: 8px; background: #fff; color: #31433d; font-size: 11px; box-shadow: none !important; outline: 0;
}
textarea.dt2-control, .dt2-card textarea.form-control { min-height: 78px; resize: vertical; }
.dt2-control:focus, .dt2-card .form-control:focus { border-color: #6bc2a2; box-shadow: 0 0 0 3px rgba(7,155,105,.08) !important; }
.dt2-control[disabled], .dt2-card .form-control[disabled] { background: #f1f4f3; color: #6d7d77; }
.dt2-help { margin-top: 5px; color: #85928d; font-size: 9px; }
.dt2-inline-add { display:flex; gap:7px; margin-top:7px; }
.dt2-form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 9px; padding-top: 6px; }

.dt2-alert { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 13px; padding: 10px 12px; border-radius: 9px; font-size: 11px; border: 1px solid; }
.dt2-alert-success { color:#176b4c; background:#eaf8f1; border-color:#bfe7d4; }
.dt2-alert-error { color:#a63e48; background:#fdf0f1; border-color:#f5c8cd; }
.dt2-alert-info { color:#286a96; background:#edf7fd; border-color:#c7e5f7; }

/* ---------- Dashboard ---------- */
.dt2-hero {
  position: relative; overflow: hidden; min-height: 190px; margin-bottom: 16px; border-radius: 16px; color: #fff; padding: 27px 30px;
  background:
    radial-gradient(circle at 82% 13%, rgba(255,255,255,.20), transparent 16%),
    radial-gradient(circle at 65% 110%, rgba(238,174,42,.45), transparent 26%),
    linear-gradient(120deg, #086849 0%, #0b8a61 52%, #16845e 100%);
  box-shadow: var(--dt2-shadow);
}
.dt2-hero::before,
.dt2-hero::after { content:''; position:absolute; border-radius:50%; opacity:.18; background:#fff; }
.dt2-hero::before { width:420px;height:120px;right:-100px;bottom:-65px; transform:rotate(-8deg); }
.dt2-hero::after { width:290px;height:80px;right:140px;bottom:-55px; background:#ffb728; opacity:.75; transform:rotate(-7deg); }
.dt2-hero-content { position: relative; z-index: 2; max-width: 760px; }
.dt2-hero-kicker { font-size: 12px; font-weight: 700; opacity:.85; }
.dt2-hero h1 { margin: 5px 0 6px; font-size: 35px; line-height: 1.03; font-weight: 850; letter-spacing: -.7px; }
.dt2-hero h2 { margin:0; font-size: 18px; line-height:1.25; font-weight:700; opacity:.96; }
.dt2-hero p { max-width: 650px; margin: 12px 0 0; color: rgba(255,255,255,.82); font-size: 11px; line-height: 1.55; }
.dt2-hero-logo { position:absolute; z-index:2; right:28px; top:24px; width:72px; height:72px; object-fit:contain; border-radius:50%; background:#fff; padding:6px; box-shadow:0 6px 18px rgba(0,0,0,.14); }
.dt2-metrics { display:grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap:13px; margin-bottom:14px; }
.dt2-metric { display:flex; align-items:center; gap:12px; min-height:92px; padding:14px; background:#fff; border:1px solid var(--dt2-border); border-radius:12px; box-shadow:var(--dt2-shadow-sm); }
.dt2-metric-icon { width:42px;height:42px;flex:0 0 auto;border-radius:10px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:16px; }
.dt2-metric.green .dt2-metric-icon { background:#0b986a; }
.dt2-metric.blue .dt2-metric-icon { background:#218dd0; }
.dt2-metric.orange .dt2-metric-icon { background:#f3a11b; }
.dt2-metric.red .dt2-metric-icon { background:#ee5361; }
.dt2-metric-label { color:#667870; font-size:10px; }
.dt2-metric-value { margin-top:1px; color:#172d24; font-size:24px; font-weight:850; line-height:1; }
.dt2-metric-trend { margin-top:6px; color:#7c8c86; font-size:8px; }
.dt2-dashboard-lower { display:grid; grid-template-columns: minmax(320px,.9fr) minmax(0,1.4fr); gap:14px; }
.dt2-donut-wrap { display:flex; align-items:center; justify-content:center; min-height:250px; }
.dt2-donut { width:180px !important; height:180px !important; }

/* ---------- Tables ---------- */
.dt2-table-wrap { width:100%; overflow:auto; }
.dt2-table { width:100%; border-collapse:separate; border-spacing:0; margin:0; font-size:10px; }
.dt2-table th { padding:10px 10px; background:#f5f8f7; color:#53665e; border-bottom:1px solid var(--dt2-border); font-size:9px; font-weight:800; text-align:left; text-transform:uppercase; letter-spacing:.025em; white-space:nowrap; }
.dt2-table td { padding:10px; color:#34483f; border-bottom:1px solid #edf1ef; vertical-align:middle; }
.dt2-table tr:last-child td { border-bottom:0; }
.dt2-table tbody tr:hover td { background:#fbfdfc; }
.dt2-table-actions { display:flex; gap:5px; align-items:center; white-space:nowrap; }
.dt2-status { display:inline-flex; align-items:center; min-height:22px; padding:3px 8px; border-radius:999px; font-size:8px; font-weight:800; white-space:nowrap; }
.dt2-status-green { color:#15704e; background:#ddf5e9; }
.dt2-status-blue { color:#2673a6; background:#e3f2fc; }
.dt2-status-orange { color:#a16c13; background:#fff0d3; }
.dt2-status-red { color:#ac414c; background:#fde6e8; }
.dt2-status-gray { color:#64746e; background:#edf1ef; }

.dt2-search-card { margin-bottom:14px; }
.dt2-search-row { display:grid; grid-template-columns:minmax(260px,1.4fr) 120px 120px 180px 160px auto; gap:9px; align-items:end; }
.dt2-search-main { position:relative; }
.dt2-search-main i { position:absolute; left:12px; top:50%; transform:translateY(-50%); color:#82918b; font-size:11px; }
.dt2-search-main input { padding-left:33px; }
.dt2-result-meta { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 14px; border-top:1px solid var(--dt2-border-soft); color:#75857e; font-size:9px; }
.dt2-pagination { display:flex; align-items:center; gap:4px; }
.dt2-page-btn { min-width:29px; height:29px; border:1px solid #d8e3df; border-radius:7px; background:#fff; color:#5c7067; font-size:9px; font-weight:700; cursor:pointer; }
.dt2-page-btn.active { color:#fff; background:#078b61; border-color:#078b61; }
.dt2-empty { padding:38px 18px; text-align:center; color:#7f8f88; }
.dt2-empty i { width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#eef6f2;color:#168661;font-size:18px;margin-bottom:10px; }

/* ---------- Document / procurement forms ---------- */
.dt2-form-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:14px; align-items:start; }
.dt2-form-main .dt2-card-body { padding:18px; }
.dt2-form-grid { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:0 14px; }
.dt2-col-3 { grid-column:span 3; }
.dt2-col-4 { grid-column:span 4; }
.dt2-col-6 { grid-column:span 6; }
.dt2-col-8 { grid-column:span 8; }
.dt2-col-9 { grid-column:span 9; }
.dt2-col-12 { grid-column:span 12; }
.dt2-side-card { margin-bottom:14px; }
.dt2-dropzone { min-height:128px; padding:18px; border:1.5px dashed #c8d9d2; border-radius:10px; background:#f9fcfb; text-align:center; color:#74867f; cursor:pointer; }
.dt2-dropzone i { display:block; margin-bottom:7px; color:#168bd2; font-size:25px; }
.dt2-dropzone strong { display:block; color:#466158; font-size:11px; }
.dt2-dropzone small { display:block; margin-top:5px; font-size:8px; }
.dt2-file-list { display:flex; flex-direction:column; gap:7px; margin-top:10px; }
.dt2-file-item { display:flex; align-items:center; gap:8px; padding:7px 8px; border:1px solid #e3ebe7; border-radius:8px; background:#fff; min-width:0; }
.dt2-file-icon { width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:7px;background:#f2f6f4;color:#e04d59;flex:0 0 auto; }
.dt2-file-copy { min-width:0; flex:1; }
.dt2-file-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#3e524a; font-size:9px; font-weight:700; }
.dt2-file-meta { margin-top:2px;color:#8b9793;font-size:8px; }
.dt2-qr-placeholder { min-height:205px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; text-align:center; color:#7b8b84; }
.dt2-qr-placeholder i { font-size:33px; color:#0a8b62; }

/* ---------- Document details ---------- */
.dt2-details-grid { display:grid; grid-template-columns:minmax(0,1.55fr) 290px 360px; gap:14px; align-items:start; }
.dt2-info-list { display:grid; grid-template-columns:150px minmax(0,1fr); gap:7px 12px; margin:0; }
.dt2-info-list dt { margin:0; color:#74857e; font-size:9px; font-weight:700; }
.dt2-info-list dd { margin:0; color:#32463e; font-size:10px; font-weight:600; word-break:break-word; }
.dt2-qr-box { display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:9px;padding:14px; }
#documentQrCode { width:170px; min-height:170px; display:flex; align-items:center; justify-content:center; padding:5px; background:#fff; }
#documentQrCode canvas, #documentQrCode img, #documentQrCode svg { max-width:160px !important; max-height:160px !important; width:160px !important; height:160px !important; }
.dt2-qr-ref { font-size:9px;color:#71837a;word-break:break-all; }
.dt2-timeline { position:relative; padding:3px 0 3px 21px; }
.dt2-timeline::before { content:''; position:absolute; left:7px; top:7px; bottom:7px; width:2px; background:#deebe5; }
.dt2-time-item { position:relative; padding:0 0 18px 4px; }
.dt2-time-item:last-child { padding-bottom:0; }
.dt2-time-dot { position:absolute; left:-21px; top:2px; width:12px;height:12px;border-radius:50%;background:#079b69;border:3px solid #e1f5ed; }
.dt2-time-item:nth-child(2n) .dt2-time-dot { background:#168bd2;border-color:#e3f2fc; }
.dt2-time-title { color:#30463d;font-size:10px;font-weight:800; }
.dt2-time-meta { margin-top:2px;color:#82928b;font-size:8px;line-height:1.45; }
.dt2-details-bottom { display:grid;grid-template-columns:minmax(0,1fr) minmax(480px,1.2fr);gap:14px;margin-top:14px; }
.dt2-viewer-note { padding:8px 14px 12px;color:#8a9692;font-size:8px;text-align:right; }

/* ---------- Admin ---------- */
.dt2-admin-toolbar { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px; }
.dt2-filter-row { display:grid;grid-template-columns:150px 150px minmax(180px,1fr) 180px auto;gap:9px;align-items:end; }
.dt2-modal-backdrop { position:fixed;z-index:2000;inset:0;background:rgba(9,34,27,.50);display:flex;align-items:center;justify-content:center;padding:22px; }
.dt2-modal { width:min(650px,100%);max-height:calc(100vh - 44px);overflow:auto;background:#fff;border-radius:14px;box-shadow:0 24px 70px rgba(0,0,0,.22); }
.dt2-modal-head { display:flex;align-items:center;justify-content:space-between;padding:15px 17px;border-bottom:1px solid var(--dt2-border-soft); }
.dt2-modal-head h3 { margin:0;font-size:15px;color:#20362e; }
.dt2-modal-close { width:31px;height:31px;border:0;border-radius:8px;background:#f3f6f5;color:#5f716a;cursor:pointer; }
.dt2-modal-body { padding:17px; }
.dt2-modal-foot { display:flex;justify-content:flex-end;gap:8px;padding:13px 17px;border-top:1px solid var(--dt2-border-soft);background:#fbfcfb; }

/* ---------- Login ---------- */
.dt2-login-shell { min-height:100vh; display:grid; grid-template-columns:minmax(0,1.06fr) minmax(420px,.94fr); background:#fff; }
.dt2-login-visual { position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh;padding:42px 50px;color:#fff;
  background:
    radial-gradient(circle at 75% 14%, rgba(255,255,255,.18), transparent 15%),
    radial-gradient(circle at 38% 78%, rgba(252,190,48,.24), transparent 30%),
    linear-gradient(145deg,#075b49 0%,#08765a 50%,#0c8c66 100%);
}
.dt2-login-visual::before { content:'';position:absolute;inset:auto -12% -18% -8%;height:45%;border-radius:50% 50% 0 0;background:linear-gradient(180deg,rgba(8,67,52,.05),rgba(3,43,34,.60));transform:rotate(-4deg); }
.dt2-login-visual::after { content:'';position:absolute;right:-18%;bottom:-19%;width:70%;height:39%;border-radius:50%;background:#f3b21c;opacity:.90;transform:rotate(-10deg);box-shadow:-80px -35px 0 rgba(255,255,255,.16); }
.dt2-login-brand { position:relative;z-index:2;display:flex;align-items:center;gap:16px; }
.dt2-login-brand img { width:76px;height:76px;border-radius:50%;background:#fff;padding:5px; }
.dt2-login-brand h1 { margin:0;font-size:31px;line-height:1.03;font-weight:850; }
.dt2-login-brand p { margin:6px 0 0;color:rgba(255,255,255,.77);font-size:14px; }
.dt2-login-copy { position:relative;z-index:2;max-width:610px;margin-bottom:80px; }
.dt2-login-copy .big { font-size:38px;font-weight:850;line-height:1.06;letter-spacing:-.6px; }
.dt2-login-copy .desc { max-width:540px;margin-top:14px;color:rgba(255,255,255,.80);font-size:13px;line-height:1.55; }
.dt2-login-tagline { position:relative;z-index:2;font-size:13px;font-weight:650;word-spacing:10px;opacity:.88; }
.dt2-login-panel { display:flex;align-items:center;justify-content:center;padding:42px;background:linear-gradient(180deg,#fbfdfc,#f5f9f7); }
.dt2-login-card { width:min(440px,100%);padding:34px;background:#fff;border:1px solid #dfe8e4;border-radius:16px;box-shadow:0 16px 45px rgba(12,62,45,.11); }
.dt2-login-card h2 { margin:0;color:#172e25;font-size:25px;font-weight:850; }
.dt2-login-card > p { margin:7px 0 23px;color:#798a83;font-size:11px; }
.dt2-login-field { position:relative;margin-bottom:13px; }
.dt2-login-field i { position:absolute;left:13px;top:50%;transform:translateY(-50%);color:#71847c;font-size:13px; }
.dt2-login-field input { width:100%;height:43px;padding:0 12px 0 38px;border:1px solid #d3dfda;border-radius:9px;outline:0;font-size:12px; }
.dt2-login-field input:focus { border-color:#65c1a0;box-shadow:0 0 0 3px rgba(7,155,105,.08); }
.dt2-login-options { display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px 0 17px;color:#6c7e77;font-size:10px; }
.dt2-login-options label { margin:0;font-weight:500; }
.dt2-login-submit { width:100%;height:43px;border:0;border-radius:9px;background:linear-gradient(135deg,#079c6a,#07845b);color:#fff;font-size:12px;font-weight:800;cursor:pointer; }
.dt2-login-foot { margin-top:17px;text-align:center;color:#93a09b;font-size:9px; }

/* Legacy helper compatibility */
.dt-page { padding:24px 28px 44px; }
.dt-card { background:#fff;border:1px solid var(--dt2-border);border-radius:var(--dt2-radius);box-shadow:var(--dt2-shadow-sm);overflow:hidden; }
.dt-page-header { display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:18px; }
.dt-page-title { margin:0;font-size:25px;color:#172b24;font-weight:800; }
.dt-page-subtitle { margin:6px 0 0;color:#697a73;font-size:12px; }
.dt-eyebrow { color:#079b69;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.1em; }

/* ---------- Responsive ---------- */
@media (max-width: 1250px) {
  :root { --dt2-sidebar-w: 220px; }
  .dt2-details-grid { grid-template-columns:minmax(0,1.4fr) 260px; }
  .dt2-details-grid > :nth-child(3) { grid-column:1 / -1; }
  .dt2-search-row { grid-template-columns:minmax(260px,1fr) 120px 120px 160px; }
  .dt2-search-row > :nth-last-child(-n+2) { grid-column:span 2; }
}
@media (max-width: 991px) {
  .dt2-sidebar { transform:translateX(-102%);transition:transform .2s ease;box-shadow:10px 0 30px rgba(0,0,0,.18); }
  body.dt2-sidebar-open .dt2-sidebar { transform:translateX(0); }
  .dt2-topbar { left:0;padding:0 15px; }
  .dt2-main { margin-left:0; }
  .dt2-global-search { width:min(420px,45vw); }
  .dt2-user-copy { display:none; }
  .dt2-form-layout { grid-template-columns:1fr; }
  .dt2-side-stack { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px; }
  .dt2-details-grid { grid-template-columns:1fr 280px; }
  .dt2-details-bottom { grid-template-columns:1fr; }
  .dt2-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dt2-dashboard-lower { grid-template-columns:1fr; }
  .dt2-login-shell { grid-template-columns:1fr; }
  .dt2-login-visual { display:none; }
  .dt2-login-panel { min-height:100vh; }
}
@media (max-width: 767px) {
  .dt2-page { padding:18px 13px 34px; }
  .dt2-page-head { flex-direction:column; }
  .dt2-head-actions { justify-content:flex-start; }
  .dt2-topbar { height:62px; }
  .dt2-main { padding-top:62px; }
  .dt2-global-search { display:none; }
  .dt2-metrics { grid-template-columns:1fr; }
  .dt2-hero { padding:23px 20px;min-height:205px; }
  .dt2-hero h1 { font-size:29px; }
  .dt2-hero-logo { width:56px;height:56px;right:17px;top:17px;opacity:.75; }
  .dt2-grid-2,.dt2-grid-3,.dt2-grid-4 { grid-template-columns:1fr; }
  .dt2-form-grid { grid-template-columns:1fr; }
  .dt2-col-3,.dt2-col-4,.dt2-col-6,.dt2-col-8,.dt2-col-9,.dt2-col-12 { grid-column:auto; }
  .dt2-side-stack { grid-template-columns:1fr; }
  .dt2-search-row { grid-template-columns:1fr 1fr; }
  .dt2-search-row > * { grid-column:auto !important; }
  .dt2-search-row > :first-child { grid-column:1 / -1 !important; }
  .dt2-details-grid { grid-template-columns:1fr; }
  .dt2-info-list { grid-template-columns:112px minmax(0,1fr); }
  .dt2-filter-row { grid-template-columns:1fr 1fr; }
  .dt2-filter-row > :nth-child(3) { grid-column:1 / -1; }
  .dt2-login-panel { padding:18px; }
  .dt2-login-card { padding:25px 20px; }
}

/* ---------- Print ---------- */
@media print {
  .dt2-sidebar,.dt2-topbar,.dt2-no-print,.dt2-head-actions { display:none !important; }
  .dt2-main { margin:0 !important;padding:0 !important;background:#fff !important; }
  .dt2-page { max-width:none;padding:0 !important; }
  .dt2-card { box-shadow:none !important;break-inside:avoid; }
  body { background:#fff !important; }
}

/* ================================================================
   Modern v2.1 — reliable SVG icons + visual fidelity + fast dashboard
   ================================================================ */

/* Font-file-free icon rendering. dt2-icons.js injects an inline SVG in every i.fa. */
i.fa.dt2-svg-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  line-height: 1;
  font-family: inherit !important;
  font-style: normal;
  vertical-align: -0.12em;
}
i.fa.dt2-svg-icon::before { content: none !important; display: none !important; }
i.fa.dt2-svg-icon > svg {
  width: 1em;
  height: 1em;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
i.fa.dt2-svg-icon.fa-spin > svg { animation: dt2-svg-spin .85s linear infinite; }
@keyframes dt2-svg-spin { to { transform: rotate(360deg); } }

/* Dashboard hero now uses a bundled local landscape image, so it does not depend on a CDN. */
.dt2-hero {
  background-image:
    linear-gradient(90deg, rgba(5, 62, 49, .80) 0%, rgba(7, 118, 84, .58) 52%, rgba(12, 143, 99, .28) 100%),
    url('../assets/img/custom/bac-procurement.png');
  background-size: cover;
  background-position: center 44%;
}
.dt2-hero-brandmarks {
  position: absolute;
  z-index: 3;
  right: 24px;
  top: 20px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.dt2-hero-seal {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 50%;
  padding: 5px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 6px 18px rgba(0,0,0,.16);
}
.dt2-hero-bp {
  width: 82px;
  height: 68px;
  object-fit: contain;
  padding: 5px 7px;
  border-radius: 12px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 6px 18px rgba(0,0,0,.13);
}

/* CSS-native status donut removes the external Chart.js network dependency. */
.dt2-status-loading {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #7d8e87;
  font-size: 11px;
}
.dt2-status-loading i { font-size: 25px; color: var(--dt2-green-600); }
.dt2-status-overview {
  min-height: 250px;
  display: grid;
  grid-template-columns: 190px minmax(0,1fr);
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.dt2-css-donut {
  width: 176px;
  height: 176px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.025);
}
.dt2-css-donut-hole {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 3px 14px rgba(19, 62, 49, .08);
}
.dt2-css-donut-hole strong { color:#183129; font-size:22px; line-height:1; font-weight:850; }
.dt2-css-donut-hole span { margin-top:5px; color:#75857f; font-size:9px; }
.dt2-status-legend { display:flex; flex-direction:column; gap:10px; min-width:0; }
.dt2-status-legend > div {
  display:grid;
  grid-template-columns: 9px minmax(0,1fr) auto 34px;
  align-items:center;
  gap:7px;
  color:#53675f;
  font-size:9px;
}
.dt2-status-legend .dot { width:8px; height:8px; border-radius:50%; }
.dt2-status-legend .dot.green { background:#079b69; }
.dt2-status-legend .dot.blue { background:#168bd2; }
.dt2-status-legend .dot.orange { background:#f4a11a; }
.dt2-status-legend .dot.gray { background:#d9e4df; }
.dt2-status-legend strong { color:#20382f; font-size:10px; }
.dt2-status-legend small { color:#8a9893; text-align:right; font-size:8px; }

/* Login visual uses the same bundled landscape treatment as the approved mockup. */
.dt2-login-visual {
  background-image:
    linear-gradient(145deg, rgba(4,70,55,.63) 0%, rgba(6,119,84,.42) 54%, rgba(5,92,70,.58) 100%),
    url('../assets/img/custom/bac-procurement.png');
  background-size: cover;
  background-position: center;
}

/* Smaller-screen refinements for the new hero marks and donut. */
@media (max-width: 1100px) {
  .dt2-status-overview { grid-template-columns: 1fr; gap:14px; }
  .dt2-status-legend { width:min(310px,100%); margin:0 auto; }
}
@media (max-width: 760px) {
  .dt2-hero-brandmarks { right:15px; top:14px; gap:7px; }
  .dt2-hero-seal { width:52px; height:52px; }
  .dt2-hero-bp { width:62px; height:52px; }
  .dt2-hero-content { padding-top:58px; }
}

/* ================================================================
   Modern v2.2 — Procurement parity + realtime interactive analytics
   ================================================================ */
.dt2-metric-clickable {
  appearance:none; width:100%; text-align:left; cursor:pointer; font:inherit; outline:0;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.dt2-metric-clickable:hover { transform:translateY(-2px); box-shadow:0 10px 24px rgba(8,70,49,.10); border-color:#b8d8cb; }
.dt2-metric-clickable.selected { border-color:#079b69; box-shadow:0 0 0 2px rgba(7,155,105,.10), 0 10px 24px rgba(8,70,49,.08); }
.dt2-live-dot { display:inline-block; width:6px; height:6px; border-radius:50%; background:#11a36f; box-shadow:0 0 0 3px rgba(17,163,111,.12); margin-right:4px; vertical-align:middle; }
.dt2-live-badge { display:inline-flex; align-items:center; gap:5px; min-height:26px; padding:4px 8px; border:1px solid #cfe7dc; border-radius:999px; background:#eff9f4; color:#287058; font-size:8px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.dt2-live-actions { display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end; }
.dt2-donut-button { border:0; padding:0; cursor:pointer; appearance:none; }
.dt2-interactive-legend { display:flex; flex-direction:column; gap:5px; }
.dt2-interactive-legend > button { display:grid; grid-template-columns:12px minmax(0,1fr) auto auto; gap:7px; align-items:center; width:100%; border:0; border-radius:8px; padding:7px 8px; background:transparent; color:#465b52; text-align:left; cursor:pointer; font:inherit; }
.dt2-interactive-legend > button:hover { background:#f4f9f7; }
.dt2-interactive-legend > button strong { color:#2f473d; font-size:10px; }
.dt2-interactive-legend > button small { color:#8a9892; font-size:8px; min-width:30px; text-align:right; }
.dt2-module-pill { display:inline-flex; align-items:center; min-height:21px; padding:3px 7px; border-radius:999px; font-size:8px; font-weight:800; }
.dt2-module-pill.document { color:#86610f; background:#fff1d5; }
.dt2-module-pill.procurement { color:#216e9f; background:#e5f3fd; }
.dt2-legacy-fields-head { margin:3px 0 12px; padding-top:12px; border-top:1px solid #edf2ef; color:#577168; font-size:9px; font-weight:850; text-transform:uppercase; letter-spacing:.06em; }
#procurementQrCode { width:170px; min-height:170px; display:flex; align-items:center; justify-content:center; padding:5px; background:#fff; }
#procurementQrCode canvas, #procurementQrCode img, #procurementQrCode svg { max-width:160px !important; max-height:160px !important; width:160px !important; height:160px !important; }
.dt2-detail-upload { display:flex; gap:7px; flex-wrap:wrap; margin-top:12px; padding-top:12px; border-top:1px solid #edf2ef; }
.dt2-mini-muted { margin-top:2px; color:#8a9892; font-size:8px; }
.dt2-timeline-item { position:relative; padding:0 0 18px 4px; }
.dt2-timeline-item:last-child { padding-bottom:0; }
.dt2-timeline-dot { position:absolute; left:-21px; top:2px; width:12px; height:12px; border-radius:50%; background:#87958f; border:3px solid #edf1ef; }
.dt2-timeline-dot.dt2-status-green { background:#079b69; border-color:#dff4e9; }
.dt2-timeline-dot.dt2-status-blue { background:#168bd2; border-color:#e1f0fb; }
.dt2-timeline-dot.dt2-status-orange { background:#f4a11a; border-color:#fff0d2; }
.dt2-timeline-item > div > strong { display:block; color:#30463d; font-size:10px; }
.dt2-timeline-item > div > div { margin-top:2px; color:#5e7169; font-size:9px; }
.dt2-timeline-item > div > small { display:block; margin-top:2px; color:#8a9892; font-size:8px; }
@media (max-width:767px) { .dt2-live-actions { justify-content:flex-start; } }
.dt2-live-badge.offline { color:#9a5a24; background:#fff5e7; border-color:#f2d7ad; }
.dt2-live-badge.offline .dt2-live-dot { background:#e4932a; box-shadow:0 0 0 3px rgba(228,147,42,.12); }

/* ================================================================
   Modern v2.5 — login page restyled to closely match approved mockup
   ================================================================ */
.dt2-login-shell.dt2-login-exact {
  position: relative;
  min-height: 100vh;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(6, 68, 56, .20) 0%, rgba(8, 82, 63, .08) 100%),
    url('../assets/img/custom/bac-procurement.png') center center / cover no-repeat;
}
.dt2-login-shell.dt2-login-exact .dt2-login-visual {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(90deg, rgba(6, 65, 54, .58) 0%, rgba(6, 77, 60, .44) 34%, rgba(5, 78, 58, .10) 63%, rgba(4, 72, 56, .00) 100%);
  padding: 52px 0 34px 28px;
  color: #fff;
}
.dt2-login-shell.dt2-login-exact .dt2-login-visual::before {
  content: '';
  position: absolute;
  left: -7%;
  right: 22%;
  bottom: -14%;
  height: 29%;
  background: rgba(1, 56, 43, .78);
  border-radius: 50% 50% 0 0;
  transform: rotate(-4deg);
}
.dt2-login-shell.dt2-login-exact .dt2-login-visual::after {
  content: '';
  position: absolute;
  right: -12%;
  bottom: -16%;
  width: 46%;
  height: 28%;
  background: #e7ad19;
  border-radius: 50%;
  transform: rotate(-10deg);
  box-shadow: -180px -22px 0 14px rgba(28, 154, 110, .38);
}
.dt2-login-shell.dt2-login-exact .dt2-login-brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 430px;
}
.dt2-login-shell.dt2-login-exact .dt2-login-brand img {
  width: 80px;
  height: 80px;
  padding: 3px;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}
.dt2-login-shell.dt2-login-exact .dt2-login-dept {
  margin: 0 0 5px;
  font-size: 11px;
  line-height: 1.1;
  letter-spacing: .04em;
  color: rgba(255,255,255,.94);
}
.dt2-login-shell.dt2-login-exact .dt2-login-brand h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.02em;
}
.dt2-login-shell.dt2-login-exact .dt2-login-brand p {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255,255,255,.96);
}
.dt2-login-shell.dt2-login-exact .dt2-login-copy {
  position: absolute;
  left: 28px;
  bottom: 134px;
  z-index: 2;
  max-width: 360px;
  margin: 0;
}
.dt2-login-shell.dt2-login-exact .dt2-login-copy .big {
  font-size: 31px;
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -.03em;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.16);
}
.dt2-login-shell.dt2-login-exact .dt2-login-copy .desc { display:none; }
.dt2-login-shell.dt2-login-exact .dt2-login-tagline {
  position: absolute;
  left: 28px;
  bottom: 32px;
  z-index: 2;
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.94);
  word-spacing: normal;
}
.dt2-login-shell.dt2-login-exact .dt2-login-tagline span { display:inline-flex; align-items:center; gap:7px; }
.dt2-login-shell.dt2-login-exact .dt2-login-tagline i { font-size: 12px; opacity: .95; }
.dt2-login-shell.dt2-login-exact .dt2-login-panel {
  position: absolute;
  top: 50%;
  right: 26px;
  transform: translateY(-50%);
  width: min(45%, 520px);
  display: block;
  padding: 0;
  background: transparent;
  min-height: auto;
}
.dt2-login-shell.dt2-login-exact .dt2-login-card {
  position: relative;
  width: 100%;
  max-width: 490px;
  margin-left: auto;
  padding: 38px 34px 72px;
  background: rgba(255,255,255,.985);
  border: 1px solid rgba(226,233,229,.95);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(11, 48, 38, .18);
  overflow: hidden;
}
.dt2-login-shell.dt2-login-exact .dt2-login-card::before {
  content: '';
  position: absolute;
  left: -6%;
  bottom: -46px;
  width: 78%;
  height: 92px;
  background: rgba(9, 130, 87, .16);
  border-radius: 50%;
}
.dt2-login-shell.dt2-login-exact .dt2-login-card::after {
  content: '';
  position: absolute;
  right: -8%;
  bottom: -58px;
  width: 56%;
  height: 116px;
  background: #efb523;
  border-radius: 50%;
  box-shadow: -135px -20px 0 10px rgba(8, 125, 88, .92);
}
.dt2-login-shell.dt2-login-exact .dt2-login-card > * { position: relative; z-index: 2; }
.dt2-login-shell.dt2-login-exact .dt2-login-card h2 {
  margin: 0;
  color: #111;
  font-size: 24px;
  font-weight: 800;
}
.dt2-login-shell.dt2-login-exact .dt2-login-card > p {
  margin: 8px 0 18px;
  color: #687a74;
  font-size: 12px;
}
.dt2-login-shell.dt2-login-exact .dt2-login-field { margin-bottom: 14px; }
.dt2-login-shell.dt2-login-exact .dt2-login-field i {
  left: 14px;
  color: #7d8c86;
  font-size: 14px;
}
.dt2-login-shell.dt2-login-exact .dt2-login-field input {
  height: 42px;
  padding: 0 42px 0 40px;
  border: 1px solid #d8e0dd;
  border-radius: 8px;
  background: #fff;
  color: #273430;
  font-size: 12px;
}
.dt2-login-shell.dt2-login-exact .dt2-login-field-password input { padding-right: 40px; }
.dt2-login-shell.dt2-login-exact .dt2-password-toggle {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #7d8c86;
  font-size: 14px;
  padding: 4px;
  line-height: 1;
}
.dt2-login-shell.dt2-login-exact .dt2-login-options {
  margin: 8px 0 18px;
  font-size: 11px;
  color: #667872;
}
.dt2-login-shell.dt2-login-exact .dt2-login-options a { color: #3476b9; text-decoration: underline; }
.dt2-login-shell.dt2-login-exact .dt2-login-submit {
  height: 43px;
  border-radius: 7px;
  background: linear-gradient(180deg, #17915b 0%, #108250 100%);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}
.dt2-login-shell.dt2-login-exact .dt2-login-foot {
  margin-top: 18px;
  text-align: center;
  font-size: 10px;
  color: #8f9d98;
}
@media (max-width: 1100px) {
  .dt2-login-shell.dt2-login-exact .dt2-login-panel { width: min(46%, 470px); right: 18px; }
}
@media (max-width: 920px) {
  .dt2-login-shell.dt2-login-exact {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
  }
  .dt2-login-shell.dt2-login-exact .dt2-login-visual {
    min-height: 350px;
    padding: 24px 18px 110px;
  }
  .dt2-login-shell.dt2-login-exact .dt2-login-copy { left: 18px; bottom: 92px; }
  .dt2-login-shell.dt2-login-exact .dt2-login-copy .big { font-size: 28px; }
  .dt2-login-shell.dt2-login-exact .dt2-login-tagline { left: 18px; bottom: 24px; flex-wrap: wrap; gap: 12px; }
  .dt2-login-shell.dt2-login-exact .dt2-login-panel {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 100%;
    padding: 18px;
    margin-top: -56px;
    z-index: 5;
  }
  .dt2-login-shell.dt2-login-exact .dt2-login-card {
    max-width: 560px;
    margin: 0 auto;
  }
}
@media (max-width: 560px) {
  .dt2-login-shell.dt2-login-exact .dt2-login-brand img { width: 66px; height: 66px; }
  .dt2-login-shell.dt2-login-exact .dt2-login-brand h1 { font-size: 24px; }
  .dt2-login-shell.dt2-login-exact .dt2-login-copy .big { font-size: 24px; }
  .dt2-login-shell.dt2-login-exact .dt2-login-card { padding: 28px 20px 64px; }
}

/* ================================================================
   Modern v2.6 — desktop 110%-equivalent sizing + working global search
   ================================================================ */
/* Make the application's 100% browser view visually equivalent to roughly
   110% browser zoom on common laptop/desktop screens. Chrome/Edge support
   CSS zoom natively and it preserves the responsive layout better than a
   transform-based scale. Mobile/tablet layouts are intentionally excluded. */
@media (min-width: 1100px) {
  body { zoom: 1.10; }
}

/* Sidebar brand without the duplicate seal/logo. */
.dt2-brand.dt2-brand-text-only {
  padding-left: 20px;
  gap: 0;
}
.dt2-brand.dt2-brand-text-only .dt2-brand-title { font-size: 19px; }
.dt2-brand.dt2-brand-text-only .dt2-brand-sub { font-size: 10.5px; }

/* The top global-search icon is now a real submit control. */
.dt2-global-search-btn {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #75877f;
  cursor: pointer;
  z-index: 2;
}
.dt2-global-search-btn:hover,
.dt2-global-search-btn:focus {
  color: #087c59;
  background: #edf7f3;
  outline: none;
}
.dt2-global-search .dt2-global-search-btn + input { padding-left: 42px; }


/* ================================================================
   Modern v2.7 — working desktop sidebar toggle + global search
   ================================================================ */
.dt2-sidebar,
.dt2-topbar,
.dt2-main {
  transition: transform .20s ease, left .20s ease, margin-left .20s ease;
}
.dt2-global-search-btn {
  position: absolute;
  z-index: 2;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 31px;
  height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #82948c;
  cursor: pointer;
  padding: 0;
}
.dt2-global-search-btn:hover,
.dt2-global-search-btn:focus {
  background: #eaf4ef;
  color: #087558;
  outline: 0;
}
.dt2-global-search > i { display:none; }
.dt2-global-search input { padding-left: 39px; }
@media (min-width: 992px) {
  body.dt2-sidebar-collapsed .dt2-sidebar {
    transform: translateX(-102%);
    box-shadow: none;
  }
  body.dt2-sidebar-collapsed .dt2-topbar { left: 0; }
  body.dt2-sidebar-collapsed .dt2-main { margin-left: 0; }
}

/* Modern v2.8 — Super Admin selection management */
.dt2-selection-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.dt2-selection-add { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
.dt2-selection-table-wrap { max-height:380px; overflow:auto; }
@media (max-width: 900px) { .dt2-selection-grid { grid-template-columns:1fr; } }

/* ================================================================
   Modern v2.9 — DataTable-style sorting and pagination
   ================================================================ */
.dt2-sort-head {
  display:inline-flex;
  align-items:center;
  gap:6px;
  width:100%;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  font-weight:800;
  text-align:left;
  text-transform:inherit;
  letter-spacing:inherit;
  cursor:pointer;
  white-space:nowrap;
}
.dt2-sort-head i { color:#84958e; font-size:10px; opacity:.9; }
.dt2-sort-head:hover { color:var(--dt2-green-700,#076c4d); }
.dt2-sort-head:hover i { color:var(--dt2-green-600,#079b69); }
.dt2-datatable-head { gap:14px; flex-wrap:wrap; }
.dt2-datatable-tools { display:flex; align-items:center; gap:12px; flex-wrap:wrap; justify-content:flex-end; }
.dt2-datatable-tools .dt2-search-main { width:min(360px,42vw); }
.dt2-table-length { display:inline-flex; align-items:center; gap:7px; margin:0; color:#657871; font-size:10px; font-weight:600; white-space:nowrap; }
.dt2-table-length .dt2-control { width:78px; min-height:34px; height:34px; padding:4px 8px; }
.dt2-datatable-footer { border-top:1px solid var(--dt2-border-soft,#e7eeeb); background:#fbfdfc; }
.dt2-datatable thead th { user-select:none; }
@media (max-width:760px) {
  .dt2-datatable-tools { width:100%; justify-content:space-between; }
  .dt2-datatable-tools .dt2-search-main { width:100%; }
}


/* Modern v2.10 — clean login card */
.dt2-login-shell.dt2-login-exact .dt2-login-tagline { display:none !important; }
.dt2-login-shell.dt2-login-exact .dt2-login-card::before,
.dt2-login-shell.dt2-login-exact .dt2-login-card::after { display:none !important; content:none !important; box-shadow:none !important; }
.dt2-login-shell.dt2-login-exact .dt2-login-card { padding-bottom:38px; }

/* ================================================================
   Runtime v2.12 — visible idle countdown + single-session diagnostics
   ================================================================ */
.dt2-session-timer {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid #cfe5dc;
  border-radius: 999px;
  background: #f2faf6;
  color: #25644f;
  box-shadow: 0 2px 8px rgba(14, 82, 60, .05);
  white-space: nowrap;
  font-size: 10px;
  pointer-events: none;
}
.dt2-session-timer i { font-size: 12px; }
.dt2-session-timer-label { font-weight: 700; }
.dt2-session-timer strong {
  min-width: 39px;
  color: #114d39;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .03em;
}
.dt2-session-timer.warning {
  border-color: #f0d8a0;
  background: #fff9eb;
  color: #8a6510;
}
.dt2-session-timer.warning strong { color: #7b590b; }
.dt2-session-timer.danger {
  border-color: #f1b8bf;
  background: #fff1f3;
  color: #b43142;
}
.dt2-session-timer.danger strong { color: #a51f32; }
.dt2-session-timer-error {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ef4d61;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
}
@media (max-width: 1180px) {
  .dt2-session-timer { left: 58%; }
  .dt2-session-timer-label { display:none; }
}
@media (max-width: 820px) {
  .dt2-session-timer { position: static; transform:none; margin-left:auto; margin-right:4px; padding:5px 8px; }
  .dt2-session-timer i { display:none; }
}
@media (max-width: 600px) {
  .dt2-session-timer { display:none; }
}

/* Runtime v2.13 — session guard status */
.dt2-session-timer::after {
  content:'';
  width:6px;
  height:6px;
  border-radius:50%;
  background:#13a06e;
  box-shadow:0 0 0 3px rgba(19,160,110,.10);
}
.dt2-session-timer:has(.dt2-session-timer-error)::after { background:#ef4d61; box-shadow:0 0 0 3px rgba(239,77,97,.10); }

/* ================================================================
   Runtime v2.14 — Login greeting + announcements
   ================================================================ */
.dt2-welcome-overlay{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;padding:20px;background:rgba(3,33,25,.48);backdrop-filter:blur(4px)}
.dt2-welcome-modal{position:relative;width:min(560px,94vw);max-height:86vh;overflow:auto;padding:30px;background:#fff;border:1px solid #dce8e3;border-radius:20px;box-shadow:0 24px 70px rgba(3,44,32,.28);text-align:center}
.dt2-welcome-close{position:absolute;right:14px;top:14px;width:34px;height:34px;border:0;border-radius:50%;background:#f1f6f4;color:#50645c;cursor:pointer}
.dt2-welcome-icon{width:58px;height:58px;margin:0 auto 12px;display:grid;place-items:center;border-radius:50%;background:#edf9f4;color:#0a9464;font-size:24px}
.dt2-welcome-kicker{font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#079b69}
.dt2-welcome-modal h2{margin:8px 0 18px;color:#163429;font-size:25px;line-height:1.25}
.dt2-welcome-announcements{display:flex;flex-direction:column;gap:10px;margin:15px 0 20px;text-align:left}
.dt2-welcome-announcement{padding:14px 15px;border:1px solid #dce8e3;border-radius:12px;background:#f8fbfa}
.dt2-welcome-announcement strong{display:block;margin-bottom:5px;color:#17362b;font-size:13px}
.dt2-welcome-announcement p{margin:0;color:#5b6d66;font-size:12px;line-height:1.55;white-space:pre-line}
.dt2-welcome-announcement a{display:inline-block;margin-top:8px;color:#087b5a;font-size:11px;font-weight:700;text-decoration:none}
.dt2-welcome-continue{min-width:140px}
.dt2-announcement-master{display:flex;align-items:center;justify-content:space-between;gap:20px}
.dt2-switch{position:relative;display:inline-block;width:48px;height:26px;flex:0 0 auto}
.dt2-switch input{opacity:0;width:0;height:0}
.dt2-switch span{position:absolute;cursor:pointer;inset:0;background:#cfd9d5;border-radius:999px;transition:.2s}
.dt2-switch span:before{content:'';position:absolute;width:20px;height:20px;left:3px;top:3px;background:#fff;border-radius:50%;box-shadow:0 1px 4px rgba(0,0,0,.18);transition:.2s}
.dt2-switch input:checked+span{background:#079b69}
.dt2-switch input:checked+span:before{transform:translateX(22px)}
.dt2-muted{margin-top:4px;color:#6f8179;font-size:10px;line-height:1.4;white-space:pre-line}
.status-green{background:#dff6eb!important;color:#0a7b55!important}.status-muted{background:#eef2f0!important;color:#6d7b76!important}

/* Runtime v2.15 — Announcements responsive form layout */
.dt2-announcement-compose .dt2-card-body{
  padding:20px;
}
.dt2-announcement-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px 18px;
  width:100%;
}
.dt2-announcement-grid .dt2-field{
  display:block;
  min-width:0;
  margin:0;
}
.dt2-announcement-grid .dt2-field-full{
  grid-column:1 / -1;
}
.dt2-announcement-grid .dt2-label{
  margin-bottom:7px;
}
.dt2-announcement-grid textarea.dt2-control{
  min-height:110px;
  line-height:1.5;
}
.dt2-announcement-actions{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid #edf2f0;
}
.dt2-announcement-master{
  min-height:70px;
}
@media (max-width:760px){
  .dt2-announcement-grid{
    grid-template-columns:1fr;
  }
  .dt2-announcement-grid .dt2-field-full{
    grid-column:auto;
  }
  .dt2-announcement-actions .dt2-btn{
    width:100%;
  }
}

/* ================================================================
   Runtime v2.16 — sidebar brand cleanup + Technical Support module
   ================================================================ */
.dt2-brand,
.dt2-brand:link,
.dt2-brand:visited,
.dt2-brand:hover,
.dt2-brand:focus,
.dt2-brand:active {
  color: #fff !important;
  text-decoration: none !important;
}
.dt2-brand .dt2-brand-title { color:#fff !important; text-decoration:none !important; }
.dt2-brand .dt2-brand-sub { color:rgba(255,255,255,.74) !important; text-decoration:none !important; }

.dt2-support-stats {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,250px));
  gap:14px;
  margin:8px 0 16px;
}
.dt2-support-stat {
  position:relative;
  min-height:116px;
  padding:16px 18px;
  background:#fff;
  border:1px solid var(--dt2-border);
  border-top:4px solid #f0bf00;
  border-radius:12px;
  box-shadow:var(--dt2-shadow-sm);
  overflow:hidden;
}
.dt2-support-stat::after {
  content:'';
  position:absolute;
  width:78px;
  height:78px;
  right:-24px;
  bottom:-24px;
  border-radius:50%;
  background:#fff5c9;
}
.dt2-support-stat-title { display:flex;align-items:center;gap:8px;color:#63736d;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.03em; }
.dt2-support-stat strong { display:block;margin-top:12px;color:#06483b;font-size:28px;line-height:1;font-weight:850; }
.dt2-support-stat > span { display:block;margin-top:8px;color:#6f7f79;font-size:10px; }
.dt2-support-list-card { overflow:hidden; }
.dt2-support-toolbar { display:grid;grid-template-columns:auto minmax(220px,260px) minmax(320px,1fr);gap:14px;align-items:end;padding:16px 18px;border-bottom:1px solid var(--dt2-border-soft); }
.dt2-support-toolbar > label { display:flex;align-items:center;gap:8px;margin:0;color:#24463a;font-size:10px;font-weight:700; }
.dt2-support-small-select { width:76px; }
.dt2-support-status-select { min-width:180px; }
.dt2-support-search { justify-content:flex-end; }
.dt2-support-search .dt2-control { width:min(420px,100%); }
.dt2-support-table td { vertical-align:middle; }
.dt2-support-status { display:inline-flex;align-items:center;justify-content:center;min-height:26px;padding:4px 10px;border-radius:999px;font-size:9px;font-weight:800; }
.dt2-support-status.open { color:#835c00;background:#fff0bd; }
.dt2-support-status.progress { color:#0b6a4d;background:#e4f4ed; }
.dt2-support-status.resolved { color:#107154;background:#dff2e9; }
.dt2-support-detail-modal { width:min(860px,96vw); }
.dt2-support-request-meta { display:flex;flex-wrap:wrap;gap:10px 20px;margin-bottom:16px;padding:11px 13px;border:1px solid #e2ece8;border-radius:10px;background:#f7faf9;color:#5f716a;font-size:10px; }
.dt2-support-edit-grid { display:grid;grid-template-columns:1fr 1fr 190px;gap:12px;margin-bottom:18px; }
.dt2-support-edit-grid .dt2-field-full { grid-column:1 / -1; }
.dt2-support-inline-actions { display:flex;justify-content:flex-end;gap:8px; }
.dt2-support-readonly { margin-bottom:18px;padding:15px;border:1px solid #dfe9e5;border-radius:10px;background:#fbfdfc; }
.dt2-support-readonly h3 { margin:0 0 4px;color:#17382d;font-size:17px; }
.dt2-support-readonly p { margin:12px 0 0;white-space:pre-wrap;color:#385349;line-height:1.55; }
.dt2-support-thread { margin-top:10px;padding-top:16px;border-top:1px solid var(--dt2-border-soft); }
.dt2-support-thread h4 { margin:0 0 12px;color:#18382d;font-size:14px; }
.dt2-support-thread-item { margin-bottom:10px;padding:12px 14px;border-radius:10px;border:1px solid #dce8e3;background:#f7faf9; }
.dt2-support-thread-item.support { margin-left:32px;background:#edf8f3;border-color:#cfe7dc; }
.dt2-support-thread-item > div { display:flex;justify-content:space-between;gap:12px;color:#557068;font-size:9px; }
.dt2-support-thread-item > div strong { color:#17382d;font-size:10px; }
.dt2-support-thread-item p { margin:8px 0 0;white-space:pre-wrap;color:#365148;font-size:11px;line-height:1.5; }
.dt2-support-reply-box { margin-top:16px;padding-top:16px;border-top:1px solid var(--dt2-border-soft); }

@media (max-width: 980px) {
  .dt2-support-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .dt2-support-toolbar { grid-template-columns:1fr 1fr; }
  .dt2-support-search { grid-column:1 / -1;justify-content:flex-start; }
  .dt2-support-search .dt2-control { width:100%; }
  .dt2-support-edit-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width: 680px) {
  .dt2-support-stats { grid-template-columns:1fr; }
  .dt2-support-toolbar { grid-template-columns:1fr; }
  .dt2-support-search { grid-column:auto; }
  .dt2-support-toolbar > label { align-items:flex-start;flex-direction:column; }
  .dt2-support-small-select,.dt2-support-status-select { width:100%; }
  .dt2-support-edit-grid { grid-template-columns:1fr; }
  .dt2-support-edit-grid .dt2-field-full { grid-column:auto; }
  .dt2-support-thread-item.support { margin-left:0; }
}


/* ================================================================
   Runtime v2.18 — robust local image rendering + stale-cache fixes
   ================================================================ */
.dt2-brand,
.dt2-brand:link,
.dt2-brand:visited,
.dt2-brand:hover,
.dt2-brand:focus,
.dt2-brand:active,
.dt2-brand .dt2-brand-title,
.dt2-brand .dt2-brand-sub {
  text-decoration:none !important;
}
.dt2-brand,
.dt2-brand:link,
.dt2-brand:visited,
.dt2-brand:hover,
.dt2-brand:focus,
.dt2-brand:active,
.dt2-brand .dt2-brand-title { color:#fff !important; }
.dt2-brand .dt2-brand-sub { color:rgba(255,255,255,.78) !important; }
.dt2-sidebar-footer { display:none !important; }

/* Use real IMG layers rather than CSS-only background URLs. This is more
   reliable on localhost/live-server and makes missing images immediately visible. */
.dt2-hero {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:#0a6b52 !important;
}
.dt2-hero-bg-image {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 44%;
  z-index:-3;
  display:block;
}
.dt2-hero-overlay {
  position:absolute;
  inset:0;
  z-index:-2;
  background:linear-gradient(90deg,rgba(5,62,49,.80) 0%,rgba(7,118,84,.56) 52%,rgba(12,143,99,.24) 100%);
  pointer-events:none;
}
.dt2-hero::before,
.dt2-hero::after { z-index:-1; }
.dt2-hero-content,
.dt2-hero-brandmarks { position:relative; z-index:2; }

.dt2-login-shell.dt2-login-exact {
  position:relative;
  isolation:isolate;
  background:#0a6b52 !important;
}
.dt2-login-bg-image {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  z-index:-3;
  display:block;
}
.dt2-login-bg-overlay {
  position:absolute;
  inset:0;
  z-index:-2;
  background:linear-gradient(90deg,rgba(5,68,54,.60) 0%,rgba(5,78,61,.40) 38%,rgba(5,78,61,.12) 66%,rgba(5,78,61,.03) 100%);
  pointer-events:none;
}
.dt2-login-shell.dt2-login-exact .dt2-login-visual {
  background:transparent !important;
}
.dt2-login-shell.dt2-login-exact .dt2-login-visual::before,
.dt2-login-shell.dt2-login-exact .dt2-login-visual::after { display:none !important; content:none !important; }

@media (max-width:920px){
  .dt2-login-bg-image { object-position:center center; }
}

/* ===== Authoritative v3 shell overrides (single full-build source) ===== */
html, body { margin:0; min-height:100%; }
body { background:#f3f7f5; color:#1f342c; }

.dt2-brand {
  display:block !important;
  width:100% !important;
  padding:25px 18px 22px !important;
  margin:0 !important;
  border:0 !important;
  border-bottom:1px solid rgba(255,255,255,.10) !important;
  background:transparent !important;
  color:#fff !important;
  text-align:left !important;
  cursor:pointer !important;
  text-decoration:none !important;
  font-family:inherit !important;
}
.dt2-brand:hover,.dt2-brand:focus,.dt2-brand:active { color:#fff !important; text-decoration:none !important; outline:none !important; background:rgba(255,255,255,.025) !important; }
.dt2-brand-title { display:block !important; color:#fff !important; text-decoration:none !important; font-weight:850 !important; font-size:20px !important; line-height:1.1 !important; }
.dt2-brand-sub { display:block !important; margin-top:6px !important; color:rgba(255,255,255,.74) !important; text-decoration:none !important; font-size:11px !important; line-height:1.45 !important; }
.dt2-sidebar-footer { display:none !important; }

.dt2-hero { position:relative !important; overflow:hidden !important; background:#0d6b54 !important; }
.dt2-hero-bg-image { position:absolute !important; inset:0 !important; z-index:0 !important; width:100% !important; height:100% !important; object-fit:cover !important; object-position:center 45% !important; display:block !important; }
.dt2-hero-overlay { position:absolute !important; inset:0 !important; z-index:1 !important; background:linear-gradient(90deg,rgba(2,54,42,.88) 0%,rgba(5,94,69,.60) 50%,rgba(7,126,91,.22) 100%) !important; }
.dt2-hero-content,.dt2-hero-brandmarks { position:relative !important; z-index:2 !important; }

.dt2-login-shell.dt2-login-exact { position:relative !important; min-height:100vh !important; overflow:hidden !important; background:#0b6651 !important; }
.dt2-login-bg-image { position:absolute !important; inset:0 !important; z-index:0 !important; width:100% !important; height:100% !important; object-fit:cover !important; object-position:center !important; display:block !important; }
.dt2-login-bg-overlay { position:absolute !important; inset:0 !important; z-index:1 !important; background:linear-gradient(90deg,rgba(4,68,54,.58) 0%,rgba(4,73,57,.26) 45%,rgba(4,73,57,.06) 100%) !important; }
.dt2-login-shell.dt2-login-exact .dt2-login-visual,.dt2-login-shell.dt2-login-exact .dt2-login-panel { z-index:2 !important; }
.dt2-login-shell.dt2-login-exact .dt2-login-visual { background:transparent !important; }
.dt2-login-shell.dt2-login-exact .dt2-login-visual::before,.dt2-login-shell.dt2-login-exact .dt2-login-visual::after,.dt2-login-shell.dt2-login-exact .dt2-login-card::before,.dt2-login-shell.dt2-login-exact .dt2-login-card::after { display:none !important; content:none !important; }

/* Never render the removed legacy footer, even if an old browser fragment survives. */
body .dt2-sidebar-footer { display:none !important; visibility:hidden !important; height:0 !important; overflow:hidden !important; }


/* ---------- v3.1 image application refresh ---------- */
.dt2-hero.dt2-hero-image-only {
  min-height: 220px;
  padding: 0;
  background: #e8f0ed;
  box-shadow: var(--dt2-shadow);
}
.dt2-hero.dt2-hero-image-only::before,
.dt2-hero.dt2-hero-image-only::after,
.dt2-hero.dt2-hero-image-only .dt2-hero-overlay,
.dt2-hero.dt2-hero-image-only .dt2-hero-content,
.dt2-hero.dt2-hero-image-only .dt2-hero-brandmarks { display:none !important; }
.dt2-hero-banner-image {
  display:block;
  width:100%;
  height:auto;
  min-height:220px;
  object-fit:cover;
  border-radius:16px;
}
.dt2-login-bg-picture {
  position:absolute;
  inset:0;
  display:block;
  z-index:0;
}
.dt2-login-bg-picture .dt2-login-bg-image,
.dt2-login-bg-picture > img.dt2-login-bg-image {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
@media (max-width: 991px) {
  .dt2-hero.dt2-hero-image-only { min-height: 150px; }
  .dt2-hero-banner-image { min-height: 150px; }
}


/* ---------- v3.2 Support analytics + DataTable polish ---------- */
.dt2-support-stat-btn {
  width:100%;
  text-align:left;
  appearance:none;
  cursor:pointer;
  font:inherit;
  outline:0;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.dt2-support-stat-btn:hover { transform:translateY(-2px); box-shadow:0 10px 24px rgba(9,73,54,.10); border-color:#9fcfbd; }
.dt2-support-stat-btn.active { border-color:#079b69; box-shadow:0 0 0 2px rgba(7,155,105,.10), 0 10px 24px rgba(9,73,54,.08); }
.dt2-support-stat-btn.active::before { content:''; position:absolute; inset:0 auto 0 0; width:4px; background:#079b69; border-radius:12px 0 0 12px; }
.dt2-sort-head { display:inline-flex; align-items:center; gap:6px; width:100%; padding:0; border:0; background:transparent; color:inherit; font:inherit; font-weight:800; text-transform:uppercase; letter-spacing:.025em; cursor:pointer; }
.dt2-sort-head span { color:#95a59f; font-size:10px; min-width:10px; }
.dt2-table-footer { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 16px; border-top:1px solid var(--dt2-border-soft); color:#6d7e77; font-size:10px; background:#fbfdfc; }
.dt2-page-btn-wide { min-width:64px; padding:0 10px; }
.dt2-page-btn:disabled { opacity:.45; cursor:not-allowed; background:#f3f6f5; }
.dt2-support-list-card .dt2-table-wrap { overflow-x:auto; }
.dt2-support-list-card .dt2-table { min-width:760px; }
@media (max-width:760px) {
  .dt2-table-footer { align-items:flex-start; flex-direction:column; }
}


/* ---------- v3.3 realtime Support + distinct Reports page ---------- */
.dt2-support-modal-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.dt2-support-modal-title h3{margin:0}.dt2-report-status-list{display:flex;flex-direction:column;gap:8px}.dt2-report-status-list button{display:grid;grid-template-columns:12px minmax(0,1fr) auto 54px;align-items:center;gap:9px;width:100%;border:1px solid #e2ece8;background:#fbfdfc;border-radius:10px;padding:12px 13px;text-align:left;color:#3d534a;cursor:pointer}.dt2-report-status-list button:hover{background:#f3f9f6;border-color:#cde2d9}.dt2-report-status-list .dot{width:9px;height:9px;border-radius:50%}.dt2-report-status-list .green{background:#079b69}.dt2-report-status-list .blue{background:#168bd2}.dt2-report-status-list .orange{background:#f4a11a}.dt2-report-status-list .gray{background:#d9e4df}.dt2-report-status-list strong{color:#183229;font-size:13px}.dt2-report-status-list small{text-align:right;color:#7f8e88;font-size:10px}.dt2-report-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dt2-report-actions .dt2-muted{grid-column:1/-1;margin-top:6px}@media(max-width:760px){.dt2-report-actions{grid-template-columns:1fr}}


/* ---------- v3.6 forced-logout/public-route isolation ---------- */
body.dt2-public-route { overflow-x:hidden; }
.dt2-public-main { min-height:100vh; width:100%; margin:0; padding:0; }
body.dt2-public-route .dt2-sidebar,
body.dt2-public-route .dt2-topbar { display:none !important; }
body.dt2-public-route .dt2-main { margin-left:0 !important; padding-top:0 !important; }

/* ---------- v3.13 secure attachment preview ---------- */
.dt2-file-preview-modal {
  width: min(1180px, 96vw);
  height: min(860px, 92vh);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dt2-file-preview-modal .dt2-modal-head,
.dt2-file-preview-modal .dt2-modal-foot { flex: 0 0 auto; }
.dt2-file-preview-body {
  flex: 1 1 auto;
  min-height: 360px;
  overflow: auto;
  background: #eef4f1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.dt2-preview-frame {
  width: 100%;
  height: 100%;
  min-height: 620px;
  border: 0;
  border-radius: 10px;
  background: #fff;
}
.dt2-preview-image {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 5px 24px rgba(20,47,38,.16);
  background: #fff;
}
.dt2-preview-unsupported {
  max-width: 520px;
  padding: 36px 28px;
  text-align: center;
  color: #53675f;
}
.dt2-preview-unsupported > i { font-size: 42px; color: #8ca19a; }
.dt2-preview-unsupported h4 { margin: 14px 0 7px; color: #20372f; font-size: 17px; }
.dt2-preview-unsupported p { margin: 0; font-size: 12px; line-height: 1.55; }
.dt2-preview-cache-note { margin-right: auto; color: #5b786d; font-size: 10px; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 760px) {
  .dt2-file-preview-modal { width: 100%; height: 96vh; max-height: 96vh; }
  .dt2-preview-frame { min-height: 68vh; }
  .dt2-file-preview-modal .dt2-modal-foot { flex-wrap: wrap; }
}


/* v3.17 — Super Admin global idle-timeout control */
.dt2-session-timer.disabled {
  border-color:#d9e1de;
  background:#f5f7f6;
  color:#687a73;
}
.dt2-session-timer.disabled strong { color:#52645d; min-width:24px; }
.dt2-session-timer.disabled::after {
  background:#9aa9a3;
  box-shadow:0 0 0 3px rgba(128,145,138,.10);
}


/* v3.18 — per-user idle logout preference in the header */
.dt2-session-control {
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  z-index:4;
  display:flex;
  align-items:center;
}
.dt2-session-control .dt2-session-timer {
  position:static;
  left:auto;
  top:auto;
  transform:none;
  pointer-events:auto;
  padding-right:8px;
}
.dt2-session-switch {
  width:34px;
  height:19px;
  margin-left:3px;
}
.dt2-session-switch span:before {
  width:15px;
  height:15px;
  left:2px;
  top:2px;
}
.dt2-session-switch input:checked + span:before { transform:translateX(15px); }
.dt2-session-switch input:disabled + span { opacity:.58; cursor:wait; }
@media (max-width:1180px) {
  .dt2-session-control { left:58%; }
  .dt2-session-control .dt2-session-timer > span:not(.dt2-session-timer-error) { display:none; }
}
@media (max-width:820px) {
  .dt2-session-control { position:static; transform:none; margin-left:auto; margin-right:4px; }
  .dt2-session-control .dt2-session-timer { margin:0; padding:5px 7px; }
  .dt2-session-control .dt2-session-timer > i { display:none; }
}
@media (max-width:600px) {
  .dt2-session-control { display:none; }
}


/* ---------- v3.20 Profile ---------- */
.dt2-profile-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(340px,.65fr);gap:16px;align-items:start}.dt2-profile-card .dt2-card-title{display:flex;align-items:center;gap:8px}.dt2-profile-card .dt2-card-body{padding:20px}.dt2-profile-avatar-row{display:flex;align-items:center;gap:14px;margin-bottom:20px;padding:14px;border:1px solid #e2ece8;border-radius:12px;background:#f8fbfa}.dt2-profile-avatar{width:54px;height:54px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#0b9969;color:#fff;font-size:18px;font-weight:850;box-shadow:0 6px 14px rgba(4,111,78,.15)}.dt2-profile-avatar-row strong{display:block;color:#17342a;font-size:15px}.dt2-profile-avatar-row span{display:block;margin-top:3px;color:#72837c;font-size:11px}.dt2-profile-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.dt2-profile-form-grid .dt2-field:last-child{grid-column:1/-1;max-width:calc(50% - 7px)}.dt2-readonly[disabled],.dt2-readonly[readonly]{background:#f1f5f3!important;color:#64766f!important;cursor:not-allowed}.dt2-field-help{margin-top:5px;color:#82918c;font-size:9px;display:flex;align-items:center;gap:5px}.dt2-profile-actions{margin-top:18px;padding-top:16px;border-top:1px solid #e7efec;display:flex;justify-content:flex-end}.dt2-profile-password-field{margin-bottom:14px}.dt2-password-note{display:flex;gap:9px;align-items:flex-start;margin-top:5px;padding:12px 13px;border-radius:10px;background:#f3f8f6;color:#61756d;font-size:10px;line-height:1.5}.dt2-password-note i{color:#0b9969;margin-top:2px}.dt2-profile-loading{padding:28px;text-align:center;color:#708079}.dt2-required{color:#ef4e5f}@media(max-width:1000px){.dt2-profile-grid{grid-template-columns:1fr}}@media(max-width:680px){.dt2-profile-form-grid{grid-template-columns:1fr}.dt2-profile-form-grid .dt2-field:last-child{grid-column:auto;max-width:none}}
