:root{
  --bg:#f6f8fe;
  --panel:#ffffff;
  --panel-2:#f8faff;
  --ink:#1d2850;
  --ink-2:#2f3d74;
  --muted:#7380a6;
  --muted-2:#9eabd0;
  --line:#e8edf9;
  --line-soft:#f4f7fd;
  --soft:#f5f8ff;
  --green:#18b7ff;
  --green-2:#246bff;
  --green-3:#7c2cff;
  --green-soft:#eef8ff;
  --green-soft-2:#f7fbff;
  --yellow:#f2bd32;
  --yellow-soft:#fff5d8;
  --blue:#246bff;
  --blue-soft:#eef4ff;
  --purple:#7c2cff;
  --purple-soft:#f4efff;
  --red:#ea5b77;
  --red-soft:#fff1f5;
  --dark:#071233;
  --dark-2:#0d1740;
  --shadow:0 24px 70px rgba(18,31,85,.11);
  --shadow-sm:0 10px 30px rgba(25,40,95,.08);
  --shadow-xs:0 6px 18px rgba(25,40,95,.06);
  --radius:20px;
  --radius-sm:13px;
  --font:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:var(--font);background:linear-gradient(180deg,#fff 0,#f5f7f6 54%,#eef3f0 100%);color:var(--ink);font-size:14px;-webkit-font-smoothing:antialiased;text-rendering:geometricPrecision}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
.app-shell{min-height:100vh;display:grid;grid-template-columns:248px minmax(0,1fr);background:linear-gradient(135deg,#fff 0,#f8faf9 45%,#f1f5f3 100%)}
.sidebar{position:sticky;top:0;height:100vh;background:radial-gradient(circle at 30% 4%,#1b2723 0,#111917 38%,#090f0e 100%);color:#fff;padding:28px 18px 22px;display:flex;flex-direction:column;gap:24px;box-shadow:28px 0 70px rgba(5,11,9,.16);z-index:20}
.brand{display:flex;align-items:center;gap:12px;font-weight:860;font-size:32px;letter-spacing:-.055em;padding:0 8px 10px;line-height:1}
.brand-bolt{width:auto;height:auto;border-radius:0;background:transparent;color:#7dd63b;font-size:34px;display:grid;place-items:center;box-shadow:none;filter:drop-shadow(0 6px 20px rgba(115,220,55,.32))}
.nav{display:flex;flex-direction:column;gap:9px}
.nav button{width:100%;background:transparent;border:1px solid transparent;color:#f1f5f3;border-radius:12px;display:flex;align-items:center;gap:13px;padding:13px 13px;text-align:left;font-weight:720;transition:.18s ease;min-height:48px;letter-spacing:-.01em}
.nav button:hover{background:rgba(255,255,255,.075);color:#fff;transform:translateX(1px)}
.nav button.active{background:linear-gradient(135deg,rgba(54,173,60,.30),rgba(54,173,60,.17));color:#e9ffeb;border-color:rgba(97,219,101,.16);box-shadow:inset 0 0 0 1px rgba(255,255,255,.025),0 9px 22px rgba(0,0,0,.12)}
.nav-icon{width:22px;text-align:center;opacity:.95;filter:saturate(.82)}
.sidebar-footer{margin-top:auto;border-top:1px solid rgba(255,255,255,.08);padding:16px 6px 0;color:#aab6b0;font-size:12.5px;line-height:1.55}
.sidebar-footer b{color:#eef7f0;display:block;margin-bottom:3px}
.main{min-width:0;padding:22px 24px 28px;display:flex;flex-direction:column;gap:18px}
.topbar{min-height:72px;background:rgba(255,255,255,.86);backdrop-filter:blur(18px);border:1px solid rgba(226,233,229,.95);border-radius:24px;box-shadow:var(--shadow-sm);display:flex;align-items:center;justify-content:space-between;padding:13px 17px 13px 22px;gap:18px;position:sticky;top:18px;z-index:15}
.topbar h1{font-size:26px;margin:0;letter-spacing:-.052em;font-weight:830;line-height:1.1}
.topbar .muted{font-size:12.5px!important;margin-top:2px}
.top-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.searchbox{position:relative;min-width:280px}
.searchbox input{width:100%;height:42px;border:1px solid var(--line);border-radius:999px;background:#fff;padding:0 42px 0 17px;color:var(--ink);outline:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.6);transition:.14s ease}
.searchbox input:focus{border-color:#b8dec0;box-shadow:0 0 0 4px rgba(54,173,60,.09)}
.searchbox span{position:absolute;right:15px;top:9px;color:#87928e;font-size:18px}
.user-switch{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:999px;padding:5px 8px 5px 6px;min-width:210px;box-shadow:var(--shadow-xs)}
.avatar{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#101816,#26302d);color:#fff;display:grid;place-items:center;font-weight:850;font-size:12px;flex:none;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
.avatar.green{background:linear-gradient(135deg,#73d354,#2da337)}
.avatar.blue{background:linear-gradient(135deg,#6bb0ff,#2c6ec8)}
.avatar.purple{background:linear-gradient(135deg,#a692ff,#6d55ce)}
.avatar.yellow{background:linear-gradient(135deg,#ffd767,#d6a82e);color:#3e3006}
.avatar.red{background:linear-gradient(135deg,#ff8585,#df4b4b)}
.user-switch select{border:0;outline:none;background:transparent;font-weight:800;max-width:150px;color:#19211e;font-size:13px}
.btn{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:12px;padding:10px 13px;font-weight:780;display:inline-flex;align-items:center;gap:8px;min-height:40px;box-shadow:0 1px 0 rgba(0,0,0,.02);transition:.15s ease;white-space:nowrap}
.btn:hover{transform:translateY(-1px);box-shadow:var(--shadow-sm);border-color:#d7e0db}
.btn.primary{background:linear-gradient(180deg,#43be45,#2da333);border-color:rgba(37,151,44,.55);color:#fff;box-shadow:0 10px 24px rgba(45,163,51,.18)}
.btn.primary:hover{box-shadow:0 16px 34px rgba(45,163,51,.23)}
.btn.dark{background:#0b0d0d;color:#fff;border-color:#0b0d0d}
.btn.ghost{background:transparent;border-color:transparent;box-shadow:none}
.btn.danger{background:var(--red-soft);border-color:#ffd4d4;color:#b93030}
.btn.small{padding:7px 10px;min-height:33px;border-radius:10px;font-size:12px}
.btn:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}
.grid{display:grid;gap:18px}
.grid.two{grid-template-columns:1fr 405px}
.grid.three{grid-template-columns:repeat(3,1fr)}
.grid.four{grid-template-columns:repeat(4,1fr)}
.grid.auto{grid-template-columns:repeat(auto-fit,minmax(255px,1fr))}
.card{background:rgba(255,255,255,.91);border:1px solid rgba(228,235,231,.98);border-radius:var(--radius);box-shadow:var(--shadow-xs);padding:17px;min-width:0}
.card.tight{padding:12px;border-radius:15px}
.card h2,.card h3{margin:0 0 13px;letter-spacing:-.038em}
.card h2{font-size:20px;font-weight:820}.card h3{font-size:16px;font-weight:820}
.muted{color:var(--muted)}
.kpi{display:flex;flex-direction:column;gap:8px;min-height:112px;position:relative;overflow:hidden;background:linear-gradient(180deg,#fff,#fcfdfc)}
.kpi:after{content:"";position:absolute;right:-35px;top:-45px;width:120px;height:120px;border-radius:50%;background:radial-gradient(circle,rgba(54,173,60,.10),transparent 68%)}
.kpi small{font-weight:820;color:var(--muted);text-transform:uppercase;font-size:10.8px;letter-spacing:.055em;position:relative;z-index:1}
.kpi strong{font-size:30px;letter-spacing:-.055em;position:relative;z-index:1}
.kpi .delta{font-size:12px;color:var(--green-2);font-weight:820;position:relative;z-index:1}.kpi .delta.red{color:var(--red)}
.badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 9px;background:var(--soft);font-size:12px;font-weight:820;white-space:nowrap;border:1px solid transparent;line-height:1}
.badge.green{background:var(--green-soft);color:#237f2c;border-color:#d7eed9}.badge.yellow{background:var(--yellow-soft);color:#8b6500;border-color:#f3e1a6}.badge.blue{background:var(--blue-soft);color:#2369b6;border-color:#d9eaff}.badge.purple{background:var(--purple-soft);color:#6249bb;border-color:#e3dcff}.badge.red{background:var(--red-soft);color:#be3434;border-color:#ffd8d5}.badge.dark{background:#121817;color:#fff;border-color:#121817}
.controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.segmented{display:inline-flex;border:1px solid var(--line);background:#fff;border-radius:12px;padding:4px;gap:3px;box-shadow:var(--shadow-xs)}
.segmented button{border:0;background:transparent;border-radius:9px;padding:8px 14px;font-weight:800;color:#53615b;transition:.12s ease}
.segmented button.active{background:#080a09;color:#fff;box-shadow:0 6px 15px rgba(0,0,0,.15)}
.select,input[type="date"],input[type="time"],input[type="number"],input[type="text"],input[type="tel"],input[type="email"],textarea{border:1px solid var(--line);background:#fff;border-radius:12px;padding:10px 12px;outline:none;color:var(--ink);width:100%;transition:.14s ease}
.select:focus,input:focus,textarea:focus{border-color:#b8dec0;box-shadow:0 0 0 4px rgba(54,173,60,.08)}
textarea{min-height:90px;resize:vertical}
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.form-grid .span-2{grid-column:1/-1}.field label{display:block;color:var(--muted);font-size:12px;font-weight:850;margin:0 0 6px}.field small{display:block;color:var(--muted);margin-top:4px}
.calendar-layout{display:grid;grid-template-columns:minmax(0,1fr) 415px;gap:16px;align-items:start}
.calendar-card{padding:0;overflow:hidden;border-radius:22px;background:#fff}
.calendar-head{display:flex;align-items:center;justify-content:space-between;padding:16px 17px 12px;border-bottom:1px solid var(--line);gap:12px;flex-wrap:wrap;background:linear-gradient(180deg,#fff,#fbfcfb)}
.week-grid{display:grid;grid-template-columns:72px repeat(7,minmax(122px,1fr));height:735px;overflow:auto;background:#fff}
.day-header,.time-header{height:58px;border-bottom:1px solid var(--line-soft);border-right:1px solid var(--line-soft);display:flex;align-items:center;justify-content:center;font-weight:820;font-size:13px;background:#fff;position:sticky;top:0;z-index:2;letter-spacing:-.01em}
.time-header{left:0;z-index:3;color:var(--muted);background:#fff}
.day-header.today{color:#fff;background:linear-gradient(135deg,#49c84d,#2e9b37);border-color:#3bad42}
.time-cell{height:68px;border-bottom:1px solid var(--line-soft);border-right:1px solid var(--line-soft);color:#7d8984;font-size:12px;padding:11px 8px;background:#fcfdfc;position:sticky;left:0;z-index:1}
.day-cell{height:68px;border-bottom:1px solid var(--line-soft);border-right:1px solid var(--line-soft);position:relative;background:#fff}
.day-cell.weekend{background:repeating-linear-gradient(45deg,#fbfbfb,#fbfbfb 8px,#f6f8f7 8px,#f6f8f7 16px)}
.job-card{position:absolute;left:7px;right:7px;border-radius:10px;padding:9px 10px;border:1.2px solid;box-shadow:0 10px 24px rgba(35,50,43,.08);font-size:12px;line-height:1.22;z-index:4;overflow:hidden;user-select:none;transition:.14s ease;background:#fff;min-height:62px}
.job-card:hover{transform:translateY(-2px);box-shadow:0 18px 34px rgba(35,50,43,.14)}
.job-card strong{display:block;font-size:12px;margin-bottom:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:860}.job-card .meta{display:flex;justify-content:space-between;align-items:center;margin-top:7px;font-weight:800;color:#3f4b47}.job-card.green{background:linear-gradient(180deg,#f1fbf1,#e9f8ea);border-color:#99d99d}.job-card.yellow{background:linear-gradient(180deg,#fff9e6,#fff1cc);border-color:#efc75c}.job-card.blue{background:linear-gradient(180deg,#eef6ff,#e3f0ff);border-color:#96c2f5}.job-card.purple{background:linear-gradient(180deg,#f7f2ff,#f0eaff);border-color:#b89cf1}.job-card.dragging{opacity:.58}.drop-hover{outline:2px dashed var(--green);outline-offset:-5px;background:#f2fbf3!important}
.detail-panel{position:sticky;top:108px;max-height:calc(100vh - 130px);overflow:auto;border-radius:22px;background:#fff;padding:18px;box-shadow:var(--shadow-sm)}
.detail-title{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.detail-title h2{font-size:22px;margin-bottom:6px}.tabs{display:flex;gap:16px;border-bottom:1px solid var(--line);margin:14px 0 16px;overflow:auto}.tabs button{border:0;background:transparent;padding:11px 0;color:var(--muted);font-weight:820;border-bottom:2px solid transparent;white-space:nowrap}.tabs button.active{color:var(--green-2);border-bottom-color:var(--green)}
.info-row{display:grid;grid-template-columns:26px 1fr;gap:10px;align-items:start;margin:11px 0;color:#26302d}.info-row span:first-child{color:var(--green)}
.mapbox{height:138px;border-radius:16px;background:linear-gradient(135deg,#e9eeeb,#f8fbf9);border:1px solid var(--line);position:relative;overflow:hidden;margin:12px 0;display:grid;place-items:center}.mapbox:before{content:"";position:absolute;inset:-20px;background:linear-gradient(90deg,transparent 31%,rgba(0,0,0,.055) 32%,transparent 33%),linear-gradient(0deg,transparent 31%,rgba(0,0,0,.055) 32%,transparent 33%);background-size:42px 42px;opacity:.72}.pin{position:relative;z-index:2;width:43px;height:43px;background:var(--green);border-radius:50% 50% 50% 0;transform:rotate(-45deg);display:grid;place-items:center;box-shadow:0 8px 22px rgba(69,185,70,.32)}.pin:after{content:"";width:12px;height:12px;border-radius:50%;background:#fff;display:block}
.people-list{display:grid;grid-template-columns:1fr 1fr;gap:9px}.person-chip{display:flex;gap:9px;align-items:center;background:var(--panel-2);border:1px solid var(--line);border-radius:14px;padding:9px}.person-chip b{font-size:12px;display:block}.person-chip small{color:var(--muted);font-weight:700}
.file-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.file-item{display:flex;gap:8px;align-items:center;background:var(--panel-2);border:1px solid var(--line);border-radius:12px;padding:9px;min-width:0}.file-icon{width:30px;height:30px;border-radius:9px;background:var(--red-soft);display:grid;place-items:center;flex:none}.file-item b{font-size:12px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-item small{font-size:10px;color:var(--muted)}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:18px;background:#fff}.table{width:100%;border-collapse:collapse;min-width:780px}.table th,.table td{padding:13px 14px;text-align:left;border-bottom:1px solid var(--line);font-size:13px;vertical-align:middle}.table th{color:#67746f;background:#fbfdfc;font-size:11px;text-transform:uppercase;letter-spacing:.055em}.table tr:last-child td{border-bottom:0}.table tr:hover td{background:#fbfdfc}
.employee-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}.employee-card{display:flex;gap:14px;align-items:flex-start;border:1px solid var(--line);border-radius:18px;background:#fff;padding:15px;box-shadow:0 7px 20px rgba(20,32,26,.045);transition:.14s ease}.employee-card:hover{transform:translateY(-1px);box-shadow:var(--shadow-sm)}.employee-card.active{outline:2px solid rgba(69,185,70,.34);border-color:#bce6c0}.employee-card .avatar{width:52px;height:52px;font-size:16px}.employee-card h3{margin:0 0 4px}.kv{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.kv div{background:var(--panel-2);border:1px solid var(--line);border-radius:12px;padding:8px}.kv small{display:block;color:var(--muted);font-size:11px;font-weight:800}.kv b{font-size:13px}.profile-layout{display:grid;grid-template-columns:370px 1fr;gap:18px}.check-list{display:flex;flex-direction:column;gap:8px}.check-item{display:flex;align-items:center;gap:9px;font-size:13px;color:#27312d}.check{width:18px;height:18px;border-radius:50%;background:var(--green-soft);color:var(--green-2);display:grid;place-items:center;font-size:12px;font-weight:900;flex:none}
.warning{background:var(--yellow-soft);border:1px solid #f1dc91;border-radius:14px;padding:10px;color:#745512;font-weight:800;font-size:13px}.danger-note{background:var(--red-soft);border:1px solid #ffcaca;border-radius:14px;padding:10px;color:#9e2626;font-weight:800;font-size:13px}
.chart{height:220px;border:1px solid var(--line);border-radius:18px;background:#fff;padding:14px;display:flex;gap:10px;align-items:end;justify-content:space-around;background-image:repeating-linear-gradient(0deg,transparent,transparent 42px,#f0f3f1 43px)}.bar{width:34px;background:linear-gradient(180deg,#66d46a,#2fa33b);border-radius:9px 9px 0 0;position:relative;box-shadow:inset 0 1px 0 rgba(255,255,255,.35)}.bar:after{content:attr(data-label);position:absolute;bottom:-24px;left:50%;transform:translateX(-50%);font-size:10px;color:#6b7772;font-weight:800;white-space:nowrap}.line-chart{height:220px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(#fff,#fff),repeating-linear-gradient(0deg,transparent,transparent 43px,#eef2ef 44px);position:relative;overflow:hidden}.line-chart svg{position:absolute;inset:0;width:100%;height:100%}.mini-chart{display:flex;gap:6px;align-items:end;height:58px}.mini-chart span{width:9px;border-radius:4px 4px 0 0;background:var(--green)}
.kanban{display:grid;grid-template-columns:repeat(5,minmax(235px,1fr));gap:14px;overflow:auto;padding-bottom:8px}.kanban-col{background:rgba(255,255,255,.72);border:1px solid var(--line);border-radius:20px;padding:13px;min-height:420px;box-shadow:var(--shadow-xs)}.kanban-col h3{display:flex;justify-content:space-between;align-items:center}.mini-job{background:#fff;border:1px solid var(--line);border-radius:15px;padding:13px;margin-bottom:10px;box-shadow:0 7px 18px rgba(20,32,26,.05);transition:.14s ease}.mini-job:hover{transform:translateY(-1px);box-shadow:var(--shadow-sm)}.mini-job b{display:block;margin-bottom:5px}.mini-job small{color:var(--muted);display:block;margin:3px 0}
.modal-backdrop{position:fixed;inset:0;background:rgba(10,16,14,.46);display:none;align-items:center;justify-content:center;z-index:100;padding:18px;backdrop-filter:blur(8px)}.modal-backdrop.show{display:flex}.modal{background:#fff;border-radius:25px;box-shadow:0 35px 95px rgba(0,0,0,.28);width:min(900px,100%);max-height:90vh;overflow:auto;border:1px solid rgba(255,255,255,.45)}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid var(--line)}.modal-head h2{margin:0}.modal-body{padding:20px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding:14px 20px;background:#fbfdfc;border-radius:0 0 25px 25px}
.phone-wrap{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:20px}.phone{width:282px;max-width:100%;margin:auto;background:#080b0a;border-radius:40px;padding:10px;box-shadow:0 26px 70px rgba(0,0,0,.24),inset 0 0 0 1px rgba(255,255,255,.12)}.phone-screen{background:#f8faf9;border-radius:31px;min-height:568px;overflow:hidden;padding:17px}.phone-status{display:flex;justify-content:space-between;font-weight:900;font-size:12px;margin-bottom:13px}.phone-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:13px;margin-bottom:11px;box-shadow:0 5px 15px rgba(20,32,26,.035)}.phone-nav{display:flex;justify-content:space-around;background:#fff;border-top:1px solid var(--line);margin:16px -17px -17px;padding:10px}.phone-nav span{font-size:11px;font-weight:800;color:#73807b;text-align:center}.timer{font-size:38px;font-weight:900;letter-spacing:-.055em}.circle-btn{width:44px;height:44px;border-radius:50%;border:1px solid #cfe8d2;background:var(--green-soft);display:grid;place-items:center;color:var(--green-2);font-weight:900}
.hero-board{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:18px}.welcome{min-height:260px;background:radial-gradient(circle at 88% 75%,rgba(83,196,86,.35),transparent 32%),linear-gradient(135deg,#0e1714,#202b27);color:#fff;border-radius:25px;padding:26px;position:relative;overflow:hidden;box-shadow:var(--shadow)}.welcome h2{font-size:35px;line-height:1.05;letter-spacing:-.063em;margin:0 0 12px;max-width:640px}.welcome p{color:#cdd8d2;max-width:660px;font-size:15px;line-height:1.62}.feature-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:22px;position:relative;z-index:2}.feature{background:rgba(255,255,255,.075);border:1px solid rgba(255,255,255,.105);border-radius:15px;padding:12px;color:#ecfff0;font-weight:800}
.employee-home{display:none}.role-employee .management-only{display:none!important}.role-employee .employee-home{display:block}.role-employee .manager-home{display:none!important}.empty{padding:34px;border:1px dashed #cfd9d3;border-radius:18px;text-align:center;color:var(--muted);background:#fbfdfc}.toast{position:fixed;right:20px;bottom:20px;background:#101816;color:#fff;border-radius:16px;padding:12px 14px;box-shadow:0 20px 60px rgba(0,0,0,.25);transform:translateY(30px);opacity:0;pointer-events:none;transition:.22s ease;z-index:200;font-weight:800}.toast.show{transform:translateY(0);opacity:1}.print-note{display:none}
@media (max-width:1260px){.calendar-layout{grid-template-columns:1fr}.detail-panel{position:relative;top:0;max-height:none}.grid.two,.hero-board{grid-template-columns:1fr}.week-grid{grid-template-columns:70px repeat(7,155px)}}
@media (max-width:900px){.app-shell{grid-template-columns:1fr}.sidebar{position:relative;height:auto;border-radius:0 0 24px 24px}.brand{font-size:27px}.nav{display:grid;grid-template-columns:repeat(2,1fr)}.sidebar-footer{display:none}.main{padding:14px}.topbar{position:relative;top:0;min-height:auto;align-items:flex-start;flex-direction:column;padding:15px}.top-actions{width:100%;justify-content:stretch}.searchbox,.user-switch{width:100%;min-width:0}.grid.three,.grid.four,.profile-layout,.form-grid{grid-template-columns:1fr}.calendar-head{align-items:flex-start}.people-list,.file-grid,.feature-list{grid-template-columns:1fr}.welcome h2{font-size:27px}.kanban{grid-template-columns:1fr}.nav button{font-size:13px}}
@media print{body{background:#fff}.sidebar,.topbar,.controls,.btn,.modal-backdrop{display:none!important}.app-shell{display:block}.main{padding:0}.card{box-shadow:none;border-color:#ccc}.print-note{display:block}.calendar-layout{grid-template-columns:1fr}.detail-panel{display:none}.week-grid{height:auto;overflow:visible}}


:root{--primary-1:#19CCFF;--primary-2:#246BFF;--primary-3:#7C2CFF;--brand-gradient:linear-gradient(135deg,var(--primary-1) 0%,var(--primary-2) 52%,var(--primary-3) 100%);--brand-gradient-soft:linear-gradient(135deg,rgba(25,204,255,.16) 0%,rgba(36,107,255,.14) 52%,rgba(124,44,255,.14) 100%)}
html,body{background:linear-gradient(180deg,#ffffff 0,#f7f9ff 55%,#f2f5ff 100%);color:var(--ink)}
.app-shell{background:linear-gradient(135deg,#fff 0,#fbfcff 40%,#f5f7ff 100%)}
.sidebar{background:radial-gradient(circle at 16% 0%,rgba(25,204,255,.18) 0,transparent 24%),radial-gradient(circle at 110% 15%,rgba(124,44,255,.22) 0,transparent 36%),linear-gradient(180deg,#08153c 0%,#081134 55%,#060d28 100%);box-shadow:28px 0 70px rgba(10,19,56,.28)}
.brand{padding:0 4px 8px;display:block}
.brand-logo{display:block;width:176px;max-width:100%;height:auto;filter:drop-shadow(0 10px 28px rgba(31,93,255,.18))}
.brand-bolt{display:none}
.nav button{border-radius:14px;color:#eef4ff;padding:14px 14px;min-height:50px;font-weight:700}
.nav button:hover{background:rgba(255,255,255,.07)}
.nav button.active{background:var(--brand-gradient);color:#fff;border-color:rgba(255,255,255,.18);box-shadow:0 12px 30px rgba(35,93,255,.28), inset 0 0 0 1px rgba(255,255,255,.14)}
.nav-icon{filter:none}
.sidebar-footer{border-top:1px solid rgba(255,255,255,.09);color:#c8d4fb}
.sidebar-footer b{color:#ffffff}
.main{padding:18px 22px 24px}
.topbar{background:rgba(255,255,255,.9);border:1px solid #e8edf8;border-radius:26px;box-shadow:0 16px 40px rgba(20,38,95,.07)}
.topbar h1{color:#1b2750}
.searchbox input{border-color:#e6ebfb;background:linear-gradient(180deg,#fff,#fcfdff)}
.searchbox input:focus{border-color:#c4d3ff;box-shadow:0 0 0 4px rgba(36,107,255,.08)}
.user-switch{border-color:#e6ebfb;box-shadow:0 6px 18px rgba(20,38,95,.06)}
.avatar.brand-accent{background:var(--brand-gradient)}
.avatar.green{background:linear-gradient(135deg,#19CCFF,#246BFF)}
.avatar.blue{background:linear-gradient(135deg,#6cb5ff,#246BFF)}
.avatar.purple{background:linear-gradient(135deg,#8e6bff,#7C2CFF)}
.btn{border-color:#e6ebfb;color:#24305a;border-radius:14px;background:#fff;box-shadow:0 6px 18px rgba(21,40,99,.04)}
.btn:hover{border-color:#dbe5ff;box-shadow:0 14px 26px rgba(21,40,99,.08)}
.btn.primary{background:var(--brand-gradient);border-color:rgba(36,107,255,.22);box-shadow:0 12px 30px rgba(35,93,255,.24)}
.btn.primary:hover{box-shadow:0 16px 38px rgba(35,93,255,.30)}
.btn.dark{background:#0c143a;border-color:#0c143a}
.grid.two{grid-template-columns:1fr 415px}
.card{background:rgba(255,255,255,.94);border:1px solid #e8edf9;box-shadow:0 12px 26px rgba(24,42,101,.05)}
.kpi:after{background:radial-gradient(circle,rgba(36,107,255,.10),transparent 70%)}
.badge.green{background:#eaf9f0;color:#24914f;border-color:#d4f0df}
.badge.blue{background:#eef5ff;color:#246bff;border-color:#dae7ff}
.badge.purple{background:#f4efff;color:#7c2cff;border-color:#eadfff}
.controls{margin-bottom:14px}
.segmented{border-color:#e6ebfb;box-shadow:none;padding:5px}
.segmented button{border-radius:10px;color:#64729c}
.segmented button.active{background:var(--brand-gradient);color:#fff;box-shadow:0 10px 24px rgba(35,93,255,.24)}
.select,input[type="date"],input[type="time"],input[type="number"],input[type="text"],input[type="tel"],input[type="email"],textarea{border-color:#e6ebfb;border-radius:14px;background:#fff}
.select:focus,input:focus,textarea:focus{border-color:#bfd0ff;box-shadow:0 0 0 4px rgba(36,107,255,.08)}
.calendar-card{border-radius:24px;border:1px solid #e8edf8}
.calendar-head{background:linear-gradient(180deg,#fff,#fcfdff)}
.day-header,.time-header,.time-cell,.day-cell{border-color:#eef2fb}
.day-header{color:#4f5d8b;font-weight:800}
.day-header .badge,.topbar .badge{font-weight:800}
.job-card{box-shadow:0 8px 18px rgba(30,56,126,.06);border-width:1px}
.job-card.green{background:#f7fcfa;border-color:#8fe0ad}
.job-card.yellow{background:#fffaf0;border-color:#f1dd9e}
.job-card.blue{background:#f4f8ff;border-color:#96bcff}
.job-card.purple{background:#faf5ff;border-color:#cdb4ff}
.job-card.dragging{border-style:solid;box-shadow:0 18px 36px rgba(36,107,255,.16)}
.detail-panel{border:1px solid #e8edf8;background:rgba(255,255,255,.95)}
.tabs button.active{color:var(--primary-2);border-bottom-color:var(--primary-2)}
.info-row span:first-child{color:var(--primary-2)}
.mapbox{background:linear-gradient(135deg,#f4f7ff,#fcfdff);border-color:#e8edf9}
.pin{background:var(--brand-gradient);box-shadow:0 8px 22px rgba(71,82,255,.28)}
.person-chip{background:#fbfcff;border-color:#e8edf9}
.file-item{background:#fbfcff;border-color:#e8edf9}
.file-icon{background:#eef2ff;color:var(--primary-2)}
.table-wrap{border-color:#e8edf8}
.table th{background:#fbfcff;color:#7280a7}
.employee-card{border-color:#e8edf8;box-shadow:0 8px 20px rgba(24,42,101,.05)}
.employee-card.active{outline:2px solid rgba(36,107,255,.22);border-color:#c7d7ff}
.kv div{background:#fbfcff;border-color:#e8edf8}
.check{background:#eef5ff;color:var(--primary-2)}
.warning{background:#fff7e5;border-color:#ffe6a6}
.chart{border-color:#e8edf8;background-image:repeating-linear-gradient(0deg,transparent,transparent 42px,#f2f5fd 43px)}
.bar{background:linear-gradient(180deg,var(--primary-1),var(--primary-2) 55%,var(--primary-3));box-shadow:inset 0 1px 0 rgba(255,255,255,.45)}
.line-chart{border-color:#e8edf8;background:linear-gradient(#fff,#fff),repeating-linear-gradient(0deg,transparent,transparent 43px,#f2f5fd 44px)}
.kanban-col{background:rgba(255,255,255,.82);border-color:#e8edf8}
.mini-job{border-color:#e8edf8}
.modal{border-color:#edf1fc}
.modal-actions{background:#fbfcff}
.phone{background:#0b1027;box-shadow:0 26px 70px rgba(20,31,79,.24),inset 0 0 0 1px rgba(255,255,255,.12)}
.phone-screen{background:#fbfcff}
.phone-brandbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px;color:#5b6a92}
.phone-logo{height:30px;width:auto;max-width:124px}
.phone-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.phone-card{border-color:#e8edf8;background:#fff}
.phone-nav{border-top-color:#edf1fb}
.phone-nav span.active{color:var(--primary-2);font-weight:900}
.circle-btn{border-color:#d8e6ff;background:#eef5ff;color:var(--primary-2)}
.welcome{background:radial-gradient(circle at 88% 75%,rgba(25,204,255,.26),transparent 26%),radial-gradient(circle at 78% 28%,rgba(124,44,255,.24),transparent 22%),linear-gradient(135deg,#08153d,#0b1743 40%,#141a53 100%)}
.feature{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.11)}
.empty{border-color:#dae3f8;background:#fbfcff}
.toast{background:#101941}
@media (max-width:900px){.brand-logo{width:164px}.sidebar{border-radius:0 0 26px 26px}}

/* ===== EXELIQ ENERGIA SVIZZERA — CORRECTED APP UI v2 ===== */
:root{
  --primary-1:#14cfff;
  --primary-2:#216bff;
  --primary-3:#7b22ff;
  --primary-4:#4c16d8;
  --brand-gradient:linear-gradient(135deg,#14cfff 0%,#216bff 52%,#7b22ff 100%);
  --brand-ink:#0b1740;
  --surface:#ffffff;
  --surface-2:#fbfcff;
  --ui-line:#e7edf9;
  --ui-line-2:#f0f3fb;
}
html,body{background:#f6f8fd;color:var(--brand-ink)}
.app-shell{grid-template-columns:256px minmax(0,1fr);background:linear-gradient(135deg,#ffffff 0%,#fbfcff 42%,#f5f7ff 100%)}
.sidebar{padding:30px 16px 24px;background:radial-gradient(circle at 18% 4%,rgba(20,207,255,.24),transparent 26%),radial-gradient(circle at 105% 12%,rgba(123,34,255,.24),transparent 37%),linear-gradient(180deg,#07143b 0%,#071135 54%,#050b25 100%);box-shadow:30px 0 70px rgba(6,15,52,.26);gap:26px}
.brand{display:flex;align-items:center;gap:11px;padding:0 12px 14px;margin-bottom:2px}
.brand-mark{width:48px;height:52px;object-fit:contain;flex:0 0 auto;filter:drop-shadow(0 12px 26px rgba(34,105,255,.34))}
.brand-copy{display:flex;flex-direction:column;line-height:1;min-width:0;margin-top:2px}
.brand-name{font-size:33px;font-weight:300;letter-spacing:-1.5px;color:#fff;line-height:.9;text-transform:lowercase;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
.brand-sub{font-size:8.4px;letter-spacing:3.3px;color:rgba(255,255,255,.83);font-weight:600;margin-top:9px;white-space:nowrap}
.brand-logo{display:none!important}.brand-bolt{display:none!important}
.nav{gap:9px}
.nav button{height:50px;border-radius:13px;padding:0 14px;color:#f6f8ff;background:transparent;border:1px solid transparent;font-size:14px;font-weight:700;letter-spacing:-.012em}
.nav button:hover{background:rgba(255,255,255,.065);transform:none}
.nav button.active{background:var(--brand-gradient);color:#fff;border-color:rgba(255,255,255,.16);box-shadow:0 14px 28px rgba(54,62,255,.28),inset 0 0 0 1px rgba(255,255,255,.12)}
.nav-icon{width:24px;height:24px;display:grid;place-items:center;opacity:1;filter:none;text-align:center;flex:0 0 auto}
.nav-icon svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round}
.sidebar-footer{color:#c5d2ff;border-top:1px solid rgba(255,255,255,.09);padding:17px 8px 0;font-size:12px}.sidebar-footer b{color:#fff}
.main{padding:25px 26px 28px;gap:18px;background:linear-gradient(180deg,#ffffff 0%,#fbfcff 48%,#f6f8fd 100%)}
.topbar{position:relative;top:auto;min-height:58px;background:transparent;border:0;border-radius:0;box-shadow:none;padding:0 2px;backdrop-filter:none}
.topbar h1{font-size:28px;font-weight:830;letter-spacing:-.055em;color:#111b46;line-height:1.05}.topbar .muted{display:none}.topbar-title{display:flex;align-items:center}
.top-actions{gap:14px}.searchbox{width:0;min-width:0;overflow:hidden;opacity:0;pointer-events:none}.searchbox input{height:40px;border-color:var(--ui-line)}
.top-icon{width:42px;height:42px;border-radius:50%;border:0;background:transparent;color:#0e1842;display:grid;place-items:center;font-size:21px;font-weight:700;position:relative;transition:.14s ease;text-decoration:none}.top-icon:hover{background:#f3f6ff}.top-icon.notification em{position:absolute;right:4px;top:2px;background:var(--brand-gradient);color:#fff;min-width:18px;height:18px;border-radius:999px;display:grid;place-items:center;font-size:10px;font-style:normal;border:2px solid #fff}
.user-switch{position:relative;min-width:184px;border:0;background:transparent;box-shadow:none;border-radius:0;padding:0;gap:10px}.user-switch .avatar{width:42px;height:42px;font-size:13px;background:#0b1740}.user-copy{display:flex;flex-direction:column;line-height:1.1}.user-copy b{font-size:13px;color:#111b46;font-weight:850}.user-copy small{font-size:11px;color:#5e6b94;font-weight:700;margin-top:3px}.user-switch select{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.user-switch .chev{color:#0e1842;font-weight:900;margin-left:2px}
.card{border-color:var(--ui-line);background:rgba(255,255,255,.96);box-shadow:0 12px 34px rgba(19,34,82,.055)}
.calendar-layout{display:grid;grid-template-columns:minmax(0,1fr) 444px;gap:18px;align-items:start}.calendar-card{border-radius:24px;overflow:hidden;border:1px solid var(--ui-line);background:#fff;box-shadow:0 12px 36px rgba(23,40,93,.055)}
.calendar-head{height:72px;padding:13px 16px;display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;border-bottom:1px solid var(--ui-line);background:#fff;flex-wrap:nowrap}.calendar-nav{gap:10px}.calendar-mode-row{display:flex;align-items:center;gap:10px}.calendar-actions{gap:10px}.calendar-actions .select{width:168px;min-height:42px}.date-range{border:0;background:transparent;color:#1c2957;font-weight:800;font-size:15px;padding:8px 10px;border-radius:10px}.date-range:hover{background:#f5f7ff}.btn.small{min-height:38px;border-radius:11px;padding:8px 12px}.btn.dark{background:#0b1740;border-color:#0b1740;color:#fff}.icon-filter{width:40px;justify-content:center;color:#1f2a58;background:#fff}.segmented{height:44px;border-radius:13px;border:1px solid var(--ui-line);box-shadow:none;background:#fff;padding:4px}.segmented button{min-width:82px;border-radius:10px;padding:7px 13px;color:#50608d;font-weight:800}.segmented button.active{background:var(--brand-gradient);color:#fff;box-shadow:0 10px 24px rgba(54,62,255,.25)}.btn.primary{background:var(--brand-gradient);border-color:rgba(38,104,255,.25);color:#fff;box-shadow:0 12px 28px rgba(54,62,255,.23);border-radius:14px}.btn.primary:hover{box-shadow:0 16px 34px rgba(54,62,255,.30)}
.week-grid{grid-template-columns:72px repeat(7,minmax(112px,1fr));height:760px;background:#fff;overflow:auto}.day-header,.time-header{height:58px;border-color:var(--ui-line-2);background:#fff;color:#31406e;font-size:13px;font-weight:850;display:flex;gap:7px;position:sticky;top:0;z-index:3}.day-header span{text-transform:capitalize}.day-header b{font-weight:850;padding:0;display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:34px;border-radius:999px}.day-header.today{background:#fff;color:#31406e;border-color:var(--ui-line-2)}.day-header.today b{background:var(--brand-gradient);color:#fff;box-shadow:0 10px 24px rgba(54,62,255,.26)}.time-cell{height:72px;border-color:var(--ui-line-2);color:#7a86a7;background:#fff}.day-cell{height:72px;border-color:var(--ui-line-2);background:#fff}.day-cell.weekend{background:repeating-linear-gradient(45deg,#fff,#fff 9px,#fafbfe 9px,#fafbfe 18px)}
.job-card{left:8px;right:8px;border-radius:10px;padding:10px 11px;font-size:12px;line-height:1.23;box-shadow:0 10px 22px rgba(23,40,93,.065);border-width:1px;color:#1d2a50}.job-card:hover{transform:translateY(-1px);box-shadow:0 16px 30px rgba(23,40,93,.11)}.job-card strong{font-size:12px;font-weight:880;letter-spacing:-.02em;color:#18234d}.job-card .meta{color:#27345f;margin-top:9px}.job-card.green{background:linear-gradient(180deg,#f8fffc,#f1fbf6);border-color:#8fe0ad}.job-card.yellow{background:linear-gradient(180deg,#fffaf0,#fff6e9);border-color:#f0d38a}.job-card.blue{background:linear-gradient(180deg,#f7fbff,#eef5ff);border-color:#97bdff}.job-card.purple{background:linear-gradient(180deg,#fbf8ff,#f5efff);border-color:#cbb2ff}.job-card.dragging{opacity:.58}.drop-hover{outline:2px dashed var(--primary-2);outline-offset:-5px;background:#f7faff!important}
.detail-panel{position:sticky;top:22px;border-radius:24px;border:1px solid var(--ui-line);box-shadow:0 12px 36px rgba(23,40,93,.055);padding:22px;background:#fff;max-height:calc(100vh - 46px);overflow:auto}.detail-title h2{font-size:22px;color:#111b46}.detail-title .muted{color:#66749d}.tabs{border-bottom-color:var(--ui-line);gap:25px}.tabs button{font-size:13px;color:#6a76a0;font-weight:850;padding:13px 0 12px}.tabs button.active{color:#245fff;border-bottom-color:#245fff}.detail-panel h3{font-size:14px;color:#111b46;margin-top:17px}.info-row{grid-template-columns:24px 1fr;color:#20305f}.info-row span:first-child{color:#245fff}.mapbox{height:144px;border-radius:16px;border-color:var(--ui-line);background:linear-gradient(135deg,#f4f7ff,#fff);margin:12px 0}.pin{background:var(--brand-gradient);box-shadow:0 10px 26px rgba(54,62,255,.28)}.person-chip{background:#fbfcff;border-color:var(--ui-line);border-radius:14px}.person-chip .avatar{width:36px;height:36px}.file-item{background:#fbfcff;border-color:var(--ui-line);border-radius:12px}.file-icon{background:#eef4ff;color:#245fff}.select,input[type="date"],input[type="time"],input[type="number"],input[type="text"],input[type="tel"],input[type="email"],textarea{border-color:var(--ui-line);background:#fff;color:#1d2a50}.select:focus,input:focus,textarea:focus{border-color:#c4d2ff;box-shadow:0 0 0 4px rgba(36,107,255,.08)}.badge.green{background:#eaf7f0;color:#24945d;border-color:#d2eedc}.badge.blue{background:#eef5ff;color:#245fff;border-color:#d9e7ff}.badge.purple{background:#f5efff;color:#7b22ff;border-color:#eadfff}.badge.yellow{background:#fff6df;color:#9a6b00;border-color:#f1dc9a}
.check{background:#eef5ff;color:#245fff}.bar{background:linear-gradient(180deg,#14cfff 0,#216bff 58%,#7b22ff 100%)}.circle-btn{border-color:#d9e5ff;background:#eef5ff;color:#245fff}.phone-logo{display:none}.phone-brandbar:before{content:"";width:38px;height:40px;background:url('/exeliq/assets/exeliq-logo-symbol-exact.png') center/contain no-repeat;filter:drop-shadow(0 8px 18px rgba(54,62,255,.25))}.phone-brandbar:after{content:"exeliq\A ENERGIA SVIZZERA";white-space:pre;line-height:1;text-align:left;color:#111b46;font-size:25px;font-weight:300;letter-spacing:-1px;margin-right:auto}.phone-brandbar{justify-content:flex-start;gap:9px}.phone-brandbar span:first-child{margin-right:auto}.phone-brandbar span:last-child{margin-left:auto}.phone-nav span.active{color:#245fff}
@media (max-width:1420px){.calendar-layout{grid-template-columns:minmax(0,1fr) 395px}.calendar-head{grid-template-columns:1fr auto}.calendar-actions{grid-column:1/-1}.week-grid{grid-template-columns:68px repeat(7,minmax(120px,1fr))}}
@media (max-width:1260px){.calendar-layout{grid-template-columns:1fr}.detail-panel{position:relative;top:0;max-height:none}.calendar-head{height:auto;grid-template-columns:1fr}.week-grid{grid-template-columns:70px repeat(7,155px)}}
@media (max-width:900px){.app-shell{grid-template-columns:1fr}.sidebar{height:auto;border-radius:0 0 24px 24px}.brand-name{font-size:29px}.brand-mark{width:44px}.nav{grid-template-columns:repeat(2,1fr)}.topbar{align-items:flex-start}.top-actions{width:100%;justify-content:flex-start}.searchbox{display:none}.user-switch{margin-left:auto}.main{padding:14px}}


/* exact uploaded logo integration */
.brand{display:block;padding:0 12px 14px;margin-bottom:2px}
.brand-mark,.brand-copy,.brand-name,.brand-sub,.brand-logo{display:none!important}
.brand-logo-exact{display:block;width:160px;max-width:100%;height:auto;object-fit:contain;filter:drop-shadow(0 10px 28px rgba(16,58,180,.20))}
.phone-logo,.phone-brandbar:before,.phone-brandbar:after{display:none!important;content:none!important}
.phone-brandbar{display:flex;align-items:center;justify-content:space-between;gap:10px}
.phone-brand-chip{display:flex;align-items:center;justify-content:center;background:#08153d;border-radius:12px;padding:6px 10px;box-shadow:0 8px 18px rgba(16,30,76,.12)}
.phone-logo-exact{display:block;height:24px;width:auto;max-width:126px;object-fit:contain}
@media (max-width:900px){.brand-logo-exact{width:150px}}


/* ===== FINAL LOGO/UI FIX v3 — real application files ===== */
.sidebar{width:256px;padding:28px 16px 24px;background:radial-gradient(circle at 18% 5%,rgba(20,207,255,.22),transparent 27%),radial-gradient(circle at 100% 10%,rgba(123,34,255,.23),transparent 36%),linear-gradient(180deg,#07143b 0%,#071134 54%,#050b25 100%)!important}
.brand{display:flex!important;align-items:center!important;justify-content:flex-start!important;padding:0 6px 22px!important;margin:0!important;min-height:64px!important;background:transparent!important;border:0!important;overflow:visible!important}
.brand-logo-exact{display:block!important;width:182px!important;max-width:182px!important;height:auto!important;object-fit:contain!important;background:transparent!important;border:0!important;box-shadow:none!important;filter:drop-shadow(0 11px 25px rgba(21,95,255,.24))!important}
.brand-mark,.brand-copy,.brand-name,.brand-sub,.brand-logo,.brand-bolt{display:none!important}
.nav button{height:52px!important;border-radius:14px!important;padding:0 15px!important;font-size:14px!important;color:#f4f7ff!important;gap:13px!important}
.nav button.active{background:linear-gradient(135deg,#14cfff 0%,#216bff 50%,#7b22ff 100%)!important;box-shadow:0 15px 32px rgba(54,62,255,.30), inset 0 0 0 1px rgba(255,255,255,.14)!important}
.main{padding:26px 28px 28px!important;background:linear-gradient(180deg,#ffffff 0%,#fbfcff 46%,#f6f8fd 100%)!important}
.topbar{margin-bottom:4px!important}.topbar h1{font-size:28px!important;color:#111b46!important}
.calendar-layout{grid-template-columns:minmax(0,1fr) 444px!important;gap:18px!important}
.calendar-card,.detail-panel{border-radius:24px!important;border:1px solid #e7edf9!important;box-shadow:0 12px 36px rgba(23,40,93,.055)!important;background:#fff!important}
.calendar-head{height:72px!important;background:#fff!important;border-bottom:1px solid #e7edf9!important;padding:13px 16px!important}
.segmented button.active,.btn.primary{background:linear-gradient(135deg,#14cfff 0%,#216bff 50%,#7b22ff 100%)!important;color:#fff!important}
.week-grid{height:760px!important;background:#fff!important}.day-header,.time-header,.time-cell,.day-cell{border-color:#f0f3fb!important}.day-header.today b{background:linear-gradient(135deg,#14cfff 0%,#216bff 50%,#7b22ff 100%)!important;color:#fff!important}
.detail-panel{padding:22px!important}.tabs button.active{color:#245fff!important;border-bottom-color:#245fff!important}.pin{background:linear-gradient(135deg,#14cfff 0%,#216bff 50%,#7b22ff 100%)!important}
.phone-logo,.phone-brandbar:before,.phone-brandbar:after{display:none!important;content:none!important}.phone-brandbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important}.phone-brand-chip{display:flex!important;align-items:center!important;justify-content:center!important;background:#07143b!important;border-radius:13px!important;padding:6px 10px!important}.phone-logo-exact{display:block!important;height:25px!important;width:auto!important;max-width:138px!important;object-fit:contain!important;background:transparent!important}
@media(max-width:1420px){.calendar-layout{grid-template-columns:minmax(0,1fr) 405px!important}.brand-logo-exact{width:172px!important;max-width:172px!important}}
@media(max-width:900px){.brand-logo-exact{width:170px!important;max-width:170px!important}.main{padding:14px!important}.calendar-layout{grid-template-columns:1fr!important}}


/* ===== FINAL LOGO FIX — exact uploaded transparent files ===== */
.brand{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  padding:0 10px 24px!important;
  margin:0!important;
  min-height:72px!important;
  background:transparent!important;
  border:0!important;
}
.brand-logo-exact{
  display:block!important;
  width:182px!important;
  max-width:182px!important;
  height:auto!important;
  object-fit:contain!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  filter:drop-shadow(0 12px 28px rgba(38,93,255,.24))!important;
}
.brand-mark,.brand-copy,.brand-name,.brand-sub,.brand-logo,.brand-bolt{
  display:none!important;
}
.phone-logo,
.phone-brandbar:before,
.phone-brandbar:after{
  display:none!important;
  content:none!important;
}
.phone-brandbar{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
}
.phone-brand-chip{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:transparent!important;
  border-radius:0!important;
  padding:0!important;
  box-shadow:none!important;
  min-width:0!important;
}
.phone-logo-exact{
  display:block!important;
  width:132px!important;
  max-width:132px!important;
  height:auto!important;
  object-fit:contain!important;
}
.sidebar{
  background:
    radial-gradient(circle at 18% 4%,rgba(20,207,255,.24),transparent 26%),
    radial-gradient(circle at 105% 12%,rgba(123,34,255,.24),transparent 37%),
    linear-gradient(180deg,#07143b 0%,#071135 54%,#050b25 100%)!important;
}
@media(max-width:1420px){
  .brand-logo-exact{width:174px!important;max-width:174px!important}
}
@media(max-width:900px){
  .brand-logo-exact{width:170px!important;max-width:170px!important}
  .phone-logo-exact{width:124px!important;max-width:124px!important}
}


/* ===== v5: functional search + alarm center ===== */
.top-actions{position:relative}
.top-icon svg,
.btn svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.top-icon.active{background:#f1f5ff;color:#245fff}
.search-trigger{display:grid!important}
.searchbox{transition:.18s ease!important}
.searchbox.search-open{
  width:330px!important;
  min-width:260px!important;
  overflow:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}
.searchbox span svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2}
.top-dropdown{
  position:absolute;
  right:0;
  top:56px;
  width:min(520px, calc(100vw - 340px));
  background:rgba(255,255,255,.98);
  border:1px solid #e6ebfb;
  border-radius:22px;
  box-shadow:0 28px 70px rgba(15,28,74,.16);
  padding:14px;
  z-index:80;
  color:#13204b;
  backdrop-filter:blur(18px);
}
.search-dropdown{right:118px}
.alerts-dropdown{width:420px;right:92px}
.dropdown-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:2px 4px 12px;
  border-bottom:1px solid #eef2fb;
  margin-bottom:12px;
}
.dropdown-head b{font-size:15px}
.dropdown-clear{
  border:0;
  background:transparent;
  color:#245fff;
  font-weight:850;
  font-size:12px;
}
.search-inline{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
  align-items:center;
  margin-bottom:12px;
}
.search-inline input{
  height:43px;
  border:1px solid #e6ebfb;
  border-radius:14px;
  padding:0 13px;
  outline:none;
}
.search-inline input:focus{border-color:#bfd0ff;box-shadow:0 0 0 4px rgba(36,107,255,.08)}
.result-list,.alert-list{display:flex;flex-direction:column;gap:8px;max-height:420px;overflow:auto;padding-right:2px}
.search-result{
  text-align:left;
  border:1px solid #edf1fb;
  background:#fbfcff;
  border-radius:15px;
  padding:11px 12px;
  display:grid;
  grid-template-columns:auto 1fr;
  column-gap:10px;
  row-gap:3px;
  align-items:center;
}
.search-result:hover,.alert-row:hover{border-color:#cddcff;background:#f7faff}
.search-result b{font-size:13px}
.search-result small{grid-column:2;color:#6c789e;font-weight:650}
.result-type{
  grid-row:1 / span 2;
  align-self:center;
  background:linear-gradient(135deg,#14cfff,#216bff 55%,#7b22ff);
  color:#fff;
  border-radius:999px;
  padding:5px 8px;
  font-size:10px;
  font-weight:850;
  min-width:62px;
  text-align:center;
}
.hint-box{
  background:#f7faff;
  border:1px dashed #dbe5ff;
  border-radius:16px;
  padding:15px;
  color:#65739e;
  line-height:1.5;
}
.small-empty{padding:18px!important;font-size:13px}
.alert-row{
  border:1px solid #edf1fb;
  background:#fbfcff;
  border-radius:15px;
  padding:12px;
  display:grid;
  grid-template-columns:14px 1fr;
  gap:10px;
  text-align:left;
  align-items:start;
}
.alert-row b{display:block;font-size:13px;margin-bottom:3px;color:#13204b}
.alert-row small{display:block;color:#6c789e;font-weight:650;line-height:1.35}
.alert-dot{
  width:10px;height:10px;border-radius:50%;margin-top:4px;
  background:#246bff;box-shadow:0 0 0 4px rgba(36,107,255,.12)
}
.alert-row.warning .alert-dot{background:#f2bd32;box-shadow:0 0 0 4px rgba(242,189,50,.16)}
.alert-row.danger .alert-dot{background:#ea5b77;box-shadow:0 0 0 4px rgba(234,91,119,.16)}
.alert-row.info .alert-dot{background:#14cfff;box-shadow:0 0 0 4px rgba(20,207,255,.16)}
.dropdown-foot{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid #eef2fb;
}
@media(max-width:900px){
  .searchbox.search-open{width:100%!important;min-width:0!important}
  .top-dropdown{position:fixed;left:12px;right:12px;top:120px;width:auto}
  .search-dropdown,.alerts-dropdown{right:12px}
}


/* ===== v6: fixed search typing behaviour ===== */
.searchbox{display:none!important}
.search-trigger{display:grid!important}
.search-dropdown{
  right:190px!important;
  top:56px!important;
  width:min(560px, calc(100vw - 360px))!important;
}
.search-inline input{
  font-size:14px;
  caret-color:#245fff;
}
.search-inline input::selection{background:#dce8ff}
#searchResultsContent{min-height:54px}
.search-result{cursor:pointer}
@media(max-width:900px){
  .search-dropdown{left:12px!important;right:12px!important;top:112px!important;width:auto!important}
}


/* ===== v8 employees screen redesign ===== */
.employees-premium-page{display:flex;flex-direction:column;gap:14px}
.employee-header-actions{display:flex;justify-content:flex-end;gap:10px}
.employee-switcher{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:4px}
.employee-chip{display:flex;align-items:center;gap:10px;padding:9px 12px;border:1px solid #e7edfb;border-radius:999px;background:#fff;color:#22325d;font-weight:700;box-shadow:0 6px 16px rgba(20,38,95,.04)}
.employee-chip.active{background:linear-gradient(135deg,#16c9ff,#246bff 58%,#7b22ff);color:#fff;border-color:transparent;box-shadow:0 16px 28px rgba(36,107,255,.22)}
.mini-avatar{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#eef4ff;font-size:11px;font-weight:900;color:#1d2b59}
.employee-hero-card{padding:20px 22px 0}
.employee-hero-top{display:grid;grid-template-columns:126px 1fr;gap:24px;align-items:center}
.employee-hero-photo{width:112px;height:112px;border-radius:50%;object-fit:cover;box-shadow:0 14px 34px rgba(25,42,95,.14);background:#f4f7ff}
.employee-hero-main{min-width:0}
.employee-hero-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:4px}
.employee-hero-heading h2{margin:0;font-size:22px;line-height:1.1;color:#111b44}
.employee-hero-role{font-size:16px;font-weight:800;color:#1f2f5f;margin-bottom:12px}
.employee-hero-contact-row{display:flex;flex-wrap:wrap;gap:24px;margin-bottom:14px;color:#4b5b8d;font-weight:700}
.employee-hero-contact-row span{display:inline-flex;align-items:center;gap:8px}
.employee-hero-contact-row svg,.employee-hero-meta-grid > div > span svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.employee-hero-meta-grid{display:grid;grid-template-columns:repeat(4, minmax(0,1fr));gap:20px;padding-bottom:16px}
.employee-hero-meta-grid > div{display:flex;align-items:flex-start;gap:10px;color:#4b5b8d}
.employee-hero-meta-grid b{display:block;color:#22325d;font-size:15px;margin-bottom:3px}
.employee-hero-meta-grid small{color:#6c79a0;font-size:12px;font-weight:700}
.employee-main-tabs{display:flex;gap:14px;flex-wrap:wrap;border-top:1px solid #edf2fd;padding-top:14px;margin-top:6px}
.employee-main-tabs button,.employee-subtabs button{position:relative;background:transparent;border:0;padding:10px 10px 12px;color:#67759f;font-weight:800}
.employee-main-tabs button.active,.employee-subtabs button.active{color:#225fff}
.employee-main-tabs button.active:after,.employee-subtabs button.active:after{content:'';position:absolute;left:0;right:0;bottom:0;height:3px;border-radius:999px;background:linear-gradient(90deg,#16c9ff,#266cff 55%,#7a24ff)}
.employee-body-grid{display:grid;grid-template-columns:378px 1fr;gap:16px}
.employee-left-col{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-content:start}
.employee-left-col .employee-panel:last-child{grid-column:1 / span 2}
.employee-panel{padding:18px}
.employee-panel h3,.employee-right-panel h3{margin:0 0 16px;color:#182553;font-size:18px}
.employee-mini-label{color:#6b789f;font-size:12px;font-weight:800;margin-bottom:12px}
.employee-list-checks{display:flex;flex-direction:column;gap:14px}
.employee-check-row{display:flex;align-items:center;gap:10px;color:#22325d;font-weight:700;font-size:14px}
.employee-check-row span{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#eef5ff;color:#246bff;font-size:12px;font-weight:900}
.employee-cert-list{display:flex;flex-direction:column;gap:16px}
.employee-cert-row{display:flex;gap:12px;align-items:flex-start}
.employee-cert-row b{display:block;color:#22325d;margin-bottom:4px;font-size:14px}
.employee-cert-row small{display:block;color:#6b789f;font-size:12px;font-weight:700}
.cert-dot{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;font-size:11px;font-weight:900;color:#fff;flex:none;margin-top:2px}
.cert-dot.ok{background:#2474ff}.cert-dot.warning{background:#9a59ff}.cert-dot.danger{background:#ff7a2d}
.employee-alert-stack{display:flex;flex-direction:column;gap:10px}
.employee-alert-item{display:flex;gap:12px;align-items:flex-start;padding:14px;border:1px solid #eef2fb;border-radius:14px;background:#fff}
.employee-alert-item .alert-icon{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;font-size:12px;font-weight:900;flex:none}
.employee-alert-item b{display:block;color:#22325d;font-size:14px;margin-bottom:3px}
.employee-alert-item small{display:block;color:#6b789f;font-size:12px;font-weight:700}
.employee-alert-item.warning .alert-icon{background:#fff3dc;color:#d68b00}.employee-alert-item.danger .alert-icon{background:#fff0f3;color:#ea5b77}.employee-alert-item.info .alert-icon{background:#eef5ff;color:#246bff}
.employee-right-panel{padding:18px 18px 20px}
.employee-finance-head{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.employee-subtabs{display:flex;gap:10px;flex-wrap:wrap}
.employee-kpis-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:16px}
.employee-kpi-card{position:relative;border:1px solid #e8edf9;border-radius:16px;background:#fff;padding:16px 14px;min-height:126px;display:flex;flex-direction:column;justify-content:space-between}
.employee-kpi-card small{display:block;color:#6b789f;font-size:12px;font-weight:800;line-height:1.3}
.employee-kpi-card b{display:block;font-size:19px;color:#15204a;line-height:1.1;margin-top:12px}
.employee-kpi-card span{display:block;color:#2876ff;font-size:12px;font-weight:800;line-height:1.4}
.employee-kpi-card.muted-purple span{color:#915dff}
.employee-kpi-card.with-circle{padding-right:56px}
.employee-circle-value{position:absolute;right:12px;bottom:14px;display:grid!important;place-items:center;width:38px;height:38px;border-radius:50%;border:1px solid #dfe7f9;color:#7281a7!important;background:#fff;font-weight:900;font-size:12px!important}
.employee-charts-grid{display:grid;grid-template-columns:1fr 1fr 300px;gap:16px}
.employee-chart-card,.employee-ranking-card{box-shadow:none!important;border:1px solid #e8edf9!important;padding:16px}
.employee-chart-card h4,.employee-ranking-card h4{margin:0 0 14px;color:#182553;font-size:18px}
.employee-bar-legend{display:flex;gap:18px;align-items:center;color:#66759d;font-size:12px;font-weight:800;margin-bottom:10px}
.employee-bar-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:7px}
.employee-bar-legend i.regular{background:#16c9ff}.employee-bar-legend i.overtime{background:#8a3dff}
.employee-bar-chart{height:252px;display:grid;grid-template-columns:repeat(5,1fr);gap:16px;align-items:end;padding:0 8px 4px;border-top:1px solid #f0f4fc;background-image:linear-gradient(to top,transparent 0,transparent calc(25% - 1px),#f0f4fc 25%,transparent calc(25% + 1px),transparent calc(50% - 1px),#f0f4fc 50%,transparent calc(50% + 1px),transparent calc(75% - 1px),#f0f4fc 75%,transparent calc(75% + 1px))}
.employee-bar-col{display:flex;flex-direction:column;align-items:center;gap:10px}
.employee-bar-stack{width:38px;display:flex;flex-direction:column;justify-content:flex-end;gap:4px;align-items:stretch}
.bar-regular,.bar-overtime{border-radius:8px 8px 3px 3px;box-shadow:inset 0 1px 0 rgba(255,255,255,.35)}
.bar-regular{background:linear-gradient(180deg,#2de0ff,#1fa7ff)}
.bar-overtime{background:linear-gradient(180deg,#9447ff,#6522ff)}
.employee-bar-col small{font-size:12px;color:#6c789e;font-weight:800}
.employee-line-chart{height:252px;display:flex;flex-direction:column}
.employee-line-chart svg{height:210px;width:100%}
.employee-line-chart .grid line{stroke:#eef2fb;stroke-width:1}
.employee-line-chart polyline{fill:none;stroke:#246bff;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.employee-line-chart .points circle{fill:#246bff}
.employee-line-labels{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;padding:4px 8px 0}
.employee-line-labels small{text-align:center;color:#6c789e;font-size:12px;font-weight:800}
.employee-ranking-list{display:flex;flex-direction:column;gap:12px;margin-bottom:12px}
.employee-rank-row{display:grid;grid-template-columns:20px 36px 1fr auto;gap:10px;align-items:center;padding:2px 0}
.rank-index{font-weight:900;color:#22325d}
.rank-avatar{width:34px;height:34px;border-radius:50%;object-fit:cover;background:#f4f7ff}
.employee-rank-row b{display:block;color:#22325d;font-size:14px;margin-bottom:2px}
.employee-rank-row small{display:block;color:#6c789e;font-size:12px;font-weight:700}
.employee-rank-row strong{color:#15204a;font-size:14px}
.employee-report-btn{width:100%;justify-content:center;padding:14px 12px;border-radius:14px}
@media(max-width:1320px){.employee-body-grid{grid-template-columns:1fr}.employee-kpis-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.employee-charts-grid{grid-template-columns:1fr 1fr}.employee-ranking-card{grid-column:1 / -1}.employee-left-col{grid-template-columns:1fr 1fr}}
@media(max-width:980px){.employee-hero-top{grid-template-columns:1fr;text-align:left}.employee-hero-photo{width:96px;height:96px}.employee-hero-meta-grid{grid-template-columns:1fr 1fr}.employee-left-col{grid-template-columns:1fr}.employee-left-col .employee-panel:last-child{grid-column:auto}.employee-kpis-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-charts-grid{grid-template-columns:1fr}.employee-main-tabs,.employee-subtabs{gap:8px}.employee-header-actions{justify-content:flex-start;flex-wrap:wrap}}
@media(max-width:700px){.employee-kpis-grid{grid-template-columns:1fr}.employee-hero-meta-grid{grid-template-columns:1fr}.employee-switcher{overflow:auto;flex-wrap:nowrap;padding-bottom:6px}.employee-chip{white-space:nowrap}}


/* ===== v9: fix time summary KPI layout ===== */
.time-summary-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
}
.time-summary-grid .kpi{
  min-width:0;
  padding:16px;
}
.time-summary-grid .kpi strong{
  font-size:24px;
  line-height:1.05;
  word-break:break-word;
}
.time-summary-grid .kpi small{
  font-size:11px;
}
.time-summary-grid .kpi .delta{
  line-height:1.35;
}
@media (max-width: 1100px){
  .time-summary-grid{
    grid-template-columns:1fr 1fr;
  }
}
@media (max-width: 760px){
  .time-summary-grid{
    grid-template-columns:1fr;
  }
}


/* ===== v10: layout fixes + premium payroll ===== */
.leaves-layout,
.documents-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 420px;
  gap:16px;
  align-items:start;
}
.leave-summary-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.leave-summary-grid .kpi{
  min-width:0;
  padding:16px;
}
.leave-summary-grid .kpi strong{
  font-size:22px;
  line-height:1.05;
}
.doc-folder-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
.doc-folder-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 14px;
  border:1px solid #e8edf9;
  border-radius:16px;
  background:linear-gradient(180deg,#fff,#fbfcff);
  min-width:0;
}
.doc-folder-item b{
  display:block;
  font-size:14px;
  color:#182553;
  margin-bottom:3px;
}
.doc-folder-item small{
  display:block;
  color:#7080a6;
  font-size:12px;
  font-weight:700;
}
.doc-folder-icon{
  width:42px;
  height:42px;
  border-radius:12px;
  display:grid;
  place-items:center;
  flex:none;
  background:linear-gradient(135deg,#eef5ff,#f7f1ff);
  color:#245fff;
  font-size:18px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55);
}
.payroll-charts-grid{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(320px,.95fr);
  gap:16px;
}
.payroll-chart-card{
  padding:18px;
  border:1px solid #e8edf9;
  box-shadow:0 10px 28px rgba(23,40,93,.045);
}
.chart-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}
.chart-head h2{
  margin:0;
}
.chart-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  background:#f4f7ff;
  border:1px solid #e3eafb;
  color:#64739c;
  font-size:12px;
  font-weight:800;
}
.premium-line-wrap{
  border:1px solid #edf2fc;
  border-radius:20px;
  padding:10px 10px 12px;
  background:
    radial-gradient(circle at top right, rgba(123,34,255,.10), transparent 32%),
    linear-gradient(180deg,#ffffff,#fbfcff);
}
.premium-line-svg{
  width:100%;
  height:260px;
  display:block;
}
.premium-line-svg .grid line{
  stroke:#eef2fb;
  stroke-width:1;
}
.premium-line-bottom{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:8px;
  padding:6px 4px 0;
}
.premium-line-bottom div{
  text-align:center;
}
.premium-line-bottom b{
  display:block;
  font-size:12px;
  color:#1d2b59;
  margin-bottom:2px;
}
.premium-line-bottom span{
  display:block;
  font-size:11px;
  color:#6f7ea6;
  font-weight:700;
}
.premium-bars-wrap{
  border:1px solid #edf2fc;
  border-radius:20px;
  padding:16px 14px 10px;
  background:
    radial-gradient(circle at top left, rgba(45,199,255,.10), transparent 30%),
    linear-gradient(180deg,#ffffff,#fbfcff);
}
.premium-bars-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:16px;
  align-items:end;
  min-height:300px;
  padding-top:10px;
}
.premium-bar-col{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  min-width:0;
}
.premium-bar-value{
  font-size:12px;
  font-weight:900;
  color:#245fff;
}
.premium-bar-track{
  width:54px;
  height:190px;
  border-radius:18px 18px 12px 12px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:6px;
  background:
    linear-gradient(180deg,#f9fbff,#f1f5fd);
  border:1px solid #edf2fc;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6);
}
.premium-bar-fill{
  width:100%;
  border-radius:14px 14px 10px 10px;
  background:linear-gradient(180deg,#2ad3ff 0%, #246bff 54%, #7a24ff 100%);
  box-shadow:0 16px 24px rgba(69,95,255,.22), inset 0 1px 0 rgba(255,255,255,.32);
}
.premium-bar-col b{
  font-size:13px;
  color:#182553;
}
.premium-bar-col span{
  font-size:11px;
  color:#7281a8;
  text-align:center;
  line-height:1.3;
}
@media(max-width:1220px){
  .leaves-layout,
  .documents-layout,
  .payroll-charts-grid{
    grid-template-columns:1fr;
  }
}
@media(max-width:760px){
  .leave-summary-grid{
    grid-template-columns:1fr;
  }
  .premium-line-bottom{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .premium-bars-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}


/* ===== v11: premium charts in reports ===== */
.reports-charts-grid{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(340px,.8fr);
  gap:16px;
}
.reports-chart-wide{
  min-width:0;
}
.report-hours-wrap{
  min-height:310px;
}
.report-bars-grid{
  min-height:280px;
}
.report-bar-track{
  height:200px;
}
@media(max-width:1220px){
  .reports-charts-grid{
    grid-template-columns:1fr;
  }
}


/* ===== v12: full premium polish across app ===== */
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}
.section-head h2{margin:0;color:#111b46}
.section-head p{margin:6px 0 0;color:#7380a6;font-weight:650}
.section-head.compact{align-items:center;margin-bottom:12px}
.section-head.compact h2{font-size:20px}
.section-actions{display:flex;gap:10px;flex-wrap:wrap}
.dashboard-premium{display:flex;flex-direction:column;gap:18px}
.dashboard-hero-premium{
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  gap:18px;
  align-items:stretch;
}
.dashboard-hero-main{
  position:relative;
  overflow:hidden;
  border-radius:28px;
  padding:34px 34px;
  background:
    radial-gradient(circle at 82% 18%,rgba(30,204,255,.24),transparent 30%),
    radial-gradient(circle at 72% 90%,rgba(124,44,255,.24),transparent 30%),
    linear-gradient(135deg,#08153d 0%,#0b1744 58%,#142466 100%);
  color:#fff;
  box-shadow:0 24px 70px rgba(8,18,55,.18);
}
.dashboard-hero-main h2{font-size:36px;line-height:1.02;letter-spacing:-.06em;max-width:820px;margin:10px 0 14px}
.dashboard-hero-main p{max-width:760px;color:#d5def7;font-size:15px;line-height:1.6}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  color:#dce7ff;
  background:rgba(255,255,255,.06);
  font-size:12px;
  font-weight:850;
}
.dashboard-hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}
.dashboard-live-card{
  border:1px solid #e8edf9;
  border-radius:28px;
  background:#fff;
  padding:22px;
  box-shadow:0 14px 36px rgba(23,40,93,.055);
  min-width:0;
}
.dashboard-live-head{display:flex;justify-content:space-between;gap:10px;color:#7281a7;font-weight:800;margin-bottom:16px}
.dashboard-live-head b{color:#182553;font-size:18px}
.dashboard-live-metric{display:flex;align-items:flex-end;gap:10px;margin-bottom:12px}
.dashboard-live-metric strong{font-size:56px;line-height:.9;letter-spacing:-.07em;color:#121d48}
.dashboard-live-metric span{color:#6f7ea6;font-weight:800;margin-bottom:7px}
.dashboard-live-list{display:flex;flex-direction:column;gap:9px}
.dashboard-today-job{
  text-align:left;
  border:1px solid #edf2fc;
  background:#fbfcff;
  border-radius:15px;
  padding:12px;
}
.dashboard-today-job b{display:block;color:#172552;margin-bottom:4px}
.dashboard-today-job span{display:block;color:#6e7da5;font-size:12px;font-weight:750}
.dashboard-kpi-row{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
.dashboard-kpi-row.compact{margin-bottom:18px}
.premium-kpi{
  min-height:132px;
  padding:18px;
  overflow:hidden;
  position:relative;
}
.premium-kpi:before{
  content:"";
  position:absolute;
  right:-30px;
  top:-34px;
  width:126px;
  height:126px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(36,107,255,.13),transparent 68%);
}
.premium-kpi-icon{
  width:38px;height:38px;
  display:grid;place-items:center;
  border-radius:13px;
  background:linear-gradient(135deg,#eef7ff,#f6efff);
  color:#245fff;
  margin-bottom:16px;
}
.premium-kpi-icon svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.premium-kpi small{display:block;color:#7482a8;font-weight:850;text-transform:uppercase;letter-spacing:.06em;font-size:11px}
.premium-kpi strong{display:block;color:#111b46;font-size:30px;letter-spacing:-.06em;line-height:1.05;margin:8px 0}
.premium-kpi span{display:block;color:#246bff;font-weight:850;font-size:12px}
.premium-kpi.danger .premium-kpi-icon{background:#fff0f3;color:#ea5b77}
.premium-kpi.danger span{color:#ea5b77}
.dashboard-columns{
  display:grid;
  grid-template-columns:minmax(0,1.42fr) minmax(360px,.68fr);
  gap:18px;
  align-items:start;
}
.dashboard-side-stack{display:flex;flex-direction:column;gap:18px}
.dashboard-card-large,.dashboard-alert-card,.dashboard-upcoming-card,.dashboard-mobile-section{padding:20px}
.alert-list.mini{max-height:none}
.premium-mini-job{
  width:100%;
  display:grid;
  grid-template-columns:14px 1fr auto;
  gap:10px;
  align-items:center;
  text-align:left;
  border:1px solid #edf2fc;
  background:linear-gradient(180deg,#fff,#fbfcff);
  border-radius:15px;
  padding:12px;
  margin-bottom:9px;
}
.premium-mini-job b{display:block;color:#182553;margin-bottom:3px}
.premium-mini-job small{display:block;color:#6e7da5;font-weight:700}
.job-dot{width:10px;height:10px;border-radius:50%;background:#246bff;display:block}
.job-dot.green{background:#31c981}.job-dot.yellow{background:#f2bd32}.job-dot.blue{background:#246bff}.job-dot.purple{background:#7b22ff}.job-dot.red{background:#ea5b77}
.jobs-premium-page{display:flex;flex-direction:column;gap:16px}
.jobs-summary-row{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
}
.jobs-summary-card{
  border:1px solid #e8edf9;
  border-radius:18px;
  background:#fff;
  padding:16px;
  box-shadow:0 10px 24px rgba(23,40,93,.04);
}
.jobs-summary-card small{display:block;color:#7281a8;text-transform:uppercase;letter-spacing:.07em;font-size:11px;font-weight:850}
.jobs-summary-card b{display:block;font-size:28px;color:#111b46;letter-spacing:-.06em;margin:8px 0}
.jobs-summary-card span{display:block;color:#246bff;font-size:12px;font-weight:850}
.jobs-summary-card.active{background:linear-gradient(135deg,#f5fbff,#f7f3ff);border-color:#dce6ff}
.premium-kanban{
  display:grid;
  grid-template-columns:repeat(5,minmax(240px,1fr));
  gap:14px;
  overflow:auto;
  padding-bottom:4px;
}
.premium-kanban-col{
  min-width:240px;
  background:rgba(255,255,255,.78);
  border:1px solid #e8edf9;
  border-radius:22px;
  padding:14px;
  box-shadow:0 10px 28px rgba(23,40,93,.035);
}
.kanban-col-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.kanban-col-head h3{margin:0;color:#182553;font-size:16px}
.kanban-col-head span{display:grid;place-items:center;width:28px;height:28px;border-radius:10px;background:#eef5ff;color:#245fff;font-weight:900}
.kanban-dropzone{display:flex;flex-direction:column;gap:12px}
.premium-job-card{
  border:1px solid #e8edf9;
  border-radius:18px;
  background:#fff;
  padding:14px;
  box-shadow:0 12px 26px rgba(23,40,93,.055);
  cursor:pointer;
  transition:.16s ease;
}
.premium-job-card:hover{transform:translateY(-2px);box-shadow:0 18px 36px rgba(23,40,93,.10)}
.premium-job-card.green{background:linear-gradient(180deg,#ffffff,#f4fffb)}
.premium-job-card.yellow{background:linear-gradient(180deg,#ffffff,#fffaf0)}
.premium-job-card.blue{background:linear-gradient(180deg,#ffffff,#f4f8ff)}
.premium-job-card.purple{background:linear-gradient(180deg,#ffffff,#fbf7ff)}
.job-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.premium-job-card h3{margin:0 0 4px;color:#121d48;font-size:16px;letter-spacing:-.03em}
.premium-job-card p{margin:0 0 12px;color:#6e7da5;font-weight:700;font-size:12px}
.job-card-meta{display:flex;justify-content:space-between;gap:10px;margin-bottom:10px;color:#20305f;font-weight:850;font-size:12px}
.job-card-address{color:#6e7da5;font-weight:700;font-size:12px;line-height:1.35}
.job-card-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:14px}
.crew-stack{display:flex}
.crew-stack .avatar{width:28px;height:28px;font-size:10px;border:2px solid #fff;margin-left:-7px}
.crew-stack .avatar:first-child{margin-left:0}
.job-card-bottom b{color:#20305f;font-size:12px}
.equipment-premium-page{display:flex;flex-direction:column}
.equipment-card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:14px;
}
.equipment-card{
  display:grid;
  grid-template-columns:46px 1fr auto;
  gap:12px;
  align-items:start;
  border:1px solid #e8edf9;
  border-radius:20px;
  background:linear-gradient(180deg,#fff,#fbfcff);
  padding:16px;
  box-shadow:0 10px 26px rgba(23,40,93,.04);
}
.equipment-card-icon{
  width:46px;height:46px;
  border-radius:15px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,#eef7ff,#f7efff);
  color:#245fff;
}
.equipment-card-icon svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.equipment-card-body h3{margin:0 0 5px;color:#182553;font-size:15px}
.equipment-card-body p{margin:0;color:#6e7da5;font-size:12px;font-weight:700}
.equipment-card-status{grid-column:3}
.equipment-card-footer{
  grid-column:1/-1;
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding-top:12px;
  border-top:1px solid #edf2fc;
  color:#6e7da5;
  font-size:12px;
  font-weight:750;
}
.equipment-card-footer b{color:#246bff}
.table-wrap{
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72);
}
.table th{
  background:#f8faff!important;
  color:#7584aa!important;
}
.table tr:hover td{
  background:#f8faff!important;
}
.form-grid input,
.form-grid select,
.form-grid textarea{
  min-height:43px;
}
.card{
  transition:box-shadow .16s ease, transform .16s ease;
}
.card:hover{
  box-shadow:0 16px 36px rgba(23,40,93,.06);
}
@media(max-width:1320px){
  .dashboard-hero-premium,.dashboard-columns{grid-template-columns:1fr}
  .jobs-summary-row{grid-template-columns:repeat(3,minmax(0,1fr))}
  .premium-kanban{grid-template-columns:repeat(5,260px)}
}
@media(max-width:780px){
  .dashboard-kpi-row,.dashboard-kpi-row.compact{grid-template-columns:1fr}
  .jobs-summary-row{grid-template-columns:1fr 1fr}
  .dashboard-hero-main{padding:24px}
  .dashboard-hero-main h2{font-size:28px}
}


/* ===== v13: multiday jobs + fixed detail terms ===== */
.detail-term-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.term-card{
  border:1px solid #e8edf9;
  border-radius:14px;
  background:linear-gradient(180deg,#fff,#fbfcff);
  padding:12px;
  min-width:0;
}
.term-card.full{
  grid-column:1 / -1;
}
.term-card small{
  display:block;
  color:#7281a7;
  font-size:11px;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.05em;
  margin-bottom:6px;
}
.term-card b{
  display:block;
  color:#121d48;
  font-size:14px;
  line-height:1.2;
  white-space:normal;
  word-break:normal;
}
.term-card span{
  display:block;
  color:#246bff;
  font-weight:850;
  font-size:12px;
  margin-top:4px;
}
.job-card.multi-day{
  border-width:1.6px;
  box-shadow:0 12px 28px rgba(36,107,255,.10);
}
.job-card-mini-head{
  display:flex;
  gap:6px;
  align-items:flex-start;
  justify-content:space-between;
}
.job-card-mini-head strong{
  min-width:0;
  flex:1;
}
.multi-badge{
  display:inline-flex;
  align-items:center;
  padding:3px 6px;
  border-radius:999px;
  background:rgba(36,107,255,.10);
  color:#245fff;
  font-size:9px;
  font-weight:900;
  white-space:nowrap;
}
.detail-panel .field .select{
  min-width:0;
}
@media(max-width:760px){
  .detail-term-grid{
    grid-template-columns:1fr;
  }
  .term-card.full{
    grid-column:auto;
  }
}


/* ===== v14: operational job suite ===== */
.job-ops-summary{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:10px;
  margin:16px 0;
}
.job-ops-summary > div,
.job-cost-grid > div{
  border:1px solid #e8edf9;
  border-radius:15px;
  background:linear-gradient(180deg,#fff,#fbfcff);
  padding:12px;
}
.job-ops-summary small,
.job-cost-grid small{
  display:block;
  color:#7281a7;
  font-size:10.5px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  margin-bottom:6px;
}
.job-ops-summary b,
.job-cost-grid b{
  display:block;
  color:#121d48;
  font-size:18px;
  letter-spacing:-.04em;
}
.job-ops-summary span,
.job-cost-grid span{
  display:block;
  color:#246bff;
  font-size:12px;
  font-weight:850;
  margin-top:5px;
}
.negative{color:#ea5b77!important}
.progressbar{
  height:8px;
  border-radius:999px;
  overflow:hidden;
  background:#edf3ff;
  margin:8px 0 5px;
}
.progressbar span{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#16c9ff,#246bff 56%,#7b22ff);
}
.job-cost-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.job-checklist{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.job-check-row{
  display:grid;
  grid-template-columns:24px 1fr auto;
  gap:10px;
  align-items:center;
  text-align:left;
  border:1px solid #e8edf9;
  border-radius:13px;
  background:#fff;
  padding:10px;
  color:#182553;
}
.job-check-row span{
  width:22px;height:22px;
  display:grid;place-items:center;
  border-radius:50%;
  border:1px solid #d9e6ff;
  color:#246bff;
  font-weight:900;
  background:#f4f8ff;
}
.job-check-row b{
  font-size:13px;
}
.job-check-row small{
  color:#7281a7;
  font-size:11px;
  font-weight:750;
}
.job-check-row.done{
  background:linear-gradient(180deg,#f7fffb,#fff);
  border-color:#ccefdc;
}
.job-check-row.done span{
  background:#24c06f;
  color:#fff;
  border-color:#24c06f;
}
.inline-add-form{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  margin-top:9px;
}
.inline-add-form select{
  min-width:150px;
}
.inline-add-form:has(select){
  grid-template-columns:minmax(0,1fr) minmax(130px,160px) auto;
}
.photo-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.photo-tile{
  border:1px solid #e8edf9;
  border-radius:14px;
  background:#fbfcff;
  padding:10px;
  min-width:0;
}
.photo-placeholder{
  height:62px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#eef7ff,#f7efff);
  margin-bottom:8px;
  font-size:22px;
}
.photo-tile b{
  display:block;
  color:#182553;
  font-size:12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.photo-tile small{
  color:#7281a7;
  font-size:10px;
  font-weight:750;
}
.job-time-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.job-time-row{
  border:1px solid #e8edf9;
  border-radius:13px;
  background:#fbfcff;
  padding:10px;
}
.job-time-row b{
  display:block;
  color:#182553;
  font-size:13px;
}
.job-time-row span{
  display:block;
  color:#7281a7;
  font-size:11px;
  font-weight:750;
  margin-top:3px;
}
.note-log-item{
  border-left:3px solid #246bff;
  padding:8px 10px;
  margin-top:8px;
  background:#fbfcff;
  border-radius:0 12px 12px 0;
}
.note-log-item b{font-size:12px;color:#182553}
.note-log-item small{display:block;color:#7281a7;font-size:10px;font-weight:750}
.note-log-item p{margin:5px 0 0;color:#22325d;font-size:12px;line-height:1.4}
.job-card-progress{
  margin-top:12px;
}
.job-card-progress small{
  display:block;
  color:#6e7da5;
  font-weight:800;
  font-size:11px;
  margin-top:5px;
}
@media(max-width:760px){
  .job-ops-summary,
  .job-cost-grid,
  .photo-grid,
  .inline-add-form,
  .inline-add-form:has(select){
    grid-template-columns:1fr;
  }
}

/* ===== v24: real mobile responsiveness / drawer navigation ===== */
@media (max-width: 820px){
  html,body{
    width:100%;
    max-width:100%;
    overflow-x:hidden!important;
    background:#ffffff!important;
    -webkit-text-size-adjust:100%;
  }
  body.mobile-menu-open{
    overflow:hidden!important;
  }
  .app-shell{
    display:block!important;
    grid-template-columns:1fr!important;
    width:100%!important;
    max-width:100%!important;
    min-height:100dvh!important;
    background:linear-gradient(180deg,#ffffff 0%,#f8faff 100%)!important;
  }
  .mobile-appbar{
    position:fixed;
    top:0;
    left:0;
    right:0;
    height:calc(64px + env(safe-area-inset-top,0px));
    padding:calc(10px + env(safe-area-inset-top,0px)) 14px 10px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    z-index:1200;
    background:rgba(255,255,255,.92);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    border-bottom:1px solid #e8edf9;
    box-shadow:0 12px 32px rgba(14,30,74,.08);
  }
  .mobile-appbar-brand{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
  }
  .mobile-appbar-brand img{
    display:block;
    width:138px;
    height:auto;
    object-fit:contain;
  }
  .mobile-appbar-title{
    display:none;
    color:#111b46;
    font-weight:900;
    letter-spacing:-.04em;
    white-space:nowrap;
  }
  .mobile-menu-toggle,
  .mobile-appbar-action{
    width:44px;
    height:44px;
    border:1px solid #e4ebfb;
    border-radius:15px;
    background:#fff;
    color:#0d1848;
    display:grid;
    place-items:center;
    flex:none;
    box-shadow:0 8px 22px rgba(23,40,93,.08);
  }
  .mobile-menu-toggle svg,
  .mobile-appbar-action svg{
    width:22px;
    height:22px;
    stroke:currentColor;
    fill:none;
    stroke-width:2.2;
    stroke-linecap:round;
    stroke-linejoin:round;
  }
  .mobile-dim{
    position:fixed;
    inset:0;
    background:rgba(4,10,31,.42);
    z-index:998;
    opacity:0;
    pointer-events:none;
    transition:opacity .18s ease;
  }
  body.mobile-menu-open .mobile-dim{
    opacity:1;
    pointer-events:auto;
  }
  .sidebar{
    position:fixed!important;
    left:0!important;
    top:0!important;
    bottom:0!important;
    width:min(84vw,336px)!important;
    max-width:min(84vw,336px)!important;
    height:100dvh!important;
    min-height:100dvh!important;
    overflow-y:auto!important;
    padding:calc(22px + env(safe-area-inset-top,0px)) 16px calc(22px + env(safe-area-inset-bottom,0px))!important;
    border-radius:0 28px 28px 0!important;
    transform:translateX(-104%)!important;
    transition:transform .24s cubic-bezier(.22,.61,.36,1)!important;
    z-index:1100!important;
    box-shadow:22px 0 60px rgba(5,11,35,.28)!important;
  }
  body.mobile-menu-open .sidebar{
    transform:translateX(0)!important;
  }
  .brand{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    min-height:58px!important;
    padding:0 6px 20px!important;
  }
  .brand-logo-exact{
    width:178px!important;
    max-width:178px!important;
  }
  .nav{
    display:flex!important;
    flex-direction:column!important;
    gap:8px!important;
    width:100%!important;
  }
  .nav button{
    width:100%!important;
    min-height:50px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:12px!important;
    padding:12px 13px!important;
    border-radius:16px!important;
    white-space:normal!important;
    overflow:visible!important;
    text-align:left!important;
    line-height:1.22!important;
    font-size:14px!important;
  }
  .nav button .nav-icon,
  .nav-icon{
    width:28px!important;
    height:28px!important;
    min-width:28px!important;
    display:grid!important;
    place-items:center!important;
  }
  .nav-icon svg{
    width:21px!important;
    height:21px!important;
  }
  .sidebar-footer{
    display:none!important;
  }
  .main{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    padding:calc(82px + env(safe-area-inset-top,0px)) 16px 88px!important;
    overflow-x:hidden!important;
    background:linear-gradient(180deg,#ffffff 0%,#fbfcff 48%,#f6f8fd 100%)!important;
  }
  .topbar{
    position:relative!important;
    top:auto!important;
    min-height:0!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:14px!important;
    margin:0 0 16px!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
  }
  .topbar-title,
  .topbar-title h1{
    width:100%!important;
  }
  .topbar h1{
    font-size:30px!important;
    line-height:1.05!important;
    letter-spacing:-.06em!important;
  }
  .top-actions{
    width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(4,46px)!important;
    gap:12px!important;
    align-items:center!important;
    justify-content:start!important;
    position:relative!important;
  }
  .top-icon{
    width:46px!important;
    height:46px!important;
    border-radius:15px!important;
    background:#fff!important;
    border:1px solid #e7edf9!important;
    box-shadow:0 9px 22px rgba(23,40,93,.07)!important;
  }
  .user-switch{
    grid-column:1 / -1!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:4px 0 0!important;
    padding:8px 10px!important;
    border-radius:18px!important;
    background:#fff!important;
    border:1px solid #e7edf9!important;
    box-shadow:0 9px 22px rgba(23,40,93,.06)!important;
  }
  .user-copy{
    min-width:0!important;
  }
  .user-copy b,
  .user-copy small{
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  .top-dropdown{
    position:fixed!important;
    left:12px!important;
    right:12px!important;
    top:calc(76px + env(safe-area-inset-top,0px))!important;
    width:auto!important;
    max-width:none!important;
    z-index:1300!important;
    border-radius:20px!important;
  }
  #page,
  .card,
  .calendar-card,
  .detail-panel,
  .dashboard-hero-main,
  .dashboard-live-card,
  .premium-kpi,
  .employee-shell,
  .employee-panel,
  .job-card-prod{
    max-width:100%!important;
  }
  .card,
  .calendar-card,
  .detail-panel{
    border-radius:22px!important;
  }
  .dashboard-premium,
  .dashboard-columns,
  .dashboard-side-stack{
    gap:14px!important;
  }
  .dashboard-hero-premium,
  .dashboard-columns,
  .calendar-layout,
  .leaves-layout,
  .documents-layout,
  .payroll-charts-grid,
  .reports-charts-grid,
  .employee-body-grid,
  .employee-hero-top,
  .jobs-layout{
    display:grid!important;
    grid-template-columns:1fr!important;
  }
  .dashboard-hero-main{
    padding:24px 20px!important;
    border-radius:24px!important;
  }
  .dashboard-hero-main h2{
    font-size:30px!important;
    line-height:1.05!important;
  }
  .dashboard-hero-main p{
    font-size:14px!important;
  }
  .dashboard-hero-actions,
  .section-actions,
  .controls{
    display:grid!important;
    grid-template-columns:1fr!important;
    width:100%!important;
    gap:10px!important;
  }
  .dashboard-hero-actions .btn,
  .section-actions .btn,
  .controls .btn,
  .btn.primary,
  .btn.dark{
    width:100%!important;
    justify-content:center!important;
  }
  .dashboard-kpi-row,
  .dashboard-kpi-row.compact,
  .grid.two,
  .grid.three,
  .grid.four,
  .form-grid,
  .job-ops-summary,
  .job-cost-grid,
  .time-summary-grid,
  .leave-summary-grid,
  .employee-kpis-grid,
  .employee-hero-meta-grid,
  .jobs-summary-row,
  .job-meta-grid,
  .job-finance-grid{
    grid-template-columns:1fr!important;
  }
  .premium-kpi,
  .kpi{
    min-height:auto!important;
    padding:16px!important;
  }
  .premium-kpi strong,
  .kpi strong{
    font-size:26px!important;
  }
  .calendar-layout{
    gap:14px!important;
  }
  .calendar-head{
    height:auto!important;
    min-height:0!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
    padding:14px!important;
  }
  .calendar-nav,
  .calendar-mode-row,
  .calendar-actions{
    width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;
  }
  .calendar-actions .select,
  .date-range,
  .segmented,
  .calendar-actions .btn,
  .calendar-nav .btn{
    width:100%!important;
    min-width:0!important;
  }
  .segmented{
    grid-column:1 / -1!important;
    display:grid!important;
    grid-template-columns:repeat(3,1fr)!important;
  }
  .segmented button{
    min-width:0!important;
    padding:8px 6px!important;
  }
  .week-grid{
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch!important;
    grid-template-columns:56px repeat(7,136px)!important;
    height:640px!important;
  }
  .day-header,
  .time-header{
    height:52px!important;
    font-size:12px!important;
  }
  .time-cell,
  .day-cell{
    height:64px!important;
  }
  .job-card{
    font-size:11px!important;
    padding:9px!important;
    border-radius:12px!important;
  }
  .detail-panel{
    position:relative!important;
    top:auto!important;
    max-height:none!important;
    padding:16px!important;
    overflow:visible!important;
  }
  .detail-title{
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:10px!important;
  }
  .tabs{
    overflow-x:auto!important;
    white-space:nowrap!important;
    gap:18px!important;
    -webkit-overflow-scrolling:touch!important;
  }
  .people-list,
  .file-grid,
  .photo-grid,
  .doc-folder-grid,
  .equipment-card-grid,
  .employee-left-col,
  .employee-charts-grid,
  .premium-bars-grid,
  .premium-line-bottom{
    grid-template-columns:1fr!important;
  }
  .employee-hero-photo{
    width:96px!important;
    height:96px!important;
  }
  .employee-hero-copy h2{
    font-size:28px!important;
  }
  .employee-main-tabs,
  .employee-subtabs,
  .employee-switcher{
    overflow-x:auto!important;
    flex-wrap:nowrap!important;
    padding-bottom:6px!important;
    -webkit-overflow-scrolling:touch!important;
  }
  .premium-kanban{
    display:grid!important;
    grid-template-columns:1fr!important;
    overflow:visible!important;
  }
  .premium-kanban-col{
    min-width:0!important;
  }
  .table-wrap{
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch!important;
    border-radius:18px!important;
  }
  .table{
    min-width:720px!important;
  }
  .inline-add-form,
  .inline-add-form:has(select){
    grid-template-columns:1fr!important;
  }
  .modal-card{
    width:calc(100vw - 24px)!important;
    max-width:calc(100vw - 24px)!important;
    max-height:calc(100dvh - 40px)!important;
    border-radius:22px!important;
    margin:20px 12px!important;
  }
  .modal-body{
    max-height:calc(100dvh - 150px)!important;
    overflow:auto!important;
  }
}

@media (max-width: 430px){
  .mobile-appbar-brand img{width:126px!important}
  .topbar h1{font-size:28px!important}
  .dashboard-hero-main h2{font-size:27px!important}
  .main{padding-left:14px!important;padding-right:14px!important}
  .week-grid{grid-template-columns:52px repeat(7,128px)!important}
}
