:root{--bg:#f4f6fa;--card:#fff;--text:#182132;--muted:#6b7280;--line:#e5e9f0;--accent:#8b1e3f;--accent2:#6f1531;--soft:#f8eef2;--shadow:0 12px 35px rgba(18,28,45,.07)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,Segoe UI,Arial,sans-serif;font-size:15px}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:none}.topbar{height:74px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:10px clamp(18px,4vw,48px);position:sticky;top:0;z-index:20}.brand a{display:flex;align-items:center;min-width:0}.brand img{max-height:48px;max-width:210px;object-fit:contain}.brand-text{font-size:24px;font-weight:850;color:var(--text)}.brand-text:after{content:'';display:inline-block;width:7px;height:7px;background:var(--accent);border-radius:50%;margin-inline-start:6px}.top-actions{display:flex;align-items:center;gap:10px}.user-chip{padding:9px 13px;background:#f6f7f9;border:1px solid var(--line);border-radius:10px;color:var(--text);font-weight:700}.lang-switch{display:inline-flex;border:1px solid var(--line);background:#fff;border-radius:10px;padding:3px;gap:3px}.lang-switch a{padding:6px 9px;border-radius:7px;font-size:12px;font-weight:800;color:var(--muted)}.lang-switch a.active{background:var(--accent);color:#fff}.app-shell{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:calc(100vh - 74px)}.sidebar{background:#fff;border-inline-end:1px solid var(--line);padding:26px 14px}.sidebar-label{font-size:11px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:#9aa2af;padding:0 12px 12px}.side-nav{display:grid;gap:5px}.side-nav a{display:flex;align-items:center;gap:11px;padding:12px 13px;border-radius:11px;color:#475467;font-weight:700}.side-nav a span{width:22px;text-align:center;font-size:17px}.side-nav a:hover{background:#f7f7f9;color:var(--accent)}.side-nav a.active{background:var(--soft);color:var(--accent)}.container{width:min(1180px,94%);margin:0 auto}.app-content{padding:34px 30px 70px;width:100%}.public-content{padding-top:42px;padding-bottom:70px}.card{background:var(--card);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:24px}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}.page-head h2{margin:5px 0 7px;font-size:30px}.eyebrow{font-size:11px;color:var(--accent);font-weight:850;letter-spacing:1.2px;text-transform:uppercase}.muted{color:var(--muted);line-height:1.7}.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:43px;padding:11px 16px;border:0;border-radius:10px;background:var(--accent);color:#fff!important;font-weight:800;cursor:pointer}.btn:hover{background:var(--accent2)}.btn.secondary{background:#eef1f5;color:var(--text)!important}.btn.tiny{min-height:35px;padding:7px 11px;font-size:12px}.grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}.stat-card,.stat{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px}.stat-card span,.stat{color:var(--muted);font-weight:700}.stat-card b,.stat b{display:block;font-size:30px;color:var(--text);margin-top:7px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,.8fr);gap:18px}.quick-card{display:grid;gap:10px}.quick-link{display:flex;align-items:center;justify-content:space-between;border:1px solid var(--line);border-radius:12px;padding:13px;color:var(--text);font-weight:750}.quick-link:hover{border-color:#d9b8c4;background:#fffafa}h1,h2,h3{letter-spacing:-.3px}h3{margin-top:0}table{width:100%;border-collapse:collapse}th,td{text-align:start;padding:13px 10px;border-bottom:1px solid var(--line);vertical-align:middle}th{font-size:12px;color:#7a8492;text-transform:uppercase;letter-spacing:.3px}td small{display:block;color:var(--muted);margin:4px 0 0}tr:last-child td{border-bottom:0}.badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:#f3e8ed;color:var(--accent);font-size:12px;font-weight:800}.status-5{background:#eaf7ef;color:#16713a}.status-6{background:#fff0f0;color:#a51d2d}.table-wrap{overflow-x:auto}.form{max-width:900px;margin:auto}.login{max-width:460px;margin:55px auto}label{display:block;font-weight:750;margin:0 0 7px}input,select,textarea{width:100%;border:1px solid #d7dde6;background:#fff;border-radius:10px;padding:12px 13px;font:inherit;color:var(--text);outline:0;transition:.18s;margin-bottom:16px}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(139,30,63,.1)}textarea{min-height:120px;resize:vertical}.row,.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.filter-card{margin-bottom:18px}.filters{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto;gap:12px;align-items:end}.search-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}.filter-actions{display:flex;gap:8px;align-items:end;padding-bottom:16px}.filter-actions .btn{white-space:nowrap}.result-count{display:inline-flex;background:#f0f2f5;border-radius:999px;padding:4px 8px;font-size:12px;color:var(--muted);vertical-align:middle}.alert{padding:13px 15px;border-radius:11px;margin-bottom:18px;border:1px solid #d9eadf;background:#eef8f1;color:#21683b}.alert.error{background:#fff0f0;border-color:#f1cccc;color:#9b2020}.file{padding:12px;background:#f7f8fa;border:1px dashed #cbd2dd;border-radius:10px;margin-top:10px}.timeline{display:grid;gap:12px}.item{padding:14px;border-inline-start:4px solid var(--accent);background:#fafbfc;border-radius:8px}.item strong{display:block}.item .muted{font-size:12px}.logo-box{display:grid;grid-template-columns:1fr 280px;gap:22px;align-items:center;margin-top:18px}.logo-preview{padding:14px;border:1px dashed var(--line);border-radius:12px;background:#fafafa;text-align:center}.logo-preview img{max-width:220px;max-height:90px;object-fit:contain}.check{display:flex;align-items:center;gap:8px;font-weight:650}.check input{width:18px;height:18px;margin:0}.switch-card{border:1px solid var(--line);border-radius:13px;padding:15px;background:#fafbfc}.switch-card small{margin:7px 0 0 26px}.settings-section{margin-bottom:18px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px}.section-title h3{margin:0}.sticky-actions{justify-content:flex-end;margin-top:20px}.empty{text-align:center;padding:42px 20px}.hero{min-height:62vh;display:grid;place-items:center}.hero-card{width:min(850px,100%);padding:65px 50px;text-align:center;background:radial-gradient(circle at top right,#fff 0,#f8eef2 45%,#fff 100%);border:1px solid #eadde3}.hero-card h1{font-size:clamp(34px,5vw,58px);margin:10px 0 16px}.hero-card .actions{justify-content:center;margin-top:24px}.hero-card .muted{max-width:700px;margin:auto}hr{border:0;border-top:1px solid var(--line);margin:24px 0}@media(max-width:1050px){.filters{grid-template-columns:1fr 1fr}.filter-actions{padding-bottom:0}.dashboard-grid{grid-template-columns:1fr}.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:800px){.app-shell{grid-template-columns:1fr}.sidebar{border-inline-end:0;border-bottom:1px solid var(--line);padding:12px}.sidebar-label{display:none}.side-nav{display:flex;overflow:auto}.side-nav a{white-space:nowrap}.app-content{padding:24px 16px 50px}.page-head{align-items:flex-start;flex-direction:column}.row,.settings-grid{grid-template-columns:1fr}.logo-box{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filters{grid-template-columns:1fr}.search-line{grid-template-columns:1fr}.topbar{height:auto;min-height:70px}.user-chip{display:none}.hero{min-height:auto}.hero-card{padding:38px 22px}}@media(max-width:480px){.container{width:94%}.stats-grid,.grid{grid-template-columns:1fr}.topbar{padding:10px 14px}.brand img{max-width:160px}.top-actions{gap:5px}th,td{padding:11px 8px}}
.price-summary{display:flex;align-items:center;justify-content:space-between;padding:16px;border-radius:12px;background:var(--soft);margin:4px 0 18px}.price-summary strong{font-size:22px;color:var(--accent)}.notification-badge{display:inline-flex;min-width:20px;height:20px;align-items:center;justify-content:center;border-radius:999px;background:var(--accent);color:#fff;font-size:11px;margin-inline-start:5px}.compact{gap:12px}.link-danger{border:0;background:none;color:#a51d2d;font:inherit;font-weight:750;cursor:pointer;padding:6px}.invoice-card{border:1px solid var(--line);border-radius:14px;padding:18px;background:#fff}.invoice-total{font-size:24px;font-weight:900;color:var(--accent)}.notification-row{display:flex;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid var(--line)}.notification-row:last-child{border-bottom:0}.notification-row.unread{background:#fffafc;margin:0 -12px;padding:16px 12px;border-radius:10px}.notification-row p{margin:5px 0;line-height:1.6}.notification-row small{white-space:nowrap}@media(max-width:600px){.notification-row{flex-direction:column;gap:5px}}
.notification-bell{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;height:40px;text-decoration:none;font-size:19px;border:1px solid var(--border,#ddd);border-radius:12px;background:var(--card,#fff)}.notification-bell .notification-badge{position:absolute;top:-5px;right:-5px;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#b42318;color:#fff;font-size:11px;display:flex;align-items:center;justify-content:center}.notification-row.unread{border-inline-start:4px solid #8b1e3f;background:rgba(139,30,63,.06)}.sidebar{position:sticky;top:74px;height:calc(100vh - 74px);overflow:auto;padding:18px 12px 24px;background:linear-gradient(180deg,#fff 0%,#fbfcfe 100%)}
.sidebar-head{padding:4px 10px 16px;border-bottom:1px solid var(--line);margin-bottom:10px}.sidebar-role{font-size:11px;color:var(--muted);margin-top:4px;text-transform:capitalize}.sidebar-group-title{font-size:10px;font-weight:900;color:#9aa2af;letter-spacing:.8px;text-transform:uppercase;padding:15px 12px 6px}.side-nav{gap:3px}.side-nav a{position:relative;min-height:42px;padding:10px 11px}.side-nav a .nav-icon{width:24px;min-width:24px;text-align:center;font-size:16px}.side-nav a .nav-label{flex:1}.sidebar-divider{height:1px;background:var(--line);margin:12px 8px}.side-nav .notification-badge{margin-inline-start:auto}.email-toolbar{display:flex;flex-wrap:wrap;gap:6px;margin:-2px 0 8px}.email-editor{min-height:280px}.email-preview{margin-top:12px;border:1px solid var(--line);border-radius:12px;background:#eef1f5;padding:14px;min-height:180px;overflow:auto}.email-preview > *{max-width:100%}.email-vars{line-height:2;word-break:break-word}
@media(max-width:800px){.sidebar{position:static;height:auto;overflow:visible}.sidebar-head{display:flex;align-items:center;justify-content:space-between}.sidebar-role{margin:0}.sidebar-group-title{display:none}.side-nav{display:flex;overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px}.side-nav a{white-space:nowrap}.side-nav a .nav-label{flex:0 0 auto}.sidebar-divider{display:none}}
.report-bar,.report-line-row{margin:14px 0}.report-bar>div:first-child,.report-label{display:flex;justify-content:space-between;gap:12px;margin-bottom:7px}.report-bar .bar-track,.report-line-row .bar-track{height:10px;background:#eef1f5;border-radius:999px;overflow:hidden}.report-bar .bar-track span,.report-line-row .bar-track span{display:block;height:100%;background:var(--accent);border-radius:999px}.report-line-row{display:grid;grid-template-columns:150px 1fr 130px;gap:12px;align-items:center}.report-line-row small{text-align:end;color:var(--muted)}.payment-summary{display:grid;gap:12px}.payment-summary>div{display:flex;justify-content:space-between;padding:14px;border-radius:12px;background:var(--soft)}.payment-summary b{color:var(--accent)}@media(max-width:700px){.report-line-row{grid-template-columns:1fr}.report-line-row small{text-align:start}}
/* V48 mobile tables and forms */
@media(max-width:700px){.table-wrap{margin-inline:-4px}.table-wrap table{min-width:680px}.card{padding:16px}.btn{min-height:40px}.filters{gap:8px}.filters .filter-actions{display:flex;flex-wrap:wrap}.form{width:100%}input,select,textarea{font-size:16px}.page-head h2{font-size:25px}.stat-card{padding:14px}.stat-card b{font-size:25px}}

/* V49 mobile operations */
@media (max-width: 760px){
  .app-shell{display:block}.sidebar{position:sticky;top:0;z-index:20;max-height:none;overflow-x:auto}.side-nav{display:flex;gap:6px;overflow-x:auto;white-space:nowrap;padding-bottom:6px}.side-nav a{flex:0 0 auto}.sidebar-group-title,.sidebar-divider{display:none}.container{padding:14px}.page-head{gap:12px}.page-head,.section-title{flex-wrap:wrap}.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}.table-wrap table{min-width:720px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.row,.settings-grid,.dashboard-grid{grid-template-columns:1fr!important;display:grid}.btn{min-height:42px}.filter-card form,.filters{grid-template-columns:1fr!important;display:grid}.top-actions{gap:6px}.user-chip{max-width:140px;overflow:hidden;text-overflow:ellipsis}.card{padding:14px}}

/* V57 Operations Center */
.ops-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 18px}
.ops-card{display:flex;align-items:center;gap:12px;padding:17px;border:1px solid var(--line);border-radius:16px;background:#fff;text-decoration:none;color:inherit;box-shadow:0 6px 20px rgba(20,30,50,.04);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.ops-card:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(20,30,50,.08);border-color:#cfd6e2}
.ops-icon{font-size:23px;line-height:1}.ops-copy{display:grid;gap:4px;flex:1}.ops-copy small{color:var(--muted);font-weight:700;line-height:1.3}.ops-copy strong{font-size:26px}.ops-arrow{font-size:25px;color:var(--muted)}
.ops-card.ops-danger{border-inline-start:4px solid #b42318}.ops-card.ops-attention{border-inline-start:4px solid #b54708}.ops-card.ops-review{border-inline-start:4px solid #7a5af8}.ops-card.ops-delivery{border-inline-start:4px solid #147d64}.ops-card.ops-money{border-inline-start:4px solid #8b1e3f}
.ops-summary{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.ops-summary>div:first-child{display:grid;gap:5px}.ops-legend{display:flex;gap:16px;flex-wrap:wrap;font-size:12px;font-weight:700;color:var(--muted)}.ops-reasons{display:flex;gap:5px;flex-wrap:wrap}.ops-tag{display:inline-flex;padding:5px 8px;border-radius:999px;background:#fff5e8;color:#9a4d00;font-size:11px;font-weight:800}.ops-tag.danger{background:#fff0f0;color:#a51d2d}
@media(max-width:1050px){.ops-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.ops-grid{grid-template-columns:1fr}.ops-summary{align-items:flex-start;flex-direction:column}.ops-legend{gap:8px}.ops-card{padding:14px}.ops-copy strong{font-size:24px}}
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:18px 0}.metric-row{display:flex;justify-content:space-between;gap:15px;padding:14px 0;border-bottom:1px solid rgba(0,0,0,.08)}.metric-row:last-child{border-bottom:0}.card small{display:block;color:#7a8492;margin-top:4px}@media(max-width:760px){.grid-2{grid-template-columns:1fr}.metric-row{font-size:14px}}

/* V62 customer management */
.danger{border-color:#b42318!important;color:#b42318!important}

/* V78 collapsible sidebar */
.sidebar-group-title{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;user-select:none;border-radius:9px;transition:.18s}.sidebar-group-title:hover{background:#f7f7f9;color:var(--accent)}.sidebar-group-title:focus{outline:2px solid rgba(139,30,63,.2);outline-offset:1px}.sidebar-group-title .group-label{flex:1}.sidebar-group-title .group-chevron{font-size:15px;transition:transform .18s;color:#98a0ad}.sidebar-group-title.open .group-chevron{transform:rotate(180deg);color:var(--accent)}.sidebar-group-items{display:grid;gap:3px;overflow:hidden;max-height:0;opacity:0;transition:max-height .22s ease,opacity .18s ease}.sidebar-group-items.open{max-height:900px;opacity:1}
@media(max-width:800px){.sidebar{padding-bottom:10px}.side-nav{display:block;overflow:visible}.sidebar-group-title{padding:9px 10px;margin-top:3px;background:#fafbfc;border:1px solid var(--line);font-size:10px}.sidebar-group-items{display:none;padding:4px 0}.sidebar-group-items.open{display:grid;max-height:none}.sidebar-group-items a{white-space:normal}}

/* V80 Premium Admin Dashboard */
body.staff-ui{background:#f5f7fb}
.staff-ui .topbar{height:78px;padding:12px 28px;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);box-shadow:0 1px 0 rgba(15,23,42,.04)}
.staff-ui .topbar .brand{display:none}
.staff-ui .top-actions{margin-inline-start:auto}
.staff-ui .app-shell{grid-template-columns:300px minmax(0,1fr);min-height:calc(100vh - 78px)}
.staff-ui .sidebar{position:sticky;top:0;height:100vh;max-height:100vh;overflow-y:auto;padding:0 14px 18px;background:linear-gradient(180deg,#101b36 0%,#172443 55%,#101a31 100%);border:0;color:#fff;box-shadow:8px 0 30px rgba(15,23,42,.12)}
.staff-ui .sidebar-brand{padding:22px 14px 18px;border-bottom:1px solid rgba(255,255,255,.1);margin-bottom:10px}
.staff-ui .sidebar-brand a{display:flex;align-items:center;gap:11px;color:#fff}
.staff-ui .sidebar-brand img{width:42px;height:42px;object-fit:contain;background:#fff;border-radius:10px;padding:5px}
.staff-ui .sidebar-brand strong{font-size:19px;letter-spacing:-.3px;color:#fff}
.staff-ui .sidebar-brand small{display:block;margin-top:7px;color:#aeb9d0;font-size:13px;line-height:1.5}
.staff-ui .sidebar-head{padding:7px 12px 12px;border:0;margin:0}
.staff-ui .sidebar-label{color:#aeb9d0;font-size:12px;font-weight:700;padding:0 0 7px}
.staff-ui .sidebar-role{color:#fff;font-size:15px;font-weight:700}
.staff-ui .sidebar-group-title{color:#aeb9d0;padding:18px 11px 8px;font-size:12px;font-weight:800;line-height:1.5}
.staff-ui .sidebar-group-title:hover{background:rgba(255,255,255,.06);color:#fff}
.staff-ui .sidebar-group-title .group-chevron{color:#93a0b9}
.staff-ui .sidebar-group-title.open .group-chevron{color:#fff}
.staff-ui .sidebar-group-items{gap:3px}
.staff-ui .side-nav a{min-height:48px;padding:12px 11px;border-radius:10px;color:#e3e8f2;font-weight:700;font-size:16px;line-height:1.45}
.staff-ui .side-nav a:hover{background:rgba(255,255,255,.07);color:#fff}
.staff-ui .side-nav a.active{background:linear-gradient(90deg,#5367e8,#4658d4);color:#fff;box-shadow:0 7px 18px rgba(70,88,212,.28)}
.staff-ui .side-nav a .nav-icon{color:inherit;font-size:20px;width:28px;min-width:28px;text-align:center}
.staff-ui .sidebar-divider{background:rgba(255,255,255,.1);margin:12px 8px}
.staff-ui .sidebar .notification-badge{background:#d81b55}
.staff-ui .app-content{padding:30px 34px 60px;max-width:1500px}
.staff-ui .page-head{margin-bottom:24px}
.staff-ui .page-head h2{font-size:34px;font-weight:850;margin:7px 0 5px}
.staff-ui .eyebrow{color:#5367e8}
.staff-ui .page-head .muted{font-size:14px}
.staff-dashboard-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}
.staff-welcome{display:grid;gap:4px}.staff-welcome h1{font-size:30px;margin:0;font-weight:850}.staff-welcome p{margin:0;color:#7a8497}
.staff-date{background:#fff;border:1px solid #e6eaf1;border-radius:14px;padding:12px 15px;color:#5d6880;font-weight:750;box-shadow:0 6px 20px rgba(20,30,50,.04)}
.staff-ui .stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}
.staff-ui .stat-card{position:relative;min-height:158px;padding:18px 16px 20px;border-radius:17px;box-shadow:0 8px 26px rgba(20,30,50,.05);overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:0}
.staff-ui .stat-card:before{content:'◈';position:static;width:46px;height:46px;flex:0 0 46px;display:grid;place-items:center;margin:0 auto 10px;border-radius:13px;background:#eef2ff;color:#5367e8;font-size:19px;font-weight:900}
.staff-ui .stat-card:nth-child(2):before{content:'▤';background:#fff0e4;color:#ff8a32}
.staff-ui .stat-card:nth-child(3):before{content:'▣';background:#f1eaff;color:#7b3ff2}
.staff-ui .stat-card:nth-child(4):before{content:'$';background:#e4fbf4;color:#13ad84}
.staff-ui .stat-card span{font-size:12px;color:#7b8599;display:block;line-height:1.4;white-space:nowrap}
.staff-ui .stat-card b{font-size:27px;margin-top:6px;line-height:1.15;direction:ltr;unicode-bidi:plaintext;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.staff-dashboard-main{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(300px,.85fr);gap:18px;margin-bottom:18px}
.staff-ui .card{border-radius:18px;box-shadow:0 8px 28px rgba(20,30,50,.05);border-color:#e7ebf2}
.staff-chart{min-height:335px}.staff-chart .section-title{margin-bottom:18px}.staff-chart svg{width:100%;height:235px;display:block}.staff-chart .axis{stroke:#e8ecf3;stroke-width:1}.staff-chart .line{fill:none;stroke:#6d42e8;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.staff-chart .area{fill:url(#chartFill)}.staff-chart .dot{fill:#fff;stroke:#6d42e8;stroke-width:4}.staff-chart .chart-label{fill:#7b8599;font-size:11px}.staff-chart .chart-value{fill:#fff;font-size:11px;font-weight:800}
.staff-status{min-height:335px}.status-flex{display:flex;align-items:center;gap:24px}.donut{width:180px;height:180px;flex:0 0 180px}.status-legend{display:grid;gap:12px}.status-legend div{display:grid;grid-template-columns:10px 1fr auto;gap:9px;align-items:center;font-size:12px;color:#68748b}.status-legend i{width:9px;height:9px;border-radius:50%;display:block}.status-legend b{color:#2b3446}
.staff-lower-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px}.staff-list{display:grid;gap:10px}.staff-list-item{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #edf0f5;border-radius:12px;background:#fbfcfe}.staff-list-item .grow{flex:1}.staff-list-item strong{display:block;font-size:13px}.staff-list-item small{color:#8791a3;font-size:11px}.staff-list-item .mini-status{font-size:10px;font-weight:800;padding:5px 8px;border-radius:999px;background:#edf8f1;color:#198754}.staff-list-item .mini-status.warn{background:#fff4e8;color:#c56b09}.staff-ui .quick-link{background:#fbfcfe}.staff-ui .quick-link:hover{background:#fff;border-color:#d7dcf0}
.staff-ui .table-wrap{border-radius:12px}.staff-ui th{color:#7d8799}.staff-ui td{color:#3d475b}
@media(max-width:1100px){.staff-ui .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.staff-dashboard-main{grid-template-columns:1fr}.staff-lower-grid{grid-template-columns:1fr 1fr}}
@media(max-width:800px){.staff-ui .app-shell{grid-template-columns:1fr}.staff-ui .sidebar{position:static;height:auto;max-height:none}.staff-ui .sidebar-brand{padding:14px 10px}.staff-ui .sidebar-group-title{display:flex}.staff-ui .side-nav{display:block}.staff-ui .side-nav a{white-space:normal}.staff-ui .app-content{padding:22px 14px 50px}.staff-dashboard-head{align-items:flex-start;flex-direction:column}.staff-welcome h1{font-size:25px}.staff-lower-grid{grid-template-columns:1fr}.status-flex{flex-direction:column;align-items:flex-start}.staff-status .donut{align-self:center}}

/* Payment summary cards: clean RTL layout, no label/value overlap. */
.payment-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch}
.payment-stats .payment-stat{position:relative;min-width:0;min-height:150px;padding:25px 24px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;overflow:hidden}
.payment-stats .payment-stat:before{content:'◈';position:absolute;inset-inline-end:24px;top:22px;width:48px;height:48px;border-radius:14px;display:grid;place-items:center;font-size:20px;font-weight:900}
.payment-stats .payment-total:before{background:#eef2ff;color:#5367e8}
.payment-stats .payment-paid:before{content:'▤';background:#fff0e4;color:#ff8a32}
.payment-stats .payment-remaining:before{content:'▣';background:#f1eaff;color:#7b3ff2}
.payment-stats .payment-stat span{display:block;max-width:70%;margin-bottom:12px;color:#7b8599;font-size:14px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.payment-stats .payment-stat b{display:block;max-width:100%;white-space:nowrap;direction:ltr;unicode-bidi:plaintext;font-variant-numeric:tabular-nums;font-size:32px;line-height:1.15;letter-spacing:-.5px;color:#182132}
@media(max-width:900px){.payment-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.payment-stats{grid-template-columns:1fr}.payment-stats .payment-stat{min-height:130px}.payment-stats .payment-stat b{font-size:28px}}

/* V82 profile and login activity */
.user-chip{display:inline-flex;align-items:center;gap:8px}.avatar{display:inline-grid;place-items:center;border-radius:50%;overflow:hidden;object-fit:cover;background:#eef2f8;flex:0 0 auto}.avatar-sm{width:30px;height:30px}.avatar-md{width:48px;height:48px}.avatar-placeholder{font-weight:700;color:#5367e8}.avatar img{width:100%;height:100%;object-fit:cover}.sidebar-user-avatar{margin-bottom:8px}.profile-card{display:grid;grid-template-columns:auto 1fr;gap:20px;align-items:center}.profile-avatar-large{width:120px;height:120px;border-radius:50%;overflow:hidden;background:#eef2f8;display:grid;place-items:center;font-size:42px;color:#5367e8}.profile-avatar-large img{width:100%;height:100%;object-fit:cover}.filters{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto;gap:12px;align-items:end;margin-bottom:18px}.filters label{display:block;margin-bottom:6px}.filters input,.filters select{width:100%}@media(max-width:900px){.filters{grid-template-columns:1fr 1fr}.profile-card{grid-template-columns:1fr;text-align:center}.profile-avatar-large{margin:auto}}

/* V89 — redesigned invoice & payment screen */
.payment-page-head{margin-bottom:18px}.small-text{font-size:13px;margin:3px 0 0}.payment-hero-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:18px}.payment-hero-card{position:relative;min-height:110px;padding:22px 26px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow);overflow:hidden}.payment-hero-card:before{content:'▣';position:absolute;inset-inline-end:24px;top:22px;width:48px;height:48px;border-radius:15px;display:grid;place-items:center;font-size:21px;font-weight:900;background:#f1eaff;color:#7b3ff2}.payment-hero-card.total:before{content:'$';background:#f8e9ef;color:var(--accent)}.payment-hero-card span{display:block;color:var(--muted);font-weight:700;font-size:13px;margin-bottom:8px}.payment-hero-card strong{display:block;color:var(--accent);font-size:27px;line-height:1.15;direction:ltr;unicode-bidi:plaintext;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-inline-end:65px}.payment-main-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,.8fr);gap:18px;margin-bottom:18px}.payment-entry-card,.payment-summary-card,.update-payment-card{min-width:0}.payment-summary-card{background:linear-gradient(180deg,#fff7fa,#fff);border-color:#eedfe5}.payment-summary-card h3{color:var(--accent);margin-bottom:18px}.summary-line{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.summary-line span{color:#526074}.summary-line b{direction:ltr;unicode-bidi:plaintext;font-variant-numeric:tabular-nums}.summary-line.paid b{color:#159447}.summary-line.remaining b{color:var(--accent)}.payment-progress{padding-top:18px}.payment-progress>div:first-child{display:flex;justify-content:space-between;gap:12px;margin-bottom:8px}.payment-progress b{direction:ltr}.progress-track{height:10px;background:#e9edf3;border-radius:999px;overflow:hidden}.progress-track span{display:block;height:100%;background:var(--accent);border-radius:999px;transition:width .25s ease}.summary-status{padding-top:16px}.money-input{display:grid;grid-template-columns:72px minmax(0,1fr);margin-bottom:16px}.money-input span{display:flex;align-items:center;justify-content:center;border:1px solid #d7dde6;border-inline-end:0;border-radius:10px 0 0 10px;background:#f4f6f8;color:var(--muted);font-weight:800;direction:ltr}.money-input input{border-radius:0 10px 10px 0;margin-bottom:0;direction:ltr}.payment-entry-card textarea{min-height:125px}.payment-actions{margin-top:3px}.payment-complete{display:flex;align-items:center;gap:15px;padding:22px;border:1px solid #cfe8d8;background:#f0faf3;border-radius:14px}.complete-icon{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#dcf5e4;color:#15803d;font-weight:900;font-size:21px}.payment-complete strong{font-size:17px}.payment-total-box{min-width:170px;padding:12px 18px;background:var(--soft);border-radius:13px;text-align:end}.payment-total-box span{display:block;color:var(--muted);font-size:12px}.payment-total-box strong{display:block;color:var(--accent);font-size:22px;direction:ltr;unicode-bidi:plaintext;white-space:nowrap}.update-payment-card .section-title{align-items:flex-start}.update-fields{align-items:end}.update-fields form{margin:0}.update-fields form select{margin-bottom:12px}.update-fields form .btn{width:100%}.status-timeline{min-width:0}.quick-statuses{display:flex;flex-wrap:wrap;gap:8px}.quick-statuses form{margin:0}.quick-status{border:1px solid var(--line);background:#fff;border-radius:9px;padding:9px 12px;font-weight:800;cursor:pointer}.quick-status:hover{border-color:#d4b4c1}.quick-status.paid{color:#16803d;background:#eef9f1}.quick-status.partial{color:#b26a00;background:#fff7e8}.quick-status.unpaid{color:#3267c8;background:#eef4ff}.quick-status.refunded{color:#9b203f;background:#f9edf1}.status-paid{background:#eaf7ef;color:#16713a}.amount-positive{color:#16803d;font-weight:800;direction:ltr;unicode-bidi:plaintext}.payment-entry-card .section-title,.update-payment-card .section-title{margin-bottom:18px}@media(max-width:900px){.payment-main-grid{grid-template-columns:1fr}.payment-hero-stats{grid-template-columns:1fr}.update-fields{grid-template-columns:1fr}.payment-total-box{min-width:0;width:100%;text-align:start}}@media(max-width:560px){.payment-page-head .actions{width:100%}.payment-page-head .actions .btn{flex:1}.payment-hero-card strong{font-size:24px}.money-input{grid-template-columns:64px minmax(0,1fr)}.quick-statuses{display:grid;grid-template-columns:1fr 1fr}.quick-status{width:100%}}

/* V90 — unified order details layout */
.order-management-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start;margin-bottom:18px}
.order-management-grid>.order-info-card{grid-column:1;grid-row:1}
.order-management-grid>.order-finance-card{grid-column:2;grid-row:1 / span 2}
.order-management-grid>.order-translation-card{grid-column:1 / -1;grid-row:3}
.order-management-grid>.card{min-width:0}
.order-finance-card{padding:22px}
.order-finance-card .section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}
.order-finance-card .section-heading h3{margin:0 0 4px}
.finance-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:16px}
.finance-summary-grid .price-summary{margin:0;min-width:0;padding:13px 14px;background:#fbf5f7;border:1px solid #f0e1e6;border-radius:12px}
.finance-summary-grid .price-summary span{display:block;font-size:11px;color:var(--muted);margin-bottom:6px;white-space:nowrap}
.finance-summary-grid .price-summary strong{display:block;font-size:17px;color:var(--accent);direction:ltr;unicode-bidi:plaintext;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.finance-section{padding:17px 0;border-top:1px solid var(--line)}
.finance-section:first-of-type{border-top:0;padding-top:0}
.finance-section-title{display:flex;align-items:center;gap:10px;margin-bottom:13px}
.finance-section-title .section-number{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#e7f7ee;color:#16803d;font-weight:900;flex:0 0 auto}
.finance-section-title strong{display:block;font-size:16px}
.finance-section-title small{display:block;color:var(--muted);font-size:11px;margin-top:2px}
.total-highlight{background:#effaf3!important;border-color:#cfe8d8!important}
.total-highlight strong{color:#16803d!important;font-size:22px!important;direction:ltr;unicode-bidi:plaintext;white-space:nowrap}
.status-actions{display:flex;flex-wrap:wrap;gap:7px}
.status-chip{padding:7px 10px;border-radius:999px;background:#f4f6f8;color:#7b8594;font-size:11px;font-weight:800}
.status-chip.active{background:#eaf7ef;color:#16713a}
.order-translation-card{padding:22px}
.order-translation-card>hr{margin:18px 0}
@media(max-width:900px){.order-management-grid{grid-template-columns:1fr}.order-management-grid>.order-info-card,.order-management-grid>.order-finance-card,.order-management-grid>.order-translation-card{grid-column:1;grid-row:auto}.finance-summary-grid{grid-template-columns:1fr}}

/* V97 — Order page visual refinement */
.order-page-head{background:linear-gradient(135deg,#fff 0%,#fbf5f7 100%);border:1px solid var(--line);border-radius:20px;padding:22px 24px;box-shadow:var(--shadow);margin-bottom:18px}
.order-page-head .order-head-main{display:flex;align-items:center;gap:14px;min-width:0}
.order-page-head .order-code-box{width:52px;height:52px;border-radius:15px;background:var(--soft);color:var(--accent);display:grid;place-items:center;font-size:22px;font-weight:900;flex:0 0 auto}
.order-page-head h2{margin:2px 0 4px;font-size:27px;line-height:1.2}
.order-page-head .muted{margin:0;font-size:12px}
.order-page-head .actions{justify-content:flex-end}
.order-page-head .btn{min-height:40px}
.order-timeline{padding:20px 22px;margin-bottom:18px;overflow:hidden}
.order-timeline h3{font-size:17px;margin-bottom:3px}
.order-timeline .timeline-track{display:flex;gap:0;overflow:auto;padding:16px 4px 5px}
.order-timeline .timeline-step{position:relative;min-width:125px;flex:1;text-align:center;padding-inline:7px}
.order-timeline .timeline-step:not(:last-child):after{content:'';position:absolute;top:15px;inset-inline-start:50%;width:100%;height:2px;background:#e4e8ef;z-index:0}
.order-timeline .timeline-step.done:not(:last-child):after{background:#d9b7c3}
.order-timeline .timeline-dot{position:relative;z-index:1;width:32px;height:32px;border-radius:50%;margin:auto;background:#edf0f4;color:#7b8492;display:grid;place-items:center;font-size:12px;font-weight:900;border:3px solid #fff;box-shadow:0 0 0 1px #e1e5eb}
.order-timeline .timeline-step.done .timeline-dot{background:var(--accent);color:#fff;box-shadow:0 0 0 1px var(--accent)}
.order-timeline .timeline-step.current .timeline-dot{box-shadow:0 0 0 4px rgba(139,30,63,.12)}
.order-timeline .timeline-label{margin-top:8px;font-size:11px;font-weight:800;color:#667085;line-height:1.4}
.order-timeline .timeline-step.done .timeline-label{color:var(--accent)}
.order-files-card{padding:20px 22px;margin-bottom:18px}
.order-files-card .card-title,.order-section-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}
.order-files-card .card-title h3,.order-section-title h3{margin:0;font-size:17px}
.order-files-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.order-files-list .file{margin:0;padding:13px;background:#fafbfc;border-style:solid;border-color:#e7ebf1}
.order-files-list .file strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:5px}
.order-files-list .file .btn{margin-top:8px}
.order-info-card,.order-finance-card,.order-translation-card{border-radius:20px}
.order-info-card{padding:22px}
.order-info-card .section-heading{padding-bottom:15px;border-bottom:1px solid var(--line);margin-bottom:4px}
.order-info-card .section-heading h3{font-size:18px;margin:0 0 4px}
.order-view-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;padding-top:9px}
.order-view-details p{margin:0;padding:12px 0;border-bottom:1px solid #eef0f4;font-size:13px;line-height:1.5}
.order-view-details p b{color:#697386;font-weight:750;margin-inline-end:5px}
.order-view-details .file{grid-column:1/-1;margin-top:12px}
.order-edit-panel{background:#fbfcfe;border-radius:15px;border:1px solid #e7ebf1!important;padding:18px!important}
.order-edit-panel h3{font-size:16px;margin-bottom:4px}
.order-edit-panel .settings-grid{gap:12px 14px}
.order-edit-panel textarea{min-height:95px}
.order-edit-panel .actions{padding-top:3px}
.order-finance-card{padding:22px}
.order-finance-card>.section-heading{padding-bottom:15px;border-bottom:1px solid var(--line)}
.finance-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding-top:16px}
.finance-summary-grid .price-summary{min-height:76px;margin:0;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px}
.finance-summary-grid .price-summary strong{font-size:18px}
.finance-section{padding:18px 0}
.finance-section-title{padding:0 0 2px}
.finance-section-title .section-number{background:var(--soft);color:var(--accent)}
.finance-section form{background:#fafbfc;border:1px solid #edf0f4;border-radius:14px;padding:15px}
.finance-section form .actions{padding-top:2px}
.total-highlight{margin:2px 0 15px!important;min-height:58px}
.order-translation-card{padding:22px;margin-top:0}
.order-translation-card>hr{margin:0 0 18px}
.order-translation-card h3{font-size:17px}
.order-translation-card form{background:#fafbfc;border:1px solid #edf0f4;border-radius:14px;padding:15px}
.order-translation-card .file{background:#fff;border-style:solid}
.order-translation-card .btn{margin-top:4px}
.order-lower-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px}
.order-lower-grid>.card{min-width:0}
.order-history-card{margin-top:18px}
.order-history-card .timeline{max-height:390px;overflow:auto;padding-inline-end:3px}
@media(max-width:1000px){.order-files-list{grid-template-columns:1fr 1fr}.order-management-grid{grid-template-columns:1fr}.order-management-grid>.order-info-card,.order-management-grid>.order-finance-card,.order-management-grid>.order-translation-card{grid-column:1;grid-row:auto}}
@media(max-width:760px){.order-page-head{padding:18px}.order-page-head .order-head-main{align-items:flex-start}.order-page-head .actions{width:100%;justify-content:stretch}.order-page-head .actions .btn{flex:1}.order-view-details{grid-template-columns:1fr}.order-files-list{grid-template-columns:1fr}.finance-summary-grid{grid-template-columns:1fr}.order-lower-grid{grid-template-columns:1fr}.order-timeline .timeline-step{min-width:105px}}


/* Magic of Word brand integration – V1 */
@font-face{font-family:Cairo;src:url("fonts/cairo-arabic-wght-normal.woff2") format("woff2");font-style:normal;font-weight:200 1000;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:Cairo;src:url("fonts/cairo-latin-wght-normal.woff2") format("woff2");font-style:normal;font-weight:200 1000;font-display:swap}
:root{--bg:#F5F2EA;--card:#fff;--text:#142B3B;--muted:#68798A;--line:#E6E0D4;--accent:#071B2B;--accent2:#123B52;--soft:#F3EBDD;--shadow:0 14px 38px rgba(7,27,43,.10);--mow-gold:#D6B36A;--mow-gold-light:#E7C98A;--mow-navy:#071B2B;--mow-blue:#123B52}
html{scroll-behavior:smooth}
body{font-family:Cairo,Arial,sans-serif;background:var(--bg);color:var(--text);line-height:1.7}
a{color:var(--accent2)}
.topbar.mow-app-header{height:auto;min-height:94px;background:linear-gradient(110deg,#061725,#102F45);color:#fff;border-bottom:1px solid rgba(214,179,106,.55);padding:12px clamp(18px,4vw,52px);gap:22px;box-shadow:0 8px 28px rgba(7,27,43,.13)}
.mow-app-header .brand img{max-height:72px;max-width:220px;object-fit:contain}
.portal-top-nav{display:flex;align-items:center;justify-content:center;gap:clamp(12px,2vw,28px);flex:1}
.portal-top-nav a,.portal-login-link{color:#f7f4ed;font-weight:750;font-size:14px;white-space:nowrap;transition:color .2s}
.portal-top-nav a:hover,.portal-login-link:hover{color:var(--mow-gold-light)}
.portal-login-link{border:1px solid var(--mow-gold);padding:9px 16px;border-radius:9px}
.top-actions{gap:12px}
.lang-switch{border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.08)}
.lang-switch a{color:#e8eaf0}
.lang-switch a.active{background:var(--mow-gold);color:var(--mow-navy)}
.user-chip{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.18);color:#fff}
.notification-bell{color:#fff}
.app-shell{min-height:calc(100vh - 94px)}
.sidebar{background:#091f30;color:#fff;border-inline-end:1px solid rgba(214,179,106,.25);padding:24px 14px}
.sidebar-brand{color:#fff}
.sidebar-brand small{color:#c8d0d7}
.sidebar-label,.sidebar-role{color:#c1cbd3}
.sidebar-head{border-bottom:1px solid rgba(255,255,255,.12)}
.sidebar-group-title{color:var(--mow-gold-light)}
.side-nav a{color:#dce3e8}
.side-nav a:hover{background:rgba(214,179,106,.12);color:var(--mow-gold-light)}
.side-nav a.active{background:linear-gradient(100deg,rgba(214,179,106,.2),rgba(214,179,106,.07));color:var(--mow-gold-light);border-inline-start:3px solid var(--mow-gold)}
.app-content,.public-content{padding-top:38px;padding-bottom:64px}
.container{width:min(1240px,94%)}
.card,.stat-card,.stat{border-color:var(--line);border-radius:16px;box-shadow:var(--shadow)}
.card{padding:26px}
h1,h2,h3,h4{color:var(--mow-navy);font-family:Cairo,Arial,sans-serif;letter-spacing:0}
.page-head h2{font-size:clamp(24px,3vw,32px);font-weight:850}
.eyebrow{color:#9a783e;letter-spacing:.7px}
.btn{background:linear-gradient(135deg,#E7C98A,#D6B36A);color:#071B2B!important;border:1px solid #c49d50;border-radius:9px;padding:11px 19px;box-shadow:0 5px 14px rgba(7,27,43,.1);transition:transform .2s,box-shadow .2s,filter .2s}
.btn:hover{background:linear-gradient(135deg,#f0d99f,#d6b36a);filter:saturate(1.05);transform:translateY(-2px);box-shadow:0 9px 22px rgba(7,27,43,.16)}
.btn.secondary{background:#102f45;color:#fff!important;border-color:#234a61}
.btn.secondary:hover{background:#123b52}
input,select,textarea{font-family:inherit;border-color:#d8d1c4;border-radius:9px}
input:focus,select:focus,textarea:focus{border-color:#c49d50;box-shadow:0 0 0 3px rgba(214,179,106,.2)}
.badge{background:#f3ebdc;color:#785b2d}
.table-wrap,table{border-color:var(--line)}
th{color:#68798a}
tr:hover td{background:rgba(245,242,234,.55)}
.quick-link{border-color:var(--line);border-radius:11px}
.quick-link:hover{border-color:var(--mow-gold);background:#fbf8f0}
.alert{border-radius:12px}
.hero{padding:38px 0 22px}
.hero-card{position:relative;overflow:hidden;background:radial-gradient(ellipse at 80% 20%,#28516a 0,#123b52 30%,#071b2b 75%);color:#fff;border:1px solid rgba(214,179,106,.45);border-radius:22px;padding:clamp(34px,6vw,68px);text-align:center;box-shadow:0 22px 50px rgba(7,27,43,.18)}
.hero-card:before{content:"";position:absolute;width:420px;height:420px;border:1px solid rgba(214,179,106,.22);border-radius:50%;inset:-210px auto auto -110px;box-shadow:0 0 0 25px rgba(214,179,106,.035),0 0 0 65px rgba(214,179,106,.025);pointer-events:none}
.hero-card>*{position:relative;z-index:1}
.hero-card h1{color:#fff;font-size:clamp(32px,5vw,54px);font-weight:850;line-height:1.25}
.hero-card .eyebrow{color:var(--mow-gold-light)}
.hero-card p{color:#e3e9ed}
.hero-card .btn.secondary{background:transparent;border:1px solid var(--mow-gold);color:#fff!important}
.mow-app-footer{background:linear-gradient(110deg,#061725,#102f45);color:#e7edf1;border-top:1px solid rgba(214,179,106,.55);padding:26px clamp(18px,4vw,52px) 14px}
.mow-app-footer-inner{width:min(1240px,100%);margin:auto;display:flex;align-items:center;gap:28px;justify-content:space-between}
.mow-footer-brand img{width:160px;max-height:65px;object-fit:contain}
.mow-app-footer p{margin:4px 0 0;color:#b9c5ce;font-size:13px}
.mow-footer-links{display:flex;gap:18px;flex-wrap:wrap}
.mow-footer-links a{color:var(--mow-gold-light);font-weight:700;font-size:13px}
.mow-app-copyright{width:min(1240px,100%);margin:18px auto 0;padding-top:12px;border-top:1px solid rgba(255,255,255,.12);font-size:12px;color:#aebbc4;text-align:center}
@media(max-width:900px){.portal-top-nav{gap:12px}.portal-top-nav a{font-size:12px}.mow-app-header .brand img{max-width:170px}}
@media(max-width:760px){.topbar.mow-app-header{min-height:80px;flex-wrap:wrap;padding:10px 15px;gap:10px}.mow-app-header .brand img{max-height:52px;max-width:155px}.portal-top-nav{order:3;flex-basis:100%;justify-content:space-around;padding:8px 0 2px;border-top:1px solid rgba(255,255,255,.12)}.portal-top-nav a{font-size:12px}.top-actions{margin-inline-start:auto}.app-shell{grid-template-columns:1fr}.sidebar{padding:14px}.sidebar-brand{display:none}.sidebar-head{display:flex;align-items:center;gap:10px;padding:0 5px 12px}.sidebar-head .sidebar-user-avatar{margin:0}.side-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar-group-title{grid-column:1/-1}.app-content{padding:22px 12px 42px}.public-content{padding-top:22px}.card{padding:18px}.mow-app-footer-inner{flex-direction:column;text-align:center;gap:12px}.mow-footer-links{justify-content:center}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* V97 customer portal layout fixes: constrain sidebar logo, align sticky offsets with the 94px branded header */
.sidebar-brand{padding:0 6px 14px;text-align:center}
.sidebar-brand a{display:flex;justify-content:center;align-items:center}
.sidebar-brand img{display:block;max-width:150px;max-height:64px;width:auto;height:auto;object-fit:contain;margin:0 auto}
.sidebar-brand small{display:block;margin-top:8px;font-size:12px;line-height:1.4}
.app-content{min-width:0}
@media(min-width:801px){
  .customer-ui .app-shell{grid-template-columns:260px minmax(0,1fr);align-items:start}
  .customer-ui .sidebar{position:sticky;top:94px;height:calc(100vh - 94px);overflow-y:auto;padding:18px 14px 24px}
  .customer-ui .app-content{max-width:1400px;width:100%;margin-inline:auto}
}
.customer-ui .sidebar-head{text-align:center}.customer-ui .sidebar-user-avatar{display:flex;justify-content:center}

/* V99 admin order page layout polish */
.staff-ui .app-content.container{width:100%;min-width:0}
.row.order-files-card{display:block;padding:0;margin-bottom:18px}
.order-files-card-inner{padding:20px 22px}
.order-info-card .section-heading .btn,.order-finance-card .section-heading .btn{flex:0 0 auto;align-self:flex-start;height:auto;min-height:40px;padding:9px 18px;white-space:nowrap}
.order-info-card .section-heading>div:first-child{min-width:0}
.order-page-head{flex-wrap:wrap;gap:14px}

/* V105 order status tabs */
.status-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 16px}
.status-tab{display:inline-flex;align-items:center;gap:10px;padding:9px 14px;border-radius:14px;background:#fff;border:1px solid var(--line);color:var(--text);font-weight:700;font-size:14px;text-decoration:none;box-shadow:0 2px 8px rgba(18,28,45,.04);transition:.15s}
.status-tab b{min-width:26px;padding:2px 8px;border-radius:999px;background:#eef1f5;color:#445;font-size:12px;text-align:center}
.status-tab:hover{border-color:#d6b36a;transform:translateY(-1px)}
.status-tab.active{background:#102f45;border-color:#102f45;color:#fff}
.status-tab.active b{background:#d6b36a;color:#102f45}
@media(max-width:600px){.status-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px}.status-tab{flex:0 0 auto}}
