/* ===== KumoSoft shared UI layer: theme variables, floating controls, responsive sidebar ===== */
:root{
  /* ===== Typography (single system font: Roboto, bundled locally; icon fonts are excluded) ===== */
  --k-font:'Kumo Sans','Roboto','Segoe UI',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;
  --k-fw-regular:400; --k-fw-medium:500; --k-fw-strong:600;
  /* ===== Light palette ===== */
  --k-brand:#025A30; --k-brand-2:#049953; --k-gold:#dfb833;
  --k-bg:#ffffff; --k-surface:#ffffff; --k-surface-2:#f8fafc; --k-surface-3:#eef2f6; --k-border:#e2e8f0; --k-divider:#e2e8f0;
  --k-text:#333333; --k-text-2:#475569; --k-muted:#64748b; --k-link:#025A30;
  --k-input-bg:#ffffff; --k-input-text:#333333; --k-placeholder:#6b7280;
  --k-hover:rgba(2,90,48,.07); --k-active:rgba(2,90,48,.14); --k-focus:rgba(223,184,51,.65);
  --k-success-bg:#dff0d8; --k-success-tx:#2d5a2d; --k-warning-bg:#fcf8e3; --k-warning-tx:#6b5a1e;
  --k-error-bg:#f2dede; --k-error-tx:#7a2b2b; --k-info-bg:#d9edf7; --k-info-tx:#1f4e6b;
}
html[data-kumo-theme="dark"]{
  color-scheme:dark;
  --k-bg:#101613; --k-surface:#18211d; --k-surface-2:#202b26; --k-surface-3:#293630; --k-border:#34463d; --k-divider:#2b3a33;
  --k-text:#e6eeea; --k-text-2:#c3d1ca; --k-muted:#a3b7ad; --k-link:#6fdca6;
  --k-input-bg:#202b26; --k-input-text:#e6eeea; --k-placeholder:#8fa59a;
  --k-hover:rgba(111,220,166,.10); --k-active:rgba(111,220,166,.18); --k-focus:rgba(223,184,51,.6);
  --k-success-bg:#12301f; --k-success-tx:#bdeed3; --k-warning-bg:#352b0f; --k-warning-tx:#f3e2a3;
  --k-error-bg:#3a1717; --k-error-tx:#f7c4c4; --k-info-bg:#10273a; --k-info-tx:#c4e0f5;
}
@font-face{font-family:'Kumo Sans';font-weight:400;font-style:normal;font-display:swap;src:url('../assets/site/fonts/Roboto/roboto-regular-webfont.woff') format('woff')}
@font-face{font-family:'Kumo Sans';font-weight:500 700;font-style:normal;font-display:swap;src:url('../assets/site/fonts/Roboto/roboto-medium-webfont.woff') format('woff')}

/* ---------- Typography standard (icon fonts excluded) ---------- */
body,input,select,textarea,button,optgroup,.btn,.form-control,table,.table,.modal,.modal-content,.dropdown-menu,.popover,.tooltip,.navbar,.panel,.card,
.swal2-popup,.select2-container,.select2-drop,.select2-dropdown,.dataTables_wrapper,.datepicker,.iziToast,.pagination,.breadcrumb,.alert,.label,.badge,footer,
h1,h2,h3,h4,h5,h6,p,label,legend,a,li,td,th,span,div:not(.fa):not(.glyphicon){font-family:var(--k-font)}
.fa,.fa *,[class^="fa-"],[class*=" fa-"],.glyphicon,[class*="zmdi"],.mdi,.material-icons{font-family:inherit}
.fa{font-family:FontAwesome !important}
.glyphicon{font-family:'Glyphicons Halflings' !important}
[class*="zmdi"]{font-family:'Material-Design-Iconic-Font' !important}
[style*="font-family"]:not(.fa):not(.glyphicon):not([class*="zmdi"]):not([class*="fa-"]){font-family:var(--k-font) !important}
h1,h2,h3,.page-header,.module-hero h1{font-weight:var(--k-fw-strong)}
h4,h5,h6,legend,th,.panel-title,.modal-title{font-weight:var(--k-fw-medium)}
label,.control-label,.btn,.nav>li>a,.dropdown-menu>li>a{font-weight:var(--k-fw-medium)}
body{font-weight:var(--k-fw-regular)}

html.kumo-theme-anim, html.kumo-theme-anim *{transition:background-color .25s ease,color .25s ease,border-color .25s ease !important}

/* ---------- Floating controls (theme + activity logs) ---------- */
#kumo-float{position:fixed;top:10px;right:14px;z-index:1060;display:flex;gap:8px;align-items:center}
#kumo-float .kf-btn{width:40px;height:40px;border-radius:50%;border:2px solid var(--k-gold);background:var(--k-brand);color:#fff;
  display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 3px 10px rgba(0,0,0,.28);padding:0;position:relative;
  transition:transform .15s ease,box-shadow .15s ease;font-size:17px;line-height:1}
#kumo-float .kf-btn:hover{transform:translateY(-1px) scale(1.06);box-shadow:0 5px 14px rgba(0,0,0,.35)}
#kumo-float .kf-btn:focus{outline:3px solid rgba(223,184,51,.6);outline-offset:2px}
#kumo-float .kf-btn svg{width:20px;height:20px;fill:currentColor}
#kumo-float .kf-btn .kf-sun{display:none}
html[data-kumo-theme="dark"] #kumo-float .kf-btn .kf-sun{display:block}
html[data-kumo-theme="dark"] #kumo-float .kf-btn .kf-moon{display:none}
#kumo-activity-panel{position:fixed;top:60px;right:14px;width:360px;max-width:calc(100vw - 20px);max-height:70vh;z-index:1061;display:none;flex-direction:column;
  background:var(--k-surface);color:var(--k-text);border:1px solid var(--k-border);border-radius:12px;box-shadow:0 14px 40px rgba(0,0,0,.3);overflow:hidden}
