/* Poddony24 workspace, 0.99.7.
   Presentation only: native controls, stable layouts and no external assets.
   Financial statuses and warehouse workflows keep their own semantics. */
:root{
 --green:#17664f;--ink:#153a30;--muted:#536b60;--line:#d5e3db;--gold:#eac16b;
 --surface-shadow:0 1px 2px #173b2d04,0 4px 16px #173b2d06;
 --control-radius:10px;--card-radius:14px;--motion:160ms;
 color:#233d33;background:#f2f5f2;color-scheme:light
}
body{background:radial-gradient(ellipse at 95% 0,#e5eee7 0,transparent 42%),#f2f5f2}
::selection{background:#c5e3d3;color:#123f2e}
button,.button,input,select,textarea,summary{
 transition:background-color var(--motion),border-color var(--motion),box-shadow var(--motion),transform var(--motion);
}
button,.button{border-radius:var(--control-radius);font-weight:650}
:where(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #2b73a3;outline-offset:3px}
:where(button,a,summary){-webkit-tap-highlight-color:#cce6d6;touch-action:manipulation}
button:disabled,.button[aria-disabled=true]{box-shadow:none;transform:none}
button.primary,.button.primary{
 background:linear-gradient(135deg,#237a5e,#155941);border-color:#17664f;
 color:#fff;box-shadow:inset 0 1px 0 #ffffff20,0 3px 6px #17483217
}
button.primary:hover,.button.primary:hover{background:#15563f;border-color:#15563f}
button.danger{color:#a3312f;border-color:#e6c1bc}
button.danger:hover{background:#fff1ed;border-color:#d7a39b}
button.subtle{box-shadow:none}
@media(hover:hover) and (pointer:fine){
 button:not(:disabled):not(.subtle):hover,.button:hover{border-color:#a3c0af}
 button.primary:not(:disabled):hover{border-color:#154d3a;box-shadow:0 4px 10px #17483226}
 .nav button:hover svg,.warehouse-bottom button:hover svg{transform:translateY(-1px)}
}
button:not(:disabled):active,.button:active{transform:translateY(1px)}
button.link:active,.shipment-open:active,.notification:active{transform:none}

/* The rail is a firm visual anchor; content retains the full working width. */
.sidebar{background:linear-gradient(165deg,#183f33,#102c25 80%);border-right:1px solid #244d3d}
.brand{letter-spacing:-.25px}
.brand-mark{background:linear-gradient(140deg,#f5da97,#dfb456);box-shadow:inset 0 1px 0 #fff8,0 3px 8px #071a2426;border-radius:10px}
.brand small,.nav-group{color:#adccba}
.sidebar-foot{color:#b4ccbe;border-top-color:#355848}
.nav button{color:#d4e3d9;border-radius:9px;line-height:1.35}
.nav button svg,.warehouse-bottom svg{transition:transform var(--motion);opacity:1}
.nav button.active{background:#315b49;color:#fff;box-shadow:inset 3px 0 0 var(--gold),inset 0 0 0 1px #e0efd812}
.nav button.active svg{color:#f5d58a}
.nav button.active:after{background:#f1cb7c;box-shadow:0 0 0 3px #f1cb7c14}
.nav button:hover{background:#294d3e}
.topbar{background:#fff;border-bottom-color:#dce6dd}
.breadcrumb{color:#61766a}.breadcrumb strong{color:#284c39}
.avatar{background:#e9f2eb;color:#22583f;border:1px solid #cbded0}
.page-head h1,.acc-heading h1,.receiver-title h1{color:#173f30;letter-spacing:-.6px}
.eyebrow{color:#597967}
.panel,.crm-card,.shipment-card,.inv-buyer,.stock-warehouse,.staff-card,.acc-filters,.inv-table-wrap,.acc-table-wrap,.bank-row,.receipt-card,.draft-card{
 box-shadow:var(--surface-shadow);border-color:var(--line)
}
.panel,.crm-card,.inv-buyer,.stock-warehouse,.staff-card,.receipt-card,.draft-card{border-radius:var(--card-radius)}
.panel-head{background:linear-gradient(100deg,#f8fbf8,#fff);border-bottom-color:#e1e9e2}
.panel-head h2{color:#244733;font-weight:700}
.panel-head .panel-note{margin-top:4px}
.panel-note,.kpi-foot,td small,.detail-label{color:#5b7164}
.kpi{position:relative;border-color:#d8e4da;border-top:0;border-radius:14px;box-shadow:var(--surface-shadow);border-left:4px solid #397e59}
.kpi:nth-child(2){border-left-color:#527fa2}
.kpi:nth-child(3){border-left-color:#b48632}
.kpi:nth-child(4){border-left-color:#81719b}
.kpi-top{color:#526b5c;line-height:1.35}
.kpi-top svg{width:28px;height:28px;padding:5px;background:#edf5ee;color:#316b49;border-radius:8px;flex-shrink:0}
.kpi:nth-child(2) .kpi-top svg{background:#edf3fa;color:#3b668b}
.kpi:nth-child(3) .kpi-top svg{background:#fcf3df;color:#89631e}
.kpi:nth-child(4) .kpi-top svg{background:#f2eef8;color:#715a93}
.kpi-value{color:#1d4934;font-weight:750;letter-spacing:-.8px}
.kpi-value,.payout-summary strong,.payout-strip>strong,.inv-amount,.hub-totals b,.journal-amount{font-variant-numeric:tabular-nums}
.content:has(>.dashboard-grid)>.page-head{
 background:linear-gradient(110deg,#163d30,#215e45);
 color:#fff;border:1px solid #235740;border-radius:16px;padding:20px 24px;
 box-shadow:0 6px 16px #133e3010;position:relative;isolation:isolate
}
.content:has(>.dashboard-grid)>.page-head::before{
 content:"";position:absolute;right:15%;top:10px;bottom:10px;width:150px;z-index:-1;
 background:repeating-linear-gradient(125deg,transparent 0 18px,#e5c7770a 18px 30px);
 pointer-events:none;border-radius:8px
}
.content:has(>.dashboard-grid)>.page-head h1{color:#fff}
.content:has(>.dashboard-grid)>.page-head .eyebrow{color:#e7ca87}
.content:has(>.dashboard-grid)>.page-head .subtitle{color:#d1e4d7}
.content:has(>.dashboard-grid)>.page-head .primary{background:#efcc80;border-color:#efcc80;color:#183e2d}
.content:has(>.dashboard-grid)>.page-head .primary:hover{background:#f7dca1}
.warehouse-title{color:#274b35}
.note-icon{background:#faf0d9;color:#846022;border:1px solid #eddfbc}
.progress-track .good{background:#388661}

/* Inputs and expanded choices remain native and keyboard accessible. */
input:not([type=checkbox]):not([type=radio]),select,textarea{border-color:#b8cfc0;background-color:#fff;border-radius:var(--control-radius);color:#233f31}
input::placeholder,textarea::placeholder{color:#63776b;opacity:1}
input:focus,select:focus,textarea:focus{border-color:#2f805b;outline:2px solid #bee0cd;outline-offset:1px;box-shadow:0 0 0 3px #dceee426}
input[type=checkbox],input[type=radio]{accent-color:#1a7052}
select:not([multiple]):not([size]){
 appearance:none;-webkit-appearance:none;padding-right:34px!important;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234b6a57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
 background-repeat:no-repeat;background-position:right 12px center;background-size:14px
}
select option{background:#fff;color:#233f31}
select:disabled,input:disabled{background-color:#f1f4ef;color:#637569}
input[type=search],.search{border-color:#bdd0c2}
:where(.acc-filter-details,.source-evidence,.receipt-extras,.freight-advanced)>summary{
 border:1px solid #cfdfd2;border-radius:9px;background:#f7faf6;color:#365b42;padding:9px 12px;font-weight:650
}
:where(.acc-filter-details,.source-evidence,.receipt-extras,.freight-advanced)[open]>summary{
 background:#e9f3e9;border-color:#9ebfa8;color:#1e5839
}
.acc-compact .acc-filter-details>summary{background:#f7faf6;border-radius:8px}
.acc-compact .acc-filter-details[open]>summary{background:#e9f3e9}
.receiver-settings{border:1px solid #c9dccf!important;border-radius:14px!important;box-shadow:0 12px 32px #173c2b24!important;background:#fff!important}
.receiver-settings button{border-radius:9px}
.tabs{gap:6px;padding-bottom:5px}
.tabs button{padding:9px 12px;border-radius:9px;border-bottom:2px solid transparent;color:#556c5d}
.tabs button.active{background:#e5f0e5;color:#1b5737;border-bottom-color:#2f7952;font-weight:700}

/* Tables have readable ink, stable row heights and clear status colors. */
:is(.acc-table,.inv-table,.hub-table) th{background:#e8f0e9;color:#3a5b43;font-weight:700}
:is(.acc-table,.inv-table) tbody tr:not(.acc-expanded){background:#fff}
:is(.acc-table,.inv-table) tbody tr:not(.acc-expanded):hover{background:#f1f7ef}
.acc-table small{color:#526c5b}
.acc-date,.inv-link{color:#1a6041}
.badge{font-weight:650;border-radius:6px;line-height:1.35}
.badge.green,.acc-status.shipped{color:#155731;background:#e1f2e5}
.badge.amber{color:#78520d;background:#fff0ce}
.badge.red{color:#a1302c;background:#fce8e2}
.badge.blue{color:#275c83;background:#e4eef9}
.acc-ready{color:#195a35;background:#e2f2e5;border:1px solid #c4dfcc}
.acc-ready.waiting{color:#795419;background:#fff4df;border-color:#efdcba}
.acc-status,.bank-payment{font-weight:650}
.crm-card-head .badge,.request-status{border-radius:6px}
.empty{color:#5b7161;line-height:1.6}
.empty::before{
 content:"";display:block;width:44px;height:44px;border-radius:12px;margin:0 auto 12px;
 background:#edf4eb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c7d64' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='2'/%3E%3Cpath d='M9 8h6M9 12h6M9 16h3'/%3E%3C/svg%3E") no-repeat center/25px
}
.empty strong{color:#355b3e}
.notice.neutral,.callout{background:#edf4eb;color:#44664e;border-color:#d6e3d2;border-radius:10px}
.error{color:#962f27;background:#fff0e9;border:1px solid #f1cfc3;border-radius:10px}
.notification.unread{border-left-color:#267d51;background:#f4faf3}
.notification.unread span{color:#235d3a}

/* Dialogs and feedback: short, single animations, no continuous decorative motion. */
dialog:not(.photo-viewer){border-color:#c7dbcc;border-radius:18px;box-shadow:0 20px 70px #102d2545}
dialog::backdrop{background:#10291f75;backdrop-filter:none}
.modal-head{background:#fff;border-bottom-color:#dce7dd}
.modal-head h2{color:#234d35;line-height:1.35}
.modal-head [data-action=close-modal]{border:1px solid #d6e2d7;background:#f5f8f2;border-radius:50%;min-width:36px;min-height:36px;font-size:20px}
.modal-foot{background:#f8faf6;border-top-color:#dbe6da}
.modal-foot button{min-height:40px}
#toast{background:#214f38;border:1px solid #547761;border-radius:12px;box-shadow:0 8px 26px #173b2d28;z-index:70;line-height:1.5}
#toast.visible{animation:workspace-appear 160ms ease-out}
dialog[open]:not(.photo-viewer){animation:workspace-appear 180ms ease-out}
@keyframes workspace-appear{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}

/* Warehouse touch workspace. No change to button actions or cash/priority flags. */
.receiver-top{border-bottom:1px solid #d1dfd1;box-shadow:0 3px 12px #1f452309;background:#fff}
.receiver-top>div:first-child{border-left:3px solid #ddb45f;padding-left:10px}
.receiver-top strong{color:#1e5237}
.receiver-content>.wide{margin-bottom:8px}
.receiver-intake-actions .receiver-intake-action{border-radius:18px;box-shadow:0 4px 14px #214a3410;border-width:1px}
.receiver-intake-actions .receiver-intake-action.primary{background:linear-gradient(140deg,#237c59,#18533a);border-color:#226449}
.receiver-intake-actions .receiver-intake-action.exchange{background:#eef4fb;border-color:#b4cadf;color:#285a7c}
.receiver-intake-actions .receiver-intake-action svg{width:42px;height:42px;padding:8px;background:#ffffff20;border-radius:12px}
.receiver-intake-actions .receiver-intake-action.exchange svg{background:#dce9f5}
.receive-hero{background:linear-gradient(125deg,#1c674c,#153f30)}
.warehouse-shortcuts button{border-color:#d3e2d3;box-shadow:var(--surface-shadow)}
.warehouse-shortcuts svg{color:#347b50}
.warehouse-bottom{box-shadow:0 -4px 18px #143e2e09;background:#fff;border-top-color:#d7e2d6}
.warehouse-bottom button.active{background:#e1efdf;color:#1a5534;box-shadow:inset 0 1px 0 #fff}
.warehouse-bottom button.active svg{stroke-width:2}
#workplace-connection{border-top-color:#c4d8c8;background:#eaf3e8;color:#315c3c}
#navigation-progress{position:fixed;z-index:65;top:8px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:9px;padding:9px 16px;border:1px solid #b9d5c8;border-radius:24px;box-shadow:0 3px 16px #173b2d20;background:#fff;color:#235c46;font-size:13px;font-weight:600;pointer-events:none}
#navigation-progress[hidden]{display:none}
#navigation-progress:before{content:"";width:14px;height:14px;border:2px solid #caddd2;border-top-color:#236b54;border-radius:50%;animation:workspace-spin .8s linear infinite}
.navigation-pending main{cursor:progress}
.navigation-error{padding:20px;max-width:640px}.navigation-error .error{margin:16px 0}
@keyframes workspace-spin{to{transform:rotate(360deg)}}

/* Desktop density and mobile tap targets are intentionally different. */
@media(min-width:1024px){
 .nav button{min-height:35px;font-size:13px}
 .brand-mark{width:31px;height:34px;flex-shrink:0}
 .content :is(input:not([type=checkbox]):not([type=radio]),select){border-radius:9px}
 .content .toolbar{background:#fff}
 :is(.acc-table,.inv-table) th{font-size:11px}
 .acc-table small{font-size:12px}
 .acc-table td,.inv-table td{line-height:1.45}
 .acc-compact{border-radius:12px}
 .cash-warehouses{gap:14px}
 .panel-head h2{font-size:15px}
}
@media(max-width:1023px){
 .warehouse-bottom button span,.receiver-shell .warehouse-bottom button span{font-size:clamp(11px,2.9vw,12px);white-space:nowrap;overflow-wrap:normal;word-break:normal;line-height:1.3}
 .receiver-shell .warehouse-bottom button{min-width:0}
 #navigation-progress{top:10px;max-width:calc(100% - 32px)}
 .content:has(>.dashboard-grid)>.page-head{padding:17px;border-radius:14px;gap:14px}
 .content:has(>.dashboard-grid)>.page-head .subtitle{line-height:1.5}
 .content:has(>.dashboard-grid)>.page-head .actions{width:100%;justify-content:flex-start}
 dialog .modal-foot button{min-height:44px}
 #toast{bottom:calc(122px + env(safe-area-inset-bottom));right:14px;max-width:calc(100vw - 28px)}
}
@media(max-width:600px){
 .kpi-top{font-size:11px;gap:6px}
 .kpi-top svg{width:25px;height:25px;padding:4px}
 .kpi{padding:12px}
 .kpi-value{font-size:26px;margin-top:9px}
 .modal-head [data-action=close-modal]{min-width:44px;min-height:44px}
 .wizard-dialog[open]{border-radius:0}
 .content select,.modal-body select,.receiver-content select{font-size:16px}
 .receiver-intake-actions .receiver-intake-action strong{font-size:19px}
}
/* Respect OS settings and remain legible with system high-contrast colors. */
@media(prefers-reduced-motion:reduce){
 button,.button,input,select,textarea,summary,.nav button svg,.warehouse-bottom svg{transition:none}
 dialog[open]:not(.photo-viewer),#toast.visible,#navigation-progress:before{animation:none}
 #navigation-progress:before{border-color:#236b54}
}
@media(forced-colors:active){
 select:not([multiple]):not([size]){appearance:auto;-webkit-appearance:auto;background-image:none}
 button.primary,.nav button.active,.warehouse-bottom button.active,.tabs button.active{border:2px solid Highlight}
 .kpi{border:1px solid CanvasText}.empty::before{display:none}
}

/* Customer notice template: readable calendar inputs and a non-sending preview. */
.notice-template-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.notice-template-fields label{min-width:0}
.notice-template-fields input,.notice-template-fields select{width:100%;min-width:0;box-sizing:border-box;min-height:46px}
.notice-template-check{display:flex;align-items:center;gap:10px;margin:18px 0}
.notice-template-check input{flex:0 0 22px;width:22px;height:22px}
.notice-template-preview{white-space:pre-wrap;overflow-wrap:anywhere;padding:16px;border:1px solid var(--line,#d8e5df);border-radius:14px;background:var(--panel,#f3f8f5);line-height:1.55}
.notice-template-resume{font-weight:600}
.notice-template-button{display:block;text-align:center;padding:12px;margin-top:12px;border-radius:10px;background:var(--accent,#21634f);color:#fff;font-weight:600}
@media(max-width:440px){.notice-template-fields{grid-template-columns:minmax(0,1fr)}}

/* Daily piecework payouts: one total action, readable component breakdown. */
.wp-breakdown{margin:12px 0;padding:12px 14px;background:var(--surface-soft,#f1f6f3);border-radius:12px}
.wp-breakdown>div{display:flex;justify-content:space-between;gap:12px;padding:4px 0}
.wp-breakdown dt{min-width:0}.wp-breakdown dd{margin:0;font-weight:650;white-space:nowrap}
.wp-group .wf-actions .primary{min-height:48px;white-space:normal}

/* A saved partial payment is a receipt, never a prefilled next payment. */
.strip-partial-totals{grid-column:1/-1;display:block;font-weight:600;line-height:1.5;color:#185444;white-space:normal}
.payment-saved-summary b{display:block;font-size:1.12rem}.payment-saved-summary p{margin:.6rem 0}
[data-next-intake-payment]{margin-top:16px;min-height:48px}
