/* Workplace theme. Final visual contract after component geometry styles.
   Brand appears in actions and identity; records remain neutral and legible. */
@font-face{font-family:'Source Sans 3';src:url('assets/fonts/SourceSans3-Regular.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Source Sans 3';src:url('assets/fonts/SourceSans3-Semibold.woff2') format('woff2');font-weight:600;font-display:swap}
@font-face{font-family:'Source Sans 3';src:url('assets/fonts/SourceSans3-Bold.woff2') format('woff2');font-weight:700;font-display:swap}
:root,:root[data-brand=phemex]{color-scheme:light;--brand:#286347;--green:var(--brand);--accent:var(--brand);--brand-leaf:#6cbd49;--brand-highlight:#ffd027;--ink:#242d38;--muted:#5d6876;--border:#dce1e7;--surface:#fff;--canvas:#f3f4f6;--success:#246245;--warning:#865b16;--danger:#a83333;--radius:8px;font-family:'Source Sans 3','Segoe UI',sans-serif;font-size:16px;line-height:1.5;background:var(--canvas);color:var(--ink)}
body{font-family:inherit;background:var(--canvas);color:var(--ink)}button,input,select,textarea{font-family:inherit;font-size:15px;line-height:1.45}button{font-weight:600;border-radius:6px;min-height:40px;box-shadow:none}button:disabled{cursor:not-allowed}input,select,textarea{background:#fff;color:var(--ink);border-color:#b9c2cc;border-radius:6px;padding:10px 12px}input:not([type=checkbox]):not([type=radio]),select{min-height:42px}input[type=checkbox],input[type=radio]{accent-color:var(--brand)}input:focus,select:focus,textarea:focus,button:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid #90b4a2;outline-offset:3px}button:hover{background:#f0f3f5;border-color:#aebbc5}.primary{background:var(--brand);border-color:var(--brand);color:#fff;box-shadow:none}.primary:hover{background:#1e5038;border-color:#1e5038}.primary:disabled{opacity:.65}
h1{font-size:30px;font-weight:600;letter-spacing:-.5px;line-height:1.25}h2{font-size:23px;font-weight:600;letter-spacing:-.25px;line-height:1.35}h3{font-size:18px;font-weight:600;line-height:1.4}p{line-height:1.65}small{font-size:13px}.eyebrow,.form-context{font-size:13px;letter-spacing:.06em;font-weight:600;color:var(--muted)}
/* Navigation and workspace chrome */
.shell{grid-template-columns:248px minmax(852px,1fr)}.shell>aside{background:#202831;background-image:none;padding:26px 16px 18px;gap:26px;scrollbar-color:#65717d #202831}.nav .nav-item,.nav-group .nav-item{font-size:15px;min-height:44px;color:#cbd2db;padding:11px 12px;font-weight:400;border-radius:6px}.nav .nav-item.active{background:#35423e;background-image:none;color:#fff;border-color:#50635a;box-shadow:inset 3px 0 #80aa91}.nav .nav-item:hover{background:#303a45;color:#fff}.nav-icon,.polished-group>summary>.nav-icon{color:#a4b0bc;width:19px;height:19px}.nav .active .nav-icon{color:#bed8c9}.polished-group>summary{font-size:15px!important;color:#e4e8ed;font-weight:600!important}.nav .nav-entry .nav-create{color:#bdc9c1!important;font-size:21px;width:30px;height:30px}.nav .nav-entry .nav-create:hover{background:#435249;color:white!important}.nav-section-label{font-size:13px;letter-spacing:.08em;color:#a4afbb}.nav .active-pin{background:#89b29a}.brand-mark{background:#d8e6de;color:#294c3b;box-shadow:none;border-radius:7px}.brand-lockup strong{font-size:24px;color:white;letter-spacing:-.4px}.brand-lockup small,.foamdeal-brand>small{font-size:13px;letter-spacing:.08em;color:#b5c0ca}.foamdeal-wordmark{background:#fff;border:0;border-radius:5px;padding:12px 10px}.foamdeal-wordmark img{display:block;width:100%;height:auto}.foamdeal-brand>small{display:block;margin:10px 4px}.workspace-identity strong{font-size:14px;color:#e4e8ed}.workspace-identity small,.workspace-edition{font-size:13px;color:#aab5c1}.workspace-identity>span{color:#d0dbd5;border-color:#63716c}.workspace-identity i{background:#8fac99}.workspace-edition span{font-size:13px}.topbar{background:#fff;min-height:72px}.context select,.top-actions button{font-size:14px}.top-actions .badge{background:#f0f3f5;color:#4e5e6a;font-size:13px}.content{padding:26px 30px}.banner{font-size:13px;color:#626d79;background:#eef0f3;border:1px solid var(--border);border-radius:5px;padding:8px 12px;margin-bottom:24px}
/* Registers, detail rails and document hierarchy */
.panel,.record-workspace,.sales-register-panel,.attention-workspace{border-radius:8px;box-shadow:none;background:#fff}.sales-heading h1,.module-head h1,.record-summary h1,.record-workspace .title-row h1{font-size:29px;letter-spacing:-.4px}.sales-heading p,.module-head p,.record-summary p{font-size:15px}.sales-toolbar,.inventory-toolbar,.list-toolbar{gap:14px}.sales-toolbar label,.inventory-toolbar label,.list-toolbar label{font-size:14px}.register-caption,.result-count,.column-toggle{font-size:13px}.sales-register th,th{font-size:13px;font-weight:600;letter-spacing:.035em;background:#f5f6f8;color:#536071;padding:14px 18px}.sales-register td,td,.record-workspace td{font-size:15px;padding:17px 18px;border-color:#e7ebef}.sales-register .record-link,.record-link{font-size:16px;color:#255a43}.sales-register td small,td small{font-size:13px;color:var(--muted);margin-top:5px}.sales-register tbody tr:hover{background:#f5f8f7}.money,.total,.document-totals,.document-metric strong,.rail-bottom b{font-variant-numeric:tabular-nums}.status-pill,.badge{font-size:13px;line-height:1.35;font-weight:600;padding:5px 9px;border-radius:5px}.status-pill.success,.badge:not(.amber):not(.red):not(.plain){background:#edf4ef;color:#2b6348}.status-pill.pending,.amber{background:#fbf3e5;color:#855b1c}.status-pill.neutral,.plain{background:#eef1f5;color:#536071}.red{background:#fceeee;color:#9f3030}.record-workspace{grid-template-columns:268px minmax(0,1fr)}.record-rail{background:#fafbfc}.record-rail header,.record-rail header button{font-size:14px}.rail-record{padding:19px 17px}.rail-record>strong{font-size:15px;line-height:1.4}.rail-record>span,.rail-bottom b,.rail-bottom small{font-size:13px}.rail-record.selected{background:#edf3ef;box-shadow:inset 3px 0 #527c63}.rail-item-price{font-size:15px}.document-workspace{padding:28px}.record-tabs{gap:22px;flex-wrap:wrap}.record-tabs button,.document-workspace .record-tabs button{font-size:15px;padding:13px 2px}.record-tabs button[aria-selected=true],.document-workspace .record-tabs button[aria-selected=true]{color:var(--brand);border-color:var(--brand)}.document-metric,.customer-balance-cards>.document-metric{border-radius:8px!important}.document-metric>span,.document-metric>small,.document-metric small{font-size:13px}.document-metric.accent,.document-totals .amount-due,.available-credit-strip{background:#f0f5f2;border-color:#d7e3dc}.document-metric.accent strong,.available-credit-strip b,.amount-due dt,.amount-due dd{color:#285b42}.document-identity,.document-count{font-size:13px;color:var(--muted)}.document-note,.document-bottom p,.document-totals dt,.document-totals dd{font-size:15px}.document-items th{font-size:13px}.document-items td{font-size:15px}.reference{font-family:inherit!important;font-size:13px!important;letter-spacing:.015em}.activity-row,.list-row{font-size:15px}.activity-row small{font-size:13px}.correction-menu,.correction-options small{font-size:14px}.correction-action{border-style:solid!important}.list-pagination,.list-pagination label,.list-pagination select,.list-pagination button{font-size:14px}.list-pagination{gap:12px;flex-wrap:wrap;padding:16px}.list-pagination button{min-width:80px}
/* Contact profiles, credits and refunds */
.profile-card-grid{gap:20px}.profile-info-card{background:#fff;border-radius:8px;box-shadow:none;padding:24px}.profile-info-card h3{font-size:18px}.profile-field dt{font-size:13px;letter-spacing:0;color:var(--muted);opacity:1}.profile-field dd,.profile-field dd.not-provided,.profile-notes,.profile-empty{font-size:16px;line-height:1.6;opacity:1}.profile-field dd.not-provided,.profile-empty{color:var(--muted)}.profile-notes-card{border-top:1px solid var(--border)}.profile-icon,.balance-icon,.item-glyph,.identity-icon,.method-mark{background:#f0f3f6;color:#536473;border-color:#dbe2e8;border-radius:7px}.profile-type{font-size:13px;border-radius:6px}.account-profile-heading h2{font-size:23px}.account-profile-heading .eyebrow{font-size:13px}.balance-card-hint{font-size:13px!important}.balance-card-hint b{color:var(--brand)}.journey-section-title{font-size:20px!important}.journey-caption,.journey-guidance{font-size:15px!important;opacity:1}.journey-history-card>p,.journey-allocation,.journey-empty,.journey-content #refund-results .record-row p{font-size:15px}.journey-content #refund-results .record-row small,.journey-content #refund-results .record-progress{font-size:13px}.journey-corrections>summary{font-size:14px}.journey-guidance{border-left-color:#9aada1!important}.journey-empty{opacity:1;border-style:solid}.credit-document-items table{font-size:15px}
/* Forms: readable labels, consistent fields, visible errors, modest emphasis. */
body.editor-open .shell>aside{width:248px}body.editor-open #editor[open]{margin-left:248px;width:calc(100% - 248px)}body.editor-open #editor form{border-radius:8px}body.editor-open .dialog-head{padding:28px 30px;background:#fff}body.editor-open .dialog-head h2{font-size:28px;letter-spacing:-.4px}.form-heading{border-left:0}.form-heading p{font-size:15px;color:var(--muted)}.form-kind-icon{background:#f3f5f7;color:#4d6056;border-radius:8px}.dialog-body{background:#fff}.dialog-body label,.dialog-body .line label,.dialog-body .compact-item>label,.dialog-body .compact-item>div>label,.journey-editor .payment-part label,.journey-editor .payment-correction label{font-size:15px}.dialog-body input,.dialog-body select,.dialog-body textarea,.smart-input{font-size:16px}.smart-option{font-size:15px}.smart-select small,.smart-selection-caption,.line-amount>span{font-size:13px}.line-amount strong{font-size:18px}.form-totals>label{font-size:15px}.total{background:#f2f5f3;border:1px solid #dce5de;border-radius:7px;color:var(--ink)}.form-totals{border-radius:8px}.dialog-foot{padding:20px 30px;gap:12px;background:#fff}.dialog-foot button{min-width:100px;min-height:43px;font-size:16px}.summary,.inventory-note,.radio-choice,.journey-editor .radio-choice{font-size:15px;line-height:1.65}.journey-editor .radio-choice:has(input:checked){border-color:#7c9e89;box-shadow:inset 3px 0 #7c9e89}.error{font-size:15px}.form-error-summary{background:#fff3f2;color:#8d2525;border:1px solid #e6b9b6;border-left:4px solid #ad4540;border-radius:6px;padding:16px 18px;margin:0 0 24px;line-height:1.6;scroll-margin-top:24px}.form-error-summary:empty{display:none}.form-error-summary:focus{outline:2px solid #bb7470;outline-offset:3px}.route-card{background:#fafbfc;border-radius:8px}.route-card>span,.transfer-item-row>div>span,.transfer-item-row output small,.transfer-lines-heading>span,.transfer-date-strip{font-size:13px}.route-card strong{font-size:21px}.transfer-item-row,.transfer-receive-row{border-radius:8px}.transfer-item-row output strong{font-size:23px}.transfer-form-total strong{font-size:26px}.stock-count-preview small{font-size:13px}.inventory-toolbar.transaction-filters label{font-size:14px}
/* Overview is an operational dashboard, with succinct headings and quiet cards. */
.home-intro{padding:12px 0 30px}.home-intro h1{font-size:34px;letter-spacing:-.6px;line-height:1.2;margin:12px 0}.home-intro em{font-family:inherit;font-style:normal;font-weight:600;color:inherit}.home-intro p{font-size:15px}.launch-sale{background:#286347;border-radius:8px;box-shadow:none}.launch-sale:hover{background:#1e5038}.launch-sale strong{font-size:19px}.launch-sale small{font-size:14px;color:#e0ebe5}.launch-sale>span,.launch-sale b{color:#fff;border-color:#82a591;border-radius:6px}.launch-secondary button{font-size:14px}.home-scoreboard{border-radius:8px;background:var(--border);border-color:var(--border)}.home-scoreboard .score-receivable{background:#fff}.metric-label{font-size:13px;letter-spacing:.055em;color:var(--muted)}.home-scoreboard section>strong{font-size:32px;letter-spacing:-.4px}.home-scoreboard section>div:not(.progress-track),.home-scoreboard section>small{font-size:14px}.attention-workspace h2,.recent-stream h2{font-size:23px}.queue-total,.attention-tabs button,.queue-record small,.stream-record small{font-size:13px}.queue-record strong,.stream-record strong{font-size:16px}.stream-record b{font-size:16px}.stream-record>div>span{font-size:13px}.attention-tabs button[aria-selected=true]{color:var(--brand);border-color:var(--brand)}.fulfilment-note{background:#f5f7f9;border-color:var(--border);border-radius:8px}.fulfilment-note h2,.fulfilment-note p,.fulfilment-note button{color:var(--ink)}.fulfilment-note p{font-size:15px}.shortcut-grid button{font-size:15px}.collection-progress::-webkit-progress-value{background:#527c63}.collection-progress::-moz-progress-bar{background:#527c63}.live-dot{background:#527c63}
#notice{top:88px;bottom:auto;right:24px;max-width:520px;padding:17px 46px 17px 20px;background:#273641;color:#fff;font-size:15px;line-height:1.55;border:1px solid #4d626c;border-radius:8px;z-index:150;box-shadow:0 8px 24px #16242c20}#notice button{position:absolute;right:7px;top:7px;min-height:30px;width:30px;padding:0;color:#fff;background:transparent;border:0;font-size:22px}#notice button:hover{background:#ffffff18}.welcome{background:#202831}.login-card .muted{font-size:15px}.welcome h1{font-size:46px;letter-spacing:-1px}.welcome p{color:#d2dae1}.journey-content .list-toolbar label{font-size:14px}.accounting-stats small,.stat small,.detail-grid small{font-size:13px}.journal summary,.journal p{font-size:15px}.journal summary small{font-size:13px}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Component-specific readability and interaction details. */
.document-item strong,.document-item-table .money,.payment-method strong{font-size:16px}.document-item small{font-size:13px!important;letter-spacing:0}.document-item-table th{font-size:13px!important;background:#f5f6f8!important}.document-section-heading h2{font-size:22px}.document-header-refined .buttons>button{font-size:15px}.document-workspace .record-summary>.summary{font-size:15px}.document-context-note h3{font-size:16px}.document-context-note p,.document-context-note button{font-size:14px}.document-totals .amount-due dd{font-size:24px}.document-reference{font-size:14px;color:var(--muted)}.rail-record>span:not(.rail-bottom):not(.rail-invoice-status){font-size:13px;letter-spacing:0}.rail-invoice-status .status-pill{font-size:13px}.form-heading .form-context{font-size:13px;letter-spacing:.04em}.dialog-head{background:#fff!important}.smart-options>button{font-size:15px}.smart-options small{font-family:inherit;font-size:13px}.smart-caption{font-size:13px;color:var(--muted)}.smart-clear{min-height:28px}.document-workspace .detail-grid small{font-size:14px}.sales-metrics span,.sales-metrics small{font-size:14px}.sales-metrics strong{font-size:25px}.sales-metrics{border-radius:8px}.panel>.muted{padding:16px 22px;margin:0;border-top:1px solid var(--border);font-size:14px;background:#fafbfc}.panel>.list-toolbar{display:flex;align-items:end;gap:16px;flex-wrap:wrap;padding:18px 22px;border-bottom:1px solid var(--border)}.panel>.list-toolbar label{margin:0;min-width:170px}.panel>.list-toolbar label:first-child{flex:1}.panel .detail>details{padding:18px 0;border-bottom:1px solid var(--border)}.panel .detail>details>summary{cursor:pointer;line-height:1.6}.panel .detail>details>summary small{display:block;color:var(--muted);margin-top:6px}.panel .detail>details>p{margin:14px 0}.interactive-row{cursor:pointer}.interactive-row:hover{background:#f0f5f2}.interactive-row:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}.authorizing .shell>aside{width:248px}.authorizing #authorize[open]{width:calc(100% - 248px);margin-left:248px}.authorizing #authorize{font-size:16px}.list-toolbar button{align-self:end}.customer-profile-details{border-top:1px solid var(--border)}.home-scoreboard section>div>span{line-height:1.5}.rail-record strong,.document-item strong,.record-summary h1{overflow-wrap:anywhere}
.document-location-field,.document-location-context{border:1px solid var(--border,#d8dfe5);background:var(--surface,#fff);border-radius:8px;padding:16px 20px;margin:0 0 24px;display:flex;align-items:center;gap:24px}.document-location-field label{min-width:270px;margin:0}.document-location-field p,.document-location-context small{margin:0;color:var(--muted,#637080);font-size:14px}.document-location-context span{font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted,#637080)}.document-location-context strong{font-size:17px}.document-location-label,.line-stock-caption{display:block;color:var(--muted,#637080);font-size:14px;margin-top:5px}.workspace-scope-badge{font-size:13px;padding:5px 10px;border:1px solid var(--border,#d8dfe5);border-radius:5px;color:var(--muted,#637080)}.document-location-field[hidden]{display:none}

.item-line-meta{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-top:6px;flex-wrap:wrap}
.item-line-meta .smart-caption{margin:0;flex:1}
.item-line-meta .item-available{margin:0 0 0 auto;text-align:right;color:#42604d;font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
.item-line-meta .item-available.negative{color:#a43434}
