/* SERVERCOMP,INC portal shell theme: loads after app.css (AdminLTE 3.1 / Bootstrap 4.6) */

@font-face{font-family:Barlow;font-weight:400;font-display:swap;src:url(../fonts/barlow-400.woff2) format('woff2')}
@font-face{font-family:Barlow;font-weight:600;font-display:swap;src:url(../fonts/barlow-600.woff2) format('woff2')}
@font-face{font-family:Barlow;font-weight:700;font-display:swap;src:url(../fonts/barlow-700.woff2) format('woff2')}

:root{
   --navy:#0B3A8A; --navy-deep:#072a66; --navy-ink:#05204f;
   --blue:#189BFF; --blue-strong:#0B6FD1; --sky:#BBD6FF;
   --ink:#0A1B3D; --muted:#4A5A78; --line:#DCE4F0; --bg:#F4F7FC; --card:#fff;
   --open:#0B6FD1; --closed:#1E8E5A; --hold:#D9480F; --pending:#B7791F;
   --radius:14px; --radius-sm:10px;
   --shadow:0 1px 2px rgba(10,27,61,.06),0 8px 24px -12px rgba(10,27,61,.18);
   --ease:cubic-bezier(.16,1,.3,1);
   --header-h:3.5rem;
}

/* ---------- Base ---------- */
html{-webkit-text-size-adjust:100%}
body,.main-header,.main-sidebar,.content-wrapper,.main-footer,
h1,h2,h3,h4,h5,h6,.btn,.form-control,.table,.dropdown-menu{font-family:Barlow,system-ui,-apple-system,"Segoe UI",sans-serif!important}
body{color:var(--ink);background:var(--bg);font-size:1rem;line-height:1.5;accent-color:var(--blue-strong);caret-color:var(--blue-strong)}
::selection{background:var(--blue);color:#fff}
:focus-visible{outline:3px solid rgba(24,155,255,.55)!important;outline-offset:2px}
a{color:var(--blue-strong)}
a:hover{color:var(--navy)}
.text-muted{color:var(--muted)!important}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:#C3D0E6;border-radius:10px;border:2px solid var(--bg)}
::-webkit-scrollbar-thumb:hover{background:#9FB3D6}

/* ---------- Header ---------- */
.main-header{background:rgba(255,255,255,.92)!important;backdrop-filter:saturate(1.4) blur(10px);-webkit-backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid var(--line)!important;height:var(--header-h);min-height:var(--header-h);padding:0 .75rem;transition:box-shadow .25s;z-index:1034}
.main-header.scrolled{box-shadow:0 8px 24px -16px rgba(10,27,61,.35)}
.main-header .nav-link{display:grid;place-items:center;min-width:2.75rem;height:2.75rem;padding:0;border-radius:10px;color:var(--muted)!important;transition:background .2s,color .2s}
.main-header .nav-link:hover{background:#E8F0FB;color:var(--navy)!important}
.main-header .header-brand{display:none;align-items:center;gap:.5rem;margin-left:.25rem;color:var(--navy);font-weight:700;letter-spacing:.05em;text-transform:uppercase;text-decoration:none}
.main-header .header-brand img{width:38px;height:auto}
.user-menu>.nav-link{display:flex!important;align-items:center;gap:.65rem;width:auto;padding:0 .35rem 0 .25rem!important}
.user-menu .u-avatar{width:2.25rem;height:2.25rem;border-radius:50%;object-fit:cover;border:2px solid #fff;box-shadow:0 0 0 1.5px var(--line)}
.user-menu .u-text{display:flex;flex-direction:column;line-height:1.15;text-align:left}
.user-menu .u-name{font-weight:600;color:var(--ink);font-size:.9375rem}
.user-menu .u-role{font-size:.75rem;color:var(--muted);text-transform:capitalize}
.user-menu .dropdown-menu{min-width:15rem;margin-top:.5rem;padding:.4rem;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.user-menu .dropdown-header{padding:.6rem .75rem .5rem;color:var(--muted);font-size:.8125rem}
.user-menu .dropdown-header strong{display:block;color:var(--ink);font-size:1rem}
.user-menu .dropdown-item{display:flex;align-items:center;gap:.7rem;padding:.65rem .75rem;border-radius:8px;color:var(--ink);font-weight:600;min-height:44px}
.user-menu .dropdown-item i{width:1.1rem;text-align:center;color:var(--muted)}
.user-menu .dropdown-item:hover,.user-menu .dropdown-item:focus{background:#EAF1FB;color:var(--navy)}
.user-menu .dropdown-item.danger,.user-menu .dropdown-item.danger i{color:#B3261E}
.user-menu .dropdown-item.danger:hover{background:#FDECEA}
.user-menu .dropdown-divider{margin:.35rem 0;border-color:var(--line)}

/* ---------- Sidebar ---------- */
.main-sidebar{position:fixed!important;top:0;bottom:0;height:100vh;height:100dvh;display:flex;flex-direction:column;background:radial-gradient(120% 70% at 0% 0%,var(--navy) 0%,var(--navy-deep) 45%,var(--navy-ink) 100%)!important;border-right:0!important;overflow:hidden;z-index:1038}
.main-sidebar::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.5;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='520' fill='none' stroke='%23189BFF' stroke-opacity='.16' stroke-width='1.4'%3E%3Cpath d='M-10 420h70l22 22h60M-10 470h40l22-22h120'/%3E%3Cpath d='M-10 330h50l18 18h90l24-24h60'/%3E%3C/svg%3E") no-repeat 0 100%/260px 520px}
.main-sidebar .brand-link{position:relative!important;width:auto!important;flex:none;display:flex;align-items:center;gap:.75rem;height:4.25rem;padding:0 1rem;background:transparent!important;border-bottom:1px solid rgba(187,214,255,.14)!important;overflow:hidden;text-decoration:none}
.main-sidebar .brand-link img.brand-mark{width:44px;height:44px;flex:none;object-fit:contain;padding:5px;border-radius:12px;background:#fff;box-shadow:0 2px 6px rgba(2,12,34,.35)}
.main-sidebar .brand-text{display:block;color:#fff;font-weight:700;font-size:1.0625rem;line-height:1;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
.main-sidebar .brand-by{display:block;margin-top:.3rem;color:var(--sky);font-size:.6875rem;letter-spacing:.14em;text-transform:uppercase;white-space:nowrap}
.main-sidebar .sidebar{position:relative;flex:1;min-height:0;padding:.5rem .6rem 0;overflow-y:auto;overflow-x:hidden}
.main-sidebar .nav-header{padding:1.1rem .75rem .35rem;color:#8FB0E6;font-size:.6875rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.main-sidebar .nav-sidebar .nav-link{position:relative;display:flex;align-items:center;gap:.7rem;min-height:2.75rem;margin:2px 0;padding:.5rem .75rem;border-radius:10px;color:#CFE0FA;font-weight:600;white-space:nowrap;transition:background .2s,color .2s}
.main-sidebar .nav-sidebar .nav-link p{flex:1;margin:0;display:flex;align-items:center;justify-content:space-between}
.main-sidebar .nav-sidebar .nav-link:hover{background:rgba(255,255,255,.08);color:#fff}
.main-sidebar .nav-sidebar .nav-link.active{background:var(--blue-strong);color:#fff;box-shadow:0 8px 18px -10px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.18)}
.main-sidebar .nav-sidebar .menu-open>.nav-link:not(.active){background:rgba(255,255,255,.07);color:#fff}
.main-sidebar .nav-icon{flex:none;width:1.4rem;margin:0;font-size:1.05rem;text-align:center;color:inherit}
.main-sidebar .nav-link i.right{flex:none;margin:0;font-size:.75rem;opacity:.8;transition:transform .3s var(--ease)}
.main-sidebar .nav-treeview{margin:.15rem 0 .35rem 1.45rem;padding-left:.6rem;border-left:1px solid rgba(187,214,255,.2)}
.main-sidebar .nav-treeview .nav-link{min-height:2.5rem;margin:1px 0;padding:.4rem .75rem;font-size:.9375rem;font-weight:400;color:#BBD6FF}
.main-sidebar .nav-treeview .nav-link .nav-icon{display:none}
.main-sidebar .nav-treeview .nav-link::before{content:"";flex:none;width:7px;height:7px;border-radius:50%;border:2px solid #7FA6E6;transition:background .2s,border-color .2s}
.main-sidebar .nav-treeview .nav-link.active{font-weight:600}
.main-sidebar .nav-treeview .nav-link.active::before{background:#fff;border-color:#fff}
.sidebar-user{position:relative;display:flex;align-items:center;gap:.7rem;margin:.5rem .6rem .75rem;padding:.65rem .7rem;border-radius:12px;background:rgba(255,255,255,.08);color:#fff;text-decoration:none;overflow:hidden}
.sidebar-user:hover{background:rgba(255,255,255,.13);color:#fff}
.sidebar-user img{width:2.25rem;height:2.25rem;border-radius:50%;object-fit:cover;flex:none;border:2px solid rgba(255,255,255,.7)}
.sidebar-user .su-name{display:block;font-weight:600;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar-user .su-role{display:block;color:var(--sky);font-size:.75rem;text-transform:capitalize}
.sidebar-user .su-text{min-width:0}
/* collapsed rail */
.sidebar-mini.sidebar-collapse .main-sidebar:not(:hover) .brand-link{justify-content:center;padding:0}
.sidebar-mini.sidebar-collapse .main-sidebar:not(:hover) .brand-link>span,
.sidebar-mini.sidebar-collapse .main-sidebar:not(:hover) .su-text{display:none}
.sidebar-mini.sidebar-collapse .main-sidebar:not(:hover) .sidebar-user{justify-content:center;padding:.5rem}
.sidebar-mini.sidebar-collapse .main-sidebar:not(:hover) .nav-link{justify-content:center;padding:.5rem}
.sidebar-mini.sidebar-collapse .main-sidebar:not(:hover) .nav-header{visibility:hidden;height:1rem;padding:0}
.sidebar-mini.sidebar-collapse .main-sidebar:hover{box-shadow:12px 0 32px -12px rgba(5,32,79,.6)}

/* ---------- Content area ---------- */
.content-wrapper{background:var(--bg)!important;padding-top:0}
.content-header{padding:1.25rem 1.5rem .25rem}
.content-header h4{margin:0;font-size:1.5rem;font-weight:700;letter-spacing:-.01em}
.content-header .breadcrumb{background:transparent;margin:0;padding:0;font-size:.875rem}
.content-header .breadcrumb-item+.breadcrumb-item::before{color:#8FA0BC}
.content{padding:0 .5rem}
.card{border:1px solid var(--line)!important;border-radius:var(--radius)!important;box-shadow:var(--shadow)!important;background:var(--card);overflow:hidden}
.card-header{background:#fff!important;color:var(--ink)!important;border-bottom:1px solid var(--line)!important;padding:1rem 1.25rem;border-radius:var(--radius) var(--radius) 0 0!important}
.card-header .card-title{font-size:1.125rem;font-weight:700;margin:0;color:var(--ink)}
.card-primary:not(.card-outline)>.card-header,.card-info:not(.card-outline)>.card-header,.card-success:not(.card-outline)>.card-header{background:#fff!important;color:var(--ink)!important}
.table thead th{background:#F1F5FB;border-bottom:1px solid var(--line);border-top:0;color:var(--muted);font-size:.8125rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase}
.table td,.table th{vertical-align:middle;border-color:var(--line)}
.table-hover tbody tr:hover{background:#F4F8FF}
.btn{border-radius:10px;font-weight:600;transition:background .2s,transform .15s var(--ease),box-shadow .2s}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--navy);border-color:var(--navy)}
.btn-primary:hover,.btn-primary:focus{background:var(--blue-strong);border-color:var(--blue-strong)}
.form-control{border:1.5px solid var(--line);border-radius:10px;min-height:2.5rem}
.form-control:focus{border-color:var(--blue-strong);box-shadow:0 0 0 4px rgba(24,155,255,.2)}
.main-footer{background:transparent;border-top:1px solid var(--line);color:var(--muted);font-size:.875rem}

/* ---------- Dashboard ---------- */
.dash{padding:1rem .75rem 2rem;max-width:84rem;margin:0 auto}
.hero{position:relative;display:flex;align-items:center;justify-content:space-between;gap:1.5rem;flex-wrap:wrap;padding:clamp(1.25rem,3vw,2rem) clamp(1.25rem,3vw,2.25rem);border-radius:18px;color:#fff;overflow:hidden;isolation:isolate;background:radial-gradient(120% 140% at 0% 0%,var(--navy) 0%,var(--navy-deep) 55%,var(--navy-ink) 100%);box-shadow:0 18px 40px -22px rgba(5,32,79,.8)}
.hero::before{content:"";position:absolute;inset:0;z-index:-1;opacity:.9;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='760' height='240' fill='none' stroke-linecap='round'%3E%3Cg stroke='%23189BFF' stroke-opacity='.4' stroke-width='1.6'%3E%3Cpath d='M300 40h120l24 24h110l20-20h120'/%3E%3Cpath d='M360 120h90l26-26h120l30 30h90'/%3E%3Cpath d='M320 200h150l22-22h130l26 26h60'/%3E%3C/g%3E%3Cg fill='%23189BFF'%3E%3Ccircle cx='670' cy='44' r='4'/%3E%3Ccircle cx='726' cy='124' r='4'/%3E%3Ccircle cx='708' cy='204' r='4'/%3E%3C/g%3E%3C/svg%3E") no-repeat right center/auto 100%}
.hero h1{margin:0;font-weight:700;font-size:clamp(1.65rem,3.4vw,2.5rem);line-height:1.08;letter-spacing:-.02em;text-wrap:balance}
.hero p{margin:.5rem 0 0;color:var(--sky);font-size:1.0625rem}
.hero p strong{color:#fff}
.hero-actions{display:flex;gap:.6rem;flex-wrap:wrap}
.hero .btn-hero{white-space:nowrap;display:inline-flex;align-items:center;gap:.55rem;min-height:2.9rem;padding:.55rem 1.1rem;border-radius:12px;font-weight:700;text-decoration:none;color:var(--navy);background:#fff}
.hero .btn-hero:hover{background:#E8F2FF;color:var(--navy)}
.hero .btn-hero.ghost{color:#fff;background:rgba(255,255,255,.12);box-shadow:inset 0 0 0 1px rgba(255,255,255,.3)}
.hero .btn-hero.ghost:hover{background:rgba(255,255,255,.2);color:#fff}

.dsec{margin:2rem 0 .75rem;display:flex;align-items:baseline;justify-content:space-between;gap:1rem}
.dsec h2{margin:0;font-size:1.25rem;font-weight:700;letter-spacing:-.01em}
.dsec span{color:var(--muted);font-size:.875rem}

.statusbar{display:flex;height:.8rem;border-radius:999px;overflow:hidden;background:#E3EAF5;gap:3px}
.statusbar i{display:block;min-width:6px;height:100%;border-radius:999px;transform-origin:left;animation:grow .9s var(--ease) both}
.statusbar .s-open{background:var(--open)}.statusbar .s-closed{background:var(--closed)}.statusbar .s-hold{background:var(--hold)}.statusbar .s-pending{background:var(--pending)}
@keyframes grow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.9rem;margin-top:1rem}
.tile{position:relative;display:flex;flex-direction:column;gap:.15rem;padding:1.1rem 1.15rem;min-height:7.25rem;border:1px solid var(--line);border-radius:var(--radius);background:var(--card);box-shadow:var(--shadow);color:var(--ink);text-decoration:none;transition:transform .25s var(--ease),box-shadow .25s,border-color .25s}
.tile:hover{transform:translateY(-3px);color:var(--ink);border-color:#B9CBE8;box-shadow:0 1px 2px rgba(10,27,61,.06),0 16px 30px -14px rgba(10,27,61,.3)}
.tile .t-label{display:flex;align-items:center;gap:.5rem;color:var(--muted);font-weight:600;font-size:.9375rem}
.tile .t-dot{width:.6rem;height:.6rem;border-radius:50%;flex:none}
.tile .t-num{margin-top:auto;font-size:2.25rem;font-weight:700;line-height:1;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.tile .t-of{color:var(--muted);font-size:.875rem}
.tile .t-go{position:absolute;right:1rem;top:1rem;color:#9FB0CC;transition:transform .25s var(--ease),color .2s}
.tile:hover .t-go{transform:translateX(3px);color:var(--blue-strong)}
.t-open .t-dot{background:var(--open)}.t-closed .t-dot{background:var(--closed)}.t-hold .t-dot{background:var(--hold)}.t-pending .t-dot{background:var(--pending)}

.panels{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13.5rem),1fr));gap:.9rem;margin-top:1rem}
.panel-lite{border:1px solid var(--line);border-radius:var(--radius);background:var(--card);box-shadow:var(--shadow);overflow:hidden}
.panel-lite h3{margin:0;padding:1rem 1.25rem .5rem;font-size:1.0625rem;font-weight:700}
.rows{list-style:none;margin:0;padding:0 .5rem .5rem}
.rows a{display:flex;align-items:center;gap:.8rem;min-height:3.25rem;padding:.55rem .75rem;border-radius:10px;color:var(--ink);text-decoration:none;transition:background .2s}
.rows a:hover{background:#F1F6FD;color:var(--ink)}
.rows .r-ic{display:grid;place-items:center;flex:none;width:2.25rem;height:2.25rem;border-radius:10px;background:#E8F2FF;color:var(--blue-strong)}
.rows .r-label{flex:1;font-weight:600;color:var(--muted)}
.rows .r-val{font-weight:700;font-size:1.125rem;font-variant-numeric:tabular-nums}

.notice-card .table{margin:0}
.notice-empty{padding:2.5rem 1rem;text-align:center;color:var(--muted)}

/* ---------- Tablet ---------- */
@media (max-width:991.98px){
   .main-header .header-brand{display:inline-flex}
   .content-header{padding:1rem 1rem .25rem}
   .dash{padding:.75rem .5rem 2rem}
   body.sidebar-open{overflow:hidden}
   #sidebar-overlay{background:rgba(5,20,50,.55);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
   .main-sidebar{width:min(19rem,86vw)!important;margin-left:calc(-1 * min(19rem,86vw) - 24px)!important;box-shadow:18px 0 40px -18px rgba(5,32,79,.7);transition:margin-left .3s var(--ease)!important}
   body.sidebar-open .main-sidebar{margin-left:0!important}
   .main-sidebar .sidebar-user{margin-bottom:max(.75rem,env(safe-area-inset-bottom))}
}
@media (max-width:991.98px) and (min-width:576px){
   .user-menu .u-text{display:flex}
}
@media (max-width:767.98px){
   .tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
   .tile{min-height:6.5rem;padding:.95rem}
   .tile .t-num{font-size:2rem}
   .hero{border-radius:16px}
   .hero-actions{width:100%}
   .hero .btn-hero{flex:1;justify-content:center;padding:.55rem .75rem;font-size:.9375rem;gap:.45rem}
   .content-header .breadcrumb{display:none}
   .content-header h4{font-size:1.3rem}
   .dsec{margin-top:1.5rem}
   /* notice table -> stacked rows */
   #noticeboard-table thead{display:none}
   #noticeboard-table,#noticeboard-table tbody,#noticeboard-table tr,#noticeboard-table td{display:block;width:100%}
   #noticeboard-table tr{padding:.85rem 1rem;border-bottom:1px solid var(--line)}
   #noticeboard-table td{border:0!important;padding:.1rem 0!important}
   #noticeboard-table td[data-label]::before{content:attr(data-label);display:block;color:var(--muted);font-size:.6875rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
   #noticeboard-table td.n-index{display:none}
}
@media (max-width:575.98px){
   .user-menu .u-text{display:none}
   .main-header{padding:0 .4rem}
   .main-header .nav-link{min-width:2.75rem}
   .main-header [data-widget=fullscreen]{display:none}
   .main-footer{text-align:center}
   .main-footer .float-right{float:none!important;display:block!important;margin-bottom:.25rem}
}
@media (prefers-reduced-motion:reduce){
   *,*::before,*::after{animation:none!important;transition:none!important}
}

.page-dashboard .content-header{display:none}

/* ---------- Searchable dropdowns (bootstrap-select) ---------- */
/* Menus render on <body> (container:'body' in js.blade.php), so cards can't clip them */
.bs-container.bootstrap-select{z-index:1036}
.bootstrap-select>.dropdown-toggle{display:flex;align-items:center;padding-right:2.25rem}
.bootstrap-select>.dropdown-toggle .filter-option-inner-inner{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bootstrap-select>.dropdown-toggle.bs-placeholder .filter-option-inner-inner{color:#7A879E}
.bootstrap-select.show>.dropdown-toggle{border-color:var(--blue-strong);box-shadow:0 0 0 4px rgba(24,155,255,.2)}
.bootstrap-select>.dropdown-menu{margin-top:6px;padding:0;border:1px solid var(--line);border-radius:12px;background:var(--card);box-shadow:0 2px 4px rgba(10,27,61,.06),0 18px 40px -16px rgba(10,27,61,.28);overflow:hidden}
.bootstrap-select.dropup>.dropdown-menu{margin-top:0;margin-bottom:6px}
.bootstrap-select .bs-searchbox{position:relative;padding:.6rem .6rem .5rem;border-bottom:1px solid var(--line);background:var(--card)}
.bootstrap-select .bs-searchbox::before{content:"";position:absolute;left:1.35rem;top:50%;width:15px;height:15px;transform:translateY(-50%);pointer-events:none;background:#7A879E;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center/contain no-repeat}
.bootstrap-select .bs-searchbox .form-control{height:2.5rem;padding-left:2.2rem;background:var(--bg);border-color:transparent;font-size:16px}
.bootstrap-select .bs-searchbox .form-control:focus{background:#fff;border-color:var(--blue-strong)}
.bootstrap-select>.dropdown-menu>.inner{padding:.35rem;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#C3CEE0 transparent}
.bootstrap-select .dropdown-menu li a{display:flex;align-items:center;min-height:2.5rem;padding:.45rem .75rem;border-radius:8px;color:var(--ink);white-space:normal;line-height:1.3}
.bootstrap-select .dropdown-menu li a:hover,.bootstrap-select .dropdown-menu li a.active:hover{background:#EEF4FD;color:var(--ink)}
.bootstrap-select .dropdown-menu li.active>a,.bootstrap-select .dropdown-menu li a.active,.bootstrap-select .dropdown-menu li a:active{background:#E2EDFC;color:var(--navy);font-weight:600}
.bootstrap-select .dropdown-menu li a:focus{outline:2px solid var(--blue-strong);outline-offset:-2px}
.bootstrap-select .dropdown-menu li.disabled a{color:#7A879E;background:none}
.bootstrap-select .no-results{margin:.35rem;padding:.75rem;border-radius:8px;background:var(--bg);color:var(--muted)}
@media (pointer:coarse){.bootstrap-select .dropdown-menu li a{min-height:2.875rem}}

/* ---------- Technicians page ---------- */
.tech-card .tech-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;padding:.75rem 1rem}
.tech-filters{display:flex;flex-wrap:wrap;gap:.4rem}
.tech-chip{display:inline-flex;align-items:center;gap:.5rem;min-height:2.5rem;padding:0 .9rem;border:1.5px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font:inherit;font-weight:600;font-size:.9375rem;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.tech-chip span{min-width:1.5rem;padding:0 .4rem;border-radius:999px;background:var(--bg);color:var(--muted);font-size:.8125rem;line-height:1.4rem;text-align:center}
.tech-chip:hover{border-color:#9db4d8}
.tech-chip.is-on{background:var(--navy);border-color:var(--navy);color:#fff}
.tech-chip.is-on span{background:rgba(255,255,255,.2);color:#fff}
.tech-chip:focus-visible,.tech-clamp:focus-visible,.tech-viewas:focus-visible{outline:2px solid var(--blue-strong);outline-offset:2px}
.tech-tools{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}
.tech-tools #dt-btns .dt-buttons{display:flex;flex-wrap:wrap;gap:.35rem}
.tech-add{min-height:2.5rem;font-weight:600}
.tech-card .dataTables_wrapper>.row{margin:0;padding:.75rem 1rem;align-items:center}
.tech-table{margin:0;border:0}
.tech-table thead th{padding:.7rem .75rem;border:0;border-bottom:1px solid var(--line);background:var(--bg);color:var(--muted);font-size:.75rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
.tech-table tbody td{padding:.7rem .75rem;border:0;border-bottom:1px solid var(--line);vertical-align:middle}
.tech-table tbody tr:hover{background:#F8FAFE}
.tech-person{display:flex;align-items:center;gap:.7rem;min-width:11.5rem}
.tech-avatar{flex:none;width:40px;height:40px;border-radius:50%;object-fit:cover;background:var(--line);border:1px solid var(--line)}
.tech-name{font-weight:700;color:var(--ink);line-height:1.2}
.tech-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.1rem .5rem;margin-top:.2rem}
.tech-email{color:var(--muted);font-size:.8125rem;overflow-wrap:anywhere}
.tech-table thead th.tech-wrap{white-space:normal;line-height:1.2}
.tech-fe{display:inline-block;padding:.05rem .45rem;border-radius:6px;background:#EEF4FD;color:var(--navy);font-weight:700;font-size:.8125rem;letter-spacing:.03em;font-variant-numeric:tabular-nums;white-space:nowrap}
.tech-status{display:inline-flex;align-items:center;gap:.4rem;padding:.15rem .65rem;border-radius:999px;font-size:.8125rem;font-weight:700}
.tech-status::before{content:"";width:.45rem;height:.45rem;border-radius:50%;background:currentColor}
.tech-status.is-active{background:#E4F5EC;color:#136B43}
.tech-status.is-inactive{background:#EEF1F6;color:var(--muted)}
.tech-phones a{display:block;color:var(--ink);white-space:nowrap;line-height:1.9;text-decoration:none;font-variant-numeric:tabular-nums}
.tech-phones a:hover{color:var(--blue-strong);text-decoration:underline}
.tech-phones i{width:1rem;margin-right:.25rem;color:var(--muted)}
.tech-count{display:inline-block;min-width:2rem;padding:.1rem .55rem;border-radius:999px;background:#E2EDFC;color:var(--navy);font-weight:700;font-variant-numeric:tabular-nums}
.tech-count.is-zero{background:var(--bg);color:var(--muted);font-weight:600}
.tech-clamp{max-width:16rem;min-width:7.5rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--muted);font-size:.8125rem;line-height:1.4;cursor:pointer}
.tech-clamp *{margin:0}
.tech-text-dialog{max-width:40rem}
#tech-text-modal .modal-content{border:0;border-radius:16px;box-shadow:0 2px 4px rgba(10,27,61,.06),0 24px 60px -20px rgba(10,27,61,.4);overflow:hidden}
#tech-text-modal .modal-header{align-items:flex-start;padding:1.1rem 1.5rem;border-bottom:1px solid var(--line)}
#tech-text-modal .modal-title{margin-top:.35rem;font-size:1.25rem;font-weight:700;line-height:1.2;color:var(--ink)}
#tech-text-modal .close{margin:-.25rem -.5rem 0 1rem;font-size:1.75rem;color:var(--muted);opacity:1}
.tech-text-label{display:inline-block;padding:.1rem .6rem;border-radius:999px;background:#EEF4FD;color:var(--navy);font-size:.75rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.tech-text-body{padding:1.25rem 1.5rem 1.5rem;color:var(--ink);font-size:.9375rem;line-height:1.65;overflow-wrap:anywhere}
.tech-text-body p{margin:0 0 .9rem}
.tech-text-body ul{margin:0;padding-left:1.25rem}
.tech-text-body li{margin-bottom:.55rem;padding-left:.15rem}
.tech-text-body li::marker{color:var(--blue-strong)}
.tech-text-body>:last-child{margin-bottom:0}
.tech-actions{display:inline-flex;align-items:center;justify-content:flex-end;gap:.5rem}
.tech-actions form{margin:0}
.tech-viewas{min-height:2.25rem;padding:0 .85rem;border:1.5px solid var(--navy);border-radius:10px;background:transparent;color:var(--navy);font-weight:600;white-space:nowrap;transition:background .15s,color .15s}
.tech-viewas:hover{background:var(--navy);color:#fff}
.tech-icons .btn{min-width:2.1rem;min-height:2.25rem;padding-left:.45rem;padding-right:.45rem}
.tech-icons .tech-delete:hover i{color:#B3261E}
.tech-delete form{display:contents}
@media (pointer:coarse){.tech-icons .btn,.tech-viewas{min-height:2.75rem;min-width:2.75rem}}
@media (max-width:767px){.tech-card .tech-toolbar{padding:.75rem}.tech-tools{width:100%}.tech-tools .tech-add{margin-left:auto}}
@media (max-width:575px){.tech-table thead th,.tech-table tbody td{padding:.6rem .5rem}.tech-person{min-width:0}.tech-actions{flex-direction:column;align-items:flex-end;gap:.4rem}.tech-icons{flex-wrap:wrap;justify-content:flex-end;max-width:8.5rem}}

/* ---------- Viewing as a technician (Super Admin) ---------- */
body.has-imp{padding-bottom:3.5rem}
.imp-banner{position:fixed;left:0;right:0;bottom:0;z-index:1060;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.6rem 1rem;background:#8A3B00;color:#fff;box-shadow:0 -8px 24px -12px rgba(0,0,0,.5)}
.imp-banner form{margin:0;flex:none}
.imp-text{display:flex;align-items:center;gap:.7rem;font-size:.9375rem;line-height:1.3}
.imp-text>i{flex:none;font-size:1.15rem}
.imp-note{display:inline-block;opacity:.92}
.imp-back{min-height:2.5rem;padding:0 1rem;border:1.5px solid #fff;border-radius:10px;background:#fff;color:#8A3B00;font:inherit;font-weight:700;white-space:nowrap;cursor:pointer;transition:background .15s,color .15s}
.imp-back:hover{background:transparent;color:#fff}
.imp-back:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media (max-width:575px){.imp-banner{flex-direction:column;align-items:stretch;gap:.5rem}.imp-note{display:none}.imp-back{width:100%}}

/* ---------- Support ---------- */
.main-sidebar .sup-badge{margin-left:auto;min-width:1.35rem;padding:.2rem .4rem;border-radius:999px;font-size:.75rem;line-height:1}
.sup-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;padding:.75rem 1rem}
.sup-chips{display:flex;flex-wrap:wrap;gap:.4rem}
.sup-chips .tech-chip{text-decoration:none}
.sup-tools{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}
.sup-search{position:relative;margin:0}
.sup-search i{position:absolute;left:.85rem;top:50%;transform:translateY(-50%);color:var(--muted);font-size:.85rem;pointer-events:none}
.sup-search input{width:17rem;max-width:100%;height:2.5rem;padding:0 .9rem 0 2.25rem;border:1.5px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font:inherit}
.sup-search input:focus{outline:0;border-color:var(--blue-strong);box-shadow:0 0 0 4px rgba(24,155,255,.2)}
.sup-list{margin:0;padding:0;list-style:none}
.sup-row{display:grid;grid-template-columns:.6rem minmax(0,1fr) auto auto auto 6.5rem;align-items:center;gap:1rem;padding:.85rem 1rem;border-bottom:1px solid var(--line);color:var(--ink);text-decoration:none}
.sup-list li:last-child .sup-row{border-bottom:0}
.sup-row:hover{background:#F8FAFE;color:var(--ink);text-decoration:none}
.sup-row:focus-visible{outline:2px solid var(--blue-strong);outline-offset:-2px}
.sup-dot{width:.6rem;height:.6rem;border-radius:50%}
.sup-row.is-unread .sup-dot{background:var(--blue-strong)}
.sup-main{min-width:0}
.sup-subject{display:block;overflow:hidden;font-weight:600;white-space:nowrap;text-overflow:ellipsis}
.sup-row.is-unread .sup-subject{font-weight:800}
.sup-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .6rem;margin-top:.15rem;color:var(--muted);font-size:.8125rem}
.sup-ref{padding:.05rem .45rem;border-radius:6px;background:#EEF4FD;color:var(--navy);font-weight:700;font-variant-numeric:tabular-nums}
.sup-who{display:flex;align-items:center;gap:.55rem;min-width:11rem}
.sup-who img{width:32px;height:32px;border-radius:50%;object-fit:cover;background:var(--line)}
.sup-who-name{display:block;font-weight:600;font-size:.875rem;line-height:1.2}
.sup-who-role{display:block;color:var(--muted);font-size:.75rem}
.sup-prio,.sup-status{display:inline-block;padding:.15rem .6rem;border-radius:999px;font-size:.75rem;font-weight:700;white-space:nowrap}
.sup-prio.is-low{background:#EEF1F6;color:var(--muted)}
.sup-prio.is-normal{background:#EEF4FD;color:var(--navy)}
.sup-prio.is-high{background:#FDF1E3;color:#8A4B08}
.sup-prio.is-urgent{background:#FCE8E6;color:#B3261E}
.sup-status.is-open{background:#E2EDFC;color:var(--navy)}
.sup-status.is-in_progress{background:#FFF4D6;color:#7A5200}
.sup-status.is-waiting_on_requester{background:#F1EAFB;color:#5B2E9A}
.sup-status.is-resolved{background:#E4F5EC;color:#136B43}
.sup-status.is-closed{background:#EEF1F6;color:var(--muted)}
.sup-time{color:var(--muted);font-size:.8125rem;text-align:right;white-space:nowrap}
.sup-pages{padding:.75rem 1rem;border-top:1px solid var(--line)}
.sup-pages .pagination{margin:0}
.sup-empty{padding:3rem 1.5rem;text-align:center}
.sup-empty>i{font-size:2rem;color:var(--sky)}
.sup-empty h3{margin:.75rem 0 .25rem;font-size:1.125rem;font-weight:700}
.sup-empty p{margin:0 0 1rem;color:var(--muted)}
@media (max-width:991px){.sup-row{grid-template-columns:.6rem minmax(0,1fr) auto;gap:.35rem .75rem}.sup-row .sup-who,.sup-row .sup-prio{display:none}.sup-row .sup-status{grid-column:3}.sup-row .sup-time{grid-column:2/4;text-align:left}}
@media (max-width:575px){.sup-search,.sup-search input{width:100%}.sup-tools{width:100%}.sup-tools .tech-add{margin-left:auto}}

/* New ticket */
.sup-form-card{max-width:52rem}
.sup-lead{margin:0 0 1.25rem;color:var(--muted)}
.sup-label{display:block;margin-bottom:.5rem;font-weight:700}
.sup-segment{display:flex;flex-wrap:wrap;gap:.4rem}
.sup-segment label{margin:0;cursor:pointer}
.sup-segment input{position:absolute;opacity:0;pointer-events:none}
.sup-segment span{display:inline-flex;align-items:center;min-height:2.5rem;padding:0 1rem;border:1.5px solid var(--line);border-radius:10px;font-weight:600;transition:background .15s,border-color .15s,color .15s}
.sup-segment input:checked+span{border-color:var(--navy);background:var(--navy);color:#fff}
.sup-segment .is-urgent input:checked+span{border-color:#B3261E;background:#B3261E}
.sup-segment input:focus-visible+span{outline:2px solid var(--blue-strong);outline-offset:2px}
.sup-drop{display:flex;flex-direction:column;align-items:center;gap:.3rem;margin:0;padding:1.5rem 1rem;border:2px dashed #C3CEE0;border-radius:12px;background:var(--bg);color:var(--muted);text-align:center;cursor:pointer;transition:border-color .15s,background .15s}
.sup-drop i{font-size:1.5rem;color:var(--blue-strong)}
.sup-drop strong{color:var(--navy)}
.sup-drop small{font-size:.8125rem}
.sup-drop:hover,.sup-drop.is-over{border-color:var(--blue-strong);background:#EEF4FD}
#sup-files:focus-visible+.sup-files,#sup-files:focus+.sup-files{outline:0}
.sup-files{display:flex;flex-wrap:wrap;gap:.4rem;margin:.6rem 0 0;padding:0;list-style:none}
.sup-files:empty{display:none}
.sup-file{display:inline-flex;align-items:center;gap:.5rem;max-width:100%;padding:.3rem .35rem .3rem .7rem;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:.8125rem}
.sup-file-name{overflow:hidden;max-width:14rem;white-space:nowrap;text-overflow:ellipsis}
.sup-file-size{color:var(--muted)}
.sup-file-remove{width:1.6rem;height:1.6rem;border:0;border-radius:50%;background:var(--bg);color:var(--muted);font-size:1rem;line-height:1;cursor:pointer}
.sup-file-remove:hover{background:#FCE8E6;color:#B3261E}
.sup-file-error{margin:.4rem 0 0;color:#B3261E;font-size:.875rem;font-weight:600}
.sup-file-error:empty{display:none}
.sup-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:1.5rem}
.sup-send{min-height:2.5rem;padding:0 1.1rem;border-radius:10px;font-weight:700}

/* Ticket conversation */
.sup-chat{display:flex;flex-direction:column}
.sup-chat-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1rem 1.25rem;border-bottom:1px solid var(--line)}
.sup-chat-title{margin:0 0 .3rem;font-size:1.2rem;font-weight:700;line-height:1.25;overflow-wrap:anywhere}
.sup-thread{display:flex;flex-direction:column;gap:1rem;height:clamp(18rem,calc(100vh - 25rem),40rem);padding:1.25rem;overflow-y:auto;overscroll-behavior:contain;background:var(--bg)}
.sup-msg{display:flex;align-items:flex-end;gap:.6rem;max-width:min(36rem,88%)}
.sup-msg.is-mine{flex-direction:row-reverse;align-self:flex-end}
.sup-msg-avatar{flex:none;width:32px;height:32px;border-radius:50%;object-fit:cover;background:var(--line)}
.sup-msg-box{min-width:0;padding:.7rem .9rem;border:1px solid var(--line);border-radius:14px 14px 14px 4px;background:#fff}
.sup-msg.is-mine .sup-msg-box{border-color:transparent;border-radius:14px 14px 4px 14px;background:var(--navy);color:#fff}
.sup-msg.is-internal .sup-msg-box{border:1px dashed #C9A227;background:#FFF8E1;color:var(--ink)}
.sup-msg-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:.2rem .5rem;margin-bottom:.25rem;font-size:.75rem}
.sup-msg-name{font-weight:700}
.sup-msg-head time{opacity:.75}
.sup-msg-tag{padding:0 .4rem;border-radius:6px;background:#EEF4FD;color:var(--navy);font-weight:700}
.sup-msg-tag.is-note{background:#FFECB3;color:#6B4E00}
.sup-msg-body{font-size:.9375rem;line-height:1.55;overflow-wrap:anywhere}
.sup-att{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.5rem}
.sup-att-img{display:block;border-radius:10px;overflow:hidden;background:var(--line)}
.sup-att-img img{display:block;width:9rem;height:6.5rem;object-fit:cover}
.sup-att-file{display:inline-flex;align-items:center;gap:.45rem;max-width:100%;padding:.4rem .7rem;border-radius:10px;background:rgba(10,27,61,.06);color:inherit;font-size:.8125rem;text-decoration:none}
.sup-msg.is-mine .sup-att-file{background:rgba(255,255,255,.16);color:#fff}
.sup-att-file:hover{text-decoration:underline;color:inherit}
.sup-att-name{overflow:hidden;max-width:12rem;white-space:nowrap;text-overflow:ellipsis;font-weight:600}
.sup-att-size{opacity:.75}
.sup-event{display:flex;flex-wrap:wrap;justify-content:center;gap:.4rem;align-self:center;max-width:90%;padding:.25rem .8rem;border-radius:999px;background:#E9EEF6;color:var(--muted);font-size:.75rem;text-align:center}
.sup-seen{padding:.3rem 1.25rem 0;background:var(--bg);color:var(--muted);font-size:.75rem;text-align:right}
.sup-composer{padding:.75rem 1rem 1rem;border-top:1px solid var(--line);background:#fff;transition:background .15s}
.sup-composer.is-note{background:#FFF8E1}
.sup-composer textarea{display:block;width:100%;min-height:2.75rem;max-height:220px;padding:.65rem .8rem;border:1.5px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font:inherit;font-size:.9375rem;line-height:1.5;resize:none}
.sup-composer textarea:focus{outline:0;border-color:var(--blue-strong);box-shadow:0 0 0 4px rgba(24,155,255,.2)}
.sup-composer-bar{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;margin-top:.6rem}
.sup-attach{display:inline-grid;place-items:center;width:2.5rem;height:2.5rem;margin:0;border-radius:10px;background:var(--bg);color:var(--navy);cursor:pointer}
.sup-attach:hover{background:#E2EDFC}
#sup-reply-input:focus-visible~.sup-attach{outline:2px solid var(--blue-strong)}
.sup-note-toggle{display:inline-flex;align-items:center;gap:.4rem;margin:0;font-size:.875rem;font-weight:600;cursor:pointer}
.sup-hint{margin-left:auto;color:var(--muted);font-size:.75rem}
.sup-quick{display:flex;flex-wrap:wrap;gap:.35rem;margin-bottom:.6rem}
.sup-quick button{padding:.25rem .7rem;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--navy);font-size:.8125rem;font-weight:600;cursor:pointer}
.sup-quick button:hover{border-color:var(--blue-strong);background:#EEF4FD}
.sup-closed{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;padding:1rem 1.25rem;border-top:1px solid var(--line);color:var(--muted)}
.sup-closed form{margin:0}
.sup-side{padding:1rem 1.25rem}
.sup-side-title{margin:0 0 .85rem;color:var(--muted);font-size:.75rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.sup-side label{font-weight:700}
.sup-dl{display:grid;grid-template-columns:auto 1fr;gap:.5rem 1rem;margin:0;font-size:.875rem}
.sup-dl dt{color:var(--muted);font-weight:600}
.sup-dl dd{margin:0;text-align:right}
.sup-person{display:flex;align-items:center;gap:.7rem;margin-bottom:.85rem}
.sup-person img{width:44px;height:44px;border-radius:50%;object-fit:cover;background:var(--line)}
.sup-person-name{font-weight:700}
.sup-person-role{color:var(--muted);font-size:.8125rem}
.sup-contact{margin:0 0 1rem;padding:0;list-style:none;font-size:.875rem}
.sup-contact li{display:flex;align-items:center;gap:.5rem;padding:.2rem 0;overflow-wrap:anywhere}
.sup-contact i{width:1rem;color:var(--muted)}
.sup-delete{text-align:center}
.sup-delete .btn-link{color:#B3261E;font-weight:600}
@media (max-width:991px){.sup-thread{height:clamp(16rem,60vh,32rem)}.sup-hint{display:none}.sup-composer-bar .sup-send{margin-left:auto}}
