:root{color-scheme:light;--ink:#20352f;--muted:#738078;--green:#173c35;--green-2:#285449;--mint:#e8eee4;--cream:#f5f5ef;--line:#e2e6dc;--white:#fff;--gold:#b19157;--red:#a14439;--radius:18px;--font:Tahoma,"Noto Sans Arabic",Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font:16px/1.8 var(--font)}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #b9c8a2;outline-offset:3px}a{color:var(--green)}button{color:inherit}svg{display:block;flex:none}h1,h2,h3,p{margin:0}h1{font-size:31px;line-height:1.6;letter-spacing:-.8px}h2{font-size:19px}h3{font-size:15px}small{font-size:11px}.ltr{direction:ltr;unicode-bidi:isolate;text-align:right}.muted{color:var(--muted)}.hidden,[hidden]{display:none!important}.skip-link{position:fixed;top:-80px;right:20px;z-index:100;background:var(--white);padding:12px 20px}.skip-link:focus{top:10px}.boot-screen{min-height:100vh;display:grid;place-content:center;justify-items:center;gap:18px}.brand-seal{width:49px;height:49px;border:1px solid #b6c7b6;border-radius:15px;display:grid;place-items:center;font-size:31px;font-weight:700;background:var(--mint);color:var(--green)}
.layout{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:var(--green);color:#edf3e9;padding:35px 24px 25px;display:flex;flex-direction:column;gap:35px;overflow:auto}.brand{display:flex;align-items:center;gap:12px}.brand .brand-seal{width:44px;height:44px;font-size:27px;background:transparent;border-color:#5c7769;color:#dce8d1}.brand-name{font-size:18px;font-weight:bold;white-space:nowrap}.brand-sub{font-size:11px;color:#afc1b6;margin-top:3px}.nav-caption{font-size:10px;letter-spacing:1px;color:#9fb8aa;margin:0 12px 13px}.nav-list{display:flex;flex-direction:column;gap:8px}.nav-link{border:0;background:transparent;color:#c0d0c4;display:flex;align-items:center;text-align:right;gap:12px;padding:12px 14px;border-radius:11px;width:100%;font-size:12px;transition:background .2s}.nav-link:hover{background:#244a40}.nav-link.active{background:#e5eddd;color:#1c3a30;font-weight:700}.nav-link .nav-dot{margin-inline-start:auto;width:6px;height:6px;border-radius:100%;background:currentColor}.sidebar-card{border:1px solid #416054;border-radius:13px;padding:15px;font-size:11px;line-height:1.9;color:#b7cbbd}.sidebar-card strong{color:#e4eddf;display:block;margin-bottom:6px;font-size:12px}.sidebar-bottom{margin-top:auto}.profile{display:flex;gap:11px;align-items:center;border-top:1px solid #36584b;padding-top:23px}.profile-avatar{width:36px;height:36px;border-radius:50%;background:#35584a;display:grid;place-items:center;color:#dbe7d5;font-size:14px}.profile-name{font-size:12px;color:#f1f6ed}.profile-role{font-size:10px;color:#adc2b3}.signout{border:0;background:none;color:#adc2b3;padding:8px 0;font-size:10px}.main-shell{min-width:0}.topbar{height:84px;display:flex;align-items:center;justify-content:space-between;padding:0 42px;border-bottom:1px solid var(--line);background:#fbfcf7;gap:15px}.breadcrumb{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:10px}.breadcrumb strong{font-weight:400;color:var(--ink)}.header-meta{display:flex;align-items:center;gap:14px;font-size:11px;color:var(--muted)}.private-tag{display:flex;align-items:center;gap:6px;padding:5px 10px;border:1px solid var(--line);border-radius:100px;background:white}.content{max-width:1490px;margin:auto;padding:32px 42px 45px}.review-banner{display:flex;align-items:flex-start;gap:12px;background:#eeecdf;border:1px solid #e4e0c9;color:#6c6448;border-radius:12px;padding:12px 16px;margin-bottom:27px;font-size:11px}.review-banner strong{font-size:12px;display:block}.review-banner svg{margin-top:3px}.page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:25px}.eyebrow{font-size:11px;color:#88977f;display:flex;align-items:center;gap:8px;margin-bottom:6px}.eyebrow::before{content:"";width:19px;height:1px;background:#9cad8b}.page-heading p{font-size:12px;color:var(--muted);margin-top:5px}.source-label{display:flex;align-items:center;gap:9px;font-size:10px;border:1px solid var(--line);border-radius:12px;background:#fafbf6;padding:11px 13px;margin-top:15px;white-space:nowrap}.source-label .status-dot{height:7px;width:7px;border-radius:100%;background:#8ba57c}.source-label b{font-weight:400;color:var(--ink)}.stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:27px}.stat-card{display:flex;align-items:center;justify-content:space-between;background:#fff;border:1px solid var(--line);border-radius:14px;padding:17px 21px;min-height:99px}.stat-label{font-size:11px;color:var(--muted)}.stat-value{font-size:27px;line-height:1.5;color:var(--green);font-weight:500;letter-spacing:-.4px;margin-top:4px}.stat-value.text{font-size:15px;letter-spacing:0;margin-top:10px}.stat-icon{background:#f0f3eb;border-radius:12px;padding:11px;color:#8e9e80}.workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;align-items:start}.workspace.has-cart{grid-template-columns:minmax(0,1fr) 300px}.catalog-panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;min-width:0}.catalog-toolbar{padding:23px 24px 19px;display:flex;justify-content:space-between;align-items:center;gap:12px}.section-heading{display:flex;align-items:center;gap:9px}.section-heading span{font-size:10px;color:var(--muted);font-weight:400}.catalog-controls{padding:0 24px 20px;display:flex;gap:10px}.search-wrap{position:relative;flex:1;min-width:0}.search-wrap svg{position:absolute;right:13px;top:15px;color:#82907f;pointer-events:none}.search-input{width:100%;background:#f7f8f4;border:1px solid #e7eadd;border-radius:11px;padding:11px 41px 11px 13px;font-size:12px;color:var(--ink)}.search-input::placeholder{color:#8f988e}.filter-select{border:1px solid var(--line);background:#fff;border-radius:10px;padding:8px 11px;color:#67745f;max-width:160px;font-size:11px}.catalog-table{width:100%;border-collapse:collapse;table-layout:fixed}.catalog-table thead{background:#f6f8f2;color:#7d8877;font-size:10px}.catalog-table th{text-align:right;font-weight:400;padding:11px 15px;border-block:1px solid #edf0e7}.catalog-table th:first-child{padding-right:24px;width:38%}.catalog-table th:nth-child(2){width:25%}.catalog-table td{padding:18px 15px;border-bottom:1px solid #edf0e7;vertical-align:middle}.catalog-table td:first-child{padding-right:24px}.catalog-table tr:last-child td{border-bottom:0}.product-main{display:flex;gap:12px;align-items:center;min-width:0}.product-icon{width:39px;height:44px;border:1px solid #e6eadf;background:#f6f7f1;border-radius:10px;display:grid;place-items:center;flex:none;color:#859578}.product-name{font-size:12px;line-height:1.8;word-break:break-word}.product-meta{font-size:9px;color:#99a092;margin-top:4px}.product-code{font-size:10px;color:#5d6e60;word-break:break-all;line-height:1.9;font-variant-numeric:tabular-nums}.product-code small{font-size:9px;color:#939b8d}.price{font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}.price small{font-size:9px;color:var(--muted);font-weight:400}.stock-badge{display:inline-flex;align-items:center;gap:5px;font-size:10px;background:#edf3e5;color:#6a8157;padding:4px 9px;border-radius:6px;white-space:nowrap;font-variant-numeric:tabular-nums}.stock-badge.zero{background:#f2f1ed;color:#929589}.stock-badge.negative{background:#f5eae5;color:#9a6a5c}.add-button{height:33px;min-width:33px;border:1px solid #d6e0c9;background:#eff4e8;color:#45623b;border-radius:9px;padding:7px;display:inline-grid;place-items:center}.add-button.selected{background:var(--green);color:white;border-color:var(--green)}.row-actions{text-align:center}.catalog-footer{padding:15px 24px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);font-size:10px;color:var(--muted);gap:12px}.pager{display:flex;align-items:center;gap:8px}.pager button{border:1px solid var(--line);background:white;border-radius:7px;padding:5px 8px;line-height:1.5}.pager span{font-variant-numeric:tabular-nums}.empty-state{padding:65px 25px;text-align:center;color:var(--muted)}.empty-state svg{margin:0 auto 15px;color:#a5b098}.empty-state h3{color:#53634e;margin-bottom:7px}.empty-state p{font-size:12px}.loading-state{padding:60px 25px;text-align:center;color:var(--muted);font-size:12px}.loader{display:inline-block;width:19px;height:19px;border-radius:50%;border:2px solid #dce3d2;border-top-color:var(--green);vertical-align:middle;margin-inline-end:8px;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.cart-panel{background:#edf1e6;border:1px solid #dce4d1;border-radius:var(--radius);overflow:hidden;position:sticky;top:24px}.cart-header{padding:22px 20px 17px;border-bottom:1px solid #dce4d1;display:flex;justify-content:space-between;align-items:center}.cart-header h2{font-size:16px}.cart-count{font-size:11px;background:white;border-radius:7px;padding:2px 9px;color:#718164}.cart-body{padding:18px 20px}.cart-empty{padding:33px 10px 39px;text-align:center;color:#8d9a7f;font-size:11px}.cart-empty svg{margin:0 auto 12px;color:#a2b18f}.cart-empty strong{display:block;color:#6a7d5c;font-weight:400;font-size:13px;margin-bottom:4px}.cart-line{padding-bottom:15px;margin-bottom:15px;border-bottom:1px solid #dce4d1}.cart-line-name{font-size:11px;line-height:1.8;margin-bottom:9px}.cart-line-tools{display:flex;align-items:center;justify-content:space-between;gap:10px}.qty-control{display:flex;direction:ltr;align-items:center;border:1px solid #d5ddca;border-radius:8px;overflow:hidden;background:#f9fbf5;height:31px}.qty-control button{border:0;background:transparent;width:27px;height:30px;font-size:15px;color:#5e7551}.qty-control input{width:45px;border:0;background:transparent;text-align:center;font-size:11px;color:var(--ink);height:29px;padding:2px;-moz-appearance:textfield}.qty-control input::-webkit-inner-spin-button{appearance:none}.remove-line{border:0;background:transparent;color:#8d9583;padding:5px}.cart-foot{border-top:1px solid #dce4d1;padding:18px 20px}.cart-summary{display:flex;justify-content:space-between;font-size:11px;color:#6e7e60;margin-bottom:15px}.cart-summary b{font-size:14px;font-weight:400;color:#304c2a}.note-label{font-size:10px;color:#738367;display:block;margin-bottom:6px}.request-note{resize:vertical;width:100%;min-height:75px;max-height:180px;border:1px solid #d8e0cb;background:#f8faf3;border-radius:9px;padding:10px;font-size:11px}.request-note::placeholder{color:#9aa58e}.cart-hint{font-size:10px;color:#859375;line-height:1.9;margin:12px 0}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--green);border-radius:10px;padding:10px 17px;background:var(--green);color:white;font-size:12px;text-decoration:none}.button:hover:not(:disabled){background:var(--green-2)}.button.wide{width:100%}.button.secondary{background:#fff;color:var(--green);border-color:#d8dfcd}.button.secondary:hover:not(:disabled){background:#f6f9f0}.button.danger{background:#a34b3e;border-color:#a34b3e}.button.small{padding:6px 12px;font-size:11px}.export-button{margin-top:9px;background:transparent;color:#59704c;border-color:#cfdbc1}.text-button{border:0;background:none;color:#7d8d6c;font-size:10px;padding:3px}.footer-note{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 3px 0;font-size:10px;color:#939e8b}.footer-note span{display:flex;align-items:center;gap:6px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:50;max-width:min(90vw,550px);border:1px solid #cedbc5;background:#fff;padding:13px 23px;border-radius:12px;box-shadow:0 7px 35px #233c241c;color:var(--green);font-size:12px;text-align:center}.toast.error{border-color:#e4c1b7;color:#9b4538}.notice{padding:15px 18px;background:#fff7e8;border:1px solid #e7d8b9;border-radius:10px;color:#806c42;font-size:12px;margin-bottom:20px}.notice.error{background:#fff4ef;border-color:#e8ccc1;color:#9b4e3a}.inline-link{border:0;background:transparent;color:var(--green);text-decoration:underline;padding:0;font-size:inherit}.request-list{display:grid;gap:16px}.request-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:22px}.request-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:15px}.request-number{font-size:15px;font-weight:700}.request-subtitle{color:var(--muted);font-size:11px;margin-top:4px}.status-pill{font-size:10px;padding:5px 11px;border-radius:20px;background:#edf1e5;color:#71835d}.status-pill.prepared{background:#f0eadd;color:#9b7f45}.status-pill.completed{background:#dfeee6;color:#3f7a59}.request-items{border-collapse:collapse;width:100%;font-size:11px}.request-items th,.request-items td{padding:9px;border-bottom:1px solid #edf0e7;text-align:right}.request-items th{color:var(--muted);font-size:10px;font-weight:400;background:#f9faf6}.request-actions{display:flex;align-items:center;gap:8px;justify-content:flex-end;margin-top:16px}.request-note-view{font-size:11px;color:var(--muted);padding:12px 0 0;white-space:pre-wrap}.request-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:19px}.request-toolbar p{font-size:12px;color:var(--muted)}.member-card{background:white;border:1px solid var(--line);border-radius:14px;padding:20px}.member-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:17px 0}.field-label{display:block;font-size:11px;color:var(--muted);margin-bottom:5px}.field{width:100%;border:1px solid #dce3d2;background:#fbfcf7;border-radius:9px;padding:9px 11px;font-size:12px;color:var(--ink)}.checks{display:flex;flex-wrap:wrap;gap:16px;font-size:11px;margin:14px 0}.checks label{display:flex;align-items:center;gap:6px}.checks input{accent-color:var(--green)}.confirm-dialog{border:1px solid var(--line);border-radius:16px;padding:28px;max-width:430px;color:var(--ink)}.confirm-dialog::backdrop{background:#173c3555}.confirm-dialog h2{font-size:18px;margin-bottom:8px}.confirm-dialog p{font-size:12px;color:var(--muted)}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:24px}
.auth-layout{min-height:100vh;display:grid;grid-template-columns:minmax(300px,1fr) minmax(360px,1fr)}.auth-brand-panel{background:var(--green);color:#e7efdf;display:flex;flex-direction:column;justify-content:space-between;padding:65px 65px}.auth-brand-panel .brand-name{font-size:25px}.auth-brand-panel h1{font-size:41px;line-height:1.8;max-width:410px;margin-bottom:20px}.auth-brand-panel p{color:#b9cbb8;font-size:14px;max-width:390px}.auth-foot{font-size:11px;color:#91ae98;display:flex;align-items:center;gap:8px}.auth-form-panel{display:grid;place-items:center;padding:50px}.auth-card{max-width:370px;width:100%}.auth-card h2{font-size:26px;margin-bottom:8px}.auth-card>p{color:var(--muted);font-size:12px;margin-bottom:30px}.auth-form{display:flex;flex-direction:column;gap:19px}.auth-form .field{padding:13px}.auth-error{color:#a44d3e;background:#f6eae3;padding:10px 13px;border-radius:9px;font-size:11px}.auth-form .button{margin-top:5px;padding:13px}.auth-help{border-top:1px solid var(--line);margin-top:27px;padding-top:20px;font-size:11px;color:#889380}.auth-forgot{border:0;background:transparent;font-size:11px;color:#758569;padding:0;align-self:flex-start}.access-pending{max-width:550px;padding:55px 35px;text-align:center;margin:12vh auto;background:white;border:1px solid var(--line);border-radius:20px}.access-pending svg{margin:0 auto 18px;color:#91a17f}.access-pending p{font-size:13px;color:var(--muted);margin:12px 0 25px}
@media(min-width:1600px){.content{padding-top:40px}.catalog-table td{padding-top:22px;padding-bottom:22px}}
@media(max-width:1200px){.layout{grid-template-columns:205px minmax(0,1fr)}.sidebar{padding:30px 17px}.topbar{padding:0 27px}.content{padding:27px}.workspace.has-cart{grid-template-columns:minmax(0,1fr) 270px}.catalog-table th:first-child{width:40%}.catalog-table th:nth-child(2){width:23%}.catalog-table th,.catalog-table td{padding-right:10px;padding-left:10px}.catalog-table th:first-child,.catalog-table td:first-child{padding-right:18px}.product-icon{display:none}.catalog-controls,.catalog-toolbar{padding-right:18px;padding-left:18px}.stat-card{padding:16px}.stock-badge{padding:4px 7px}.source-label{display:none}}
@media(max-width:1000px){.workspace.has-cart{grid-template-columns:1fr}.cart-panel{position:static}.cart-body{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.cart-line{margin:0}.cart-foot{display:grid;grid-template-columns:1fr 1fr;gap:12px 20px}.cart-foot .cart-summary,.cart-foot .cart-hint{grid-column:1/-1;margin:0}.cart-foot .note-group{grid-row:2/5}.cart-foot .button{align-self:center}.footer-note span:last-child{display:none}.auth-brand-panel{padding:45px 35px}.auth-form-panel{padding:35px}.auth-brand-panel h1{font-size:31px}}
@media(max-width:760px){.layout{display:block}.sidebar{height:auto;position:static;padding:20px 20px 15px;gap:20px;overflow:visible}.sidebar .brand{justify-content:center}.brand-name{font-size:18px}.sidebar .brand-seal{width:37px;height:37px;font-size:23px}.nav-caption,.sidebar-card,.sidebar-bottom{display:none}.nav-list{flex-direction:row;overflow-x:auto;gap:6px;padding-bottom:2px;scrollbar-width:none}.nav-link{flex:1;min-width:max-content;justify-content:center;padding:9px 12px;gap:7px;font-size:11px}.nav-link svg{width:16px;height:16px}.nav-dot{display:none}.topbar{height:58px;padding:0 20px}.header-meta .today{display:none}.breadcrumb{font-size:10px}.private-tag{font-size:9px;padding:4px 8px}.content{padding:23px 17px 30px}.review-banner{font-size:10px;padding:10px 12px;margin-bottom:22px;gap:9px}.review-banner strong{font-size:11px}.review-banner svg{width:16px;height:16px}.page-heading{margin-bottom:22px}.page-heading h1{font-size:26px}.page-heading p{font-size:11px}.eyebrow{font-size:10px}.stat-row{gap:8px;margin-bottom:21px}.stat-card{padding:13px 12px;min-height:88px}.stat-icon{display:none}.stat-label{font-size:9px}.stat-value{font-size:23px}.stat-value.text{font-size:11px}.catalog-panel{border-radius:14px}.catalog-toolbar{padding:18px 15px 15px}.section-heading h2{font-size:16px}.section-heading span{font-size:9px}.catalog-controls{padding:0 15px 16px;gap:7px}.search-input{font-size:11px;padding-right:35px}.search-wrap svg{right:10px;width:16px}.filter-select{font-size:10px;max-width:108px;padding:5px}.catalog-table{display:block}.catalog-table thead{display:none}.catalog-table tbody{display:block}.catalog-table tr{display:grid;grid-template-columns:1fr auto;gap:7px 12px;padding:16px;border-bottom:1px solid #edf0e7;position:relative}.catalog-table tr:last-child{border-bottom:0}.catalog-table td,.catalog-table td:first-child{padding:0;border:0}.catalog-table td:nth-child(1){grid-column:1;grid-row:1}.catalog-table td:nth-child(2){grid-column:1;grid-row:2}.catalog-table td:nth-child(3){grid-column:2;grid-row:1;text-align:left;align-self:center}.catalog-table td.stock-cell{grid-column:2;grid-row:2;text-align:left;align-self:end}.catalog-table td.row-actions{grid-column:2;grid-row:3;text-align:left}.catalog-table.request-mode td.stock-cell{grid-column:1;grid-row:3;text-align:right}.catalog-table tr td[colspan]{grid-column:1/-1}.product-main{gap:9px}.product-name{font-size:12px}.product-meta{display:none}.product-code{display:flex;gap:9px;flex-wrap:wrap;font-size:9px}.product-code small{font-size:8px}.price{font-size:12px}.stock-badge{font-size:9px}.catalog-table.request-mode .row-actions{margin-top:-3px}.add-button{height:29px;min-width:30px;padding:5px}.catalog-footer{padding:13px 15px;font-size:9px}.pager{gap:5px}.pager button{padding:5px 7px}.cart-header{padding:18px}.cart-body{padding:15px 18px;display:block}.cart-line{margin-bottom:12px}.cart-line:last-child{margin-bottom:0}.cart-foot{padding:18px;display:block}.cart-foot .cart-summary{margin-bottom:15px}.cart-hint{margin:10px 0!important}.cart-foot .button{margin-top:8px}.cart-count{font-size:10px}.cart-panel{border-radius:14px}.request-card{padding:17px}.request-head{gap:10px}.request-number{font-size:13px}.request-subtitle{font-size:10px}.request-items{font-size:10px}.request-items th,.request-items td{padding:8px 5px}.request-items .optional-code{display:none}.request-actions{flex-wrap:wrap}.member-grid{grid-template-columns:1fr}.auth-layout{grid-template-columns:1fr}.auth-brand-panel{padding:26px 28px;gap:20px}.auth-brand-panel .brand{justify-content:center}.auth-brand-panel .brand-name{font-size:20px}.auth-brand-panel h1,.auth-brand-panel p,.auth-foot{display:none}.auth-form-panel{padding:38px 25px}.auth-card h2{font-size:23px}.access-pending{margin:8vh 18px;padding:40px 25px}.request-toolbar{align-items:flex-start}.request-toolbar p{font-size:11px}.footer-note{font-size:9px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media print{body{background:white}.sidebar,.topbar,.review-banner,.nav-list,.catalog-controls,.catalog-toolbar,.catalog-footer,.row-actions,.add-button,.button,.footer-note,.toast{display:none!important}.layout,.workspace.has-cart{display:block}.content{padding:0}.catalog-panel,.cart-panel{border:0}.cart-panel{break-inside:avoid}.cart-foot,.cart-line{break-inside:avoid}.stat-row{display:none}.request-card{break-inside:avoid}.page-heading h1{font-size:22px}}

/* Focused mobile transfer flow: camera, quantity, complete review, confirmation. */
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.transfer-app{max-width:640px;min-height:100vh;min-height:100dvh;margin-inline:auto;background:#f5f5ef}
.transfer-appbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:72px;padding:12px max(18px,env(safe-area-inset-right)) 12px max(18px,env(safe-area-inset-left));padding-top:calc(12px + env(safe-area-inset-top));background:#f5f5efee;border-bottom:1px solid #dfe5db;backdrop-filter:blur(14px)}
.transfer-brand{display:flex;align-items:center;gap:10px;min-width:0}
.transfer-seal{display:grid;place-items:center;width:36px;height:40px;flex:none;border-radius:11px;background:var(--green);color:#eef5df;font-size:25px;font-weight:700}
.transfer-brand h1{font-size:18px;line-height:1.5;letter-spacing:0}
.transfer-brand p{font-size:11px;line-height:1.6;color:#738078;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.transfer-menu{position:relative;flex:none}
.transfer-menu>summary{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:12px;background:#fff;cursor:pointer;list-style:none}
.transfer-menu>summary::-webkit-details-marker{display:none}
.transfer-menu-body{position:absolute;left:0;top:52px;width:min(310px,calc(100vw - 36px));padding:10px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 15px 40px #0f332329}
.transfer-menu-body nav{display:grid;gap:3px}
.transfer-menu-body nav button{display:flex;align-items:center;gap:12px;min-height:44px;padding:10px 13px;border:0;background:transparent;text-align:right;border-radius:9px;font-size:13px}
.transfer-menu-body nav button:hover{background:var(--mint)}
.transfer-menu-body .install-help{margin:8px 0 0}
.transfer-menu-body .install-help-row{padding:10px;gap:8px}
.transfer-menu-body .install-help-icon{display:none}
.transfer-content{padding:12px 16px calc(100px + env(safe-area-inset-bottom));outline:none}
.transfer-content .capture-panel{background:transparent;border:0;padding:0;border-radius:0}
.capture-stage{position:relative;overflow:hidden;border-radius:20px;background:#10261f}
.capture-stage .capture-video-wrap{position:relative;height:clamp(340px,64svh,700px);margin:0;background:radial-gradient(ellipse at 50% 45%,#254b3d 0,#10271f 70%);overflow:hidden}
.capture-stage video{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:cover;background:#0c1b16}
.capture-stage[data-camera-state=idle] video{opacity:0}
.capture-stage .capture-viewfinder{position:absolute;inset:72px 6% 86px;width:auto;height:auto;border:1px solid #bdd7a65c;border-radius:18px;pointer-events:none;box-shadow:none}
.capture-stage .capture-viewfinder::before,.capture-stage .capture-viewfinder::after{content:'';position:absolute;inset:-2px;border:3px solid #d6e9b4;border-radius:19px;clip-path:polygon(0 0,30px 0,30px 3px,3px 3px,3px 30px,0 30px,0 0,100% 0,100% 30px,calc(100% - 3px) 30px,calc(100% - 3px) 3px,calc(100% - 30px) 3px,calc(100% - 30px) 0,100% 0,100% 100%,calc(100% - 30px) 100%,calc(100% - 30px) calc(100% - 3px),calc(100% - 3px) calc(100% - 3px),calc(100% - 3px) calc(100% - 30px),100% calc(100% - 30px),100% 100%,0 100%,0 calc(100% - 30px),3px calc(100% - 30px),3px calc(100% - 3px),30px calc(100% - 3px),30px 100%,0 100%)}
.capture-stage .capture-viewfinder::after{display:none}
.capture-camera-idle{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;color:#dfebd5;text-align:center;padding:24px}
.capture-camera-idle>svg{width:58px;height:58px;stroke-width:1.1;opacity:.9}
.capture-camera-idle p{font-size:13px;line-height:1.6;color:#c1d3c4}
.capture-camera-idle .button{padding:12px 25px;min-height:48px;color:#173c35;background:#e0edc8;border:1px solid #d4e4ba;box-shadow:0 3px 14px #06100b25;font-size:14px}
.capture-success{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:22px;text-align:center;color:#ecf7e3;background:#173c2e}
.capture-success[hidden],.capture-camera-idle[hidden]{display:none}
.capture-success-check{display:grid;place-items:center;width:76px;height:76px;border:2px solid #b8db91;border-radius:50%;background:#315b40;color:#d8f4b9;font-size:48px;line-height:1}
.capture-success strong{font-size:28px;line-height:1.5}
.capture-success-code{direction:ltr;unicode-bidi:isolate;max-width:100%;overflow-wrap:anywhere;font-size:21px;letter-spacing:1px;font-variant-numeric:tabular-nums}
.capture-success p{font-size:15px;color:#d3e5c7}
.capture-success .button{margin-top:6px;min-height:42px;background:transparent;border:1px solid #a3c390;color:#e8f4dc}
.capture-stage[data-camera-state=success] video{opacity:0}
.capture-stage[data-camera-state=starting] .capture-camera-idle>svg{opacity:.45}
.capture-stage .capture-stop{position:absolute;top:12px;left:12px;min-height:42px;padding:8px 13px;background:#fffffff0;border:1px solid #d9e3d5;font-size:11px;z-index:2}
.capture-stage .capture-expand{position:absolute;top:12px;right:12px;min-height:44px;padding:8px 13px;background:#fffffff0;border:1px solid #d9e3d5;font-size:12px;z-index:2}
.capture-camera-guidance{display:none;position:absolute;inset:auto 16px 15px;padding:10px 12px;border-radius:10px;background:#0a211cdd;color:#f0f6eb;text-align:center;font-size:13px;line-height:1.7;pointer-events:none}
.capture-stage[data-camera-state=active] .capture-camera-guidance{display:block}
.capture-stage[data-camera-expanded=true]{position:fixed;inset:0;z-index:80;width:100vw;height:100vh;height:100dvh;border-radius:0;background:#0c1b16;overscroll-behavior:contain}
.capture-stage[data-camera-expanded=true] .capture-video-wrap{width:100%;height:100%;min-height:0;max-height:none}
.capture-stage[data-camera-expanded=true] .capture-stop{top:calc(12px + env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));min-height:48px;font-size:13px}
.capture-stage[data-camera-expanded=true] .capture-expand{top:calc(12px + env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));min-height:48px;font-size:13px}
.capture-stage[data-camera-expanded=true] .capture-viewfinder{inset:calc(82px + env(safe-area-inset-top)) max(6%,env(safe-area-inset-right)) calc(100px + env(safe-area-inset-bottom)) max(6%,env(safe-area-inset-left))}
.capture-stage[data-camera-expanded=true] .capture-camera-guidance{bottom:calc(18px + env(safe-area-inset-bottom));left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));font-size:14px}
.capture-field{margin-top:13px}
.capture-quantity-field{display:flex;align-items:center;gap:12px}
.capture-quantity-field>label{font-size:15px;font-weight:700;flex:none;min-width:53px}
.capture-quantity-row{display:flex;align-items:center;gap:8px;flex:1;min-width:0}
.capture-quantity-row .field{flex:1;width:100%;min-width:0;min-height:56px;background:#fff;border-radius:13px;font-size:26px;text-align:center;font-weight:700;letter-spacing:1px;padding:5px 12px}
.capture-quantity-row .field::placeholder{color:#a2ada2}
.capture-mic{min-width:46px;min-height:54px;padding:10px;border-radius:12px;background:transparent}
.capture-barcode-row{display:flex;align-items:center;gap:12px;margin-top:10px}
.capture-barcode-row>label{font-size:11px;color:var(--muted);min-width:53px}
.capture-barcode-row .field{width:100%;min-width:0;min-height:39px;border-radius:9px;border:1px solid #dce4d7;background:#eef2e7;font-size:17px;text-align:center;letter-spacing:.6px;padding:6px 10px}
.capture-barcode-row .field::placeholder{font-size:11px;letter-spacing:0;color:#84947e}
.capture-panel input[aria-invalid=true]{border-color:#bc5b46;background:#fff0ea}
.capture-help{display:block;color:#8a522d;background:#fff0d9;border:1px solid #eedbb9;padding:8px 11px;border-radius:8px;font-size:11px;line-height:1.7;margin-top:9px}
.capture-status{min-height:0;margin:7px 0 0;padding:0;font-size:11px;line-height:1.7;color:#55734e;background:transparent}
.capture-status:empty{display:none}
.capture-status.error{padding:8px 10px;background:#fff0ea;color:#9a4032;border-radius:9px}
.capture-panel .capture-add{min-height:46px;margin-top:11px;border:1px solid #bdcbb0;background:#e8eee0;color:#264d3c;font-size:14px;border-radius:12px}
.capture-alternatives{margin-top:5px;color:#6e7e6c;font-size:11px}
.capture-alternatives>summary{cursor:pointer;min-height:39px;display:flex;align-items:center;justify-content:center;gap:6px;list-style:none}
.capture-alternatives>summary::after{content:'⌄';font-size:17px}
.capture-alternatives>summary::-webkit-details-marker{display:none}
.capture-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding:5px 0 10px}
.capture-actions .button{flex:1;min-height:44px;font-size:12px;padding:8px;cursor:pointer}
.capture-actions .text-button{min-height:40px;flex-basis:100%;justify-content:center;font-size:12px}
.capture-actions:has(input:focus-visible) .capture-file-label{outline:3px solid #b9c8a2;outline-offset:3px}
.capture-panel[aria-busy=true] .capture-file-label,.capture-panel[aria-busy=true] .capture-library-label{opacity:.55;pointer-events:none}
.transfer-capture-footer.cart-panel{position:fixed;inset:auto 0 0;z-index:15;width:min(640px,100%);max-width:none;margin:auto;padding:11px max(16px,env(safe-area-inset-right)) calc(11px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));border-radius:0;border:0;border-top:1px solid #dfe6d7;background:#f5f5eff5;backdrop-filter:blur(12px);box-shadow:0 -8px 18px #f5f5efaa}
.transfer-next-bar{display:flex;align-items:center;gap:18px;justify-content:space-between}
.transfer-next-bar>.button{min-height:52px;flex:1;max-width:245px;font-size:17px;justify-content:center;border-radius:13px;gap:18px}
.transfer-item-count{display:flex;align-items:center;gap:10px;min-width:94px;color:#61785e;font-size:12px}
.transfer-item-count strong{color:var(--green);font-size:23px;vertical-align:middle;margin-inline-end:4px}
.transfer-review-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:3px 0 18px}
.transfer-review-heading h2{font-size:20px;line-height:1.5;outline:none}
.transfer-review-heading>.text-button{min-height:44px;font-size:13px;padding:4px 0}
.transfer-review-heading>span{font-size:11px;color:#83917d}
.transfer-destination{padding:13px 15px;border-radius:13px;background:#e7eedf;display:flex;align-items:center;gap:14px;margin-bottom:15px}
.transfer-destination>span{font-size:11px;color:#738368}
.transfer-destination strong{font-size:13px;line-height:1.7;color:#355c40}
.transfer-review.cart-panel{position:static;border:0;background:transparent;box-shadow:none;border-radius:0}
.transfer-review-lines{display:grid;gap:0;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.transfer-line{display:grid;grid-template-columns:minmax(0,1fr) auto 44px;align-items:center;gap:6px;padding:6px 8px;background:#fff}
.transfer-line+.transfer-line{border-top:1px solid var(--line)}
.transfer-line-title{min-width:0}
.transfer-line .remove-line{width:44px;height:44px}
.cart-line-barcode,.saved-barcode{display:block;direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;line-height:1.7;color:#254c39}
.transfer-line .cart-line-barcode{font-size:18px;margin:0;letter-spacing:.5px;text-align:right}
.transfer-line .remove-line{min-width:42px;min-height:42px;display:grid;place-items:center;background:#faf6f1;border-radius:10px;color:#8d6c57}
.transfer-review .qty-control{height:44px;border-radius:11px;border:1px solid #dce4d3;background:#f6f8f1}
.transfer-review .qty-control input{height:42px;min-width:0;width:54px;font-size:17px;background:transparent;text-align:center}
.transfer-review .qty-control button{height:44px;width:44px;font-size:22px;touch-action:manipulation}
.transfer-add-more{margin-top:12px;min-height:46px;background:transparent;font-size:13px;border:1px dashed #aabb95;border-radius:12px}
.transfer-note{margin-top:14px;font-size:12px;color:#62725c}
.transfer-note>summary{cursor:pointer;min-height:44px;padding:8px 0}
.transfer-note>summary>span{font-size:10px;color:#85907e}
.transfer-note .request-note{font-size:16px;min-height:80px;background:#fff}
.transfer-totals{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:16px 2px;margin-top:7px;border-top:1px solid #e0e6d8;font-size:12px;color:#6a7b60}
.transfer-totals b{font-size:20px;color:#264f39;margin-inline:5px}
.transfer-confirm-bar{margin-top:6px}
.transfer-confirm-bar p{font-size:11px;color:#85907c;text-align:center;margin:6px 0 9px}
.transfer-confirm-bar .button{min-height:54px;font-size:16px;gap:10px;border-radius:13px}
.transfer-empty{padding:28px 15px;text-align:center;color:#7f8d75}
.transfer-receipt{padding:50px 15px 20px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:13px}
.receipt-check{width:82px;height:82px;display:grid;place-items:center;border-radius:50%;background:#e1ecd0;color:#406b3e;margin-bottom:8px}
.transfer-receipt h2{font-size:24px;line-height:1.7;outline:none}
.receipt-number{font-size:18px;letter-spacing:.8px;color:#5f7950}
.transfer-receipt>p{font-size:13px;color:#677961}
.receipt-count{font-size:12px;color:#688159;background:#e9efdf;border-radius:8px;padding:4px 13px}
.transfer-receipt .receipt-note{font-size:11px;margin-bottom:15px;color:#8a9681}
.transfer-receipt .button{min-height:52px;font-size:14px;border-radius:12px}
.saved-barcode{font-size:13px;margin-top:4px}
@media(min-width:761px){.transfer-app{box-shadow:0 0 0 1px #e0e5d7,0 15px 80px #253d2910}.transfer-content{padding-inline:26px}.transfer-appbar{padding-inline:26px}.transfer-capture-footer.cart-panel{padding-inline:26px}.capture-stage .capture-video-wrap{height:clamp(400px,64svh,680px)}.capture-stage[data-camera-expanded=true] .capture-video-wrap{height:100%}}
@media(max-width:370px){.transfer-content{padding-inline:11px}.transfer-brand h1{font-size:16px}.transfer-brand p{max-width:210px}.transfer-line .cart-line-barcode{font-size:16px}.capture-stage .capture-video-wrap{min-height:235px}.capture-quantity-field>label,.capture-barcode-row>label{min-width:46px}.transfer-review-heading h2{font-size:18px}.transfer-next-bar{gap:10px}}

/* Account administration uses the same controls at desktop and mobile sizes. */
.member-access-note strong{display:block;color:var(--ink);margin-bottom:4px}
.member-access-note p{line-height:1.9}
.member-create-card{margin-bottom:28px;border-color:#b6cbb9;box-shadow:0 4px 18px #173c3507}
.member-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.member-heading>svg{color:#6b8d72}
.member-heading h3{font-size:17px;overflow-wrap:anywhere}
.member-caption,.field-hint,.member-protected-note{display:block;font-size:11px;color:var(--muted);line-height:1.8}
.member-caption{margin-top:4px}
.member-badges{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;flex:none}
.status-pill.member-inactive{background:#f4ece5;color:#8b695b}
.member-grid>label{min-width:0}
.member-full-width{grid-column:1/-1}
.member-card .field{min-height:44px}
.member-card input[readonly],.member-card select:disabled{color:#5b6c61;background:#f1f3ec;opacity:1}
.member-email{direction:ltr;text-align:left;unicode-bidi:isolate}
.field-required{color:#a34b3e;margin-inline-start:3px}
.field-hint{margin-top:5px}
.member-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
.member-actions .button{min-height:44px}
.member-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 1px 15px}
.member-list-heading h2{font-size:18px}
.member-list-heading h2 span{font-size:12px;font-weight:400;color:var(--muted);padding-inline:7px}
.member-list-heading .text-button{display:inline-flex;align-items:center;gap:6px;min-height:44px}
.member-form-feedback{font-size:12px;line-height:1.8;color:#9b4538;background:#fff4ef;border:1px solid #e8ccc1;border-radius:9px;padding:10px 13px;margin-top:14px}
.chatgpt-signin{min-height:48px}
.auth-card>.auth-error{margin-bottom:16px}
@media(max-width:760px){.member-card{padding:17px}.member-heading h3{font-size:16px}.member-badges{max-width:120px}.member-card .field{font-size:16px}.member-actions .button{width:100%}.member-list-heading h2{font-size:17px}.member-grid{gap:14px}}

/* Compact scanner inputs keep their existing numeral sizes. */
.capture-clear{flex:none;min-width:44px;min-height:44px;padding:4px 6px;border:0;border-radius:8px;background:#ac242e;color:#fff;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.capture-clear:hover{background:#891b23}
.capture-clear:focus-visible{outline:2px solid #b42318;outline-offset:2px}
.capture-clear:disabled{opacity:.45;cursor:default}
.capture-quantity-row .field{min-height:50px;padding:4px 8px}
.capture-barcode-row .field{min-height:36px;padding:4px 8px}
.capture-mic{min-height:46px;min-width:44px;padding:8px}
.editing-request-note{margin-bottom:14px;padding:12px 15px;background:#eef3e8;border:1px solid #d5e1cc;border-radius:12px;color:#405b36;font-size:11px;line-height:1.9}
.editing-request-note strong,.editing-request-note span{display:block}
.editing-request-note strong{font-size:12px}
.editing-request-note bdi{font-family:Arial,sans-serif}
.editing-request-note p{color:#9b4538;margin-top:7px}
.editing-request-note .button,.editing-request-note .text-button{margin-top:6px}
.pause-transfer{display:block;min-height:40px;margin-inline:auto;font-size:11px;text-decoration:underline}
.request-edit-note{font-size:11px;color:var(--muted);margin-top:12px}
@media(max-height:600px) and (orientation:landscape){.capture-stage .capture-video-wrap{height:max(260px,70svh)}.capture-stage[data-camera-expanded=true] .capture-video-wrap{height:100%}.capture-stage[data-camera-expanded=true] .capture-viewfinder{top:calc(72px + env(safe-area-inset-top));bottom:calc(74px + env(safe-area-inset-bottom))}.capture-stage[data-camera-expanded=true] .capture-camera-guidance{padding:7px 10px;font-size:12px;bottom:calc(10px + env(safe-area-inset-bottom))}.transfer-appbar{position:static;min-height:60px}.transfer-content{padding-bottom:90px}}
@media print{.capture-panel,.transfer-appbar,.transfer-capture-footer,.transfer-add-more,.transfer-confirm-bar{display:none!important}.transfer-app{max-width:none;box-shadow:none}.transfer-content{padding:0}.transfer-line{break-inside:avoid}.transfer-receipt .button{display:none!important}}

/* Barcode lookup keeps the existing numeric sizes and separate clear actions. */
.capture-barcode-row{display:block;margin-top:6px}
.capture-field-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px}
.capture-field-heading>label{font-size:13px;color:var(--muted);font-weight:600}
.capture-field-actions{display:flex;align-items:center;gap:4px}
.capture-search{min-width:44px;min-height:44px;padding:4px 8px;border:0;border-radius:8px;background:transparent;color:#245b42;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.capture-search:hover{background:#e8eee0}
.capture-search:focus-visible{outline:2px solid #245b42;outline-offset:2px}
.capture-search:disabled{opacity:.55;cursor:default}
.capture-barcode-row .field{min-height:36px;padding:4px 8px;font-size:17px}
.capture-product-detail{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:9px 2px;margin-top:4px;color:#244a38;font-size:13px;line-height:1.6}
.capture-product-name{overflow-wrap:anywhere;min-width:0;font-weight:600}
.capture-product-price{white-space:nowrap;font-weight:700;flex:none}
.capture-search-results{margin-top:8px;padding:8px;border:1px solid #dce4d7;border-radius:10px;background:#fff}
.capture-product-detail[hidden],.capture-search-results[hidden]{display:none}
.capture-search-caption,.capture-search-empty{margin:0;padding:3px 3px 7px;font-size:12px;line-height:1.7;color:#5c7057}
.capture-search-list{display:grid;gap:5px;max-height:270px;overflow-y:auto;overscroll-behavior:contain}
.capture-search-result{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 9px;width:100%;min-height:58px;padding:8px 10px;border:1px solid #e1e7db;border-radius:8px;background:#f8faf5;color:#244a38;text-align:right;font:inherit;cursor:pointer}
.capture-search-result:hover{background:#edf3e5;border-color:#adc99d}
.capture-search-result:focus-visible{outline:2px solid #245b42;outline-offset:1px}
.capture-search-name{grid-column:1/-1;font-size:13px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.capture-search-code{direction:ltr;text-align:right;font-size:14px;font-variant-numeric:tabular-nums;color:#52694d;overflow-wrap:anywhere}
.capture-search-price{font-size:12px;font-weight:700;white-space:nowrap}
.capture-search-pages{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:6px;font-size:12px;color:#61735b}
.capture-search-pages .text-button{min-width:44px;min-height:44px}
.capture-query-help{display:block;margin-top:4px;font-size:11px;line-height:1.6;color:#6b7d64}
.capture-search-identifiers{display:flex;flex-direction:column;gap:2px;font-size:12px;line-height:1.6;color:#52694d;min-width:0;overflow-wrap:anywhere}
.capture-search-identifiers bdi{font-size:14px;font-variant-numeric:tabular-nums}

/* Keep the original artwork proportions across the portal. */
.company-logo{display:block;object-fit:contain;height:auto;flex:none}
.arsm-logo{background:#fff}
.company-home{display:block;border:0;background:#fff;padding:5px;border-radius:9px;flex:none}
.company-logo-header{width:68px}
.company-logo-sidebar{width:146px}
.company-sidebar-brand{flex-direction:column;gap:9px}
.company-logo-auth{width:172px;border-radius:10px;padding:8px}
.company-auth-brand{align-items:flex-start;flex-direction:column;gap:9px}
.company-logo-signin{display:none;width:142px;margin:0 auto 28px;padding:6px;border-radius:10px}
.company-logo-access{width:154px;margin:0 auto 25px}
.company-logo-boot{width:174px;padding:8px;border-radius:12px}
.transfer-brand .company-home{padding:4px;border:1px solid #e4e8df}
.portal-home{min-height:100svh;max-width:620px;margin:0 auto;display:flex;flex-direction:column;padding:0 24px;background:#fbfcf9}
.portal-home-account{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:22px 0;font-size:12px;color:var(--muted)}
.portal-home-account .text-button{min-height:44px;padding-inline:7px}
.portal-home-content{width:100%;max-width:460px;margin:auto;outline:none;padding:12px 0 30px}
.portal-home-brand{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;margin-bottom:30px}
.company-logo-home{width:210px;max-width:65vw;padding:12px;border-radius:16px;margin-bottom:10px}
.portal-home-brand h1{font-size:25px;letter-spacing:0;line-height:1.7}
.portal-home-brand p{font-size:13px;color:var(--muted)}
.portal-services{display:grid;gap:16px}
.portal-service{width:100%;min-height:110px;display:flex;align-items:center;gap:16px;padding:20px;text-align:right;border:1px solid var(--line);border-radius:16px;font:inherit;transition:background .15s,border-color .15s}
.portal-service-transfer{color:#fff;background:var(--green);border-color:var(--green)}
.portal-service-transfer:hover{background:#245244;border-color:#245244}
.portal-service-icon{width:49px;height:49px;display:grid;place-items:center;flex:none;border-radius:13px;background:#ffffff18}
.portal-service-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.portal-service-copy strong{font-size:18px;line-height:1.7}
.portal-service-copy>span{font-size:12px;line-height:1.7;color:#d4e2d6}
.portal-service-arrow,.portal-service-lock{flex:none}
.portal-service-purchase:disabled{opacity:1;background:#f1f2ee;color:#77816f;border-color:#e1e5db;cursor:not-allowed}
.portal-service-purchase .portal-service-icon{background:#e6e9e1;color:#8c9685}
.portal-service-purchase .portal-service-copy>span{color:#7c8575}
.portal-home-help{text-align:center;font-size:11px;color:var(--muted);margin:17px 12px 0}
.portal-home-footer{display:flex;flex-direction:column;align-items:center;gap:14px;padding:8px 0 max(24px,env(safe-area-inset-bottom));font-size:10px;color:#7b8971}
.portal-home-footer>span{display:flex;align-items:center;gap:6px}
.portal-home-footer .install-entry{width:auto}
@media(min-width:761px){.portal-home{box-shadow:0 0 0 1px #e5e9df}.portal-home-content{padding-block:25px 45px}}
@media(max-width:760px){.company-logo-sidebar{width:102px}.sidebar .company-sidebar-brand{flex-direction:row;gap:14px}.company-logo-signin{display:block}.auth-form-panel{padding:32px 24px}.portal-home{padding-inline:20px}}
@media(max-width:370px){.company-logo-header{width:57px}.portal-home{padding-inline:15px}.portal-service{gap:11px;padding:17px 14px}.portal-service-copy strong{font-size:16px}.portal-service-icon{width:42px;height:42px}.company-logo-home{width:182px}.portal-home-brand{margin-bottom:23px}.portal-home-brand h1{font-size:23px}}
@media(max-height:650px){.portal-home-content{margin:0 auto;padding-block:5px 20px}.company-logo-home{width:156px}.portal-home-brand{margin-bottom:20px}.portal-home-account{padding-block:10px}}

/* Authenticated source photographs: reserved space avoids row movement while loading. */
.product-thumbnail{display:inline-flex;position:relative;align-items:center;justify-content:center;width:56px;height:64px;flex:none;border:1px solid #e5e9df;border-radius:9px;overflow:hidden;background:#f4f6ef;color:#839275;vertical-align:middle}
.product-thumbnail img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff;padding:3px}
.capture-product-thumbnail{flex:none}
.capture-product-detail{align-items:center}
.capture-product-detail .capture-product-name{flex:1}
.capture-search-result{grid-template-columns:48px minmax(0,1fr) auto;align-items:center}
.capture-search-result .product-thumbnail{grid-column:1;grid-row:1/3;width:46px;height:56px}
.capture-search-result .capture-search-name{grid-column:2/4;grid-row:1}
.capture-search-result .capture-search-identifiers{grid-column:2;grid-row:2}
.capture-search-result .capture-search-price{grid-column:3;grid-row:2}
@media(max-width:540px){.product-thumbnail{width:46px;height:54px}.capture-product-detail{gap:8px}.capture-product-detail .product-thumbnail{width:44px;height:52px}.capture-search-result{grid-template-columns:42px minmax(0,1fr);gap:4px 8px}.capture-search-result .product-thumbnail{width:40px;height:50px;grid-row:1/4}.capture-search-result .capture-search-name{grid-column:2;grid-row:1}.capture-search-result .capture-search-identifiers{grid-column:2;grid-row:2}.capture-search-result .capture-search-price{grid-column:2;grid-row:3;text-align:right}}

.transfer-destination-picker{display:grid;gap:9px}.transfer-destination-picker label{font-weight:700}.transfer-destination-picker select{min-height:48px;font-size:16px;background:#fff}.transfer-destination-picker small{color:var(--muted);font-size:12px}

/* Company identity and navigation. */
:root{--ink:#363435;--muted:#767278;--green:#363435;--green-2:#514d51;--mint:#f2f0f1;--cream:#f7f7f8;--line:#e7e4e7;--brand:#d51832;--brand-soft:#fff0f2}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline-color:#f6a2af}
.portal-home{max-width:680px;background:#fff;padding-inline:32px}
.portal-home-account{border-bottom:1px solid #f1edef;color:#655f65}
.portal-home-user{display:flex;align-items:center;gap:8px;min-width:0;overflow-wrap:anywhere;text-align:right}.portal-home-user svg{flex:none}
.portal-home-account .text-button{color:#6d6268;flex:none}
.portal-home-content{max-width:490px;padding-block:25px 34px}
.company-logo-home{width:205px;padding:0;border-radius:0;margin-bottom:16px}
.portal-home-brand{margin-bottom:29px}
@media screen{.company-logo-home.arsm-logo{background:transparent;mix-blend-mode:darken}}
@media screen{
  .company-logo:not(.arsm-logo){background:transparent;mix-blend-mode:multiply}
  :is(.sidebar,.auth-brand-panel) .company-logo:not(.arsm-logo){
    filter:invert(1) hue-rotate(180deg);
    mix-blend-mode:screen
  }
}
.portal-home-brand h1{color:#363435;font-size:26px;font-weight:700}
.portal-home-brand p{color:#817980;margin-top:2px}
.portal-services{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.portal-services .portal-service{position:relative;min-width:0;min-height:105px;align-items:center;justify-content:center;flex-direction:column;gap:7px;padding:13px 7px;text-align:center;border-radius:15px;line-height:1.45}
.portal-services .portal-service strong{font-size:clamp(15px,4vw,19px)}
.portal-services .portal-service-sales{background:#305c5e;border-color:#305c5e;color:#fff}
.portal-services .portal-service-accounting{background:#405f7b;border-color:#405f7b;color:#fff}
.portal-services .portal-service-hr:disabled{background:#f1eff2;color:#58515c;border-color:#dbd7dd;opacity:1}
.portal-services .portal-service:disabled{cursor:not-allowed}
.portal-services [data-page="product-refresh"]{grid-column-start:1}
.portal-services .portal-service-inventory:disabled{background:#dee6e1;color:#536259;border-color:#bfcac3;opacity:1}
.service-padlock{position:absolute;inset-block-start:8px;inset-inline-end:9px;display:grid;place-items:center}
.portal-service{min-height:136px;padding:22px;gap:17px;border-radius:18px}
.portal-service-copy{gap:4px}
.portal-service-copy strong{font-size:18px}
.portal-service-copy>span{font-size:12px}
.portal-service-copy>.portal-service-badge{align-self:flex-start;display:inline-flex;border-radius:5px;padding:1px 7px;font-size:10px;line-height:1.8;margin-bottom:2px;background:#ffffff24;color:#fff}
.portal-service-transfer{background:#24764f;border-color:#24764f;box-shadow:0 7px 18px #24764f1a}
.portal-service-transfer:hover:not(:disabled){background:#1e6342;border-color:#1e6342}
.portal-service-transfer .portal-service-copy>span:not(.portal-service-badge){color:#edf8f1}
.portal-service-transfer .portal-service-icon{background:#ffffff1f;color:#fff}
.portal-service-purchase:disabled{background:#faf9fa;border-color:#e9e5e9;color:#827c82}
.portal-service-purchase .portal-service-icon{background:#f0edef;color:#999198}
.portal-service-purchase .portal-service-copy>span{color:#8a8189}
.portal-service-purchase .portal-service-copy>.portal-service-badge{background:#ece8eb;color:#81757f}
.portal-service-lock{color:#9b939a}
.portal-home-help{color:#8b828a;font-size:11px;margin-top:18px}
.portal-home-footer{color:#898088;padding-top:20px}
.portal-home-footer .install-help-row{border-color:#e9e4e8;background:#faf9fa;color:#514b50}
.portal-home-footer .install-help-icon{background:#f0edef;color:#81747e}
.transfer-app{background:#f7f7f8}
.transfer-appbar{background:#fffffff2;border-color:#e9e4e8}
.transfer-brand{flex:1}
.transfer-brand>div{min-width:0}
.transfer-brand h1{font-size:17px;line-height:1.6}
.transfer-brand p{color:#817780}
.transfer-brand .company-home{border-color:#eee9ec}
.transfer-menu>summary{border-color:#e7e0e6;background:#fff;color:#625760}
.sidebar,.auth-brand-panel{background:#363435}
.brand-sub,.auth-brand-panel p,.auth-foot{color:#c7c1c7}
.nav-link{color:#d7cfd5}
.nav-link:hover{background:#514950}
.nav-link.active{background:#fff0f2;color:#a01328}
.nav-caption{color:#c4b8c0}
.sidebar-card{border-color:#675d65;color:#d2c8ce}
.sidebar-card strong,.profile-name{color:#fff}
.profile{border-color:#61575e}
.profile-avatar{background:#574e55;color:#fff}
.profile-role,.signout{color:#cfc1ca}
.topbar{background:#fff}
.company-sidebar-brand .brand-sub{color:#d8cfd5}
@media(min-width:761px){.portal-home{box-shadow:0 0 0 1px #eae5e9,0 20px 75px #372e3506}.transfer-app{box-shadow:0 0 0 1px #eae5e9,0 20px 65px #372e3508}}
@media(max-width:760px){.portal-home{padding-inline:22px}.portal-home-account{padding-block:12px}.portal-home-content{padding-top:20px}.company-logo-home{width:184px;margin-bottom:13px}.portal-home-brand h1{font-size:24px}}
@media(max-width:370px){.portal-home{padding-inline:16px}.portal-service{padding:17px 14px;gap:11px;min-height:128px}.portal-service-copy strong{font-size:16px}.portal-service-copy>span:not(.portal-service-badge){font-size:11px}.portal-service-icon{width:40px;height:44px}.company-logo-home{width:162px}.portal-home-brand{margin-bottom:22px}.portal-home-brand h1{font-size:22px}.transfer-brand h1{font-size:15px}.company-logo-header{width:53px}}
@media(max-height:700px){.portal-home-content{margin:0 auto;padding-top:14px;padding-bottom:18px}.company-logo-home{width:140px;margin-bottom:8px}.portal-home-brand{gap:5px;margin-bottom:21px}.portal-home-brand h1{font-size:22px}.portal-service{min-height:116px}.portal-home-footer{padding-top:8px}}

.capture-camera-idle .button{background:#fff;color:#363435;border-color:#e6dee3}
.capture-camera-idle .button:hover:not(:disabled){background:#f2edf0}

/* Purchasing shares identity and scanning, and keeps its draft visually separate. */
.portal-service-purchase.is-enabled{background:var(--brand);border-color:var(--brand);color:#fff;box-shadow:0 7px 18px #d5183216}
.portal-service-purchase.is-enabled:hover:not(:disabled){border-color:#bd122a;background:#bd122a}
.portal-service-purchase.is-enabled .portal-service-icon{color:#fff;background:#ffffff1f}
.portal-service-purchase.is-enabled .portal-service-copy>.portal-service-badge{background:#ffffff24;color:#fff}
.portal-service-purchase.is-enabled .portal-service-copy>span:not(.portal-service-badge){color:#fff2f4}
.portal-service-purchase.is-enabled .portal-service-lock{color:#fff}
.portal-service-transfer:disabled{background:#faf9fa;border-color:#e9e5e9;color:#827c82;box-shadow:none}
.portal-service-transfer:disabled .portal-service-copy>span,.portal-service-transfer:disabled .portal-service-icon{color:#827c82;background:transparent}
.purchase-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 18px}
.purchase-heading h2{font-size:24px;line-height:1.5}
.purchase-heading .eyebrow{color:#b82037;font-size:14px}
.purchase-heading p{font-size:14px;color:var(--muted)}
.purchase-heading>.text-button{flex:none;min-height:44px;font-size:14px}
.purchase-destination{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:15px;background:#fff;border:1px solid var(--line);border-radius:13px;margin:0 0 14px;text-align:right}
.purchase-destination>div{display:grid;gap:3px;min-width:0}
.purchase-destination span{color:var(--muted);font-size:14px}
.purchase-destination strong{font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.purchase-draft-note{font-size:14px;line-height:1.8;color:#846254;background:#fff6ed;padding:11px 13px;border-radius:10px;margin-bottom:15px}
.purchase-input-label{display:grid;gap:6px;margin-top:16px;font-size:14px;font-weight:600;color:#4b4149}
.purchase-input-label .field{width:100%;min-height:46px;font-size:16px;background:white}
.purchase-input-label small{font-size:14px;font-weight:400;line-height:1.7;color:#837880}
.purchase-input-label textarea{resize:vertical;min-height:64px}
.purchase-input-label input[readonly]{background:#f1eff1;color:#71636d}
.purchase-capture .capture-video-wrap{height:clamp(240px,42svh,420px)}
.purchase-capture .capture-stage[data-camera-expanded=true] .capture-video-wrap{height:100%}
.purchase-capture .capture-product-price{display:none}
.purchase-capture .capture-search-result .capture-search-identifiers{grid-column:2/-1}
.purchase-capture-footer{padding:18px 0 5px;position:sticky;bottom:0;background:#f7f7f8f5;z-index:5;backdrop-filter:blur(12px);border-top:1px solid var(--line);margin-top:18px}
.purchase-capture-footer>div{font-size:14px;display:flex;gap:6px;align-items:center;margin-bottom:12px}
.purchase-capture-footer>div>strong{font-size:19px}
.purchase-capture-footer>div>span{margin-right:auto;font-size:15px;font-weight:700}
.purchase-capture-footer>.button,.purchase-review>.button{min-height:52px;font-size:15px;background:var(--brand);border-color:var(--brand);color:white}
.purchase-lines{display:grid;gap:14px;margin:8px 0 16px}
.purchase-line{padding:16px;background:#fff;border:1px solid var(--line);border-radius:15px}
.purchase-line>header{display:flex;align-items:flex-start;gap:12px;justify-content:space-between}
.purchase-line>header>div{min-width:0;line-height:1.9}
.purchase-line>header strong{font-size:14px;overflow-wrap:anywhere}
.purchase-line>header bdi{display:block;font-size:14px;color:#786d74;overflow-wrap:anywhere}
.purchase-line>header>.text-button{font-size:14px;color:#b82037;min-height:44px;flex:none}
.purchase-line-number{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:7px;background:#f2edf0;color:#7e6d78;font-size:14px;margin-inline-end:7px}
.purchase-manual-badge{display:inline-block;font-size:14px;padding:1px 6px;background:#fff2e6;color:#916240;border-radius:4px;margin-inline-start:7px}
.purchase-line-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}
.purchase-line-fields label,.purchase-line-note{display:grid;gap:6px;font-size:14px;color:#746770}
.purchase-line-fields input{width:100%;font-size:19px;min-height:46px;text-align:center}
.purchase-line-note input{font-size:16px;width:100%;min-height:46px}
.purchase-line-total{margin-top:14px;padding-top:12px;border-top:1px solid #f0ebee;display:flex;justify-content:space-between;font-size:14px;color:#7c6a76}
.purchase-line-total strong{color:var(--ink)}
.purchase-grand-total{display:flex;justify-content:space-between;align-items:center;padding:20px 0;margin:15px 0 10px;border-top:1px solid #ded6db;font-size:14px}
.purchase-grand-total strong{font-size:24px;letter-spacing:0;color:#ac1c31}
.purchase-attachments{border:1px dashed #cfbfc8;border-radius:14px;padding:16px;margin-top:20px;background:#fcfafb;text-align:right}
.purchase-attachments h3{font-size:14px;color:#55454f}
.purchase-attachments h3 span{font-size:14px;color:#8a7883;font-weight:400}
.purchase-attachments>p{font-size:14px;line-height:1.8;color:#8a7883;margin:5px 0 13px}
.purchase-attach-actions{display:flex;flex-wrap:wrap;gap:8px;position:relative}
.purchase-attach-actions .button{flex:1;min-height:44px;font-size:14px;white-space:normal;min-width:130px;cursor:pointer}
.purchase-attach-actions:has(input:disabled) .button{opacity:.5;pointer-events:none}
.purchase-file-list{list-style:none;display:grid;gap:7px;padding:0;margin:10px 0 15px}
.purchase-file-list li{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px;overflow-wrap:anywhere;padding:8px;border-radius:7px;background:#fff}
.purchase-file-list li>a,.purchase-file-list li>span{min-width:0;overflow-wrap:anywhere}
.purchase-file-list small{font-size:14px;color:#97828e;display:block}
.purchase-file-list .text-button{font-size:14px;flex:none}
.purchase-files-pending li{border:1px solid #eee1e8}
.purchase-storage-note{font-size:14px;line-height:1.8;text-align:center;color:#8c7d87;margin-top:12px}
.purchase-empty{text-align:center;color:#8c7d87;font-size:14px;padding:40px 20px;line-height:1.9}
.purchase-saved{padding:16px 0;text-align:center}
.purchase-saved>.receipt-check{display:grid;margin:0 auto 14px;background:#fff0f2;color:#b82037;font-size:39px}
.purchase-saved h2{font-size:24px}
.purchase-saved>.receipt-number{display:block;margin:8px 0}
.purchase-saved>p{font-size:14px;color:#8a7883;line-height:1.8;margin:8px 0 18px}
.purchase-saved-lines{display:grid;gap:9px}
.purchase-saved-line{display:flex;justify-content:space-between;gap:12px;padding:13px;background:#fff;border:1px solid var(--line);border-radius:10px;text-align:right}
.purchase-saved-line>div{min-width:0}
.purchase-saved-line>div>strong{font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.purchase-saved-line bdi{display:block;font-size:14px;color:#8a7883;overflow-wrap:anywhere}
.purchase-saved-line p{font-size:14px;line-height:1.7;color:#8a7883;margin-top:4px}
.purchase-saved-line>span{font-size:14px;flex:none;text-align:left;max-width:47%}
.purchase-saved-line>span>strong{font-size:14px;display:block;margin-top:4px}
.purchase-saved-note{background:#fff;padding:12px;border-radius:10px;text-align:right;white-space:pre-wrap}
.purchase-saved-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:20px}
.purchase-saved-actions .button{min-height:46px;font-size:14px}
.purchase-pdf-panel{background:#f7faf8;border:1px solid #dce7df;border-radius:14px;padding:20px;margin:20px 0 24px;text-align:center}
.purchase-pdf-panel h3{font-size:19px;line-height:1.7;color:#235c46}
.purchase-pdf-panel p{font-size:14px;line-height:1.9;color:#596c62;margin-top:7px;overflow-wrap:anywhere}
.purchase-pdf-panel .notice.error{color:#a4233d;text-align:right;white-space:pre-wrap}
.purchase-pdf-panel>.button{margin-top:14px}
.purchase-pdf-panel .purchase-saved-actions{margin-top:15px}
.purchase-saved-line p{white-space:pre-wrap;overflow-wrap:anywhere}
.purchase-history-card{display:flex;justify-content:space-between;gap:16px;padding:16px;background:#fff;border:1px solid var(--line);border-radius:14px;margin-bottom:12px}
.purchase-history-card>div{min-width:0}
.purchase-history-card>div:first-child{flex:1}
.purchase-history-card bdi{display:block;font-size:14px;color:#aa263a;margin-bottom:5px;overflow-wrap:anywhere}
.purchase-history-card strong{display:block;font-size:14px}
.purchase-history-card p,.purchase-history-card small{font-size:14px;color:#8c7986;line-height:1.8;overflow-wrap:anywhere}
.purchase-history-card>div:last-child{text-align:left;display:grid;gap:6px;align-content:start;flex:none}
.purchase-history-card>div:last-child>span{font-size:14px;color:#8c7986}
.purchase-history-card .button{min-height:40px;margin-top:4px}
.purchase-flow [aria-invalid=true]{border-color:#bc3549!important;background:#fff0f2!important}
.purchase-supplier-step{padding:22px;background:#fff;border:1px solid var(--line);border-radius:16px;margin-bottom:18px}
.purchase-step-label{color:#b82037;font-size:14px;font-weight:700;margin-bottom:5px}
.purchase-supplier-step h3{font-size:21px;line-height:1.7;color:var(--ink)}
.purchase-supplier-step>p{font-size:14px;line-height:1.9;color:var(--muted);margin:6px 0 18px}
.purchase-supplier-step>.button{min-height:50px;margin-top:20px;background:var(--brand);border-color:var(--brand);color:white;font-size:15px}
.purchase-supplier-summary{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:15px;border:1px solid #e5cfd8;border-radius:12px;background:#fff9fa;margin-bottom:14px;text-align:right}
.purchase-supplier-step .purchase-supplier-summary{margin:15px 0 0}
.purchase-supplier-summary>div{display:grid;gap:4px;min-width:0;flex:1 1 180px}
.purchase-supplier-summary span{font-size:14px;color:#8c6879}
.purchase-supplier-summary strong{font-size:15px;color:#542d3b;overflow-wrap:anywhere;line-height:1.7}
.purchase-supplier-summary .text-button{font-size:14px;min-height:44px;flex:none}
.purchase-history-card .purchase-history-supplier{color:#714250;font-size:14px;margin-top:6px}
@media(max-width:370px){.purchase-supplier-step{padding:15px}.purchase-supplier-step h3{font-size:19px}}
@media(max-width:370px){.purchase-heading h2{font-size:21px}.purchase-destination{gap:8px;padding:12px}.purchase-destination strong{font-size:14px}.purchase-line{padding:12px}.purchase-line-fields{gap:9px}.purchase-saved-actions{grid-template-columns:1fr}.purchase-history-card{padding:12px;gap:10px}.purchase-history-card bdi{font-size:14px}.purchase-grand-total strong{font-size:21px}.purchase-attach-actions .button{font-size:14px}}

/* Home keeps secondary actions quiet; internal pages have one return control. */
.portal-home-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:22px;padding-top:21px;border-top:1px solid #eee8ec}
.portal-home-link{display:flex;align-items:center;gap:9px;min-height:48px;text-align:right;padding:11px 12px;border:1px solid #55565b;border-radius:10px;background:#55565b;color:#fff;font-size:14px;line-height:1.6;transition:background .15s,border-color .15s}.portal-home-link svg{flex:none}
.portal-home-link:hover{border-color:#424348;background:#424348;color:#fff}
.portal-home-link svg{color:#ededf0}
@media screen and (min-width:320px){
  .portal-services:has(>button:nth-child(5)),.portal-home-links:has(>button:nth-child(5)){
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:.5rem;
  }
  .portal-services:has(>button:nth-child(5))>.portal-service{
    grid-column-start:auto;
    min-height:5.5rem;
    padding:.55rem .3rem;
    gap:.25rem;
  }
  .portal-services:has(>button:nth-child(5))>.portal-service strong{
    font-size:clamp(.875rem,3.6vw,1rem);
    overflow-wrap:anywhere;
  }
  .portal-services:has(>button:nth-child(5))>.portal-service>svg{width:1.6rem;height:1.6rem}
  .portal-services:has(>button:nth-child(5)) .queue-count{
    position:absolute;inset-block-start:.2rem;inset-inline-end:.2rem;
    min-width:1.25rem;min-height:1.25rem;margin:0;font-size:.75rem;
  }
  .portal-home-links:has(>button:nth-child(5))>.portal-home-link{
    flex-direction:column;justify-content:center;text-align:center;min-width:0;
    padding:.45rem .3rem;gap:.2rem;overflow-wrap:anywhere;
  }
}
.portal-signout{flex:none;margin:0;min-height:44px;min-width:102px;padding:9px 13px;background:var(--brand);border:1px solid var(--brand);border-radius:10px;color:#fff;font-size:13px;font-weight:600;line-height:1.5;white-space:nowrap;transition:background .15s,border-color .15s}
.portal-signout:hover{background:#bd122a;border-color:#bd122a;color:#fff}
.portal-home-return{display:flex;align-items:center;justify-content:center;gap:6px;flex:none;min-height:44px;padding:8px 10px;border:1px solid #e5dce1;border-radius:10px;background:#fff;color:#74606b;font-size:14px}
.portal-home-return svg{transform:rotate(180deg)}
.portal-home-return:hover{background:#fff7f9;border-color:#d9bcc7}
.portal-workspace{max-width:1180px}
.portal-workspace-content{padding-top:26px;width:100%;max-width:none}
.price-inquiry{padding:10px 0 30px}
.price-inquiry-intro{font-size:14px;color:#766872;margin-bottom:12px;line-height:1.7}
.price-search-form>label{display:block;font-size:14px;font-weight:700;margin-bottom:8px}
.price-query-row{display:flex;align-items:stretch;gap:8px}
.price-query-row .field{min-width:0;font-size:16px;min-height:49px;background:#fff;border-color:#e1d5dc}
.price-query-row>.button{min-width:70px;font-size:14px}
.price-search-actions{display:flex;align-items:center;gap:8px;margin-top:8px}
.price-search-actions .price-tool{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;min-height:44px;min-width:84px;padding:7px 12px;border:1px solid #e6d8df;border-radius:999px;background:#fff;color:#704b5c;font-size:14px;line-height:1.4;white-space:nowrap;cursor:pointer}
.price-search-actions .price-tool:hover{background:#fff3f7;border-color:#d7bbc7}
.price-search-actions #price-photo:focus-visible+.price-photo-button{outline:3px solid #b9c8a2;outline-offset:3px}
.price-search-actions #price-photo:disabled+.price-photo-button{cursor:not-allowed;opacity:.55}
.price-search-actions .text-button{flex:none;margin-inline-start:auto;min-height:44px;padding:8px 0;color:#887780;font-size:13px;white-space:nowrap}
.price-camera-pane{position:relative;margin-top:16px;height:min(340px,46svh);min-height:240px;overflow:hidden;border-radius:15px;background:#231e23;color:#fff}
.price-camera-pane video{width:100%;height:100%;object-fit:cover}
.price-viewfinder{position:absolute;inset:30% 8%;border:2px solid #fff8;border-radius:9px;pointer-events:none;box-shadow:0 0 0 100vmax #18121855}
.price-camera-stop{position:absolute;left:12px;top:12px;min-height:44px}
.price-camera-pane>p{position:absolute;bottom:12px;right:12px;left:12px;text-align:center;font-size:14px;padding:6px;border-radius:7px;background:#141016b3}
.price-status{font-size:14px;line-height:1.7;color:#7b6873;margin-top:10px;min-height:24px}
.price-status:empty{min-height:0;margin-top:0}
.price-status.error{color:#a4233d}
.price-results{display:grid;gap:13px;margin-top:10px}
.price-product{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) minmax(0,.95fr);align-items:center;gap:12px 16px;padding:19px;border:1px solid #e9dfe4;border-radius:15px;background:#fff}
.price-product-identity{display:grid;justify-items:center;gap:8px;text-align:center;min-width:0}
.price-product-identity img{width:112px;max-width:100%;height:112px;object-fit:contain;border-radius:10px}
.price-product h2{margin:0;font-size:17px;font-weight:500;line-height:1.55;overflow-wrap:anywhere}
.price-product-prices{display:grid;gap:8px;justify-self:start;min-width:0}
.price-availability{grid-column:3;text-align:center;margin:0;font-size:14px;font-weight:650;color:#655e63}
.price-availability.is-sarawat{color:#176637}
.price-availability.is-other{color:#a94d02}
.price-locations{grid-column:3;min-width:0;max-height:10rem;overflow-y:auto;color:#574b52;font-size:13px}
.price-locations table{width:100%;border-collapse:collapse}
.price-locations th,.price-locations td{padding:3px 2px;border-bottom:1px solid #eee7ec}
.price-locations th{text-align:start;overflow-wrap:anywhere;font-weight:500}
.price-locations td{text-align:end}
.price-locations bdi{font-weight:700;font-variant-numeric:tabular-nums}
.price-product-value{display:flex;align-items:baseline;gap:4px;flex:none;white-space:nowrap;font-size:22px;font-weight:700;color:#a9223b;line-height:1.5;margin:0;font-variant-numeric:tabular-nums}
.price-product-value small{font-size:14px;font-weight:400}
.price-product-amount{white-space:nowrap}
.price-unavailable{color:#8b7d85;font-size:14px;font-weight:400}
.price-pager{display:flex;justify-content:space-between;gap:16px;margin-top:20px}
.price-pager .button{min-height:44px;min-width:75px}
@media(max-width:600px){.price-product{gap:10px;padding:15px}.price-product-identity img{height:92px;width:92px}.price-product-value{font-size:17px;flex-wrap:wrap}.price-product-value small,.price-product-value .price-unavailable{font-size:12px}}
@media(max-width:370px){.portal-home-links{gap:7px}.portal-home-link{font-size:14px;padding-inline:9px;gap:6px}.portal-home-return{padding-inline:8px;font-size:14px;gap:4px}.price-product{padding:15px;gap:12px}.price-product h2{font-size:15px}.price-product-value{font-size:16px}}
@media print{.portal-home-return,.price-search-form,.price-camera-pane,.price-status,.price-pager{display:none!important}}

/* Readable purchasing copy stays consistent with the form labels on phones. */
.purchase-flow,.purchase-saved,.purchase-history,.price-inquiry{font-size:16px}
.purchase-flow .text-button,.purchase-saved .text-button,.purchase-history .text-button{font-size:14px;min-height:44px;padding:8px}
.purchase-flow .button,.purchase-saved .button,.purchase-history .button{font-size:14px;min-height:44px}
.purchase-flow .field{font-size:16px}
.purchase-flow .purchase-line-fields input{font-size:19px}
.purchase-flow .capture-quantity-row .field{font-size:26px}
.purchase-flow .purchase-capture-footer>.button,.purchase-flow .purchase-review>.button,.purchase-flow .purchase-supplier-step>.button{font-size:16px;min-height:52px}
.purchase-destination strong,.purchase-line>header strong,.purchase-saved-line>div>strong,.purchase-history-card strong,.purchase-supplier-summary strong{font-size:16px}
.purchase-supplier-step>p,.purchase-draft-note,.purchase-attachments>p,.purchase-storage-note,.purchase-saved>p,.purchase-saved-line p,.purchase-pdf-panel p{font-size:16px}
.purchase-flow .capture-camera-idle p,.purchase-flow .capture-camera-guidance,.purchase-flow .capture-status,.purchase-flow .capture-help,.purchase-flow .capture-field-heading>label,.purchase-flow .capture-query-help,.purchase-flow .capture-alternatives,.purchase-flow .capture-search-identifiers,.purchase-flow .capture-search-caption,.purchase-flow .capture-search-empty,.purchase-flow .capture-search-pages{font-size:14px}
.purchase-flow .capture-product-name{font-size:18px}
.purchase-flow .capture-search-name{font-size:16px}
.purchase-flow .capture-search,.purchase-flow .capture-clear{font-size:14px;min-height:44px}
.purchase-flow .capture-barcode-row .field::placeholder{font-size:14px}
.purchase-flow .capture-alternatives>summary{min-height:44px}
.portal-home-user,.portal-home-help,.portal-service-copy>span:not(.portal-service-badge){font-size:14px}
.portal-home-brand>p{font-size:16px}
.portal-service-copy strong{font-size:20px}
.portal-service-copy>.portal-service-badge{font-size:12px}
.transfer-brand h1{font-size:19px}
.transfer-brand p{font-size:14px}
@media(max-width:370px){.portal-service-copy strong{font-size:18px}.portal-service{align-items:center}.purchase-history-card{flex-direction:column}.purchase-history-card>div:last-child{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;text-align:right}.purchase-supplier-summary{flex-wrap:wrap}.purchase-destination{grid-template-columns:1fr}.transfer-brand h1{font-size:17px}}

/* Every return to the home screen has the same clear green background. */
.portal-home-return{background:#187342;border-color:#187342;color:#fff;font-weight:700;min-height:44px}
.portal-home-return:hover{background:#105c32;border-color:#105c32;color:#fff}
.portal-home-return:focus-visible{outline:3px solid #98d7af;outline-offset:3px}
.portal-home-account-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.portal-password-layout{min-height:100svh;display:grid;place-items:center;padding:28px 18px;background:#faf7f8}
.portal-password-card{width:100%;max-width:480px;border:1px solid #e7dfe3;background:#fff;padding:30px;border-radius:22px;box-shadow:0 12px 40px #2d1c2410}
.portal-password-card>.company-logo{display:block;width:118px;height:auto;max-height:100px;object-fit:contain;margin:0 auto 14px}
.portal-auth-eyebrow{display:block;text-align:center;font-size:13px;color:#8c7580;margin-bottom:10px}
.portal-password-card h1{font-size:25px;text-align:center;line-height:1.7;margin:0 0 12px}
.portal-auth-identity{text-align:center;font-size:16px;line-height:1.9;color:#584a52;overflow-wrap:anywhere}
.portal-auth-identity bdi{font-size:13px;color:#82717a}
.portal-password-intro{font-size:15px;line-height:1.9;margin:20px 0;color:#6e5d67}
.portal-password-form{display:grid;gap:14px}
.portal-password-form>.field-hint{margin-top:-8px;line-height:1.8}
.portal-password-form .field{font-size:17px;min-height:49px;background:#fff}
.portal-password-form .field-label{font-size:14px;margin-bottom:7px}
.portal-password-form .field-label small{font-size:12px;font-weight:400;color:#96828d}
.portal-remember{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.8;padding-top:4px}
.portal-remember input{width:19px;height:19px;accent-color:#187342;flex:none;margin-top:3px}
.portal-password-feedback{font-size:14px;line-height:1.8;margin:0}
.portal-password-actions{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-top:24px}
.portal-password-actions .text-button{min-height:44px;font-size:14px}
.portal-password-note{font-size:12px;line-height:1.9;color:#927d88;margin-top:20px;border-top:1px solid #eee6ea;padding-top:14px}
.portal-approval-pending{padding:18px;background:#fff8e8;border:1px solid #f0e1b9;border-radius:12px;line-height:1.9;font-size:15px;color:#795d26;margin-bottom:18px}
.member-approvals{padding:20px;border:1px solid #e7dce2;background:#fff;border-radius:15px;margin-bottom:20px}
.member-approvals .member-list-heading{margin-top:0}
.member-approval-list{display:grid;gap:12px}
.member-approval-card{display:flex;gap:18px;align-items:center;justify-content:space-between;padding:17px;background:#fcf9fa;border:1px solid #eee3e8;border-radius:12px}
.member-approval-card h3{font-size:16px;margin-bottom:5px}
.member-approval-email{font-size:13px;color:#88717e;overflow-wrap:anywhere;display:block}
.member-approval-card p{font-size:14px;margin-top:8px;line-height:1.8}
.member-approval-actions{display:flex;gap:8px;flex:none}
.member-approval-actions .button{min-height:44px}
.member-approval-empty{font-size:14px;color:#826e79;line-height:1.8}
.member-summary-card{border:1px solid #e5dbe1;background:#fff;border-radius:14px;overflow:hidden}
.member-summary-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px}
.member-summary-identity{min-width:0}
.member-summary-identity h3{font-size:17px;line-height:1.7}
.member-summary-identity bdi{display:block;font-size:13px;color:#85717c;overflow-wrap:anywhere;line-height:1.8}
.member-summary-identity p{font-size:13px;color:#9a8591;line-height:1.7;margin-top:3px}
.member-summary-controls{display:flex;gap:12px;align-items:center;flex:none}
.member-summary-controls>.button{min-height:44px;min-width:64px}
.member-summary-card .member-card{margin:0;border:0;border-top:1px solid #eee4e9;border-radius:0;background:#fdfbfc}
[data-member-editor][hidden]{display:none}
.member-mapping-note{font-size:14px;line-height:1.9;color:#6d6d59;background:#faf9ed;border-radius:10px;padding:12px 15px;margin-bottom:17px}
.member-card .field[readonly]{background:#f4f1f3;border-color:#e6dfe3;color:#71646c}
.member-card .member-actions{flex-wrap:wrap;gap:10px}
.member-card .member-actions .text-button{min-height:44px;font-size:13px}
.member-create-section{margin:20px 0;border:1px solid #e7dce2;border-radius:14px;background:#fff}
.member-create-section>summary{padding:16px 20px;cursor:pointer;min-height:52px;font-size:15px;font-weight:700;color:#806570}
.member-create-section .member-create-card{border:0;margin:0;background:#fdfbfc}
#confirm-description{white-space:pre-line;overflow-wrap:anywhere;line-height:1.9}
@media(max-width:600px){.portal-password-card{padding:24px 20px}.portal-password-card h1{font-size:22px}.member-summary-row{padding:16px;gap:10px}.member-summary-controls{flex-direction:column;gap:8px;align-items:flex-end}.member-summary-controls>.status-pill{font-size:11px}.member-approval-card{align-items:flex-start;flex-direction:column}.member-approval-actions{align-self:flex-end}.member-approvals{padding:16px}.portal-home-account-actions{gap:5px}.portal-home-account-actions .portal-signout{font-size:12px}}

.database-storage{max-width:44rem;padding:1.25rem}.database-storage progress{display:block;width:100%;height:.75rem;accent-color:var(--primary,#225f54)}.database-storage .stat-value{margin:1rem 0}

.location-master{min-width:0;max-width:100%;padding:1rem}
.master-search,.master-pages{display:flex;align-items:end;gap:.75rem;flex-wrap:wrap}
.master-search label{flex:1;min-width:12rem}
.master-search input{display:block;width:100%}
.master-scroll{max-width:100%;overflow:auto;max-height:65vh}
.master-scroll table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;text-align:start}
.master-scroll th,.master-scroll td{padding:.6rem .8rem;border-bottom:1px solid #e5e4df;text-align:start}
.master-scroll th{position:sticky;top:0;background:#f4f4f0;z-index:1}
.master-scroll td:first-child,.master-scroll th:first-child{position:sticky;inset-inline-start:0;background:white;max-width:14rem}
.master-scroll th:first-child{z-index:2;background:#f4f4f0}
.master-pages{margin-top:.75rem}

#transfer-photo > p,
#transfer-photo > label {
  color: #ab1834;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.6;
}

#purchase-barcode-warning { color: #ab1834; font-size: 1.125rem; font-weight: 700; }
.price-availability[class]{justify-self:center;align-self:center;border-radius:999px;padding:3px 12px;color:white;background:#57616b;width:max-content}
.price-availability.is-sarawat{background:#137333;color:white}
.price-availability.is-other{background:#ff9800;color:#301800}
.price-availability.is-none{background:#c62828;color:white}
.quote-customer,.quote-line:not([hidden]){display:grid;gap:12px;margin:12px auto}
.quote-warning{color:#aa2133}
.quote-paper{margin:18px 0;padding:16px;background:white;overflow:auto}
.quote-paper table{width:100%;border-collapse:collapse}
.quote-paper td,.quote-paper th{padding:6px;border-bottom:1px solid #ccc;text-align:start}
@media print{body:has(.quote-paper) .transfer-appbar,.quote-editor,.quote-print,.quote-remove,body:has(.quote-paper) .skip-link{display:none!important}body:has(.quote-paper) main,body:has(.quote-paper) .transfer-app,.quote-paper{display:block!important;max-width:none!important;width:100%;margin:0;padding:0;overflow:visible}.quote-paper tr{break-inside:avoid}}

.section-records { display: flex; flex-wrap: wrap; gap: 10px; margin-block-end: 14px; }
.section-records > button { flex: 1 1 9rem; }
.sales-menu {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  gap: 16px;
}
.sales-menu .button {
  box-sizing: border-box;
  width: 100%;
  min-height: clamp(112px, 16vw, 148px);
  padding: 24px;
  border-radius: 18px;
  background: #342632;
  color: white;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
}
.quote-editor[hidden], .quote-save[hidden], .quote-execute[hidden], .quote-delete[hidden] { display: none; }
.report-back{margin-block-start:1.5rem}

.quote-list,.quote-actions { display:grid; gap:12px; }
.quote-list-card { font:inherit; text-align:start; width:100%; min-height:112px; padding:18px 20px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:6px 14px; border:1px solid #d7ccd1; border-radius:16px; background:white; color:#342632; cursor:pointer; }
.quote-list-card strong { font-size:1.25rem; overflow-wrap:anywhere; }
.quote-list-card span { grid-column:1; }
.quote-list-card bdi { grid-column:1; }
.quote-list-card b { grid-column:2; grid-row:1 / 4; }
.quote-actions .button { width:100%; min-height:56px; font-size:1rem; }
.quote-actions .quote-delete { color:#902c39; border-color:#ceadb0; background:white; }
.quote-paper .quote-line-action,.quote-paper .quote-remove { font:inherit; min-width:60px; min-height:44px; padding:6px; margin:3px; border-radius:8px; background:white; border:1px solid #cdbfc6; color:#342632; }
@media print { .quote-actions,.quote-line-action { display:none!important; } }

.sales-report { overflow-x:auto; border:1px solid #d7ccd1; border-radius:14px; background:white; }
.sales-report table { width:100%; border-collapse:collapse; min-width:720px; }
.sales-report th,.sales-report td { padding:15px 16px; text-align:start; border-bottom:1px solid #e8dfe4; }
.sales-report th { background:#342632; color:white; white-space:nowrap; }
.sales-report tbody tr:nth-child(even) { background:#f8f5f7; }
.sales-report td:nth-child(4) { white-space:nowrap; font-variant-numeric:tabular-nums; }

.transfer-app .portal-home-return[data-back], .transfer-app .report-back[data-back] {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:auto;
  min-width:120px;
  min-height:48px;
  padding:10px 16px;
  border:1px solid #176443;
  border-radius:10px;
  background:#176443;
  color:#fff;
  font-weight:700;
}
.portal-home-return[data-back] span { display:inline; }
.transfer-app [data-back]:hover { background:#104d34; }

.accounting-preview label { display: grid; gap: .45rem; font-weight: 700; }
.accounting-preview fieldset { display: grid; gap: 1rem; border: 0; padding: 0; margin: 1rem 0; }
.accounting-preview input, .accounting-preview select { width: 100%; min-height: 48px; padding-inline: .75rem; }
.accounting-preview canvas { width:100%; max-width:600px; border:1px solid #868e89; background:white; touch-action:none; border-radius:8px; }
.accounting-preview img { max-width:100%; max-height:260px; object-fit:contain; }
.accounting-preview [data-save], .accounting-preview [data-clear] { display:block; margin-block:1rem; min-height:48px; }

.rep-aging-scroll{direction:rtl;overflow-x:auto;max-width:100%;border:1px solid #ded3d8;border-radius:10px}
.rep-aging-scroll table{border-collapse:collapse;width:max-content;min-width:100%;font-variant-numeric:tabular-nums}
.rep-aging-scroll th,.rep-aging-scroll td{padding:8px 9px;text-align:right;border-bottom:1px solid #eee5e8;white-space:nowrap}
.rep-aging-scroll thead{background:#f4ecef}
.rep-aging-scroll tbody th{min-width:7em;max-width:12em;white-space:normal;font-weight:550}
@media(max-width:600px){.rep-aging-scroll th,.rep-aging-scroll td{font-size:13px;padding:6px}.rep-aging-scroll tbody th{max-width:8em}}

.finance-controls,.account-report-header{display:flex;align-items:center;flex-wrap:wrap;gap:14px;justify-content:space-between}
.finance-controls{justify-content:flex-start}.finance-controls label,.finance-search{display:grid;gap:6px}
.finance-controls .finance-check{display:flex;align-items:center;gap:7px}.finance-check input{width:auto}
.finance-search input,.finance-controls select,.finance-controls input[type=date]{max-width:100%;padding:9px;border:1px solid #b9aeb3;border-radius:7px;font:inherit}
.finance-results{display:grid;gap:4px;max-height:22rem;overflow:auto}
.finance-results button{text-align:start;padding:10px;background:white;color:inherit;border:1px solid #c9c2c4;border-radius:5px;font:inherit;cursor:pointer}
.finance-results button:focus,.finance-results button:hover{background:#f5eef2}
.finance-report .rep-aging-scroll th,.finance-report .rep-aging-scroll td{border:1px solid #b7adb2}
.finance-report .rep-aging-scroll tbody tr:nth-child(even){background:#f6f3f5}
.finance-report .rep-aging-scroll td:first-child{min-width:8rem;max-width:16rem;white-space:normal}
.finance-report .rep-aging-scroll tfoot{font-weight:700;background:#eae3e7}
.finance-report button:disabled{opacity:.55}

.finance-report .aging-overdue td{color:#a01828}
@media print{.finance-report .aging-overdue td,.finance-report .aging-overdue bdi{color:#a01828!important;print-color-adjust:exact}}
.statement-menu{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.statement-menu .button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:104px;padding:12px;font-size:clamp(17px,4vw,24px)}
.statement-menu .button[data-page=statement-history]{--option-color:var(--option-blue)}
.statement-form{display:grid;gap:14px}.statement-form fieldset{border:1px solid #ded3d8;border-radius:10px;padding:14px;min-width:0}.statement-form legend{font-weight:650;padding-inline:6px}
.statement-selected{display:flex;gap:6px;flex-wrap:wrap}.statement-selected button{background:#f6f0f2;border:1px solid #d9c8cf;border-radius:20px;padding:5px 12px;margin-top:8px;color:inherit;cursor:pointer}
.statement-request{display:flex;align-items:center;flex-wrap:wrap;gap:10px 20px;padding:12px 0;border-bottom:1px solid #e5dade}.statement-request span{margin-inline-start:auto}
.statement-history-row{
  display:grid;grid-template-columns:minmax(0,1fr) 7.5em;align-items:center;
  gap:.3rem .75rem;padding:.75rem 0;border-bottom:1px solid #e5dade;
}
.statement-history-row>strong{grid-column:1;grid-row:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.statement-history-row>.button{grid-column:2;grid-row:1;width:100%;white-space:nowrap}
.statement-history-row>.owner-row-move{grid-row:auto}
.request-head .owner-row-move,.quote-list article>.owner-row-move{margin-block-start:.5rem}
.statement-history-details{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:.25rem 1rem}
.finance-report [hidden]{display:none!important}
[data-document]>[data-back-list]{margin-block-end:1rem}
.statement-match{display:flex;flex-wrap:wrap;gap:6px}.statement-match button:first-child{flex:1;text-align:start}

/* Small scanner trigger and a separate full-screen reading surface. */
.capture-stage[hidden],.hr-editor [hidden],.reconciliation-matches[hidden]{display:none!important}
.capture-camera-trigger{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:4px 12px;border:1px solid #c4d8cb;border-radius:10px;color:#21573b;background:#eef6ef;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.capture-camera-trigger svg{width:19px;height:19px}
.capture-camera-trigger:focus-visible,.hr-row summary:focus-visible{outline:3px solid #508968;outline-offset:2px}
.capture-camera-trigger:disabled{opacity:.6}
.capture-field-heading>label{font-size:16px;color:var(--ink)}
.capture-query-controls{display:flex;align-items:center;gap:6px}
.capture-query-controls .field{flex:1;min-width:0;text-align:start}
html:has(.capture-panel,.transfer-review){scrollbar-gutter:stable}
:is(.transfer-app,.purchase-flow) :is(button,summary){touch-action:manipulation}
.capture-barcode-row{position:relative}
.capture-field-heading{min-height:30px}
.capture-barcode-row .capture-search-results{position:absolute;inset-inline:0;top:100%;z-index:6;max-height:min(310px,38dvh);overflow:auto;margin-top:2px;box-shadow:0 5px 12px #153b2a24}
.capture-search-results .capture-search-list{max-height:none;overflow:visible}
.capture-results-close{float:inline-end;min-height:36px;padding:2px 8px}
.capture-search-list,.capture-search-pages{clear:both}
.capture-panel .capture-quantity-field{gap:5px;flex-wrap:wrap}
.capture-quantity-field .capture-camera-trigger{margin-inline-end:auto;min-height:44px;padding-inline:7px;gap:4px}
.capture-quantity-field>label{min-width:0;font-size:14px}
.capture-quantity-field .capture-quantity-row{flex:0 1 auto;gap:5px}
.capture-panel #capture-quantity{flex:none;width:clamp(74px,24vw,112px);min-height:44px;padding:4px;font-size:18px;letter-spacing:0}
.capture-panel .capture-mic{width:44px;min-width:44px;height:44px;min-height:44px;flex:none;padding:7px}
@media(max-width:350px){.capture-quantity-field .capture-camera-trigger{font-size:12px}.capture-panel #capture-quantity{width:70px}.capture-quantity-field>label{font-size:13px}}

.transfer-line-title .transfer-line-label{display:block;color:var(--ink);font-size:15px;overflow-wrap:anywhere;line-height:1.6}
.transfer-line-title .cart-line-barcode{font-weight:500;font-size:13px}

.portal-services .portal-service-hr:not(:disabled){background:#685468;color:white;border-color:#685468}
.portal-service-hr small{font-size:12px}
.hr-catalog,.hr-menu{max-width:760px;margin-inline:auto}
.hr-menu,.hr-list,.hr-editor,.hr-editor fieldset{display:grid;gap:12px}
.hr-nav,.hr-row,.hr-admin-row,.hr-editor{border:1px solid var(--line);border-radius:15px;background:white;color:var(--ink)}
.hr-nav{display:grid;grid-template-columns:1fr auto;gap:2px 12px;padding:18px 22px;text-align:start;cursor:pointer;font:inherit}
.hr-nav strong{grid-row:1;font-size:18px}.hr-nav small{grid-row:2;color:var(--muted)}.hr-nav span{grid-column:2;grid-row:1/3;align-self:center;font-size:26px}
.hr-row summary,.hr-admin-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 20px}
.hr-row summary{cursor:pointer;list-style:none}.hr-row summary::-webkit-details-marker{display:none}
.hr-title{display:grid;gap:3px;text-align:start;min-width:0;overflow-wrap:anywhere}
.hr-title strong{font-size:17px}.hr-title small,.hr-language small{font-size:13px;color:var(--muted);text-align:start;justify-self:start}
.hr-chevron{font-size:23px;line-height:1}.hr-row[open] .hr-chevron{transform:rotate(180deg)}
.hr-language{border-top:1px solid var(--line);padding:14px 20px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.hr-language>span{display:grid;gap:3px}.hr-language-options,.hr-actions,.hr-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.hr-tools{margin-bottom:14px}.hr-language-options a{text-decoration:none;min-width:82px}
.hr-feedback:not(:empty){padding:10px 0}.hr-editor{padding:20px}
.hr-editor fieldset{padding:12px;border:1px solid var(--line);border-radius:10px}
.hr-editor legend{padding-inline:6px;font-weight:700}.hr-editor label{display:grid;gap:6px}
.hr-editor .field{width:100%;min-height:44px}.hr-editor h2{font-size:20px}

.reconciliation-toolbar,.finance-choices{display:flex;align-items:end;gap:10px;flex-wrap:wrap}
.reconciliation-toolbar .finance-search{flex:1;min-width:150px}
.reconciliation-matches{border:1px solid var(--line);border-radius:10px;margin-top:10px;background:white}
.reconciliation-matches [data-matches]{max-height:275px;overflow:auto}
.reconciliation-matches label{display:flex;align-items:center;gap:10px;padding:9px 12px;cursor:pointer;min-height:42px}
.reconciliation-matches label+label{border-top:1px solid var(--line)}
.reconciliation-matches input,.finance-choices input{width:18px;height:18px;accent-color:#245c43}
.reconciliation-matches label small{margin-inline-start:auto;color:var(--muted)}
.reconciliation-all{font-weight:700;background:#f5f2f4;border-bottom:1px solid var(--line)}
.reconciliation-documents{display:grid;gap:8px;margin-block:12px}
.receipt-preview{display:grid;gap:14px;max-width:700px;margin-inline:auto;padding:20px}.receipt-preview label{display:grid;gap:6px}
.receipt-preview fieldset{padding:12px;border:1px solid var(--line);border-radius:10px}
.receipt-preview .finance-choices{align-items:center}.receipt-preview .finance-choices label{display:flex;align-items:center;gap:6px;padding:4px 8px}
.receipt-preview output{font-weight:700;color:#315440}.receipt-preview input,.receipt-preview textarea{font:inherit}
@media(max-width:500px){.hr-admin-row{align-items:start;flex-wrap:wrap}.hr-language{padding:12px 15px}.hr-row summary{padding-inline:15px}.receipt-preview{padding:15px}}
.receipt-preview [hidden]{display:none!important}.receipt-preview .receipt-file{display:inline-flex;position:relative;cursor:pointer;overflow:hidden}
.receipt-file input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.receipt-file:focus-within{outline:3px solid #58816d}
.receipt-attachment{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.receipt-attachment img{width:72px;height:56px;object-fit:contain}.receipt-attachment button{margin-inline-start:auto;min-width:40px;min-height:40px;background:transparent;border:0;font-size:20px}
.receipt-preview canvas,.pledge-detail img{display:block;width:min(100%,440px);height:auto;border:1px solid var(--line);border-radius:8px;background:white}
.receipt-preview canvas{touch-action:none;cursor:crosshair}.pledge-detail{padding:15px}.receipt-preview [data-cash] small{display:block;color:var(--muted)}
.receipt-preview [data-note]{margin:0;padding:10px 14px;border-inline-start:3px solid #81354c;background:#faf6f7;font-size:13px;line-height:1.8}

.portal-services .portal-service-offers{background:#7a4338;border-color:#7a4338;color:white}
.hr-preview{width:100%;max-width:none;height:100%;max-height:none;inset:0;margin:0;padding:0;border:0;color:var(--ink);background:#eeeef0}
.hr-preview[open]{display:flex;flex-direction:column}
.hr-preview::backdrop{background:#242125}
.hr-preview-toolbar{flex:none;display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:12px max(14px,env(safe-area-inset-right)) 12px max(14px,env(safe-area-inset-left));padding-top:max(12px,env(safe-area-inset-top));background:white;border-bottom:1px solid var(--line)}
.hr-preview-toolbar h2{flex:1 1 140px;margin:0;font-size:17px;text-align:start}
.hr-file-actions{display:flex;flex-wrap:wrap;gap:.45rem;align-items:center}
.master-workbook{margin-block-end:1rem}.master-workbook p{margin:.55rem 0}.master-workbook [hidden]{display:none!important}
.master-workbook .receipt-file{position:relative;overflow:hidden;display:inline-flex;cursor:pointer}
.hr-file-size{color:#335347;font-size:.88rem}.hr-file-size:empty{display:none}
.hr-preview .hr-file-actions [data-share-form]{background:#1d5a74;color:white;min-height:44px;padding-inline:1rem}
.hr-preview-toolbar [data-return]{min-height:44px}
@media(max-width:600px){.hr-file-actions{flex-basis:100%}.hr-file-actions>*{flex:1 1 auto;text-align:center;justify-content:center}}
.hr-preview-pages{flex:1;overflow:auto;overscroll-behavior:contain;padding:12px 8px max(12px,env(safe-area-inset-bottom))}
.hr-preview-pages canvas{display:block;width:min(100%,810px);height:auto;margin:0 auto 12px;background:white;box-shadow:0 2px 9px #26232626}
.hr-preview [role=status]{margin:0;padding-inline:12px;background:white}
.hr-native-preview{width:100%;height:100%;border:0}
body.hr-view-active{overflow:hidden}
@media print{
  html:has(body.hr-view-active),body.hr-view-active{overflow:visible!important;height:auto!important;background:white}
  body.hr-view-active #app,body.hr-view-active>.skip-link,body.hr-view-active>.toast,.hr-preview-toolbar,.hr-preview [role=status]{display:none!important}
  .hr-preview[open],.hr-preview-pages{display:block!important;position:static!important;margin:0!important;padding:0!important;border:0!important;width:100%!important;height:auto!important;max-height:none!important;overflow:visible!important;background:white!important}
  .hr-preview[open]::backdrop{background:transparent}
  .hr-preview-pages canvas{display:block!important;width:100%!important;height:auto!important;box-shadow:none!important;break-inside:avoid;break-after:page;margin:0!important}
  .hr-preview-pages canvas:last-child{break-after:auto}
}

.voucher-summary {display:grid;gap:.65rem}
.voucher-group,.voucher-row-title,.voucher-request {display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.voucher-group {padding:1rem 1.15rem;width:100%;background:#fff;color:#38242d;border:1px solid #d6c9cf;border-radius:.65rem;text-align:start;font:inherit;cursor:pointer}
.voucher-group:hover,.voucher-group:focus-visible {border-color:#85475d;background:#fbf7f8}
.voucher-group strong,.voucher-row-title bdi {font-variant-numeric:tabular-nums}
.accountant-voucher,.voucher-request {padding:1rem 0;border-block-end:1px solid #ded7db}
.accountant-voucher p {margin:.55rem 0}
.accountant-voucher .hr-actions {margin-block:.75rem}
.voucher-row-title bdi {color:#655562}
.finance-report form:has([name=reference]) {display:flex;align-items:end;gap:.75rem;flex-wrap:wrap;margin-block-end:1.5rem}

@media screen {
  :root {
    --portal-page:#e8f0ec;
    --portal-panel:#f0f5ef;
    --portal-field:#e3eee8;
    --option-green:#176443;
    --option-blue:#295c78;
    --option-purple:#65477e;
    --option-teal:#246466;
    --option-rust:#844633;
  }
  body,#app,.portal-home,.transfer-app,.portal-workspace,.portal-password-layout {background:var(--portal-page)}
  #app :is(.transfer-appbar,.topbar,.portal-home-account,.portal-home-footer),.hr-preview-toolbar,.hr-preview [role=status] {
    background:#dce9e2;border-color:#bbd0c3
  }
  #app :is(.catalog-panel,.cart-panel,.stat-card,.request-card,.member-card,.access-pending,.purchase-supplier-step,.purchase-supplier-summary,
    .purchase-history-card,.purchase-saved,.price-product,.portal-password-card,.member-approvals,.member-summary-card,.member-create-section,
    .hr-row,.hr-admin-row,.hr-editor,.sales-report,.transfer-menu-body,.capture-search-results,.transfer-line,.purchase-line,
    .purchase-saved-line,.purchase-saved-note,.purchase-file-list li,.capture-help,.accounting-preview,.reconciliation-matches) {
    background-color:var(--portal-panel);border-color:#c3d5c9
  }
  #app :is(input:not([type=button],[type=submit],[type=radio],[type=checkbox],[type=file]),textarea,select,.filter-select),
  dialog :is(input:not([type=button],[type=submit],[type=radio],[type=checkbox],[type=file]),textarea,select) {
    background-color:var(--portal-field);color:#20372d;border-color:#a8c1b2
  }
  #app :is(input,select,textarea)[aria-invalid=true] {background-color:#fae7e3;border-color:#a54133}
  #app :is(.capture-expand,.price-search-actions .price-tool,.transfer-menu>summary,.transfer-destination,.purchase-destination,
    .hr-language,.reconciliation-all,.statement-selected button,.price-pager .button,.capture-stop,.portal-password-card .text-button):where(:not([data-return])),
  .install-help-platform {background-color:#dbece3;color:#214d3b}
  #app :is(.finance-results button,.capture-search-result,.reconciliation-matches label,.hr-row summary,.quote-list-card,.portal-approval-pending) {
    background-color:#dae9e2;color:#243e32;border-color:#b3ccbc
  }
  #app :is(.finance-results button,.capture-search-result,.reconciliation-matches label,.hr-row,.quote-list-card):nth-child(even) {
    background-color:#dbe7ed
  }
  #app :is(.finance-results button,.capture-search-result,.quote-list-card,.hr-row summary):is(:hover,:focus-visible),
  #app .reconciliation-matches label:has(input:checked) {background-color:#c4dcca}
  #app :is(.finance-results button,.capture-search-result,.quote-list-card,.hr-row summary) :is(small,.capture-search-identifiers) {color:#3e5649}
  #app :where(.button.secondary):not([data-return]),.hr-preview-toolbar .button.secondary {background-color:#d8e6df;color:#1f4f3b;border-color:#a9c3b5}
  #app :where(.button.secondary):not([data-return]):hover {background-color:#c3dace}
  #app :is(.hr-actions,.hr-language-options,.purchase-saved-actions) .button.secondary:where(:not([data-return])) {background-color:var(--option-blue);color:white;border-color:var(--option-blue)}
  #app .quote-actions .quote-delete,#app .quote-paper .quote-remove {background-color:#f5dcd7;color:#892b31;border-color:#c29290}

  /* Route and payment keys keep their colors when permissions change the order of a menu. */
  :is(.sales-menu,.hr-menu,.portal-home-links,.section-records) [data-page] {--option-color:var(--option-teal)}
  :is(.sales-menu,.hr-menu,.portal-home-links,.section-records) :is([data-page=account-receipt],[data-page=cash-pledges],[data-page=reconciliation-ready],[data-page=prices]) {--option-color:var(--option-green)}
  :is(.sales-menu,.hr-menu,.portal-home-links,.section-records) :is([data-page=account-statement],[data-page=sales-prices],[data-page=requests],[data-page=hr-forms],[data-page=location-master]) {--option-color:var(--option-blue)}
  :is(.sales-menu,.hr-menu,.portal-home-links,.section-records) :is([data-page=account-aging],[data-page=saved-quotes],[data-page=hr-manage],[data-page=purchases],[data-page=members]) {--option-color:var(--option-purple)}
  :is(.sales-menu,.hr-menu,.portal-home-links,.section-records) :is([data-page=accountant-receipts],[data-page=quote],[data-page=reconciliation-request],[data-page=storage],[data-page=admin]) {--option-color:var(--option-rust)}
  [data-payment=cash]{--option-color:var(--option-green)}
  [data-payment=bank]{--option-color:var(--option-blue)}
  [data-payment=cheque]{--option-color:var(--option-purple)}
  #app :is(.voucher-group,.sales-menu .button,.hr-nav,.portal-home-link,.finance-choices label) {
    background:var(--option-color,var(--option-teal));color:#fff;border-color:var(--option-color,var(--option-teal))
  }
  #app :is(.voucher-group,.sales-menu .button,.hr-nav,.portal-home-link,.finance-choices label):is(:hover,:focus-visible) {
    background:color-mix(in srgb,var(--option-color,var(--option-teal)) 83%,#101c19);color:#fff
  }
  #app :is(.voucher-group,.hr-nav,.portal-home-link) :is(strong,span,bdi,small,svg){color:inherit}
  #app .finance-choices label {display:inline-flex;align-items:center;gap:.5rem;min-height:44px;padding:.4rem .85rem;border:2px solid transparent;border-radius:.55rem;cursor:pointer}
  #app .finance-choices label:has(input:checked){box-shadow:inset 0 0 0 2px white}
  #app .finance-choices input {accent-color:#153f2c}
  #app .finance-report:has(.voucher-summary) {padding:clamp(.9rem,3vw,1.5rem)}
  #app .voucher-summary {margin-block-start:.75rem}
  #app .voucher-group {min-height:3.65rem;font-size:1.05rem;border:none;gap:.6rem}
  #app .voucher-group strong {font-weight:700;white-space:nowrap}

  /* Return buttons in page shells, PDF dialogs, step navigation and pagination share this treatment. */
  :is(#app,dialog) button[data-return] {
    background:var(--option-green);color:#fff;border:1px solid var(--option-green);border-radius:10px;
    min-height:44px;padding-inline:.85rem;font-weight:700;text-decoration:none
  }
  :is(#app,dialog) button[data-return]:hover:not(:disabled) {
    background:#104f36;color:#fff;border-color:#104f36
  }
  :is(#app,dialog) button[data-return]:disabled {
    background:#506d5d;color:#fff;border-color:#506d5d;opacity:1
  }
  :is(#app,dialog) :is(button,a,summary):focus-visible,#app .finance-choices label:has(input:focus-visible) {
    outline:3px solid #154f6b;outline-offset:3px
  }
}

.voucher-access {margin-block-start:1.25rem;border-block-start:1px solid #b5c9bc;padding-block-start:.7rem}
.voucher-access summary {min-height:44px;align-content:center;color:#214d3b;font-weight:700;cursor:pointer}
.voucher-access fieldset {display:grid;gap:.7rem;margin:0;padding:.75rem 0;border:0}
.voucher-access label {display:grid;gap:.3rem}
.voucher-access [hidden] {display:none}
.voucher-access p {margin:.25rem 0}

.hr-preview-pages .numbered-print-page{margin:0 auto 12px;width:min(100%,810px);background:white;text-align:center}
@media print{.hr-preview-pages .numbered-print-page{width:100%;margin:0;break-after:page;break-inside:avoid}.hr-preview-pages .numbered-print-page:last-child{break-after:auto}.hr-preview-pages .numbered-print-page canvas{break-after:auto;width:auto!important;max-width:100%;max-height:94vh}.numbered-print-page figcaption{font-size:9pt}}

.quote-customer-tools { display:flex; align-items:end; gap:.75rem; flex-wrap:wrap; }
.quote-customer-tools label { flex:1 1 13rem; }
.quote-customer label, .quote-line label { display:grid; gap:.35rem; }
.quote-customer [hidden], .quote-line[hidden] { display:none; }
.quote-new-fields { display:grid; gap:.8rem; margin:0; padding:1rem; border:1px solid #d7ccd1; border-radius:.75rem; }
.quote-product-choice { display:block; width:100%; min-height:44px; padding:.7rem 1rem; text-align:start; font:inherit; font-weight:600; color:#342632; background:white; border:1px solid #d7ccd1; border-radius:.75rem; cursor:pointer; }
.quote-product-choice:focus-visible,.quote-product-choice:hover { border-color:#825366; background:#fbf6f8; }
.quote-unit-price { margin:0; }
.quote-unit-price bdi { font-weight:bold; }
.quote-editor .quote-customer, .quote-editor .quote-line:not([hidden]) { padding:clamp(.85rem,3vw,1.4rem); border:1px solid #e0d6da; background:var(--surface,#fff); border-radius:1rem; }
.quote-editor .field { width:100%; min-height:3rem; font-size:max(16px,1rem); }
.quote-customer-tools .button { min-height:3rem; white-space:nowrap; }
.quote-new-fields { grid-template-columns:repeat(2,minmax(0,1fr)); border:0; padding:.25rem 0 0; }
.quote-new-fields legend { font-weight:700; padding:0; margin-bottom:.45rem; }
.quote-customer .finance-results:empty { display:none; }
.quote-editor .quote-line:not([hidden]) { grid-template-columns:minmax(0,1fr); }
.quote-editor .quote-line :is(label,.field) { min-inline-size:0; }
.quote-editor .quote-line h3 { margin:0; overflow-wrap:anywhere; }
.quote-product-choice { overflow-wrap:anywhere; touch-action:manipulation; }
.quote-editor .quote-unit-price { color:#503440; }
.quote-editor .quote-unit-price bdi { font-size:1.15rem; }
@media(max-width:540px){.quote-new-fields {grid-template-columns:1fr;} .quote-customer-tools {gap:.5rem;} .quote-customer-tools label {flex:1 1 9rem;} .quote-customer-tools .button {padding-inline:.65rem;}}

@media (pointer:coarse) {
  .quote-editor .field { font-size:max(18px,1rem); }
  .quote-editor .quote-line { scroll-margin-block:5rem 1rem; }
}

.voucher-entry[hidden]{display:none!important}
.voucher-draft-review dl{margin:0;overflow-wrap:anywhere}
.voucher-draft-review dt{margin-block-start:.75rem;font-weight:700}
.voucher-draft-review dd{margin:0;white-space:pre-wrap}
@media print{
  .voucher-entry,.voucher-draft-review{display:none!important}
}

.journal-panel{display:grid;gap:.85rem;padding:1.25rem;max-width:48rem;margin-inline:auto}
.journal-panel [hidden]{display:none!important}
.journal-panel form,.journal-panel label{display:grid;gap:.6rem}
.journal-panel h2,.journal-panel p{margin:0}
.journal-panel summary{cursor:pointer}
.journal-panel textarea{resize:vertical;min-height:44px;font-size:1rem}
.journal-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.25rem .75rem;padding:.8rem 0;border-bottom:1px solid var(--line)}
.journal-row a{overflow-wrap:anywhere;font-weight:700}
.journal-row small{grid-column:1}
.journal-row button{grid-column:2;grid-row:1/3}

.quote-validity {
  margin: .25rem 0 .5rem;
  padding: .4rem .75rem;
  background: #e0eee5;
  color: #244c36;
  text-align: center;
  font-weight: 600;
}
.quote-editor .quote-customer {
  margin: 0 0 .5rem;
  padding: .4rem .55rem;
  gap: .4rem;
}
.quote-customer-tools {
  flex-wrap: nowrap;
  align-items: center;
  gap: .45rem;
  font-size: .875rem;
}
.quote-customer-tools [data-lookup-label]:not([hidden]) {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}
.quote-customer-tools .field { min-width: 0; min-height: 2.6rem; padding-inline: .5rem; }
.quote-customer-tools .button { min-height: 2.6rem; font-size: inherit; padding: .35rem .55rem; }
.quote-editor .price-inquiry { padding: 0; }
.quote-editor .price-results:empty, .quote-warning:empty { display: none; }
.quote-product-choice { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.quote-choice-label { color: #21543b; font-size: .875rem; }
.quote-paper { padding: 0; margin: .6rem 0; overflow: visible; }
.quote-document-meta, .quote-totals { padding: .65rem; }
.quote-lines-scroll { max-height: min(40vh, 22rem); overflow: auto; scroll-padding-top: 2.2rem; }
.quote-lines-scroll table { table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.quote-name-col { width: 38%; }
.quote-qty-col { width: 20%; }
.quote-lines-scroll :is(th,td) { vertical-align: top; padding: .4rem .2rem; overflow-wrap: anywhere; font-size: .9rem; }
.quote-lines-scroll th { position: sticky; top: 0; z-index: 1; background: #246046; color: #fff; }
.quote-lines-scroll :is(th,td):not(:first-child) { text-align: center; }
.quote-tax { margin-inline-start: .25em; font-size: .8rem; color: #41594d; }
.quote-paper :is(.quote-line-action,.quote-remove) {
  display: block; margin: .15rem auto 0; padding: .12rem .22rem; min-width: 0; max-width: 100%; min-height: 1.8rem; font-size: .8rem; line-height: 1.25;
}
.quote-totals { margin: 0; }
@media screen {
  .transfer-app:has(.quote-editor:not([hidden])) {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }
  .transfer-app:has(.quote-editor:not([hidden])) > header { flex: none; }
  main:has(.quote-editor:not([hidden])),
  #page-content:has(.quote-editor:not([hidden])) {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
  }
  main:has(.quote-editor:not([hidden])) { padding-bottom: env(safe-area-inset-bottom); }
  .quote-editor:not([hidden]) {
    flex: 0 1 auto;
    min-height: 0;
    max-height: 75%;
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }
  .quote-editor :is(.price-results,.finance-results) {
    max-height: min(24dvh, 13rem);
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }
  .quote-editor:not([hidden]) + .quote-review-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    overflow-anchor: none;
    padding-bottom: .5rem;
  }
  .transfer-app:has(.quote-editor) .transfer-appbar {
    min-height: 0;
    padding-block: calc(.2rem + env(safe-area-inset-top)) .2rem;
  }
  .transfer-app:has(.quote-editor) .company-logo-header { width: 2.75rem; }
  .transfer-app:has(.quote-editor) .transfer-brand h1 { font-size: 1rem; }
  main:has(.quote-editor) { padding-top: .25rem; }
  .quote-validity {
    margin: 0 0 .15rem;
    padding: 0;
    background: transparent;
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.4;
  }
  .quote-editor .quote-customer {
    padding: 0;
    margin: 0 0 .25rem;
    background: transparent;
    border: 0;
  }
  .quote-editor :is(.quote-customer-tools,.price-query-row,.quote-line) :is(.field,.button) {
    min-height: 2.5rem;
    padding-block: .2rem;
    line-height: 1.35;
  }
  .quote-editor .field { font-size: 1rem; }
  .quote-editor .price-status:empty { display: none; }
  .quote-editor .quote-product-choice { padding: .25rem .6rem; min-height: 2.5rem; font-size: .9375rem; }
  .quote-editor .quote-line:not([hidden]) {
    margin: .3rem 0 0;
    padding: .35rem .5rem;
    grid-template-columns: minmax(0,1fr) auto;
    gap: .25rem .5rem;
    align-items: end;
  }
  .quote-line :is(h3,.quote-unit-price) { grid-column: 1 / -1; line-height: 1.4; }
  .quote-editor .quote-line h3 { font-size: .9375rem; }
  .quote-editor .quote-line label { grid-template-columns: auto minmax(0,1fr); align-items: center; }
  .quote-paper { margin-block: .3rem; }
  .quote-totals { padding: .3rem .5rem; font-size: .9rem; line-height: 1.55; }
  .quote-lines-scroll :is(th,td) { padding-block: .25rem; line-height: 1.4; }
  .quote-actions { gap: .3rem; }
  .quote-actions .button { min-height: 2.6rem; padding-block: .25rem; font-size: .9rem; }
  .quote-document-meta[data-editable="true"] { display: none; }
}
@media print {
  .quote-lines-scroll { max-height: none; overflow: visible; }
  .quote-lines-scroll th { position: static; }
}

#app .transfer-capture-screen .capture-camera-trigger {
  background: #176443;
  border-color: #135438;
  color: #fff;
}
.transfer-review .qty-control, .transfer-totals {
  font-variant-numeric: tabular-nums;
  touch-action: manipulation;
}
.transfer-review .qty-control { flex-shrink: 0; }
.transfer-review .qty-control input { font-size: max(17px, 1rem); }
.transfer-review-screen, .transfer-capture-screen { overflow-anchor: none; }

.supplier-query { display:flex; align-items:center; gap:.5rem; }
.supplier-query input { flex:1; min-width:0; }
.supplier-results { max-height:15rem; overflow:auto; }
.supplier-results button { display:block; width:100%; text-align:start; padding:.55rem; }
.purchase-item-table { max-height:min(37vh,21rem); overflow:auto; overscroll-behavior:contain; }
.purchase-item-table table { width:100%; border-collapse:collapse; font-size:.9rem; }
.purchase-item-table :is(th,td) { padding:.4rem; border-bottom:1px solid #cedbd3; }
.purchase-item-table th { position:sticky; top:0; background:#246046; color:white; }
.purchase-item-table:has(tbody:empty) { display:none; }
.purchase-capture .capture-query-controls { display:flex; flex-wrap:nowrap; gap:.25rem; }
.purchase-capture .capture-query-controls input { flex:1; min-width:0; }
.purchase-capture .capture-query-controls button { flex:none; padding-inline:.35rem; }
.purchase-capture .capture-barcode-row { position:sticky; top:0; z-index:7; background:var(--portal-panel,#fff); }
.purchase-capture .capture-query-controls .capture-camera-trigger span { display:none; }
.purchase-supplier-summary { display:flex; flex-wrap:wrap; align-items:center; gap:.6rem; }

.purchase-supplier-step .supplier-new-row { display: flex; justify-content: flex-end; margin: 0 0 .65rem; }
#app .purchase-supplier-step .supplier-new, #app .purchase-supplier-step .supplier-new:hover { background: #a92f42; border-color: #a92f42; color: #fff; min-width: 4.5rem; min-height: 44px; }
.supplier-manual .dialog-actions { margin-block: .75rem; }
.transfer-content .capture-camera-trigger { background: #246343; border: 1px solid #20583b; color: white; border-radius: 9px; }
@media (max-width: 640px) {
  .transfer-content:has(.transfer-receipt) { min-height: 0; padding-block: .5rem; }
  .transfer-content:has(.transfer-receipt) .section-records { margin-block: .25rem; }
  .transfer-content .transfer-receipt { padding: .75rem .6rem .25rem; gap: .45rem; margin: 0 auto; }
  .transfer-content .transfer-receipt .receipt-check { width: 44px; height: 44px; margin: 0; }
  .transfer-content .transfer-receipt :is(h2,p) { margin-block: 0; }
  .transfer-content .transfer-receipt .button { min-height: 44px; margin-block: 0; }
  .transfer-content:has(.transfer-receipt) .report-back { margin-block: .5rem; }
}

.queue-count{display:inline-grid;place-items:center;min-width:1.65rem;min-height:1.65rem;padding:0 .25rem;border-radius:100%;background:#b91c1c;color:white;font-weight:700;margin-inline-start:.55rem}
.queue-count[hidden],.manual-product-heading[hidden],[data-new-item-note][hidden]{display:none}
.purchase-capture .capture-query-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}
.purchase-capture .capture-query-controls .field{grid-column:1/-1;width:100%}
.purchase-capture .capture-query-controls button{display:flex;align-items:center;justify-content:center;min-height:44px;width:100%;padding:.4rem;gap:.25rem}
.purchase-capture .capture-query-controls .capture-camera-trigger span{display:inline;font-size:.85rem}
.purchase-capture.manual-product .capture-query-controls button,.manual-product .capture-alternatives{display:none}
.manual-product-heading{display:flex;align-items:center;justify-content:space-between}

.database-storage dl{margin:.5rem 0 1rem}
.database-storage dl div{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;padding:.5rem 0;border-bottom:1px solid #ddd}
.database-storage dd{margin:0;font-weight:650;text-align:end;font-variant-numeric:tabular-nums}
.database-storage .storage-reading>strong{display:block}

.purchase-capture .capture-barcode-row { position:relative; top:auto; }
.purchase-capture .manual-name, .purchase-capture [hidden] { display:none !important; }
.purchase-capture.manual-product .manual-name:not([hidden]) { display:grid !important; }
.purchase-capture .purchase-entry-values { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:.65rem; align-items:end; margin-block:.45rem; }
.purchase-entry-values .capture-quantity-field, .purchase-entry-price { display:grid; min-width:0; gap:.25rem; margin:0; font-weight:700; font-size:1rem; }
.purchase-entry-values .field { width:100%; min-width:0; height:46px; min-height:46px; font-size:1.1rem; text-align:center; }
.purchase-entry-values .capture-mic { padding:.25rem; min-width:40px; }
.purchase-capture .capture-product-detail { margin:.25rem 0; padding:.2rem 0; }
.purchase-editor-dialog { width:min(92vw,28rem); max-height:85dvh; overflow:auto; overscroll-behavior:contain; padding:1rem; margin:auto; border:1px solid #b9ccbf; border-radius:14px; background:var(--portal-panel,#fff); color:inherit; }
.purchase-editor-dialog::backdrop { background:#10271fb3; }
.purchase-editor-dialog .capture-query-controls { display:block; }
.purchase-editor-dialog .manual-product-heading { gap:.5rem; margin-bottom:.5rem; }
.purchase-editor-dialog #purchase-product-photos { margin:.6rem 0; }
.purchase-editor-dialog #purchase-product-photos label { display:grid; gap:.2rem; }
.purchase-editor-dialog input[type=file] { width:100%; min-width:0; }
.purchase-editor-dialog summary,.purchase-items-disclosure summary { min-height:44px; align-content:center; cursor:pointer; font-weight:650; }
.purchase-items-disclosure:has(tbody:empty) { display:none; }
.purchase-items-disclosure .purchase-item-table { max-height:min(20dvh,9rem); }
.purchase-capture-screen .purchase-capture-footer { position:static; margin-top:.5rem; padding:.45rem 0; }

.purchase-capture .capture-query-controls button { height:44px; min-height:44px; white-space:nowrap; }
.purchase-capture .purchase-entry-values { grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) auto; }
.purchase-inline-save { min-height:46px; padding-inline:.8rem; }
.purchase-capture:not(.manual-product) .capture-add,.purchase-capture.manual-product .purchase-inline-save { display:none; }
.purchase-editor-dialog .purchase-entry-values { grid-template-columns:repeat(2,minmax(0,1fr)); }
.purchase-capture #purchase-product-photos summary { cursor:pointer; min-height:44px; align-content:center; }

/* Offer inventory and daily commission summaries */
.offer-view,.offer-intro,.offer-notice{width:min(100%,46rem);margin-inline:auto}
.offer-intro,.offer-notice,.offer-card{border:1px solid #dedbd4;border-radius:1rem;background:#fff;padding:1rem 1.2rem}
.offer-intro h2,.offer-card h3,.offer-notice p{margin:0}
.offer-intro p,.offer-lead{line-height:1.75}
.offer-card{margin-block:.7rem;overflow-wrap:anywhere}
.offer-card h3{font-size:1.1rem;line-height:1.6}
.offer-card dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;margin:.6rem 0}
.offer-card dt,.offer-code,.offer-date-note{color:#514d51;font-size:.9rem}
.offer-employee .offer-card{margin-block:.4rem;padding:.55rem .8rem}
.offer-employee .offer-card h3{font-size:1rem;line-height:1.4}
.offer-employee .offer-code{margin:.15rem 0 0;line-height:1.45}
.offer-employee .offer-code span{display:inline-block}
.offer-card dd{margin:0;font-weight:700}
#app .sales-menu .goal-tile{position:relative;padding-block:.4rem;display:grid;align-content:center;justify-items:center;gap:.15rem;overflow:hidden;isolation:isolate;border-color:#cad8d3;background:#eef4f1;color:#123d31}
#app .sales-menu .goal-tile:hover,#app .sales-menu .goal-tile:focus-visible{background:#e5eee9;color:#123d31}
.goal-strips{position:absolute;inset:0;z-index:-1;display:flex;gap:2px;pointer-events:none}
.goal-strip{flex:1;background:linear-gradient(to top,var(--fill) max(3px,var(--level)),var(--track) max(3px,var(--level)))}
.goal-strip.daily{--fill:#67b5a1;--track:#e1f2ed}.goal-strip.monthly{--fill:#ecc675;--track:#f8efd8}.goal-strip.annual{--fill:#9bb8dd;--track:#e9eff8}.goal-strip.achieved{--fill:#78bc8c}
.goal-icon strong{display:block;font-size:inherit;line-height:1.16}.goal-tile small{font-size:.85rem;max-width:100%;padding:0 .35rem}
.goal-head h2,.goal-card h3,.goal-history h3{margin:0}.goal-head p{color:#46594f;margin:.25rem 0 .9rem}
.goal-filters,.goal-editor form{display:flex;align-items:end;flex-wrap:wrap;gap:.65rem;margin-block:.75rem}
.goal-filters label,.goal-editor label{display:grid;gap:.25rem;flex:1 1 8rem;font-size:.94rem}.goal-filters strong{align-self:center;flex:1}
.goal-period{display:grid;gap:.25rem;max-width:20rem}
.goal-legend{display:flex;flex-wrap:wrap;gap:1rem;align-items:center;margin:1.25rem 0 .65rem;font-size:.94rem}
.goal-legend span{display:flex;gap:.4rem;align-items:center}
.goal-legend span::before{content:'';width:1.4rem;border-top:3px dashed #087450}
.goal-legend span+span::before{width:.85rem;height:.85rem;border:0;border-radius:.25rem;background:#efb637}
.goal-cards,.goal-overview{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:.8rem}
.goal-card,.goal-history,.goal-editor{padding:1rem;background:#fff;border:1px solid #cad7cf;border-radius:.8rem}
.goal-card{--accent:#319282;min-width:0;border-top:4px solid var(--accent);background:linear-gradient(160deg,#f0faf6,white 47%)}
.goal-card:nth-child(3n+2){--accent:#dc9251;background:linear-gradient(160deg,#fff6e8,white 47%)}
.goal-card:nth-child(3n){--accent:#9380ba;background:linear-gradient(160deg,#f6f1fb,white 47%)}
.goal-card h3{font-size:1.08rem;line-height:1.5}
.goal-plot{position:relative;height:9rem;display:flex;justify-content:center;align-items:end;border-bottom:1px solid #aabcb0;margin-top:1rem;background:repeating-linear-gradient(to top,#dfebe7 0 1px,transparent 1px 25%)}
.goal-column.sold{width:26%;max-width:4.25rem;border-radius:.5rem .5rem 0 0;background:linear-gradient(0deg,#eb9a23,#ffda65)}
.goal-threshold{position:absolute;inset-inline:0;height:0;border-top:3px dashed #087450}
.goal-card.goal-achieved{border-color:#8bc7ab;border-top-color:#188258;background:linear-gradient(155deg,#e1f6e9,white 55%)}
.goal-result span{color:#947020}
.goal-card dl{margin:.75rem 0}.goal-card dl div{display:flex;justify-content:space-between;flex-wrap:wrap;gap:.25rem}.goal-card dd{margin:0;font-weight:700}
.goal-card .goal-result{padding:.35rem .55rem;border-radius:.4rem;margin:0;color:#344e43;background:#f3f6f4;font-size:.94rem}
.goal-card.goal-achieved .goal-result{color:#126442;background:#def5e7}
.goal-history,.goal-editor{margin-top:.9rem}.goal-history table{width:100%;border-collapse:collapse;text-align:start}.goal-history th,.goal-history td{text-align:start;padding:.6rem .25rem;border-bottom:1px solid #e5ebe7}.goal-editor summary{cursor:pointer}
@media(max-width:620px){.goal-cards,.goal-overview{grid-template-columns:1fr}.goal-card{padding:.85rem}.goal-plot{height:7rem}.goal-card dd{overflow-wrap:anywhere}}
.offer-nearest{border-inline-start:4px solid #a32838}
.offer-status{display:block;font-size:.9rem;font-weight:700;margin-bottom:.3rem}
.offer-nearest .offer-status{color:#9d2334}
.offer-notice{margin-block:.75rem;text-align:start}
.offer-notice-earned{position:relative;overflow:hidden;border-color:#a0c6b2;background:#f2faf5;padding-inline-end:4rem}
.offer-notice-earned p{color:#1f563c;font-weight:700}
.offer-notice-earned::after{
  content:"";position:absolute;inset-inline-end:.8rem;top:50%;width:2.6rem;height:3.5rem;pointer-events:none;
  background:
    radial-gradient(circle at 23% 75%,#8cc1aa 0 4px,transparent 5px),
    radial-gradient(circle at 75% 55%,#e4bb68 0 5px,transparent 6px),
    radial-gradient(circle at 30% 25%,#ba88ad 0 3px,transparent 4px),
    radial-gradient(circle at 86% 12%,#83b5be 0 2px,transparent 3px);
  transform:translateY(-50%);
}
@media(prefers-reduced-motion:no-preference){
  .offer-notice-earned::after{animation:offer-bubbles-rise 1.2s ease-out 2}
  @keyframes offer-bubbles-rise{
    0%{transform:translateY(-25%) scale(.82);opacity:0}
    30%{opacity:1}
    100%{transform:translateY(-65%) scale(1.05);opacity:0}
  }
}
.offer-select{display:grid;gap:.4rem}
.offer-view summary{padding-block:.8rem;cursor:pointer}

.cash-actions,.cash-doc{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1rem}
.cashbox{max-width:48rem;margin:auto;padding-block:.75rem 2rem}
.cashbox [hidden]{display:none!important}
.cashbox [data-box-back]{margin-bottom:.75rem}
.cashbox fieldset{min-width:0;border:0;padding:0;margin:0}
.cashbox label{display:grid;gap:.3rem;font-size:.94rem}
.cash-section,.cash-opening,.cash-closing{padding:1rem;margin-bottom:.75rem;border:1px solid #cbd7d0;border-radius:.8rem;background:#fff}
.cash-section h2,.cash-scan-dialog h2{font-size:1.08rem;margin:0 0 .7rem}
.cash-sales h2,.cash-sales label{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:.7rem}
.cash-sales output{color:#126346;text-align:end;overflow-wrap:anywhere}
.cash-opening,.cash-closing{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap;background:#edf6f0}
.cash-opening strong,.cash-closing strong{font-size:1.35rem;color:#126346}
.cash-opening small{margin-inline-start:auto}
.cash-network,.cash-line{display:grid;gap:.65rem;grid-template-columns:repeat(3,minmax(0,1fr))}
.cash-line{grid-template-columns:repeat(2,minmax(0,1fr));border-bottom:1px solid #e1e8e3;padding-bottom:.7rem;margin-bottom:.7rem}
.cashbox [data-lines="transfers"] .cash-line{grid-template-columns:minmax(0,12rem) minmax(0,8rem)}
.cash-transfer-total{display:flex;align-items:baseline;gap:.45rem;color:#174b36;margin:.4rem 0 .7rem}
.cash-line .text-button,.cash-doc .text-button{justify-self:start;padding:.35rem}
.cash-doc{justify-content:space-between;margin:.25rem 0}
.cashbox [data-seed-area]{display:grid;gap:.6rem}
.cash-scan-dialog{width:min(94vw,36rem);max-height:90dvh;overflow:auto;border:0;border-radius:1rem;padding:1rem}
.cash-scan-dialog::backdrop{background:#12281bcc}
.cash-scan-dialog canvas{display:block;max-width:100%;max-height:55dvh;width:auto;height:auto;touch-action:none;margin:0 auto .7rem}
.cashbox .field{min-width:0}
.cash-directory{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(13rem,100%),1fr));gap:.55rem;margin-bottom:1rem}
.cash-account{display:grid;gap:.25rem;text-align:start;background:white;color:#174530;padding:.8rem;border:1px solid #afc9bb;border-radius:.6rem}
.cash-account span{font-size:.87rem;color:#43554b}
.cash-sign canvas{display:block;width:min(100%,34rem);height:auto;touch-action:none;border:1px solid #a8bbaf;border-radius:.65rem;background:#fff;margin-bottom:.8rem}

.cash-scan-pages{display:grid;gap:.65rem;margin-block:.5rem}
.cash-scan-pages>div{display:flex;align-items:center;gap:.8rem}
.cash-scan-pages img{max-width:55%;max-height:32dvh;object-fit:contain;border:1px solid #cad7d0;border-radius:.3rem}

#app .cashbox .button,#app .cash-sign .button{min-height:48px;font-size:1rem;padding:.65rem 1.1rem}
#app .cashbox .cash-new{min-height:56px;padding:.8rem 1.6rem;font-size:1.15rem;font-weight:700;background:#125438;color:white;border-color:#125438}
#app .cashbox .cash-new:hover:not(:disabled){background:#0a402a}
#app .cashbox .cash-new:disabled{background:#526e61;color:#fff;opacity:1}
#app .cashbox .cash-new:focus-visible{outline:3px solid #21855b;outline-offset:3px}
@media(max-width:600px){#app .cashbox .cash-new{width:100%}}

.cash-attach{display:flex;align-items:center;flex-wrap:wrap;gap:.55rem;margin-block:.55rem}
.cash-line .cash-attach{grid-column:1/-1}
.cash-attach [data-options]{width:100%}
.cash-attach [data-attachment-status]{font-size:.95rem;color:#174b36}
#app .cash-doc .text-button{font-size:1rem;color:#15533d}

/* Keep phone keyboards from magnifying the page when compact inputs receive focus. */
@media screen and (max-width: 760px), screen and (pointer: coarse) {
  .field, .search-input, .filter-select, .qty-control input,
  .finance-controls :is(select, input), .finance-search input,
  .receipt-preview :is(input, textarea) {
    font-size: max(16px, 1rem);
  }
  .cashbox label, .cash-line > *, .cash-actions > * {
    min-inline-size: 0;
    max-inline-size: 100%;
  }
  .cash-attach [data-options]:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr));
    gap: .5rem;
  }
  #app .cash-attach [data-options] .button {
    padding-inline: .5rem;
    white-space: normal;
  }
  .cash-network {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 5rem), 1fr));
  }
}
@media screen and (max-width: 370px) {
  .cash-line,.cashbox [data-lines="transfers"] .cash-line { grid-template-columns: minmax(0, 1fr); }
}
.cash-scan-dialog {
  --scan-inset-x: max(.5rem, env(safe-area-inset-left), env(safe-area-inset-right));
  --scan-inset-y: max(.5rem, env(safe-area-inset-top), env(safe-area-inset-bottom));
  width: min(36rem, calc(100% - 2 * var(--scan-inset-x)));
  max-height: calc(100dvh - 2 * var(--scan-inset-y));
  margin: auto;
  padding: clamp(.65rem, 2vw, 1rem);
  overscroll-behavior: contain;
}
.cash-scan-dialog .cash-actions { gap: .5rem; }
.cash-scan-dialog [data-hint] { margin: 0 0 .5rem; }
.cash-scan-dialog canvas {
  max-height: min(55dvh, max(6rem, calc(100dvh - 2 * var(--scan-inset-y) - 10rem)));
}
.cash-scan-dialog .button, .cash-scan-dialog .text-button {
  min-height: 44px;
  white-space: normal;
}

.cash-menu,.cash-voucher-fields{display:grid;gap:.75rem}
.cash-menu .button,.cashbox [data-new]{width:100%}
.cashbox [data-new]{margin-bottom:.75rem}
.cash-ledger{margin:0}
.cash-ledger>div{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;padding:.45rem 0}
.cash-ledger dt,.cash-voucher-fields [data-voucher-filename]{overflow-wrap:anywhere}
.cash-ledger dd{margin:0;white-space:nowrap}
.cash-ledger>div:last-child{border-top:1px solid #cbd7d0;font-weight:700}

/* Daily cashbox worksheet. All sections share the same four column tracks. */
.day-sheet {
  --day-tracks: minmax(0,1.45fr) minmax(0,1fr) minmax(3rem,.52fr) minmax(3rem,.52fr);
  --day-rule: #c5cfc8;
  border: 1px solid var(--day-rule);
  border-radius: .55rem;
  overflow: hidden;
  margin-block-end: .45rem;
}
.day-summary.cash-opening {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 .4rem;
  padding: .45rem .75rem;
  gap: .5rem;
}
.day-summary>div {display:flex;align-items:baseline;justify-content:space-between;gap:.35rem;min-width:0}
.day-summary>div+div {border-inline-start:1px solid #b7d2c1;padding-inline-start:.65rem}
.day-summary strong {font-size:1rem;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.day-grid,.day-network {display:grid;grid-template-columns:var(--day-tracks);gap:1px;background:var(--day-rule)}
.day-sheet section {padding:0;margin:0;border:0}
.day-heading {background:#d9e9ba;color:#203c26;align-items:center;font-weight:700;min-height:1.65rem}
.day-heading>* {padding:.08rem .5rem}
.day-action-heading {grid-column:span 2;text-align:center}
.day-sheet .day-label {display:flex;align-items:center;padding:.25rem .55rem;background:#e4eaf9}
.day-input,.day-select,.day-note input {
  width:100%;min-width:0;max-width:100%;box-sizing:border-box;background:#edf2ff;color:#172d45;
  padding:.2rem .45rem;border:0;border-radius:0;font:inherit;font-size:1rem;min-height:2.05rem;
}
.day-input {text-align:center;font-variant-numeric:tabular-nums}
.day-select:disabled,.day-input:read-only,.day-note input:read-only {opacity:1;-webkit-text-fill-color:#233852}
.day-input:focus-visible,.day-select:focus-visible,.day-note input:focus-visible,.day-button:focus-visible {outline:2px solid #1b5c75;outline-offset:-2px}
.day-button {
  appearance:none;display:block;width:100%;border:0;border-radius:0;min-width:0;min-height:2rem;
  font:inherit;font-size:.95rem;font-weight:650;cursor:pointer;padding:.12rem .3rem;color:#223524;
}
.day-edit {background:#ffe268}.day-save {background:#337843;color:#fff}.day-attach {background:#abd37a}
.day-add {background:#ffc57b;grid-column:1;grid-row:1}.day-remove {background:#fff2e8;color:#742e14;grid-column:1/3;grid-row:2}
.day-network-line,.day-network-actions {display:grid;grid-template-columns:subgrid;grid-column:1/-1;gap:1px;background:#f5f7f2}
.day-network-actions .day-attach {grid-column:3}
.day-delete-doc {background:#b4232b;color:#fff}
.day-delete-doc:disabled {cursor:default}
.day-doc-dialog label {display:grid;gap:.3rem;margin-bottom:.8rem}
.day-footer .day-attach {grid-column:2;grid-row:1}
.day-footer .day-delete-doc {grid-column:3/5;grid-row:1}
.day-entry:not(:last-child) .day-add {display:none}
.day-entry:not(:last-child) .day-footer {background:#f5f7f2}
.day-entry+.day-entry {border-top:1px solid var(--day-rule)}
.cashbox label.day-note {display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,2.04fr);align-items:center;gap:1px;background:#e4eaf9}
.day-note span {padding-inline:.5rem}
.day-documents {margin:.4rem 0;color:#27523e}.day-documents summary {cursor:pointer;width:fit-content}
.day-doc-dialog {margin:auto;border:1px solid #bad2bb;border-radius:.8rem;padding:1.1rem;width:min(90vw,23rem);background:white;color:#153924}
.day-doc-dialog::backdrop {background:#14291eb3}.day-doc-dialog h2 {margin:0 0 .8rem;font-size:1.1rem}
.day-doc-dialog>div {display:flex;gap:.5rem;margin-bottom:.6rem}
@media(max-width:520px){
  .day-summary>div {display:grid;gap:0}
  .day-summary span,.day-label,.day-heading {font-size:.86rem}
  .day-sheet {--day-tracks:minmax(0,1.45fr) minmax(0,1fr) 2.9rem 2.9rem}
  .day-sheet .day-label,.day-heading>* {padding-inline:.28rem}
}

.owner-tabs,.owner-pages,.owner-row-controls{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}
.owner-search{display:flex;align-items:end;gap:.75rem;flex-wrap:wrap;margin:1.2rem 0}
.owner-search label{display:grid;gap:.3rem;flex:1 1 12rem}
.owner-search label[hidden]{display:none}
.owner-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1rem;align-items:center;padding:1rem 0;border-top:1px solid #ddd}
.owner-row strong,.owner-row small{display:block;overflow-wrap:anywhere}
.owner-row small{margin-top:.3rem;color:#555}
.owner-row dl{grid-column:1/-1;margin:0;display:grid;grid-template-columns:auto 1fr;gap:.4rem 1rem}
.owner-row dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.owner-pages{margin-top:1rem}
@media(max-width:560px){.owner-row{grid-template-columns:1fr}}

.owner-row-controls[hidden]{display:none}
/* Compact member directory and profession editor */
#members-content [hidden]{display:none!important}
.jobs-tools{display:flex;align-items:end;gap:.8rem;flex-wrap:wrap;margin-block:0 1.1rem}
.jobs-tools label,.perm-controls label{display:grid;gap:.27rem;min-width:0;font-size:.9rem;font-weight:650}
.jobs-tools label{flex:1 1 12rem}.jobs-tools .button{min-height:44px}
.jobs-dialog{direction:rtl;--perm-ink:#2d2832;--perm-muted:#625c68;--perm-line:#e0dbe3;--perm-tint:#f6f4f7;width:min(54rem,96vw);max-width:100%;height:min(54rem,92dvh);max-height:100dvh;padding:0;margin:auto;border:1px solid var(--perm-line);border-radius:1.15rem;background:white;color:var(--perm-ink);font-family:var(--font);box-shadow:0 1.3rem 5rem #21172542}
.jobs-dialog[open]{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;overflow:hidden}
.jobs-dialog::backdrop{background:rgb(36 30 38 / 52%)}
.perm-heading,.perm-footer,.perm-section>header{display:flex;align-items:center;justify-content:space-between;gap:.75rem}
.perm-heading{padding:1rem 1.5rem .8rem;border-block-start:4px solid #af203b}
.perm-caption,.perm-section>header span,.perm-footer span,.perm-search>[role=status]{color:var(--perm-muted);font-size:.875rem}
.perm-heading h2{font-size:1.5rem;line-height:1.45}
.perm-close,.perm-next{background:white;padding:.35rem .8rem;border:1px solid var(--perm-line);border-radius:.55rem;min-height:44px;font-size:.9rem}
.perm-controls{display:grid;gap:.6rem;padding:.2rem 1.5rem .85rem;border-block-end:1px solid var(--perm-line)}
.perm-fields{display:grid;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;gap:.75rem}
.perm-search{display:flex;align-items:end;gap:.6rem}.perm-search label{flex:1}.perm-search>[role=status]{align-self:center}.perm-search>[role=status]:empty{display:none}
.jobs-dialog select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='m2 3 5 5 5-5' fill='none' stroke='%235b5261' stroke-width='1.6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:left .65rem center;padding-inline-end:1.95rem}
.perm-controls .field{min-width:0;width:100%;min-height:44px;border:1px solid #c6c0c9;border-radius:.55rem;background-color:#fff;font-size:1rem}
.perm-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;background:var(--perm-tint);padding:1rem 1.5rem;scrollbar-gutter:stable}
.perm-section{background:white;border:1px solid var(--perm-line);border-radius:.75rem;margin:0 0 .9rem;overflow:hidden}
.perm-section>header{background:#faf8fa;border-block-end:1px solid var(--perm-line);padding:.6rem 1rem}
.perm-section h3{font-size:1.02rem;margin:0}.perm-section>header span{font-variant-numeric:tabular-nums}
.perm-row{display:flex;align-items:center;justify-content:space-between;gap:.7rem;padding:.35rem .95rem}
.perm-row+.perm-row{border-block-start:1px solid #eeeaf0}
.perm-choice{display:flex;align-items:center;gap:.75rem;min-height:44px;flex:1;min-width:0;cursor:pointer}
.perm-choice input{flex:none;accent-color:#473749;width:1.22rem;height:1.22rem;margin:0}
.perm-choice span{font-size:1rem;line-height:1.5}.perm-choice small{display:block;color:var(--perm-muted);font-size:.81rem}.perm-choice small:empty{display:none}
.perm-mode{width:8rem;flex:none;min-height:42px;padding:.35rem .55rem;border-radius:.5rem;border:1px solid var(--perm-line);background-color:#fff;color:var(--perm-ink);font-size:.875rem}
.perm-row[data-source=allow] .perm-mode{background-color:#eaf4ef;color:#24543c;border-color:#aacdb8}
.perm-row[data-source=deny] .perm-mode{background-color:#fff0ef;color:#8b3536;border-color:#e4bcb8}
.perm-pending .perm-choice small{color:#8a5214}
.perm-match{background:#fff4d1;box-shadow:inset -3px 0 #986a10}
.perm-protected ul{display:flex;flex-wrap:wrap;gap:.45rem 1.25rem;margin:0;padding:.7rem 1rem;list-style:none;color:var(--perm-muted);font-size:.875rem}
.perm-footer{padding:.7rem 1.5rem;border-block-start:1px solid var(--perm-line);background:white}
.perm-footer>div{display:grid}.perm-footer strong{font-size:1rem}.perm-footer .button{min-height:44px}.perm-footer [role=alert]{color:#9a293c;font-size:.9rem}.perm-footer [role=alert]:empty{display:none}
@media(max-width:600px){.jobs-dialog{inset:0;width:100%;height:100dvh;max-height:100dvh;border-radius:0}.perm-heading,.perm-controls,.perm-footer,.perm-scroll{padding-inline:.85rem}.perm-footer{padding-block-end:max(.65rem,env(safe-area-inset-bottom))}.perm-heading{padding-block-start:max(.65rem,env(safe-area-inset-top))}.perm-heading h2{font-size:1.25rem}.perm-section>header,.perm-row{padding-inline:.65rem}.perm-fields{grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem}.perm-fields>label:nth-child(3){grid-column:1/-1}.perm-mode{width:7rem}.perm-choice{gap:.5rem}.perm-footer .button{padding-inline:.65rem}}
@media(max-height:530px){.jobs-dialog[open]{display:block;overflow:auto}.perm-scroll{overflow:visible}.perm-footer{position:sticky;bottom:0}}
.member-summary-identity{display:flex;align-items:baseline;gap:.15rem .7rem;flex-wrap:wrap}.member-summary-identity h3 .member-number{display:inline}.job-label{color:#703d60;font-size:.9rem;font-weight:650}.member-summary-identity p{margin:0}
.member-summary-row{padding:.65rem .85rem}.member-summary-controls{flex-wrap:wrap}.member-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(15rem,100%),1fr));gap:.65rem .85rem}.member-grid .member-full-width{grid-column:auto}
@media(max-width:600px){.member-summary-row{align-items:flex-start;flex-direction:column}.member-summary-controls{flex-direction:row;align-items:center;gap:.45rem}.jobs-tools label{flex-basis:9rem}}

.odoo-sync {display:grid;gap:1rem;padding:1rem}
.odoo-sync .owner-tabs {padding-bottom:.8rem;border-bottom:1px solid #e4e4e4}
.odoo-sync .owner-row-controls label {display:inline-flex;align-items:center;gap:.5rem}
.odoo-sync .status-pill {display:inline-block;margin-block:.35rem;overflow-wrap:anywhere}
.odoo-sync .field-hint:empty,.odoo-sync [role=status]:empty {display:none}
.odoo-sync [data-orders]:not([hidden]){display:grid;gap:1rem}
.odoo-sync [data-reports],.review-card{min-width:0}
.review-card h2,.review-card h3{margin-block:.9rem .5rem}
.review-card .owner-row-controls{margin-block:.7rem 1rem}
.review-table-scroll{max-width:100%;overflow:auto}
.review-table{width:100%;border-collapse:collapse;text-align:start;font-size:.9rem}
.review-table th,.review-table td{padding:.6rem .75rem;text-align:start;border-bottom:1px solid #d6e4de;min-width:7rem}
.review-table th{background:#e8f2ee;color:#18433d}
.review-table tbody tr:nth-child(even){background:#f6f9f7}
.portal-services .portal-service-inventory{background:#deeae4;color:#244638;border-color:#a7c3b5}
.stock-panel{max-width:54rem;margin-inline:auto;display:grid;gap:1rem}
.stock-panel h3,.stock-panel p{margin-block:.4rem}
.stock-panel form,.stock-panel section:not(.capture-panel),.stock-panel [data-found]{display:grid;gap:.75rem}
.stock-panel form:not(#barcode-entry) label:not(.stock-people label){display:grid;gap:.3rem}
.stock-panel form:not(#barcode-entry) input:not([type=checkbox]),.stock-panel select,.stock-panel [data-found] input{border:1px solid #9aaba1;border-radius:.5rem;min-height:2.8rem;padding:.45rem .65rem;font:inherit;width:100%;box-sizing:border-box}
.stock-panel fieldset{border:1px solid #bbc9c1;border-radius:.65rem;min-width:0}
.stock-people{display:grid;grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));gap:.4rem;max-height:18rem;overflow:auto}
.stock-people label{display:flex;align-items:center;gap:.5rem;padding:.35rem}
.stock-actions{display:flex;gap:.55rem;flex-wrap:wrap}.stock-records{padding:0;list-style:none}
.stock-record,.stock-notice{display:grid;gap:.35rem;background:#f3f8f5;border:1px solid #afc2b6;border-radius:.65rem;padding:.85rem;width:100%;text-align:start;font:inherit;color:#223d30;cursor:pointer;margin-block:.35rem}
.stock-panel canvas{width:min(100%,32rem);height:auto;border:1px solid #75897b;border-radius:.5rem;touch-action:none;background:white}
.stock-panel .stock-message:empty{display:none}

.stock-confirm{width:min(28rem,calc(100% - 2rem));max-height:85vh;overflow:auto;border:1px solid #acbdb4;border-radius:1rem;padding:1.25rem;color:#203b30}.stock-confirm::backdrop{background:rgb(0 0 0 / .5)}

.perm-subheading { margin: .8rem 1rem .3rem; font-size: 1rem; }
.perm-row.perm-child { margin-inline-start: 1rem; padding-inline-start: .65rem; border-inline-start: 2px solid #b8cfc9; }

.refresh-directions,.refresh-panel,.refresh-form { display:grid; gap:1rem; max-width:46rem; margin-inline:auto; width:100%; }
.refresh-directions .button,.refresh-submit { width:100%; min-height:3.4rem; font-size:1.13rem; }
.refresh-panel,.refresh-directions { padding:1rem; }
.refresh-panel h2 { margin:0; } .refresh-panel [data-directions] { justify-self:start; }
.refresh-form fieldset { display:grid; gap:.6rem; border:1px solid #c9d7d2; border-radius:.75rem; padding:1rem; }
.refresh-form fieldset label { display:flex; align-items:center; gap:.6rem; min-height:2.7rem; }
.refresh-form label small { color:#47564e; } .refresh-form [data-barcode-rows]>div { display:flex; gap:.5rem; align-items:end; margin-block:.5rem; }
.refresh-form [data-barcode-rows] label { flex:1; } .staff-work { padding:1rem; }

.stock-entry{display:flex;align-items:center;justify-content:space-between;gap:1rem;border-block-end:1px solid #d7e1da;padding:.65rem 0}.stock-entry small{display:block}.stock-panel .stock-danger{color:#912c24;border-color:#b86a62}

.stock-session-row{display:flex;align-items:center;gap:.65rem}.stock-session-row .stock-record{flex:1;min-width:0}.stock-session-row .stock-danger{flex:none}

.stock-delete-options{display:grid;gap:.65rem}.stock-panel button.stock-danger{background:#fff4f1;color:#82251d;border:1px solid #ae6159;min-height:44px;font-weight:700}.stock-panel h3[tabindex],.stock-panel .stock-message{scroll-margin-block-start:6rem}

.portal-services .portal-service-suggestions{background:#fff0cb;color:#503a13;border-color:#dabe78}
.transfer-suggestions .suggest-filters,.suggest-selection,.suggest-sheet{display:flex;align-items:end;gap:.8rem;flex-wrap:wrap;margin-block:1rem}
.suggest-filters label{display:grid;gap:.3rem;flex:1 1 12rem}
.transfer-suggestions .master-scroll{overflow:auto}
.transfer-suggestions .review-table{min-width:52rem;width:100%}
.transfer-suggestions input[type=number]{width:5.25rem;min-height:2.5rem;padding:.4rem;font:inherit}
.transfer-suggestions input[type=checkbox]{width:1.25rem;height:1.25rem;accent-color:#28694c}
.transfer-suggestions [hidden]{display:none}
.suggest-selection,.suggest-sheet{align-items:center}

@media print {
  #app table { max-width: 100%; font-variant-numeric: tabular-nums; }
  #app table thead { display: table-header-group; }
  #app table tr { break-inside: avoid; }
  #app table bdi[dir="ltr"] { unicode-bidi: isolate; }
  .rep-aging-scroll, .quote-lines-scroll, .purchase-item-table { overflow: visible; max-height: none; }
  .rep-aging-scroll table, .quote-lines-scroll table, .purchase-item-table table {
    width: 100%; min-width: 0; max-width: 100%; border-collapse: collapse;
    font-variant-numeric: tabular-nums;
  }
  .rep-aging-scroll th, .rep-aging-scroll td, .quote-lines-scroll :is(th,td), .purchase-item-table :is(th,td) {
    box-sizing: border-box; padding: 1.5mm; white-space: normal; overflow-wrap: anywhere;
  }
  .finance-report .rep-aging-scroll td:first-child, .rep-aging-scroll tbody th { min-width: 0; }
}

.portal-services .portal-service-pos{background:#64507e;color:#fff;border-color:#64507e}

.purchase-order-search{display:flex;align-items:end;gap:.6rem;flex-wrap:wrap;margin-block:.85rem}
.purchase-order-search label{display:grid;gap:.4rem;flex:1 1 16rem;min-width:0}

.stock-panel #capture-product-detail:not([hidden]) {
  display: grid;
  gap: .15rem;
  padding: .6rem .8rem;
  background: #eff7f2;
  border-inline-start: .25rem solid #26704c;
}
.stock-panel #capture-product-detail strong { font-size: .9rem; }
.stock-panel .capture-product-name { font-size: 1.125rem; line-height: 1.55; white-space: normal; overflow-wrap: anywhere; }
.stock-panel .capture-product-thumbnail, .stock-panel .capture-product-price { display: none; }
.stock-panel [data-device-state] { color: #254c38; font-weight: 600; }
