:root{
  --bg:#f5f7fb;--panel:#fff;--text:#142033;--muted:#6f7b8f;--line:#dfe5ee;
  --accent:#1f6feb;--accent2:#124b9b;--ok:#1f9d63;--danger:#c63c3c;
  --shadow:0 10px 30px rgba(16,32,58,.08);--radius:16px;
}
*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}
button,input,select,textarea{font:inherit}.app-shell{display:grid;grid-template-columns:260px 1fr;min-height:100vh;background:var(--bg)}
.sidebar{background:#0f1b2d;color:#fff;padding:22px 18px;display:flex;flex-direction:column;gap:28px}.brand{display:flex;align-items:center;gap:12px}
.logo{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,#2b7cff,#65a1ff);display:grid;place-items:center;font-weight:800}.brand strong{display:block}.brand span{display:block;color:#9aabc4;font-size:12px;margin-top:2px}
nav{display:flex;flex-direction:column;gap:8px}.nav-btn{border:0;background:transparent;color:#c7d2e4;text-align:left;padding:11px 12px;border-radius:10px;cursor:pointer}.nav-btn:hover,.nav-btn.active{background:#1a2a42;color:#fff}
.sidebar-footer{margin-top:auto;display:grid;gap:8px}.sidebar-footer label{font-size:11px;color:#93a3ba;text-transform:uppercase;letter-spacing:.08em}.sidebar-footer select{width:100%;background:#14243a;color:#fff;border:1px solid #2d405d;border-radius:10px;padding:10px}
.main{padding:28px;min-width:0;background:var(--bg)}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.eyebrow{margin:0;color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.08em}.topbar h1{margin:4px 0 0;font-size:30px}
.top-actions{display:flex;gap:10px}.btn{border:0;border-radius:10px;padding:10px 14px;font-weight:700;cursor:pointer}.btn.primary{background:var(--accent);color:#fff}.btn.primary:hover{background:var(--accent2)}.btn.ghost{background:#fff;border:1px solid var(--line);color:var(--text)}.btn.danger{background:#fff1f1;color:var(--danger);border:1px solid #f0caca}
.view{display:none}.view.active{display:block}.grid{display:grid;gap:16px}.grid.cards{grid-template-columns:repeat(4,minmax(0,1fr))}.card{background:var(--panel);border:1px solid #e6ebf2;border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}
.metric span{display:block;color:var(--muted);font-size:13px}.metric strong{display:block;font-size:28px;margin-top:7px}.metric small{display:block;margin-top:7px;color:var(--muted)}
.section-title{display:flex;justify-content:space-between;align-items:center;margin:26px 0 12px}.section-title h2{margin:0;font-size:19px}
.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}table{border-collapse:collapse;width:100%;min-width:760px}th,td{padding:12px 14px;border-bottom:1px solid #edf0f5;text-align:left;vertical-align:top}th{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;background:#fafbfe}tr:last-child td{border-bottom:0}
.badge{display:inline-flex;align-items:center;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:700}.badge.ok{background:#e9f7f0;color:var(--ok)}.badge.warn{background:#fff6e5;color:#a26500}.badge.danger{background:#fff0f0;color:var(--danger)}.badge.info{background:#eaf2ff;color:var(--accent2)}
.form-card{max-width:900px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field{display:grid;gap:6px}.field.full{grid-column:1/-1}.field label{font-size:12px;font-weight:700;color:#4c5b70}.field input,.field select,.field textarea{border:1px solid #ccd6e4;border-radius:10px;padding:10px 11px;background:#fff;color:var(--text)}.field textarea{min-height:110px;resize:vertical}
.check-row{display:flex;gap:18px;flex-wrap:wrap}.check{display:flex;align-items:center;gap:7px}.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:12px}.toolbar input,.toolbar select{padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:#fff}
.schedule-grid{display:grid;grid-template-columns:repeat(5,minmax(170px,1fr)) repeat(2,minmax(115px,.68fr));gap:10px;overflow:auto;padding-bottom:4px}.day-col{background:#f8fafc;border:1px solid var(--line);border-radius:14px;padding:10px;min-height:260px}.day-head{font-weight:800;margin-bottom:8px}.job{background:#fff;border:1px solid #dfe6f0;border-left:4px solid var(--accent);padding:9px;border-radius:10px;margin-bottom:8px}.job small{display:block;color:var(--muted);margin-top:4px}
.empty{padding:30px;color:var(--muted);text-align:center}.toast{position:fixed;right:24px;bottom:24px;background:#10233f;color:#fff;padding:12px 16px;border-radius:10px;opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translateY(0)}.muted{color:var(--muted)}.actions{display:flex;gap:7px;flex-wrap:wrap}.link-btn{border:0;background:transparent;color:var(--accent);font-weight:700;cursor:pointer;padding:0}.hidden{display:none!important}
.notice{border:1px solid #cfe0ff;background:#eef5ff;border-radius:12px;padding:12px 14px;color:#28476f;margin-bottom:14px}.split{display:grid;grid-template-columns:1.25fr .75fr;gap:16px}.stat-list{display:grid;gap:10px}.stat-line{display:flex;justify-content:space-between;gap:20px;padding:10px 0;border-bottom:1px solid #eef1f5}.stat-line:last-child{border-bottom:0}
@media(max-width:1000px){.app-shell{grid-template-columns:1fr}.sidebar{position:sticky;top:0;z-index:10;flex-direction:row;align-items:center;overflow:auto}.sidebar nav{flex-direction:row}.sidebar-footer{display:none}.brand span{display:none}.main{padding:18px}.grid.cards{grid-template-columns:repeat(2,1fr)}.split{grid-template-columns:1fr}}
@media(max-width:680px){.topbar{align-items:flex-start;gap:12px}.top-actions{flex-direction:column}.grid.cards{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.sidebar{padding:10px}.brand strong{display:none}.nav-btn{white-space:nowrap;padding:9px 10px}.main{padding:14px}.topbar h1{font-size:24px}}


.schedule-toolbar{
  display:flex;justify-content:space-between;align-items:center;gap:14px;
  margin:0 0 14px;padding:14px 16px;background:#fff;border:1px solid var(--line);
  border-radius:14px;box-shadow:var(--shadow)
}
.schedule-toolbar strong{display:block;font-size:16px}
.schedule-toolbar span{display:block;color:var(--muted);font-size:12px;margin-top:3px}
.weeks-list{display:grid;gap:18px}
.week-block{scroll-margin-top:16px}
.week-title{display:flex;align-items:center;gap:10px;margin:0 0 8px;padding:0 2px}
.week-title strong{font-size:15px}
.week-block.current-week{
  background:#edf8f0;
  border:1px solid #a9d8b7;
  border-radius:16px;
  padding:10px;
  box-shadow:0 8px 22px rgba(31,157,99,.10);
}
.week-block.current-week .week-title{padding:0 3px}
.week-block.current-week .week-title strong{color:#176a45}
.week-block.current-week .day-col{
  background:#f4fbf6;
  border-color:#b9dfc5;
}
.week-block.current-week .day-col.today{
  background:#eef9f1;
  border:2px solid var(--accent);
  box-shadow:0 0 0 3px rgba(31,111,235,.08);
}
.schedule-grid{display:grid;grid-template-columns:repeat(5,minmax(170px,1fr)) repeat(2,minmax(115px,.68fr));gap:10px;overflow-x:auto;padding-bottom:4px}
.day-col{background:#f8fafc;border:1px solid var(--line);border-radius:14px;padding:10px;min-height:220px}
.day-col.today{border:2px solid var(--accent);background:#f5f9ff}
.day-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.day-head span{text-transform:capitalize}
.day-head strong{font-size:12px;color:var(--muted)}
.no-jobs{font-size:12px;padding-top:4px}
@media(max-width:1000px){
  .schedule-toolbar{align-items:flex-start}
  .week-block .schedule-grid{grid-template-columns:repeat(5,minmax(160px,1fr)) repeat(2,minmax(110px,.68fr))}
}
@media(max-width:680px){
  .schedule-toolbar{flex-direction:column}
  .week-block{background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px}
  .week-block .schedule-grid{display:flex;overflow-x:auto;gap:8px;scroll-snap-type:x proximity}
  .week-block .day-col{min-width:82%;scroll-snap-align:start}
}


.module-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}
.module-header h2{margin:0 0 4px;font-size:20px}
.module-header p{margin:0;color:var(--muted);font-size:13px}
.form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:4px}
.km-summary{padding:10px 12px;border-radius:10px;background:#f5f8fc;border:1px solid var(--line);font-weight:700}
@media(max-width:680px){.module-header{flex-direction:column}.form-actions{justify-content:stretch}.form-actions .btn{flex:1}}


.day-date-actions{display:flex;align-items:center;gap:7px}
.day-add{width:27px;height:27px;border-radius:8px;border:1px solid #cdd8e7;background:#fff;color:var(--accent);font-size:20px;font-weight:800;line-height:1;display:grid;place-items:center;cursor:pointer;padding:0}
.day-add:hover{background:#eaf2ff;border-color:#a8c2ee}
.task-dialog{border:0;padding:0;border-radius:18px;width:min(720px,calc(100vw - 28px));max-height:calc(100vh - 32px);box-shadow:0 28px 80px rgba(12,25,46,.25);overflow:auto}
.task-dialog::backdrop{background:rgba(8,18,33,.55)}
.task-dialog-card{padding:20px;background:#fff}
.task-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:18px}
.task-dialog-head h2{margin:3px 0 0;font-size:22px}
.dialog-close{border:0;background:#f1f4f8;width:36px;height:36px;border-radius:10px;font-size:24px;line-height:1;cursor:pointer;color:#44546b}
.worker-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border:1px solid #ccd6e4;border-radius:10px;padding:10px;background:#fff}
.worker-checks label{display:flex;align-items:center;gap:7px;font-size:13px;color:var(--text)}
.dialog-actions{display:flex;justify-content:flex-end;gap:10px}
@media(max-width:680px){.worker-checks{grid-template-columns:1fr}.task-dialog-card{padding:15px}.dialog-actions{flex-direction:column-reverse}.dialog-actions .btn{width:100%}}


.login-screen{
  min-height:100vh;display:grid;place-items:center;padding:24px;
}
.login-card{
  width:min(440px,100%);background:rgba(255,255,255,.92);border-radius:22px;padding:30px;
  backdrop-filter:blur(8px);box-shadow:0 24px 70px rgba(0,0,0,.28)
}
.login-brand{display:flex;align-items:center;gap:13px;margin-bottom:26px}
.login-brand .logo{width:50px;height:50px;color:#fff}
.login-brand h1{margin:0;font-size:24px}
.login-brand p{margin:4px 0 0;color:var(--muted);font-size:13px}
.login-card .field{margin-bottom:14px}
.login-card .btn{width:100%;margin-top:6px;padding:12px 14px}
.login-error{min-height:20px;color:var(--danger);font-size:13px;font-weight:700;margin-top:10px}
.login-help{margin-top:18px;padding-top:16px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.user-chip{display:grid;gap:3px;padding:10px 11px;background:#14243a;border:1px solid #2d405d;border-radius:10px}
.user-chip strong{font-size:13px;color:#fff}
.user-chip span{font-size:11px;color:#93a3ba}
.logout-btn{width:100%;border:1px solid #40516b;background:transparent;color:#d7e2f2;border-radius:10px;padding:9px 10px;cursor:pointer}

.logout-btn:hover{background:#1a2a42}
.preview-user-select{
  min-width:205px;max-width:250px;background:#14243a;color:#fff;
  border:1px solid #40516b;border-radius:10px;padding:8px 10px;font-size:12px
}
.preview-user-select:focus{outline:2px solid rgba(101,161,255,.35);outline-offset:1px}
.preview-mode-note{
  display:grid;gap:2px;padding:9px 10px;border-radius:10px;
  background:#fff7df;border:1px solid #efd38a;color:#6f5311;font-size:10px
}
.preview-mode-note strong{font-size:12px;color:#513b08}
.preview-exit-btn{
  width:100%;border:1px solid #7ea9df;background:#eaf3ff;color:#174f91;
  border-radius:10px;padding:9px 10px;font-weight:800;cursor:pointer
}
.preview-exit-btn:hover{background:#dbeaff}
.preview-mode #appShell form input,
.preview-mode #appShell form select,
.preview-mode #appShell form textarea,
.preview-mode #appShell form button{pointer-events:none;opacity:.72}
.preview-mode #appShell .job-corner-handle,
.preview-mode #appShell .job-delete-mini{pointer-events:none;opacity:.45}
@media(max-width:760px){.preview-user-select{min-width:160px;max-width:190px}}



.login-layout{
  width:min(1160px,100%);
  display:grid;
  grid-template-columns:1.2fr .8fr;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  border-radius:28px;
  overflow:hidden;
  backdrop-filter: blur(10px);
  box-shadow:0 30px 80px rgba(0,0,0,.28);
}
.login-hero{
  position:relative;
  min-height:680px;
  background:
    linear-gradient(180deg, rgba(9,22,40,.05) 0%, rgba(9,22,40,.45) 100%),
    url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 900'>\
<defs>\
<linearGradient id='sky' x1='0' x2='0' y1='0' y2='1'>\
<stop offset='0%' stop-color='%239fd0ff'/>\
<stop offset='48%' stop-color='%23d6efff'/>\
<stop offset='100%' stop-color='%23f7fbff'/>\
</linearGradient>\
<linearGradient id='ground' x1='0' x2='0' y1='0' y2='1'>\
<stop offset='0%' stop-color='%238bb55e'/>\
<stop offset='100%' stop-color='%236a9543'/>\
</linearGradient>\
<linearGradient id='panel' x1='0' x2='1' y1='0' y2='1'>\
<stop offset='0%' stop-color='%23112a44'/>\
<stop offset='100%' stop-color='%232e5f94'/>\
</linearGradient>\
</defs>\
<rect width='1200' height='900' fill='url(%23sky)'/>\
<circle cx='930' cy='165' r='55' fill='%23ffd75b' opacity='0.95'/>\
<rect y='610' width='1200' height='290' fill='url(%23ground)'/>\
<g opacity='0.95'>\
<polygon points='120,645 315,600 390,675 188,728' fill='url(%23panel)'/>\
<polygon points='245,615 450,570 526,645 320,697' fill='url(%23panel)'/>\
<polygon points='380,585 586,540 662,615 457,668' fill='url(%23panel)'/>\
<polygon points='517,556 724,512 800,587 594,638' fill='url(%23panel)'/>\
<polygon points='654,528 862,485 938,559 732,611' fill='url(%23panel)'/>\
<polygon points='790,500 998,458 1074,530 869,582' fill='url(%23panel)'/>\
</g>\
<g stroke='%239ed1ff' stroke-width='2' opacity='0.42'>\
<path d='M150 650 L335 607'/>\
<path d='M205 635 L390 592'/>\
<path d='M260 622 L445 580'/>\
<path d='M315 609 L500 566'/>\
<path d='M372 597 L557 553'/>\
<path d='M428 585 L613 541'/>\
<path d='M484 573 L669 530'/>\
<path d='M541 561 L726 519'/>\
<path d='M598 550 L783 507'/>\
<path d='M655 539 L840 496'/>\
<path d='M713 528 L898 485'/>\
<path d='M771 517 L956 475'/>\
<path d='M829 507 L1014 466'/>\
<path d='M188 728 L120 645'/>\
<path d='M252 712 L184 628'/>\
<path d='M317 696 L248 612'/>\
<path d='M381 680 L312 596'/>\
<path d='M446 664 L376 580'/>\
<path d='M511 649 L440 564'/>\
<path d='M576 633 L504 548'/>\
<path d='M641 617 L569 533'/>\
<path d='M706 601 L634 518'/>\
<path d='M771 585 L699 503'/>\
<path d='M836 569 L764 488'/>\
<path d='M901 553 L829 473'/>\
<path d='M966 537 L894 459'/>\
</g>\
</svg>");
  background-size:cover;
  background-position:center;
  display:flex;
  align-items:flex-end;
  padding:34px;
}
.hero-overlay{
  position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(12,22,36,.12) 0%, rgba(12,22,36,.64) 70%, rgba(12,22,36,.82) 100%);
}
.hero-content{
  position:relative;
  z-index:1;
  color:#fff;
  max-width:520px;
}
.hero-chip{
  display:inline-flex;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  margin-bottom:16px;
}
.login-hero h1{
  margin:0 0 12px;
  font-size:46px;
  line-height:1.05;
}
.login-hero p{
  margin:0 0 18px;
  color:rgba(255,255,255,.92);
  font-size:16px;
  line-height:1.55;
}
.hero-badges{
  display:flex;gap:10px;flex-wrap:wrap;
}
.hero-badges span{
  padding:9px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.15);
  font-size:13px;
  font-weight:700;
}
.login-card{
  border-radius:0;
  box-shadow:none;
  width:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.sidebar .brand strong{
  letter-spacing:.02em;
}
.day-date-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.day-add{
  width:24px;height:24px;border-radius:999px;border:1px solid #c9d7ea;background:#fff;
  color:var(--accent2);font-weight:900;cursor:pointer;line-height:1;
}
.day-add:hover{background:#eef5ff}
@media(max-width:980px){
  .login-layout{grid-template-columns:1fr}
  .login-hero{min-height:280px}
  .login-hero h1{font-size:34px}
}
@media(max-width:680px){
  .login-screen{padding:14px}
  .login-layout{border-radius:18px}
  .login-hero{padding:22px;min-height:240px}
  .login-card{padding:22px}
}


/* Admin schedule drag & drop */
.day-col.drop-target{
  outline:2px dashed var(--accent);
  outline-offset:2px;
  background:#eef5ff;
}
.job.admin-draggable{
  cursor:grab;
  user-select:none;
  transition:transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.job.admin-draggable:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(31,111,235,.12);
}
.job.admin-draggable:active{cursor:grabbing}
.job.dragging{
  opacity:.45;
  transform:scale(.98);
}
.drag-hint{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:6px;
  font-size:11px;
  color:var(--muted);
}
.drag-handle{
  font-size:14px;
  line-height:1;
  letter-spacing:-1px;
}


/* Weather planner */
.weather-panel{
  background:#fff;border:1px solid var(--line);border-radius:16px;
  box-shadow:var(--shadow);margin-bottom:16px;overflow:hidden
}
.weather-panel-head{
  display:flex;justify-content:space-between;gap:14px;align-items:flex-start;
  padding:16px 18px;border-bottom:1px solid var(--line)
}
.weather-panel-head h2{margin:0 0 4px;font-size:18px}
.weather-panel-head p{margin:0;color:var(--muted);font-size:12px}
.weather-search{display:flex;gap:8px;flex-wrap:wrap;padding:14px 18px 0}
.weather-search input{
  flex:1;min-width:220px;border:1px solid #ccd6e4;border-radius:10px;padding:10px 11px
}
.weather-results{
  display:grid;gap:6px;padding:8px 18px 0
}
.weather-result{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:#fafcff
}
.weather-result small{color:var(--muted)}
.weather-cities{
  display:flex;gap:8px;overflow-x:auto;padding:14px 18px 10px
}
.weather-city{
  border:1px solid var(--line);background:#fff;border-radius:999px;
  padding:8px 12px;white-space:nowrap;cursor:pointer;font-weight:700;color:#42516a
}
.weather-city.active{background:#10233f;color:#fff;border-color:#10233f}
.weather-city .remove-city{
  margin-left:7px;border:0;background:transparent;color:inherit;cursor:pointer;font-weight:900;padding:0
}
.weather-status{padding:0 18px 10px;color:var(--muted);font-size:12px}
.weather-days{
  display:flex;gap:9px;overflow-x:auto;padding:4px 18px 18px;scroll-snap-type:x proximity
}
.weather-day{
  min-width:132px;border:1px solid var(--line);border-radius:13px;padding:11px;
  background:#f9fbfe;scroll-snap-align:start
}
.weather-day.rain-risk{background:#f2f7ff;border-color:#cbdcf8}
.weather-date{font-size:11px;color:var(--muted);text-transform:uppercase;font-weight:700}
.weather-icon{font-size:26px;margin:7px 0}
.weather-temp{font-size:16px;font-weight:800}
.weather-meta{display:grid;gap:4px;margin-top:8px;font-size:11px;color:#536278}
.weather-meta strong{color:#24354f}
.weather-warning{
  margin-top:7px;padding:5px 7px;border-radius:8px;background:#fff4dd;color:#9a6000;
  font-size:10px;font-weight:800
}
.weather-credit{
  padding:0 18px 14px;color:var(--muted);font-size:10px
}
.weather-credit a{color:var(--accent)}
@media(max-width:680px){
  .weather-panel-head{flex-direction:column}
  .weather-search{flex-direction:column}
  .weather-search input{min-width:0;width:100%}
  .weather-day{min-width:125px}
}


/* Unscheduled task bucket */
.todo-bucket{
  background:#fff;border:1px solid var(--line);border-radius:16px;
  box-shadow:var(--shadow);margin-bottom:16px;overflow:hidden
}
.todo-bucket-head{
  display:flex;justify-content:space-between;align-items:flex-start;gap:14px;
  padding:16px 18px;border-bottom:1px solid var(--line)
}
.todo-bucket-head h2{margin:0 0 4px;font-size:18px}
.todo-bucket-head p{margin:0;color:var(--muted);font-size:12px}
.todo-form{
  display:grid;grid-template-columns:1.05fr 150px 1.05fr 1.4fr 115px 145px auto;gap:10px;padding:14px 18px;
  border-bottom:1px solid var(--line)
}
.todo-form input,.todo-form textarea{
  width:100%;border:1px solid #ccd6e4;border-radius:10px;padding:10px 11px;background:#fff
}
.todo-form textarea{min-height:42px;max-height:110px;resize:vertical}
.todo-list{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:10px;padding:14px 18px 18px
}
.todo-card{
  border:1px solid var(--line);border-radius:13px;padding:12px;background:#fafcff
}
.todo-card strong{display:block;margin-bottom:6px}
.todo-card p{margin:0;color:#536278;font-size:12px;line-height:1.45;white-space:pre-wrap}
.todo-card-actions{display:flex;justify-content:flex-end;margin-top:10px}
.todo-empty{padding:18px;color:var(--muted);font-size:13px}
@media(max-width:760px){
  .todo-form{grid-template-columns:1fr}
}


/* Task bucket list v2 */
.todo-list{
  display:block;
  padding:0 18px 18px;
  overflow-x:auto;
}
/* Na užim ekranima tablica se pomiče vodoravno umjesto da se stupci odrežu */
@media(min-width:761px){
  .todo-list-head,.todo-row{min-width:1350px;box-sizing:border-box}
  /* Stupac Akcija ostaje uz desni rub i kad se tablica pomiče */
  .todo-list-head>div:last-child,.todo-row-actions{
    position:sticky;right:0;background:inherit;align-self:stretch;display:flex;align-items:center;
    margin-right:-12px;padding-right:12px;padding-left:12px;justify-content:flex-end;
    box-shadow:-10px 0 12px -10px rgba(16,35,63,.18)
  }
  .todo-list-head{background:#fff}
}
.todo-list-head{
  display:grid;
  grid-template-columns:90px minmax(120px,1fr) 120px minmax(140px,1fr) minmax(150px,1.4fr) 120px 70px 85px 130px 190px;
  gap:12px;
  padding:10px 12px;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.05em;
  border-bottom:1px solid var(--line);
}
.todo-row{
  display:grid;
  grid-template-columns:90px minmax(120px,1fr) 120px minmax(140px,1fr) minmax(150px,1.4fr) 120px 70px 85px 130px 190px;
  gap:12px;
  align-items:center;
  padding:12px;
  border-bottom:1px solid #edf0f5;
  background:#fff;
}
.todo-row:last-child{border-bottom:0}
.todo-row.admin-draggable{cursor:grab}
.todo-row.admin-draggable:hover{background:#f8fbff}
.todo-row.dragging{opacity:.72}
.todo-id{
  display:inline-flex;
  width:max-content;
  padding:4px 8px;
  border-radius:999px;
  background:#eef5ff;
  color:var(--accent2);
  font-size:11px;
  font-weight:800;
}
.todo-name{font-weight:800}
.todo-desc{font-size:12px;color:#536278;line-height:1.45;white-space:pre-wrap}
.todo-row-actions{display:flex;justify-content:flex-end;align-items:center;gap:6px}
.todo-delete-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:5px;height:28px;min-width:28px;padding:0 7px;
  border-radius:8px;border:1px solid #f0caca;background:#fff7f7;color:var(--danger);cursor:pointer;
  font-size:11px;font-weight:800;transition:background .15s ease,color .15s ease,border-color .15s ease
}
.todo-delete-btn svg{flex:none}
.todo-delete-btn span{display:none}
.todo-delete-btn:hover{background:#ffe9e9}
.todo-delete-btn.confirm{background:var(--danger);border-color:var(--danger);color:#fff}
.todo-delete-btn.confirm span{display:inline}
.todo-drag-hint{
  font-size:11px;color:var(--muted);margin-left:8px;font-weight:600
}
@media(max-width:760px){
  .todo-list-head{display:none}
  .todo-row{
    grid-template-columns:1fr;
    gap:6px;
    border:1px solid var(--line);
    border-radius:12px;
    margin-bottom:8px;
  }
  .todo-row-actions{justify-content:flex-start}
}


.todo-status{
  display:inline-flex;align-items:center;width:max-content;
  padding:5px 9px;border-radius:999px;font-size:11px;font-weight:800
}
.todo-status.unscheduled{background:#fff0f0;color:#b83232;border:1px solid #f1cccc}
.todo-status.scheduled{background:#eaf8f0;color:#18784b;border:1px solid #ccebd9}
.todo-row.scheduled-task{background:#fbfdfc;cursor:default}
.todo-row.scheduled-task:hover{background:#fbfdfc}


.todo-drag-ghost{
  position:fixed;
  top:-1000px;
  left:-1000px;
  z-index:99999;
  display:flex;
  align-items:center;
  gap:8px;
  max-width:300px;
  padding:9px 12px;
  border-radius:10px;
  background:#10233f;
  color:#fff;
  box-shadow:0 10px 24px rgba(0,0,0,.2);
  font-size:12px;
  font-weight:700;
  pointer-events:none;
}
.todo-drag-ghost .todo-id{
  background:rgba(255,255,255,.14);
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
}


.todo-status.scheduled{background:#fff6e5;color:#9a6000;border:1px solid #f2d9a3}
.todo-status.done{background:#eaf8f0;color:#18784b;border:1px solid #ccebd9}
.todo-priority{
  display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;
  font-size:11px;font-weight:800
}
.todo-priority.low{background:#eef5ff;color:#386aa6}
.todo-priority.medium{background:#fff6e5;color:#9a6000}
.todo-priority.high{background:#fff0f0;color:#b83232}
.todo-done-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:5px;
  height:28px;min-width:28px;padding:0 7px;font-size:11px;
  border-radius:8px;border:1px solid #ccebd9;
  background:#f3fbf6;color:#1f9d63;cursor:pointer;font-weight:900;
  transition:background .15s ease,color .15s ease
}
.todo-done-btn:hover{background:#e3f5ea}
.todo-done-btn.done{background:#1f9d63;color:#fff;border-color:#1f9d63}
.todo-done-btn svg{flex:none}
.todo-done-btn span{display:none}
.todo-done-btn.confirm{background:#1f9d63;color:#fff;border-color:#1f9d63}
.todo-done-btn.done.confirm{background:#fff;color:#18784b;border-color:#1f9d63}
.todo-done-btn.confirm span{display:inline}


.todo-controls{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  padding:12px 18px;
  border-bottom:1px solid var(--line);
  background:#fafcff;
}
.todo-controls select{
  border:1px solid #ccd6e4;
  border-radius:10px;
  padding:9px 10px;
  background:#fff;
  color:var(--text);
}
.todo-controls .todo-control-group{
  display:flex;
  align-items:center;
  gap:6px;
}
.todo-controls label{
  font-size:11px;
  color:var(--muted);
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}


/* Scrollable schedule area */
.schedule-scroll{
  height:62vh;
  min-height:420px;
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:6px;
  border-radius:14px;
  scroll-behavior:smooth;
}
.schedule-scroll::-webkit-scrollbar{width:10px}
.schedule-scroll::-webkit-scrollbar-track{background:#eef2f7;border-radius:999px}
.schedule-scroll::-webkit-scrollbar-thumb{background:#bcc8d8;border-radius:999px}
.schedule-scroll::-webkit-scrollbar-thumb:hover{background:#9eacbf}
.schedule-toolbar{
  position:relative;
  z-index:3;
  margin-bottom:10px;
}
.weeks-list{padding-bottom:18px}
@media(max-width:680px){
  .schedule-scroll{
    height:58vh;
    min-height:360px;
    padding-right:2px;
  }
}


/* Admin dashboard */
.admin-dashboard{display:grid;gap:18px}
.admin-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.admin-section{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);overflow:hidden}
.admin-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:16px 18px;border-bottom:1px solid var(--line)}
.admin-section-head h2{margin:0 0 4px;font-size:18px}
.admin-section-head p{margin:0;color:var(--muted);font-size:12px}
.progress-track{height:9px;background:#edf1f6;border-radius:999px;overflow:hidden;min-width:120px}
.progress-fill{height:100%;background:#2f7de1;border-radius:999px}
.progress-fill.warn{background:#d99419}
.progress-fill.over{background:#c84b4b}
.project-hours{display:flex;align-items:center;gap:10px}
.project-hours strong{min-width:58px}
.delta-positive{color:#18784b;font-weight:800}
.delta-negative{color:#b83232;font-weight:800}
.load-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:16px 18px}
.load-card{border:1px solid var(--line);border-radius:14px;padding:14px;background:#fafcff}
.load-card h3{margin:0 0 10px;font-size:15px}
.load-main{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-bottom:10px}
.load-main strong{font-size:26px}
.load-main span{font-size:12px;color:var(--muted)}
.load-foot{display:flex;justify-content:space-between;gap:8px;margin-top:8px;color:var(--muted);font-size:11px}
.history-table td{text-align:center}
.history-table td:first-child,.history-table th:first-child{text-align:left;position:sticky;left:0;background:#fff;z-index:1}
.history-cell{display:grid;gap:5px}
.history-cell strong{font-size:13px}
.history-mini{height:5px;background:#edf1f6;border-radius:999px;overflow:hidden}
.history-mini span{display:block;height:100%;background:#2f7de1;border-radius:999px}
.admin-note{padding:11px 14px;border:1px solid #dce6f4;background:#f7faff;border-radius:12px;color:#52657f;font-size:12px}
@media(max-width:1050px){.admin-kpi-grid,.load-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){.admin-kpi-grid,.load-grid{grid-template-columns:1fr}.admin-section-head{flex-direction:column}}


.todo-edit-btn{
  border:0;background:#eef5ff;color:var(--accent2);
  border-radius:8px;padding:6px 9px;font-weight:800;cursor:pointer;font-size:11px
}
.todo-edit-btn:hover{background:#dfeaff}


/* Admin command center v2 */
.admin-hero{
  display:flex;justify-content:space-between;align-items:flex-end;gap:18px;
  padding:20px 22px;border-radius:18px;
  background:linear-gradient(135deg,#10233f,#1d4f86);
  color:#fff;box-shadow:var(--shadow)
}
.admin-hero h2{margin:3px 0 6px;font-size:26px}
.admin-hero p{margin:0;color:rgba(255,255,255,.78);font-size:13px}
.admin-hero-date{font-size:12px;color:rgba(255,255,255,.72);text-transform:uppercase;letter-spacing:.08em}
.hero-status{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.hero-status span{
  padding:8px 11px;border-radius:999px;background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.16);font-size:12px;font-weight:800
}
.command-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:16px}
.command-card{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);overflow:hidden}
.command-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:15px 17px;border-bottom:1px solid var(--line)}
.command-head h3{margin:0 0 4px;font-size:17px}
.command-head p{margin:0;color:var(--muted);font-size:12px}
.attention-list{display:grid}
.attention-item{
  display:grid;grid-template-columns:auto 1fr auto;gap:11px;align-items:start;
  padding:12px 16px;border-bottom:1px solid #eef1f5
}
.attention-item:last-child{border-bottom:0}
.attention-dot{width:10px;height:10px;border-radius:50%;margin-top:5px;background:#c84b4b}
.attention-dot.warn{background:#d99419}
.attention-dot.info{background:#2f7de1}
.attention-item strong{display:block;font-size:13px}
.attention-item small{display:block;color:var(--muted);margin-top:3px;line-height:1.4}
.attention-count{font-size:12px;font-weight:800;color:#52657f}
.today-team{display:grid;gap:8px;padding:12px 16px}
.today-person{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:10px 11px;border:1px solid var(--line);border-radius:12px;background:#fafcff
}
.today-person.busy{border-left:4px solid #2f7de1}
.today-person.free{border-left:4px solid #34a56f}
.today-person strong{display:block;font-size:13px}
.today-person small{display:block;color:var(--muted);margin-top:2px}
.capacity-strip{display:grid;grid-template-columns:repeat(7,minmax(100px,1fr));gap:8px;padding:14px;overflow-x:auto}
.capacity-day{
  border:1px solid var(--line);border-radius:12px;padding:10px;background:#fafcff;min-width:100px
}
.capacity-day.today{border-color:#2f7de1;background:#f3f7ff}
.capacity-day .date{font-size:11px;color:var(--muted);font-weight:800}
.capacity-day .count{font-size:21px;font-weight:900;margin:5px 0 2px}
.capacity-day .free-label{font-size:11px;color:var(--muted)}
.capacity-bar{height:6px;background:#e9eef5;border-radius:999px;overflow:hidden;margin-top:8px}
.capacity-bar span{display:block;height:100%;background:#2f7de1}
.project-risk-table td{vertical-align:middle}
.project-title-cell strong{display:block}
.project-title-cell small{display:block;color:var(--muted);margin-top:3px}
.project-health{
  display:inline-flex;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:800
}
.project-health.good{background:#eaf8f0;color:#18784b}
.project-health.warn{background:#fff6e5;color:#9a6000}
.project-health.bad{background:#fff0f0;color:#b83232}
.admin-summary-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.admin-summary-card{
  background:#fff;border:1px solid var(--line);border-radius:15px;padding:15px;box-shadow:var(--shadow)
}
.admin-summary-card span{display:block;color:var(--muted);font-size:12px}
.admin-summary-card strong{display:block;font-size:26px;margin-top:5px}
.admin-summary-card small{display:block;color:var(--muted);font-size:11px;margin-top:5px}
.month-load-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:14px}
.month-load-card{padding:13px;border:1px solid var(--line);border-radius:13px;background:#fafcff}
.month-load-card h4{margin:0 0 8px;font-size:13px}
.month-load-card .big{font-size:22px;font-weight:900}
.month-load-card .sub{font-size:11px;color:var(--muted)}
.dashboard-spacer{height:2px}
@media(max-width:1100px){
  .command-grid{grid-template-columns:1fr}
  .admin-summary-row,.month-load-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:680px){
  .admin-hero{align-items:flex-start;flex-direction:column}
  .hero-status{justify-content:flex-start}
  .admin-summary-row,.month-load-grid{grid-template-columns:1fr}
}


.weather-result{
  cursor:pointer;
  transition:background .12s ease,border-color .12s ease;
}
.weather-result:hover,.weather-result.active{
  background:#eef5ff;
  border-color:#b9cff0;
}
.weather-result-action{
  color:var(--accent2);
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}
.weather-results:empty{display:none}




/* Schedule move/copy drag handles */
.job.admin-draggable{
  cursor:default;
  position:relative;
}
.job.admin-draggable:hover{
  transform:none;
}
.job-handle-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr);
  gap:4px;
  align-items:center;
  width:100%;
  min-width:0;
  margin-top:9px;
  padding-top:8px;
  border-top:1px solid #edf0f5;
}
.job-corner-handle{
  min-width:0;
  min-height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:5px 5px;
  background:#fff;
  font-size:9px;
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  user-select:none;
  cursor:grab;
}
.job-corner-handle:active{cursor:grabbing}
.job-corner-handle.move{
  justify-content:center;
  color:#42516a;
}
.job-corner-handle.copy{
  justify-content:center;
  color:var(--accent2);
  background:#f5f9ff;
  border-color:#d6e4f7;
}
.job-corner-handle span{
  font-size:15px;
  line-height:1;
}
.job-delete-mini{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border:1px solid #f0d5da;
  border-radius:8px;
  background:#fff7f8;
  color:#a34555;
  font-size:15px;
  line-height:1;
  font-weight:800;
  cursor:pointer;
  padding:0;
}
.job-delete-mini:hover{background:#fff0f2}
.day-col:nth-child(6),
.day-col:nth-child(7){padding:8px}
.day-col:nth-child(6) .job,
.day-col:nth-child(7) .job{padding:7px}
.day-col:nth-child(6) .job-handle-row,
.day-col:nth-child(7) .job-handle-row{
  grid-template-columns:1fr 1fr;
}
.day-col:nth-child(6) .job-delete-mini,
.day-col:nth-child(7) .job-delete-mini{
  grid-column:1/-1;
  width:100%;
  height:25px;
  font-size:13px;
}
.day-col:nth-child(6) .job-corner-handle,
.day-col:nth-child(7) .job-corner-handle{
  min-height:27px;
  font-size:8px;
  padding:4px 3px;
}
.job small{overflow-wrap:anywhere}

.job.dragging{
  opacity:.58;
  transform:none;
}
.schedule-drag-ghost{
  position:fixed;
  top:-1000px;
  left:-1000px;
  z-index:99999;
  display:flex;
  align-items:center;
  gap:8px;
  max-width:310px;
  padding:9px 12px;
  border-radius:10px;
  background:#10233f;
  color:#fff;
  box-shadow:0 10px 24px rgba(0,0,0,.2);
  font-size:12px;
  font-weight:700;
  pointer-events:none;
}
.schedule-drag-ghost.copy{
  background:#1f6feb;
}


/* Module hub + Projektiranje */
.module-hub{
  min-height:100vh;
  padding:34px;
  color:#fff;
}
.module-hub-shell{max-width:1040px;margin:0 auto}
.module-hub-top{
  display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:38px
}
.module-hub-brand{display:flex;align-items:center;gap:13px}
.module-hub-brand .logo{width:48px;height:48px}
.module-hub-brand strong{display:block;font-size:18px}
.module-hub-brand span{display:block;color:#9fb0c8;font-size:12px;margin-top:3px}
.module-user{display:flex;align-items:center;gap:10px;color:#cbd6e6;font-size:13px}
.module-hub h1{margin:0 0 8px;font-size:36px}
.module-hub-intro{margin:0 0 26px;color:#b7c5d8;max-width:650px}
.module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.module-card{
  position:relative;min-height:250px;padding:26px;border:1px solid #294b73;
  border-radius:22px;background:#142b49;color:#fff;text-align:left;
  cursor:pointer;overflow:hidden;box-shadow:0 18px 50px rgba(0,0,0,.30);
  transition:transform .15s ease,background .15s ease,border-color .15s ease
}
.module-card:hover{transform:translateY(-2px);background:#1a3a61;border-color:#4276ad}
.module-card.locked{opacity:.72}
.module-card-icon{
  width:62px;height:62px;border-radius:17px;display:grid;place-items:center;
  background:#244a78;font-size:32px;margin-bottom:38px
}
.module-card h2{margin:0 0 8px;font-size:25px}
.module-card p{margin:0;color:#c0cde0;line-height:1.5;font-size:13px;max-width:390px}
.module-card-arrow{position:absolute;right:24px;bottom:22px;font-size:22px;color:#adc7e7}
.module-card-tag{
  position:absolute;right:18px;top:18px;padding:5px 9px;border-radius:999px;
  background:#244a78;font-size:10px;font-weight:800;letter-spacing:.05em
}
.crm-project-name{font-weight:800}
.crm-summary{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.profit-kpis{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:12px;margin-bottom:16px}
.profit-kpi{background:#fff;border:1px solid var(--line);border-radius:14px;padding:15px;box-shadow:var(--shadow)}
.profit-kpi span{display:block;color:var(--muted);font-size:12px}
.profit-kpi strong{display:block;font-size:22px;margin-top:5px}
.profit-kpi small{display:block;color:var(--muted);font-size:11px;margin-top:4px}
.profit-positive{color:#16784c}.profit-negative{color:var(--danger)}
.profit-section{margin-top:18px}
.profit-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:10px}
.profit-section-head h3{margin:0 0 4px;font-size:17px}
.profit-section-head p{margin:0;color:var(--muted);font-size:12px}
.profit-rate-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:10px;margin-bottom:14px}
.profit-rate-card{background:#f8fafc;border:1px solid var(--line);border-radius:12px;padding:12px}
.profit-rate-card label{display:block;font-size:12px;font-weight:800;margin-bottom:6px}
.profit-rate-card input{width:100%;border:1px solid #ccd6e4;border-radius:9px;padding:9px;background:#fff}
.profit-person-rates{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:8px}
.profit-person-rate{display:grid;grid-template-columns:1fr 100px;gap:8px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:10px;padding:8px 10px}
.profit-person-rate span{font-size:12px;font-weight:700}
.profit-person-rate input{width:100%;border:1px solid #ccd6e4;border-radius:8px;padding:7px}
.travel-cost-input{width:110px;border:1px solid #ccd6e4;border-radius:8px;padding:7px 8px}
.profit-project-link{border:0;background:transparent;color:var(--accent);font-weight:800;padding:0;cursor:pointer;text-align:left}
.profit-back{margin-bottom:14px}
@media(max-width:1000px){.profit-kpis{grid-template-columns:repeat(2,1fr)}.profit-rate-grid{grid-template-columns:repeat(2,1fr)}.profit-person-rates{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){.profit-kpis,.profit-rate-grid,.profit-person-rates{grid-template-columns:1fr}}

.crm-summary .card{min-width:180px}
.issue-list{display:grid;gap:12px}
.issue-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;box-shadow:var(--shadow)}
.issue-card-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.issue-card h3{margin:0 0 6px;font-size:17px}
.issue-card-meta{font-size:12px;color:var(--muted)}
.issue-card-desc{white-space:pre-wrap;margin:12px 0 0;line-height:1.5;color:#33445b}
.issue-card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.badge.issue-open{background:#eef5ff;color:#285b9a}
.badge.issue-resolved{background:#e9f7f0;color:#1f7d50}
.badge.issue-rejected{background:#f3f4f6;color:#667085}

.design-bucket{
  background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);
  margin-bottom:16px;overflow:hidden
}
.design-bucket-head{
  display:flex;justify-content:space-between;gap:14px;align-items:flex-start;
  padding:16px 18px;border-bottom:1px solid var(--line)
}
.design-bucket-head h2{margin:0 0 4px;font-size:18px}
.design-bucket-head p{margin:0;color:var(--muted);font-size:12px}
.design-form{
  display:grid;grid-template-columns:1.05fr 155px 1.1fr 135px 125px 145px 135px 105px auto;
  gap:8px;padding:13px 16px;border-bottom:1px solid var(--line);align-items:end
}
.design-form .field{gap:4px}
.design-form input,.design-form select{
  width:100%;border:1px solid #ccd6e4;border-radius:9px;padding:9px 10px;background:#fff
}
.design-list{
  overflow:auto;
  max-height:min(360px,42vh);
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
.design-list-head,.design-row{
  display:grid;
  grid-template-columns:88px minmax(180px,1.4fr) 108px 120px 136px 126px 92px 136px;
  gap:8px;align-items:center;padding:7px 12px;min-width:980px
}
.design-list-head{
  position:sticky;top:0;z-index:3;
  color:var(--muted);font-size:9px;font-weight:800;text-transform:uppercase;
  letter-spacing:.05em;background:#fafcff;border-bottom:1px solid var(--line);
  box-shadow:0 1px 0 rgba(15,35,60,.04)
}
.design-row{
  border-bottom:1px solid #eef1f5;background:#fff;
  font-size:11.5px;min-height:42px
}
.design-row:last-child{border-bottom:0}
.design-row.draggable{cursor:grab}
.design-row.draggable:hover{background:#f8fbff}
.design-id{
  display:inline-flex;width:max-content;padding:4px 8px;border-radius:999px;
  background:#eef5ff;color:var(--accent2);font-size:10px;font-weight:800
}
.design-meta{font-size:11px;color:var(--muted)}
.design-status{
  display:inline-flex;width:max-content;padding:5px 8px;border-radius:999px;
  font-size:10px;font-weight:800
}
.design-status.unscheduled{background:#fff0f0;color:#b83232;border:1px solid #f1cccc}
.design-status.scheduled{background:#fff6e5;color:#9a6000;border:1px solid #f2d9a3}
.design-priority{
  display:inline-flex;width:max-content;padding:4px 8px;border-radius:999px;font-size:10px;font-weight:800
}
.design-priority.low{background:#eef5ff;color:#386aa6}
.design-priority.medium{background:#fff6e5;color:#9a6000}
.design-priority.high{background:#fff0f0;color:#b83232}
.design-toolbar{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:13px 15px;background:#fff;border:1px solid var(--line);
  border-radius:14px;box-shadow:var(--shadow);margin-bottom:10px
}
.design-toolbar strong{display:block}
.design-toolbar span{display:block;color:var(--muted);font-size:11px;margin-top:2px}
.design-job{border-left-color:#7658b7}
.design-job .designer-pill{
  display:inline-flex;margin-top:5px;padding:4px 7px;border-radius:999px;
  background:#f2edff;color:#60499b;font-size:10px;font-weight:800
}
.design-drag-ghost{
  position:fixed;top:-1000px;left:-1000px;z-index:99999;display:flex;gap:8px;align-items:center;
  padding:9px 12px;border-radius:10px;background:#43366d;color:#fff;
  box-shadow:0 10px 24px rgba(0,0,0,.2);font-size:12px;font-weight:700;pointer-events:none
}
.module-back{
  border:1px solid #40516b;background:transparent;color:#d7e2f2;border-radius:10px;
  padding:9px 10px;cursor:pointer;text-align:left
}
.module-back:hover{background:#1a2a42}
@media(max-width:900px){
  .module-grid{grid-template-columns:1fr}
  .design-form{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
  .module-hub{padding:20px}
  .module-hub-top{align-items:flex-start}
  .module-user{flex-direction:column;align-items:flex-end}
  .module-hub h1{font-size:29px}
  .design-form{grid-template-columns:1fr}
}


/* Projektiranje v2 */
.design-list-head,.design-row{
  grid-template-columns:80px minmax(155px,1fr) 145px minmax(155px,1fr) minmax(210px,1.35fr) 140px 95px 95px 120px 110px 80px 120px 145px;
  min-width:1720px
}
.design-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.design-action-btn{
  border:0;border-radius:8px;padding:5px 8px;font-size:10px;font-weight:800;cursor:pointer
}
.design-action-btn.edit{background:#eef5ff;color:#315f95}
.design-action-btn.done{background:#eaf8f0;color:#18784b}
.design-action-btn.remove{background:transparent;color:#9a5360}
.design-action-btn.remove .when-confirm{display:none}
.design-action-btn.remove.confirm{background:var(--danger);color:#fff}
.design-action-btn.remove.confirm .when-idle{display:none}
.design-action-btn.remove.confirm .when-confirm{display:inline}
.design-status.done{background:#eaf8f0;color:#18784b;border:1px solid #ccebd9}
.design-load-controls{
  display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-bottom:14px
}
.design-load-controls .field{min-width:220px}
.design-load-summary{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px
}
.design-load-summary .admin-summary-card{box-shadow:none}
.design-history-grid{
  display:grid;grid-template-columns:repeat(6,minmax(110px,1fr));gap:10px;padding:14px;overflow-x:auto
}
.design-history-card{
  border:1px solid var(--line);border-radius:12px;padding:12px;background:#fafcff;min-width:110px
}
.design-history-card span{display:block;color:var(--muted);font-size:11px}
.design-history-card strong{display:block;font-size:20px;margin-top:4px}
.design-person-schedule .week-block{margin-bottom:14px}
@media(max-width:900px){
  .design-load-summary{grid-template-columns:1fr}
}


/* Dnevni unos module */
.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.daily-shell{display:grid;gap:16px}
.daily-entry-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:16px;align-items:start}
.daily-form-card,.daily-status-card,.daily-history-card{
  background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)
}
.daily-form-card{padding:18px}
.daily-form-card h2{margin:0 0 5px;font-size:19px}
.daily-form-card>p{margin:0 0 16px;color:var(--muted);font-size:12px}
.daily-form-grid{display:grid;grid-template-columns:150px minmax(210px,1fr) minmax(210px,1fr) 120px;gap:12px;align-items:end}
.daily-form-grid .field.description{grid-column:1/-1}
.daily-form-grid .field.project{position:relative}
.daily-project-combo{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 38px}
.daily-project-combo input{border-top-right-radius:0;border-bottom-right-radius:0}
.daily-project-toggle{
  border:1px solid #cbd6e4;border-left:0;background:#f7f9fc;color:#40546d;
  border-radius:0 10px 10px 0;cursor:pointer;font-size:13px;font-weight:900
}
.daily-project-toggle:hover{background:#eef4f9}
.daily-project-results{
  position:absolute;z-index:60;left:0;right:0;top:calc(100% + 4px);
  background:#fff;border:1px solid #cbd6e4;border-radius:11px;box-shadow:0 12px 28px rgba(20,38,62,.14);
  max-height:230px;overflow:auto
}
.daily-project-results:empty{display:none}
.daily-project-option{
  width:100%;border:0;background:#fff;padding:10px 11px;text-align:left;cursor:pointer;
  border-bottom:1px solid #eef1f5
}
.daily-project-option:last-child{border-bottom:0}
.daily-project-option:hover,.daily-project-option.active{background:#f2f7fd}
.daily-project-option strong{display:block;font-size:12px}
.daily-project-option small{display:block;color:var(--muted);font-size:10px;margin-top:2px}
.daily-status-card{padding:18px}
.daily-status-card h3{margin:0 0 4px;font-size:15px}
.daily-status-card p{margin:0;color:var(--muted);font-size:11px}
.daily-hours-number{font-size:42px;font-weight:900;line-height:1;margin:16px 0 7px}
.daily-hours-number.good{color:#18784b}
.daily-hours-number.warn{color:#b56f00}
.daily-progress{height:10px;background:#e9eef5;border-radius:999px;overflow:hidden;margin:12px 0 9px}
.daily-progress span{display:block;height:100%;background:#2f7de1}
.daily-status-message{
  padding:10px 11px;border-radius:10px;font-size:11px;font-weight:700;line-height:1.45
}
.daily-status-message.warn{background:#fff6e5;color:#8b5900}
.daily-status-message.good{background:#eaf8f0;color:#18784b}
.daily-history-head{
  display:flex;justify-content:space-between;gap:14px;align-items:flex-end;padding:16px 17px;
  border-bottom:1px solid var(--line)
}
.daily-history-head h2{margin:0 0 4px;font-size:18px}
.daily-history-head p{margin:0;color:var(--muted);font-size:11px}
.daily-filters{display:flex;gap:8px;align-items:end;flex-wrap:wrap}
.daily-filters .field{min-width:170px}
.daily-weeks{display:grid;gap:12px;padding:14px}
.daily-week{
  border:1px solid var(--line);border-radius:13px;overflow:hidden;background:#fff
}
.daily-week-head{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:11px 13px;background:#f8fafc;border-bottom:1px solid var(--line)
}
.daily-week-head strong{font-size:13px}
.daily-week-head span{font-size:11px;color:var(--muted)}
.daily-week-total{
  padding:5px 8px;border-radius:999px;background:#eef5ff;color:#315f95!important;font-weight:800
}
.daily-week-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.daily-week-summary-toggle{
  border:1px solid #cfdbe8;background:#fff;color:#315f95;border-radius:9px;
  min-height:30px;padding:5px 9px;font-size:10px;font-weight:850;cursor:pointer
}
.daily-week-summary-toggle:hover{background:#eef5ff}
.daily-week-summary-toggle.done{background:#edf8f0;border-color:#b9dfc7;color:#18784b}
.daily-week-summary-panel{
  padding:12px 13px 13px;background:#f7fbf8;border-bottom:1px solid var(--line)
}
.daily-week-summary-panel label{
  display:block;font-size:11px;font-weight:850;color:#234633;margin-bottom:6px
}
.daily-week-summary-panel textarea{
  width:100%;min-height:120px;resize:vertical;border:1px solid #bcd8c6;border-radius:10px;
  background:#fff;padding:10px 11px;line-height:1.5;font:inherit;color:var(--text)
}
.daily-week-summary-panel textarea:focus{
  outline:none;border-color:#60ad7e;box-shadow:0 0 0 3px rgba(39,163,106,.10)
}
.daily-week-summary-foot{
  display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:8px;flex-wrap:wrap
}
.daily-week-summary-foot small{color:var(--muted);font-size:10px;max-width:650px}
.daily-summary-readonly{
  white-space:pre-wrap;background:#fff;border:1px solid #d9e7de;border-radius:10px;
  padding:10px 11px;font-size:11px;line-height:1.55;color:#2c3b32
}
.daily-day-group{border-bottom:1px solid #eef1f5}
.daily-day-group:last-child{border-bottom:0}
.daily-day-head{
  display:flex;justify-content:space-between;align-items:center;padding:8px 12px;
  background:#fcfdff;font-size:11px
}
.daily-day-head strong{font-size:12px}
.daily-record{
  display:grid;grid-template-columns:140px minmax(150px,1fr) minmax(150px,1fr) 80px minmax(200px,1.4fr);
  gap:10px;padding:9px 12px;align-items:start;border-top:1px solid #f1f3f6;font-size:11px
}
.daily-record .person{font-weight:800}
.daily-record .project{font-weight:800}.daily-record .task{font-weight:700;color:#43546b}
.daily-record .hours{font-weight:900}
.daily-empty{padding:28px;text-align:center;color:var(--muted)}
@media(max-width:1050px){
  .module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .daily-entry-layout{grid-template-columns:1fr}
}
@media(max-width:760px){
  .daily-form-grid{grid-template-columns:1fr}
  .daily-form-grid .field.description{grid-column:auto}
  .daily-history-head{align-items:flex-start;flex-direction:column}
  .daily-record{grid-template-columns:1fr 70px}
  .daily-record .person,.daily-record .task,.daily-record .description{grid-column:1/-1}
}


/* Personal TO-DO module */
.todo-module{display:grid;gap:16px}
.personal-todo-top{
  display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:16px;align-items:start
}
.personal-todo-form,.personal-todo-panel{
  background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)
}
.personal-todo-form{padding:18px}
.personal-todo-form h2{margin:0 0 4px;font-size:19px}
.personal-todo-form>p{margin:0 0 15px;color:var(--muted);font-size:12px}
.personal-todo-grid{
  display:grid;grid-template-columns:minmax(0,1.4fr) 145px 130px;gap:10px;align-items:end
}
.personal-todo-grid .wide{grid-column:1/-1}
.personal-todo-grid .project-field{position:relative}
.todo-project-results{
  position:absolute;z-index:70;left:0;right:0;top:calc(100% + 4px);
  background:#fff;border:1px solid #cad5e3;border-radius:11px;
  box-shadow:0 12px 30px rgba(20,38,62,.15);max-height:230px;overflow:auto
}
.todo-project-results:empty{display:none}
.todo-project-option{
  width:100%;border:0;background:#fff;text-align:left;padding:10px 11px;cursor:pointer;
  border-bottom:1px solid #eef1f5
}
.todo-project-option:last-child{border-bottom:0}
.todo-project-option:hover{background:#f4f8fd}
.todo-project-option strong{display:block;font-size:12px}
.todo-project-option small{display:block;color:var(--muted);font-size:10px;margin-top:2px}
.todo-focus-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;padding:14px}
.todo-focus-card{
  border:1px solid var(--line);border-radius:13px;padding:12px;background:#fafcff
}
.todo-focus-card span{display:block;color:var(--muted);font-size:10px}
.todo-focus-card strong{display:block;font-size:25px;margin-top:4px}
.todo-focus-card.danger strong{color:#b83232}
.todo-focus-card.today strong{color:#315f95}
.todo-focus-card.done strong{color:#18784b}
.todo-list-card{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);overflow:hidden}
.todo-module-toolbar{
  display:flex;justify-content:space-between;gap:12px;align-items:end;padding:14px 16px;
  border-bottom:1px solid var(--line);flex-wrap:wrap
}
.todo-module-toolbar h2{margin:0 0 3px;font-size:18px}
.todo-module-toolbar p{margin:0;color:var(--muted);font-size:11px}
.todo-tools{display:flex;gap:8px;align-items:end;flex-wrap:wrap}
.todo-tools .field{min-width:150px}
.todo-tabs{display:flex;gap:6px;padding:10px 14px;border-bottom:1px solid var(--line);overflow:auto}
.todo-tab{
  border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 10px;
  font-size:10px;font-weight:800;cursor:pointer;white-space:nowrap;color:#52657f
}
.todo-tab.active{background:#10233f;color:#fff;border-color:#10233f}
.todo-group{border-bottom:1px solid #e9edf3}
.todo-group:last-child{border-bottom:0}
.todo-group-head{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:10px 14px;background:#f8fafc;border-bottom:1px solid #edf0f4
}
.todo-group-head strong{font-size:12px}
.todo-group-head span{font-size:10px;color:var(--muted)}
.personal-task{
  display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:10px;align-items:start;
  padding:12px 14px;border-bottom:1px solid #eef1f5
}
.personal-task:last-child{border-bottom:0}
.personal-task.overdue{background:#fffafa}
.personal-task.completed{opacity:.68;background:#fbfcfd}
.personal-task.completed .personal-task-title{text-decoration:line-through}
.task-check{
  width:22px;height:22px;border-radius:50%;border:2px solid #9fb0c6;background:#fff;
  display:grid;place-items:center;cursor:pointer;font-weight:900;color:#fff;margin-top:1px
}
.task-check.done{background:#2d9564;border-color:#2d9564}
.personal-task-title{font-size:13px;font-weight:850;line-height:1.35}
.personal-task-desc{font-size:11px;color:var(--muted);margin-top:4px;line-height:1.45}
.personal-task-meta{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.task-meta-pill{
  display:inline-flex;align-items:center;padding:4px 7px;border-radius:999px;
  background:#f0f3f7;color:#52657f;font-size:9px;font-weight:750
}
.task-meta-pill.project{background:#eef5ff;color:#315f95}
.task-meta-pill.overdue{background:#fff0f0;color:#b83232}
.task-meta-pill.today{background:#fff6e5;color:#8f5900}
.task-priority{
  display:inline-flex;padding:4px 7px;border-radius:999px;font-size:9px;font-weight:850
}
.task-priority.low{background:#f1f3f6;color:#68788e}
.task-priority.medium{background:#eef5ff;color:#315f95}
.task-priority.high{background:#fff1df;color:#9a6000}
.task-priority.urgent{background:#fff0f0;color:#b83232}
.personal-task-actions{display:flex;gap:5px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.personal-task-actions button{
  border:0;border-radius:8px;padding:5px 7px;font-size:9px;font-weight:800;cursor:pointer
}
.personal-task-actions .edit{background:#eef5ff;color:#315f95}
.personal-task-actions .remove{background:transparent;color:#9a5360}
.todo-empty{padding:32px;text-align:center;color:var(--muted)}
@media(max-width:1000px){
  .personal-todo-top{grid-template-columns:1fr}
}
@media(max-width:760px){
  .personal-todo-grid{grid-template-columns:1fr}
  .personal-todo-grid .wide{grid-column:auto}
  .todo-focus-grid{grid-template-columns:repeat(2,1fr)}
  .personal-task{grid-template-columns:28px minmax(0,1fr)}
  .personal-task-actions{grid-column:2;justify-content:flex-start}
}


/* Warehouse module */
.warehouse-shell{display:grid;gap:16px}
.warehouse-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.warehouse-kpi{
  background:#fff;border:1px solid var(--line);border-radius:15px;padding:15px;box-shadow:var(--shadow)
}
.warehouse-kpi span{display:block;color:var(--muted);font-size:11px}
.warehouse-kpi strong{display:block;font-size:25px;margin-top:5px}
.warehouse-kpi small{display:block;color:var(--muted);font-size:10px;margin-top:4px}
.warehouse-card{
  background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);overflow:hidden
}
.warehouse-head{
  display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:15px 17px;border-bottom:1px solid var(--line)
}
.warehouse-head h2,.warehouse-head h3{margin:0 0 4px}
.warehouse-head p{margin:0;color:var(--muted);font-size:11px}
.warehouse-form{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:15px
}
.warehouse-form .full{grid-column:1/-1}
.warehouse-form .span2{grid-column:span 2}
.warehouse-tabs{display:flex;gap:6px;flex-wrap:wrap}
.warehouse-tab{
  border:1px solid var(--line);background:#fff;color:#52657f;border-radius:9px;padding:8px 10px;
  font-size:11px;font-weight:800;cursor:pointer
}
.warehouse-tab.active{background:#10233f;color:#fff;border-color:#10233f}
.stock-good{color:#18784b;font-weight:800}
.stock-low{color:#b56f00;font-weight:800}
.stock-zero{color:#b83232;font-weight:800}
.stock-location-list{display:flex;flex-direction:column;gap:3px}
.stock-location-list small{color:var(--muted)}
.movement-type{
  display:inline-flex;padding:4px 7px;border-radius:999px;font-size:9px;font-weight:850
}
.movement-type.IN,.movement-type.RETURN{background:#eaf8f0;color:#18784b}
.movement-type.OUT{background:#fff0f0;color:#b83232}
.movement-type.TRANSFER{background:#eef5ff;color:#315f95}
.movement-type.ADJUST{background:#fff6e5;color:#8f5900}
.attention-warehouse{display:grid}
.attention-warehouse .attention-item{grid-template-columns:auto 1fr auto}
.location-code{
  display:inline-flex;padding:4px 8px;border-radius:999px;background:#f1f4f8;color:#42516a;
  font-size:10px;font-weight:850
}
@media(max-width:1100px){.warehouse-kpis{grid-template-columns:repeat(2,1fr)}}
@media(max-width:850px){
  .warehouse-form{grid-template-columns:1fr 1fr}
  .warehouse-form .span2,.warehouse-form .full{grid-column:1/-1}
}
@media(max-width:600px){
  .warehouse-kpis{grid-template-columns:1fr}
  .warehouse-form{grid-template-columns:1fr}
  .warehouse-form .span2,.warehouse-form .full{grid-column:auto}
}


/* Warehouse suppliers + document scans */
.warehouse-doc-note{
  font-size:10px;color:var(--muted);margin-top:5px;line-height:1.4
}
.warehouse-doc-preview{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:6px
}
.warehouse-doc-link{
  display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:8px;
  background:#eef5ff;color:#315f95;font-size:10px;font-weight:800;text-decoration:none
}
.supplier-actions{display:flex;gap:6px;flex-wrap:wrap}
.supplier-actions button{
  border:0;border-radius:8px;padding:5px 8px;font-size:10px;font-weight:800;cursor:pointer
}
.supplier-actions .edit{background:#eef5ff;color:#315f95}
.supplier-actions .remove{background:transparent;color:#9a5360}


/* =========================================================
   AleDo responsive desktop density
   Veliki monitori zadržavaju postojeći izgled.
   Laptopi (1001–1500 px i niža visina ekrana) dobivaju
   kompaktnije proporcije, ikone, razmake i tipografiju.
   ========================================================= */

@media (min-width:1001px) and (max-width:1500px){
  .app-shell{grid-template-columns:220px minmax(0,1fr)}
  .sidebar{padding:16px 13px;gap:20px}
  .brand{gap:10px}
  .logo{width:36px;height:36px;border-radius:10px;font-size:13px}
  .brand strong{font-size:14px}
  .brand span{font-size:10px}
  nav{gap:5px}
  .nav-btn{padding:9px 10px;border-radius:9px;font-size:13px}
  .sidebar-footer{gap:6px}
  .sidebar-footer label{font-size:10px}
  .sidebar-footer select{padding:8px 9px;border-radius:9px;font-size:12px}

  .main{padding:20px}
  .topbar{margin-bottom:16px}
  .topbar h1{font-size:25px}
  .eyebrow{font-size:10.5px}
  .top-actions{gap:8px}
  .btn{padding:8px 11px;border-radius:9px;font-size:12px}

  .grid{gap:12px}
  .grid.cards{gap:12px}
  .card{padding:14px;border-radius:14px}
  .metric span{font-size:11.5px}
  .metric strong{font-size:23px;margin-top:4px}
  .metric small{font-size:10.5px;margin-top:5px}

  .section-title{margin:20px 0 9px}
  .section-title h2{font-size:17px}
  th,td{padding:9px 11px;font-size:12px}
  th{font-size:10.5px}
  .badge{font-size:10.5px;padding:3px 7px}

  .form-grid{gap:11px}
  .field{gap:5px}
  .field label{font-size:11px}
  .field input,.field select,.field textarea{
    padding:8px 9px;border-radius:8px;font-size:12.5px
  }
  .field textarea{min-height:92px}
  .toolbar{gap:8px;margin-bottom:10px}
  .toolbar input,.toolbar select{padding:8px 9px;border-radius:8px;font-size:12px}

  .module-header{margin-bottom:11px}
  .module-header h2{font-size:18px}
  .module-header p{font-size:11.5px}

  .schedule-toolbar{padding:10px 12px;margin-bottom:10px;border-radius:12px}
  .schedule-toolbar strong{font-size:14px}
  .schedule-toolbar span{font-size:10.5px}
  .schedule-grid{
    grid-template-columns:repeat(5,minmax(145px,1fr)) repeat(2,minmax(100px,.64fr));
    gap:8px
  }
  .week-block .schedule-grid{
    grid-template-columns:repeat(5,minmax(145px,1fr)) repeat(2,minmax(100px,.64fr))
  }
  .week-block.current-week{padding:8px;border-radius:13px}
  .week-title{margin-bottom:6px}
  .week-title strong{font-size:13px}
  .day-col{padding:8px;min-height:190px;border-radius:12px}
  .day-head{margin-bottom:6px;font-size:12.5px}
  .day-head strong{font-size:10.5px}
  .day-add{width:24px;height:24px;border-radius:7px;font-size:17px}
  .job{padding:7px;border-radius:8px;margin-bottom:6px;font-size:12px}
  .job small{font-size:10.5px;margin-top:3px}
  .schedule-scroll{height:67vh;min-height:360px}

  .todo-bucket{border-radius:14px;margin-bottom:12px}
  .todo-bucket-head{padding:12px 14px}
  .todo-bucket-head h2{font-size:16px}
  .todo-bucket-head p{font-size:11px}
  .todo-form{padding:11px 14px;gap:8px}
  .todo-form input,.todo-form textarea{padding:8px 9px;border-radius:8px;font-size:12px}
  .todo-controls{padding:9px 14px;gap:8px}
  .todo-list{padding:0 14px 14px}
  .todo-list-head,.todo-row{gap:9px}
  .todo-list-head{padding:8px 10px;font-size:9.5px}
  .todo-row{padding:9px 10px;font-size:12px}

  .admin-dashboard{gap:14px}
  .admin-kpi-grid{gap:10px}
  .admin-section{border-radius:14px}
  .admin-section-head{padding:12px 14px}
  .admin-section-head h2{font-size:16px}
  .admin-section-head p{font-size:11px}
  .load-grid{gap:10px;padding:12px 14px}
  .load-card{padding:11px;border-radius:12px}
  .load-card h3{font-size:13px;margin-bottom:8px}
  .load-main strong{font-size:22px}

  .profit-kpis{gap:9px;margin-bottom:12px}
  .profit-kpi{padding:12px;border-radius:12px}
  .profit-kpi strong{font-size:19px}
}

/* Module hub: najvidljivija razlika na laptopu */
@media (min-width:1001px) and (max-width:1500px){
  .module-hub{padding:22px}
  .module-hub-shell{max-width:900px}
  .module-hub-top{margin-bottom:24px}
  .module-hub-brand{gap:10px}
  .module-hub-brand .logo{width:40px;height:40px;border-radius:11px;font-size:13px}
  .module-hub-brand strong{font-size:16px}
  .module-hub-brand span{font-size:10.5px}
  .module-user{gap:8px;font-size:12px}
  .module-hub h1{font-size:30px;margin-bottom:6px}
  .module-hub-intro{font-size:12.5px;margin-bottom:18px}
  .module-grid{gap:14px}
  .module-card{
    min-height:200px;padding:20px;border-radius:18px;
    box-shadow:0 12px 34px rgba(0,0,0,.27)
  }
  .module-card-icon{
    width:50px;height:50px;border-radius:14px;font-size:25px;margin-bottom:24px
  }
  .module-card h2{font-size:21px;margin-bottom:6px}
  .module-card p{font-size:12px;line-height:1.42;max-width:360px}
  .module-card-arrow{right:18px;bottom:16px;font-size:18px}
  .module-card-tag{
    right:14px;top:14px;padding:4px 7px;font-size:8.5px
  }
}

/* Tipični 13–14" laptopi imaju malo vertikalnog prostora.
   Dodatno smanji samo module, bez diranja velikih monitora. */
@media (min-width:1001px) and (max-height:850px){
  .module-hub{padding-top:16px;padding-bottom:16px}
  .module-hub-top{margin-bottom:16px}
  .module-hub h1{font-size:28px}
  .module-hub-intro{margin-bottom:14px}
  .module-grid{gap:11px}
  .module-card{min-height:174px;padding:17px}
  .module-card-icon{
    width:44px;height:44px;border-radius:12px;font-size:22px;margin-bottom:16px
  }
  .module-card h2{font-size:19px}
  .module-card p{font-size:11.5px;line-height:1.38}
  .module-card-arrow{right:16px;bottom:13px;font-size:17px}
  .module-card-tag{right:12px;top:12px}
}

/* Malo uži laptop prije prijelaza na tablet navigaciju. */
@media (min-width:1001px) and (max-width:1220px){
  .app-shell{grid-template-columns:205px minmax(0,1fr)}
  .main{padding:16px}
  .sidebar{padding:14px 11px}
  .module-hub-shell{max-width:820px}
  .module-card{padding:17px}
  .module-card h2{font-size:19px}
  .module-card p{font-size:11.5px}
}


.design-list .design-id{padding:3px 7px;font-size:9.5px}
.design-list .design-meta{font-size:10px}
.design-list .design-status{padding:4px 7px;font-size:9px}
.design-list .design-priority{padding:3px 7px;font-size:9px}
.design-list .btn{padding:6px 8px;font-size:10px}
@media (min-width:1001px) and (max-height:850px){
  .design-list{max-height:min(285px,36vh)}
}
@media(max-width:760px){
  .design-list{max-height:52vh}
}



/* --- Logo AleDo TECH -------------------------------------------------- */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.login-brand{justify-content:center}
.login-logo{display:block;height:96px;width:auto;margin:0 auto}
.hub-logo{display:block;height:68px;width:auto}
.logo-icon{display:block;width:42px;height:auto;flex:none}
@media(max-width:680px){
  .login-logo{height:76px}
  .hub-logo{height:48px}
  .logo-icon{width:34px}
}

/* =====================================================================
   Prijava i naslovna stranica (redizajn 2026-11, opcija A)
   ===================================================================== */
.auth-screen,.home{
  background:
    linear-gradient(rgba(6,16,30,.80),rgba(6,16,30,.92)),
    url("../assets/background.jpg") center/cover no-repeat fixed;
}

/* --- Prijava ---------------------------------------------------------- */
.auth-screen{
  min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:22px;padding:40px 18px;box-sizing:border-box;color:#fff
}
.auth-card{
  width:100%;max-width:440px;box-sizing:border-box;background:rgba(9,22,41,.82);
  border:1px solid rgba(255,255,255,.12);border-radius:22px;padding:40px 36px 30px;
  display:flex;flex-direction:column;gap:26px;box-shadow:0 24px 70px rgba(0,0,0,.35)
}
.auth-logo{display:block;height:100px;width:auto;align-self:center}
.auth-form{display:flex;flex-direction:column;gap:16px}
.auth-field{display:flex;flex-direction:column;gap:8px}
.auth-field label{font-size:13px;font-weight:600;color:#D5DFEA}
.auth-field input{
  height:48px;box-sizing:border-box;padding:0 14px;border-radius:12px;
  border:1px solid rgba(255,255,255,.20);background:rgba(255,255,255,.06);color:#fff;font-size:15px
}
.auth-field input::placeholder{color:#93A6BD}
.auth-field input:focus{outline:2px solid #3BB3F0;outline-offset:1px}
.auth-submit{
  height:50px;margin-top:4px;border:0;border-radius:12px;background:#1670D0;color:#fff;
  font-weight:700;font-size:15px;cursor:pointer
}
.auth-submit:hover{background:#125EB0}
.auth-card .login-error{color:#FFB4A8;margin-top:0;min-height:18px}
.auth-links{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px}
.auth-link{border:0;background:transparent;padding:6px 0;color:#8FD8FF;font-weight:600;font-size:14px;cursor:pointer}
.auth-link:hover{color:#fff}
.auth-help{margin:0;font-size:13px;color:#B9C8DA;text-align:center}

/* --- Naslovna ----------------------------------------------------------- */
.home{min-height:100vh;padding:28px 24px 64px;box-sizing:border-box;color:#fff}
.home-shell{max-width:1180px;margin:0 auto;display:flex;flex-direction:column;gap:30px}
.home-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px}
.home .hub-logo{height:64px}
.home-user{display:flex;align-items:center;flex-wrap:wrap;gap:14px}
.home-user-name{text-align:right;line-height:1.3}
.home-user-name strong{display:block;font-size:15px}
.home-user-name span{display:block;font-size:13px;color:#B9C8DA}
.home-logout{
  height:44px;padding:0 18px;border-radius:10px;border:1px solid rgba(255,255,255,.22);
  background:transparent;color:#fff;font-weight:600;font-size:14px;cursor:pointer
}
.home-logout:hover{background:rgba(255,255,255,.08)}
.home .home-date{margin:0;font-size:20px;font-weight:600;color:#D5DFEA}

.home-day{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}
.home-day-card{
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10);border-radius:18px;
  padding:22px;display:flex;flex-direction:column;gap:14px
}
.home-day-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.home-day-head h2{margin:0;font-size:15px;font-weight:700}
.home-accent{font-size:13px;font-weight:600;color:#8FD8FF}
.home-warn{font-size:13px;font-weight:700;color:#FFC27A}
.home-muted{font-size:13px;color:#B9C8DA}
.home-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;font-size:14px}
.home-list li{display:flex;gap:12px}
.home-list li.home-row{justify-content:space-between}
.home-time{flex:none;width:52px;color:#8FD8FF;font-weight:700}
.home-item-title{display:block}
.home-item-sub{display:block;font-size:13px;color:#B9C8DA}
.home-empty{margin:0;font-size:14px;color:#B9C8DA}
.home-more{font-size:13px;color:#B9C8DA}
.home-decision{
  display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;
  color:#fff;font-size:14px;text-align:left;padding:2px 0;cursor:pointer
}
.home-decision:hover span:last-child{color:#8FD8FF}
.home-num{flex:none;width:28px;text-align:right;font-weight:700;color:#8FD8FF;font-variant-numeric:tabular-nums}

.home-apps-section{display:flex;flex-direction:column;gap:16px}
.home-apps{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.home-app{
  text-align:left;cursor:pointer;background:rgba(16,35,63,.88);border:1px solid rgba(255,255,255,.10);
  border-radius:18px;padding:22px;color:#fff;display:flex;flex-direction:column;gap:6px;min-height:170px;
  transition:transform .15s ease,border-color .15s ease,background .15s ease
}
.home-app:hover{transform:translateY(-2px);border-color:rgba(143,216,255,.45);background:rgba(20,44,78,.92)}
.home-app-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:8px}
.home-app-icon{
  width:44px;height:44px;border-radius:12px;background:rgba(59,179,240,.16);color:#8FD8FF;
  display:grid;place-items:center;flex:none
}
.home-badge{font-size:12px;font-weight:700;padding:5px 10px;border-radius:999px;background:rgba(59,179,240,.18);color:#8FD8FF;text-align:right}
.home-badge.warn{background:rgba(255,170,80,.18);color:#FFC27A}
.home-app-title{font-size:18px;font-weight:700}
.home-app-desc{font-size:13px;color:#B9C8DA}

.home-icon-btn{
  width:44px;height:44px;border-radius:10px;border:1px solid rgba(255,255,255,.22);
  background:transparent;color:#D5DFEA;display:grid;place-items:center;cursor:pointer;
  transition:background .15s ease,color .15s ease
}
.home-icon-btn:hover{background:rgba(255,255,255,.08);color:#fff}
.home-icon-btn:hover svg{transform:rotate(45deg)}
.home-icon-btn svg{transition:transform .3s ease}

/* Postavke naslovne – svijetli dijalog koji se ističe na tamnoj pozadini */
.settings-dialog{
  border:0;padding:0;border-radius:22px;width:min(540px,calc(100vw - 24px));
  max-height:calc(100vh - 32px);overflow:auto;background:#F6F9FD;color:#10233F;
  box-shadow:0 30px 90px rgba(0,0,0,.45),0 0 0 1px rgba(255,255,255,.6) inset
}
.settings-dialog::backdrop{background:rgba(4,12,24,.6);backdrop-filter:blur(4px)}
.settings-dialog[open]{animation:settings-in .18s ease-out}
@keyframes settings-in{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
.settings-card{display:flex;flex-direction:column}
.settings-head{
  display:flex;align-items:center;gap:14px;padding:22px 22px 18px;
  background:linear-gradient(135deg,#FFFFFF 0%,#EAF3FE 100%);border-bottom:1px solid #E1E9F3
}
.settings-head-icon{
  width:46px;height:46px;border-radius:14px;flex:none;display:grid;place-items:center;
  background:linear-gradient(135deg,#1670D0,#3BB3F0);color:#fff;box-shadow:0 6px 16px rgba(22,112,208,.3)
}
.settings-head h2{margin:0;font-size:19px;font-weight:700}
.settings-head p{margin:3px 0 0;font-size:13px;color:#5B6E86}
.settings-head>div{flex:1}
.settings-close{
  width:36px;height:36px;border-radius:10px;border:0;background:transparent;color:#5B6E86;
  font-size:24px;line-height:1;cursor:pointer;align-self:flex-start
}
.settings-close:hover{background:#E1E9F3;color:#10233F}
.settings-section{padding:18px 22px 4px;display:flex;flex-direction:column;gap:10px}
.settings-section-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.settings-section-head h3{margin:0;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#5B6E86}
.settings-section-head span{font-size:12px;color:#8A9BB0}
.settings-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;touch-action:none}
.settings-item{
  display:flex;align-items:center;gap:12px;padding:10px 12px 10px 8px;background:#fff;
  border:1px solid #E1E9F3;border-radius:14px;cursor:grab;user-select:none;
  box-shadow:0 1px 2px rgba(16,35,63,.04);transition:box-shadow .15s ease,border-color .15s ease,opacity .15s ease
}
.settings-item:hover{border-color:#BFD8F5;box-shadow:0 4px 12px rgba(16,35,63,.08)}
.settings-item:focus-visible{outline:2px solid #1670D0;outline-offset:2px}
.settings-item.is-dragging{
  cursor:grabbing;border-color:#1670D0;box-shadow:0 12px 28px rgba(22,112,208,.25);
  transform:scale(1.02);position:relative;z-index:2
}
.settings-list.is-sorting .settings-item:not(.is-dragging){opacity:.75}
.settings-grip{color:#A9B8CA;display:grid;place-items:center;width:20px;flex:none}
.settings-item:hover .settings-grip{color:#1670D0}
.settings-item-icon{
  width:38px;height:38px;border-radius:11px;flex:none;display:grid;place-items:center;
  background:#E6F2FF;color:#1670D0
}
.settings-item-text{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}
.settings-item-text strong{font-size:14px;font-weight:600}
.settings-item-text small{font-size:12px;color:#8A9BB0}
.settings-item.is-hidden .settings-item-icon{background:#EEF1F5;color:#A9B8CA}
.settings-item.is-hidden .settings-item-text strong{color:#8A9BB0}

.switch{position:relative;display:inline-flex;flex:none;cursor:pointer}
.switch input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.switch-track{
  width:42px;height:24px;border-radius:999px;background:#CDD7E3;position:relative;transition:background .18s ease
}
.switch-track::after{
  content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;
  background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .18s ease
}
.switch input:checked+.switch-track{background:#1670D0}
.switch input:checked+.switch-track::after{transform:translateX(18px)}
.switch input:focus-visible+.switch-track{outline:2px solid #1670D0;outline-offset:2px}

.settings-select{
  width:100%;height:46px;padding:0 40px 0 14px;border-radius:12px;border:1px solid #E1E9F3;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235B6E86' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance:none;font-size:14px;color:#10233F;cursor:pointer
}
.settings-select:focus{outline:2px solid #1670D0;outline-offset:1px;border-color:#1670D0}
.settings-actions{
  display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;
  padding:20px 22px 22px;margin-top:10px
}
.settings-actions-right{display:flex;gap:10px}
.settings-account-btn{
  display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;background:#fff;text-align:left;
  border:1px solid #E1E9F3;border-radius:14px;cursor:pointer;color:#10233F;font:inherit;
  transition:border-color .15s ease,box-shadow .15s ease
}
.settings-account-btn:hover{border-color:#BFD8F5;box-shadow:0 4px 12px rgba(16,35,63,.08)}
.settings-field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:#5B6E86}
.settings-input{height:44px;padding:0 14px;border-radius:12px;border:1px solid #E1E9F3;background:#fff;font-size:15px;color:#10233F}
.settings-input:focus{outline:2px solid #1670D0;outline-offset:1px;border-color:#1670D0}
.settings-message{margin:0;min-height:18px;font-size:13px;font-weight:600;color:var(--danger)}
.dialog-actions .user-reset-btn{margin-right:auto}
.settings-reset{border:0;background:transparent;color:#5B6E86;font-size:14px;font-weight:600;cursor:pointer;padding:8px 4px}
.settings-reset:hover{color:#1670D0;text-decoration:underline}

@media(max-width:680px){
  .auth-card{padding:30px 22px 24px}
  .auth-logo{height:80px}
  .home{padding:18px 14px 40px}
  .home .hub-logo{height:52px}
  .home-user-name{text-align:left;flex:1;min-width:0}
  .home-user{width:100%;gap:10px}
  .home-user #previewUserSelect{order:-1;flex:1 1 100%;width:100%;max-width:none}
  .home-logout{padding:0 14px}
}

/* Pregled sati (Dnevni unos) */
.hours{display:flex;flex-direction:column;gap:16px}
.hours-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.hours-seg{display:inline-flex;background:#E6EDF6;border-radius:10px;padding:3px}
.hours-seg button{border:0;background:transparent;padding:8px 14px;border-radius:8px;font-size:13px;font-weight:700;color:#5B6E86;cursor:pointer}
.hours-seg button.on{background:#fff;color:#10233F;box-shadow:0 1px 3px rgba(16,35,63,.12)}
.hours-week{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid #DCE4EE;border-radius:10px;padding:4px 6px;font-size:14px;font-weight:700}
.hours-week>span{padding:0 6px}
.hours-week button{border:0;background:transparent;color:#1F77B4;font-size:18px;font-weight:700;width:30px;height:30px;border-radius:8px;cursor:pointer}
.hours-week button:hover{background:#EEF4FA}
.hours-week .hours-today{width:auto;font-size:12px;padding:0 10px;background:#EEF4FA}
.hours-select{background:#fff;border:1px solid #DCE4EE;border-radius:10px;padding:9px 12px;font-size:13px;color:#10233F;min-width:180px}
.hours-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.hours-kpi{background:#fff;border:1px solid #E1E9F3;border-radius:14px;padding:16px 18px}
.hours-kpi span{display:block;font-size:12px;color:#5B6E86;font-weight:600}
.hours-kpi b{display:block;font-size:26px;margin:4px 0 2px;color:#10233F}
.hours-kpi small{color:#8A9BB0;font-size:12px}
.hours-kpi.warn b{color:#B4570B}
.hours-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.hours-card{background:#fff;border:1px solid #E1E9F3;border-radius:14px;padding:18px 20px;min-width:0}
.hours-card h2{margin:0 0 4px;font-size:16px}
.hours-full{grid-column:1/-1}
.hours-sub{margin:0 0 14px;font-size:12px;color:#8A9BB0}
.hours-empty{margin:0;color:#8A9BB0;font-size:14px}
.hours-bars{display:flex;flex-direction:column;gap:8px}
.hours-bars.tall{gap:16px}
.hours-bar-row{display:grid;grid-template-columns:130px minmax(0,1fr);align-items:center;gap:10px;font-size:13px}
.hours-bar-name{text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hours-bar-track{position:relative;display:flex;gap:2px;height:18px;margin-right:64px}
.hours-seg-part{display:block;height:100%;border-radius:4px;min-width:3px;cursor:default}
.hours-seg-part:hover{filter:brightness(1.08);outline:2px solid #fff;outline-offset:-1px}
.hours-bar-target{position:absolute;top:-4px;bottom:-4px;border-left:1.5px dashed rgba(16,35,63,.45)}
.hours-bar-val{position:absolute;top:50%;transform:translateY(-50%);font-weight:700;font-variant-numeric:tabular-nums;line-height:1.15;white-space:nowrap;font-size:12px}
.hours-bar-val small{display:block;font-weight:400;font-size:10px;color:#8A9BB0}
.hours-table th{text-transform:none;letter-spacing:0;background:transparent}
.hours-table td{border-bottom:0}
.hours-axis{display:grid;grid-template-columns:130px minmax(0,1fr);gap:10px;height:16px}
.hours-axis-track{margin-right:64px}
.hours-axis-track{position:relative}
.hours-axis em{position:absolute;transform:translateX(-50%);font-style:normal;font-size:11px;color:#8A9BB0;white-space:nowrap}
.hours-legend{display:flex;flex-wrap:wrap;gap:14px;margin-top:12px;font-size:12px;color:#5B6E86}
.hours-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;vertical-align:-1px}
.hours-table-wrap{overflow-x:auto}
.hours-table{width:100%;border-collapse:separate;border-spacing:3px;font-size:13px;min-width:640px}
.hours-table th{font-size:11px;color:#8A9BB0;font-weight:700;text-align:center;padding:4px;white-space:nowrap}
.hours-table th:first-child{text-align:left}
.hours-table th.is-today{color:#10233F}
.hours-table td{text-align:center;padding:8px 4px;border-radius:7px;font-weight:600;font-variant-numeric:tabular-nums}
.hours-table td.hl-name{text-align:left;padding-left:2px;white-space:nowrap}
.hours-table td.hl-total{font-weight:800}
.hours-shade-legend{display:inline-flex;align-items:center;gap:0}
.hours-shade-legend i{margin:0!important;border-radius:0!important;width:16px!important}
.hours-shade-legend i:first-of-type{margin-left:6px!important;border-radius:3px 0 0 3px!important}
.hours-shade-legend i:last-of-type{margin-right:6px!important;border-radius:0 3px 3px 0!important}
.hl-we{background:#F6F8FB;color:#C4CEDA}.hl-future{background:#FAFBFD}
.hl-miss{background:#fff;box-shadow:inset 0 0 0 1.5px #E3A06A;color:#B4570B;font-weight:700}
.hours-legend i.hl-miss{box-shadow:inset 0 0 0 1.5px #E3A06A}
.hours-person-link{border:0;background:transparent;padding:0;font:inherit;font-weight:600;color:#10233F;cursor:pointer}
.hours-person-link:hover{color:#1F77B4;text-decoration:underline}
.hours-cols{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:12px;align-items:end;height:260px}
.hours-col{display:flex;flex-direction:column;align-items:center;height:100%;gap:6px;border-radius:10px;padding:6px 4px}
.hours-col b{font-size:12px}
.hours-col-track{flex:1;width:56%;display:flex;align-items:flex-end}
.hours-col-track i{display:block;width:100%;background:#1F77B4;border-radius:4px 4px 0 0;min-height:2px}
.hours-col em{font-style:normal;font-size:12px;color:#5B6E86;white-space:nowrap}
.hours-col.is-current{background:#F1F6FB}
.hours-col.is-current em{color:#10233F;font-weight:700}
.hours-tip{position:fixed;z-index:50;pointer-events:none;background:#10233F;color:#fff;font-size:12px;line-height:1.4;padding:6px 9px;border-radius:8px;max-width:280px;opacity:0;transition:opacity .1s}
.hours-tip.show{opacity:1}
@media(max-width:900px){
  .hours-grid{grid-template-columns:1fr}
  .hours-kpis{grid-template-columns:1fr}
  .hours-bar-row,.hours-axis{grid-template-columns:96px minmax(0,1fr)}
  .hours-cols{gap:4px;height:220px}
  .hours-col em{font-size:10px}
}

