/* DEV-02: visual system translated from the approved Waqef CRM prototype. */
:root{--nav:#092843;--nav-active:#16425f;--teal:#0c9d8b;--ink:#0c1f32;--muted:#627386;--line:#e7edf3;--bg:#f6f9fc}
body{font-family:Tahoma,Arial,sans-serif;background:var(--bg);color:var(--ink)}
.app{grid-template-columns:255px minmax(0,1fr)}
.sidebar{background:var(--nav);padding:26px 16px;gap:20px}
.brand{font-size:1.32rem}.brand-mark{width:43px;height:43px;border-radius:14px;font-size:1.65rem}
.sidebar nav{gap:6px;margin-top:12px}.sidebar nav a{padding:12px 14px;border-radius:10px;font-size:.95rem;color:#c3d3df}
.sidebar nav a[aria-current],.sidebar nav a:hover{background:var(--nav-active)}
.sidebar nav a[aria-current]::before{content:"";width:8px;height:8px;border-radius:50%;background:#32d5b8;box-shadow:0 0 0 4px #32d5b818}
.sidebar nav a[aria-current] span:first-child{margin-left:auto}.user-card{padding:14px;background:#103650;border-color:#24516f;border-radius:14px}
.top{height:78px;padding:0 35px}.crumb{font-size:.96rem}.crumb strong{font-size:1.13rem}.page{padding:28px 35px 38px}
.button{border-radius:11px;min-height:46px}.primary{background:var(--teal);box-shadow:0 8px 20px #0c9d8b33}
.panel,.card{border-color:var(--line);border-radius:17px;box-shadow:0 5px 20px rgba(15,39,62,.035)}
.dashboard-hero{background:linear-gradient(125deg,#092e4d 0%,#12586a 56%,#0c9d8b 100%);border-radius:22px;padding:26px;color:#fff;display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}
.dashboard-hero h1{font-size:2rem;margin:3px 0 7px}.dashboard-hero p{color:#c9e6e9;margin:0}.dashboard-hero .eyebrow{font-size:.86rem;font-weight:700;color:#8ee5d6;letter-spacing:.05em}
.hero-date{display:grid;place-items:center;border:1px solid #ffffff2f;background:#ffffff12;border-radius:18px;padding:13px 20px;text-align:center;min-width:150px}.hero-date span{font-size:.76rem;color:#cbe8e8}.hero-date strong{font-size:.98rem;margin-top:4px}
.dashboard-stats{gap:14px}.stat{padding:18px}.stat:before{width:9px;height:9px;left:18px;top:20px}.stat span{font-size:.9rem}.stat b{font-size:2.1rem;margin:9px 0 3px}.stat small{font-size:.76rem;color:var(--muted)}
.stat-teal:before{background:#12b39e}.stat-blue:before{background:#4285df}.stat-amber:before{background:#e59a20}.stat-mint:before{background:#55c7b7}.stat-teal b,.stat-mint b{color:#078a78}.stat-blue b{color:#286dc7}.stat-amber b{color:#b97000}
.dashboard-panel{padding:20px}.dashboard-panel .panel-head{margin-bottom:9px}.dashboard-panel .panel-head p{font-size:.86rem;margin:3px 0 0}.text-link{font-weight:700;white-space:nowrap}
.page-heading{margin-bottom:22px}.page-heading h1{font-size:1.8rem}.list-row{padding:17px 0}.avatar{width:46px;height:46px;border-radius:14px;font-size:1.25rem}.badge{font-size:.78rem}
.module-hero{border-radius:22px;padding:27px 32px;color:#fff;display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.module-hero h1{font-size:2rem;margin:3px 0 6px}.module-hero p{color:#d6eff1;margin:0}.module-hero .eyebrow{color:#a9f1e3;font-size:.84rem;font-weight:700}.customers-hero{background:linear-gradient(125deg,#0b385c,#0d7d78 67%,#0c9d8b)}.requests-hero{background:linear-gradient(125deg,#153762,#276fa4 62%,#0c9d8b)}.module-hero .light{color:#093553;min-width:132px}.module-stats{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:22px}.directory-panel,.work-panel{padding:22px}.directory-list{margin-top:4px}.customer-row .text-link{font-size:.86rem}.customer-row .row-end{align-items:end}.work-panel .list-row{padding:20px 0}
.quotes-hero,.quote-detail-hero{background:linear-gradient(125deg,#4a236a,#8e4386 58%,#c06438)}.contracts-hero,.contract-detail-hero{background:linear-gradient(125deg,#134166,#147879 58%,#0c9d8b)}.service-hero,.service-detail-hero{background:linear-gradient(125deg,#48236a,#6a4797 58%,#8259b0)}.installations-hero,.installation-detail-hero{background:linear-gradient(125deg,#714a0b,#a4741b 58%,#d59015)}.satisfaction-hero,.satisfaction-detail-hero{background:linear-gradient(125deg,#0a5865,#168b91 58%,#37b7ad)}.state-draft{background:#fff3dd;color:#a76200}.state-sent{background:#e6efff;color:#245bb6}.state-accepted{background:#e1f8ef;color:#087c66}.state-declined,.state-expired{background:#fde9e7;color:#b44835}.state-upcoming,.state-scheduled,.state-assigned{background:#e6efff;color:#245bb6}.state-cancelled,.state-closed{background:#fde9e7;color:#b44835}.state-open,.state-in_progress,.state-inspection{background:#f1e9ff;color:#663e94}.state-wait_customer,.state-handover,.state-planned,.state-pending{background:#fff3dd;color:#a76200}.state-completed,.state-responded{background:#e1f8ef;color:#087c66}
.reports-hero{background:linear-gradient(125deg,#092e4d,#12586a 56%,#0c9d8b)}.report-stats{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:22px}.report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.report-grid .panel{padding:22px}.mini-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0 16px}.mini-kpis div{border:1px solid var(--line);border-radius:12px;padding:12px}.mini-kpis span,.mini-kpis small{display:block;color:var(--muted);font-size:.8rem}.mini-kpis b{display:block;color:var(--ink);font-size:1.5rem;margin-top:4px}.small-empty{padding:20px 0;color:var(--muted)}
@media(max-width:1100px){.app{grid-template-columns:220px minmax(0,1fr)}.page,.top{padding-right:24px;padding-left:24px}.module-stats{grid-template-columns:repeat(3,minmax(0,1fr)}}
@media(max-width:700px){.app{display:block}.sidebar{position:static;height:auto;padding:18px;gap:18px}.sidebar .brand{justify-content:center}.sidebar nav{display:flex;overflow-x:auto;gap:7px}.sidebar nav a{padding:10px 14px;white-space:nowrap}.sidebar nav a span{display:none}.sidebar nav a[aria-current]::before{display:none}.top{height:auto;padding:15px;flex-wrap:wrap}.page{padding:20px 15px}.dashboard-hero,.module-hero{display:block;padding:23px}.dashboard-hero h1,.module-hero h1{font-size:1.6rem}.hero-date{display:inline-grid;margin-top:18px;min-width:0}.module-hero .light{margin-top:18px}.module-stats,.report-stats,.report-grid{grid-template-columns:1fr}.customer-row .row-end{align-items:start}.dashboard-panel .panel-head{align-items:flex-start;flex-wrap:wrap}}
