:root{
  /* Navy scale → Schweiger Dark Blue ramp */
  --navy-950:#0f1a3d;
  --navy-900:#132a54;
  --navy-800:#1B3A6B;  /* Schweiger Dark Blue (brand primary) */
  --navy-700:#1f4784;
  --navy-600:#0092C9;  /* Mid Blue */
  --blue-500:#41B6E6;  /* Schweiger Light Blue */
  --blue-100:#D4EFFC;  /* Pale Blue */

  --bg:#F7F7F7;        /* Neutral */
  --card:#ffffff;
  --border:#e6e8f0;
  --text-900:#111827;
  --text-600:#4b5563;
  --text-400:#898B8D;  /* Schweiger Gray, doubling as muted text */

  --green:#16a34a;
  --green-bg:#e7f8ee;
  --orange:#e08a2e;
  --orange-bg:#fdf1e2;
  --red:#dc3545;
  --red-bg:#fbe7e9;

  --radius:12px;
  --shadow:0 1px 2px rgba(27,58,107,.04),0 1px 8px rgba(27,58,107,.04);
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  font-family:"Inter","Segoe UI",Arial,sans-serif;
  background:var(--bg);
  color:var(--text-900);
  font-size:14px;
}
a{color:inherit;text-decoration:none;}
ul{list-style:none;margin:0;padding:0;}
button{font-family:inherit;cursor:pointer;}
input,select{font-family:inherit;}

