:root {
  --brand-ink: #172554;
  --brand: #3457d5;
  --brand-strong: #2444bd;
  --brand-soft: #edf2ff;
  --canvas: #f4f6fb;
  --surface: #ffffff;
  --line: #e5e9f2;
  --muted: #77819a;
  --text: #202a44;
  --radius: 16px;
  --shadow: 0 8px 28px rgba(28, 45, 89, .07);
}
html { min-height: 100%; background: var(--canvas); }
body { background: var(--canvas); color: var(--text); font-family: xInter, "Segoe UI", Arial, sans-serif; font-size: 14px; letter-spacing: .005em; }
#app { min-height: 100vh; background: var(--canvas); }
#header.app-header { height: 72px; padding: 0 28px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgba(32,42,68,.035); }
#header .navbar-brand { color: var(--brand-ink); font-size: 17px; font-weight: 700; letter-spacing: -.03em; }
#header .navbar-logo { width: 12px; height: 12px; margin-right: 9px; border-radius: 4px; background: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); }
#header .navbar-user .navbar-link { color: var(--text); font-weight: 600; }
#sidebar.app-sidebar, .app-sidebar-bg { background: #172342 !important; }
#sidebar.app-sidebar { width: 250px; }
#sidebar .app-sidebar-content { padding: 18px 14px; }
#sidebar .menu-profile { margin: 4px 0 24px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; overflow: hidden; }
#sidebar .menu-profile-cover { background: linear-gradient(120deg,#314c9b,#263869); }
#sidebar .menu-profile-info { color: #fff; font-size: 15px; font-weight: 700; }
#sidebar .menu-header { padding: 10px 12px; color: #91a0c6; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
#sidebar .menu-item { margin: 3px 0; }
#sidebar .menu-link { min-height: 44px; padding: 10px 12px; border-radius: 10px; color: #c4cee6; transition: background .18s ease,color .18s ease; }
#sidebar .menu-link:hover { color: #fff; background: rgba(255,255,255,.08); }
#sidebar .menu-item.active > .menu-link { color: #fff; background: #3457d5; box-shadow: 0 6px 16px rgba(13,35,112,.3); }
#sidebar .menu-icon { width: 22px; color: #a8b6da; }
#sidebar .active .menu-icon { color: #fff; }
#content.app-content { min-height: calc(100vh - 72px); padding: 34px clamp(20px,3vw,44px) 52px; }
.page-header { margin: 0 0 22px; color: var(--brand-ink); font-size: clamp(24px,2.2vw,31px); font-weight: 750; letter-spacing: -.045em; }
.page-header small, .page-header .text-muted { color: var(--muted) !important; font-size: 13px; font-weight: 500; letter-spacing: 0; }
.panel, .card, .widget-stats { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.panel { margin-bottom: 22px; overflow: hidden; }
.panel-inverse > .panel-heading, .panel-heading { min-height: 58px; padding: 18px 22px; color: var(--brand-ink); background: #fff; border-bottom: 1px solid var(--line); }
.panel-title { color: var(--brand-ink); font-size: 15px; font-weight: 700; }
.panel-body { padding: 22px; }
.widget-stats { min-height: 142px; margin-bottom: 18px; padding: 23px 22px; color: var(--text) !important; background: #fff !important; transition: transform .18s ease, box-shadow .18s ease; }
a:hover .widget-stats { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(28,45,89,.12); }
.widget-stats .stats-icon { top: 22px; right: 20px; width: 44px; height: 44px; color: var(--brand); background: var(--brand-soft); border-radius: 13px; font-size: 18px; line-height: 44px; text-align: center; opacity: 1; }
.widget-stats .stats-info h4 { max-width: 78%; margin: 0 0 13px; color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .02em; text-transform: uppercase; }
.widget-stats .stats-info p { margin: 0; color: var(--brand-ink); font-size: 27px; font-weight: 750; letter-spacing: -.04em; }
.table-responsive { border-radius: 12px; }
table.dataTable, .table { color: var(--text); border-color: var(--line); }
table.dataTable thead th, .table thead th { padding: 13px 14px; color: #65708b; background: #f7f8fc; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
table.dataTable tbody td, .table tbody td { padding: 13px 14px; border-color: #edf0f6; vertical-align: middle; }
table.dataTable tbody tr:hover, .table tbody tr:hover { background: #f8faff; }
.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper .dataTables_length select, input.form-control, select.form-control, textarea.form-control, .form-select { min-height: 40px; border: 1px solid #dce2ed; border-radius: 9px; color: var(--text); background-color: #fff; box-shadow: none; }
.form-control:focus, .form-select:focus, .dataTables_wrapper .dataTables_filter input:focus { border-color: #8da4f4; box-shadow: 0 0 0 3px rgba(52,87,213,.12); }
.form-label, label { color: #46516c; font-weight: 650; }
.btn { border-radius: 9px; font-weight: 650; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary, .btn-theme { border-color: var(--brand); background: var(--brand); }
.btn-primary:hover, .btn-theme:hover { border-color: var(--brand-strong); background: var(--brand-strong); }
.btn-dark { border-color: var(--brand-ink); background: var(--brand-ink); }
.badge { padding: .45em .7em; border-radius: 999px; font-weight: 650; }
.modal-content { border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 70px rgba(17,29,60,.22); }
.modal-header, .modal-footer { border-color: var(--line); }
#daterange-filter { min-height: 42px; padding: 10px 14px; border-radius: 10px; background: var(--brand-ink); }
#stats-container, #services-container { row-gap: 2px; }
.parsley-errors-list { color: #c43d55; font-size: 12px; }
@media (max-width: 767.98px) {
  #header.app-header { height: 62px; padding: 0 16px; }
  #sidebar.app-sidebar { width: 275px; }
  #content.app-content { padding: 24px 16px 38px; }
  .panel-body { padding: 16px; }
  .widget-stats { min-height: 126px; padding: 18px; }
  .widget-stats .stats-info p { font-size: 23px; }
  .table-responsive { margin-inline: -6px; }
}
body.pace-top { display: grid; min-height: 100vh; place-items: center; padding: 28px; background: radial-gradient(ellipse at top left, #e3eaff 0, transparent 44%), linear-gradient(145deg,#f7f8fc,#edf1fb); }
body.pace-top #app { width: min(100%, 460px); min-height: 0; background: transparent; }
body.pace-top .login-container { width: 100%; overflow: hidden; border: 1px solid rgba(224,230,242,.95); border-radius: 22px; background: #fff; box-shadow: 0 28px 80px rgba(28,45,89,.14); }
body.pace-top .login-header { padding: 30px 32px 24px; border-bottom: 1px solid var(--line); background: #fff; }
body.pace-top .login-header .brand { color: var(--brand-ink); font-size: 20px; font-weight: 750; }
body.pace-top .login-header .brand small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; font-weight: 500; }
body.pace-top .login-header .logo { width: 13px; height: 13px; margin-right: 10px; border-radius: 4px; background: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); }
body.pace-top .login-header .icon { color: var(--brand); }
body.pace-top .login-body { padding: 26px 32px 32px; background: #fff; }
body.pace-top .login-content .form-control { height: 48px; border-radius: 10px; }
body.pace-top .login-buttons .btn { height: 48px; box-shadow: 0 8px 18px rgba(52,87,213,.2); }
@media (max-width: 480px) { body.pace-top { padding: 16px; } body.pace-top .login-header, body.pace-top .login-body { padding-inline: 22px; } }
/* Dashboard card overrides: the legacy theme uses more specific selectors. */
#stats-container .widget.widget-stats { min-height: 148px; padding: 22px 20px !important; border: 1px solid #e4e9f3 !important; border-left: 3px solid #4a68dc !important; border-radius: 15px !important; background: #fff !important; box-shadow: 0 7px 22px rgba(29,45,86,.055) !important; color: #202a44 !important; }
#stats-container .widget.widget-stats .stats-info { position: relative; z-index: 2; }
#stats-container .widget.widget-stats .stats-info h4 { display: block !important; max-width: 78%; margin: 0 0 15px !important; color: #75809a !important; font-size: 11px !important; font-weight: 700 !important; letter-spacing: .055em; line-height: 1.45; opacity: 1 !important; text-transform: uppercase; visibility: visible !important; }
#stats-container .widget.widget-stats .stats-info p { margin: 0 !important; color: #1d2b51 !important; font-size: 27px !important; font-weight: 750 !important; letter-spacing: -.035em; line-height: 1.15; }
#stats-container .widget.widget-stats .stats-icon { top: 20px !important; right: 18px !important; width: 42px !important; height: 42px !important; margin: 0 !important; border-radius: 12px; background: #edf1ff; color: #4a68dc !important; font-size: 17px !important; line-height: 42px !important; opacity: 1 !important; }
#stats-container a { display: block; height: 100%; color: inherit; text-decoration: none !important; }
#stats-container a:hover .widget.widget-stats { border-color: #d7dff9 !important; border-left-color: #2948bf !important; box-shadow: 0 12px 28px rgba(29,45,86,.11) !important; transform: translateY(-2px); }
#services-container .widget.widget-stats { min-height: 132px; padding: 20px !important; border: 1px solid #e4e9f3 !important; border-radius: 15px !important; background: #fff !important; color: #202a44 !important; }
#services-container .widget.widget-stats .stats-info h4 { color: #75809a !important; opacity: 1 !important; visibility: visible !important; }
#services-container .widget.widget-stats .stats-info p { color: #1d2b51 !important; }
#services-container .widget.widget-stats .stats-icon { color: #4a68dc !important; opacity: 1 !important; }
.app-content > h1.page-header + .d-sm-flex { justify-content: flex-end; }
@media (max-width: 767.98px) {
  #stats-container .widget.widget-stats { min-height: 132px; padding: 18px 16px !important; }
  #stats-container .widget.widget-stats .stats-info h4 { max-width: 75%; font-size: 10px !important; }
  #stats-container .widget.widget-stats .stats-info p { font-size: 23px !important; }
}
.dashboard-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.dashboard-heading .page-header { margin: 0 0 7px !important; }
.dashboard-heading p { margin: 0; color: #7b8499; font-size: 14px; }
.dashboard-toolbar > .d-sm-flex { margin: 0 !important; }
#daterange-filter { display: inline-flex; align-items: center; gap: 8px; min-height: 43px; border: 1px solid #dfe5f0; background: #fff; color: #34415f; box-shadow: 0 3px 12px rgba(29,45,86,.045); }
#daterange-filter i { color: #4a68dc; }
#daterange-filter .caret { border-top-color: #8b94a8; }
@media (max-width: 767.98px) { .dashboard-toolbar { align-items: flex-start; flex-direction: column; gap: 16px; } .dashboard-toolbar > .d-sm-flex { width: 100%; } #daterange-filter { max-width: 100%; } }
#services-container .service-metrics { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 15px; }
#services-container .service-metrics > div { display: grid; gap: 3px; }
#services-container .service-metrics span { color: #828ba0; font-size: 10px; font-weight: 650; letter-spacing: .055em; text-transform: uppercase; }
#services-container .service-metrics strong { color: #25345e; font-size: 17px; font-weight: 750; line-height: 1.2; }
/* Refined list pages: clear panel header, calmer rows, and better filters. */
#content .panel.panel-inverse { overflow: hidden; border: 1px solid #e2e7f0 !important; border-radius: 17px !important; background: #fff !important; box-shadow: 0 12px 34px rgba(25,39,74,.075) !important; }
#content .panel.panel-inverse > .panel-heading { display: flex; min-height: 62px; align-items: center; justify-content: space-between; padding: 16px 22px !important; border-bottom: 1px solid #e8ecf3 !important; background: #f8faff !important; color: #24345d !important; }
#content .panel.panel-inverse > .panel-heading .panel-title { margin: 0; color: #24345d !important; font-size: 14px; font-weight: 750; letter-spacing: .01em; opacity: 1 !important; }
#content .panel-heading-btn .btn { border: 1px solid #e0e6f1; border-radius: 8px; background: #fff !important; color: #63708b !important; }
#content .panel.panel-inverse > .panel-body { padding: 22px !important; background: #fff !important; }
#content #filterForm { margin: 0 0 18px; padding: 15px; border: 1px solid #e8ecf3; border-radius: 12px; background: #f8faff; }
#content #filterForm > .row { display: grid; grid-template-columns: minmax(180px,1.1fr) minmax(180px,1.4fr) minmax(120px,.8fr) minmax(100px,.65fr); gap: 12px; margin: 0; }
#content #filterForm > .row > [class*="col-"] { width: auto; max-width: none; padding: 0; }
#content #filterForm .input-group, #content #filterForm .form-control { height: 42px; }
#content #filterForm .input-group-text { border-color: #dce3ef; background: #fff; color: #4a68dc; }
#content #filterForm .btn { min-height: 42px; white-space: nowrap; }
#content .dataTables_wrapper { color: #6e7890; }
#content .dataTables_wrapper .row { align-items: center; row-gap: 12px; }
#content .dataTables_wrapper .dataTables_length label, #content .dataTables_wrapper .dataTables_filter label { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 13px; color: #78829a; font-size: 12px; font-weight: 550; }
#content .dataTables_wrapper .dataTables_length select { min-width: 70px; margin: 0; }
#content .dataTables_wrapper .dataTables_filter input { width: min(230px, 48vw); margin: 0; padding-inline: 12px; }
#content table.dataTable { width: 100% !important; margin: 0 0 16px !important; border: 0 !important; border-collapse: separate !important; border-spacing: 0; color: #39445e; }
#content table.dataTable thead > tr > th { padding: 13px 14px !important; border: 0 !important; border-bottom: 1px solid #e5eaf2 !important; background: #f3f6fc !important; color: #68748d !important; font-size: 10px !important; font-weight: 750 !important; letter-spacing: .075em; line-height: 1.4; text-transform: uppercase; white-space: nowrap; }
#content table.dataTable tbody > tr > td { padding: 13px 14px !important; border: 0 !important; border-bottom: 1px solid #edf0f5 !important; background: #fff !important; box-shadow: none !important; color: #35415d; font-size: 13px; vertical-align: middle; }
#content table.dataTable.table-striped > tbody > tr:nth-of-type(odd) > *, #content table.dataTable.table-striped > tbody > tr:nth-of-type(even) > * { background: #fff !important; box-shadow: none !important; }
#content table.dataTable tbody > tr:hover > td { background: #f7f9ff !important; }
#content table.dataTable tbody > tr { transition: background-color .18s ease, box-shadow .18s ease; animation: listRowIn .34s ease both; }
#content table.dataTable tbody > tr:nth-child(2) { animation-delay: 35ms; }
#content table.dataTable tbody > tr:nth-child(3) { animation-delay: 70ms; }
#content table.dataTable tbody > tr:nth-child(4) { animation-delay: 105ms; }
#content table.dataTable tbody > tr:nth-child(5) { animation-delay: 140ms; }
#content table.dataTable tbody > tr:nth-child(6) { animation-delay: 175ms; }
#content table.dataTable tbody > tr:nth-child(7) { animation-delay: 210ms; }
#content table.dataTable tbody > tr:nth-child(8) { animation-delay: 245ms; }
#content table.dataTable tbody > tr:nth-child(9) { animation-delay: 280ms; }
#content table.dataTable tbody > tr:nth-child(10) { animation-delay: 315ms; }
#content table.dataTable tbody a:not(.btn) { color: #3457c5 !important; font-weight: 650; text-decoration: none !important; }
#content table.dataTable tbody a:not(.btn):hover { color: #203eaa !important; text-decoration: underline !important; }
#content table.dataTable .dtr-control:before { width: 20px !important; height: 20px !important; border: 1px solid #cfd8eb !important; border-radius: 7px !important; background: #f2f5fc !important; color: #4a68dc !important; box-shadow: none !important; font-size: 14px !important; line-height: 18px !important; }
#content table.dataTable .btn { min-height: 32px; padding: 6px 9px; border-radius: 8px; font-size: 11px; }
#content .dataTables_wrapper .dataTables_info { padding-top: 12px; color: #7b8499; font-size: 12px; }
#content .dataTables_wrapper .dataTables_paginate { padding-top: 4px; }
#content .dataTables_wrapper .dataTables_paginate .paginate_button { min-width: 34px; margin: 0 2px; padding: 7px 10px; border: 1px solid transparent !important; border-radius: 8px !important; color: #626e88 !important; font-size: 12px; }
#content .dataTables_wrapper .dataTables_paginate .paginate_button:hover { border-color: #e0e6f3 !important; background: #f4f6fc !important; color: #30447c !important; }
#content .dataTables_wrapper .dataTables_paginate .paginate_button.current { border-color: #3457d5 !important; background: #3457d5 !important; color: #fff !important; box-shadow: 0 4px 10px rgba(52,87,213,.18); }
#content .total-sum.row { display: flex; gap: 12px; margin: 8px 0 0; padding: 14px 16px; border: 1px solid #e8ecf3; border-radius: 11px; background: #f8faff; }
#content .total-sum.row > div { padding: 0; text-align: left !important; }
#content .total-sum h4 { margin: 0; color: #35415d; font-size: 13px; font-weight: 650; }
#content .total-sum h4 strong, #content .total-sum h4 b { color: #24345d; }
#content .page-header { animation: riseIn .42s cubic-bezier(.2,.75,.25,1) both; }
#stats-container .widget.widget-stats { min-height: 128px; animation: riseIn .42s cubic-bezier(.2,.75,.25,1) both; }
#stats-container .col-xl-4:nth-child(2) .widget-stats { animation-delay: 40ms; }
#stats-container .col-xl-4:nth-child(3) .widget-stats { animation-delay: 80ms; }
#stats-container .col-xl-4:nth-child(4) .widget-stats { animation-delay: 120ms; }
#stats-container .col-xl-4:nth-child(5) .widget-stats { animation-delay: 160ms; }
#stats-container .col-xl-4:nth-child(6) .widget-stats { animation-delay: 200ms; }
#stats-container .col-xl-4:nth-child(7) .widget-stats { animation-delay: 240ms; }
#stats-container .col-xl-4:nth-child(8) .widget-stats { animation-delay: 280ms; }
#stats-container .col-xl-4:nth-child(9) .widget-stats { animation-delay: 320ms; }
#stats-container .col-xl-4:nth-child(10) .widget-stats { animation-delay: 360ms; }
#stats-container .col-xl-4:nth-child(11) .widget-stats { animation-delay: 400ms; }
#stats-container .col-xl-4:nth-child(12) .widget-stats { animation-delay: 440ms; }
@keyframes riseIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes listRowIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 991.98px) { #content #filterForm > .row { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 575.98px) { #content .panel.panel-inverse > .panel-body { padding: 14px !important; } #content #filterForm { padding: 11px; } #content #filterForm > .row { grid-template-columns: 1fr; } #content .dataTables_wrapper .dataTables_filter input { width: min(100%, 220px); } #content .total-sum.row { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
/* Keep list filters aligned across pages with different numbers of fields. */
#content #filterForm > .row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0; }
#content #filterForm > .row > [class*="col-"] { flex: 1 1 150px; width: auto; max-width: none; min-width: 0; padding: 0; }
#content #filterForm > .row > .col-md-3 { flex-basis: 185px; }
#content #filterForm > .row > .col-md-4 { flex-basis: 200px; }
#content #filterForm > .row > .col-md-1 { flex: 0 1 118px; }
#content #filterForm > .row > .col-md-2:has(> button), #content #filterForm > .row > .col-md-2:has(> a.btn) { flex: 0 1 128px; }
#content #filterForm .form-control, #content #filterForm .select2-container { width: 100% !important; }
#content #filterForm .select2-container .select2-selection { min-height: 42px; border-color: #dce3ef; border-radius: 9px; }
#content #filterForm .select2-container .select2-selection__rendered { line-height: 40px; }
#content .dataTables_wrapper .dataTables_scroll { border: 1px solid #e8ecf3; border-radius: 11px; }
#content .dataTables_wrapper .dataTables_scrollHead { border-radius: 11px 11px 0 0; }
#content .dataTables_wrapper .dataTables_scrollBody { border-bottom: 0 !important; }
#content .dataTables_wrapper .dataTables_paginate .paginate_button.disabled { color: #b1b8c7 !important; }
#content .dataTables_wrapper .dataTables_filter input::placeholder, #content input::placeholder { color: #a1a9b9; }
@media (max-width: 767.98px) { #content #filterForm > .row { gap: 9px; } #content #filterForm > .row > [class*="col-"] { flex: 1 1 calc(50% - 9px); } #content #filterForm > .row > .col-md-1, #content #filterForm > .row > .col-md-2:has(> button), #content #filterForm > .row > .col-md-2:has(> a.btn) { flex: 1 1 calc(50% - 9px); } }
/* Contain wide responsive tables inside the content column. */
#content.app-content { overflow-x: hidden; }
#content .dataTables_wrapper { width: 100%; max-width: 100%; overflow-x: auto; overflow-y: visible; scrollbar-color: #c6d0e4 #f1f4f9; scrollbar-width: thin; }
#content .dataTables_wrapper::-webkit-scrollbar { height: 7px; }
#content .dataTables_wrapper::-webkit-scrollbar-track { border-radius: 8px; background: #f1f4f9; }
#content .dataTables_wrapper::-webkit-scrollbar-thumb { border-radius: 8px; background: #c6d0e4; }
#content table.dataTable thead > tr > th { position: sticky; top: 72px; z-index: 3; }
@media (max-width: 767.98px) { #content table.dataTable thead > tr > th { top: 62px; } }
/* Match the widened sidebar so page content never sits underneath it. */
#app.app-sidebar-fixed #content.app-content { margin-left: 250px !important; box-sizing: border-box; }
html, body, #app { max-width: 100%; overflow-x: hidden; }
@media (max-width: 767.98px) { #app.app-sidebar-fixed #content.app-content { margin-left: 0 !important; } }
/* Date-range calendar */
.daterangepicker { z-index: 1085; min-width: 320px; padding: 8px; border: 1px solid #e1e7f1; border-radius: 15px; background: #fff; box-shadow: 0 18px 52px rgba(23,35,66,.18); color: #34415f; font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 13px; line-height: 1.4; animation: pickerPop .16s ease-out both; }
.daterangepicker:before { border-bottom-color: #dfe5ef; }
.daterangepicker:after { border-bottom-color: #fff; }
.daterangepicker.drop-up:before { border-top-color: #dfe5ef; }
.daterangepicker.drop-up:after { border-top-color: #fff; }
.daterangepicker .ranges { min-width: 140px; padding: 5px; }
.daterangepicker .ranges ul { width: 100%; }
.daterangepicker .ranges li { margin: 2px 0; padding: 9px 11px; border-radius: 8px; color: #5b6680; font-size: 12px; font-weight: 600; transition: background-color .16s ease,color .16s ease; }
.daterangepicker .ranges li:hover { background: #f2f5fc; color: #2d427c; }
.daterangepicker .ranges li.active { background: #edf1ff; color: #3457c5; }
.daterangepicker .drp-calendar { max-width: 290px; padding: 8px !important; }
.daterangepicker .calendar-table { overflow: hidden; border: 0; border-radius: 10px; background: #fff; }
.daterangepicker .calendar-table table { border-collapse: separate; border-spacing: 2px; }
.daterangepicker .calendar-table th, .daterangepicker .calendar-table td { min-width: 34px; width: 34px; height: 34px; border: 0; border-radius: 9px; color: #495570; font-size: 12px; line-height: 34px; }
.daterangepicker .calendar-table th { color: #8690a5; font-size: 10px; font-weight: 700; }
.daterangepicker .calendar-table th.month { color: #263658; font-size: 13px; font-weight: 750; }
.daterangepicker .calendar-table .next span, .daterangepicker .calendar-table .prev span { width: 8px; height: 8px; padding: 0; border-color: #64718c; }
.daterangepicker .calendar-table .next:hover, .daterangepicker .calendar-table .prev:hover { border-radius: 8px; background: #f0f3fb; }
.daterangepicker td.available:hover, .daterangepicker th.available:hover { border-radius: 9px; background: #f0f3fb; color: #2945a6; }
.daterangepicker td.in-range { border-radius: 0; background: #eef2ff; color: #334a91; }
.daterangepicker td.start-date, .daterangepicker td.end-date, .daterangepicker td.start-date.end-date, .daterangepicker td.active, .daterangepicker td.active:hover { border-radius: 9px; background: #3457d5; color: #fff; }
.daterangepicker td.start-date { border-radius: 9px 0 0 9px; }
.daterangepicker td.end-date { border-radius: 0 9px 9px 0; }
.daterangepicker td.start-date.end-date { border-radius: 9px; }
.daterangepicker td.off, .daterangepicker td.off.in-range, .daterangepicker td.off.start-date, .daterangepicker td.off.end-date { background: transparent; color: #c1c7d3; }
.daterangepicker td.disabled, .daterangepicker option.disabled { color: #c6ccd7; text-decoration: none; }
.daterangepicker td.today:not(.active):not(.in-range) { box-shadow: inset 0 0 0 1px #8ea2eb; color: #3457c5; font-weight: 700; }
.daterangepicker .drp-buttons { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 8px 5px; border-top: 1px solid #edf0f5; }
.daterangepicker .drp-selected { margin-right: auto; padding: 0; color: #7a8499; font-size: 11px; }
.daterangepicker .drp-buttons .btn { min-height: 34px; margin: 0; padding: 7px 12px; border-radius: 8px; font-size: 11px; }
.daterangepicker .drp-buttons .btn-default { border: 1px solid #e1e6ef; background: #fff; color: #5f6a82; }
.daterangepicker .drp-buttons .btn-primary { border: 1px solid #3457d5; background: #3457d5; color: #fff; }
.daterangepicker .drp-buttons .btn-primary:hover { background: #2948bd; }
@media (max-width: 575.98px) {
  .daterangepicker { position: fixed !important; top: auto !important; left: 10px !important; right: 10px !important; width: auto !important; max-width: none !important; max-height: 82vh; overflow-y: auto; border-radius: 16px; }
  .daterangepicker .ranges { float: none !important; width: auto !important; padding: 0 4px 8px; }
  .daterangepicker .ranges ul { display: flex; flex-wrap: wrap; gap: 4px; }
  .daterangepicker .ranges li { flex: 1 1 auto; margin: 0; text-align: center; }
  .daterangepicker .drp-calendar { float: none !important; clear: both; width: 100%; max-width: none; padding: 4px !important; }
  .daterangepicker .calendar-table th, .daterangepicker .calendar-table td { min-width: 32px; width: 32px; height: 32px; line-height: 32px; }
  .daterangepicker .drp-buttons { position: sticky; bottom: -1px; background: #fff; }
}
/* Single-date picker styles retained for any form that uses the bundled Bootstrap picker. */
.datepicker-dropdown { z-index: 1085 !important; padding: 8px; border: 1px solid #e1e7f1; border-radius: 13px; background: #fff; box-shadow: 0 16px 44px rgba(23,35,66,.16); animation: pickerPop .16s ease-out both; }
.datepicker table tr td, .datepicker table tr th { width: 34px; height: 34px; border-radius: 9px; color: #495570; font-size: 12px; }
.datepicker table tr td.day:hover, .datepicker table tr td span:hover, .datepicker thead tr:first-child th:hover, .datepicker tfoot tr th:hover { background: #f0f3fb !important; color: #2945a6; }
.datepicker table tr td.today:not(.active) { background: #f4f6ff !important; color: #3457c5 !important; }
.datepicker table tr td.active, .datepicker table tr td.active:hover, .datepicker table tr td span.active, .datepicker table tr td span.active:hover { border-color: #3457d5 !important; background: #3457d5 !important; background-image: none !important; color: #fff !important; text-shadow: none !important; }
@keyframes pickerPop { from { opacity: 0; transform: translateY(5px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
/* Date filters keep their calendar affordance attached to the field. */
#content #filterForm > .row > [class*="col-"]:not(:has(*)) { display: none !important; }
#content #filterForm > .row > .col-md-2:has(.input-group) { flex: 1 1 220px; }
#content #filterForm .input-group { display: flex; flex-wrap: nowrap !important; align-items: stretch; min-width: 0; }
#content #filterForm .input-group > .form-control { flex: 1 1 auto; width: 1%; min-width: 0; }
#content #filterForm .input-group > .input-group-text { display: grid; flex: 0 0 42px; place-items: center; }
@media (max-width: 575.98px) { .daterangepicker { top: auto !important; bottom: 10px !important; } }
@media (min-width: 730px) {
  .daterangepicker.show-calendar { width: 820px !important; max-width: calc(100vw - 20px) !important; box-sizing: border-box; }
  .daterangepicker.show-calendar .ranges { float: left; width: 180px; }
  .daterangepicker.show-calendar .drp-calendar { float: left; width: 300px; max-width: 310px; }
  .daterangepicker.show-calendar .drp-calendar.left { clear: none; }
  .daterangepicker.show-calendar .drp-calendar.right { margin-left: 0; }
  .daterangepicker.show-calendar .drp-buttons { clear: both; display: flex; width: 100%; }
  .daterangepicker.show-calendar .calendar-table th { min-width: 32px; width: 32px; height: 32px; line-height: 32px; }
  .daterangepicker.show-calendar .calendar-table td { min-width: 34px; width: 34px; height: 38px; line-height: 38px; }
}
/* Sidebar alternate: a quieter light navigation rail beside the white header. */
#sidebar.app-sidebar, #sidebar.app-sidebar .app-sidebar-content, .app-sidebar-bg { background: #fff !important; }
#sidebar.app-sidebar, .app-sidebar-bg { border-right: 1px solid #e6eaf1; }
#sidebar .menu-profile { display: none !important; }
#sidebar .app-sidebar-content { padding: 18px 13px; }
#sidebar .menu-header { margin: 8px 0 10px; padding: 10px 12px 8px; color: #98a1b2 !important; font-size: 10px; font-weight: 750; letter-spacing: .12em; }
#sidebar .menu-link { min-height: 43px; padding: 10px 12px; border-radius: 9px; color: #68738a !important; font-size: 13px; font-weight: 600; }
#sidebar .menu-link:hover { background: #f5f7fb !important; color: #26385f !important; }
#sidebar .menu-item.active > .menu-link { position: relative; background: #edf2ff !important; color: #3457c5 !important; box-shadow: none !important; font-weight: 750; }
#sidebar .menu-item.active > .menu-link:before { position: absolute; top: 10px; bottom: 10px; left: 0; width: 3px; border-radius: 3px; background: #3457d5; content: ""; }
#sidebar .menu-icon, #sidebar .menu-icon i { color: #8792a8 !important; }
#sidebar .menu-item.active .menu-icon, #sidebar .menu-item.active .menu-icon i { color: #3457c5 !important; }
#sidebar .app-sidebar-minify-btn { color: #77829a !important; }
@media (max-width: 767.98px) { #sidebar.app-sidebar { box-shadow: 12px 0 36px rgba(25,39,74,.16); } }
/* Keep the date range value compact while preserving its submitted ISO format. */
#content #filterForm > .row > .col-md-2:has(.input-group) { flex: 0 1 245px; max-width: 245px; }
#content #filterForm .input-group > .form-control { padding: 7px 9px; font-size: 11px; letter-spacing: -.015em; white-space: nowrap; }
@media (max-width: 575.98px) { #content #filterForm > .row > .col-md-2:has(.input-group) { flex: 1 1 100%; max-width: none; } }
/* Status edit modal: softer backdrop and a single clean dialog surface. */
.modal-backdrop.show { --bs-backdrop-opacity: .38 !important; background-color: #172033; }
.status-edit-modal .modal-dialog { max-width: 520px; }
.status-edit-modal .modal-content { overflow: hidden; border: 1px solid #e2e7f0; border-radius: 17px; background: #fff; box-shadow: 0 22px 60px rgba(20,32,58,.2); }
.status-edit-modal .modal-header { min-height: 60px; padding: 17px 22px; border-bottom: 1px solid #e8ecf3; background: #f8faff; color: #24345d; }
.status-edit-modal .modal-title { color: #24345d; font-size: 16px; font-weight: 750; }
.status-edit-modal .modal-body { padding: 22px; }
.status-edit-modal .form-label { margin-bottom: 8px; color: #46516c; font-size: 13px; font-weight: 700; }
.status-edit-modal .form-control { min-height: 43px; border-color: #dce3ef; border-radius: 9px; font-size: 13px; }
.status-edit-modal textarea.form-control { min-height: 86px; resize: vertical; }
.status-edit-modal #editForm > .d-flex { gap: 9px; padding-top: 3px; }
.status-edit-modal #editForm .btn { min-height: 40px; padding: 9px 15px; border-radius: 9px; font-size: 12px; font-weight: 700; }
.status-edit-modal #editForm #cancel { border-color: #e2e7f0; background: #f1f3f7; color: #59657b; }
.status-edit-modal #editForm #cancel:hover { background: #e8ecf3; }

/* Infinix site palette: navy actions, crisp blue identity, orange highlights. */
:root {
  --brand-ink: #071b5b;
  --brand: #2f78ed;
  --brand-strong: #06164d;
  --brand-soft: #edf4ff;
}
#header .navbar-logo { background: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); }
.page-header { color: var(--brand-ink); }
.btn-primary, .btn-primary:focus { border-color: var(--brand-ink); background-color: var(--brand-ink); }
.btn-primary:hover, .btn-primary:active { border-color: #0d2d81; background-color: #0d2d81; }
.form-control:focus, .form-select:focus { border-color: #8eb8fa; box-shadow: 0 0 0 .2rem rgba(47,120,237,.14); }
#sidebar .menu-item.active > .menu-link { color: var(--brand-ink) !important; background: #eef4ff !important; }
#sidebar .menu-item.active > .menu-link:before { background: #f39800; }
#sidebar .menu-item.active .menu-icon, #sidebar .menu-item.active .menu-icon i { color: #2f78ed !important; }
/* The fixed expanded width previously overrode the theme's minified width. */
@media (min-width: 768px) {
  #sidebar.app-sidebar { width: 250px; transition: width .22s ease; }
  .app-sidebar-minified:not(.app-without-sidebar) #sidebar.app-sidebar { width: 64px !important; }
  .app-sidebar-minified:not(.app-without-sidebar) #sidebar.app-sidebar .app-sidebar-content { width: 64px !important; }
  .app-sidebar-minified:not(.app-without-sidebar) #sidebar.app-sidebar .menu > .menu-item > .menu-link {
    display: flex; width: 44px; min-height: 44px; margin-inline: auto; padding: 10px !important; justify-content: center; overflow: hidden;
  }
  .app-sidebar-minified:not(.app-without-sidebar) #sidebar.app-sidebar .menu-icon { width: auto; margin: 0 !important; }
  .app-sidebar-minified:not(.app-without-sidebar) #sidebar.app-sidebar .app-sidebar-minify-btn {
    display: flex; width: 38px; height: 38px; margin: 18px auto !important; padding: 0 !important;
    align-items: center; justify-content: center; border: 0; border-radius: 11px; background: #071b5b; color: #fff !important;
  }
  .app-sidebar-minified:not(.app-without-sidebar) #sidebar.app-sidebar .app-sidebar-minify-btn i,
  .app-sidebar-minified:not(.app-without-sidebar) #sidebar.app-sidebar .app-sidebar-minify-btn:hover { color: #fff !important; }
  .app-sidebar-minified:not(.app-without-sidebar) .app-sidebar-bg { width: 64px !important; }
  .app-sidebar-minified:not(.app-without-sidebar) .app-content { margin-left: 64px; }
}
@media (max-width: 767.98px) {
  #sidebar.app-sidebar { width: 275px; }
  #sidebar .app-sidebar-minify-btn { display: none !important; }
}

/* Let the page reclaim the sidebar's freed width when the navigation is collapsed. */
@media (min-width: 768px) {
  #app.app-sidebar-fixed.app-sidebar-minified #content.app-content { margin-left: 64px !important; }
}


/* Refreshed sign-in screen with the Infinix navy, blue, and orange palette. */
body.login-page { min-height: 100vh; margin: 0; color: #17213b; background: #f3f6fc; }
body.login-page:before, body.login-page:after { position: fixed; z-index: 0; width: 360px; height: 360px; border-radius: 50%; content: ""; pointer-events: none; filter: blur(2px); }
body.login-page:before { top: -210px; right: -100px; background: radial-gradient(circle,rgba(47,120,237,.13),rgba(47,120,237,0) 70%); }
body.login-page:after { bottom: -230px; left: -100px; background: radial-gradient(circle,rgba(243,152,0,.12),rgba(243,152,0,0) 70%); }
.login-shell { position: relative; z-index: 1; display: flex; min-height: 100vh; padding: 36px 22px 20px; flex-direction: column; align-items: center; justify-content: center; }
.login-container { display: grid; width: min(100%, 900px); min-height: 540px; grid-template-columns: .9fr 1.1fr; overflow: hidden; border: 1px solid #e5eaf3; border-radius: 22px; background: #fff; box-shadow: 0 28px 75px rgba(16,36,85,.12); animation: loginRise .45s ease-out both; }
.login-panel { position: relative; display: flex; min-height: 540px; padding: 38px; flex-direction: column; justify-content: space-between; overflow: hidden; color: #fff; background: linear-gradient(145deg,#092168 0%,#06164d 70%,#03113e 100%); }
.login-panel:before { position: absolute; right: -120px; bottom: -80px; width: 360px; height: 360px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 36px rgba(255,255,255,.035),0 0 0 74px rgba(255,255,255,.025); content: ""; }
.login-brand { position: relative; z-index: 1; display: inline-flex; width: fit-content; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.login-brand:hover { color: #fff; }
.login-brand strong { display: block; font-size: 20px; letter-spacing: -.04em; }
.login-brand small { display: block; margin-top: 3px; color: #aebde8; font-size: 9px; font-weight: 700; letter-spacing: .17em; }
.login-logo { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 13px; background: linear-gradient(145deg,#3b8af5,#1c57ca); box-shadow: 0 8px 20px rgba(0,0,0,.18); font-size: 18px; }
.login-intro { position: relative; z-index: 1; margin-top: auto; padding: 62px 0 54px; }
.login-eyebrow { margin: 0 0 12px; color: #f3a51e; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.login-intro h1 { max-width: 300px; margin: 0; color: #fff; font-size: clamp(34px,4vw,46px); font-weight: 750; letter-spacing: -.055em; line-height: 1.07; }
.login-intro p { max-width: 285px; margin: 18px 0 0; color: #c3cce3; font-size: 14px; line-height: 1.8; }
.login-panel-mark { position: relative; z-index: 1; display: flex; width: 100%; height: 4px; gap: 6px; }
.login-panel-mark span { height: 4px; border-radius: 5px; background: rgba(255,255,255,.2); }
.login-panel-mark span:first-child { width: 38px; background: #f39800; }
.login-panel-mark span:nth-child(2) { width: 18px; }
.login-panel-mark span:nth-child(3) { width: 8px; }
.login-body { display: flex; padding: 58px clamp(30px,5vw,66px); flex-direction: column; justify-content: center; background: #fff; }
.login-welcome { display: flex; margin-bottom: 38px; align-items: center; gap: 15px; }
.login-lock { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; border-radius: 14px; color: #1d64d5; background: #eef4ff; }
.login-welcome .login-eyebrow { margin-bottom: 5px; color: #76829a; font-size: 9px; }
.login-welcome h2 { margin: 0; color: #071b5b; font-size: 23px; font-weight: 750; letter-spacing: -.04em; }
.login-content { display: flex; flex-direction: column; }
.login-content > label { margin: 0 0 8px; color: #35425d; font-size: 12px; font-weight: 700; }
.login-field { position: relative; margin-bottom: 20px; }
.login-field > i { position: absolute; top: 50%; left: 15px; color: #97a2b6; font-size: 13px; transform: translateY(-50%); pointer-events: none; }
.login-field .form-control { height: 48px; padding: 10px 14px 10px 42px; border: 1px solid #dfe5ef; border-radius: 10px; color: #17213b; font-size: 13px; transition: border-color .18s ease,box-shadow .18s ease; }
.login-field .form-control::placeholder { color: #a3adbd; }
.login-field .form-control:focus { border-color: #75a7f4; box-shadow: 0 0 0 4px rgba(47,120,237,.11); }
.login-submit { display: flex; min-height: 49px; margin-top: 4px; padding: 12px 16px; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 10px; color: #fff; background: #071b5b; box-shadow: 0 9px 20px rgba(7,27,91,.17); font-size: 13px; font-weight: 750; transition: background .18s ease,transform .18s ease,box-shadow .18s ease; }
.login-submit:hover { color: #fff; background: #102f83; box-shadow: 0 12px 24px rgba(7,27,91,.22); transform: translateY(-1px); }
.login-submit:disabled { cursor: wait; opacity: .8; }
.login-submit i { color: #f4a31b; }
.login-submit.is-loading i { animation: loginSpin .8s linear infinite; }
.login-error { margin: -5px 0 15px; padding: 10px 12px; border: 1px solid #f3c8c5; border-radius: 9px; color: #a32925; background: #fff5f4; font-size: 12px; line-height: 1.5; }
.login-secure { margin: 19px 0 0; color: #8b96a9; text-align: center; font-size: 10px; }
.login-secure i { margin-right: 5px; color: #2f78ed; }
.login-footer { margin: 18px 0 0; color: #8a95a8; text-align: center; font-size: 10px; }
@keyframes loginRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes loginSpin { to { transform: rotate(360deg); } }
@media (max-width: 680px) {
  .login-shell { padding: 18px 14px; }
  .login-container { width: min(100%, 480px); min-height: 0; grid-template-columns: 1fr; border-radius: 18px; }
  .login-panel { min-height: 0; padding: 24px 25px 22px; }
  .login-intro { padding: 30px 0 24px; }
  .login-intro h1 { max-width: none; font-size: 32px; }
  .login-intro p { margin-top: 10px; font-size: 12px; }
  .login-panel-mark { display: none; }
  .login-body { padding: 30px 25px 28px; }
  .login-welcome { margin-bottom: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-container { animation: none; }
  .login-submit { transition: none; }
}

/* Small animated workspace preview adds depth without distracting from sign-in. */
.login-page { background: linear-gradient(135deg,#f7f9fd 0%,#edf2fb 52%,#f8f7f3 100%); }
.login-shell:before { position: fixed; top: 14%; left: 8%; width: 8px; height: 8px; border-radius: 50%; background: #f39800; box-shadow: 0 0 0 8px rgba(243,152,0,.08); content: ""; animation: loginDrift 7s ease-in-out infinite; }
.login-shell:after { position: fixed; right: 9%; bottom: 18%; width: 10px; height: 10px; border: 2px solid rgba(47,120,237,.35); border-radius: 3px; content: ""; animation: loginDrift 8s ease-in-out -2s infinite reverse; }
.login-panel:after { position: absolute; top: 76px; right: 24px; width: 115px; height: 115px; border-radius: 50%; background: rgba(47,120,237,.18); filter: blur(28px); content: ""; animation: loginGlow 5s ease-in-out infinite alternate; }
.login-intro { animation: loginFadeUp .55s .08s both; }
.login-visual { position: relative; z-index: 1; width: min(100%,330px); height: 142px; margin: -24px auto 25px; animation: loginFadeUp .65s .18s both; }
.visual-window { position: absolute; inset: 0 24px 0 0; padding: 12px 15px; border: 1px solid rgba(255,255,255,.19); border-radius: 12px; background: linear-gradient(135deg,rgba(255,255,255,.15),rgba(255,255,255,.07)); box-shadow: 0 16px 32px rgba(0,0,0,.16); backdrop-filter: blur(8px); }
.visual-toolbar { display: flex; height: 9px; align-items: center; gap: 4px; }
.visual-toolbar > span { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.42); }
.visual-toolbar > span:first-child { background: #f39800; }
.visual-toolbar > i { margin-left: auto; color: rgba(255,255,255,.6); font-size: 9px; }
.visual-caption { margin-top: 10px; color: #b9c8e9; font-size: 7px; font-weight: 800; letter-spacing: .16em; }
.visual-summary { display: flex; margin-top: 2px; align-items: baseline; gap: 7px; }
.visual-summary strong { color: #fff; font-size: 23px; letter-spacing: -.05em; }
.visual-summary > span { color: #d3ddf3; font-size: 9px; }
.visual-summary > i { margin-left: auto; color: #78e0bd; font-size: 9px; }
.visual-chart { display: flex; height: 35px; margin-top: 1px; align-items: end; gap: 5px; }
.visual-chart > span { width: 9%; height: 30%; border-radius: 3px 3px 1px 1px; background: rgba(111,164,255,.75); transform-origin: bottom; animation: chartRise .65s cubic-bezier(.2,.8,.2,1) both; }
.visual-chart > span:nth-child(2) { height: 52%; animation-delay: .08s; }
.visual-chart > span:nth-child(3) { height: 40%; animation-delay: .14s; }
.visual-chart > span:nth-child(4) { height: 72%; animation-delay: .2s; background: #f2a52c; }
.visual-chart > span:nth-child(5) { height: 58%; animation-delay: .26s; }
.visual-chart > span:nth-child(6) { height: 84%; animation-delay: .32s; }
.visual-chart > span:nth-child(7) { height: 100%; animation-delay: .38s; background: #f2a52c; }
.visual-track { height: 3px; margin-top: 6px; overflow: hidden; border-radius: 4px; background: rgba(255,255,255,.18); }
.visual-track > span { display: block; width: 68%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#3f91ff,#f3a21c); animation: trackGrow .9s .3s both; }
.visual-float { position: absolute; right: -5px; bottom: 12px; display: flex; min-width: 132px; padding: 9px 11px; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.65); border-radius: 10px; color: #17336c; background: #fff; box-shadow: 0 9px 22px rgba(0,0,0,.18); animation: loginFloat 4s ease-in-out infinite; }
.visual-float > i { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 7px; color: #137d5b; background: #e4f8ef; font-size: 10px; }
.visual-float strong, .visual-float small { display: block; }
.visual-float strong { font-size: 8px; }
.visual-float small { margin-top: 2px; color: #8490a5; font-size: 7px; }
.login-body { animation: loginFormIn .55s .12s both; }
.login-field .form-control { transition: border-color .2s ease,box-shadow .2s ease,transform .2s ease,background .2s ease; }
.login-field .form-control:focus { transform: translateY(-1px); background: #fcfdff; }
.login-submit { position: relative; overflow: hidden; }
.login-submit:before { position: absolute; top: -60%; bottom: -60%; left: -35%; width: 22%; background: linear-gradient(90deg,transparent,rgba(255,255,255,.22),transparent); content: ""; transform: skewX(-22deg); transition: left .55s ease; }
.login-submit:hover:before { left: 120%; }
.login-submit i { transition: transform .2s ease; }
.login-submit:hover i { transform: translateX(3px); }
@keyframes loginDrift { 0%,100% { transform: translate3d(0,0,0) rotate(0); } 50% { transform: translate3d(0,-12px,0) rotate(45deg); } }
@keyframes loginGlow { from { opacity: .55; transform: scale(.85); } to { opacity: 1; transform: scale(1.12); } }
@keyframes loginFadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes loginFormIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }
@keyframes loginFloat { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-1deg); } }
@keyframes chartRise { from { transform: scaleY(.12); opacity: .35; } to { transform: scaleY(1); opacity: 1; } }
@keyframes trackGrow { from { width: 0; } to { width: 68%; } }
@media (max-width: 680px) {
  .login-visual { width: min(100%,300px); height: 130px; margin: 0 auto 20px; }
  .login-panel { padding-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-shell:before, .login-shell:after, .login-panel:after, .login-intro, .login-visual, .login-body, .visual-float,
  .visual-chart > span, .visual-track > span, .login-submit.is-loading i { animation: none !important; }
  .login-field .form-control, .login-submit, .login-submit:before, .login-submit i { transition: none !important; }
}

/* Keep date range Submit and Cancel controls visible and interactive. */
.daterangepicker.show-calendar .drp-buttons { display: flex; }
.daterangepicker .drp-buttons { position: relative; z-index: 2; align-items: center; pointer-events: auto !important; }
.daterangepicker .drp-buttons .btn { position: relative; z-index: 3; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; pointer-events: auto !important; }


/* Infinix interior UI refresh: bright surfaces, clear hierarchy, soft motion. */
body:not(.login-page) { background: #f6f8fc; color: #1c2945; }
#app.app { background: #f6f8fc; }
#header.app-header { z-index: 1030; border-bottom: 1px solid #e8edf5; background: rgba(255,255,255,.97); box-shadow: 0 4px 18px rgba(15,34,76,.045); backdrop-filter: blur(12px); }
#header .navbar-brand { color: #071b5b; }
#header .navbar-logo { background: linear-gradient(145deg,#3e8af5,#1762d6); box-shadow: 0 0 0 5px #edf4ff; }
#header .navbar-user .navbar-link { min-height: 40px; padding: 9px 12px; border: 1px solid transparent; border-radius: 10px; color: #263658; transition: background .18s ease,border-color .18s ease; }
#header .navbar-user .navbar-link:hover, #header .navbar-user .navbar-link[aria-expanded="true"] { border-color: #e6ebf4; background: #f7f9fd; }
#sidebar.app-sidebar, #sidebar.app-sidebar .app-sidebar-content, .app-sidebar-bg { background: #fff !important; }
#sidebar.app-sidebar, .app-sidebar-bg { border-right: 1px solid #e8edf5; }
#sidebar .menu-profile { display: none !important; }
#sidebar .app-sidebar-content { padding: 20px 13px; }
#sidebar .menu-header { margin: 4px 0 12px; padding: 10px 12px 8px; color: #9aa4b5 !important; font-size: 9px; font-weight: 800; letter-spacing: .17em; }
#sidebar .menu-item { margin: 4px 0; animation: navReveal .38s ease-out both; }
#sidebar .menu-item:nth-child(2) { animation-delay: .035s; }
#sidebar .menu-item:nth-child(3) { animation-delay: .07s; }
#sidebar .menu-item:nth-child(4) { animation-delay: .105s; }
#sidebar .menu-item:nth-child(5) { animation-delay: .14s; }
#sidebar .menu-item:nth-child(6) { animation-delay: .175s; }
#sidebar .menu-link { min-height: 44px; padding: 10px 12px; border-radius: 11px; color: #68748b !important; font-size: 13px; font-weight: 600; transition: color .18s ease,background .18s ease,transform .18s ease; }
#sidebar .menu-link:hover { color: #10245d !important; background: #f4f7fc !important; transform: translateX(2px); }
#sidebar .menu-item.active > .menu-link { color: #071b5b !important; background: #edf4ff !important; box-shadow: none !important; font-weight: 750; }
#sidebar .menu-item.active > .menu-link:before { top: 9px; bottom: 9px; width: 3px; border-radius: 0 4px 4px 0; background: #f39800; }
#sidebar .menu-icon, #sidebar .menu-icon i { color: #8491a8 !important; transition: color .18s ease,transform .18s ease; }
#sidebar .menu-item.active .menu-icon, #sidebar .menu-item.active .menu-icon i { color: #2f78ed !important; }
#sidebar .menu-link:hover .menu-icon { transform: scale(1.06); }
#sidebar .app-sidebar-minify-btn { color: #fff !important; background: #071b5b; transition: background .18s ease,transform .18s ease; }
#sidebar .app-sidebar-minify-btn:hover { color: #fff !important; background: #2f78ed; transform: translateX(-2px); }
#content.app-content { padding-top: 34px; }
#content .page-header { position: relative; margin-bottom: 24px; color: #071b5b; font-size: clamp(25px,2.3vw,33px); font-weight: 800; letter-spacing: -.05em; animation: pageReveal .42s ease-out both; }
#content .page-header:after { display: block; width: 38px; height: 3px; margin-top: 11px; border-radius: 5px; background: linear-gradient(90deg,#f39800,#ffc65e); content: ""; }
#content .panel, #content .card { overflow: hidden; border: 1px solid #e7ecf4; border-radius: 17px; background: #fff; box-shadow: 0 8px 26px rgba(18,38,82,.045); animation: surfaceReveal .45s cubic-bezier(.2,.75,.25,1) both; }
#content .panel-heading, #content .card-header { min-height: 60px; padding: 18px 22px; border-bottom: 1px solid #edf0f5; color: #14265b; background: #fff; }
#content .panel-title, #content .card-title { color: #10245d; font-size: 15px; font-weight: 750; letter-spacing: -.015em; }
#content .panel-body, #content .card-body { padding: 22px; }
#content #filterForm { padding: 16px; border: 1px solid #e8edf5; border-radius: 14px; background: #f9fbfe; }
#content #filterForm .form-control, #content #filterForm .select2-container .select2-selection { min-height: 44px; border-color: #dfe6f1; border-radius: 10px; background-color: #fff; }
#content #filterForm .input-group-text { border-color: #dfe6f1; border-radius: 0 10px 10px 0; color: #2f78ed; background: #fff; }
#content .form-label, #content label { color: #3e4c66; font-size: 12px; font-weight: 700; }
#content .form-control, #content .form-select, #content .select2-container .select2-selection { border-color: #dfe5ef; border-radius: 10px; color: #1c2945; background-color: #fff; transition: border-color .18s ease,box-shadow .18s ease,background .18s ease; }
#content .form-control:focus, #content .form-select:focus, #content .select2-container--focus .select2-selection { border-color: #82aff4; background: #fff; box-shadow: 0 0 0 4px rgba(47,120,237,.1); }
#content .btn { min-height: 38px; border-radius: 10px; font-weight: 700; transition: color .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
#content .btn-primary, #content .btn-theme { border-color: #071b5b; color: #fff; background: #071b5b; box-shadow: 0 5px 12px rgba(7,27,91,.11); }
#content .btn-primary:hover, #content .btn-theme:hover { border-color: #153982; color: #fff; background: #153982; box-shadow: 0 8px 18px rgba(7,27,91,.17); transform: translateY(-1px); }
#content .btn-outline-primary { border-color: #b7cdf4; color: #144992; background: #fff; }
#content .btn-outline-primary:hover { border-color: #2f78ed; color: #fff; background: #2f78ed; }
#content .dataTables_wrapper { animation: surfaceReveal .5s .06s both; }
#content .dataTables_wrapper .dataTables_length, #content .dataTables_wrapper .dataTables_filter { margin-bottom: 13px; color: #69758b; font-size: 12px; }
#content .dataTables_wrapper .dataTables_filter input, #content .dataTables_wrapper .dataTables_length select { min-height: 42px; border-color: #dfe5ef; border-radius: 10px; }
#content table.dataTable, #content .table { border-color: #edf0f5; color: #25334f; }
#content table.dataTable thead > tr > th, #content .table thead th { padding: 14px 15px; border-bottom: 1px solid #e7ecf4; color: #52617e; background: #f5f8fd; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
#content table.dataTable tbody > tr, #content .table tbody > tr { animation: rowReveal .32s ease-out both; }
#content table.dataTable tbody > tr:nth-child(2), #content .table tbody > tr:nth-child(2) { animation-delay: .025s; }
#content table.dataTable tbody > tr:nth-child(3), #content .table tbody > tr:nth-child(3) { animation-delay: .05s; }
#content table.dataTable tbody > tr:nth-child(4), #content .table tbody > tr:nth-child(4) { animation-delay: .075s; }
#content table.dataTable tbody > tr:nth-child(5), #content .table tbody > tr:nth-child(5) { animation-delay: .1s; }
#content table.dataTable tbody > tr:nth-child(n+6), #content .table tbody > tr:nth-child(n+6) { animation-delay: .12s; }
#content table.dataTable tbody td, #content .table tbody td { padding: 14px 15px; border-color: #edf1f6; }
#content table.dataTable tbody > tr:hover > *, #content .table tbody > tr:hover > * { background: #f8faff; box-shadow: none; }
#content table.dataTable .sorting:before, #content table.dataTable .sorting:after { color: #92a0b8; }
#content .dataTables_wrapper .dataTables_paginate .paginate_button { border-radius: 8px; transition: color .15s ease,background .15s ease,transform .15s ease; }
#content .dataTables_wrapper .dataTables_paginate .paginate_button:hover { border-color: #071b5b; color: #fff !important; background: #071b5b; transform: translateY(-1px); }
#content .badge { border: 1px solid transparent; font-size: 10px; letter-spacing: .01em; }
#content .modal-content { overflow: hidden; border: 1px solid #e4eaf3; border-radius: 17px; background: #fff; box-shadow: 0 24px 70px rgba(17,29,60,.2); animation: surfaceReveal .22s ease-out both; }
#content .modal-header { padding: 17px 21px; border-bottom: 1px solid #edf0f5; color: #10245d; background: #fbfcfe; }
#content .modal-title { color: #10245d; font-size: 15px; font-weight: 750; }
#content .dropdown-menu { padding: 7px; border: 1px solid #e7ecf4; border-radius: 12px; box-shadow: 0 14px 38px rgba(18,38,82,.12); animation: surfaceReveal .16s ease-out both; }
#content .dropdown-item { border-radius: 8px; color: #465570; transition: background .15s ease,color .15s ease; }
#content .dropdown-item:hover { color: #10245d; background: #f3f6fc; }
#content .widget-stats { border-top: 2px solid #2f78ed !important; border-radius: 16px !important; background: #fff !important; box-shadow: 0 8px 25px rgba(18,38,82,.055) !important; transition: transform .2s ease,box-shadow .2s ease,border-color .2s ease !important; }
#content a:hover .widget-stats { border-top-color: #f39800 !important; box-shadow: 0 15px 34px rgba(18,38,82,.11) !important; transform: translateY(-3px); }
#content .widget-stats .stats-icon { color: #2f78ed !important; background: #eef5ff !important; }
#content a:hover .widget-stats .stats-icon { color: #fff !important; background: #2f78ed !important; }
.pace .pace-progress { background: #2f78ed; }
@keyframes pageReveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes surfaceReveal { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rowReveal { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes navReveal { from { opacity: 0; transform: translateX(-5px); } to { opacity: 1; transform: translateX(0); } }
@media (max-width: 767.98px) {
  #content.app-content { padding: 23px 15px 36px; }
  #content .panel-body, #content .card-body { padding: 16px; }
  #content #filterForm { padding: 12px; }
  #header.app-header { padding-inline: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  #sidebar .menu-item, #content .page-header, #content .panel, #content .card,
  #content .dataTables_wrapper, #content table.dataTable tbody > tr, #content .table tbody > tr,
  #content .modal-content, #content .dropdown-menu { animation: none !important; }
  #sidebar .menu-link, #sidebar .menu-icon, #content .btn, #content .form-control,
  #content .form-select, #content .dropdown-item, #content .widget-stats { transition: none !important; }
}

/* Brand contrast and approval-page control refinements. */
body:not(.login-page) { background: #eef3fa; }
#app.app { background: #eef3fa; }
#sidebar.app-sidebar, #sidebar.app-sidebar .app-sidebar-content, .app-sidebar-bg { background: #081b55 !important; }
#sidebar.app-sidebar, .app-sidebar-bg { border-right-color: #0e286d; }
#sidebar .menu-header { color: #9fb0dc !important; }
#sidebar .menu-link { color: #c4d0eb !important; }
#sidebar .menu-link:hover { color: #fff !important; background: rgba(255,255,255,.1) !important; }
#sidebar .menu-item.active > .menu-link { color: #fff !important; background: #2f78ed !important; box-shadow: 0 7px 18px rgba(0,0,0,.16) !important; }
#sidebar .menu-item.active > .menu-link:before { background: #f39800; }
#sidebar .menu-icon, #sidebar .menu-icon i { color: #a8b9e2 !important; }
#sidebar .menu-item.active .menu-icon, #sidebar .menu-item.active .menu-icon i { color: #fff !important; }
#sidebar .app-sidebar-minify-btn { border: 1px solid rgba(255,255,255,.15); background: #173778; }
#content .panel-heading, #content .card-header { background: linear-gradient(100deg,#f0f5ff 0%,#fff 76%); }
#content #filterForm { border-color: #dfe8f5; background: #f2f6fc; }
#content #filterForm #date.input-group { display: flex; width: 100%; flex-wrap: nowrap; overflow: hidden; border: 1px solid #d7e1f0; border-radius: 10px; background: #fff; transition: border-color .18s ease,box-shadow .18s ease; }
#content #filterForm #date.input-group:focus-within { border-color: #82aff4; box-shadow: 0 0 0 4px rgba(47,120,237,.1); }
#content #filterForm #date.input-group > .form-control { min-width: 0; min-height: 42px; border: 0; border-radius: 0; box-shadow: none; }
#content #filterForm #date.input-group > .input-group-text { display: grid; width: 46px; min-width: 46px; min-height: 42px; padding: 0; place-items: center; border: 0; border-left: 1px solid #e7edf5; border-radius: 0; color: #2f78ed; background: #f7faff; transition: color .18s ease,background .18s ease; }
#content #filterForm #date.input-group:hover > .input-group-text { color: #071b5b; background: #edf4ff; }
#content .panel-heading-btn { display: flex; margin-top: -4px; align-items: center; gap: 8px; }
#content .panel-heading-btn > .btn { display: inline-flex; width: 36px; min-width: 36px; height: 36px; min-height: 36px; padding: 0 !important; flex: 0 0 36px; align-items: center; justify-content: center; border: 1px solid #dfe7f3; border-radius: 10px !important; color: #51617f; background: #fff; box-shadow: none; line-height: 1; }
#content .panel-heading-btn > .btn:hover { border-color: #b8cdf0; color: #fff; background: #2f78ed; transform: translateY(-1px); }
#content .panel-heading-btn > .btn-success { border-color: #dbece7; color: #23836b; background: #f3fbf8; }
#content .panel-heading-btn > .btn-warning { border-color: #f5e7c8; color: #a97718; background: #fffaf0; }
#content .panel-heading-btn > .btn-danger { border-color: #f1dddd; color: #bd5252; background: #fff7f7; }
#content table.dataTable thead > tr > th { position: sticky; padding-right: 32px !important; }
#content table.dataTable thead th.sorting:before, #content table.dataTable thead th.sorting:after,
#content table.dataTable thead th.sorting_asc:before, #content table.dataTable thead th.sorting_asc:after,
#content table.dataTable thead th.sorting_desc:before, #content table.dataTable thead th.sorting_desc:after { right: 9px !important; }
.approval-page #content #data-table-default thead th:nth-child(3) { min-width: 110px; padding-right: 34px !important; }
.approval-page #content #data-table-default tbody td:nth-child(3) { min-width: 110px; }
#content .widget-stats:nth-child(4n+1) { border-top-color: #2f78ed !important; }
#content .widget-stats:nth-child(4n+2) { border-top-color: #f39800 !important; }
#content .widget-stats:nth-child(4n+3) { border-top-color: #13a6a1 !important; }
#content .widget-stats:nth-child(4n) { border-top-color: #6d63cf !important; }
@media (max-width: 767.98px) {
  #content .panel-heading-btn { gap: 5px; }
  #content .panel-heading-btn > .btn { width: 32px; min-width: 32px; height: 32px; min-height: 32px; flex-basis: 32px; }
  #content #filterForm #date.input-group > .input-group-text { width: 42px; min-width: 42px; }
}

/* Final Infinix admin design system refinements. */
:root {
  --brand-ink: #091c55;
  --brand: #2f78ed;
  --brand-strong: #174da8;
  --brand-soft: #edf4ff;
  --canvas: #eef3fa;
  --surface: #ffffff;
  --line: #e1e8f2;
  --muted: #78859b;
  --text: #25334d;
  --radius: 16px;
  --shadow: 0 10px 28px rgba(14,34,78,.055);
}
body:not(.login-page) { color: #25334d; background: #eef3fa; font-family: Inter,"Segoe UI",Arial,sans-serif; }
#app.app { background: #eef3fa; }
#header.app-header { height: 68px; border-bottom: 1px solid #e4eaf3; background: rgba(255,255,255,.98); box-shadow: 0 3px 16px rgba(18,38,82,.045); }
#header .navbar-logo { background: linear-gradient(145deg,#438df5,#2167d5) !important; box-shadow: 0 0 0 5px #edf4ff !important; }
#header .navbar-user .navbar-link { min-height: 38px; padding: 8px 12px; border: 1px solid transparent; border-radius: 10px; color: #253657; transition: background .18s ease,border-color .18s ease; }
#header .navbar-user .navbar-link:hover, #header .navbar-user .navbar-link[aria-expanded="true"] { border-color: #e3e9f2; background: #f5f8fd; }
#sidebar.app-sidebar, #sidebar.app-sidebar .app-sidebar-content, .app-sidebar-bg { background: #091c55 !important; }
#sidebar.app-sidebar, .app-sidebar-bg { border-right: 1px solid #132e6d; }
#sidebar .menu-link { min-height: 45px; color: #c7d2ec !important; }
#sidebar .menu-link:hover { color: #fff !important; background: rgba(255,255,255,.09) !important; }
#sidebar .menu-item.active > .menu-link { color: #fff !important; background: #2f78ed !important; box-shadow: 0 7px 18px rgba(0,0,0,.16) !important; }
#sidebar .menu-item.active > .menu-link:before { background: #f39800; }
#sidebar .menu-icon, #sidebar .menu-icon i { color: #a9bae1 !important; }
#sidebar .menu-item.active .menu-icon, #sidebar .menu-item.active .menu-icon i { color: #fff !important; }
#sidebar .app-sidebar-minify-btn { border: 1px solid rgba(255,255,255,.14); border-radius: 11px; color: #fff !important; background: #173778; }
#sidebar .app-sidebar-minify-btn:hover { color: #fff !important; background: #2f78ed; }
#content.app-content { min-height: calc(100vh - 68px); padding: 30px clamp(20px,2.6vw,40px) 46px; }
#content .page-header { margin-bottom: 22px; color: #091c55; font-size: clamp(25px,2.1vw,32px); font-weight: 800; letter-spacing: -.045em; }
#content .page-header:after { width: 34px; height: 3px; margin-top: 9px; background: #f39800; }
#content .panel, #content .card { border-color: #e0e7f1; border-radius: 16px; background: #fff; box-shadow: 0 9px 26px rgba(14,34,78,.05); }
#content .panel-heading, #content .card-header { min-height: 58px; padding: 17px 21px; border-bottom-color: #e8edf5; background: linear-gradient(100deg,#eff4fc,#fff 72%); }
#content .panel-title, #content .card-title { color: #0b205d; font-size: 14px; font-weight: 750; }
#content .panel-body, #content .card-body { padding: 21px; }
#content #filterForm { border-color: #e0e8f3; border-radius: 13px; background: #f3f6fb; }
#content .form-label, #content label { margin-bottom: 7px; color: #3c4b66; font-size: 12px; font-weight: 700; }
#content .form-control, #content .form-select, #content .select2-container .select2-selection { border-color: #dbe3ef; border-radius: 9px; color: #23324d; background: #fff; }
#content .form-control:focus, #content .form-select:focus, #content .select2-container--focus .select2-selection { border-color: #77a7f1; box-shadow: 0 0 0 3px rgba(47,120,237,.12); }
#content .btn { min-height: 38px; border-radius: 9px; font-size: 12px; font-weight: 700; transition: transform .17s ease,box-shadow .17s ease,background .17s ease,border-color .17s ease; }
#content .btn-primary, #content .btn-theme { border-color: #091c55; color: #fff; background: #091c55; box-shadow: 0 5px 12px rgba(9,28,85,.12); }
#content .btn-primary:hover, #content .btn-theme:hover { border-color: #174da8; color: #fff; background: #174da8; box-shadow: 0 8px 17px rgba(9,28,85,.17); transform: translateY(-1px); }
#content .btn-secondary { border-color: #dce3ed; color: #4a5973; background: #f5f7fa; }
#content .btn-secondary:hover { border-color: #bdc9da; color: #243653; background: #edf1f6; }
#content .panel-heading-btn { display: flex; align-items: center; gap: 7px; }
#content .panel-heading-btn > .btn { display: inline-flex; width: 36px; min-width: 36px; height: 36px; min-height: 36px; padding: 0 !important; flex: 0 0 36px; align-items: center; justify-content: center; border: 1px solid #dfe6f0; border-radius: 9px !important; color: #566682; background: #fff; box-shadow: none; }
#content .panel-heading-btn > .btn:hover { border-color: #b9ccef; color: #fff; background: #2f78ed; transform: translateY(-1px); }
#content .dataTables_wrapper .dataTables_length, #content .dataTables_wrapper .dataTables_filter { color: #64728c; font-size: 12px; }
#content .dataTables_wrapper .dataTables_filter input, #content .dataTables_wrapper .dataTables_length select { min-height: 40px; border-color: #dbe3ef; border-radius: 9px; }
#content table.dataTable, #content .table { color: #293751; border-color: #e9eef5; }
#content table.dataTable thead > tr > th, #content .table thead th { position: sticky; padding: 13px 30px 13px 14px !important; border-bottom: 1px solid #e3eaf4; color: #53627d; background: #f1f5fb; font-size: 10px; font-weight: 800; letter-spacing: .07em; }
#content table.dataTable thead th.sorting:before, #content table.dataTable thead th.sorting:after,
#content table.dataTable thead th.sorting_asc:before, #content table.dataTable thead th.sorting_asc:after,
#content table.dataTable thead th.sorting_desc:before, #content table.dataTable thead th.sorting_desc:after { right: 8px !important; }
#content table.dataTable tbody td, #content .table tbody td { padding: 13px 14px; border-color: #edf1f6; }
#content table.dataTable tbody tr:hover > *, #content .table tbody tr:hover > * { background: #f4f8ff; }
#content table.dataTable tbody td a, #content .table tbody td a { color: #2459b5; font-weight: 650; text-decoration: none; }
#content table.dataTable tbody td a:hover, #content .table tbody td a:hover { color: #f39800; }
#content .dataTables_wrapper .dataTables_paginate .paginate_button.current { border-color: #d9e7fc !important; border-radius: 8px; color: #164eaa !important; background: #eaf3ff !important; }
#content .badge { padding: .46em .72em; border-radius: 999px; font-size: 10px; font-weight: 750; }
#content .modal-content { border-color: #e0e7f1; border-radius: 15px; box-shadow: 0 24px 70px rgba(9,28,85,.2); }
#content .modal-header { background: #f4f7fc; }
#content .modal-title { color: #0b205d; font-weight: 750; }
.daterangepicker { border-color: #dfe7f1; border-radius: 13px; box-shadow: 0 16px 46px rgba(9,28,85,.18); }
.daterangepicker .ranges li.active { color: #174da8; background: #eaf3ff; }
.daterangepicker td.start-date, .daterangepicker td.end-date, .daterangepicker td.active, .daterangepicker td.active:hover { background: #2f78ed; }
.daterangepicker .drp-buttons .btn-primary { border-color: #091c55; background: #091c55; }
#content .widget-stats { border-radius: 15px !important; box-shadow: 0 8px 24px rgba(9,28,85,.06) !important; }
#content .widget-stats:nth-child(4n+1) { border-top-color: #2f78ed !important; }
#content .widget-stats:nth-child(4n+2) { border-top-color: #f39800 !important; }
#content .widget-stats:nth-child(4n+3) { border-top-color: #11a3a0 !important; }
#content .widget-stats:nth-child(4n) { border-top-color: #7569d1 !important; }
@media (max-width: 767.98px) {
  #content.app-content { padding: 22px 14px 34px; }
  #content .panel-body, #content .card-body { padding: 15px; }
  #content .panel-heading-btn { gap: 5px; }
  #content .panel-heading-btn > .btn { width: 32px; min-width: 32px; height: 32px; min-height: 32px; flex-basis: 32px; }
}

/* Shared popup system: Bootstrap dialogs and the generated-query dialog. */
.modal-backdrop.show {
  --bs-backdrop-opacity: .52;
  background-color: #091c3f;
  backdrop-filter: blur(3px);
}
.modal .modal-dialog {
  width: min(100% - 2rem, 560px);
  max-width: 560px;
  margin: 1rem auto;
  transition: transform .22s cubic-bezier(.2,.75,.25,1), opacity .22s ease;
}
.modal .modal-dialog.modal-lg { max-width: 860px; }
.modal .modal-content {
  overflow: hidden;
  border: 1px solid #dfe7f1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(9,28,85,.24);
}
.modal .modal-header,
.modal .modal-header.bg-primary {
  min-height: 64px;
  padding: 18px 22px;
  border: 0;
  border-bottom: 1px solid #e8edf5;
  background: linear-gradient(115deg, #f7faff, #fff);
  color: #091c55;
}
.modal .modal-title { color: #091c55; font-size: 16px; font-weight: 750; letter-spacing: -.015em; }
.modal .modal-header .btn-close { margin: -.25rem -.25rem -.25rem auto; opacity: .58; transition: opacity .16s ease, transform .16s ease; }
.modal .modal-header .btn-close:hover { opacity: 1; transform: rotate(90deg); }
.modal .modal-body { max-height: min(68vh, 680px); overflow: auto; padding: 22px; color: #34415f; }
.modal .modal-footer { gap: 9px; padding: 14px 22px 20px; border-top: 1px solid #edf1f6; }
.modal .form-label { margin-bottom: 7px; color: #34415f; font-size: 13px; font-weight: 700; }
.modal .form-control,
.modal .form-select,
.modal input:not([type="checkbox"]):not([type="radio"]),
.modal textarea,
.modal select {
  min-height: 43px;
  border: 1px solid #d9e2ef;
  border-radius: 10px;
  background-color: #fff;
  color: #1d2b48;
  box-shadow: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.modal textarea.form-control, .modal textarea { min-height: 96px; resize: vertical; }
.modal .form-control:focus,
.modal .form-select:focus,
.modal input:focus,
.modal textarea:focus,
.modal select:focus {
  border-color: #2f78ed;
  box-shadow: 0 0 0 3px rgba(47,120,237,.13);
  outline: 0;
}
.modal .btn { min-height: 39px; padding: 9px 15px; border-radius: 9px; font-size: 12px; font-weight: 700; transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease; }
.modal .btn:hover { transform: translateY(-1px); }
.modal .btn-primary { border-color: #091c55; background: #091c55; color: #fff; }
.modal .btn-primary:hover { border-color: #123078; background: #123078; box-shadow: 0 7px 16px rgba(9,28,85,.16); }
.modal .btn-secondary { border-color: #e2e8f0; background: #f3f6fa; color: #48566f; }
.modal .btn-secondary:hover { border-color: #d5deeb; background: #e9eef5; }
.modal .table-responsive { border: 1px solid #e8edf5; border-radius: 10px; }
.modal .table { margin-bottom: 0; }
.queries-modal {
  z-index: 1060;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 4vw, 36px);
  background: rgba(9,28,63,.58);
  backdrop-filter: blur(4px);
}
.queries-modal.open { display: flex; animation: popupBackdropIn .18s ease both; }
.queries-dialog {
  width: min(100%, 1000px);
  height: min(90vh, 900px);
  margin: 0;
  padding: 22px;
  border: 1px solid #dfe7f1;
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(9,28,85,.24);
  animation: popupDialogIn .22s cubic-bezier(.2,.75,.25,1) both;
}
.queries-toolbar { top: -22px; z-index: 1; padding: 12px 0; border-bottom: 1px solid #e8edf5; }
.queries-toolbar h2 { margin: 0; color: #091c55; font-size: 18px; font-weight: 750; }
.query-item { overflow: hidden; border-color: #e3eaf3; border-radius: 12px; background: #f8faff; }
.query-item pre { margin: 0; color: #34415f; font: 12px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; }
@keyframes popupBackdropIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popupDialogIn { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 575.98px) {
  .modal .modal-dialog, .modal .modal-dialog.modal-lg { width: auto; max-width: none; margin: .75rem; }
  .modal .modal-header { min-height: 58px; padding: 15px 17px; }
  .modal .modal-body { max-height: 70vh; padding: 17px; }
  .modal .modal-footer { padding: 12px 17px 16px; }
  .queries-dialog { height: calc(100vh - 24px); padding: 16px; border-radius: 15px; }
  .queries-toolbar { top: -16px; align-items: flex-start; gap: 12px; }
  .queries-toolbar h2 { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .modal .modal-dialog, .modal .btn, .modal .btn-close { transition: none !important; }
  .queries-modal.open, .queries-dialog { animation: none !important; }
}
.modal.fade .modal-dialog { transform: translateY(10px) scale(.99); }
.modal.show .modal-dialog { transform: translateY(0) scale(1); }

/* Bootstrap utility classes use !important; override them for every popup surface. */
.modal .modal-header.bg-primary {
  position: relative;
  border-bottom: 0;
  background: linear-gradient(112deg, #091c55 0%, #123574 100%) !important;
  color: #fff !important;
}
.modal .modal-header.bg-primary::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #f39800, #ffbf47);
  content: "";
}
.modal .modal-header.bg-primary .modal-title,
.modal .modal-header.bg-primary .btn-close { color: #fff !important; }
.modal .modal-header.bg-primary .btn-close { filter: invert(1) grayscale(1) brightness(2); opacity: .85; }
.modal .modal-header.bg-primary .btn-close:hover { opacity: 1; }
.modal .btn-primary {
  border-color: #091c55 !important;
  background: #091c55 !important;
  color: #fff !important;
}
.modal .btn-primary:hover,
.modal .btn-primary:focus-visible {
  border-color: #173d8a !important;
  background: #173d8a !important;
}
.modal .btn-warning {
  border-color: #f39800 !important;
  background: #f39800 !important;
  color: #172033 !important;
}
.modal .btn-danger {
  border-color: #c83c46 !important;
  background: #c83c46 !important;
  color: #fff !important;
}
.modal .table thead th {
  border-color: #dce5f1 !important;
  background: #f1f5fb !important;
  color: #243b69 !important;
}
.modal .table tbody td { border-color: #e6ecf4 !important; color: #34415f; }
.modal .table tbody tr:hover > * { background: #f6f9fe !important; }
.modal .modal-body pre,
.modal .modal-body code { color: #243b69; }

/* Give every Bootstrap popup, including Update Status, the same branded header. */
.modal .modal-header,
.modal .modal-header.bg-primary {
  position: relative;
  border: 0;
  border-bottom: 0;
  background: linear-gradient(112deg, #091c55 0%, #123574 100%) !important;
  color: #fff !important;
}
.modal .modal-header::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #f39800, #ffbf47);
  content: "";
}
.modal .modal-header .modal-title,
.modal .modal-header .btn-close { color: #fff !important; }
.modal .modal-header .btn-close { filter: invert(1) grayscale(1) brightness(2); opacity: .85; }
.modal .modal-header .btn-close:hover { opacity: 1; }

/* Five coordinated application palettes, switched from the sidebar. */
:root[data-color-theme="blue"] {
  --theme-deep: #091c55; --theme-primary: #2f78ed; --theme-strong: #1d5fc8;
  --theme-soft: #eaf3ff; --theme-accent: #f39800;
  --brand-ink: var(--theme-deep); --brand: var(--theme-primary);
  --brand-strong: var(--theme-strong); --brand-soft: var(--theme-soft);
}
:root[data-color-theme="emerald"] {
  --theme-deep: #0c4038; --theme-primary: #159570; --theme-strong: #0d7659;
  --theme-soft: #e7f7f1; --theme-accent: #e5a93e;
  --brand-ink: var(--theme-deep); --brand: var(--theme-primary);
  --brand-strong: var(--theme-strong); --brand-soft: var(--theme-soft);
}
:root[data-color-theme="violet"] {
  --theme-deep: #302052; --theme-primary: #7654d6; --theme-strong: #5a3bb7;
  --theme-soft: #f0eafe; --theme-accent: #e4a64a;
  --brand-ink: var(--theme-deep); --brand: var(--theme-primary);
  --brand-strong: var(--theme-strong); --brand-soft: var(--theme-soft);
}
:root[data-color-theme="teal"] {
  --theme-deep: #103c52; --theme-primary: #0f9ba8; --theme-strong: #087984;
  --theme-soft: #e5f6f7; --theme-accent: #f2a65a;
  --brand-ink: var(--theme-deep); --brand: var(--theme-primary);
  --brand-strong: var(--theme-strong); --brand-soft: var(--theme-soft);
}
:root[data-color-theme="rose"] {
  --theme-deep: #58253d; --theme-primary: #c84c73; --theme-strong: #a6345a;
  --theme-soft: #fcecf2; --theme-accent: #e8a14c;
  --brand-ink: var(--theme-deep); --brand: var(--theme-primary);
  --brand-strong: var(--theme-strong); --brand-soft: var(--theme-soft);
}
html[data-color-theme] #header.app-header { box-shadow: inset 0 -3px 0 var(--theme-accent), 0 2px 12px rgba(32,42,68,.035); }
html[data-color-theme] #header .navbar-brand { color: var(--theme-deep); }
html[data-color-theme] #header .navbar-logo { background: var(--theme-primary); box-shadow: 0 0 0 5px var(--theme-soft); }
html[data-color-theme] #sidebar.app-sidebar,
html[data-color-theme] .app-sidebar-bg { background: var(--theme-deep) !important; }
html[data-color-theme] #sidebar .menu-profile-cover { background: linear-gradient(120deg, var(--theme-primary), var(--theme-deep)); }
html[data-color-theme] #sidebar .menu-item.active > .menu-link { background: var(--theme-primary); box-shadow: 0 6px 16px color-mix(in srgb, var(--theme-deep) 36%, transparent); }
html[data-color-theme] #sidebar .menu-link:hover { background: color-mix(in srgb, var(--theme-primary) 28%, transparent); }
html[data-color-theme] #sidebar .active .menu-icon { color: #fff; }
html[data-color-theme] #content .page-header,
html[data-color-theme] #content .panel-title,
html[data-color-theme] #content .panel-heading { color: var(--theme-deep); }
html[data-color-theme] #content .page-header::after { background: var(--theme-accent); }
html[data-color-theme] #content .btn-primary,
html[data-color-theme] #content .btn-theme,
html[data-color-theme] #content .btn-dark {
  border-color: var(--theme-deep) !important;
  background: var(--theme-deep) !important;
  color: #fff !important;
}
html[data-color-theme] #content .btn-primary:hover,
html[data-color-theme] #content .btn-theme:hover,
html[data-color-theme] #content .btn-dark:hover { border-color: var(--theme-primary) !important; background: var(--theme-primary) !important; }
html[data-color-theme] #daterange-filter { background: var(--theme-deep) !important; }
html[data-color-theme] #content .form-control:focus,
html[data-color-theme] #content .form-select:focus { border-color: var(--theme-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary) 16%, transparent); }
html[data-color-theme] #content .dataTables_wrapper .dataTables_paginate .paginate_button.current { border-color: var(--theme-soft) !important; color: var(--theme-deep) !important; background: var(--theme-soft) !important; }
html[data-color-theme] #content .dataTables_wrapper .dataTables_paginate .paginate_button:hover { border-color: var(--theme-primary) !important; background: var(--theme-soft) !important; color: var(--theme-deep) !important; }
html[data-color-theme] #content table.dataTable tbody td a,
html[data-color-theme] #content .table tbody td a { color: var(--theme-deep); }
html[data-color-theme] #content table.dataTable tbody td a:hover,
html[data-color-theme] #content .table tbody td a:hover { color: var(--theme-primary); }
html[data-color-theme] #content .modal .modal-header,
html[data-color-theme] #content .modal .modal-header.bg-primary,
html[data-color-theme] .modal .modal-header,
html[data-color-theme] .modal .modal-header.bg-primary { background: linear-gradient(112deg, var(--theme-deep), color-mix(in srgb, var(--theme-deep) 76%, var(--theme-primary))) !important; }
html[data-color-theme] .modal .modal-header::after { background: linear-gradient(90deg, var(--theme-accent), color-mix(in srgb, var(--theme-accent) 55%, white)); }
html[data-color-theme] .modal .btn-primary { border-color: var(--theme-deep) !important; background: var(--theme-deep) !important; }
html[data-color-theme] .modal .btn-primary:hover { border-color: var(--theme-primary) !important; background: var(--theme-primary) !important; }
html[data-color-theme] .daterangepicker td.start-date,
html[data-color-theme] .daterangepicker td.end-date,
html[data-color-theme] .daterangepicker td.active,
html[data-color-theme] .daterangepicker td.active:hover { background: var(--theme-primary); }
html[data-color-theme] .daterangepicker .drp-buttons .btn-primary { border-color: var(--theme-deep); background: var(--theme-deep); }
html[data-color-theme] .daterangepicker .ranges li.active { color: var(--theme-deep); background: var(--theme-soft); }
html[data-color-theme] #stats-container .widget.widget-stats .stats-icon { background: var(--theme-soft); color: var(--theme-primary) !important; }
html[data-color-theme] #stats-container .widget.widget-stats { border-left-color: var(--theme-primary) !important; }
html[data-color-theme] #services-container .widget.widget-stats .stats-icon { color: var(--theme-primary) !important; }
@media (prefers-reduced-motion: reduce) { .theme-picker-option { transition: none; } }

/* Complete palette coverage, including legacy !important rules and hover states. */
html[data-color-theme] #sidebar.app-sidebar,
html[data-color-theme] #sidebar.app-sidebar .app-sidebar-content,
html[data-color-theme] .app-sidebar-bg { background: var(--theme-deep) !important; border-right-color: color-mix(in srgb, var(--theme-primary) 48%, var(--theme-deep)); }
html[data-color-theme] #sidebar .menu-header { color: color-mix(in srgb, var(--theme-primary) 52%, white) !important; }
html[data-color-theme] #sidebar .menu-link:hover,
html[data-color-theme] #sidebar .menu-item:not(.active) > .menu-link:hover { background: color-mix(in srgb, var(--theme-primary) 34%, var(--theme-deep)) !important; color: #fff !important; }
html[data-color-theme] #sidebar .menu-link:hover .menu-icon,
html[data-color-theme] #sidebar .menu-link:hover .menu-icon i { color: #fff !important; }
html[data-color-theme] #sidebar .menu-item.active > .menu-link { background: var(--theme-primary) !important; color: #fff !important; box-shadow: 0 7px 18px color-mix(in srgb, var(--theme-primary) 30%, transparent) !important; }
html[data-color-theme] #sidebar .menu-item.active > .menu-link::before { background: var(--theme-accent) !important; }
html[data-color-theme] #sidebar .menu-item.active .menu-icon,
html[data-color-theme] #sidebar .menu-item.active .menu-icon i { color: #fff !important; }
html[data-color-theme] #sidebar .app-sidebar-minify-btn { border-color: color-mix(in srgb, var(--theme-primary) 54%, var(--theme-deep)) !important; background: var(--theme-deep) !important; }
html[data-color-theme] #sidebar .app-sidebar-minify-btn:hover { background: var(--theme-primary) !important; }
html[data-color-theme] #content .widget-stats:nth-child(4n+1),
html[data-color-theme] #content .widget-stats:nth-child(4n+2),
html[data-color-theme] #content .widget-stats:nth-child(4n+3),
html[data-color-theme] #content .widget-stats:nth-child(4n) { border-top-color: var(--theme-primary) !important; }
html[data-color-theme] #stats-container .widget.widget-stats { border-left-color: var(--theme-primary) !important; }
html[data-color-theme] #stats-container .widget.widget-stats .stats-info p { color: var(--theme-deep) !important; }
html[data-color-theme] #stats-container .widget.widget-stats .stats-icon { color: var(--theme-primary) !important; }
html[data-color-theme] #stats-container a:hover .widget.widget-stats { border-color: color-mix(in srgb, var(--theme-primary) 40%, white) !important; border-left-color: var(--theme-primary) !important; box-shadow: 0 12px 28px color-mix(in srgb, var(--theme-deep) 14%, transparent) !important; }
html[data-color-theme] #content .btn-primary:hover,
html[data-color-theme] #content .btn-theme:hover,
html[data-color-theme] #content .btn-dark:hover { filter: brightness(.88); box-shadow: 0 8px 18px color-mix(in srgb, var(--theme-deep) 24%, transparent); }
html[data-color-theme] #content .panel-heading-btn > .btn:hover { border-color: var(--theme-primary) !important; background: var(--theme-primary) !important; color: #fff !important; }
html[data-color-theme] #content .table tbody tr:hover > *,
html[data-color-theme] #content table.dataTable tbody tr:hover > * { background: var(--theme-soft) !important; }
html[data-color-theme] #content .table tbody td a:hover,
html[data-color-theme] #content table.dataTable tbody td a:hover { color: var(--theme-primary) !important; }
html[data-color-theme] #content .form-control:focus,
html[data-color-theme] #content .form-select:focus,
html[data-color-theme] #content .dataTables_wrapper .dataTables_filter input:focus { border-color: var(--theme-primary) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary) 16%, transparent) !important; }
html[data-color-theme] #content .dataTables_wrapper .dataTables_paginate .paginate_button.current,
html[data-color-theme] #content .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover { border-color: var(--theme-soft) !important; color: var(--theme-deep) !important; background: var(--theme-soft) !important; }
html[data-color-theme] #content .dataTables_wrapper .dataTables_paginate .paginate_button:not(.current):hover { border-color: var(--theme-primary) !important; color: var(--theme-deep) !important; background: var(--theme-soft) !important; }
html[data-color-theme] .dropdown-menu .dropdown-item:hover,
html[data-color-theme] .dropdown-menu .dropdown-item:focus { color: var(--theme-deep); background: var(--theme-soft); }
html[data-color-theme] .daterangepicker td.available:hover,
html[data-color-theme] .daterangepicker th.available:hover { color: var(--theme-deep); background: var(--theme-soft); }
html[data-color-theme] .daterangepicker .drp-buttons .btn-primary:hover { border-color: var(--theme-primary); background: var(--theme-primary); }
@media (max-width: 767.98px) {
}
html[data-color-theme] .text-primary,
html[data-color-theme] .link-primary { color: var(--theme-primary) !important; }
html[data-color-theme] .link-primary:hover { color: var(--theme-strong) !important; }
html[data-color-theme] .bg-primary { background-color: var(--theme-deep) !important; }
html[data-color-theme] .border-primary { border-color: var(--theme-primary) !important; }
html[data-color-theme] .btn-outline-primary { border-color: var(--theme-primary) !important; color: var(--theme-deep) !important; }
html[data-color-theme] .btn-outline-primary:hover,
html[data-color-theme] .btn-outline-primary:focus-visible { border-color: var(--theme-primary) !important; background: var(--theme-primary) !important; color: #fff !important; }

/* Final audit: finish theme-aware hover and focus feedback on remaining controls. */
html[data-color-theme] #header .navbar-user .navbar-link:hover,
html[data-color-theme] #header .navbar-user .navbar-link[aria-expanded="true"] { border-color: color-mix(in srgb, var(--theme-primary) 30%, white); background: var(--theme-soft); color: var(--theme-deep); }
html[data-color-theme] .pace .pace-progress { background: var(--theme-primary); }
html[data-color-theme] #content #filterForm #date.input-group:focus-within { border-color: var(--theme-primary) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary) 16%, transparent) !important; }
html[data-color-theme] #content #filterForm #date.input-group > .input-group-text { color: var(--theme-primary); }
html[data-color-theme] #content #filterForm #date.input-group:hover > .input-group-text,
html[data-color-theme] #content #filterForm #date.input-group:focus-within > .input-group-text { color: var(--theme-deep); background: var(--theme-soft); }
html[data-color-theme] #content .select2-container--focus .select2-selection { border-color: var(--theme-primary) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary) 16%, transparent) !important; }
html[data-color-theme] .datepicker table tr td.day:hover,
html[data-color-theme] .datepicker table tr td span:hover,
html[data-color-theme] .datepicker thead tr:first-child th:hover,
html[data-color-theme] .datepicker tfoot tr th:hover { color: var(--theme-deep) !important; background: var(--theme-soft) !important; }
html[data-color-theme] .datepicker table tr td.today:not(.active) { color: var(--theme-deep) !important; background: var(--theme-soft) !important; }
html[data-color-theme] .datepicker table tr td.active,
html[data-color-theme] .datepicker table tr td.active:hover,
html[data-color-theme] .datepicker table tr td span.active,
html[data-color-theme] .datepicker table tr td span.active:hover { border-color: var(--theme-primary) !important; background: var(--theme-primary) !important; }
html[data-color-theme] .daterangepicker .ranges li:hover { color: var(--theme-deep); background: var(--theme-soft); }
html[data-color-theme] .daterangepicker .calendar-table .next:hover,
html[data-color-theme] .daterangepicker .calendar-table .prev:hover { background: var(--theme-soft); }
html[data-color-theme] .daterangepicker td.today:not(.active):not(.in-range) { box-shadow: inset 0 0 0 1px var(--theme-primary); color: var(--theme-deep); }
html[data-color-theme] .modal .btn-primary:focus-visible { border-color: var(--theme-primary) !important; background: var(--theme-primary) !important; }
html[data-color-theme] #stats-container a:hover .widget.widget-stats { border-top-color: var(--theme-primary) !important; }
html[data-color-theme] #content a:hover .widget-stats { border-top-color: var(--theme-primary) !important; }
html[data-color-theme] #content a:hover .widget-stats .stats-icon,
html[data-color-theme] #stats-container a:hover .widget.widget-stats .stats-icon { border-color: var(--theme-primary) !important; background: var(--theme-primary) !important; color: #fff !important; }
html[data-color-theme] #content a:focus-visible,
html[data-color-theme] #header a:focus-visible { outline-color: var(--theme-primary); }

/* Keep every palette name readable in the expanded side menu. */

/* Dashboard date-range control: preserve readable contrast in every palette. */
html[data-color-theme] #content #daterange-filter {
  border-color: var(--theme-deep) !important;
  background: var(--theme-deep) !important;
  color: #fff !important;
  box-shadow: 0 5px 16px color-mix(in srgb, var(--theme-deep) 18%, transparent);
}
html[data-color-theme] #content #daterange-filter span,
html[data-color-theme] #content #daterange-filter i,
html[data-color-theme] #content #daterange-filter .caret { color: #fff !important; }
html[data-color-theme] #content #daterange-filter .caret { border-top-color: rgba(255,255,255,.82) !important; }
html[data-color-theme] #content #daterange-filter:hover,
html[data-color-theme] #content #daterange-filter:focus-visible,
html[data-color-theme] #content #daterange-filter[aria-expanded="true"] {
  border-color: var(--theme-primary) !important;
  background: var(--theme-primary) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--theme-primary) 28%, transparent);
}
html[data-color-theme] #content #daterange-filter:focus-visible { outline: 3px solid color-mix(in srgb, var(--theme-primary) 28%, white); outline-offset: 2px; }

/* App Settings drawer and the expanded theme palette. */
:root[data-color-theme="coral"] { --theme-deep:#59262a; --theme-primary:#ff5958; --theme-strong:#df4347; --theme-soft:#fff0ef; --theme-accent:#f5ad46; --brand-ink:var(--theme-deep); --brand:var(--theme-primary); --brand-strong:var(--theme-strong); --brand-soft:var(--theme-soft); }
:root[data-color-theme="orange"] { --theme-deep:#512d0c; --theme-primary:#f39216; --theme-strong:#c96c0b; --theme-soft:#fff3e3; --theme-accent:#f9c74f; --brand-ink:var(--theme-deep); --brand:var(--theme-primary); --brand-strong:var(--theme-strong); --brand-soft:var(--theme-soft); }
:root[data-color-theme="gold"] { --theme-deep:#4d4000; --theme-primary:#e4bd00; --theme-strong:#b09400; --theme-soft:#fff9da; --theme-accent:#f18d32; --brand-ink:var(--theme-deep); --brand:var(--theme-primary); --brand-strong:var(--theme-strong); --brand-soft:var(--theme-soft); }
:root[data-color-theme="lime"] { --theme-deep:#354d1f; --theme-primary:#8bc34a; --theme-strong:#6fa334; --theme-soft:#f1f8e8; --theme-accent:#ecc34b; --brand-ink:var(--theme-deep); --brand:var(--theme-primary); --brand-strong:var(--theme-strong); --brand-soft:var(--theme-soft); }
:root[data-color-theme="cyan"] { --theme-deep:#104351; --theme-primary:#22b0d3; --theme-strong:#138ca9; --theme-soft:#e8f8fc; --theme-accent:#ffad4d; --brand-ink:var(--theme-deep); --brand:var(--theme-primary); --brand-strong:var(--theme-strong); --brand-soft:var(--theme-soft); }
:root[data-color-theme="indigo"] { --theme-deep:#2b315f; --theme-primary:#5968bd; --theme-strong:#4554a4; --theme-soft:#eef0ff; --theme-accent:#f2a24b; --brand-ink:var(--theme-deep); --brand:var(--theme-primary); --brand-strong:var(--theme-strong); --brand-soft:var(--theme-soft); }
:root[data-color-theme="onyx"] { --theme-deep:#171b22; --theme-primary:#3e4653; --theme-strong:#272d37; --theme-soft:#eff1f4; --theme-accent:#f39800; --brand-ink:var(--theme-deep); --brand:var(--theme-primary); --brand-strong:var(--theme-strong); --brand-soft:var(--theme-soft); }
.theme-settings-trigger {
  position: fixed; z-index: 1090; top: 52%; right: 0; display: grid; width: 48px; height: 50px;
  place-items: center; border: 1px solid #e2e7ef; border-right: 0; border-radius: 13px 0 0 13px;
  background: #fff; color: #29364d; box-shadow: 0 8px 25px rgba(20,32,58,.18);
  font-size: 20px; cursor: pointer; transition: color .18s ease,background .18s ease,transform .18s ease;
}
.theme-settings-trigger:hover,.theme-settings-trigger[aria-expanded="true"] { transform: translateX(-2px); background: var(--theme-primary); color: #fff; }
.theme-settings-trigger:focus-visible,.theme-settings-close:focus-visible,.theme-color-swatch:focus-visible { outline: 3px solid var(--theme-primary); outline-offset: 3px; }
.theme-settings-backdrop[hidden] { display: none !important; }
.theme-settings-backdrop { position: fixed; z-index: 1098; inset: 0; background: rgba(14,22,38,.28); opacity: 0; transition: opacity .28s ease; }
.theme-settings-backdrop.is-open { opacity: 1; }
.theme-settings-drawer {
  position: fixed; z-index: 1099; top: 0; right: 0; bottom: 0; display: flex; width: min(360px,92vw); height: 100vh; height: 100dvh;
  flex-direction: column; overflow-y: auto; border-left: 1px solid #e5e9f0; background: #fff;
  box-shadow: -18px 0 48px rgba(18,32,64,.18); visibility: hidden; pointer-events: none;
  transform: translateX(102%); transition: transform .3s cubic-bezier(.2,.75,.25,1),visibility .3s ease;
}
.theme-settings-drawer.is-open { visibility: visible; pointer-events: auto; transform: translateX(0); }
.theme-settings-header { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid #e8edf4; }
.theme-settings-header h2 { margin: 0; color: #263449; font-size: 19px; font-weight: 750; letter-spacing: -.02em; }
.theme-settings-header p { margin: 5px 0 0; color: #788398; font-size: 12px; }
.theme-settings-close { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border: 1px solid #e4e9f1; border-radius: 10px; background: #fff; color: #58647a; cursor: pointer; transition: background .15s ease,color .15s ease,border-color .15s ease; }
.theme-settings-close:hover { border-color: var(--theme-primary); background: var(--theme-soft); color: var(--theme-deep); }
.theme-settings-section { padding: 22px; }
.theme-settings-section h3 { margin: 0 0 5px; color: #34415a; font-size: 14px; font-weight: 750; }
.theme-settings-current { margin: 0 0 17px; color: #818b9c; font-size: 12px; }
.theme-settings-current strong { color: var(--theme-deep); font-weight: 700; }
.theme-settings-swatches { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 11px; }
.theme-color-swatch { position: relative; display: grid; width: 100%; aspect-ratio: 1; place-items: center; padding: 0; border: 0; border-radius: 12px; background: transparent; cursor: pointer; transition: transform .16s ease,box-shadow .16s ease; }
.theme-color-swatch > span { display: grid; width: 100%; height: 100%; place-items: center; border-radius: 11px; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.theme-color-swatch:hover { transform: translateY(-2px); box-shadow: 0 5px 12px color-mix(in srgb,var(--swatch) 28%,transparent); }
.theme-color-swatch.is-selected { box-shadow: 0 0 0 2px #fff,0 0 0 4px var(--theme-primary); }
.theme-color-swatch.is-selected::after { color: var(--swatch-contrast); font-size: 19px; font-weight: 800; line-height: 1; content: "✓"; text-shadow: 0 1px 3px rgba(0,0,0,.22); }
.theme-settings-open { overflow: hidden; }
@media (max-width: 420px) { .theme-settings-swatches { gap: 9px; } .theme-settings-section { padding: 20px; } }
@media (prefers-reduced-motion: reduce) { .theme-settings-trigger,.theme-settings-backdrop,.theme-settings-drawer,.theme-settings-close,.theme-color-swatch { transition: none !important; } }
/* Compact workspace layout: keep more useful table content visible. */
@media (min-width: 768px) {
  #sidebar.app-sidebar, #sidebar.app-sidebar .app-sidebar-content { width: 210px !important; }
  #app.app-sidebar-fixed #content.app-content { margin-left: 210px !important; }
  .app-sidebar-bg { width: 210px !important; }
}
#header.app-header { min-height: 68px; }
#content.app-content { padding-top: 20px; padding-bottom: 24px; }
#content .page-header { margin-bottom: 14px; }
#content .panel-heading { min-height: 62px; padding-top: 14px; padding-bottom: 14px; }
#content .panel-body, #content .card-body { padding: 16px; }
#content #filterForm { margin-bottom: 12px; padding: 14px; }
#content #filterForm > .row { margin-bottom: 0 !important; }
#content #filterForm .form-control,
#content #filterForm .form-select,
#content #filterForm .btn { min-height: 42px; }
#content .dataTables_wrapper .dataTables_length,
#content .dataTables_wrapper .dataTables_filter { margin-bottom: 8px; }
#content table.dataTable thead th,
#content .table thead th { padding: 10px 12px !important; }
#content table.dataTable tbody td,
#content .table tbody td { padding: 9px 12px !important; }
#content table.dataTable tbody tr,
#content .table tbody tr { height: auto; }
@media (max-width: 767.98px) {
  #content.app-content { padding-top: 16px; padding-bottom: 20px; }
  #content .panel-body, #content .card-body { padding: 12px; }
  #content #filterForm { padding: 10px; }
}

/* Project list: prioritize the data table and remove unused filter-card space. */
@media (min-width: 768px) {
  #sidebar.app-sidebar, #sidebar.app-sidebar .app-sidebar-content { width: 190px !important; }
  #app.app-sidebar-fixed #content.app-content { margin-left: 190px !important; }
  .app-sidebar-bg { width: 190px !important; }
}
#content.project-list-page { padding-top: 14px; padding-bottom: 14px; }
#content.project-list-page > .row { margin-bottom: 0; }
#content.project-list-page .page-header { margin-bottom: 10px; }
#content.project-list-page .page-header::after { margin-top: 6px; }
#content.project-list-page .panel-heading { min-height: 46px; padding: 8px 14px; }
#content.project-list-page .panel-heading-btn { gap: 5px; }
#content.project-list-page .panel-heading-btn > .btn { width: 30px; min-width: 30px; height: 30px; min-height: 30px; flex-basis: 30px; }
#content.project-list-page > .panel .panel-body { padding: 10px 12px; }
#content.project-list-page #filterForm { margin: 0 0 8px; padding: 8px; border-radius: 9px; }
#content.project-list-page #filterForm > .row { display: grid !important; grid-template-columns: minmax(190px,1fr) minmax(180px,1.25fr) 145px 100px; gap: 8px; }
#content.project-list-page #filterForm > .row > [class*="col-"] { width: auto; max-width: none; padding: 0; }
#content.project-list-page #filterForm .form-control,
#content.project-list-page #filterForm .form-select,
#content.project-list-page #filterForm .btn,
#content.project-list-page #filterForm #date.input-group > .form-control,
#content.project-list-page #filterForm #date.input-group > .input-group-text { min-height: 36px; height: 36px; }
#content.project-list-page #filterForm .btn { padding: 6px 10px; }
#content.project-list-page .dataTables_wrapper .dataTables_length,
#content.project-list-page .dataTables_wrapper .dataTables_filter { margin-bottom: 6px; }
#content.project-list-page .dataTables_wrapper .dataTables_filter input,
#content.project-list-page .dataTables_wrapper .dataTables_length select { min-height: 34px; height: 34px; }
#content.project-list-page table.dataTable thead th,
#content.project-list-page .table thead th { padding: 8px 10px !important; }
#content.project-list-page table.dataTable tbody td,
#content.project-list-page .table tbody td { padding: 6px 10px !important; line-height: 1.25; }
#content.project-list-page table.dataTable tbody td .btn,
#content.project-list-page .table tbody td .btn { padding: 4px 7px; font-size: 11px; }
@media (max-width: 767.98px) {
  #content.project-list-page #filterForm > .row { grid-template-columns: 1fr 1fr; }
  #content.project-list-page #filterForm > .row > [class*="col-"] { grid-column: auto; }
  #content.project-list-page #filterForm > .row > :first-child { grid-column: 1 / -1; }
  #content.project-list-page > .panel .panel-body { padding: 9px; }
}

/* Dense project view: give the table the full workspace and reduce repeated chrome. */
@media (min-width: 768px) {
  #app.app-sidebar-fixed.app-sidebar-minified #content.project-list-page { margin-left: 64px !important; }
  #content.project-list-page #sidebar.app-sidebar,
  #content.project-list-page #sidebar.app-sidebar .app-sidebar-content,
  #content.project-list-page .app-sidebar-bg { width: 64px !important; }
}
#content.project-list-page { padding: 10px 16px 12px; }
#content.project-list-page .page-header { margin: 0 0 8px; font-size: 27px; }
#content.project-list-page .page-header::after { display: none; }
#content.project-list-page > .panel > .panel-heading { display: none; }
#content.project-list-page > .panel > .panel-body { padding: 0; }
#content.project-list-page #filterForm { margin-bottom: 6px; padding: 6px 8px; border-radius: 8px; }
#content.project-list-page #filterForm > .row { grid-template-columns: minmax(170px, .9fr) minmax(160px, 1fr) 130px 86px; gap: 6px; }
#content.project-list-page #filterForm .form-control,
#content.project-list-page #filterForm .form-select,
#content.project-list-page #filterForm .btn,
#content.project-list-page #filterForm #date.input-group > .form-control,
#content.project-list-page #filterForm #date.input-group > .input-group-text { min-height: 32px; height: 32px; font-size: 12px; }
#content.project-list-page #filterForm .btn { padding: 4px 8px; }
#content.project-list-page .dataTables_wrapper .dataTables_length,
#content.project-list-page .dataTables_wrapper .dataTables_filter { margin-bottom: 4px; }
#content.project-list-page .dataTables_wrapper .dataTables_length select,
#content.project-list-page .dataTables_wrapper .dataTables_filter input { min-height: 30px; height: 30px; padding-top: 3px; padding-bottom: 3px; }
#content.project-list-page table.dataTable { margin-top: 2px !important; }
#content.project-list-page table.dataTable thead th { padding: 7px 26px 7px 9px !important; font-size: 11px; line-height: 1.2; white-space: normal !important; }
#content.project-list-page table.dataTable tbody td { padding: 5px 9px !important; font-size: 12px; line-height: 1.2; }
#content.project-list-page table.dataTable tbody td .dtr-control:before { width: 17px !important; height: 17px !important; font-size: 12px !important; line-height: 15px !important; }
#content.project-list-page .dataTables_wrapper .dataTables_info,
#content.project-list-page .dataTables_wrapper .dataTables_paginate { padding-top: 6px; font-size: 12px; }
#content.project-list-page .total-sum.row { justify-content: flex-end; gap: 18px; margin-top: 5px; padding: 7px 10px; border-radius: 7px; }
#content.project-list-page .total-sum.row > div { width: auto; flex: 0 0 auto; }
#content.project-list-page .total-sum h4 { font-size: 12px; }
@media (max-width: 767.98px) {
  #content.project-list-page { padding: 12px 10px 16px; }
  #content.project-list-page .page-header { font-size: 24px; }
  #content.project-list-page #filterForm { padding: 8px; }
  #content.project-list-page #filterForm > .row { grid-template-columns: 1fr 1fr; }
  #content.project-list-page #filterForm > .row > :first-child { grid-column: 1 / -1; }
  #content.project-list-page .total-sum.row { justify-content: flex-start; flex-wrap: wrap; }
}
@media (min-width: 768px) {
  #app.app-sidebar-minified #sidebar.app-sidebar,
  #app.app-sidebar-minified #sidebar.app-sidebar .app-sidebar-content,
  #app.app-sidebar-minified .app-sidebar-bg { width: 64px !important; }
  #app.app-sidebar-minified #sidebar.app-sidebar .app-sidebar-minify-btn { margin: 18px auto !important; }
}

/* Shared compact layout for every app page. */
@media (min-width: 768px) {
  #app.app-sidebar-fixed.app-sidebar-minified #sidebar.app-sidebar,
  #app.app-sidebar-fixed.app-sidebar-minified #sidebar.app-sidebar .app-sidebar-content,
  #app.app-sidebar-fixed.app-sidebar-minified .app-sidebar-bg { width: 64px !important; }
  #app.app-sidebar-fixed.app-sidebar-minified #content.app-content { margin-left: 64px !important; }
}
#content.app-content { padding-top: 16px; padding-bottom: 18px; }
#content .page-header { margin-bottom: 12px; }
#content .panel, #content .card { margin-bottom: 14px; }
#content .panel-heading, #content .card-header { min-height: 48px; padding: 11px 16px; }
#content .panel-body, #content .card-body { padding: 12px !important; }
#content #filterForm { margin-bottom: 8px; padding: 9px; }
#content #filterForm > .row { margin-bottom: 0 !important; }
#content #filterForm .form-control,
#content #filterForm .form-select,
#content #filterForm .btn { min-height: 36px; }
#content .dataTables_wrapper .dataTables_length,
#content .dataTables_wrapper .dataTables_filter { margin-bottom: 5px; }
#content .dataTables_wrapper .dataTables_length select,
#content .dataTables_wrapper .dataTables_filter input { min-height: 34px; height: 34px; }
#content table.dataTable thead th,
#content .table thead th { padding: 7px 10px !important; }
#content table.dataTable tbody td,
#content .table tbody td { padding: 6px 10px !important; line-height: 1.25; }
#content .dataTables_wrapper .dataTables_info,
#content .dataTables_wrapper .dataTables_paginate { padding-top: 6px; }
#content .total-sum.row { gap: 12px; margin-top: 6px; padding: 8px 10px; }
@media (max-width: 767.98px) {
  #content.app-content { padding: 14px 12px 18px; }
  #content .panel-body, #content .card-body { padding: 10px !important; }
  #content #filterForm { padding: 8px; }
}

/* Consistent compact spacing and table density for every screen. */
#content.compact-page { padding: 12px clamp(14px,1.8vw,28px) 16px; }
#content.compact-page > .row { margin-bottom: 8px; }
#content.compact-page .page-header { margin: 0 0 10px; font-size: clamp(23px,2vw,29px); }
#content.compact-page .panel, #content.compact-page .card { margin-bottom: 12px; }
#content.compact-page .panel-heading, #content.compact-page .card-header { min-height: 44px; padding: 9px 14px; }
#content.compact-page .panel-heading-btn { gap: 5px; }
#content.compact-page .panel-heading-btn > .btn { width: 30px; min-width: 30px; height: 30px; min-height: 30px; flex-basis: 30px; }
#content.compact-page .panel-body, #content.compact-page .card-body { padding: 11px !important; }
#content.compact-page .form-group,
#content.compact-page .mb-3 { margin-bottom: .6rem !important; }
#content.compact-page label,
#content.compact-page .form-label { margin-bottom: 3px; }
#content.compact-page .form-control:not(textarea),
#content.compact-page .form-select { min-height: 36px; padding-top: 5px; padding-bottom: 5px; }
#content.compact-page .btn { min-height: 34px; padding-top: 6px; padding-bottom: 6px; }
#content.compact-page #filterForm { margin-bottom: 7px; padding: 8px; }
#content.compact-page #filterForm > .row { margin-bottom: 0 !important; }
#content.compact-page .dataTables_wrapper .dataTables_length,
#content.compact-page .dataTables_wrapper .dataTables_filter { margin-bottom: 4px; }
#content.compact-page .dataTables_wrapper .dataTables_length select,
#content.compact-page .dataTables_wrapper .dataTables_filter input { min-height: 32px; height: 32px; }
#content.compact-page table.dataTable thead th,
#content.compact-page .table thead th { padding: 7px 9px !important; }
#content.compact-page table.dataTable tbody td,
#content.compact-page .table tbody td { padding: 5px 9px !important; line-height: 1.25; }
#content.compact-page .dataTables_wrapper .dataTables_info,
#content.compact-page .dataTables_wrapper .dataTables_paginate { padding-top: 5px; }
#content.compact-page .table-responsive { margin-bottom: 8px; }
#content.compact-page .total-sum.row { gap: 12px; margin-top: 5px; padding: 7px 9px; }
#content.compact-page .total-sum h4 { margin: 0; font-size: 12px; }
@media (max-width: 767.98px) {
  #content.compact-page { padding: 12px 10px 16px; }
  #content.compact-page .panel-body, #content.compact-page .card-body { padding: 9px !important; }
  #content.compact-page #filterForm { padding: 7px; }
}

/* Strong, consistent density for every DataTable screen. */
@media (min-width: 768px) {
  #app.app-sidebar-fixed.app-sidebar-minified #sidebar.app-sidebar,
  #app.app-sidebar-fixed.app-sidebar-minified #sidebar.app-sidebar .app-sidebar-content,
  #app.app-sidebar-fixed.app-sidebar-minified .app-sidebar-bg { width: 64px !important; }
  #app.app-sidebar-fixed.app-sidebar-minified #content.app-content { margin-left: 64px !important; }
}
#content.compact-page.table-list-page > .panel > .panel-heading { display: none !important; }
#content.compact-page.table-list-page > .panel > .panel-body { padding: 0 !important; }
#content.compact-page.table-list-page #filterForm { margin: 0 0 5px !important; padding: 6px 8px !important; border-radius: 7px; }
#content.compact-page.table-list-page #filterForm > .row { display: grid !important; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)) !important; gap: 6px !important; margin: 0 !important; align-items: center; }
#content.compact-page.table-list-page #filterForm > .row > [class*="col-"] { width: auto !important; max-width: none !important; min-width: 0; padding: 0 !important; }
#content.compact-page.table-list-page #filterForm .form-control,
#content.compact-page.table-list-page #filterForm .form-select,
#content.compact-page.table-list-page #filterForm .btn,
#content.compact-page.table-list-page #filterForm .select2-container .select2-selection,
#content.compact-page.table-list-page #filterForm #date.input-group,
#content.compact-page.table-list-page #filterForm #date.input-group > .form-control,
#content.compact-page.table-list-page #filterForm #date.input-group > .input-group-text { height: 32px !important; min-height: 32px !important; padding-top: 3px !important; padding-bottom: 3px !important; font-size: 12px; }
#content.compact-page.table-list-page #filterForm .select2-container--default .select2-selection--multiple { overflow-y: auto; }
#content.compact-page.table-list-page #filterForm .select2-selection--multiple .select2-selection__rendered { line-height: 24px; }
#content.compact-page.table-list-page .dataTables_wrapper .dataTables_length,
#content.compact-page.table-list-page .dataTables_wrapper .dataTables_filter { margin: 0 0 4px; }
#content.compact-page.table-list-page .dataTables_wrapper .dataTables_length select,
#content.compact-page.table-list-page .dataTables_wrapper .dataTables_filter input { height: 30px !important; min-height: 30px !important; padding: 3px 7px; }
#content.compact-page.table-list-page table.dataTable { margin-top: 2px !important; }
#content.compact-page.table-list-page table.dataTable thead th,
#content.compact-page.table-list-page .table thead th { padding: 6px 24px 6px 8px !important; font-size: 11px; line-height: 1.15; }
#content.compact-page.table-list-page table.dataTable tbody td,
#content.compact-page.table-list-page .table tbody td { padding: 8px 8px !important; font-size: 12px; line-height: 1.15; }
#content.compact-page.table-list-page table.dataTable tbody td .btn,
#content.compact-page.table-list-page .table tbody td .btn { min-height: 28px !important; padding: 3px 6px !important; font-size: 11px;  }
#content.compact-page.table-list-page .dataTables_wrapper .dataTables_info,
#content.compact-page.table-list-page .dataTables_wrapper .dataTables_paginate { padding-top: 4px; font-size: 12px; }
#content.compact-page.table-list-page .dataTables_wrapper .dataTables_paginate .paginate_button { min-height: 28px; padding: 4px 8px !important; }
#content.compact-page.table-list-page .total-sum.row { justify-content: flex-end; gap: 16px; margin: 5px 0 0; padding: 6px 8px; }
#content.compact-page.table-list-page .total-sum.row > div { width: auto; flex: 0 0 auto; }
#content.compact-page.table-list-page .total-sum h4 { margin: 0; font-size: 12px; }
@media (max-width: 767.98px) {
  #content.compact-page.table-list-page #filterForm > .row { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  #content.compact-page.table-list-page #filterForm > .row > :first-child { grid-column: 1 / -1; }
  #content.compact-page.table-list-page > .panel > .panel-body { padding: 0 !important; }
}

/* Keep a small inset around compact data tables so the first row is not flush to the card edge. */
#content.compact-page.table-list-page > .panel > .panel-body { padding: 8px !important; }
#content.compact-page.table-list-page .dataTables_wrapper { padding: 0 2px; }
#content.compact-page.table-list-page table.dataTable { margin-bottom: 5px !important; }
#content.compact-page.table-list-page table.dataTable thead th,
#content.compact-page.table-list-page table.dataTable tbody td { vertical-align: middle; }
@media (max-width: 767.98px) {
  #content.compact-page.table-list-page > .panel > .panel-body { padding: 7px !important; }
}
#content.compact-page.table-list-page > .panel > .panel-body { padding: 12px !important; }
#content.compact-page.table-list-page .dataTables_wrapper { padding: 2px 4px; }
#content.compact-page.table-list-page table.dataTable { margin-top: 6px !important; margin-bottom: 8px !important; }
@media (max-width: 767.98px) {
  #content.compact-page.table-list-page > .panel > .panel-body { padding: 9px !important; }
}


/* Larger dialogs across the app for readable logs and status forms. */
.modal .modal-dialog { width: min(calc(100vw - 32px), 760px) !important; max-width: 760px !important; }
.modal .modal-dialog.modal-lg { width: min(calc(100vw - 40px), 1080px) !important; max-width: 1080px !important; }
.modal .modal-dialog.modal-xl { width: min(calc(100vw - 40px), 1280px) !important; max-width: 1280px !important; }
#logHistoryModal .modal-dialog { width: min(calc(100vw - 48px), 1120px) !important; max-width: 1120px !important; }
.status-edit-modal .modal-dialog { width: min(calc(100vw - 48px), 820px) !important; max-width: 820px !important; }
.modal .modal-body { max-height: min(78vh, 820px); padding: 24px; }
@media (max-width: 767.98px) {
  .modal .modal-dialog, .modal .modal-dialog.modal-lg, .modal .modal-dialog.modal-xl,
  #logHistoryModal .modal-dialog, .status-edit-modal .modal-dialog { width: auto !important; max-width: none !important; margin: .5rem !important; }
  .modal .modal-body { max-height: 74vh; padding: 15px; }
}

/* Floating labels for the collapsed navigation; rendered outside the scrollable sidebar. */
.sidebar-menu-tooltip {
  position: fixed;
  z-index: 20000;
  top: 0;
  left: 0;
  padding: 9px 13px;
  border: 1px solid #dce4f1;
  border-left: 3px solid #f39800;
  border-radius: 9px;
  color: #091c55;
  background: #fff;
  box-shadow: 0 10px 28px rgba(9, 28, 85, .2);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(-4px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}
.sidebar-menu-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}
@media (prefers-reduced-motion: reduce) {
  .sidebar-menu-tooltip { transition: none; }
}