#kumo-activity-panel.open{display:flex;animation:kfIn .18s ease}
@keyframes kfIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
#kumo-activity-panel .kp-head{background:var(--k-brand);color:#fff;padding:10px 14px;font-weight:700;display:flex;justify-content:space-between;align-items:center;border-bottom:3px solid var(--k-gold)}
#kumo-activity-panel .kp-head button{background:none;border:0;color:#fff;font-size:20px;cursor:pointer;line-height:1}
#kumo-activity-panel .kp-list{overflow-y:auto;flex:1;margin:0;padding:0;list-style:none}
#kumo-activity-panel .kp-list li{padding:9px 14px;border-bottom:1px solid var(--k-border);font-size:12.5px}
#kumo-activity-panel .kp-list li b{display:block;font-size:12px;color:var(--k-link)}
#kumo-activity-panel .kp-list li small{color:var(--k-muted)}
#kumo-activity-panel .kp-list li.fail b{color:#e5484d}
#kumo-activity-panel .kp-foot{padding:10px;text-align:center;border-top:1px solid var(--k-border);background:var(--k-surface-2)}
#kumo-activity-panel .kp-foot a{display:block;background:var(--k-brand);color:#fff !important;border-radius:8px;padding:8px;font-weight:700;text-decoration:none}
body.kumo-has-float nav.navbar-static-top,body.kumo-has-float .navbar-fixed-top{padding-right:112px}
@media print{#kumo-float,#kumo-activity-panel,#kumo-grading-modal,.kumo-burger{display:none !important}}

/* ---------- Grading system modal ---------- */
#kumo-toast{position:fixed;bottom:20px;right:20px;z-index:2100;background:var(--k-brand);color:#fff;padding:12px 18px;border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.35);display:none}

/* ---------- Responsive sidebar (all layouts using .navbar-default.sidebar) ---------- */
.kumo-burger{display:none;position:fixed;top:10px;left:12px;z-index:1062;width:40px;height:40px;border-radius:8px;border:2px solid var(--k-gold);background:var(--k-brand);color:#fff;font-size:18px;cursor:pointer;align-items:center;justify-content:center;padding:0}
.kumo-scrim{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:1057}
.navbar-default.sidebar{overflow-y:auto;overscroll-behavior:contain}
/* tablet: compact icon rail that expands on hover/focus */
@media (min-width:768px) and (max-width:1199px){
  .navbar-default.sidebar{width:64px !important;transition:width .2s ease;overflow-x:hidden;z-index:1055}
  .navbar-default.sidebar:hover,.navbar-default.sidebar:focus-within{width:250px !important;box-shadow:6px 0 18px rgba(0,0,0,.25)}
  .navbar-default.sidebar:not(:hover):not(:focus-within) li>a>span,.navbar-default.sidebar:not(:hover):not(:focus-within) .arrow,
  .navbar-default.sidebar:not(:hover):not(:focus-within) li>p,.navbar-default.sidebar:not(:hover):not(:focus-within) li>a>img{display:none !important}
  .navbar-default.sidebar:not(:hover):not(:focus-within) li>a{font-size:0 !important;text-align:center}
  .navbar-default.sidebar:not(:hover):not(:focus-within) li>a>i{font-size:17px !important;margin:0}
  #page-wrapper{margin-left:64px !important}
}
/* mobile: off-canvas drawer */
@media (max-width:767px){
  .kumo-burger{display:flex}
  .navbar-default.sidebar{position:fixed !important;top:0 !important;left:0;bottom:0;width:270px !important;max-width:84vw;margin:0 !important;z-index:1058;
    transform:translateX(-102%);transition:transform .25s ease;box-shadow:none;padding-top:56px}
  .navbar-default.sidebar .sidebar-nav.navbar-collapse{display:block !important;height:auto !important;visibility:visible}
  body.kumo-sidebar-open .navbar-default.sidebar{transform:none;box-shadow:8px 0 24px rgba(0,0,0,.35)}
  body.kumo-sidebar-open .kumo-scrim{display:block}
  body.kumo-sidebar-open{overflow:hidden}
  #page-wrapper{margin-left:0 !important;padding-top:48px}
  body.kumo-has-float nav.navbar-static-top{padding-right:100px;padding-left:56px}
  #kumo-float{right:8px}
}
img,video{max-width:100%}

/* ======================= DARK MODE overrides ======================= */
html[data-kumo-theme="dark"] body,html[data-kumo-theme="dark"] #wrapper,html[data-kumo-theme="dark"] #page-wrapper{background-color:var(--k-bg);color:var(--k-text)}
html[data-kumo-theme="dark"] .container,html[data-kumo-theme="dark"] .container-fluid{background-color:transparent;color:inherit}
html[data-kumo-theme="dark"] h1,html[data-kumo-theme="dark"] h2,html[data-kumo-theme="dark"] h3,html[data-kumo-theme="dark"] h4,
html[data-kumo-theme="dark"] h5,html[data-kumo-theme="dark"] h6,html[data-kumo-theme="dark"] label,html[data-kumo-theme="dark"] .control-label,
html[data-kumo-theme="dark"] .page-header,html[data-kumo-theme="dark"] p,html[data-kumo-theme="dark"] td,html[data-kumo-theme="dark"] th,
html[data-kumo-theme="dark"] .modal-title,html[data-kumo-theme="dark"] legend{color:var(--k-text)}
html[data-kumo-theme="dark"] .page-header,html[data-kumo-theme="dark"] hr,html[data-kumo-theme="dark"] legend{border-color:var(--k-border)}
html[data-kumo-theme="dark"] a{color:var(--k-link)}
html[data-kumo-theme="dark"] .text-muted,html[data-kumo-theme="dark"] small,html[data-kumo-theme="dark"] .help-block{color:var(--k-muted) !important}
html[data-kumo-theme="dark"] a>i,html[data-kumo-theme="dark"] li>a>i{color:var(--k-link) !important}
html[data-kumo-theme="dark"] li>a>span,html[data-kumo-theme="dark"] .nav-second-level>li>a{color:var(--k-text) !important}
html[data-kumo-theme="dark"] .navbar-default,html[data-kumo-theme="dark"] .navbar-default.sidebar,html[data-kumo-theme="dark"] .sidebar-nav,html[data-kumo-theme="dark"] .navbar-static-side{background:var(--k-surface) !important;border-color:var(--k-border) !important}
html[data-kumo-theme="dark"] .navbar-default .navbar-nav>li>a,html[data-kumo-theme="dark"] .navbar-brand{color:var(--k-text)}
html[data-kumo-theme="dark"] .sidebar ul li a:hover,html[data-kumo-theme="dark"] .sidebar ul li a.active,html[data-kumo-theme="dark"] .nav>li>a:hover,html[data-kumo-theme="dark"] .nav>li>a:focus{background:var(--k-surface-2) !important}
html[data-kumo-theme="dark"] .sidebar ul li{border-color:var(--k-border) !important}
html[data-kumo-theme="dark"] .panel,html[data-kumo-theme="dark"] .panel-default,html[data-kumo-theme="dark"] .well,html[data-kumo-theme="dark"] .thumbnail,
html[data-kumo-theme="dark"] .card,html[data-kumo-theme="dark"] .list-group-item,html[data-kumo-theme="dark"] .jumbotron,html[data-kumo-theme="dark"] .breadcrumb,
html[data-kumo-theme="dark"] .dropdown-menu,html[data-kumo-theme="dark"] .popover,html[data-kumo-theme="dark"] .tab-content{background-color:var(--k-surface);color:var(--k-text);border-color:var(--k-border)}
html[data-kumo-theme="dark"] .panel-heading,html[data-kumo-theme="dark"] .panel-footer,html[data-kumo-theme="dark"] .panel-default>.panel-heading,html[data-kumo-theme="dark"] .card-header{background-color:var(--k-surface-2) !important;border-color:var(--k-border) !important;color:var(--k-text)}
html[data-kumo-theme="dark"] .dropdown-menu>li>a{color:var(--k-text)}
html[data-kumo-theme="dark"] .dropdown-menu>li>a:hover{background:var(--k-surface-2)}
html[data-kumo-theme="dark"] .table,html[data-kumo-theme="dark"] table.dataTable,html[data-kumo-theme="dark"] .dataTables_wrapper{color:var(--k-text);background-color:transparent}
html[data-kumo-theme="dark"] .table>thead>tr>th,html[data-kumo-theme="dark"] .table>tbody>tr>td,html[data-kumo-theme="dark"] .table>tbody>tr>th,html[data-kumo-theme="dark"] .table>tfoot>tr>td,
html[data-kumo-theme="dark"] .table-bordered,html[data-kumo-theme="dark"] .table-bordered>thead>tr>th,html[data-kumo-theme="dark"] .table-bordered>tbody>tr>td,html[data-kumo-theme="dark"] table.dataTable td,html[data-kumo-theme="dark"] table.dataTable th{border-color:var(--k-border) !important}
html[data-kumo-theme="dark"] .table>thead>tr>th,html[data-kumo-theme="dark"] table.dataTable thead th{background-color:var(--k-surface-2);color:var(--k-text)}
html[data-kumo-theme="dark"] .table-striped>tbody>tr:nth-of-type(odd),html[data-kumo-theme="dark"] table.dataTable.stripe tbody tr.odd,html[data-kumo-theme="dark"] table.dataTable tbody tr.odd{background-color:rgba(255,255,255,.035) !important}
html[data-kumo-theme="dark"] table.dataTable tbody tr.even,html[data-kumo-theme="dark"] table.dataTable tbody tr{background-color:transparent}
html[data-kumo-theme="dark"] .table-hover>tbody>tr:hover,html[data-kumo-theme="dark"] table.dataTable tbody tr:hover{background-color:rgba(95,208,154,.1) !important}
html[data-kumo-theme="dark"] .form-control,html[data-kumo-theme="dark"] input[type=text],html[data-kumo-theme="dark"] input[type=number],html[data-kumo-theme="dark"] input[type=date],
html[data-kumo-theme="dark"] input[type=email],html[data-kumo-theme="dark"] input[type=password],html[data-kumo-theme="dark"] input[type=search],html[data-kumo-theme="dark"] textarea,
html[data-kumo-theme="dark"] select,html[data-kumo-theme="dark"] .input-group-addon,html[data-kumo-theme="dark"] .select2-container--default .select2-selection--single,
html[data-kumo-theme="dark"] .select2-container .select2-choice,html[data-kumo-theme="dark"] .select2-drop,html[data-kumo-theme="dark"] .select2-search input,html[data-kumo-theme="dark"] .select2-dropdown{
  background-color:var(--k-surface-2) !important;color:var(--k-text) !important;border-color:var(--k-border) !important}
html[data-kumo-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered,html[data-kumo-theme="dark"] .select2-choice>.select2-chosen,html[data-kumo-theme="dark"] .select2-results .select2-result-label{color:var(--k-text) !important}
html[data-kumo-theme="dark"] .select2-results,html[data-kumo-theme="dark"] .select2-results__option{background:var(--k-surface) !important;color:var(--k-text)}
html[data-kumo-theme="dark"] .form-control[disabled],html[data-kumo-theme="dark"] .form-control[readonly],html[data-kumo-theme="dark"] fieldset[disabled] .form-control{opacity:.65;background-color:#161e1a !important}
html[data-kumo-theme="dark"] .form-control:focus{border-color:var(--k-gold) !important;box-shadow:0 0 0 3px rgba(223,184,51,.2) !important}
html[data-kumo-theme="dark"] ::placeholder{color:#7f948a !important}
html[data-kumo-theme="dark"] .btn-default{background:var(--k-surface-2);color:var(--k-text);border-color:var(--k-border)}
html[data-kumo-theme="dark"] .btn-default:hover{background:#2a3832}
html[data-kumo-theme="dark"] .modal-content,html[data-kumo-theme="dark"] .swal2-popup,html[data-kumo-theme="dark"] .colorbox,html[data-kumo-theme="dark"] #cboxContent{background-color:var(--k-surface);color:var(--k-text);border-color:var(--k-border)}
html[data-kumo-theme="dark"] .modal-header,html[data-kumo-theme="dark"] .modal-footer{border-color:var(--k-border) !important}
html[data-kumo-theme="dark"] .modal-footer{background-color:var(--k-surface-2)}
html[data-kumo-theme="dark"] .swal2-title,html[data-kumo-theme="dark"] .swal2-content,html[data-kumo-theme="dark"] .swal2-html-container{color:var(--k-text) !important}
html[data-kumo-theme="dark"] .close{color:#fff;text-shadow:none}
html[data-kumo-theme="dark"] .nav-tabs{border-color:var(--k-border)}
html[data-kumo-theme="dark"] .nav-tabs>li.active>a,html[data-kumo-theme="dark"] .nav-tabs>li.active>a:hover,html[data-kumo-theme="dark"] .nav-tabs>li.active>a:focus{background:var(--k-surface);color:var(--k-text);border-color:var(--k-border)}
html[data-kumo-theme="dark"] .nav-tabs>li>a:hover{background:var(--k-surface-2);border-color:var(--k-border)}
html[data-kumo-theme="dark"] .pagination>li>a,html[data-kumo-theme="dark"] .pagination>li>span,html[data-kumo-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button{background:var(--k-surface);border-color:var(--k-border);color:var(--k-text) !important}
html[data-kumo-theme="dark"] .pagination>.active>a,html[data-kumo-theme="dark"] .pagination>.active>span,html[data-kumo-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button.current{background:var(--k-brand) !important;border-color:var(--k-brand);color:#fff !important}
html[data-kumo-theme="dark"] .pagination>.disabled>a,html[data-kumo-theme="dark"] .pagination>.disabled>span{background:var(--k-surface-2);color:var(--k-muted) !important}
html[data-kumo-theme="dark"] .alert-success{background:#12301f;border-color:#1e5a3a;color:#b8ecd0}
html[data-kumo-theme="dark"] .alert-info{background:#10273a;border-color:#1d4766;color:#bfdcf3}
html[data-kumo-theme="dark"] .alert-warning{background:#352b0f;border-color:#5f4d17;color:#f1de9c}
html[data-kumo-theme="dark"] .alert-danger{background:#3a1717;border-color:#6b2a2a;color:#f4bcbc}
html[data-kumo-theme="dark"] .datepicker,html[data-kumo-theme="dark"] .datepicker table tr td,html[data-kumo-theme="dark"] .bootstrap-datetimepicker-widget{background:var(--k-surface);color:var(--k-text)}
html[data-kumo-theme="dark"] .datepicker table tr td.day:hover,html[data-kumo-theme="dark"] .datepicker table tr td span:hover{background:var(--k-surface-2)}
html[data-kumo-theme="dark"] .fc-unthemed td,html[data-kumo-theme="dark"] .fc-unthemed th,html[data-kumo-theme="dark"] .fc-unthemed .fc-content{border-color:var(--k-border)}
html[data-kumo-theme="dark"] .fc-day,html[data-kumo-theme="dark"] .fc-widget-content{background:var(--k-surface)}
html[data-kumo-theme="dark"] .handsontable td,html[data-kumo-theme="dark"] .handsontable{background-color:var(--k-surface);color:var(--k-text)}
html[data-kumo-theme="dark"] .handsontable th{background-color:var(--k-surface-2);color:var(--k-text);border-color:var(--k-border)}
html[data-kumo-theme="dark"] body>footer{background:linear-gradient(-60deg,#033d22,#04532f,#06703f)}
/* inline white/near-white backgrounds written directly in markup */
html[data-kumo-theme="dark"] [style*="background: #fff"],html[data-kumo-theme="dark"] [style*="background:#fff"],html[data-kumo-theme="dark"] [style*="background-color: #fff"],
html[data-kumo-theme="dark"] [style*="background-color:#fff"],html[data-kumo-theme="dark"] [style*="background: white"],html[data-kumo-theme="dark"] [style*="background-color: white"],
html[data-kumo-theme="dark"] [style*="background: rgb(255, 255, 255)"],html[data-kumo-theme="dark"] [style*="background-color: rgb(255, 255, 255)"],
html[data-kumo-theme="dark"] [style*="background-color: #f"],html[data-kumo-theme="dark"] [style*="background:#f"]{background-color:var(--k-surface) !important;color:var(--k-text)}
/* charts: keep canvases readable on dark surfaces */
html[data-kumo-theme="dark"] .canvasjs-chart-container,html[data-kumo-theme="dark"] .jqplot-target,html[data-kumo-theme="dark"] .ct-chart{background:transparent !important}
html[data-kumo-theme="dark"] .ct-label,html[data-kumo-theme="dark"] .jqplot-axis,html[data-kumo-theme="dark"] .jqplot-title{color:var(--k-text) !important;fill:var(--k-text)}
html[data-kumo-theme="dark"] .ct-grid{stroke:rgba(255,255,255,.2)}
html[data-kumo-theme="dark"] ::-webkit-scrollbar{width:10px;height:10px}
html[data-kumo-theme="dark"] ::-webkit-scrollbar-track{background:var(--k-bg)}
html[data-kumo-theme="dark"] ::-webkit-scrollbar-thumb{background:#3a4b43;border-radius:6px}

/* ---- page-specific light-only components (grading options page etc.) ---- */
html[data-kumo-theme="dark"] .custom-modal-theme{background-color:var(--k-surface) !important;color:var(--k-text)}
html[data-kumo-theme="dark"] .custom-modal-theme .modal-footer{background-color:var(--k-surface-2) !important;border-color:var(--k-border) !important}
html[data-kumo-theme="dark"] .select-custom,html[data-kumo-theme="dark"] .cohort-selector-box select{background-color:var(--k-surface-2) !important;color:var(--k-text) !important;border-color:var(--k-border) !important}
html[data-kumo-theme="dark"] .filter-controls-bar,html[data-kumo-theme="dark"] .filter-card,html[data-kumo-theme="dark"] .filter-card-header{background-color:var(--k-surface-2) !important;border-color:var(--k-border) !important}
html[data-kumo-theme="dark"] .filter-title,html[data-kumo-theme="dark"] .cohort-selector-box label,html[data-kumo-theme="dark"] .switch-label-text,html[data-kumo-theme="dark"] .checkbox-label,html[data-kumo-theme="dark"] .checkbox-section-title,html[data-kumo-theme="dark"] .school-year-wrapper label{color:var(--k-text) !important}
html[data-kumo-theme="dark"] .checkbox-item{background-color:var(--k-surface) !important;border-color:var(--k-border) !important}
html[data-kumo-theme="dark"] .checkbox-item.active-item{background-color:rgba(95,208,154,.14) !important;border-color:rgba(95,208,154,.45) !important}
html[data-kumo-theme="dark"] .checkbox-item.active-item .checkbox-label{color:#8fe0b4 !important}
html[data-kumo-theme="dark"] .advisory-alert,html[data-kumo-theme="dark"] .policy-lock-alert{background:var(--k-surface-2) !important;border-color:var(--k-border) !important;color:var(--k-text) !important}
html[data-kumo-theme="dark"] .advisory-alert *,html[data-kumo-theme="dark"] .policy-lock-alert *{color:var(--k-text) !important}
html[data-kumo-theme="dark"] .check-all-pill span,html[data-kumo-theme="dark"] .badge-off{background:#2a3832 !important;color:var(--k-muted) !important}

/* ---------- Footer: single cohesive brand band in both themes ---------- */
body>footer{background:linear-gradient(-60deg,#049953,#049953,#09B966);color:#fff;width:100%;margin:0;padding:10px 0;position:relative;clear:both}
html[data-kumo-theme="dark"] body>footer{background:linear-gradient(-60deg,#033d22,#04532f,#06703f)}
body>footer .container{background:transparent !important;width:100%;max-width:1170px;margin:0 auto;padding:0 15px;display:flex;justify-content:flex-end;align-items:center}
body>footer h5{margin:0;color:#fff;display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
body>footer img{max-width:100%;height:auto}
@media (max-width:767px){body>footer .container{justify-content:center}body>footer h5{justify-content:center;font-size:12px}body>footer img{width:100px !important}}
/* navbar container must not paint its own block either */
html[data-kumo-theme="dark"] .navbar .container{background:transparent}

/* ---------- Dark: remaining third-party / structural text colours ---------- */
html[data-kumo-theme="dark"] .dataTables_info,html[data-kumo-theme="dark"] .dataTables_length,html[data-kumo-theme="dark"] .dataTables_filter,html[data-kumo-theme="dark"] .dataTables_length label,html[data-kumo-theme="dark"] .dataTables_filter label,html[data-kumo-theme="dark"] .dataTables_empty,html[data-kumo-theme="dark"] .dataTables_processing{color:var(--k-text-2) !important}
html[data-kumo-theme="dark"] .breadcrumb>li,html[data-kumo-theme="dark"] .breadcrumb>.active,html[data-kumo-theme="dark"] .breadcrumb>li+li:before{color:var(--k-text-2)}
html[data-kumo-theme="dark"] code,html[data-kumo-theme="dark"] pre{background:var(--k-surface-2);color:#f3b6c4;border-color:var(--k-border)}
html[data-kumo-theme="dark"] .label-default,html[data-kumo-theme="dark"] .badge{background-color:#3a4a42;color:#fff}
html[data-kumo-theme="dark"] .progress{background:var(--k-surface-3)}
html[data-kumo-theme="dark"] .input-group-addon{color:var(--k-text-2)}
html[data-kumo-theme="dark"] .checkbox label,html[data-kumo-theme="dark"] .radio label,html[data-kumo-theme="dark"] .checkbox-inline,html[data-kumo-theme="dark"] .radio-inline{color:var(--k-text)}
html[data-kumo-theme="dark"] input[type=file]{color:var(--k-text-2)}
html[data-kumo-theme="dark"] input[type=checkbox],html[data-kumo-theme="dark"] input[type=radio]{accent-color:#2fa56a}
html[data-kumo-theme="dark"] .has-error .form-control,html[data-kumo-theme="dark"] .has-error .help-block,html[data-kumo-theme="dark"] .has-error .control-label,html[data-kumo-theme="dark"] .text-danger{color:#ff9b9b !important}
html[data-kumo-theme="dark"] .text-success{color:#7fe0a9 !important}.text-warning{color:inherit}
html[data-kumo-theme="dark"] .text-warning{color:#f0cf6b !important}
html[data-kumo-theme="dark"] .text-info{color:#8cc7ee !important}
html[data-kumo-theme="dark"] .disabled>a,html[data-kumo-theme="dark"] [disabled],html[data-kumo-theme="dark"] .form-control[disabled]{color:#8fa59a !important}
html[data-kumo-theme="dark"] .tooltip-inner{background:#0b100d;color:#fff;border:1px solid var(--k-border)}
html[data-kumo-theme="dark"] .iziToast>.iziToast-body .iziToast-title,html[data-kumo-theme="dark"] .iziToast>.iziToast-body .iziToast-message{color:inherit}
html[data-kumo-theme="dark"] .swal2-content,html[data-kumo-theme="dark"] .swal2-popup *{color:var(--k-text)}
html[data-kumo-theme="dark"] .swal2-popup .swal2-confirm,html[data-kumo-theme="dark"] .swal2-popup .swal2-cancel,html[data-kumo-theme="dark"] .swal2-popup button{color:#fff}
html[data-kumo-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected],html[data-kumo-theme="dark"] .select2-results .select2-highlighted{background:var(--k-brand) !important;color:#fff !important}
html[data-kumo-theme="dark"] .select2-container-multi .select2-choices,html[data-kumo-theme="dark"] .select2-container--default .select2-selection--multiple{background:var(--k-input-bg) !important;border-color:var(--k-border) !important}
html[data-kumo-theme="dark"] .select2-search-choice,html[data-kumo-theme="dark"] .select2-selection__choice{background:var(--k-surface-3) !important;color:var(--k-text) !important;border-color:var(--k-border) !important}
html[data-kumo-theme="dark"] .datepicker table tr td.old,html[data-kumo-theme="dark"] .datepicker table tr td.new{color:#7f948a}
html[data-kumo-theme="dark"] .datepicker table tr td.disabled{color:#5f726a}
html[data-kumo-theme="dark"] .datepicker th,html[data-kumo-theme="dark"] .datepicker td{color:var(--k-text)}
html[data-kumo-theme="dark"] .datepicker-dropdown:after{border-bottom-color:var(--k-surface)}
html[data-kumo-theme="dark"] .modal-body,html[data-kumo-theme="dark"] .modal-body *:not(.btn):not(.label):not(.badge):not(.text-danger):not(.fa){color:inherit}
html[data-kumo-theme="dark"] .fc-toolbar h2,html[data-kumo-theme="dark"] .fc-day-header,html[data-kumo-theme="dark"] .fc-day-number{color:var(--k-text)}
html[data-kumo-theme="dark"] .nav-pills>li>a{color:var(--k-text)}
html[data-kumo-theme="dark"] .nav-pills>li.active>a{background:var(--k-brand);color:#fff}
html[data-kumo-theme="dark"] .list-group-item.active{background:var(--k-brand);border-color:var(--k-brand);color:#fff}
html[data-kumo-theme="dark"] .well,html[data-kumo-theme="dark"] .panel-body{color:var(--k-text)}
html[data-kumo-theme="dark"] .dataTables_processing{background:var(--k-surface-3) !important;color:var(--k-text) !important;border:1px solid var(--k-border)}
html[data-kumo-theme="dark"] table.dataTable thead .sorting,html[data-kumo-theme="dark"] table.dataTable thead .sorting_asc,html[data-kumo-theme="dark"] table.dataTable thead .sorting_desc{background-color:var(--k-surface-2)}
html[data-kumo-theme="dark"] table.dataTable tbody td,html[data-kumo-theme="dark"] td.dataTables_empty,html[data-kumo-theme="dark"] table.dataTable.display tbody tr>.sorting_1,html[data-kumo-theme="dark"] table.dataTable.order-column tbody tr>.sorting_1{background-color:transparent !important;color:var(--k-text)}

/* ===== Buttons: semantic colours per variant, all states (Task 12.1) ===== */
html[data-kumo-theme="dark"] .btn-default{background-color:#2a3832;border-color:#4a5f55;color:#e6eeea}
html[data-kumo-theme="dark"] .btn-default:hover,html[data-kumo-theme="dark"] .btn-default:focus,html[data-kumo-theme="dark"] .btn-default.focus,html[data-kumo-theme="dark"] .btn-default:active,html[data-kumo-theme="dark"] .btn-default.active,html[data-kumo-theme="dark"] .open>.dropdown-toggle.btn-default{background-color:#34463d;border-color:#34463d;color:#e6eeea}
html[data-kumo-theme="dark"] .btn-default:focus,html[data-kumo-theme="dark"] .btn-default.focus{outline:3px solid var(--k-focus);outline-offset:1px}
html[data-kumo-theme="dark"] .btn-default.disabled,html[data-kumo-theme="dark"] .btn-default[disabled],fieldset[disabled] html[data-kumo-theme="dark"] .btn-default{background-color:#222d28;border-color:#34463d;color:#9db1a7;opacity:1;cursor:not-allowed}
html[data-kumo-theme="dark"] .btn-default .badge{background:#fff;color:#1a1a1a}
html[data-kumo-theme="dark"] .btn-outline-default{background:transparent;border:1px solid #5f7a6d;color:#5f7a6d}
html[data-kumo-theme="dark"] .btn-outline-default:hover,html[data-kumo-theme="dark"] .btn-outline-default:focus,html[data-kumo-theme="dark"] .btn-outline-default.active{background:#5f7a6d;color:#101613;border-color:#5f7a6d}
html[data-kumo-theme="dark"] .btn-outline-default.disabled,html[data-kumo-theme="dark"] .btn-outline-default[disabled]{color:#8fa59a;border-color:#4a5f55;background:transparent}
html[data-kumo-theme="dark"] .btn-primary{background-color:#2b6cb0;border-color:#2b6cb0;color:#ffffff}
html[data-kumo-theme="dark"] .btn-primary:hover,html[data-kumo-theme="dark"] .btn-primary:focus,html[data-kumo-theme="dark"] .btn-primary.focus,html[data-kumo-theme="dark"] .btn-primary:active,html[data-kumo-theme="dark"] .btn-primary.active,html[data-kumo-theme="dark"] .open>.dropdown-toggle.btn-primary{background-color:#245a93;border-color:#245a93;color:#ffffff}
html[data-kumo-theme="dark"] .btn-primary:focus,html[data-kumo-theme="dark"] .btn-primary.focus{outline:3px solid var(--k-focus);outline-offset:1px}
html[data-kumo-theme="dark"] .btn-primary.disabled,html[data-kumo-theme="dark"] .btn-primary[disabled],fieldset[disabled] html[data-kumo-theme="dark"] .btn-primary{background-color:#222d28;border-color:#34463d;color:#9db1a7;opacity:1;cursor:not-allowed}
html[data-kumo-theme="dark"] .btn-primary .badge{background:#fff;color:#1a1a1a}
html[data-kumo-theme="dark"] .btn-outline-primary{background:transparent;border:1px solid #8ab8e8;color:#8ab8e8}
html[data-kumo-theme="dark"] .btn-outline-primary:hover,html[data-kumo-theme="dark"] .btn-outline-primary:focus,html[data-kumo-theme="dark"] .btn-outline-primary.active{background:#8ab8e8;color:#101613;border-color:#8ab8e8}
html[data-kumo-theme="dark"] .btn-outline-primary.disabled,html[data-kumo-theme="dark"] .btn-outline-primary[disabled]{color:#8fa59a;border-color:#4a5f55;background:transparent}
html[data-kumo-theme="dark"] .btn-success{background-color:#1e8449;border-color:#1e8449;color:#ffffff}
html[data-kumo-theme="dark"] .btn-success:hover,html[data-kumo-theme="dark"] .btn-success:focus,html[data-kumo-theme="dark"] .btn-success.focus,html[data-kumo-theme="dark"] .btn-success:active,html[data-kumo-theme="dark"] .btn-success.active,html[data-kumo-theme="dark"] .open>.dropdown-toggle.btn-success{background-color:#186c3b;border-color:#186c3b;color:#ffffff}
html[data-kumo-theme="dark"] .btn-success:focus,html[data-kumo-theme="dark"] .btn-success.focus{outline:3px solid var(--k-focus);outline-offset:1px}
html[data-kumo-theme="dark"] .btn-success.disabled,html[data-kumo-theme="dark"] .btn-success[disabled],fieldset[disabled] html[data-kumo-theme="dark"] .btn-success{background-color:#222d28;border-color:#34463d;color:#9db1a7;opacity:1;cursor:not-allowed}
html[data-kumo-theme="dark"] .btn-success .badge{background:#fff;color:#1a1a1a}
html[data-kumo-theme="dark"] .btn-outline-success{background:transparent;border:1px solid #7fe0a9;color:#7fe0a9}
html[data-kumo-theme="dark"] .btn-outline-success:hover,html[data-kumo-theme="dark"] .btn-outline-success:focus,html[data-kumo-theme="dark"] .btn-outline-success.active{background:#7fe0a9;color:#101613;border-color:#7fe0a9}
html[data-kumo-theme="dark"] .btn-outline-success.disabled,html[data-kumo-theme="dark"] .btn-outline-success[disabled]{color:#8fa59a;border-color:#4a5f55;background:transparent}
html[data-kumo-theme="dark"] .btn-info{background-color:#1d7fa6;border-color:#1d7fa6;color:#ffffff}
html[data-kumo-theme="dark"] .btn-info:hover,html[data-kumo-theme="dark"] .btn-info:focus,html[data-kumo-theme="dark"] .btn-info.focus,html[data-kumo-theme="dark"] .btn-info:active,html[data-kumo-theme="dark"] .btn-info.active,html[data-kumo-theme="dark"] .open>.dropdown-toggle.btn-info{background-color:#186a8a;border-color:#186a8a;color:#ffffff}
html[data-kumo-theme="dark"] .btn-info:focus,html[data-kumo-theme="dark"] .btn-info.focus{outline:3px solid var(--k-focus);outline-offset:1px}
html[data-kumo-theme="dark"] .btn-info.disabled,html[data-kumo-theme="dark"] .btn-info[disabled],fieldset[disabled] html[data-kumo-theme="dark"] .btn-info{background-color:#222d28;border-color:#34463d;color:#9db1a7;opacity:1;cursor:not-allowed}
html[data-kumo-theme="dark"] .btn-info .badge{background:#fff;color:#1a1a1a}
html[data-kumo-theme="dark"] .btn-outline-info{background:transparent;border:1px solid #8cc7ee;color:#8cc7ee}
html[data-kumo-theme="dark"] .btn-outline-info:hover,html[data-kumo-theme="dark"] .btn-outline-info:focus,html[data-kumo-theme="dark"] .btn-outline-info.active{background:#8cc7ee;color:#101613;border-color:#8cc7ee}
html[data-kumo-theme="dark"] .btn-outline-info.disabled,html[data-kumo-theme="dark"] .btn-outline-info[disabled]{color:#8fa59a;border-color:#4a5f55;background:transparent}
html[data-kumo-theme="dark"] .btn-warning{background-color:#d99a2b;border-color:#d99a2b;color:#1a1400}
html[data-kumo-theme="dark"] .btn-warning:hover,html[data-kumo-theme="dark"] .btn-warning:focus,html[data-kumo-theme="dark"] .btn-warning.focus,html[data-kumo-theme="dark"] .btn-warning:active,html[data-kumo-theme="dark"] .btn-warning.active,html[data-kumo-theme="dark"] .open>.dropdown-toggle.btn-warning{background-color:#c4881f;border-color:#c4881f;color:#1a1400}
html[data-kumo-theme="dark"] .btn-warning:focus,html[data-kumo-theme="dark"] .btn-warning.focus{outline:3px solid var(--k-focus);outline-offset:1px}
html[data-kumo-theme="dark"] .btn-warning.disabled,html[data-kumo-theme="dark"] .btn-warning[disabled],fieldset[disabled] html[data-kumo-theme="dark"] .btn-warning{background-color:#222d28;border-color:#34463d;color:#9db1a7;opacity:1;cursor:not-allowed}
html[data-kumo-theme="dark"] .btn-warning .badge{background:#fff;color:#1a1a1a}
html[data-kumo-theme="dark"] .btn-outline-warning{background:transparent;border:1px solid #f0cf6b;color:#f0cf6b}
html[data-kumo-theme="dark"] .btn-outline-warning:hover,html[data-kumo-theme="dark"] .btn-outline-warning:focus,html[data-kumo-theme="dark"] .btn-outline-warning.active{background:#f0cf6b;color:#101613;border-color:#f0cf6b}
html[data-kumo-theme="dark"] .btn-outline-warning.disabled,html[data-kumo-theme="dark"] .btn-outline-warning[disabled]{color:#8fa59a;border-color:#4a5f55;background:transparent}
html[data-kumo-theme="dark"] .btn-danger{background-color:#c0392b;border-color:#c0392b;color:#ffffff}
html[data-kumo-theme="dark"] .btn-danger:hover,html[data-kumo-theme="dark"] .btn-danger:focus,html[data-kumo-theme="dark"] .btn-danger.focus,html[data-kumo-theme="dark"] .btn-danger:active,html[data-kumo-theme="dark"] .btn-danger.active,html[data-kumo-theme="dark"] .open>.dropdown-toggle.btn-danger{background-color:#a62f23;border-color:#a62f23;color:#ffffff}
html[data-kumo-theme="dark"] .btn-danger:focus,html[data-kumo-theme="dark"] .btn-danger.focus{outline:3px solid var(--k-focus);outline-offset:1px}
html[data-kumo-theme="dark"] .btn-danger.disabled,html[data-kumo-theme="dark"] .btn-danger[disabled],fieldset[disabled] html[data-kumo-theme="dark"] .btn-danger{background-color:#222d28;border-color:#34463d;color:#9db1a7;opacity:1;cursor:not-allowed}
html[data-kumo-theme="dark"] .btn-danger .badge{background:#fff;color:#1a1a1a}
html[data-kumo-theme="dark"] .btn-outline-danger{background:transparent;border:1px solid #ff9b9b;color:#ff9b9b}
html[data-kumo-theme="dark"] .btn-outline-danger:hover,html[data-kumo-theme="dark"] .btn-outline-danger:focus,html[data-kumo-theme="dark"] .btn-outline-danger.active{background:#ff9b9b;color:#101613;border-color:#ff9b9b}
html[data-kumo-theme="dark"] .btn-outline-danger.disabled,html[data-kumo-theme="dark"] .btn-outline-danger[disabled]{color:#8fa59a;border-color:#4a5f55;background:transparent}
html[data-kumo-theme="dark"] .btn-light{background:#cfd9d4;color:#101613;border-color:#cfd9d4}html[data-kumo-theme="dark"] .btn-light:hover{background:#e6eeea;color:#101613}
html[data-kumo-theme="dark"] .btn-dark,html[data-kumo-theme="dark"] .btn-secondary{background:#3a4a42;color:#fff;border-color:#4a5f55}html[data-kumo-theme="dark"] .btn-dark:hover,html[data-kumo-theme="dark"] .btn-secondary:hover{background:#4a5f55;color:#fff}
html[data-kumo-theme="dark"] .btn-link{color:var(--k-link);background:transparent}html[data-kumo-theme="dark"] .btn-link:hover,html[data-kumo-theme="dark"] .btn-link:focus{color:#a8f0c9;text-decoration:underline}
html[data-kumo-theme="dark"] .btn-link[disabled],html[data-kumo-theme="dark"] .btn-link.disabled{color:#8fa59a}
html[data-kumo-theme="dark"] .btn i,html[data-kumo-theme="dark"] .btn .fa,html[data-kumo-theme="dark"] .btn .glyphicon,html[data-kumo-theme="dark"] .btn>i,html[data-kumo-theme="dark"] .btn>span,html[data-kumo-theme="dark"] a.btn>i,html[data-kumo-theme="dark"] button>i,html[data-kumo-theme="dark"] button>span{color:inherit !important}
html[data-kumo-theme="dark"] .btn-group>.btn-default.active,html[data-kumo-theme="dark"] .btn-default.active{box-shadow:inset 0 3px 5px rgba(0,0,0,.4)}
/* dropdown toggles / menus / split buttons */
html[data-kumo-theme="dark"] .dropdown-menu{box-shadow:0 8px 24px rgba(0,0,0,.55)}
html[data-kumo-theme="dark"] .dropdown-menu>li>a:hover,html[data-kumo-theme="dark"] .dropdown-menu>li>a:focus,html[data-kumo-theme="dark"] .dropdown-menu>.active>a,html[data-kumo-theme="dark"] .dropdown-menu>.active>a:hover{background:var(--k-brand);color:#fff}
html[data-kumo-theme="dark"] .dropdown-menu>li>a>i,html[data-kumo-theme="dark"] .dropdown-menu>li>a>span{color:inherit !important}
html[data-kumo-theme="dark"] .dropdown-menu .divider{background:var(--k-divider)}html[data-kumo-theme="dark"] .dropdown-header{color:var(--k-muted)}
html[data-kumo-theme="dark"] .dropdown-menu>.disabled>a{color:#8fa59a}
/* pagination, tabs, pills in every state */
html[data-kumo-theme="dark"] .pagination>li>a:hover,html[data-kumo-theme="dark"] .pagination>li>a:focus{background:var(--k-hover);color:#fff;border-color:var(--k-link)}
html[data-kumo-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button:hover{background:var(--k-surface-3) !important;color:#fff !important;border-color:var(--k-link) !important}
html[data-kumo-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,html[data-kumo-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover{color:#8fa59a !important;background:var(--k-surface-2) !important;border-color:var(--k-border) !important}
html[data-kumo-theme="dark"] .nav-pills>li>a:hover,html[data-kumo-theme="dark"] .nav-pills>li>a:focus{background:var(--k-hover);color:#fff}
html[data-kumo-theme="dark"] .nav>li.disabled>a{color:#8fa59a}
/* labels / badges / status */
html[data-kumo-theme="dark"] .label-primary{background:#2b6cb0;color:#fff}html[data-kumo-theme="dark"] .label-success{background:#1e8449;color:#fff}html[data-kumo-theme="dark"] .label-info{background:#1d7fa6;color:#fff}
html[data-kumo-theme="dark"] .label-warning{background:#d99a2b;color:#1a1400}html[data-kumo-theme="dark"] .label-danger{background:#c0392b;color:#fff}
/* form-control states */
html[data-kumo-theme="dark"] .has-success .form-control{border-color:#4fbf84;color:var(--k-text)}html[data-kumo-theme="dark"] .has-success .control-label,html[data-kumo-theme="dark"] .has-success .help-block{color:#7fe0a9}
html[data-kumo-theme="dark"] .has-warning .form-control{border-color:#e0b24a}html[data-kumo-theme="dark"] .has-warning .control-label,html[data-kumo-theme="dark"] .has-warning .help-block{color:#f0cf6b}
html[data-kumo-theme="dark"] .has-error .form-control{border-color:#ff7b7b}
html[data-kumo-theme="dark"] .form-control:hover:not([disabled]):not([readonly]){border-color:#5f7a6d}
html[data-kumo-theme="dark"] .popover-title{background:var(--k-surface-3);color:var(--k-text);border-color:var(--k-border)}html[data-kumo-theme="dark"] .popover-content{color:var(--k-text)}
html[data-kumo-theme="dark"] .popover.top>.arrow:after{border-top-color:var(--k-surface)}html[data-kumo-theme="dark"] .popover.bottom>.arrow:after{border-bottom-color:var(--k-surface)}
/* toggle switches / custom checkboxes */
html[data-kumo-theme="dark"] .slider-round{background-color:#4a5f55}html[data-kumo-theme="dark"] .form-switch-custom input:checked+.slider-round{background-color:#2fa56a}
html[data-kumo-theme="dark"] .switch-badge-status.badge-on{background:#dfb833;color:#1a1400}
/* SweetAlert2 buttons keep their own backgrounds */
html[data-kumo-theme="dark"] .swal2-popup .swal2-confirm{background-color:#2fa56a !important;color:#fff}html[data-kumo-theme="dark"] .swal2-popup .swal2-cancel{background-color:#6b7d74 !important;color:#fff}
html[data-kumo-theme="dark"] .swal2-popup .swal2-styled:focus{box-shadow:0 0 0 3px var(--k-focus)}
/* iziToast: keep its own coloured backgrounds with dark/white text chosen by the library */
html[data-kumo-theme="dark"] .iziToast{color:#111}html[data-kumo-theme="dark"] .iziToast>.iziToast-body .iziToast-title,html[data-kumo-theme="dark"] .iziToast>.iziToast-body .iziToast-message{color:#111 !important}
html[data-kumo-theme="dark"] .iziToast.iziToast-color-dark,html[data-kumo-theme="dark"] .iziToast.iziToast-theme-dark{background:#2a3832}html[data-kumo-theme="dark"] .iziToast.iziToast-theme-dark *,html[data-kumo-theme="dark"] .iziToast.iziToast-color-dark *{color:#fff !important}
/* select2 clear / arrows, datepicker nav */
html[data-kumo-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#c3d1ca transparent transparent}
html[data-kumo-theme="dark"] .select2-container .select2-choice .select2-arrow b{filter:invert(.8)}
html[data-kumo-theme="dark"] .datepicker .prev,html[data-kumo-theme="dark"] .datepicker .next,html[data-kumo-theme="dark"] .datepicker .datepicker-switch{color:var(--k-text)}
html[data-kumo-theme="dark"] .datepicker table tr td.active,html[data-kumo-theme="dark"] .datepicker table tr td.active:hover,html[data-kumo-theme="dark"] .datepicker table tr td span.active{background:var(--k-brand);color:#fff}
html[data-kumo-theme="dark"] .datepicker table tr td.today{background:#6b5a1e;color:#fff}
/* custom page-level buttons found in the codebase */
html[data-kumo-theme="dark"] .btn-primary-custom{background:#1e8449;border-color:#1e8449;color:#fff}html[data-kumo-theme="dark"] .btn-primary-custom:hover{background:#186c3b;color:#fff}
html[data-kumo-theme="dark"] .login100-form-btn{color:#fff}
html[data-kumo-theme="dark"] .kc-decline,html[data-kumo-theme="dark"] #kumo-priv-modal .kpm-decline{background:#202b26;color:#ffb4b4;border-color:#8a3a3a !important}
html[data-kumo-theme="dark"] [data-kumo-fixbg]:hover,html[data-kumo-theme="dark"] [data-kumo-fixbg]:focus{filter:brightness(1.18)}

/* ---- layouts with their own top bar / light sidebar (new_default family) ---- */
html[data-kumo-theme="dark"] #sidebar-wrapper,html[data-kumo-theme="dark"] #sidebar_menu li a,html[data-kumo-theme="dark"] .sidebar-nav li a,html[data-kumo-theme="dark"] .sidebar-nav>.sidebar-brand a{background:var(--k-surface);color:var(--k-text-2);border-bottom-color:var(--k-divider)}
html[data-kumo-theme="dark"] .sidebar-nav li a:hover,html[data-kumo-theme="dark"] .sidebar-nav li a:focus,html[data-kumo-theme="dark"] #sidebar_menu li a:hover{background:var(--k-brand);color:#fff}
html[data-kumo-theme="dark"] .sidebar-nav li a.active,html[data-kumo-theme="dark"] .sidebar-nav li.active a{background:var(--k-active);color:#fff}
html[data-kumo-theme="dark"] #sidebar-wrapper [style*="background"]{background-color:var(--k-surface) !important}
html[data-kumo-theme="dark"] .sidebar_name{color:var(--k-text);opacity:1}

/* ---- Dark mode: no white page/footers/strips (page-level `body{background:#fff !important}` etc.) ---- */
html[data-kumo-theme="dark"]{background-color:var(--k-bg)}
html[data-kumo-theme="dark"] body{background-color:var(--k-bg) !important}
html[data-kumo-theme="dark"] .bg-white,html[data-kumo-theme="dark"] .bg-light,html[data-kumo-theme="dark"] .white-bg,html[data-kumo-theme="dark"] .bg-body{background-color:var(--k-surface) !important;color:var(--k-text)}
html[data-kumo-theme="dark"] #page-content-wrapper,html[data-kumo-theme="dark"] .main-container,html[data-kumo-theme="dark"] .content-wrapper,html[data-kumo-theme="dark"] .body-cont,html[data-kumo-theme="dark"] .wrapper,html[data-kumo-theme="dark"] .limiter-light{background-color:transparent}
html[data-kumo-theme="dark"] .modal-backdrop{background-color:#000}
html[data-kumo-theme="dark"] #full-page-wrapper{background-color:var(--k-bg) !important}

/* =====================================================================
   Responsive layer for the legacy layouts (phones <768px, tablets 768-1199px)
   ===================================================================== */
html,body{max-width:100%}
img,video,iframe,canvas{max-width:100%}
.dataTables_wrapper{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.kumo-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.modal-dialog{max-width:calc(100vw - 20px)}
.swal2-popup{max-width:94vw}
pre,code{white-space:pre-wrap;word-break:break-word}

/* ----- layouts that use #sidebar-wrapper + #wrapper.active (new_default family: Enrollment) ----- */
/* #sidebar-wrapper layouts (Enrollment): off-canvas drawer on phones AND tablets */
@media (max-width:1199px){
  #wrapper.active{padding-left:0 !important}
  #sidebar-wrapper{margin-left:0 !important;left:0 !important;width:270px !important;max-width:84vw;top:0;bottom:0;height:100% !important;overflow-y:auto;z-index:1058;
    transform:translateX(-105%);transition:transform .25s ease;padding-top:52px}
  body.kumo-sidebar-open #sidebar-wrapper{transform:none;box-shadow:8px 0 24px rgba(0,0,0,.35)}
  #sidebar-wrapper .sidebar-nav,#sidebar-wrapper .sidebar-nav li a{width:100% !important;float:none}
  #sidebar-wrapper #module_logo.hidden{display:block !important}
  #sidebar-wrapper #module_logo img{width:96px !important;height:96px !important;margin:0 auto;display:block}
  #page-content-wrapper{width:100% !important;padding-left:12px !important;padding-right:12px !important;margin-left:0 !important}
  body.kumo-sw .kumo-burger{display:flex}
  body.kumo-sw.kumo-sidebar-open .kumo-scrim{display:block}
}
@media (max-width:767px){
  /* fixed green top strip: compact, clear of burger (left) and floating buttons (right) */
  #page-content-wrapper>div[style*="position: fixed"],#page-content-wrapper>div[style*="position:fixed"]{margin-left:-12px !important;margin-right:0 !important;width:100% !important;padding-left:56px;padding-right:100px;overflow:hidden}
  #nav-con{padding-right:0 !important;float:right}
  #nav-con h5{font-size:0;margin:10px 0;white-space:nowrap}
  #nav-con h5 a{font-size:13px;display:inline-block;margin-left:10px}
  #nav-con h5 #changing-grading-system{font-size:0}
  #nav-con h5 #changing-grading-system .fa{font-size:17px}
  .page-header,h1.page-header{font-size:24px;margin-top:10px}
  h1{font-size:26px}h2{font-size:22px}h3{font-size:19px}
  .chart-container{height:240px !important}
  .panel-body{padding:10px}
  .form-inline .form-control,.form-inline .btn{width:100%;margin-bottom:6px}
  .btn-toolbar .btn,.btn-group-justified .btn{margin-bottom:4px}
  .col-xs-6.mobile-full{width:100%}
  .navbar-nav.pull-right{float:none !important}
  .container,.container-fluid{padding-left:12px;padding-right:12px}
  .modal-dialog{margin:10px auto}
  .dataTables_filter,.dataTables_length{text-align:left !important;float:none !important}
  .dataTables_filter input{width:100% !important;margin-left:0 !important}
  .dataTables_paginate{float:none !important;text-align:center}
}
@media (max-width:575px){
  #kumo-float .kf-btn{width:36px;height:36px}
  #kumo-float{gap:6px;top:6px}
  #kumo-activity-panel{top:50px}
}
@media (max-width:767px){#page-wrapper{padding-left:12px !important;padding-right:12px !important}}

/* ---- Sticky footer: on pages that have a bottom footer it always sits at the bottom of the viewport ---- */
html{min-height:100%}
body.kumo-has-footer{min-height:100vh;display:flex;flex-direction:column}
body.kumo-has-footer>#wrapper,body.kumo-has-footer>.wrapper,body.kumo-has-footer>.container-fluid:first-of-type{flex:1 0 auto}
body.kumo-has-footer>footer{margin-top:auto;flex-shrink:0}
@media print{body.kumo-has-footer{display:block;min-height:0}}

/* ---------- Grading system dialog (redesigned) ---------- */
#kumo-grading-modal{position:fixed;inset:0;z-index:2000;background:radial-gradient(circle at 30% 20%,rgba(2,90,48,.55),rgba(0,0,0,.72));backdrop-filter:blur(3px);display:none;align-items:center;justify-content:center;padding:14px}
#kumo-grading-modal.open{display:flex}
#kumo-grading-modal .gm{background:var(--k-surface);color:var(--k-text);border-radius:18px;width:100%;max-width:580px;max-height:94vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 30px 70px rgba(0,0,0,.5);animation:gmIn .28s cubic-bezier(.2,.9,.3,1.2)}
@keyframes gmIn{from{opacity:0;transform:translateY(14px) scale(.96)}to{opacity:1;transform:none}}
#kumo-grading-modal .gm-h{display:flex;align-items:center;gap:14px;padding:20px 22px;color:#fff;background:linear-gradient(120deg,#014626 0%,#025A30 55%,#0a8a4c 100%);position:relative}
#kumo-grading-modal .gm-h:after{content:"";position:absolute;left:0;right:0;bottom:0;height:4px;background:linear-gradient(90deg,#dfb833,#f3d56a,#dfb833)}
#kumo-grading-modal .gm-badge{width:46px;height:46px;border-radius:14px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.3);display:flex;align-items:center;justify-content:center;font-size:20px;flex:none}
#kumo-grading-modal .gm-ht{flex:1;min-width:0}
#kumo-grading-modal .gm-title{font-size:19px;font-weight:600;letter-spacing:.2px;line-height:1.2}
#kumo-grading-modal .gm-sub{font-size:12.5px;opacity:.85;margin-top:2px}
#kumo-grading-modal .gm-x{background:rgba(255,255,255,.12);border:0;color:#fff;width:32px;height:32px;border-radius:50%;font-size:20px;line-height:1;cursor:pointer;transition:background .15s}
#kumo-grading-modal .gm-x:hover{background:rgba(255,255,255,.28)}
#kumo-grading-modal .gm-b{padding:20px 22px;overflow-y:auto;flex:1}
#kumo-grading-modal .gm-load{text-align:center;padding:30px;color:var(--k-muted)}
#kumo-grading-modal .gm-sec{margin-bottom:18px}
#kumo-grading-modal .gm-lab{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.8px;color:var(--k-muted);margin-bottom:9px}
#kumo-grading-modal .gm-lab i{color:var(--k-brand-2);margin-right:5px}
#kumo-grading-modal .gm-chips{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:8px}
#kumo-grading-modal .gm-chip{border:1.5px solid var(--k-border);background:var(--k-surface-2);color:var(--k-text);border-radius:11px;padding:9px 6px;font-weight:500;font-size:13.5px;cursor:pointer;transition:all .16s ease}
#kumo-grading-modal .gm-chip:hover{border-color:var(--k-brand-2);transform:translateY(-1px);box-shadow:0 4px 10px rgba(0,0,0,.12)}
#kumo-grading-modal .gm-chip.on{background:linear-gradient(135deg,#025A30,#0a8a4c);border-color:#025A30;color:#fff;box-shadow:0 6px 14px rgba(2,90,48,.35)}
#kumo-grading-modal .gm-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#kumo-grading-modal .gm-card{text-align:left;border:1.5px solid var(--k-border);background:var(--k-surface-2);color:var(--k-text);border-radius:13px;padding:12px 14px;cursor:pointer;display:flex;flex-direction:column;gap:2px;transition:all .16s ease}
#kumo-grading-modal .gm-card span{font-size:12px;color:var(--k-muted)}
#kumo-grading-modal .gm-card:hover{border-color:var(--k-brand-2)}
#kumo-grading-modal .gm-card.on{border-color:var(--k-gold);background:linear-gradient(135deg,rgba(223,184,51,.18),rgba(223,184,51,.05));box-shadow:0 0 0 3px rgba(223,184,51,.22)}
#kumo-grading-modal .gm-sum{border:1px solid var(--k-border);border-radius:15px;background:var(--k-surface-2);overflow:hidden;animation:gmIn .25s ease}
#kumo-grading-modal .gm-sum-h{padding:12px 16px;border-bottom:1px solid var(--k-border)}
#kumo-grading-modal .gm-type{display:inline-flex;align-items:center;gap:8px;padding:5px 13px;border-radius:999px;font-weight:600;font-size:13px;color:#fff;background:#025A30}
#kumo-grading-modal .k-tri .gm-type{background:linear-gradient(135deg,#025A30,#0a8a4c)}
#kumo-grading-modal .k-sem .gm-type{background:linear-gradient(135deg,#7a5c00,#c79a12)}
#kumo-grading-modal .k-q .gm-type{background:linear-gradient(135deg,#1d4f8a,#2f7fd0)}
#kumo-grading-modal .gm-stats{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--k-border)}
#kumo-grading-modal .gm-stats div{padding:12px 16px;display:flex;flex-direction:column}
#kumo-grading-modal .gm-stats div+div{border-left:1px solid var(--k-border)}
#kumo-grading-modal .gm-stats b{font-size:26px;font-weight:600;line-height:1;color:var(--k-brand-2)}
#kumo-grading-modal .gm-stats span{font-size:12px;color:var(--k-muted);margin-top:3px}
#kumo-grading-modal .gm-row{padding:11px 16px;display:flex;gap:12px;align-items:flex-start}
#kumo-grading-modal .gm-row+.gm-row{border-top:1px dashed var(--k-border)}
#kumo-grading-modal .gm-row>span{flex:0 0 96px;font-size:12px;color:var(--k-muted);padding-top:4px}
#kumo-grading-modal .gm-row>div{display:flex;flex-wrap:wrap;gap:6px}
#kumo-grading-modal .gm-tag{background:var(--k-surface);border:1px solid var(--k-border);border-radius:999px;padding:3px 10px;font-size:12px;color:var(--k-text-2)}
#kumo-grading-modal .gm-more{cursor:help;border-style:dashed}
#kumo-grading-modal .gm-f{display:flex;align-items:center;gap:10px;padding:14px 22px;border-top:1px solid var(--k-border);background:var(--k-surface-2)}
#kumo-grading-modal .gm-hint{flex:1;font-size:12px;color:var(--k-muted)}
#kumo-grading-modal .gm-f button{border-radius:11px;padding:10px 20px;font-weight:600;cursor:pointer;transition:all .16s ease}
#kumo-grading-modal .gm-cancel{background:transparent;border:1.5px solid var(--k-border);color:var(--k-text)}
#kumo-grading-modal .gm-cancel:hover{background:var(--k-hover)}
#kumo-grading-modal .gm-ok{border:0;color:#fff;background:linear-gradient(135deg,#025A30,#0a8a4c);box-shadow:0 6px 14px rgba(2,90,48,.35)}
#kumo-grading-modal .gm-ok:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 9px 18px rgba(2,90,48,.45)}
#kumo-grading-modal .gm-ok:disabled{opacity:.6;cursor:not-allowed}
#kumo-grading-modal button:focus-visible{outline:3px solid var(--k-focus);outline-offset:2px}
@media (max-width:520px){#kumo-grading-modal .gm-hint{display:none}#kumo-grading-modal .gm-f{justify-content:flex-end}#kumo-grading-modal .gm-cards{grid-template-columns:1fr}#kumo-grading-modal .gm-row{flex-direction:column;gap:4px}#kumo-grading-modal .gm-row>span{flex:none}#kumo-grading-modal .gm-chips{grid-template-columns:repeat(2,1fr)}}
@media (prefers-reduced-motion:reduce){#kumo-grading-modal .gm,#kumo-grading-modal .gm-sum{animation:none}}