.app-single-select{position:relative;width:100%;}
.app-single-select-trigger{width:100%;min-height:40px;text-align:left;border:1px solid var(--border);border-radius:8px;background:#fff;padding:9px 34px 9px 12px;font-size:13px;color:var(--text-900);cursor:pointer;position:relative;}
.app-single-select.has-leading-icon .app-single-select-trigger{padding-left:42px;}
.app-single-select-trigger:after{content:"";position:absolute;right:13px;top:14px;width:7px;height:7px;border-right:2px solid var(--text-600);border-bottom:2px solid var(--text-600);transform:rotate(45deg);transition:transform .15s ease;}
.app-single-select.open .app-single-select-trigger{border-color:var(--navy-800);box-shadow:0 0 0 3px rgba(27,58,107,.14);}
.app-single-select.open .app-single-select-trigger:after{top:17px;transform:rotate(225deg);}
.app-single-select-menu{display:none;position:absolute;left:0;right:0;top:44px;z-index:100;background:#fff;border:1px solid var(--border);border-radius:8px;box-shadow:0 12px 24px rgba(15,23,42,.14);padding:6px;max-height:240px;overflow-y:auto;}
.app-single-select.open .app-single-select-menu{display:grid;gap:2px;}
.app-single-select-menu button{border:0;background:#fff;text-align:left;border-radius:6px;padding:9px 8px;color:var(--text-600);font-size:13px;cursor:pointer;}
.app-single-select-menu button:hover,.app-single-select-menu button.selected{background:var(--blue-100);color:var(--navy-800);font-weight:700;}

/* ---------- Layout ---------- */
.app{display:flex;min-height:100vh;}
.sidebar{
  width:250px;flex-shrink:0;background:var(--card);
  border-right:1px solid var(--border);
  display:flex;flex-direction:column;justify-content:space-between;
  position:sticky;top:0;height:100vh;
}
.sidebar-top{padding:20px 16px;}
.brand{display:flex;align-items:center;gap:10px;padding:4px 8px 22px;text-decoration:none;color:inherit;}
.brand-badge{
  width:32px;height:32px;border-radius:8px;background:var(--navy-800);
  display:flex;align-items:center;justify-content:center;color:#fff;flex-shrink:0;
}
.brand-name{font-weight:700;font-size:16px;color:var(--navy-900);}

.nav-list{display:flex;flex-direction:column;gap:2px;}
.nav-item{
  display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:8px;
  color:var(--text-600);font-weight:500;font-size:14px;
}
.nav-item svg{flex-shrink:0;}
.nav-item:hover{background:var(--blue-100);color:var(--navy-800);}
.nav-item.active{background:var(--navy-800);color:#fff;}
.nav-divider{height:1px;background:var(--border);margin:14px 4px;}

.nav-parent{cursor:pointer;user-select:none;}
.nav-caret{display:inline-block;width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .15s ease;flex:0 0 7px;margin-right:3px;}
.nav-caret.open{transform:rotate(225deg);}
.nav-submenu{max-height:0;overflow:hidden;display:flex;flex-direction:column;gap:2px;padding-left:14px;transition:max-height .18s ease;}
.nav-submenu.open{max-height:200px;padding-top:2px;padding-bottom:4px;}
.nav-subitem{display:flex;align-items:center;gap:9px;padding:8px 12px;border-radius:8px;color:var(--text-600);font-size:13.5px;font-weight:500;}
.nav-subitem:hover{background:var(--blue-100);color:var(--navy-800);}
.nav-subitem.active{background:var(--blue-100);color:var(--navy-800);font-weight:700;}

/* header selector buttons (date range / business unit) */
.selector-btn{
  display:inline-flex;align-items:center;gap:8px;border:1px solid var(--border);background:#fff;
  border-radius:8px;padding:9px 14px;font-size:13px;font-weight:600;color:var(--text-700,#374151);
}
.avatar-round{width:26px;height:26px;border-radius:50%;background:var(--navy-800);color:#fff;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;}

/* status badge with icon (image4 style) */
.badge-icon{display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:20px;font-size:12px;font-weight:600;}
.badge-icon.status-active{background:var(--green-bg);color:var(--green);}
.badge-icon.status-idle{background:#eef0f6;color:var(--text-600);}
.badge-icon.status-error{background:var(--red-bg);color:var(--red);}
.badge-icon.status-paused{background:#eef0f6;color:var(--text-600);}
.badge-icon.status-scheduled{background:#fffaeb!important;background-color:#fffaeb!important;color:#b54708!important;}
.badge-icon.status-cancelled{background:#eef0f6!important;background-color:#eef0f6!important;color:var(--text-600)!important;}
.badge-icon.status-completed{background:var(--blue-100);color:var(--navy-800);}

.owner-chip{display:flex;align-items:center;gap:8px;font-weight:500;}

/* row action menu ("...") */
.row-menu{position:relative;display:inline-block;}
.row-menu-btn{width:28px;height:28px;border-radius:6px;border:none;background:transparent;color:var(--text-400);display:flex;align-items:center;justify-content:center;}
.row-menu-btn:hover{background:#eef0f6;color:var(--text-900);}
.row-menu-list{
  display:none;position:absolute;right:0;top:32px;background:#fff;border:1px solid var(--border);
  border-radius:8px;box-shadow:0 10px 30px rgba(16,24,64,.12);min-width:150px;z-index:20;overflow:hidden;
}
.row-menu-list.open{display:block;}
.row-menu-list a,.row-menu-list button{
  display:block;width:100%;text-align:left;padding:9px 14px;font-size:13px;color:var(--text-900);background:none;border:none;
}
.row-menu-list a:hover,.row-menu-list button:hover{background:var(--blue-100);color:var(--navy-800);}

.kpi-row-flat{display:flex;gap:34px;margin-bottom:18px;flex-wrap:wrap;}

.sidebar-bottom{padding:16px;border-top:1px solid var(--border);}

/* ---------- Topbar ---------- */
.main{flex:1;min-width:0;display:flex;flex-direction:column;}
.topbar{
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 28px;background:transparent;
}
.breadcrumb{font-size:14px;color:var(--text-400);}
.breadcrumb b{color:var(--text-900);font-weight:600;}
.topbar-right{display:flex;align-items:center;gap:18px;}
.bell{
  width:38px;height:38px;border-radius:50%;background:var(--card);
  display:flex;align-items:center;justify-content:center;border:1px solid var(--border);color:var(--text-600);
}
.user-chip{display:flex;align-items:center;gap:10px;}
.avatar{
  width:38px;height:38px;border-radius:50%;background:var(--navy-800);color:#fff;
  display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;
}
.user-meta .uname{font-weight:600;font-size:13px;color:var(--text-900);}
.user-meta .urole{font-size:12px;color:var(--text-400);}

.content{padding:0 28px 32px;}

.page-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;flex-wrap:wrap;gap:12px;}
.page-title-wrap{display:flex;align-items:center;gap:12px;}
.page-icon{
  width:40px;height:40px;border-radius:10px;background:var(--navy-800);color:#fff;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.page-title{font-size:20px;font-weight:700;color:var(--text-900);margin:0;}
.page-sub{font-size:13px;color:var(--text-400);margin:2px 0 0;}
.page-actions{display:flex;align-items:center;gap:10px;}

/* ---------- Cards / Buttons ---------- */
.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);}
.card-pad{padding:20px;}

.btn{
  display:inline-flex;align-items:center;gap:8px;border-radius:8px;padding:10px 16px;
  font-size:14px;font-weight:600;border:1px solid transparent;
}
.btn-primary{background:var(--navy-800);color:#fff;}
.btn-primary:hover{background:var(--navy-700);}
.btn-outline{background:#fff;color:var(--text-600);border-color:var(--border);}
.btn-outline:hover{border-color:var(--navy-700);color:var(--navy-800);}
.btn-sm{padding:7px 12px;font-size:13px;}
.btn-block{width:100%;justify-content:center;}
.btn-danger-outline{background:#fff;color:var(--red);border-color:var(--red-bg);}

.select, .form-input{
  border:1px solid var(--border);border-radius:8px;padding:9px 12px;font-size:13px;
  background:#fff;color:var(--text-900);width:100%;
}
.select:focus,.form-input:focus{outline:none;border-color:var(--navy-600);}

/* ---------- Stat grid ---------- */
.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px;}
.stat-card{padding:18px;}
.stat-top{display:flex;align-items:center;justify-content:space-between;}
.stat-label{color:var(--text-400);font-size:12.5px;font-weight:600;text-transform:uppercase;letter-spacing:.03em;}
.stat-icon{width:30px;height:30px;border-radius:8px;display:flex;align-items:center;justify-content:center;}
.stat-icon.blue{background:var(--blue-100);color:var(--navy-800);}
.stat-icon.green{background:var(--green-bg);color:var(--green);}
.stat-icon.orange{background:var(--orange-bg);color:var(--orange);}
.stat-icon.red{background:var(--red-bg);color:var(--red);}
.stat-value{font-size:28px;font-weight:700;margin:8px 0 4px;color:var(--text-900);}
.stat-delta{font-size:12px;color:var(--text-400);}
.stat-delta.up{color:var(--green);}
.stat-delta.down{color:var(--red);}

/* ---------- Charts row ---------- */
.chart-row{display:grid;grid-template-columns:2fr 1fr;gap:16px;margin-bottom:16px;}
.chart-card{padding:18px 20px;}
.chart-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:6px;}
.chart-title{font-weight:700;font-size:14.5px;color:var(--text-900);}
.chart-sub{font-size:12px;color:var(--text-400);margin-top:2px;}
.chart-kpi{font-weight:700;font-size:15px;}
.chart-kpi .delta{color:var(--green);font-size:12px;font-weight:600;margin-left:4px;}
.icon-btn{width:30px;height:30px;border-radius:8px;border:1px solid var(--border);background:#fff;display:flex;align-items:center;justify-content:center;color:var(--text-600);}

.legend-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;}
.legend-pill{
  display:inline-flex;align-items:center;gap:6px;font-size:12px;padding:5px 10px;border-radius:20px;
  border:1px solid var(--border);color:var(--text-600);
}
.legend-pill .dot{width:8px;height:8px;border-radius:50%;}
.legend-pill.active{background:var(--navy-800);color:#fff;border-color:var(--navy-800);}
.legend-pill.active .dot{background:#fff;}

/* ---------- Table ---------- */
.table-wrap{overflow-x:auto;}
table.data-table{width:100%;border-collapse:collapse;font-size:13.5px;}
table.data-table th{
  text-align:left;color:var(--text-400);font-weight:600;font-size:11.5px;text-transform:uppercase;
  letter-spacing:.03em;padding:12px 16px;border-bottom:1px solid var(--border);white-space:nowrap;
}
table.data-table td{padding:14px 16px;border-bottom:1px solid var(--border);color:var(--text-900);white-space:nowrap;}
table.data-table tr:last-child td{border-bottom:none;}
table.data-table tr:hover td{background:#fafbff;}
.link-cell{color:var(--navy-700);font-weight:600;}
.link-cell:hover{text-decoration:underline;}

.badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:20px;font-size:12px;font-weight:600;}
.badge .dot{width:6px;height:6px;border-radius:50%;}
.badge.status-active,.badge.status-processed,.badge.status-completed,.badge.status-resolved,.badge.status-active-user{background:var(--green-bg);color:var(--green);}
.badge.status-idle,.badge.status-paused,.badge.status-invited,.badge.status-inreview{background:#eef0f6;color:var(--text-600);}
.badge.status-error,.badge.status-failed,.badge.status-disabled{background:var(--red-bg);color:var(--red);}
.badge.status-pending,.badge.status-open{background:var(--orange-bg);color:var(--orange);}
.badge .dot.status-active,.badge .dot.status-processed,.badge .dot.status-completed,.badge .dot.status-resolved{background:var(--green);}
.badge .dot.status-idle,.badge .dot.status-paused,.badge .dot.status-invited,.badge .dot.status-inreview{background:var(--text-400);}
.badge .dot.status-error,.badge .dot.status-failed,.badge .dot.status-disabled{background:var(--red);}
.badge .dot.status-pending,.badge .dot.status-open{background:var(--orange);}

.pill-role{background:var(--blue-100);color:var(--navy-800);padding:4px 10px;border-radius:20px;font-size:12px;font-weight:600;}

.toolbar{display:flex;gap:10px;align-items:center;margin-bottom:16px;flex-wrap:wrap;}
.toolbar .grow{flex:1;}

.empty-state{padding:70px 20px;text-align:center;color:var(--text-400);}
.empty-state svg{margin-bottom:12px;color:var(--text-400);}

/* ---------- Pagination ---------- */
.pagination{display:flex;justify-content:flex-end;gap:6px;padding:14px 16px;}
.pagination a,.pagination span{
  padding:6px 11px;border-radius:6px;border:1px solid var(--border);font-size:12.5px;color:var(--text-600);
}
.pagination .current{background:var(--navy-800);color:#fff;border-color:var(--navy-800);}

/* ---------- Login page ---------- */
.login-wrap{display:flex;min-height:100vh;background:#fff;}
.login-left{flex:1;display:flex;flex-direction:column;justify-content:center;padding:0 60px;max-width:560px;}
.login-brand{display:flex;align-items:center;gap:10px;position:absolute;top:28px;left:40px;}
.login-title{font-size:28px;font-weight:700;color:var(--navy-900);margin:0 0 6px;}
.login-sub{color:var(--text-400);margin:0 0 28px;font-size:14px;}
.login-field{margin-bottom:18px;}
.login-field label{display:block;font-size:13px;font-weight:600;margin-bottom:6px;color:var(--text-900);}
.login-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px;}
.switch{position:relative;width:38px;height:22px;border-radius:20px;background:var(--navy-800);display:inline-block;}
.switch::after{content:"";position:absolute;top:2px;left:18px;width:18px;height:18px;border-radius:50%;background:#fff;}
/* .remember{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text-600);} */
.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.switch-control {
    position: relative;
    display: inline-flex;
    width: 38px;
    height: 22px;
    flex: 0 0 auto;
}

.remember-checkbox {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.switch-track {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: #c9cfdd;
    transition:
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.switch-track::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
    transition: transform 0.18s ease;
}

.remember-checkbox:checked + .switch-track {
    background: #152a55;
}

.remember-checkbox:checked + .switch-track::after {
    transform: translateX(16px);
}

.remember-checkbox:focus-visible + .switch-track {
    box-shadow: 0 0 0 3px rgba(58, 91, 199, 0.24);
}


.login-footer{display:flex;justify-content:center;margin-top:16px;font-size:13px;color:var(--text-400);}
.login-error{background:var(--red-bg);color:var(--red);padding:10px 14px;border-radius:8px;font-size:13px;margin-bottom:16px;}
.login-right{
  flex:1;position:relative;overflow:hidden;margin:14px;border-radius:24px;
  background:linear-gradient(135deg,var(--navy-900),var(--blue-500));
  display:flex;align-items:center;justify-content:center;
}
.login-right svg.waves{position:absolute;inset:0;width:100%;height:100%;opacity:.5;}
.login-right .badge-circle{
  width:180px;height:180px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;
  box-shadow:0 20px 50px rgba(0,0,0,.25);position:relative;z-index:2;
}
.login-right .badge-inner{
  width:90px;height:90px;border-radius:20px;background:var(--navy-800);display:flex;align-items:center;justify-content:center;color:#fff;
}
.site-footer{display:flex;justify-content:space-between;padding:14px 28px;font-size:12px;color:var(--text-400);}

/* ---------- Modal ---------- */
.modal-overlay{
  position:fixed;inset:0;background:rgba(15,20,55,.45);display:flex;align-items:center;justify-content:center;
  z-index:50;padding:20px;
}
.modal-card{background:#fff;border-radius:16px;width:100%;max-width:860px;padding:0;overflow:hidden;box-shadow:0 30px 60px rgba(0,0,0,.25);}
.modal-header{padding:24px 28px 16px;border-bottom:1px solid var(--border);}
.modal-header h2{margin:0 0 4px;font-size:19px;color:var(--text-900);}
.modal-header p{margin:0;color:var(--text-400);font-size:13px;}
.modal-body{padding:24px 28px;display:grid;grid-template-columns:1.6fr 1fr;gap:22px;}
.modal-footer{display:flex;justify-content:flex-end;gap:10px;padding:0 28px 24px;}
.field-group{margin-bottom:16px;}
.field-group label{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;margin-bottom:6px;color:var(--text-900);}
.recur-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;}
.recur-opt{
  text-align:center;padding:9px 6px;border-radius:8px;border:1px solid var(--border);font-size:13px;
  font-weight:600;color:var(--text-600);background:#fff;cursor:pointer;
}
.recur-opt.selected{background:var(--navy-800);color:#fff;border-color:var(--navy-800);}
.side-box{background:var(--bg);border:1px solid var(--border);border-radius:10px;padding:14px;margin-bottom:14px;}
.side-box h4{margin:0 0 10px;font-size:11.5px;text-transform:uppercase;letter-spacing:.04em;color:var(--text-400);}
.recent-run{display:flex;justify-content:space-between;font-size:13px;padding:6px 0;color:var(--text-900);}
.recent-run .status{color:var(--green);font-size:12px;}
.notice{background:var(--blue-100);border:1px solid #cfd8f6;border-radius:8px;padding:12px 14px;font-size:13px;color:var(--navy-900);margin-top:6px;}
.notice b{display:block;margin-bottom:2px;}

/* ---------- Detail KPI row ---------- */
.kpi-row{display:flex;gap:28px;padding:16px 20px;border-bottom:1px solid var(--border);flex-wrap:wrap;}
.kpi-item{display:flex;align-items:center;gap:10px;}
.kpi-icon{width:34px;height:34px;border-radius:8px;display:flex;align-items:center;justify-content:center;}
.kpi-item .kpi-label{font-size:11px;text-transform:uppercase;color:var(--text-400);font-weight:600;}
.kpi-item .kpi-value{font-size:15px;font-weight:700;color:var(--text-900);}

.filter-row{display:flex;gap:10px;align-items:center;margin-bottom:18px;flex-wrap:wrap;}

@media(max-width:1100px){
  .stat-grid{grid-template-columns:repeat(2,1fr);}
  .chart-row{grid-template-columns:1fr;}
  .modal-body{grid-template-columns:1fr;}
}


/* ---------- Job Notifications ---------- */
.notification-wrap{position:relative;}
.notification-bell{cursor:pointer;position:relative;}
.notification-count{position:absolute;top:-5px;right:-5px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:#dc2626;color:#fff;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center;border:2px solid var(--card);}
.notification-dropdown{display:none;position:absolute;right:0;top:48px;width:360px;max-height:420px;overflow-y:auto;background:var(--card);border:1px solid var(--border);border-radius:12px;box-shadow:0 14px 35px rgba(15,23,42,.16);z-index:1000;}
.notification-dropdown.open{display:block;}
.notification-header{padding:14px 16px;border-bottom:1px solid var(--border);font-size:14px;font-weight:700;color:var(--text-900);}
.notification-item{padding:13px 16px;border-bottom:1px solid var(--border);cursor:pointer;transition:background .15s ease;}
.notification-item.unread{background:#eef4ff;box-shadow:inset 3px 0 0 #2563eb;}
.notification-item:hover{background:#f8fafc;}
.notification-item.unread:hover{background:#e3edff;}
.notification-item:focus-visible{outline:2px solid var(--navy-600);outline-offset:-2px;}
.notification-item:last-child{border-bottom:none;}
.notification-title{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;font-weight:700;color:var(--text-900);}
.notification-status{font-size:10px;font-weight:700;padding:3px 7px;border-radius:999px;}
.notification-status.completed{background:#dcfce7;color:#166534;}
.notification-status.failed{background:#fee2e2;color:#991b1b;}
.notification-stage{margin-top:6px;font-size:12px;color:var(--text-600);}
.notification-message{margin-top:4px;font-size:12px;color:var(--text-400);line-height:1.4;}
.notification-time{margin-top:6px;font-size:11px;color:var(--text-400);}
.notification-empty{padding:22px 16px;text-align:center;font-size:12px;color:var(--text-400);}

#overview-filter-form select,#scheduler-report-filter select,#exception-report-filter select{appearance:none;-webkit-appearance:none;padding-right:48px!important;background-image:linear-gradient(45deg,transparent 50%,#6b7280 50%),linear-gradient(135deg,#6b7280 50%,transparent 50%);background-position:calc(100% - 26px) 50%,calc(100% - 21px) 50%;background-size:5px 5px,5px 5px;background-repeat:no-repeat;}

#overviewDateRangeToggle,#schedulerDateRangeToggle,#exceptionDateRangeToggle{padding-right:48px!important;background-image:linear-gradient(45deg,transparent 50%,#6b7280 50%),linear-gradient(135deg,#6b7280 50%,transparent 50%)!important;background-position:calc(100% - 26px) 50%,calc(100% - 21px) 50%!important;background-size:5px 5px,5px 5px!important;background-repeat:no-repeat!important;}#overviewDateRangeToggle>svg:last-child,#schedulerDateRangeToggle>svg:last-child,#exceptionDateRangeToggle>svg:last-child{display:none!important;}

#overview-filter-form select{font-weight:400!important;}

select:not([multiple]),#overview-filter-form select,#scheduler-report-filter select,#exception-report-filter select{appearance:none!important;-webkit-appearance:none!important;padding-right:40px!important;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiM2QjcyODAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJtNiA5IDYgNiA2LTYiLz48L3N2Zz4=")!important;background-repeat:no-repeat!important;background-position:right 14px center!important;background-size:14px 14px!important;}
#overviewDateRangeToggle,#schedulerDateRangeToggle,#exceptionDateRangeToggle{padding-right:40px!important;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiM2QjcyODAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJtNiA5IDYgNiA2LTYiLz48L3N2Zz4=")!important;background-repeat:no-repeat!important;background-position:right 14px center!important;background-size:14px 14px!important;}
#overviewDateRangeToggle svg:last-child,#schedulerDateRangeToggle svg:last-child,#exceptionDateRangeToggle svg:last-child{display:none!important;}

/* Shared date-range picker appearance across Dashboard and Reports. */
#overviewDateRangeToggle,#schedulerDateRangeToggle,#exceptionDateRangeToggle{height:44px!important;width:285px!important;min-width:285px!important;display:flex!important;align-items:center!important;gap:12px!important;padding:0 14px!important;border:1px solid var(--border)!important;border-radius:8px!important;background:#fff!important;color:var(--text-900)!important;font:inherit!important;cursor:pointer!important;}
#overviewDateRangePanel,#schedulerDateRangePanel,#exceptionDateRangePanel{top:50px!important;left:0!important;width:320px!important;padding:14px!important;border:1px solid var(--border)!important;border-radius:10px!important;background:#fff!important;box-shadow:0 10px 30px rgba(15,23,42,.12)!important;}
#overviewDateRangePanel input,#schedulerDateRangePanel input,#exceptionDateRangePanel input{height:40px!important;border:1px solid var(--border)!important;border-radius:8px!important;background:#fff!important;color:var(--text-900)!important;padding:9px 10px!important;}
@media(max-width:900px){#overviewDateRangeToggle,#schedulerDateRangeToggle,#exceptionDateRangeToggle{width:100%!important;min-width:0!important}.overview-date-range,.scheduler-date-range,.exception-date-range{width:100%!important;min-width:0!important}.page-actions #overviewDateRangePanel,.page-actions #schedulerDateRangePanel,.page-actions #exceptionDateRangePanel{width:100%!important;}}
#scheduler-report-filter .scheduler-date-range{flex:0 0 300px!important;width:300px!important;min-width:300px!important;}
#exception-report-filter .exception-date-range{flex:1 1 0!important;width:auto!important;min-width:0!important;}
#scheduler-report-filter .scheduler-date-range + div{flex:0 0 300px!important;width:300px!important;min-width:300px!important;}
#scheduler-report-filter #schedulerDateRangeToggle,#exception-report-filter #exceptionDateRangeToggle{width:100%!important;min-width:0!important;}
#scheduler-report-filter .app-single-select-trigger,#exception-report-filter .app-single-select-trigger{height:44px!important;min-height:44px!important;}

/* ---------- Responsive layout ---------- */
.mobile-menu-btn{display:none;width:40px;height:40px;border:1px solid var(--border);border-radius:9px;background:var(--card);color:var(--text-600);align-items:center;justify-content:center;flex-shrink:0;}
.chart-card,.stat-card,.page-head,.page-actions,.filter-row,.toolbar{min-width:0;}
.chart-card{overflow:hidden;}
.chart-card canvas{max-width:100%!important;}

@media(max-width:1100px){
  .content{padding:0 20px 28px;}
  .topbar{padding:14px 20px;}
  .page-actions{flex-wrap:wrap;}
  .filter-row{align-items:stretch;}
}

@media(max-width:900px){
  body.sidebar-open{overflow:hidden;}
  body.sidebar-open::before{content:"";position:fixed;inset:0;background:rgba(15,23,42,.42);z-index:1090;}
  .sidebar{position:fixed;left:0;top:0;bottom:0;height:100dvh;width:min(280px,84vw);z-index:1100;transform:translateX(-100%);transition:transform .22s ease;box-shadow:0 18px 50px rgba(15,23,42,.18);}
  .sidebar.mobile-open{transform:translateX(0);}
  .mobile-menu-btn{display:inline-flex;}
  .topbar{gap:12px;position:sticky;top:0;z-index:1000;background:rgba(247,247,247,.96);backdrop-filter:blur(8px);border-bottom:1px solid rgba(230,232,240,.9);}
  .breadcrumb{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .topbar-right{gap:10px;flex-shrink:0;}
  .content{padding:18px 18px 28px;}
  .page-head{align-items:flex-start;}
  .page-actions{width:100%;}
  .notification-dropdown{position:fixed;top:68px;right:14px;left:14px;width:auto;max-height:min(70vh,520px);}
  .modal-overlay{padding:12px;}
  .modal-card{max-height:calc(100dvh - 24px);overflow:auto;}
  .modal-header{padding:20px 20px 14px;}
  .modal-body{padding:20px;}
  .modal-footer{padding:0 20px 20px;flex-wrap:wrap;}
}

/* ---------- Dashboard responsive content ---------- */
@media(max-width:900px){
  #overview-filter-form{flex-wrap:wrap!important;align-items:stretch!important;}
  #overview-filter-form>.overview-date-range,#overview-filter-form>div:not(.overview-date-range){flex:1 1 280px!important;width:auto!important;min-width:0!important;}
  #overviewDateRangePanel{width:100%!important;max-width:100%!important;}
  .chart-head{gap:12px;flex-wrap:wrap;}
  .chart-head>div:first-child{min-width:0;flex:1 1 220px;}
  .legend-row{overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px;scrollbar-width:thin;}
  .legend-pill{flex:0 0 auto;}
  .site-footer{padding:14px 18px;gap:12px;flex-wrap:wrap;}
}
@media(max-width:640px){
  .topbar{padding:12px 14px;}
  .content{padding:14px 14px 24px;}
  .breadcrumb{font-size:12px;}
  .topbar-right{gap:8px;}
  .bell{width:36px;height:36px;}
  .user-chip{gap:7px;}
  .user-meta{display:none;}
  .avatar{width:34px;height:34px;font-size:11px;}
  .page-title-wrap{align-items:flex-start;}
  .page-icon{width:36px;height:36px;}
  .page-title{font-size:18px;}
  .page-sub{line-height:1.45;}
  #overview-filter-form{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;}
  #overview-filter-form>.overview-date-range,#overview-filter-form>div:not(.overview-date-range){width:100%!important;min-width:0!important;}
  #overview-filter-form>button,#overview-filter-form>a{width:100%!important;min-height:42px;justify-content:center;}
  #overviewDateRangePanel{width:100%!important;min-width:0!important;left:0!important;}
  #overviewDateRangePanel>div{grid-template-columns:1fr!important;}
  .stat-grid{grid-template-columns:1fr;gap:12px;}
  .stat-card{padding:15px;}
  .stat-value{font-size:25px;}
  .chart-row{gap:12px;}
  .chart-card{padding:15px;}
  .chart-head{align-items:flex-start;}
  .chart-head>div{max-width:100%;}
  .chart-kpi{font-size:14px;}
  .chart-kpi .delta{display:block;margin:3px 0 0;}
  .icon-btn{flex:0 0 auto;}
  .table-wrap{margin-left:-15px;margin-right:-15px;padding-left:15px;padding-right:15px;}
  .pagination{justify-content:flex-start;overflow-x:auto;}
  .notification-dropdown{top:62px;right:10px;left:10px;width:auto;}
  .site-footer{padding:14px;flex-direction:column;align-items:flex-start;}
  .site-footer>span:last-child{flex-wrap:wrap;gap:10px!important;}
  .modal-footer .btn,.modal-footer button{flex:1 1 140px;justify-content:center;}
}
@media(max-width:420px){
  .mobile-menu-btn{width:36px;height:36px;}
  .topbar{gap:8px;}
  .breadcrumb span{display:none;}
  .breadcrumb b{display:block;overflow:hidden;text-overflow:ellipsis;}
  .stat-grid{margin-bottom:14px;}
  .chart-card{padding:13px;}
  .chart-title{font-size:14px;}
  .chart-sub{line-height:1.4;}
}


/* ---------- Remaining application responsiveness ---------- */
.job-live-status-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:start;}
.schedule-two-col-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
@media(max-width:900px){
  .job-live-status-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  #exception-report-filter,#scheduler-report-filter{flex-wrap:wrap!important;align-items:stretch!important;}
  #exception-report-filter>div,#scheduler-report-filter>div{flex:1 1 280px!important;min-width:0!important;width:auto!important;}
}
@media(max-width:640px){
  .job-live-status-grid{grid-template-columns:1fr;gap:14px;}
  .schedule-two-col-grid{grid-template-columns:1fr;gap:10px;}
  #exception-report-filter,#scheduler-report-filter{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;}
  #exception-report-filter>div,#scheduler-report-filter>div{width:100%!important;min-width:0!important;}
  #exception-report-filter>button,#exception-report-filter>a,#scheduler-report-filter>button,#scheduler-report-filter>a{width:100%!important;justify-content:center;min-height:42px;}
  #exceptionDateRangePanel,#schedulerDateRangePanel{width:100%!important;max-width:100%!important;min-width:0!important;left:0!important;}
  #exceptionDateRangePanel>div,#schedulerDateRangePanel>div{grid-template-columns:1fr!important;}
  .kpi-row-flat{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
}
@media(max-width:420px){.kpi-row-flat{grid-template-columns:1fr;}}

@media(max-width:900px){.login-right{display:none!important}.login-left{max-width:none;width:100%;padding:80px 24px 32px}.login-wrap{display:block}.login-brand{left:24px;top:24px}}

#processedChart,#exceptionChart{height:260px!important;min-height:260px!important;}#scrubChart{height:220px!important;min-height:220px!important;}@media(max-width:900px){#processedChart,#exceptionChart{height:240px!important;min-height:240px!important;}#scrubChart{height:210px!important;min-height:210px!important;}}@media(max-width:640px){#processedChart,#exceptionChart{height:220px!important;min-height:220px!important;}#scrubChart{height:200px!important;min-height:200px!important;}}

.exception-chart-wrap{position:relative;width:100%;height:320px;min-height:320px;}@media(max-width:900px){.exception-chart-wrap{height:300px;min-height:300px;}}@media(max-width:640px){.exception-chart-wrap{height:280px;min-height:280px;}}

.report-pagination{justify-content:space-between!important;align-items:center!important;gap:12px;flex-wrap:wrap;font-family:"Inter","Segoe UI",Arial,sans-serif}.report-pagination>span:first-child{flex:1 1 220px;border:0!important;background:none!important;padding:0 4px!important;color:var(--text-400)!important}.report-pagination>span:last-child{display:flex!important;align-items:center;gap:6px!important;max-width:100%;overflow-x:auto;border:0!important;background:none!important;padding:2px 0!important}.report-pagination>span:last-child>span,.report-pagination a{flex:0 0 auto}#exception-report-filter,.report-kpi-grid,.exception-chart-wrap{font-family:"Inter","Segoe UI",Arial,sans-serif!important}@media(max-width:640px){.report-pagination{flex-direction:column;align-items:stretch!important;padding:12px 10px}.report-pagination>span:first-child{flex:none;width:100%;box-sizing:border-box}.report-pagination>span:last-child{width:100%;justify-content:flex-start}}

.donut-chart-wrap{position:relative;width:180px;height:180px;margin:12px auto 0}.donut-chart-wrap #scrubChart{display:block!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important}@media(max-width:640px){.donut-chart-wrap{width:160px;height:160px}}

.donut-chart-wrap{width:230px!important;height:230px!important}@media(max-width:900px){.donut-chart-wrap{width:215px!important;height:215px!important}}@media(max-width:640px){.donut-chart-wrap{width:200px!important;height:200px!important}}

.donut-chart-wrap{width:230px!important;height:230px!important}@media(max-width:900px){.donut-chart-wrap{width:215px!important;height:215px!important}}@media(max-width:640px){.donut-chart-wrap{width:200px!important;height:200px!important}}

.sso-login-popup-overlay{position:fixed;inset:0;z-index:3000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(15,23,42,.48)}.sso-login-popup{width:100%;max-width:420px;padding:26px;border-radius:14px;background:#fff;box-shadow:0 24px 60px rgba(15,23,42,.24);text-align:center}.sso-login-popup-icon{width:44px;height:44px;margin:0 auto 14px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff3cd;color:#9a6700;font-size:22px;font-weight:700}.sso-login-popup h2{margin:0 0 8px;font-size:19px;color:var(--text-900)}.sso-login-popup p{margin:0 0 20px;color:var(--text-600);font-size:14px;line-height:1.55}@media(max-width:640px){.sso-login-popup-overlay{padding:14px}.sso-login-popup{padding:22px 18px}}
