@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-stretch: normal;
  font-display: swap;
  src: url(vendor/noto-arabic-0.ttf) format('truetype');
}
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-stretch: normal;
  font-display: swap;
  src: url(vendor/noto-arabic-1.ttf) format('truetype');
}
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-stretch: normal;
  font-display: swap;
  src: url(vendor/noto-arabic-2.ttf) format('truetype');
}
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-stretch: normal;
  font-display: swap;
  src: url(vendor/noto-arabic-3.ttf) format('truetype');
}

:root{font-family:"Noto Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif;color:#281e33;background:#f9f7fc;--purple:#62388a;--line:#e8dfef}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}header{background:#fff;border-bottom:1px solid var(--line)}.shell{max-width:1060px;margin:auto;padding:0 20px}.bar{min-height:68px;display:flex;align-items:center;justify-content:space-between}.brand{font-weight:700;font-size:23px;color:var(--purple)}.brand span{display:inline-grid;place-items:center;background:#efe4f8;border-radius:12px;width:38px;height:38px;margin-left:6px}
main{padding-top:26px!important;padding-bottom:42px!important}h1,h2,h3,p{margin:0}h1{font-size:30px}h2{font-size:20px}h3{font-size:17px}p{line-height:1.65}.heading,.toolbar,#dates{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.heading{justify-content:space-between}.toolbar{margin:20px 0;align-items:end}.toolbar button{margin-bottom:1px}
button,input,select{font:inherit}button{background:var(--purple);color:white;border:1px solid transparent;border-radius:10px;padding:10px 14px;min-height:42px;cursor:pointer;font-weight:700}button:disabled{opacity:.55;cursor:default}.quiet{background:#f5edf9;color:#563378}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}.tile{text-align:right;color:#2c2337;border-radius:16px;padding:16px;display:grid;gap:9px;justify-items:start;align-content:start;min-height:132px}.tile[aria-pressed=true]{outline:2px solid var(--purple);outline-offset:2px}.tile span{font-size:19px}.tile strong{font-size:24px}.tile small{font-weight:normal}.lavender{background:#efe4fa}.green{background:#e2f3ea}.peach{background:#faeadf}.blue{background:#e2f0ff}
.panel,dialog{background:white;border:1px solid var(--line);border-radius:16px;padding:20px}.gate{max-width:450px;margin:30px auto}.gate p{margin:12px 0}.listing .heading{margin-bottom:12px}.row{padding:14px 0;border-top:1px solid var(--line);display:grid;gap:7px}.row small{color:#5b5066}.empty{padding:24px 0;color:#5b5066}
label{display:grid;gap:6px;font-size:14px}input,select{width:100%;border:1px solid #cfc3db;border-radius:9px;background:white;color:inherit;min-height:43px;padding:8px}form,form>div:not(.heading),#pieces{display:grid;gap:12px}form{margin-top:14px}dialog{width:min(620px,calc(100% - 24px));max-height:90dvh;color:inherit}dialog form{margin:0}dialog::backdrop{background:#26153580}.piece-row{border:1px solid var(--line);border-radius:12px;padding:12px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.piece-row label:first-child{grid-column:1/-1}#notice,#form-error{color:#8b2542}#notice{margin:12px 0}#form-error:empty{display:none}#estimate{background:#f4edf8;padding:10px;border-radius:8px}
@media(max-width:690px){.shell{padding-inline:14px}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}h1{font-size:23px}.tile{padding:12px}.tile strong{font-size:20px}.panel{padding:14px}}


body { line-height: 1.65; }
.tile {
  gap: 12px;
  min-height: 148px;
  border: 1px solid var(--tile-border);
  box-shadow: 0 3px 10px #3824510a;
  transition: box-shadow .18s ease, transform .18s ease;
}
.tile:hover { transform: translateY(-2px); box-shadow: 0 7px 16px #38245116; }
.tile .tile-title { display: flex; align-items: center; gap: 9px; font-size: 14px; line-height: 1.5; }
.tile .tile-title span { font-size: inherit; }
.tile .tile-art {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  font: 25px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  background: #ffffffb5;
  border-radius: 13px;
  box-shadow: inset 0 0 0 1px #ffffffb0, 0 2px 5px #38245112;
}
.tile strong { line-height: 1.4; }
.lavender { background: linear-gradient(145deg,#f8edff,#eee1fa); --tile-border:#e4d2f5; }
.green { background: linear-gradient(145deg,#effaf2,#dff3e7); --tile-border:#cce9d9; }
.peach { background: linear-gradient(145deg,#fff6ec,#fae8d9); --tile-border:#f3dbc6; }
.blue { background: linear-gradient(145deg,#eef7ff,#e0efff); --tile-border:#cfe3fb; }
.row {
  --status-ink:#504559;
  --status-bg:#eee9f1;
  border:1px solid var(--line);
  border-inline-start:4px solid var(--status-accent,#d9ccdf);
  border-radius:13px;
  padding:12px 14px;
  margin-top:9px;
  background:var(--row-bg,#fff);
}
.row[data-status=paid] { --status-ink:#17573b; --status-bg:#d9f3e4; --status-accent:#3c9b70; --row-bg:#f2fbf6; }
.row[data-status=partial] { --status-ink:#7c400d; --status-bg:#ffe8c7; --status-accent:#dc963b; --row-bg:#fff9ef; }
.row[data-status=personal] { --status-ink:#583379; --status-bg:#f0e4fa; --status-accent:#a47ac7; --row-bg:#fbf7ff; }
.order-title { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.order-status { background:var(--status-bg); color:var(--status-ink); font-size:12px; font-weight:700; border-radius:20px; padding:3px 9px; }
@media(max-width:690px) {
  .tile { gap:9px; min-height:132px; }
  .tile .tile-title { font-size:12px; gap:6px; }
  .tile .tile-art { flex-basis:32px; width:32px; height:32px; font-size:20px; border-radius:9px; }
}
@media(prefers-reduced-motion:reduce) { .tile { transition:none; } }

.section-tabs{display:flex;gap:8px;margin-bottom:20px}
.order-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:4px}
.order-metrics>div{display:grid;justify-items:center;text-align:center;gap:2px;padding:8px 3px;background:#f1ecf8;border-radius:10px;overflow-wrap:anywhere}
.order-metrics span{font-size:12px;color:#594b66}
.order-metrics strong{font-size:14px}
.order-metrics .balance{background:#ffe1e8;color:#81223e}
[data-status=paid] .order-metrics .balance{background:#d4f2e0;color:#17573b}
.row[data-status=partial]{--row-bg:#fff;--status-accent:#e7be7a}
.photo-field,.piece-preview{grid-column:1/-1}
.piece-preview:empty{display:none}
.piece-preview,.photo-gallery{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.piece-preview img,.photo-gallery img{width:100px;height:100px;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:9px}
.product-photos-button{justify-self:start}
#shipment-list{margin-top:16px}
#ship-pieces{max-height:40dvh;overflow:auto}
.ship-option{display:flex;align-items:center;padding:7px;border-bottom:1px solid var(--line)}
.ship-option input{width:20px;min-height:20px;accent-color:var(--purple);flex:none}
#ship-error{color:#8b2542}
#ship-error:empty{display:none}
.section-tabs{flex-wrap:wrap}
#extra-list{margin-top:16px}
#extra-list h2{margin-top:20px}
#order-gallery:empty{display:none}
#order-gallery>div{display:grid;gap:4px;justify-items:center}
#order-gallery button{font-size:12px}
#orders .row{cursor:pointer}

:root{--purple:#a91662;--line:#ebd3e4;background:#fcf2f8}
header{background:linear-gradient(110deg,#8a1255,#c02070);color:#fff}
.brand{color:#fff}.brand span{background:#ffffff30}
main{padding-bottom:110px!important}
h1{font-size:clamp(27px,5vw,39px)}h2{font-size:clamp(22px,4vw,28px)}
.panel,dialog{background:#fff3fa}.quiet{background:#f7dcec;color:#751349}
.searchbar{margin:0 0 18px;background:#f2ddeb;padding:12px;border-radius:14px}
.filters,.filters>div{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin-bottom:12px}
.filters button{background:#f5d9e9;color:#78144b}.filters button[aria-pressed=true]{background:#a91662;color:#fff}
#unshipped-filter{background:#c4ebfa;color:#14526e;margin-inline-start:auto}
#unshipped-filter[aria-pressed=true]{background:#175e7c;color:white}
.section-tabs{position:fixed;z-index:2;bottom:0;left:0;right:0;margin:0;padding:8px 10px max(8px,env(safe-area-inset-bottom));background:#201e40;display:flex;justify-content:center;flex-wrap:nowrap;overflow:auto}
.section-tabs button{flex:0 0 auto;background:#ee90b8;color:#42102c}
.section-tabs .quiet{background:#342a53;color:#fff}
.tile{position:relative;overflow:hidden;isolation:isolate;min-height:165px}
.tile .tile-art{display:none}
.tile::before{content:'';position:absolute;z-index:-1;inset:35px auto 0 0;width:52%;background:var(--art) center/contain no-repeat;mix-blend-mode:multiply}
.tile.lavender{--art:url(dress.webp)}.tile.green{--art:url(bag.webp)}.tile.peach{--art:url(shoes.webp)}.tile.blue{--art:url(shirt.webp)}
.tile strong{font-size:clamp(19px,3vw,29px)}
.row{--row-bg:#fce8f2}.row[data-status=unpaid],.row[data-status=partial]{--row-bg:white}
.row[data-status=unpaid]{--status-ink:#81223e;--status-bg:#ffdbe6;--status-accent:#ed9bb7}
.delivery-badge{font-size:12px;color:#1b577b;background:#d9effb;padding:3px 9px;border-radius:22px}
.vertical-metrics{grid-template-columns:1fr}
.vertical-metrics>div{display:flex;justify-content:space-between;padding:6px 12px}
.thumbnail{padding:3px;background:#f7deec}.large-photo{display:block;max-width:100%;max-height:70dvh;margin:0 auto 12px}
.ship-option label{display:flex;align-items:center;flex:1}.ship-option .ship-cost{width:min(38%,190px);min-height:42px}
#extra-view .order-metrics:not(.vertical-metrics)>div{padding:14px 6px;background:#edddf9}
#extra-view .order-metrics:not(.vertical-metrics) strong{font-size:clamp(16px,4vw,27px)}
@media(max-width:690px){.section-tabs{justify-content:flex-start}.section-tabs button{font-size:12px;padding:8px}.tile{min-height:135px}.tile::before{width:43%}}
@media(max-width:690px){#add{position:fixed;bottom:78px;left:15px;z-index:2;border-radius:24px;box-shadow:0 4px 14px #90145344}}
:root{--purple:#87114f;--line:#dbb3cc;background:#f2dbe9}
header{background:linear-gradient(110deg,#66113e,#a6125c)}
.panel,dialog{background:#f5e1ee}.quiet{background:#eec6de;color:#641042}
.searchbar{background:#e9c6dc}
.order-filters{display:grid;grid-template-columns:minmax(0,1fr) auto}
.order-filters>div{grid-column:1;justify-content:flex-start;margin:0}
#unshipped-filter{grid-column:2;grid-row:1/3;align-self:center;max-width:120px;min-height:72px;margin:0}
.order-filters button{border-radius:25px}
.vertical-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
.vertical-metrics>div{display:grid;justify-content:center;padding:6px 3px}
.row[data-delivery=delivered]{--row-bg:#d6f2df;--status-accent:#64ae80}
[data-delivery=delivered] .delivery-badge{background:#b9e8ca;color:#174a2d}
#order-form>#order-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(94px,1fr));gap:8px}
#order-form>#order-gallery:empty{display:none}
#order-gallery img{max-width:100%;height:90px}
.photo-gallery img{max-width:100%;aspect-ratio:1}
#orders{min-width:0}
@media(min-width:1000px){
  body:has(#dashboard:not([hidden])) main{padding-right:222px;max-width:1350px}
  .section-tabs{top:0;right:0;bottom:0;left:auto;width:196px;flex-direction:column;justify-content:flex-start;padding:85px 12px 12px}
  .section-tabs button{text-align:right}
}
.tile{border-radius:16px;cursor:default}.tile:hover{transform:none}
.cards{margin-top:16px}
.summary-totals .order-metrics>div:nth-child(1){background:#ebd7fa!important}
.summary-totals .order-metrics>div:nth-child(2){background:#d1efe0!important}
.summary-totals .order-metrics>div:nth-child(3){background:#ffdce4!important}
.summary-totals .order-metrics>div:nth-child(4){background:#d4ecfb!important}
.summary-totals .order-metrics>div:nth-child(5){background:#ffe7c8!important}
.shipment-card{cursor:pointer}.shipment-card>button{justify-self:start}
.expense-scroll{overflow:auto}
.expense-scroll table{border-collapse:collapse;width:100%;text-align:right}
.expense-scroll th,.expense-scroll td{padding:9px;border-bottom:1px solid var(--line)}
.cash-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,32%);gap:18px;align-items:start}
.expenses-panel{background:#f4d8e8;padding:16px;position:sticky;top:12px;max-height:85vh;overflow:auto}
.expenses-panel details{background:#fff0f8;border:1px solid var(--line);border-radius:12px;padding:10px}
.expenses-panel summary{cursor:pointer;font-weight:700}
.expenses-panel>.order-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
#extra-view .expenses-panel .order-metrics strong{font-size:14px}
.old-summary{background:#fff0f7;border-radius:24px;padding:clamp(14px,3vw,28px);box-shadow:0 12px 30px #65294415}
.old-summary>.order-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#extra-view .old-summary .order-metrics>div{border-radius:19px;min-height:104px;align-content:center;padding:16px 8px}
#extra-view .old-summary .order-metrics span{font-size:clamp(13px,2vw,18px)}
#extra-view .old-summary .order-metrics strong{font-size:clamp(22px,4vw,38px)}
#extra-view .old-summary .order-metrics>div:last-child{grid-column:1/-1;background:#f3bad2!important}
@media(max-width:800px){.cash-layout{display:flex;flex-direction:column}.cash-layout>*{width:100%}.expenses-panel{position:static;max-height:none}}
:root{background:#faf4eb;color:#202039;--line:#e5d6e0;--purple:#c04478}
header{background:#fff9f8;color:#202039;border-bottom:2px solid #edc5d5}
.brand{color:#202039}.brand span{background:#f7dce8}
.reference-banner{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:18px 22px;margin:0 0 14px;border-radius:23px;background:linear-gradient(135deg,#f9c3d5,#d9c4f0);min-height:132px}
.reference-banner>div{display:grid;gap:2px}
.reference-banner strong{font-size:clamp(17px,4.3vw,30px);letter-spacing:.035em;line-height:1.3}
.reference-banner b{color:#542373;font-size:clamp(15px,3vw,22px)}
.reference-banner small{color:#604759;font-size:12px}
.reference-banner>svg{width:min(43%,235px);flex:none}
.reference-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:15px}
.ref-stat{position:relative;border-radius:22px;min-height:142px;padding:13px 15px;display:grid;justify-content:center;justify-items:center;text-align:center;gap:4px;overflow:hidden;isolation:isolate}
.ref-wallet{background:#f9c3d5;--icon:#c04478}.ref-box{background:#bfe8d5;--icon:#32977b}
.ref-dress{background:#dccbf3;--icon:#7a499d}.ref-bag{background:#fdd3b0;--icon:#e68a38}
.ref-label{font-weight:700;line-height:1.4}.ref-label i{display:inline-grid;place-items:center;background:var(--icon);color:white;border-radius:10px;width:31px;height:31px;font-style:normal;margin-inline-end:5px}
.ref-stat strong{font-size:30px;line-height:1.35}.ref-stat small{font-size:12px;color:#45374a}
.ref-stat>svg{position:absolute;left:7px;bottom:7px;width:49px;height:49px;z-index:-1}
.ref-filter-panel,.listing,.expenses-panel{background:#fffcfa;border:1px solid #e3d4dc;border-radius:21px;padding:14px;margin-bottom:14px;box-shadow:0 4px 13px #46334b0b}
.ref-filter-panel .searchbar{margin:8px 0 0;padding:0;background:none}
.reference-types{display:flex;gap:6px;flex-wrap:wrap}
.reference-types button,.order-filters button{min-height:34px;padding:4px 11px;border-radius:22px;background:#f6d5e2;color:#762548}
.reference-types button[aria-pressed=true],.order-filters button[aria-pressed=true]{background:#c04478;color:#fff}
.reference-cash-hero{display:grid;justify-items:center;text-align:center;gap:5px;padding:20px 14px;margin-bottom:14px;border-radius:22px;background:linear-gradient(125deg,#c7477b,#804a99);color:white}
.reference-cash-hero strong{font-size:clamp(27px,6vw,43px);line-height:1.3}
.reference-cash-hero small{color:#fff1fa;font-size:12px}
.expenses-panel>.order-metrics>div:first-child{background:#f9c3d5!important}
.expenses-panel>.order-metrics>div:nth-child(2){background:#bfe8d5!important}
.expenses-panel details{background:#fffcfa}
@media(max-width:690px){.reference-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.reference-banner{padding:14px 12px}.ref-stat{min-height:135px;padding:10px 9px}.ref-stat>svg{width:43px;height:43px}.ref-stat strong{font-size:25px}.ref-stat small{font-size:11px}.cash-layout{display:grid;grid-template-columns:1fr}.expenses-panel{grid-row:1}.ref-filter-panel .order-filters{grid-template-columns:minmax(0,1fr) 72px}.order-filters button,.reference-types button{font-size:12px}}
.expense-reference-filters{display:grid;grid-template-columns:1fr 1fr;gap:8px;background:#fffdfc;border:1px solid var(--line);border-radius:16px;padding:10px}
.expense-reference-filters label:last-child{grid-column:1/-1}
.expense-reference-filters input,.expense-reference-filters select{min-width:0;background:#eee9ec}
.expense-reference-cards{display:grid;gap:8px}
.expense-reference-stats{background:#fffdfc;padding:8px;border-radius:16px}
@media(max-width:690px){#orders-view>.heading{margin-bottom:8px}#orders-view>.heading h1{font-size:20px}.reference-banner{min-height:112px}.ref-label{max-width:125px}.ref-stat>svg{z-index:0;pointer-events:none}.ref-stat small{position:relative}}

:root{background:#f1e3db;color:#231a34;--purple:#94164f;--line:#d8bccb}
header{background:#731039;color:#fff;border-bottom-color:#a94573}
.brand{color:#fff}.brand span{background:#ffffff26}
.section-tabs{background:#171329}
.section-tabs .quiet{background:#352342}
.section-tabs button:not(.quiet){background:#db79a4;color:#2f1022}
.quiet,.searchbar{background:#e7b7d0;color:#63113d}
.reference-banner{background:linear-gradient(135deg,#edabc5,#c7a9e7)}
.ref-wallet{background:#ecacc5}.ref-box{background:#a9d8c3}
.ref-dress{background:#cbb5e9}.ref-bag{background:#f2bd93}
.reference-cash-hero{background:linear-gradient(125deg,#a5225d,#67327e)}
#extra-view .customer-account-card{background:#fff;border-radius:13px;padding:10px 12px;gap:5px;box-shadow:0 2px 5px #32152912}
#extra-view .customer-account-card>.order-metrics{gap:6px;margin:0}
#extra-view .customer-account-card>.order-metrics>div{padding:6px 3px;background:#e6d1f4}
#extra-view .customer-account-card>.order-metrics>div:nth-child(2){background:#cde7d9}
#extra-view .customer-account-card>.order-metrics>div.balance{background:#f4c8d5}
#extra-view .customer-account-card>.order-metrics strong{font-size:clamp(14px,2vw,20px);line-height:1.35}
.customer-account-card>details summary{cursor:pointer;font-size:14px}




.order-card{padding:8px 10px;gap:5px;margin-top:7px}
.order-card-details{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px}
.order-card>.order-metrics{margin-top:0;gap:6px}
.order-card>.order-metrics>div,
#extra-view .order-card>.order-metrics>div{padding:4px 3px}
.order-card>.product-photos-button{min-height:34px;padding:4px 9px;font-size:13px}
#extra-view .customer-account-card{padding:7px 9px;gap:4px}
#extra-view .customer-account-card>.order-metrics>div{padding:3px}
#extra-view .customer-account-card>.order-metrics strong{font-size:clamp(14px,2vw,18px);line-height:1.2}

.brand span{vertical-align:middle}
.brand svg{width:29px;height:29px}
.sidebar-art{display:none}
@media(min-width:1000px){
  .sidebar-art{display:block;flex:0 0 auto;width:100%;height:auto;margin-top:18px}
}
.order-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 10px;padding:7px 12px;background:#fff;border:1px solid var(--line);border-radius:12px;text-align:center;font-size:.84rem}
.order-totals strong{margin-inline-start:3px;font-size:inherit;white-space:nowrap}
#extra-view .summary-card{background:#fff;padding:14px 16px;gap:8px;border:1px solid var(--line);border-radius:18px;box-shadow:0 4px 12px #43203616}
.summary-card>strong{font-size:1.13rem}
#extra-view .summary-card>.order-metrics{margin:0}
#extra-view .summary-card>.order-metrics>div{padding:9px 5px;background:var(--tile-start);color:#fff;align-content:center}
#extra-view .summary-card>.order-metrics>div:nth-child(2){background:var(--tile-middle)}
#extra-view .summary-card>.order-metrics>div:nth-child(3){background:var(--tile-end)}
#extra-view .summary-card>.order-metrics span{color:#fff;font-size:.82rem}
#extra-view .summary-card>.order-metrics strong{font-size:clamp(15px,2.4vw,25px)}
.summary-supplier{--tile-start:#6844a0;--tile-middle:#563789;--tile-end:#44296f}
.summary-customers{--tile-start:#10756c;--tile-middle:#08675e;--tile-end:#095751}
.summary-cash{--tile-start:#a22459;--tile-middle:#91234f;--tile-end:#771b40}

.cash-ledger{margin:14px 0;background:#fff;padding:14px}
.ledger-filters{display:flex;gap:10px;flex-wrap:wrap;margin:8px 0}
.ledger-filters label{font-size:.85rem;flex:0 1 170px}
.ledger-scroll{overflow-x:auto}
.ledger-scroll table{width:100%;min-width:650px;border-collapse:collapse;text-align:right;font-size:.88rem}
.ledger-scroll th,.ledger-scroll td{padding:9px 8px;border-bottom:1px solid var(--line)}
.ledger-scroll th{background:#f3eaf5;color:#3e2254}
.ledger-scroll tr:nth-child(even){background:#fcf8fa}
.ledger-scroll td:nth-child(4),.ledger-scroll td:nth-child(6){white-space:nowrap;font-variant-numeric:tabular-nums}
.ledger-scroll td:last-child{font-weight:700}
.ledger-scroll tr[data-flow=in] td:nth-child(5){color:#08675e;font-weight:700}
.ledger-scroll tr[data-flow=out] td:nth-child(5){color:#91234f;font-weight:700}

.order-card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.order-card-actions>.product-photos-button{min-height:34px;padding:4px 9px;font-size:13px}
.whatsapp-link{display:inline-flex;align-items:center;justify-content:center;gap:5px;width:max-content;max-width:100%;padding:5px 9px;border-radius:8px;background:#d9f4e5;color:#125d3c;font-size:.8rem;font-weight:700;text-decoration:none}
.whatsapp-link:hover{background:#bfeace}
#extra-view .cash-account-card{background:#fff;padding:12px;gap:6px;border-inline-start:4px solid var(--account-accent)}
.cash-account-bank{--account-accent:#6844a0}
.cash-account-wallet{--account-accent:#a22459}
#extra-view .cash-account-card>.order-metrics>div{padding:8px 4px;background:#d8eee3}
#extra-view .cash-account-card>.order-metrics>div:first-child{background:var(--account-accent);color:#fff}
#extra-view .cash-account-card>.order-metrics>div:first-child span{color:#fff}
#extra-view .cash-account-card>.order-metrics>div:last-child{background:#f7dce6}
.cash-main{min-width:0;width:100%}
.ledger-scroll th,.ledger-scroll td{padding-inline:6px}
.ledger-scroll td:nth-child(3),.ledger-scroll td:nth-child(5){white-space:nowrap;font-variant-numeric:tabular-nums}
.ledger-scroll tr[data-flow=in] td:nth-child(4){color:#08675e;font-weight:700}
.ledger-scroll tr[data-flow=out] td:nth-child(4){color:#91234f;font-weight:700}
.ledger-scroll tr[data-flow] td:nth-child(5){color:inherit}

.client-suggestions{display:grid;gap:3px;max-height:155px;overflow:auto;overscroll-behavior:contain;margin-top:-8px;padding:4px;background:#fff;border:1px solid var(--line);border-radius:9px}
.client-suggestions button{text-align:start;min-height:34px;padding:4px 8px;background:#f8edf4;color:#5e1946}
@media (pointer:coarse), (max-width:800px){
  input,select,textarea,.searchbar input,dialog input,dialog select,dialog textarea{font-size:16px!important}
}

:root{--tone-number:#e9d9f7;--tone-photo:#d6ecfb;--tone-client:#ffe8a7;--tone-value:#d3efdf;--tone-deposit:#c4e8e5;--tone-due:#f8d4df;background:#faf5f0}
body{background:#faf5f0}
.section-tabs{background:#233054}
.section-tabs .quiet{background:#344265}
.section-tabs button:not(.quiet){background:#c11768;color:white}
.tone-number{--field-bg:var(--tone-number)}
.tone-photo{--field-bg:var(--tone-photo)}
.tone-client{--field-bg:var(--tone-client)}
.tone-value{--field-bg:var(--tone-value)}
.tone-deposit{--field-bg:var(--tone-deposit)}
.tone-due{--field-bg:var(--tone-due)}
.order-columns{display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,1.8fr) minmax(0,1.1fr) repeat(3,minmax(0,1fr));align-items:center;gap:5px}
.order-cell>strong,.order-totals>span{display:block;text-align:center;border-radius:7px;padding:5px 3px;background:var(--field-bg);color:#241d35;overflow-wrap:anywhere}
.order-cell{min-width:0;text-align:center;font-size:.83rem}
.order-card{margin-block:10px;border:1px solid var(--line);background:#fff}
.order-card .photo-gallery{display:flex;justify-content:center;gap:4px;padding:4px;border-radius:7px;background:var(--tone-photo);color:#1c3b60}
.order-card .photo-gallery button{min-height:0;padding:0;border:0;flex:0 0 auto}
.order-card .photo-gallery img{width:clamp(40px,5vw,78px);height:auto;display:block}
.order-card .photo-gallery[data-count="2"] img{width:clamp(38px,4.6vw,65px)}
.order-card .photo-gallery[data-count="many"] img{width:clamp(36px,4vw,53px)}
.order-card .order-title{justify-content:flex-start}
#dashboard .order-metrics>div:is(.tone-value,.tone-deposit,.tone-due){background:var(--field-bg);color:#241d35}
#dashboard .order-metrics>div:is(.tone-value,.tone-deposit,.tone-due) span{color:inherit}
.customer-account-card>strong{background:var(--tone-client);color:#472d0a;border-radius:8px;padding:5px 8px}

.shipment-card .photo-gallery{background:var(--tone-photo);border-radius:8px;padding:5px}
.movement-cards{border-collapse:separate!important;border-spacing:0 7px}
.movement-cards tbody td{background:#fff;border-block:1px solid var(--line)}
.movement-cards tbody td:first-child{border-inline-start:1px solid var(--line);border-start-start-radius:8px;border-end-start-radius:8px}
.movement-cards tbody td:last-child{border-inline-end:1px solid var(--line);border-start-end-radius:8px;border-end-end-radius:8px}
.expense-reference-cards details{margin-block:8px}
@media(max-width:690px){
 .order-columns{grid-template-columns:minmax(0,.7fr) minmax(0,1.35fr) minmax(0,1fr) repeat(3,minmax(0,.85fr));gap:3px}
  .order-card{padding-inline:5px}
 .order-cell{font-size:.66rem}
 .order-cell>strong{padding-inline:1px}
}

.order-cell{display:grid;gap:3px}
.order-cell>small{font-weight:700;color:#382d49}
.order-card[data-delivery=delivered]{background:#d9f2e1;border-color:#76b992;border-inline-start-width:4px}
@media(max-width:690px){
  .order-columns{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
}


.order-cell>small{padding:4px 2px;border-radius:6px;background:var(--field-bg);color:#2d233d}
.order-cell.tone-client>strong{margin-block-start:9px}
.shipment-title{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.shipment-number,.shipment-card .shipment-order-number{display:inline-grid;place-items:center;min-height:34px;padding:4px 9px;border-radius:7px;background:#ffe39a;color:#493007;text-decoration:underline;text-underline-offset:4px}
.shipment-card[data-status="paid"]{--row-bg:#badeb9;--status-accent:#38824b}

.session-actions{display:flex;align-items:center;gap:6px}
.password-control{position:relative}
.password-control input{padding-right:46px}
.password-control button{position:absolute;right:3px;top:50%;transform:translateY(-50%);display:grid;place-items:center;min-height:36px;width:38px;padding:0;background:transparent}
@media(max-width:690px){
  .order-cell.tone-client{grid-column:1;grid-row:1}
  .order-cell.tone-photo{grid-column:2;grid-row:1}
  .order-cell.tone-number{grid-column:3;grid-row:1}
  .session-actions button{font-size:12px;padding-inline:7px}
}

#refresh-screen{position:fixed;z-index:3;left:max(16px,env(safe-area-inset-left));bottom:calc(18px + env(safe-area-inset-bottom));display:grid;place-items:center;width:46px;height:46px;padding:0;border-radius:50%;background:#a91662;color:#fff;box-shadow:0 3px 12px #35152d40}
@media(max-width:999px){
  #refresh-screen{bottom:calc(72px + env(safe-area-inset-bottom))}
}
@media(max-width:690px){
  body:has(#orders-view:not([hidden])) #refresh-screen{bottom:calc(134px + env(safe-area-inset-bottom))}
}

/* Orders and supplier cards */
.row.designed-order,.row.designed-shipment{
  --card-ink:#180d2b;
  --card-purple:#6c148d;
  position:relative;
  isolation:isolate;
  display:grid;
  align-items:start;
  gap:12px 16px;
  margin-block:12px;
  padding:clamp(12px,2.4vw,26px);
  color:var(--card-ink);
  border:1px solid #ccb0e3;
  border-radius:24px;
  box-shadow:0 5px 9px #51217f24;
  background:linear-gradient(150deg,#fff 10%,#f7f3fc 100%);
}
.row.designed-order[data-delivery=delivered],
.row.designed-shipment[data-status=paid]{
  background:linear-gradient(150deg,#f1fbf5,#e3f5eb);
  border:2px solid #218653;
  border-inline-start-width:3px;
}
.designed-order{
  overflow:hidden;
  grid-template-columns:minmax(0,1.14fr) minmax(0,1fr) minmax(0,1.02fr);
  grid-template-areas:"identity products media" "metrics metrics media" "footer footer footer";
}
.designed-order::before,.designed-order::after{
  content:"";
  position:absolute;
  z-index:-1;
  pointer-events:none;
  inset:auto 0 0;
  height:clamp(32px,8vw,72px);
  background:#e9b6f67a;
  clip-path:polygon(0 30%,5% 48%,10% 63%,15% 75%,20% 85%,25% 91%,30% 96%,35% 98%,40% 99%,45% 99%,50% 98%,55% 95%,60% 89%,65% 78%,70% 63%,75% 46%,80% 29%,85% 15%,90% 7%,95% 7%,100% 14%,100% 100%,0 100%);
}
.designed-order::after{height:clamp(24px,6vw,54px);background:#ce48d24d}
.row.designed-shipment{
  grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1.1fr);
  grid-template-areas:"identity products media" "metrics metrics metrics" "payment payment payment";
  background:linear-gradient(145deg,#fffcff,#faf1ff);
  border-color:#b66dd7;
  overflow:hidden;
}
.designed-shipment::before,.designed-shipment::after{
  content:"";
  position:absolute;
  z-index:-1;
  pointer-events:none;
  background:#ce48d24d;
  opacity:.7;
  border-radius:50%;
  box-shadow:0 -12px #e9b6f67a;
  width:48%;
  height:85px;
  bottom:-62px;
  left:-4%;
  transform:rotate(15deg);
}
.designed-shipment::after{left:auto;right:-13%;bottom:-55px;transform:rotate(-22deg)}
.card-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:1.25em;height:1.25em;vertical-align:middle}
.card-icon svg{width:100%;height:100%}
.card-design-identity{grid-area:identity;display:grid;gap:6px;min-width:0}
.card-design-name,.shipment-design-heading{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  font-size:clamp(17px,3.5vw,30px);line-height:1.3;font-weight:900;overflow-wrap:anywhere;
}
.card-design-name>.card-icon,.shipment-design-edit>.card-icon{
  width:1.7em;height:1.7em;padding:.37em;border-radius:50%;color:var(--card-purple);background:#eddefa;
}
.designed-shipment .shipment-design-edit>.card-icon{color:white;background:#ad0654;border-radius:12px}
.designed-order .card-design-copy,.designed-shipment .shipment-design-edit{
  display:flex;align-items:center;gap:6px;justify-self:start;
  padding:0;min-height:0;border:0;background:none;color:inherit;text-align:start;
}
.designed-order .card-design-copy{color:#635878;font-size:clamp(11px,2.3vw,17px)}
.designed-shipment .shipment-design-edit{font:inherit;color:var(--card-ink)}
.card-design-products{
  grid-area:products;align-self:center;min-width:0;list-style:none;
  margin:0;padding:0;padding-inline-end:8px;border-inline-end:1px solid #d7bee9;
  display:grid;gap:4px;color:#471360;font-size:clamp(12px,2.25vw,18px);font-weight:750;
}
.card-design-products:empty{display:none}
.card-design-products li{display:flex;align-items:flex-start;gap:6px;overflow-wrap:anywhere;min-width:0}
.card-design-products .card-icon{color:var(--card-purple)}
.card-design-media{grid-area:media;display:grid;justify-items:center;align-content:start;gap:8px;min-width:0}
.card-design-badge{
  display:inline-flex;align-items:center;justify-content:center;gap:5px;
  padding:5px 9px;border-radius:100px;text-align:center;
  font-size:clamp(11px,2.15vw,17px);line-height:1.3;font-weight:850;background:#efdefb;color:#681887;
}
.card-design-badge.unshipped{background:#ffdde7;color:#b60039}
.card-design-badge.paid{background:#dbf3e5;color:#00663e}
.card-design-badge.shipment-count{background:#a70759;color:white;border-radius:11px}
.card-design-photos{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;width:100%;padding:5px 3px 0}
.card-design-photos:empty{display:none}
.card-design-photos>.card-icon{width:76px;height:65px;padding:13px;color:#821693;background:#efddfa;border-radius:15px}
.card-design-photos .thumbnail{
  width:clamp(32px,26%,100px);min-height:0;aspect-ratio:3/4;padding:3px;
  border:1px solid #d4bee7;border-radius:11px;background:#fcf9ff;box-shadow:0 3px 5px #43206532;
}
.card-design-photos .thumbnail:only-child{width:clamp(37px,51%,118px)}
.card-design-photos .thumbnail:nth-child(3n+1):not(:only-child){transform:rotate(8deg)}
.card-design-photos .thumbnail:nth-child(3n){transform:rotate(-8deg)}
.card-design-photos img{display:block;width:100%;height:100%;border-radius:7px;object-fit:cover}
.card-design-count{margin-top:-10px;z-index:1;background:#fffaff;padding:3px 10px;border:1px solid #d9c4ed;border-radius:20px;box-shadow:0 3px 7px #45196330;font-size:clamp(11px,2vw,17px);font-weight:850;text-align:center}
.card-design-photos:empty+.card-design-count{margin-top:0}
.card-design-metrics{grid-area:metrics;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;min-width:0}
.designed-shipment .card-design-metrics{padding-top:10px;border-top:1px solid #ead6f4}
.card-design-metric{
  display:grid;justify-items:center;align-content:center;gap:3px;text-align:center;
  padding:8px 3px;border-radius:13px;min-width:0;font-size:clamp(11px,2.1vw,17px);
}
.card-design-caption{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px;font-weight:800}
.card-design-metric strong{font-size:clamp(12px,2.65vw,23px);line-height:1.25;overflow-wrap:anywhere;color:var(--card-ink)}
.metric-blue{background:#d8e9fc;color:#00568a}
.metric-green{background:#d9f2e1;color:#006442}
.metric-purple{background:#eee0fa;color:#71138d}
.metric-pink{background:#fbddef;color:#ad174d}
.metric-teal{background:#d5eff1;color:#007478}
.designed-shipment .metric-pink:nth-child(4){grid-column:2}
.card-design-footer{
  grid-area:footer;display:flex;align-items:center;flex-wrap:wrap;
  gap:7px 10px;border-top:1px solid #e7d9ef;padding-top:8px;
}
.card-design-date{display:inline-flex;align-items:center;gap:5px;color:#605477;font-size:clamp(11px,2.2vw,17px);font-weight:700}
.card-design-footer .card-design-date{margin-inline-start:auto}
.card-design-delivery{
  display:inline-flex;align-items:center;min-height:30px;padding:4px 10px;
  border:1px solid #ceb9e5;border-radius:100px;background:#f1e7fa;color:#4d1870;
  font-size:clamp(13px,2.35vw,17px);font-weight:850;line-height:1.3;
}
.card-design-delivery[data-state="waiting"]{background:#ffedba;color:#634006;border-color:#eac975}
.card-design-delivery[data-state="delivered"],
.card-design-delivery.shipment-paid-badge{
  gap:5px;background:#087645;color:#fff;border-color:#087645;
}
.designed-order .card-design-details{
  display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:4px 11px;
  color:#651679;background:#f0e7f9;border:1px solid #e0ccee;border-radius:100px;font-size:clamp(11px,2.2vw,17px);
}
.shipment-design-numbers{display:flex;gap:5px;flex-wrap:wrap}
.designed-shipment .shipment-order-number{min-height:25px;padding:3px 8px;border-radius:8px;text-decoration:none}
.designed-shipment .shipment-design-payment,#new-shipment{
  background:linear-gradient(145deg,#c10362,#79043c);color:white;
  box-shadow:0 4px 10px #79043c45;border:0;border-radius:100px;
}
.designed-shipment .shipment-design-payment{grid-area:payment;justify-self:start;display:flex;align-items:center;gap:6px}
#new-shipment{
  position:fixed;z-index:3;left:max(16px,env(safe-area-inset-left));
  bottom:calc(74px + env(safe-area-inset-bottom));min-height:40px;
}
@media(max-width:999px){#new-shipment{bottom:calc(128px + env(safe-area-inset-bottom))}}
@media(max-width:560px){
  .row.designed-order,.row.designed-shipment{gap:8px;border-radius:18px}
  .designed-order{grid-template-areas:"identity identity media" "products products media" "metrics metrics metrics" "footer footer footer"}
  .designed-shipment{grid-template-areas:"identity identity media" "products products media" "metrics metrics metrics" "payment payment payment"}
}

/* Customer accounts and order summary */
#extra-view:is([data-section="customers"],[data-section="summary"]) #extra-title{
  display:flex;align-items:center;gap:10px;color:#180b29;
  font-size:clamp(25px,5vw,46px);margin-block:10px 16px;
}
#extra-view #extra-title>.card-icon{color:#943987}
#extra-view[data-section="summary"] #extra-title>.card-icon{
  background:#8d2058;color:#fff;padding:.25em;width:1.6em;height:1.6em;border-radius:50%;
}
#customer-search-row:not([hidden]){display:flex;align-items:stretch;gap:8px;margin-bottom:14px}
#customer-search-row #search-box{
  flex:1;min-width:0;display:block;position:relative;margin:0;padding:0;background:none;font-size:0;
}
#customer-search-row #global-search{
  height:100%;min-height:43px;margin:0;padding-inline-start:34px;
  border:1px solid #ddcae8;border-radius:16px;background:#fffbff;color:#3a244a;
  box-shadow:0 3px 7px #48214b17;font-size:clamp(12px,2.6vw,16px);
}
#customer-search-row #search-box::before,#customer-search-row #search-box::after{
  content:"";position:absolute;inset-inline-start:12px;top:calc(50% - 8px);
  width:13px;height:13px;border:2px solid #943987;border-radius:50%;pointer-events:none;
}
#customer-search-row #search-box::after{
  width:8px;height:2px;border:0;border-radius:4px;top:calc(50% + 8px);
  inset-inline-start:8px;background:#943987;transform:rotate(45deg);
}
#customer-balance-filter{position:relative;z-index:2;margin:0;padding:0;border:0;background:none}
#customer-balance-filter>summary{
  display:grid;place-items:center;height:100%;min-width:48px;padding:7px;
  border:1px solid #ddcae8;border-radius:14px;background:#fffbff;color:#893383;
  box-shadow:0 3px 7px #48214b17;cursor:pointer;font-size:22px;list-style:none;
}
#customer-balance-filter>summary::-webkit-details-marker{display:none}
#customer-balance-filter>label{
  position:absolute;inset-inline-end:0;top:calc(100% + 6px);width:160px;
  margin:0;padding:9px;border:1px solid #ddcae8;border-radius:12px;background:#fffbff;
}

#extra-view .designed-report{
  --card-ink:#160b27;
  position:relative;isolation:isolate;overflow:hidden;display:grid;align-items:start;
  grid-template-columns:minmax(0,1fr) minmax(64px,24%);
  gap:9px 12px;margin-block:12px;padding:clamp(9px,2vw,21px);
  background:linear-gradient(145deg,#fff 10%,#fff7fe 100%);
  border:1px solid #cb8bdd;border-radius:clamp(15px,3vw,25px);
  color:var(--card-ink);box-shadow:0 4px 8px #55216b30;
}
.designed-report::before,.designed-report::after{
  content:"";position:absolute;z-index:-1;pointer-events:none;inset:auto 0 0;
  height:clamp(20px,4.8vw,44px);background:#eb8dde4d;
  clip-path:polygon(0 15%,3% 44%,6% 62%,10% 76%,16% 88%,23% 97%,32% 100%,69% 100%,76% 96%,82% 83%,88% 66%,93% 49%,97% 32%,100% 0,100% 100%,0 100%);
}
.designed-report::after{height:clamp(12px,3vw,27px);background:#ef69c64d}
.customer-account-card.designed-report::before,.customer-account-card.designed-report::after{
  clip-path:polygon(70% 100%,77% 94%,84% 72%,90% 62%,94% 51%,97% 34%,100% 0,100% 100%);
}
.report-design-title{
  display:flex;align-items:center;gap:7px;margin:0;color:var(--card-ink);
  font-size:clamp(16px,3.4vw,28px);line-height:1.3;overflow-wrap:anywhere;
}
.report-design-title>.card-icon{
  background:#8f235e;color:white;width:1.64em;height:1.64em;padding:.33em;border-radius:.48em;
}
.customer-account-card .report-design-title>.card-icon{background:#963b94}
.report-design-art{
  display:block;width:100%;max-width:185px;max-height:185px;aspect-ratio:1;
  object-fit:contain;align-self:center;justify-self:center;
  border-radius:14% 43% 14% 14%;background:#fce8f4;
}
.summary-card .report-design-art{grid-column:2;grid-row:1/3;border-radius:50%}
.summary-card .report-design-title{grid-column:1;grid-row:1}
.designed-report>.card-design-metrics{grid-area:auto;grid-column:1;grid-row:2;align-self:end}
.designed-report .card-design-metric{padding:clamp(5px,1.6vw,14px) 3px}
.designed-report .card-design-metric strong{font-size:clamp(12px,2.7vw,24px)}
.designed-report .card-design-caption{font-size:clamp(10px,2.3vw,16px)}
.designed-report .card-design-caption>.card-icon{width:1.45em;height:1.45em}
.customer-design-identity{grid-column:1;grid-row:1;display:grid;justify-items:start;gap:3px}
.customer-design-count{display:flex;align-items:center;gap:6px;font-size:clamp(11px,2.5vw,18px)}
.customer-design-count>.card-icon{color:#721263}
.customer-design-identity .whatsapp-link{padding:1px 5px;min-height:0;font-size:11px;direction:ltr}
.customer-account-card .report-design-art{grid-column:2;grid-row:1/3}
#extra-view .designed-report>details,#extra-view .designed-report>button{grid-column:1/-1}
#extra-view .designed-report>details{padding:0;margin:0;background:none;border:0}
#extra-view .designed-report>details>summary{
  display:flex;width:max-content;align-items:center;gap:5px;margin-inline-start:auto;padding:4px 9px;
  list-style:none;border:1px solid #c485d4;border-radius:12px;
  background:linear-gradient(#fae9fd,#eed3f5);color:#2a1037;font-weight:800;
}
#extra-view .designed-report>details>summary::-webkit-details-marker{display:none}
#extra-view .designed-report>details[open]>summary .card-icon{transform:rotate(-90deg)}
@media(max-width:445px){
  #extra-view .designed-report{column-gap:6px;row-gap:7px}
  .designed-report>.card-design-metrics{gap:4px}
  .designed-report .card-design-caption{gap:2px}
  .designed-report .card-design-metric{border-radius:9px}
  .designed-report .card-design-metric strong{font-size:clamp(11px,3vw,14px)}
}

@media(max-width:999px){
  .apple-standalone{
    --bottom-controls-lift:40px;
    --bottom-safe-area:env(safe-area-inset-bottom,0px);
  }
  .apple-standalone .section-tabs{
    bottom:calc(var(--bottom-controls-lift) + var(--bottom-safe-area));
    padding-bottom:8px;
  }
  .apple-standalone main{
    padding-bottom:calc(110px + var(--bottom-controls-lift) + var(--bottom-safe-area))!important;
  }
  .apple-standalone #refresh-screen{
    bottom:calc(72px + var(--bottom-controls-lift) + var(--bottom-safe-area));
  }
  .apple-standalone #new-shipment{
    bottom:calc(128px + var(--bottom-controls-lift) + var(--bottom-safe-area));
  }
}
@media(max-width:690px){
  .apple-standalone body:has(#orders-view:not([hidden])) #refresh-screen{
    bottom:calc(134px + var(--bottom-controls-lift) + var(--bottom-safe-area));
  }
  .apple-standalone #add{
    bottom:calc(78px + var(--bottom-controls-lift) + var(--bottom-safe-area));
  }
}

/* Pink waves are painted on backgrounds and never intercept input. */
:root{
  --pink-wave-top:url("art/wave-top.svg");
  --pink-wave-bottom:url("art/wave-bottom.svg");
  --pink-wave-shadow:0 4px 12px #65265420;
}

main.shell{
  background-image:var(--pink-wave-top);
  background-position:center top;
  background-size:100% clamp(52px,10vw,100px);
  background-repeat:no-repeat;
}

:is(.ref-filter-panel,.listing,.gate,.cash-ledger,.expenses-panel,.expense-reference-filters,dialog),
#extra-list>.row:not(.designed-report){
  background-image:var(--pink-wave-top),var(--pink-wave-bottom);
  background-position:center top,center bottom;
  background-size:100% clamp(24px,6vw,52px),100% clamp(22px,5vw,44px);
  background-repeat:no-repeat;
  box-shadow:var(--pink-wave-shadow);
}

#extra-view[data-section="settings"] #extra-list{
  background:var(--pink-wave-bottom) center bottom/100% 46px no-repeat;
  border-radius:14px;
}

:is(.reference-banner,.reference-cash-hero,.ref-stat){
  position:relative;
  isolation:isolate;
  box-shadow:var(--pink-wave-shadow);
}
:is(.reference-banner,.reference-cash-hero,.ref-stat)::after{
  content:"";
  position:absolute;
  z-index:-1;
  pointer-events:none;
  inset:auto 0 0;
  height:clamp(20px,5vw,42px);
  border-radius:0 0 22px 22px;
  background:var(--pink-wave-bottom) center bottom/100% 100% no-repeat;
  opacity:.4;
}

:is(.designed-order,.designed-shipment,.designed-report)::before{
  content:"";
  position:absolute;
  z-index:-1;
  pointer-events:none;
  inset:auto 0 0;
  width:auto;
  height:clamp(24px,5vw,52px);
  border-radius:0;
  transform:none;
  box-shadow:none;
  background:var(--pink-wave-bottom) center bottom/100% 100% no-repeat;
  opacity:.64;
  clip-path:none;
}
.customer-account-card.designed-report::before{clip-path:none}
:is(.designed-order,.designed-shipment,.designed-report)::after{content:none}
:is(.designed-order,.designed-shipment,.designed-report){box-shadow:var(--pink-wave-shadow)}

#search-box,#customer-search-row #search-box{
  background:var(--pink-wave-top) center top/100% 39px no-repeat,
    var(--pink-wave-bottom) center bottom/100% 24px no-repeat,
    linear-gradient(125deg,#fde2f0,#fff3f9);
  border-radius:17px;
  box-shadow:0 3px 9px #a6427920;
}
#search-box #global-search,#customer-search-row #global-search{
  box-sizing:border-box;
  min-width:0;
  font-size:16px;
  padding-inline-start:44px;
  border:1px solid #df91c1;
  border-radius:999px;
  background:#fff url("art/search-lens.svg") right 8px center/29px 29px no-repeat;
  box-shadow:0 2px 6px #a6427926;
}
#customer-search-row #search-box{
  padding-inline:5px;
}
#customer-search-row #global-search{
  min-height:43px;
  background-color:#ffffffde;
}
#customer-search-row #search-box::before,#customer-search-row #search-box::after{
  content:none;
}
#search-box #global-search:focus-visible{
  outline:2px solid #a42a74;
  outline-offset:1px;
}

/* Compact status control; existing cards and financial layout are unchanged. */
#sync-status { font-size: .72rem; max-width: 47vw; padding: .4rem .55rem; white-space: normal; }
#sync-status[data-state="error"] { color: #9d243c; background: #fff0f2; }
#sync-status[data-state="offline"], #sync-status[data-state="pending"] { color: #805100; background: #fff6df; }
#sync-status[data-state="ready"] { color: #236346; }
dialog p { overflow-wrap: anywhere; }
@media(max-width:420px) { header .bar { flex-wrap: wrap; gap: .35rem; } #sync-status { order: 3; max-width: 100%; } }
