@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;450;500;600;700&display=swap');
:root{--bg:#f4f7fc;--paper:#fff;--ink:#152c49;--muted:#728198;--line:#e1e7f0;--green:#102c50;--mint:#eaf0fa;--gold:#7894bd;--sidebar:254px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'IBM Plex Sans Arabic',Tahoma,Arial,sans-serif;font-size:17px}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:inherit;text-decoration:none}button{border:0;background:none;color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #7894bd;outline-offset:4px}aside{width:var(--sidebar);position:fixed;right:0;inset-block:0;background:#fff;border-left:1px solid var(--line);display:flex;flex-direction:column;padding:30px 20px 0;z-index:20}.brand{display:flex;gap:12px;align-items:center;font-family:Arial,sans-serif;font-size:20px;letter-spacing:1.5px;font-weight:700;direction:ltr;justify-content:center}.brand small{display:block;font-family:'IBM Plex Sans Arabic',Tahoma,sans-serif;font-size:14px;letter-spacing:0;color:var(--muted);margin-top:6px;text-align:right}.brand-symbol{position:relative;background:var(--green);color:#fff;border-radius:11px;padding:15px 9px;font-size:20px;letter-spacing:-1px}.brand-symbol span{position:absolute;color:#7894bd;top:-8px;right:-6px;font-size:25px}.workspace{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:9px;padding:13px 10px;margin:35px 0 30px;font-size:15px;font-weight:600}.workspace small,.profile small{display:block;color:var(--muted);font-size:13px;font-weight:400;margin-top:3px}.factory-icon{font-size:22px;background:var(--bg);padding:3px 9px;border-radius:7px}.status-dot{background:#537bb5;width:6px;height:6px;border-radius:50%;margin-right:auto}.nav-label{font-size:13px;color:#8a97ab;margin:0 15px 12px}nav{display:flex;flex-direction:column;gap:5px}nav a{padding:11px 15px;border-radius:7px;color:#6a7a92;display:flex;gap:13px;align-items:center;font-size:16px}nav a.active{color:var(--green);background:var(--mint);font-weight:600}nav a:hover{background:#f0f4fc}.nav-icon{width:19px;text-align:center;font-size:21px;line-height:20px}.nav-badge{margin-right:auto;font-size:13px;padding:1px 6px;border-radius:4px;background:#dbe6f8}.sidebar-bottom{margin-top:auto}.sidebar-bottom>button{padding:18px 15px;color:var(--muted);display:flex;gap:12px;font-size:15px}.profile{display:flex;align-items:center;gap:10px;padding:20px 0;border-top:1px solid var(--line);font-size:15px}.profile>button{margin-right:auto}.avatar{background:#eaf0f9;border:1px solid #d8e1f0;width:35px;height:35px;border-radius:50%;display:grid;place-items:center;font-size:14px;font-weight:600}.shell{margin-right:var(--sidebar)}header{height:81px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 38px;background:#ffffffb8}header>div{display:flex;align-items:center;gap:17px}.breadcrumb{font-size:14px;color:var(--muted)}.breadcrumb span{margin:0 12px;color:#b9c5d5}.breadcrumb strong{font-weight:500;color:var(--ink)}.icon-button{font-size:20px;color:var(--muted);padding:5px}.user-pill{background:white;border:1px solid var(--line);border-radius:6px;padding:7px 12px;font-size:14px;display:flex;gap:18px}.connection{font-size:13px;color:#536c91}.connection.live{color:var(--green)}#menu-toggle{display:none}main{max-width:1550px;margin:auto;padding:34px 38px;min-height:calc(100vh - 137px)}.eyebrow{font-size:13px;color:var(--muted);letter-spacing:1px}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px;gap:12px}.page-heading h1{font-size:29px;font-weight:600;line-height:1.4;margin:5px 0 8px;letter-spacing:-.6px}.page-heading p{font-size:15px;color:var(--muted);margin:0}.date-chip{display:flex;gap:10px;font-size:14px;align-items:center;border:1px solid var(--line);background:white;padding:8px 12px;border-radius:6px}.notice{padding:9px 13px;background:#f0f4fc;border:1px solid #dce6f7;border-radius:6px;display:flex;justify-content:space-between;align-items:center;color:#526e97;font-size:14px;margin-bottom:20px;gap:10px}.notice button{text-decoration:underline;white-space:nowrap}.hero{background:var(--green);color:white;border-radius:12px;padding:27px 30px;position:relative;overflow:hidden;display:flex;justify-content:space-between;align-items:center;min-height:154px;margin-bottom:23px}.hero:after{content:'';position:absolute;width:340px;height:340px;border:1px solid #ffffff14;border-radius:50%;left:-70px;top:-140px;box-shadow:0 0 0 36px #ffffff05,0 0 0 72px #ffffff04;pointer-events:none}.hero .eyebrow{color:#a9bedc}.hero h2{font-size:26px;font-weight:500;margin:9px 0}.hero p{color:#c0d0e7;font-size:14px;margin:0}.hero-actions{display:flex;gap:9px;z-index:1}.button{padding:9px 17px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-size:15px;background:var(--green);color:white;font-weight:500;border:1px solid transparent}.button.light{background:#f8fbf6;color:var(--green)}.button.outline{border:1px solid var(--line);color:var(--ink);background:white}.button.ghost{background:#ffffff0c;border-color:#ffffff35;color:white}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:23px}.stat{border:1px solid var(--line);background:white;border-radius:9px;padding:19px}.stat-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:14px}.stat-icon{background:#f0f4fb;color:#50719b;padding:5px 9px;border-radius:6px;font-size:20px}.stat-value{font-family:Arial,sans-serif;font-size:31px;margin:16px 0 11px;letter-spacing:-1px;direction:ltr;text-align:right}.stat-value small{font-family:'IBM Plex Sans Arabic',Tahoma,sans-serif;font-size:13px;letter-spacing:0;color:var(--muted);margin-left:4px}.stat-note{font-size:13px;color:var(--muted)}.stat-note b{color:#4772ad;font-weight:500}.panel{background:#fff;border:1px solid var(--line);border-radius:9px;overflow:hidden}.panel-header{display:flex;align-items:center;justify-content:space-between;padding:20px 22px;gap:12px}.panel-header h2{font-size:17px;font-weight:600;margin:0}.panel-header p{font-size:13px;color:var(--muted);margin:4px 0 0}.panel-header a,.text-button{font-size:14px;color:var(--green)}.two-col{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);gap:20px;margin-bottom:23px}.flow{display:flex;gap:9px;padding:22px;padding-top:12px;align-items:center;justify-content:space-between}.flow-step{text-align:center;flex:1}.flow-circle{height:47px;width:47px;border-radius:13px;display:grid;place-items:center;background:#edf3fc;color:#4e6f9d;font-size:22px;margin:0 auto 10px;border:1px solid #dfe8f5}.flow-step strong{font-weight:500;font-size:14px}.flow-step small{display:block;color:var(--muted);font-size:12px;margin-top:4px}.flow-arrow{color:#b4c4dc;padding-bottom:33px}.status-row{display:flex;justify-content:space-between;font-size:14px;padding:0 22px 17px;gap:10px}.progress-track{height:5px;background:#edf2fa;border-radius:8px;margin:0 22px 20px}.progress-track>span{display:block;background:#7195c4;height:100%;width:0}.module-list{padding:0 22px 12px}.module-item{display:flex;align-items:center;gap:11px;padding:10px 0;border-top:1px solid #f0f3f9;font-size:14px}.module-item small{font-size:13px;color:var(--muted);margin-right:auto}.module-item .mini-icon{background:#f0f4fb;border-radius:6px;padding:5px 8px;color:#617b9c}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:right;white-space:nowrap;font-size:14px}th{font-size:13px;color:#78879d;background:#f8fafe;font-weight:500;border-block:1px solid var(--line);padding:12px 22px}td{padding:15px 22px;border-bottom:1px solid #edf1f7}tr:last-child td{border-bottom:0}td.num{font-family:Arial,sans-serif;font-size:15px;direction:ltr;text-align:right}.customer-cell{display:flex;align-items:center;gap:10px}.customer-mark{width:29px;height:29px;display:grid;place-items:center;background:#eaf0fa;color:#54729c;border-radius:7px;font-size:14px}.tag{font-size:13px;border-radius:5px;padding:3px 8px;background:#edf2fc;color:#426997;display:inline-block}.tag.amber{background:#edf2fc;color:#5877a3}.tag.gray{background:#edf1f7;color:#78869b}.toolbar{display:flex;gap:10px;align-items:center;padding:0 22px 18px}.search{border:1px solid var(--line);border-radius:6px;padding:9px 12px;min-width:250px;background:#fff;color:var(--ink);font-size:14px;outline:none}.search:focus,input:focus,select:focus,textarea:focus{border-color:#7392bc;outline:2px solid #e5edf9}.empty{padding:50px 25px;text-align:center;color:var(--muted)}.empty .empty-icon{font-size:37px;color:#849bb9;margin-bottom:15px}.empty h3{color:var(--ink);font-size:19px;font-weight:500;margin:5px}.empty p{font-size:15px;max-width:440px;margin:10px auto 20px;line-height:1.9}.module-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.module-card{background:white;border:1px solid var(--line);border-radius:9px;padding:24px;display:block}.module-card .nav-icon{font-size:31px;display:block;margin-bottom:20px;color:var(--green)}.module-card h3{font-size:18px;font-weight:500;margin:10px 0}.module-card p{font-size:14px;color:var(--muted);line-height:1.9}.module-card span:last-child{font-size:14px;color:var(--green)}footer{padding:17px 38px;display:flex;justify-content:space-between;color:#8c9ab0;font-size:13px;border-top:1px solid var(--line)}footer span:first-child{font-family:Arial,sans-serif;font-size:12px;letter-spacing:2px}dialog{border:1px solid var(--line);border-radius:14px;padding:0;width:480px;max-width:calc(100vw - 30px);max-height:90vh;box-shadow:0 25px 90px #102c5026;background:white;color:var(--ink)}dialog::backdrop{background:#102c5066;backdrop-filter:blur(3px)}.modal-head{padding:24px 26px 14px;display:flex;justify-content:space-between;align-items:center}.modal-head h2{font-size:21px;font-weight:500;margin:0}.modal-body{padding:0 26px 26px}.modal-body>p{font-size:15px;color:var(--muted);line-height:1.9}.field{display:block;margin:17px 0;font-size:15px}.field input,.field select,.field textarea{display:block;width:100%;border:1px solid #dce4f0;padding:11px;border-radius:6px;margin-top:7px;background:white;color:var(--ink)}.field textarea{resize:vertical;min-height:75px}.field small{color:var(--muted);display:block;margin-top:6px;font-size:13px}.modal-body .button{width:100%;margin-top:6px}.form-error{color:#a04837;font-size:15px;line-height:1.8;white-space:pre-line}.settings-card{max-width:650px;padding:25px}.settings-card h2{font-size:19px;margin:0}.settings-card p{color:var(--muted);font-size:15px;line-height:1.9}.settings-card .button{margin-top:12px}.settings-note{margin-top:20px;padding:12px;border-radius:6px;background:#edf3fc;color:#577194;font-size:14px;line-height:1.9}.details-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;font-size:15px}.details-grid div{padding:12px;background:#f4f7fc;border-radius:6px}.details-grid small{color:var(--muted);display:block;margin-bottom:4px}#toast{position:fixed;bottom:26px;left:28px;max-width:400px;background:var(--green);color:white;border-radius:8px;padding:13px 20px;box-shadow:0 8px 30px #102c5022;z-index:100;opacity:0;transform:translateY(10px);transition:.2s;pointer-events:none;font-size:15px}#toast.show{opacity:1;transform:none}.loading{padding:70px;text-align:center;color:var(--muted)}.inline-error{padding:15px;background:#fdf0e9;color:#995443;border-radius:7px;font-size:15px;line-height:1.9}
@media(min-width:1600px){main{padding-top:45px}.hero{min-height:180px}.hero h2{font-size:31px}.stat{padding:24px}.stat-value{font-size:37px}}@media(max-width:1100px){:root{--sidebar:220px}main{padding:26px 23px}header{padding:0 23px}.hero{padding:24px;flex-wrap:wrap;gap:20px}.two-col{grid-template-columns:1fr}.module-grid{grid-template-columns:repeat(2,1fr)}.stats{gap:10px}.stat{padding:15px}.stat-value{font-size:26px}.brand{font-size:17px}.header-actions{gap:10px}}@media(max-width:760px){:root{--sidebar:254px}aside{transform:translateX(100%);transition:.2s}aside.open{transform:translateX(0);box-shadow:-10px 0 40px #102c5022}.shell{margin:0}header{padding:0 17px;height:67px}#menu-toggle{display:block}.breadcrumb{font-size:13px}.breadcrumb span{margin:0 6px}.header-actions .connection{display:none}.page-heading{align-items:flex-start}.page-heading h1{font-size:26px}.date-chip{display:none}main{padding:24px 16px}.hero{padding:23px}.hero h2{font-size:25px}.hero-actions{width:100%;flex-wrap:wrap}.stats{grid-template-columns:repeat(2,1fr);gap:10px}.stat-value{font-size:28px}.module-grid{grid-template-columns:1fr}.flow{padding:16px 10px;gap:3px}.flow-circle{width:38px;height:38px;font-size:18px}.flow-step strong{font-size:13px}.flow-step small{font-size:11px}.flow-arrow{font-size:13px}.panel-header{padding:18px 16px}.notice{font-size:13px;line-height:1.8}.toolbar{padding-inline:16px}.search{min-width:0;width:100%}th,td{padding-inline:16px}footer{padding-inline:16px}.header-actions .icon-button{display:none}.user-pill{font-size:13px}.details-grid{grid-template-columns:1fr}}

.brand-logo{width:66px;height:66px;object-fit:contain;flex-shrink:0}.brand{gap:8px;color:#102c50}.brand small{color:#728198}.hero{background:#102c50}.hero:after{box-shadow:0 0 0 36px #ffffff04,0 0 0 72px #ffffff03}.button:hover{filter:brightness(1.08)}@media(max-width:1100px){.brand-logo{width:56px;height:56px}}


.brand.brand-original{flex-direction:column;gap:3px;letter-spacing:0}.brand-original .brand-logo{width:154px;height:132px;object-fit:contain}.brand-original .brand-caption{font-family:'IBM Plex Sans Arabic',Tahoma,sans-serif;font-size:13px;font-weight:400;color:#728198;letter-spacing:0}.brand-original+.workspace{margin-top:22px;margin-bottom:22px}@media(max-height:820px){aside{padding-top:18px}.brand-original .brand-logo{width:123px;height:105px}.brand-original+.workspace{margin-top:16px;margin-bottom:18px}nav a{padding-top:8px;padding-bottom:8px}.profile{padding-block:13px}}


/* Comfortable reading size across desktop and mobile. */
body{line-height:1.7}aside{overflow-y:auto}.workspace{line-height:1.6}.nav-label{margin-bottom:10px}nav a{line-height:1.6;align-items:flex-start}.nav-icon{flex-shrink:0;line-height:26px}.stat-top{gap:8px;align-items:flex-start}.stat-note{line-height:1.8;min-height:25px}.panel-header p{line-height:1.8}.flow-step small{line-height:1.7}.hero p{line-height:1.9}.page-heading p{line-height:1.8}.search{min-height:44px}.button{min-height:44px}td,th{line-height:1.7}.notice{line-height:1.8}.profile small{line-height:1.7}@media(max-width:1100px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.flow{flex-wrap:wrap;row-gap:18px}.flow-step{min-width:65px}.hero-actions{flex-wrap:wrap}}@media(max-width:760px){.header-actions{gap:5px}.breadcrumb{font-size:12px}.page-heading h1{font-size:27px}.hero h2{font-size:26px}.stat-value{font-size:30px}.flow-step strong{font-size:14px}.flow-step small{font-size:12px}header>div{gap:8px}.user-pill{font-size:13px}.notice{align-items:flex-start}.panel-header{flex-wrap:wrap}}

.sales-toolbar{flex-wrap:wrap;align-items:flex-end;gap:12px}.sales-filter{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#728198;flex:1;min-width:150px}.sales-filter .search{min-width:0;width:100%;font-size:14px;min-height:44px}.sales-toolbar .button{flex-shrink:0}.sales-summary{padding:0 22px 16px;color:#526e97;font-size:14px;line-height:1.8}@media(max-width:760px){.sales-filter{min-width:calc(50% - 12px)}.sales-filter:first-child{flex-basis:100%}.sales-summary{padding-inline:16px}}


.date-control{display:flex;align-items:center;position:relative;width:100%}.date-control .date-text{width:100%;padding-left:48px;margin:0;min-height:46px;direction:ltr;text-align:left}.date-calendar{position:absolute;left:0;top:0;bottom:0;width:43px;display:grid;place-items:center;color:#526e97;border-right:1px solid #e1e7f0;overflow:hidden;border-radius:6px 0 0 6px}.date-calendar .date-native{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0;padding:0;border:0;min-width:0}.date-native::-webkit-calendar-picker-indicator{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;cursor:pointer}.date-control:focus-within .date-calendar{color:#102c50}.field .date-control{margin-top:7px}.date-text::placeholder{color:#8292a9;letter-spacing:1px}


.currency{white-space:nowrap;font-variant-numeric:tabular-nums;font-family:Arial,'IBM Plex Sans Arabic',Tahoma,sans-serif;font-weight:500}.currency span{font-family:'IBM Plex Sans Arabic',Tahoma,sans-serif;font-size:.9em;font-weight:400}


.currency{display:inline-flex;flex-direction:row;direction:ltr;unicode-bidi:isolate;align-items:baseline;gap:.35em;white-space:nowrap}.currency .currency-number{direction:ltr;unicode-bidi:isolate-override;white-space:pre;font:inherit}.currency .currency-unit{direction:rtl;unicode-bidi:isolate;white-space:nowrap}.stat-value .currency-unit{font-size:13px;color:#728198}


dialog.wide{width:1020px;max-width:calc(100vw - 32px)}.invoice-header{grid-template-columns:repeat(4,minmax(0,1fr))}.invoice-section-title{font-size:17px;font-weight:500;margin:24px 0 14px}.message-reference{display:block;color:#728198;font-size:12px;margin-top:5px}.invoice-subdetails{margin-top:16px;border:1px solid #e1e7f0;border-radius:7px;overflow:hidden}.invoice-subdetails summary{cursor:pointer;background:#f4f7fc;padding:13px;font-size:14px}.invoice-note{white-space:pre-wrap;overflow-wrap:anywhere;max-width:400px}.wide .table-wrap table{font-size:14px}.wide .table-wrap th{font-size:13px}.wide .table-wrap th,.wide .table-wrap td{padding:12px 14px}@media(max-width:760px){.invoice-header{grid-template-columns:repeat(2,minmax(0,1fr))}.wide .modal-body{padding-inline:14px}.wide .modal-head{padding-inline:14px}.invoice-header>div{overflow-wrap:anywhere}}


.sales-tabs{display:flex;gap:6px;border-bottom:1px solid #dce5f2;margin:0 0 24px;padding-bottom:8px}.sales-tabs button{padding:11px 24px;border-radius:7px;color:#6a7a92;font-size:16px}.sales-tabs button.active{background:#102c50;color:#fff}.sales-tabs button:hover:not(.active){background:#eaf0fa}@media(max-width:760px){.sales-tabs button{flex:1;padding:11px 12px}}


.statement-toolbar{padding:10px 0 18px}.statement-totals{margin:18px 0;grid-template-columns:repeat(2,minmax(0,1fr))}.statement-totals .currency{font-size:23px;margin-top:8px}.statement-totals small{line-height:1.8}.wide .inline-error{margin:12px 0}@media(max-width:480px){.statement-totals{grid-template-columns:1fr}.statement-totals .currency{font-size:23px}}


.production-cost-total{background:#edf3fc}.production-cost-total td{border-top:2px solid #dce5f2;font-weight:600}


.production-product-cell{min-width:180px;max-width:310px;white-space:normal}.production-product-cell>strong{font-weight:500}.production-size-badges{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.production-size-badges .tag{white-space:nowrap;font-size:12px}.production-size-warning{display:block;margin-top:7px;color:#728198;font-size:12px}


.material-description{white-space:normal;min-width:120px;max-width:240px}


.material-filter-hint{padding:0 22px;margin:0 0 14px;font-size:13px;color:#728198;line-height:1.8}@media(max-width:760px){.material-filter-hint{padding-inline:16px}}


.material-movement-caption{color:#728198;font-size:13px;line-height:1.8}#material-movements{margin-top:22px}#material-movements>.button{margin-top:14px}


.movement-toolbar{padding-inline:0}.movement-toolbar .sales-filter{min-width:180px}#material-movements .sales-summary{padding-inline:0}@media(max-width:760px){.movement-toolbar .sales-filter{min-width:calc(50% - 12px)}}


.cashbox-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;margin-bottom:23px}.cashbox-card{padding:22px}.cashbox-card h2{font-size:18px;font-weight:500;margin:0 0 20px}.cashbox-balance small{display:block;font-size:13px;color:#728198;margin-bottom:12px}.cashbox-balance>.currency{font-size:30px}.cashbox-opening{display:flex;gap:15px;justify-content:space-between;flex-wrap:wrap;border-top:1px solid #e1e7f0;margin-top:22px;padding-top:15px;font-size:14px;color:#728198}@media(max-width:480px){.cashbox-grid{grid-template-columns:1fr}.cashbox-card{padding:18px}}


#production-materials{margin-top:22px}#production-materials>.button{margin-top:14px}.detail-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.detail-actions .button{width:auto}@media(max-width:480px){.detail-actions .button{width:100%}}


.invoice-header.invoice-summary{grid-template-columns:repeat(5,minmax(0,1fr))}@media(max-width:760px){.invoice-header.invoice-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-summary>div:last-child{grid-column:1/-1}}


.invoice-header.invoice-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.invoice-profit-card .profit-percent{font-size:22px;font-weight:600;direction:ltr;unicode-bidi:isolate-override;display:block;color:#102c50}.invoice-profit-card .profit-caption{font-size:11px;line-height:1.7;margin-top:5px}.invoice-profit-card.profit-loss .profit-percent{color:#a04837}@media(max-width:760px){.invoice-header.invoice-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-summary>div:last-child{grid-column:auto}}


#print-report{display:none}.report-actions{margin-top:0;margin-bottom:18px}@media print{@page{size:A4;margin:12mm}body.printing-report>*{display:none!important}body.printing-report>#print-report{display:block!important;color:#152c49;background:#fff;font-family:'IBM Plex Sans Arabic',Tahoma,Arial,sans-serif;font-size:11pt;line-height:1.7}#print-report .report-header{display:flex;height:auto;padding:0 0 18px;border-bottom:2px solid #102c50;justify-content:space-between;align-items:center;margin-bottom:20px}#print-report .report-header img{width:95px;height:82px;object-fit:contain}#print-report h1{font-size:21pt;margin:0}#print-report .report-header p{margin:4px 0;color:#526e97}#print-report .report-meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:14px;margin-bottom:20px}#print-report table{white-space:normal;font-size:10pt;width:100%;border-collapse:collapse}#print-report th,#print-report td{padding:9px 7px;border:1px solid #dce4ef;font-size:10pt;line-height:1.7}#print-report th{color:#102c50;font-weight:600}#print-report thead{display:table-header-group}#print-report tr{break-inside:avoid}#print-report .table-wrap{overflow:visible}#print-report .report-totals{margin-top:20px;border-top:2px solid #102c50;padding-top:14px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;break-inside:avoid}#print-report .report-footer,#print-report .settings-note,#print-report .report-caution{font-size:9pt;line-height:1.8;color:#526e97;margin-top:20px;padding:10px 0;background:white;border-top:1px solid #dce4ef}#print-report .report-caution{color:#a04837}#print-report button,#print-report th:last-child:empty{display:none}#print-report td:last-child:has(button){display:none}#print-report .details-grid{grid-template-columns:repeat(2,1fr)}#print-report .statement-totals .currency{font-size:17pt}#print-report .tag{color:#102c50;background:white}#print-report .inline-error{border:1px solid #a04837;background:white;color:#a04837}body.printing-report{background:white}}


.employee-records{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.employee-records>div{padding:16px;background:#f4f7fc;border-radius:7px}.employee-records small{display:block;color:#728198;font-size:13px;line-height:1.8}.employee-records strong{display:block;font-size:25px;margin-top:7px;font-weight:500}@media(max-width:480px){.employee-records{grid-template-columns:1fr}}


.ironing-date-error{padding:0 22px}#ironing-history{margin-top:20px}

.attendance-week-table{min-width:850px}.attendance-week-table th,.attendance-week-table td{text-align:center}.attendance-week-table th:first-child{text-align:right;min-width:150px}.attendance-week-table thead bdi{display:inline-block;margin-top:7px;font-weight:400}.attendance-week-state{display:block;margin-top:6px;color:var(--muted,#657b9d)}.attendance-week-muted{color:#657b9d;font-size:14px}
.tag.attendance-absent{background:#fee2e2;color:#b91c1c;border:1px solid #fecaca;font-weight:700}
.attendance-saved-card{margin-top:22px;padding:18px;border:1px solid #dbe5f3;border-radius:12px;background:#f4f7fc}.attendance-saved-card h3{margin-top:0}.attendance-saved-grid{display:flex;flex-wrap:wrap;gap:20px}.attendance-saved-grid>div{flex:1;min-width:110px;color:#657b9d}.attendance-saved-grid strong{display:block;color:#102c50;margin-top:8px}
/* Payroll workspace */
.employee-tabs{border:1px solid #dce5f2;background:#fff;border-radius:14px;padding:6px;gap:8px;box-shadow:0 3px 12px #102c5005}.employee-tabs button{flex:1;border-radius:9px;min-height:48px;font-weight:500}.employee-tabs button.active{box-shadow:0 3px 8px #102c501c}
main:has(.employee-tabs)>.panel{margin-top:20px;border-radius:14px;box-shadow:0 4px 16px #102c5004}main:has(.employee-tabs)>.stats{gap:14px}main:has(.employee-tabs) .stat{border-radius:14px;border-top:3px solid #b9cbe4}main:has(.employee-tabs) .stat:first-child{border-top-color:#102c50}main:has(.employee-tabs) .panel-header{background:#fff;border-bottom:1px solid #edf1f7;padding-block:19px}main:has(.employee-tabs) .panel-header h2{font-size:19px}main:has(.employee-tabs) .sales-toolbar{background:#f8faff;padding-top:18px;gap:14px}main:has(.employee-tabs) .sales-toolbar .search{background:white;border-radius:8px}main:has(.employee-tabs) table tbody tr:nth-child(even){background:#fafcff}main:has(.employee-tabs) table tbody tr:hover{background:#f0f5fc}main:has(.employee-tabs) table th{color:#526b8d;font-weight:600}main:has(.employee-tabs)>.settings-note{border-inline-start:3px solid #b9cbe4;background:#edf3fc;margin-bottom:18px}
.attendance-page-actions{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:18px 22px;background:#fff;border:1px solid #dce5f2;border-radius:14px;margin:20px 0}.attendance-page-actions strong{font-size:18px}.attendance-page-actions small{display:block;color:#728198;font-size:14px;margin-top:3px}.attendance-page-actions .button{white-space:nowrap;border-radius:8px}.attendance-week-table th:first-child{position:sticky;right:0;background:#f8fafe;z-index:1;border-left:1px solid #e1e7f0}.attendance-week-table tbody th:first-child{background:white;color:#102c50}.attendance-week-table tbody td{height:88px}.attendance-week-table .tag{min-width:64px}.attendance-week-table .attendance-week-state{font-size:12px}
/* Compact attendance registration */
dialog:has(#attendance-draft-form){width:600px;max-height:88dvh;overflow-y:auto}dialog:has(#attendance-draft-form) .modal-head{padding:17px 22px 12px;border-bottom:1px solid #edf1f7}dialog:has(#attendance-draft-form) .modal-body{padding:12px 22px 20px}.attendance-modal-intro{margin:0 0 12px;font-size:14px!important;color:#657b9d!important}#attendance-draft-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}#attendance-draft-form .field{margin:0;min-width:0}#attendance-draft-form .field input,#attendance-draft-form .field select,#attendance-draft-form .field textarea{padding:8px 10px;min-height:44px;margin-top:5px}#attendance-draft-form .field .date-control{margin-top:5px}#attendance-draft-form .date-control .date-text{margin-top:0;padding-left:48px}#attendance-draft-form .attendance-worker-field,#attendance-draft-form #attendance-times,#attendance-draft-form .attendance-notes-field,#attendance-save-message,#attendance-draft-form>button{grid-column:1/-1}#attendance-times{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:0;gap:16px;margin:0}#attendance-times[hidden]{display:none}#attendance-draft-form .field textarea{min-height:58px;height:58px}#attendance-draft-form .attendance-optional{display:inline;font-size:12px;font-weight:400;margin-inline-start:5px}#attendance-save-message{margin:0;font-size:14px}#attendance-save-message:empty{display:none}#attendance-draft-form>button{margin-top:0;border-radius:8px}dialog:has(#attendance-draft-form) .attendance-saved-card{padding:14px;margin-top:16px}dialog:has(#attendance-draft-form) .attendance-saved-card h3{font-size:17px;margin-bottom:8px}dialog:has(#attendance-draft-form) .attendance-saved-grid{gap:12px;font-size:14px}.attendance-confirm-action .attendance-week-state{font-size:13px}
@media(max-width:600px){.employee-tabs{gap:3px}.employee-tabs button{font-size:14px;padding:10px 6px;line-height:1.6}.attendance-page-actions{padding:15px;align-items:flex-start}.attendance-page-actions strong{font-size:16px}.attendance-page-actions small{font-size:12px}.attendance-page-actions .button{padding-inline:12px;font-size:14px}dialog:has(#attendance-draft-form) .modal-body{padding:12px 16px 16px}dialog:has(#attendance-draft-form) .modal-head{padding:14px 16px 10px}#attendance-draft-form{gap:11px 10px}#attendance-draft-form .field{font-size:14px}#attendance-draft-form .field input,#attendance-draft-form .field select{font-size:16px}main:has(.employee-tabs) .panel-header{padding-inline:16px}}
/* Shared navy-and-white workspace styling */
@media screen{
main>.panel,main .two-col>.panel,main .cashbox-grid>.panel{border-radius:14px;box-shadow:0 4px 16px #102c5004}main>.panel+.panel{margin-top:20px}main>.stats{gap:14px}main .stat{border-radius:14px;border-top:3px solid #b9cbe4}main .stat:first-child{border-top-color:#102c50}main .panel-header{background:#fff;border-bottom:1px solid #edf1f7;padding-block:19px}main .panel-header h2{font-size:19px}main .sales-toolbar{background:#f8faff;padding-top:18px;gap:14px}main .sales-toolbar .search{background:#fff;border-radius:8px}main .sales-toolbar .button{border-radius:8px}main table tbody tr:nth-child(even):not(.production-cost-total){background:#fafcff}main table tbody tr:hover:not(.production-cost-total){background:#f0f5fc}main table th{color:#526b8d;font-weight:600}main>.settings-note{border-inline-start:3px solid #b9cbe4;background:#edf3fc;margin-bottom:18px}main .module-card{border-radius:14px;box-shadow:0 4px 16px #102c5004}main .module-card:hover{border-color:#b9cbe4;background:#fcfdff}main .hero{border-radius:16px}main .notice{border-radius:10px}main .settings-card{border-radius:14px}main .settings-card .field input,main .settings-card .field select,main .settings-card .field textarea{border-radius:8px}
.sales-tabs{border:1px solid #dce5f2;background:#fff;border-radius:14px;padding:6px;gap:8px;box-shadow:0 3px 12px #102c5005;flex-wrap:wrap}.sales-tabs button{flex:1;border-radius:9px;min-height:48px;font-weight:500}.sales-tabs button.active{box-shadow:0 3px 8px #102c501c}.sales-tabs button:hover:not(.active){background:#f0f5fc}dialog{border-radius:16px}dialog:not(:has(#attendance-draft-form)) .modal-head{padding:18px 22px 14px;border-bottom:1px solid #edf1f7}dialog:not(:has(#attendance-draft-form)) .modal-body{padding:14px 22px 22px}dialog .details-grid>div,dialog .invoice-header>div{border-radius:10px}dialog .field input,dialog .field select,dialog .field textarea{border-radius:8px}dialog .button{border-radius:8px}
}
@media screen and (max-width:760px){main .panel-header{padding-inline:16px}main>.stats{gap:10px}.sales-tabs{gap:4px}.sales-tabs button{padding:10px 12px;font-size:15px;line-height:1.6;min-width:100px}dialog:not(:has(#attendance-draft-form)) .modal-head{padding-inline:16px}dialog:not(:has(#attendance-draft-form)) .modal-body{padding-inline:16px}main .sales-toolbar{gap:12px}main .stat{padding:16px}}
@media screen and (max-width:600px){.employee-tabs{gap:3px}.employee-tabs button{font-size:14px;padding:10px 6px;min-width:0}main .panel-header h2{font-size:18px}.sales-toolbar .sales-filter{min-width:calc(50% - 12px)}.sales-toolbar .sales-filter:first-child{flex-basis:100%}}
.attendance-summary-table{min-width:850px}.attendance-summary-table td:not(:first-child),.attendance-summary-table th:not(:first-child){text-align:center}.attendance-summary-table td{font-size:15px}.attendance-summary-table .tag{margin:3px}
.payroll-action-buttons{display:flex;gap:10px;flex-wrap:wrap}.payroll-cash-week{border-top:1px solid #dce5f2;margin-top:20px}#payroll-cash-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}#payroll-cash-form .field{margin:0;min-width:0}#payroll-cash-form .cash-worker-field,#payroll-cash-form .cash-notes-field,#cash-request-message,#payroll-cash-form>button{grid-column:1/-1}#payroll-cash-form .field input,#payroll-cash-form .field select{font-size:16px;min-height:44px;padding:8px 10px}#payroll-cash-form .field .date-control .date-text{margin:0;padding-left:48px}#payroll-cash-form textarea{height:58px;min-height:58px}#cash-request-message{margin:0}#cash-request-message:empty{display:none}dialog:has(#payroll-cash-form){width:620px;max-height:88dvh}#cash-request-saved>.button{margin-top:12px}@media(max-width:600px){.attendance-page-actions:has(.payroll-action-buttons){flex-direction:column}.payroll-action-buttons{width:100%}.payroll-action-buttons .button{flex:1}#payroll-cash-form{gap:11px 10px}#payroll-cash-form .field{font-size:14px}}
dialog:has(#payroll-cash-form){width:720px}.cash-kind-field,.cash-amount-field,#payroll-operation-preview{grid-column:1/-1}.payroll-operation-preview{padding:14px;background:#f8faff;border:1px solid #dce5f2;border-radius:10px;min-width:0}.payroll-operation-preview>p{margin:0;font-size:14px;color:#657b9d}.payroll-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.payroll-preview-grid>div{border:1px solid #e1e7f0;background:white;padding:12px;border-radius:9px}.payroll-preview-grid strong,.payroll-preview-grid small{display:block}.payroll-preview-grid small{color:#657b9d;font-size:13px}.payroll-preview-grid strong{font-size:16px;margin-top:6px}.payroll-open-group{margin-block:12px;background:white;border:1px solid #e1e7f0;border-radius:9px;overflow:hidden}.payroll-open-title{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;background:#edf3fc;padding:10px 12px;font-size:15px}.payroll-open-rows>div{display:flex;justify-content:space-between;gap:14px;padding:10px 12px;border-top:1px solid #edf1f7;font-size:14px}.payroll-open-rows small{display:block;color:#657b9d;font-size:12px;margin-top:4px}.payroll-open-rows>div>span:last-child{overflow-wrap:anywhere;white-space:pre-wrap;max-width:58%}.payroll-small-note{color:#657b9d;font-size:13px;line-height:1.8;padding:10px 12px;margin:0}.payroll-operation-preview .settings-note{font-size:13px;margin-top:12px}@media(max-width:480px){.payroll-preview-grid{grid-template-columns:1fr}.payroll-operation-preview{padding:10px}}
.payroll-cash-confirmation{grid-column:1/-1;display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid #b9cbe4;background:#edf3fc;border-radius:8px;font-size:14px;line-height:1.8}.payroll-cash-confirmation[hidden]{display:none}#payroll-cash-form #payroll-cash-delivered{width:20px;height:20px;min-height:20px;flex:0 0 20px;margin:3px 0 0;accent-color:#102c50}
.payroll-week-financial{margin-top:22px;border-top:1px solid #dce5f2;padding-bottom:8px}.payroll-week-money-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px 22px}.payroll-week-money-cards>div{padding:16px;border:1px solid #dce5f2;border-radius:12px;background:#f4f7fc}.payroll-week-money-cards small{display:block;color:#657b9d;font-size:13px;line-height:1.8}.payroll-week-money-cards strong{display:block;font-size:25px;margin:9px 0;color:#102c50}.payroll-financial-table{min-width:800px}.payroll-financial-table td:not(:first-child),.payroll-financial-table th:not(:first-child){text-align:center}.payroll-paid-total{background:#edf3fc;font-weight:600}.payroll-week-financial>.form-error,.payroll-week-financial>.button{margin:14px 22px}@media(max-width:600px){.payroll-week-money-cards{grid-template-columns:1fr;padding:16px;gap:10px}}
.weekly-loaded-caption{padding:16px 22px 8px;color:#657b9d;font-size:14px}.weekly-view-tabs{margin:8px 20px 16px}.weekly-view-tabs button{font-size:15px;min-width:140px}.weekly-worker-toolbar{border-block:1px solid #edf1f7}.weekly-worker-toolbar .sales-filter{max-width:380px}.weekly-view-error{margin:16px 22px}#weekly-view-panel>.button{margin:0 22px 18px}#weekly-view-panel .payroll-week-financial{border-top:0;margin-top:0}.weekly-legacy-requests{margin:18px 22px}@media(max-width:600px){.weekly-loaded-caption{padding-inline:16px}.weekly-view-tabs{margin-inline:12px;gap:4px}.weekly-view-tabs button{font-size:14px;padding:10px 8px;min-width:110px}.weekly-worker-toolbar .sales-filter{max-width:none}.weekly-legacy-requests{margin-inline:12px}}
.expense-cash-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:20px 22px}.expense-cash-cards article{padding:20px;border:1px solid #dce5f2;background:#f4f7fc;border-radius:12px}.expense-cash-cards small{display:block;font-size:14px;color:#657b9d;line-height:1.8}.expense-cash-cards strong{display:block;font-size:28px;margin:12px 0;color:#102c50}#expense-cash-body>.settings-note{margin:0 22px 16px}.expense-cash-error{padding:4px 22px 22px}#expense-cash-date-form .field{margin:0;min-width:220px}#expense-cash-date-form{align-items:flex-end}@media(max-width:600px){.expense-cash-cards{grid-template-columns:1fr;padding:16px;gap:10px}#expense-cash-body>.settings-note{margin-inline:16px}#expense-cash-date-form .field{min-width:0;flex:1 1 100%}}
.factory-cash-caption{margin:0;padding:16px 22px 0;color:#657b9d;font-size:14px}.factory-cash-selector{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:18px 22px}.factory-cash-choice{text-align:right;display:flex;flex-direction:column;gap:8px;padding:16px;border:1px solid #dce5f2;border-radius:12px;background:#fff;min-width:0}.factory-cash-choice:hover{background:#f8faff;border-color:#8ba6ca}.factory-cash-choice.active{border:2px solid #102c50;padding:15px;background:#f0f5fc;box-shadow:0 3px 10px #102c500b}.factory-cash-choice strong{font-size:17px;color:#102c50}.factory-cash-choice small{font-size:12px;color:#657b9d;line-height:1.8}.factory-cash-choice-value{font-size:21px;min-height:38px}.factory-cash-detail{border-top:1px solid #e1e7f0}.factory-cash-detail>.settings-note{margin:0 22px 16px}.factory-cash-detail .expense-cash-cards strong{font-size:23px;line-height:1.7}@media(max-width:1200px){.factory-cash-selector{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.factory-cash-selector{padding:16px;gap:10px}.factory-cash-choice{padding:12px}.factory-cash-choice.active{padding:11px}.factory-cash-choice strong{font-size:15px}.factory-cash-choice-value{font-size:19px}.factory-cash-caption{padding-inline:16px}.factory-cash-detail>.settings-note{margin-inline:16px}}
.payroll-review-state{padding:12px;border:1px solid #d8e3f2;border-radius:8px;background:#fff;font-weight:600;color:#526b8d;margin:0 0 12px}.payroll-review-state small{display:block;font-size:13px;font-weight:400;line-height:1.8;margin-top:5px}.payroll-review-state.ready{background:#eef7f1;border-color:#c9e2d1;color:#285e40}.payroll-review-days{margin-block:14px}.payroll-review-days table{font-size:13px}.payroll-review-days th,.payroll-review-days td{padding:9px 12px}
#payroll-opening-modal{width:640px;max-height:88dvh}#payroll-opening-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}#payroll-opening-form .field{margin:0;min-width:0}.payroll-opening-full,#payroll-opening-message,#payroll-opening-form .payroll-cash-confirmation{grid-column:1/-1}#payroll-opening-message{margin:0}#payroll-opening-message:empty{display:none}#payroll-opening-form textarea{min-height:58px;height:58px}#payroll-opening-form .date-text{margin:0;padding-left:48px}#payroll-opening-form #payroll-opening-confirmed{width:20px;height:20px;min-height:20px;flex:0 0 20px;margin:3px 0 0;accent-color:#102c50}#payroll-opening-amount-field[hidden]{display:none}#payroll-opening-body>.settings-note{margin:0 0 14px}.payroll-preview-grid [data-payroll-opening]{font-size:13px;margin-top:10px}@media(max-width:480px){#payroll-opening-form{gap:11px 10px}#payroll-opening-form>.field:not(.payroll-opening-full){grid-column:1/-1}}
#payroll-opening-form[hidden]{display:none}
.payroll-net-review{margin-top:14px;padding-top:14px;border-top:1px solid #dce5f2}.payroll-review-components{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}.payroll-review-components>div{background:#fff;border:1px solid #e1e7f0;border-radius:8px;padding:11px}.payroll-review-components small{display:block;font-size:12px;color:#657b9d;line-height:1.8}.payroll-review-components strong{display:block;font-size:17px;color:#102c50;margin-top:5px}@media(max-width:420px){.payroll-review-components{grid-template-columns:1fr}}

.staff-editor-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.staff-editor-form .field{margin:0}.staff-full{grid-column:1/-1}.staff-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}@media(max-width:600px){.staff-editor-form{grid-template-columns:1fr}}
.staff-editor-form [hidden]{display:none!important}
.employee-wage-action{display:block;margin-top:8px;font-weight:700;text-decoration:underline}
.cash-week-choice{align-self:center;padding:12px;border:1px solid #dce5f2;border-radius:9px}.cash-week-choice summary,.simple-payroll-details summary{cursor:pointer;color:#102c50}.cash-week-choice[open] .field{margin-top:12px!important}.cash-week-choice small{color:#657b9d}.simple-payroll-total{background:#102c50;color:white;border-radius:10px;padding:18px;margin-bottom:14px}.simple-payroll-total small,.simple-payroll-total strong{display:block}.simple-payroll-total strong{font-size:28px;margin:8px 0}.simple-payroll-lines>div{display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px solid #e1e7f0}.simple-payroll-details{margin-top:16px}.simple-payroll-problems{background:#fff6ed;padding:12px;border-radius:9px;margin-bottom:12px}.simple-payroll-problems p{margin:5px 0}.simple-payroll-problems .button{margin-top:8px}.payroll-simple .cash-kind-field{grid-column:auto}@media(max-width:480px){.payroll-simple>.cash-kind-field,.cash-week-choice{grid-column:1/-1}}
.attendance-other-records{margin-top:18px}.attendance-other-records>summary{padding:14px;cursor:pointer;color:#102c50}#payroll-attendance-modal{width:620px;max-height:88dvh}.payroll-day-card{border:1px solid #dce5f2;border-radius:10px;padding:14px;margin-top:12px}.payroll-day-card h3{font-size:17px;margin:0 0 12px}.payroll-day-card label{display:block;margin:8px 0}.payroll-day-card input,.payroll-day-card select{width:100%;min-height:44px}.payroll-day-times{display:grid;grid-template-columns:1fr 1fr;gap:12px}.payroll-day-times[hidden]{display:none}.payroll-day-card p{font-size:14px}.payroll-attendance-footer{padding:14px 20px;border-top:1px solid #dce5f2;position:sticky;bottom:0;background:#fff}.payroll-attendance-footer .button{width:100%}
.payroll-opening-footer{position:sticky;bottom:0;background:#fff;padding:14px 20px;border-top:1px solid #dce5f2;z-index:2}.payroll-opening-footer .button{width:100%}
.piecework-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}.piecework-form .field{margin:0}.piecework-full{grid-column:1/-1}#piecework-price{margin:0;align-self:stretch}#piecework-receipt .button{margin-top:12px}@media(max-width:540px){.piecework-form{grid-template-columns:1fr}}
#factory-production-form .field{margin-bottom:16px}.factory-production-quantities input{width:110px;max-width:100%;min-height:44px;padding:8px 12px;border:1px solid #dce5f2;border-radius:7px;color:#102c50}#factory-production-total{margin:14px 0}#factory-production-receipt .button{margin-top:12px}#factory-production-form textarea{min-height:60px}@media(max-width:480px){.factory-production-quantities input{width:86px}}
.factory-product-add{display:block;margin:-6px 0 16px;font-weight:700}.factory-product-variant-row{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:12px;margin:12px 0;padding:12px;border:1px solid #dce5f2;border-radius:9px}.factory-product-variant-row label{min-width:0}.factory-product-variant-row input{width:100%;min-height:44px;margin-top:8px}.factory-product-variant-row .text-button{min-height:44px}#new-factory-product-form>.button{width:100%}#add-product-variant-row{margin-bottom:16px}@media(max-width:480px){.factory-product-variant-row{grid-template-columns:1fr 1fr}.factory-product-variant-row>[data-remove-product-variant]{grid-column:1/-1;justify-self:end}}
.production-lifecycle-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}.production-lifecycle-form .field{margin:0}.production-lifecycle-full{grid-column:1/-1}.production-lifecycle-form [data-actual-production-item]{width:110px;max-width:100%;min-height:44px;padding:8px;border:1px solid #dce5f2;border-radius:7px}.production-lifecycle-form textarea{min-height:58px}#production-event-receipt .button{margin-top:12px}[data-start-production],[data-finish-production]{margin-top:10px;white-space:normal}@media(max-width:480px){.production-lifecycle-form{grid-template-columns:1fr}.production-lifecycle-form [data-actual-production-item]{width:86px}}

.ironing-section-tabs{background:#f0f4fa;box-shadow:none;margin-top:-8px}.ironing-section-tabs button.active{background:#fff;color:#102c50;box-shadow:0 1px 5px #102c5014}
.customer-directory table,.customer-sales-table table,.customer-receipts-table table{min-width:0;width:100%}.customer-directory th:first-child{width:65%}.customer-directory td{vertical-align:middle}.customer-name-button{color:#102c50;font-size:17px;font-weight:600;text-align:right;padding:10px 0;min-height:44px;white-space:normal;cursor:pointer}.customer-name-button:hover{text-decoration:underline}.customer-name-button:focus-visible{outline:2px solid #102c50;outline-offset:4px;border-radius:4px}.customer-balance-pending{color:#70819a;font-size:14px;font-weight:400}.customer-basic dl{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:24px}.customer-basic dl>div{min-width:0}.customer-basic dt{font-size:14px;color:#70819a;margin-bottom:8px}.customer-basic dd{margin:0;font-size:17px;color:#102c50;white-space:pre-wrap;overflow-wrap:anywhere}.customer-account-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.customer-account-card{display:flex;flex-direction:column;gap:16px;border:1px solid #dce5f2;border-radius:14px;padding:24px;background:#fff;text-align:right;color:#102c50;min-width:0}.customer-account-card small{font-size:15px;color:#70819a}.customer-account-card strong{font-size:25px;font-weight:600}.customer-account-card .currency{flex-wrap:wrap}.customer-receipts-card{cursor:pointer}.customer-receipts-card:hover{border-color:#102c50;background:#f6f8fc}.customer-receipts-card:focus-visible{outline:2px solid #102c50;outline-offset:3px}.customer-receipts-card>span{font-size:14px;color:#36659a}#customer-create-form>.button{width:100%}.customer-sales-table .text-button{white-space:normal;min-height:44px}.customer-sales-table th,.customer-sales-table td,.customer-receipts-table th,.customer-receipts-table td{padding:16px 12px}#customer-profile-content>.panel{margin-bottom:0}@media(max-width:600px){.customer-account-cards{grid-template-columns:1fr;gap:12px}.customer-account-card{padding:20px}.customer-basic dl{grid-template-columns:1fr;gap:20px}.customer-profile-tabs button{min-width:85px;padding-inline:8px}.customer-directory th,.customer-directory td{padding-inline:12px}.customer-name-button{font-size:16px}.customer-sales-table th,.customer-sales-table td{padding-inline:8px}}
/* Sales and printable customer invoice */
.sales-home-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.sales-home-card{background:#fff;border:1px solid #dce5f2;border-radius:16px;padding:30px;color:#102c50;text-align:right;cursor:pointer;font:inherit}.sales-home-card:hover,.sales-home-card:focus-visible{border-color:#102c50;box-shadow:0 5px 20px #102c5012}.sales-home-card h2{margin:0 0 14px}.sales-home-card strong{display:block;font-size:26px;margin-top:18px}.sales-invoice-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:22px}.sales-invoice-fields .field{min-width:0}.sales-invoice-fields input,.sales-invoice-fields select{width:100%}#sales-line-entry{padding:22px 0;border-block:1px solid #dce5f2;margin:20px 0}.sales-invoice-note{margin-top:24px}.sales-cart-totals{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;padding:20px;background:#f2f6fc;margin:16px 0}.sales-loss{color:#a53525}.sales-approve{margin-top:10px}.native-invoice-meta{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:24px 0}.native-invoice-total{text-align:left;font-size:23px;padding:24px 0}.native-invoice-signatures{display:flex;justify-content:space-around;gap:30px;padding:40px 0 20px}.native-invoice-signatures span{display:block;margin-top:24px}.native-invoice-document{color:#102c50}.native-invoice-document table{width:100%}.sales-native-list .text-button{font-size:inherit}
@media(max-width:700px){.sales-home-cards,.sales-invoice-fields{grid-template-columns:1fr}.sales-home-card{padding:24px}.native-invoice-meta{grid-template-columns:1fr}.sales-invoice-fields{gap:12px}.sales-cart-totals{flex-direction:column}}
@media print{.native-invoice-document .table-wrap{overflow:visible}.native-invoice-document table{font-size:12px}.native-invoice-signatures{break-inside:avoid}.native-invoice-document th,.native-invoice-document td{padding:10px 6px}}
/* Simple customer collection form */
.collection-form{display:grid;gap:20px}.collection-form>.field{margin:0}.collection-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.collection-fields .field{min-width:0;margin:0}.collection-form input,.collection-form select,.collection-form textarea{width:100%;box-sizing:border-box}.collection-form #collection-message{margin:0;line-height:1.8;white-space:pre-line}.collection-approve{width:100%;min-height:48px}.collection-ready{color:#246044;font-size:15px}.collection-success{text-align:center;padding:8px 0}.collection-success-mark{display:grid;place-items:center;margin:0 auto 16px;width:54px;height:54px;border-radius:50%;background:#e9f5ed;color:#246044;font-size:30px}.collection-success h3{font-size:20px;line-height:1.7}.collection-success-amount{display:block;font-size:30px;margin:20px 0}.collection-success .settings-note{margin:24px 0}.collection-success .button{margin-top:8px}
@media(max-width:560px){.collection-fields{grid-template-columns:1fr}.collection-form{gap:16px}.collection-success h3{font-size:18px}}
.collection-hint{color:#70819a;font-size:15px}
/* Cascading material purchase form */
.warehouse-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.material-purchase-form{display:grid;gap:20px}.purchase-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.purchase-fields .field,.material-purchase-form>.field{margin:0;min-width:0}.material-purchase-form input,.material-purchase-form select,.material-purchase-form textarea{box-sizing:border-box;width:100%}.material-purchase-form [hidden]{display:none!important}.purchase-numbers{grid-template-columns:repeat(3,minmax(0,1fr))}.material-purchase-form #purchase-message{margin:0;line-height:1.8;white-space:pre-line}.purchase-save{width:100%;min-height:48px;white-space:normal;line-height:1.7}.purchase-receipt{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:20px;background:#f3f6fc;border-radius:12px}.purchase-receipt small,.purchase-receipt strong{display:block}.purchase-receipt small{color:#70819a;margin-bottom:10px}.purchase-receipt strong{font-size:20px}#purchase-unit-hint{font-size:13px;color:#70819a;line-height:1.6}
@media(max-width:650px){.purchase-fields,.purchase-numbers{grid-template-columns:1fr}.material-purchase-form{gap:16px}.purchase-receipt{gap:10px;padding:16px 10px}.purchase-receipt strong{font-size:17px}.warehouse-actions{width:100%;justify-content:space-between}.warehouse-actions .button{flex:1}}
.warehouse-subtabs{display:flex;gap:8px;margin:8px 0 20px;padding:5px;background:#eaf0fa;border-radius:12px;width:fit-content}.warehouse-subtabs button{font:inherit;font-size:16px;border:0;border-radius:8px;padding:10px 22px;background:transparent;color:#687e9e;cursor:pointer}.warehouse-subtabs button.active{background:#fff;color:#102c50;box-shadow:0 2px 8px #102c5010}.warehouse-subtabs button:focus-visible{outline:2px solid #102c50;outline-offset:2px}.warehouse-movement-filters{display:flex;flex-wrap:wrap;gap:12px}.warehouse-movement-filters .sales-filter{flex:1 1 155px}.warehouse-movement-filters .sales-filter:first-child{flex-basis:220px}.warehouse-movement-table table{min-width:740px;width:100%}.warehouse-movement-name{min-width:190px;white-space:normal}.warehouse-quantity{white-space:nowrap}.warehouse-quantity small{font-size:12px;color:#70819a}.warehouse-movement-caption{font-size:14px;color:#70819a;line-height:1.9;margin:12px 0}.warehouse-out{background:#fff0ec;color:#a44c35}.warehouse-opening{background:#f1f2f5;color:#68718a}.warehouse-invoice-link{font-size:13px;display:block;padding:5px 0}.warehouse-pending-order{padding:16px 0;border-bottom:1px solid #dce5f2}.warehouse-movements .muted{color:#8e9bb0}
@media(max-width:600px){.warehouse-subtabs{width:100%;box-sizing:border-box}.warehouse-subtabs button{flex:1}.warehouse-movement-filters .sales-filter{flex:1 1 45%}.warehouse-movement-filters .sales-filter:first-child{flex-basis:100%}.warehouse-movements .panel-header{gap:10px}.warehouse-movement-table table{min-width:690px}.warehouse-movement-table td,.warehouse-movement-table th{padding:12px 10px}}
.production-material-review-table table{min-width:670px;width:100%}.production-material-review-table td:first-child{min-width:310px}.production-material-review-table td:nth-child(2){min-width:125px}.production-material-review-table input{width:125px}.production-material-review-table select{width:100%;min-width:270px}.production-material-totals{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}.production-material-totals article{padding:20px;border-radius:12px;background:#f3f6fc}.production-material-totals small,.production-material-totals strong{display:block}.production-material-totals small{color:#70819a;margin-bottom:12px}.production-material-totals strong{font-size:23px}#order-material-message{line-height:1.8;margin:18px 0}
@media(max-width:600px){.production-material-totals{grid-template-columns:1fr}.production-material-review-table td:first-child{min-width:255px}.production-material-review-table select{min-width:240px}}
.production-material-review-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-top:16px}
.warehouse-grouped table{min-width:650px;table-layout:fixed}.warehouse-grouped th:first-child{width:30%}.warehouse-grouped th:nth-child(2),.warehouse-grouped th:nth-child(3){width:27%}.warehouse-grouped th:last-child{width:16%}.warehouse-grouped td{vertical-align:top;white-space:normal}.warehouse-grouped .warehouse-movement-name{min-width:0;line-height:1.8}.warehouse-product-event{padding:0 0 12px;line-height:1.8}.warehouse-product-event+.warehouse-product-event{padding-top:12px;border-top:1px solid #e5ecf7}.warehouse-product-event:last-child{padding-bottom:0}.warehouse-product-date{display:block;color:#70819a;font-size:14px;margin-bottom:4px}.warehouse-grouped .warehouse-invoice-link{font-size:14px}.warehouse-grouped td:last-child{font-weight:700}.warehouse-product-event .tag{font-size:12px}
@media(max-width:600px){.warehouse-grouped table{min-width:610px}.warehouse-product-event .warehouse-quantity small{font-size:12px}.warehouse-grouped th,.warehouse-grouped td{padding:12px 9px}}

/* Loan schedules */
.loan-schedule{max-height:22rem;overflow:auto}.loan-schedule thead{position:sticky;top:0;z-index:1;background:#f7f9fc}#loan-form .field{margin-block:12px}#loan-form button{margin-inline-end:.5rem}

#lf-parts[hidden]{display:none!important}

#purchase-supplier-new-fields[hidden]{display:none!important}







/* Final-only return screen */
.final-return-history{min-width:560px}.final-return-fields,.final-return-quantities{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.final-return-fields>.field,.final-return-fields>.date-field,.final-return-quantities>.field{min-width:0;margin-bottom:12px}.final-return-lines{display:grid;gap:12px;margin:14px 0}.final-return-line{border:1px solid #dce5f2;border-radius:12px;padding:14px}.final-return-line>strong{display:block;overflow-wrap:anywhere}.final-return-line>strong small,.final-return-line>p{font-size:13px;color:#70819a}.final-return-line>p{margin:8px 0 12px}.final-return-quantities .field{margin-bottom:0}.final-return-quantities input{min-height:44px;width:100%}.final-return-summary:empty{display:none}.final-return-summary{background:#f3f6fb;border-radius:12px;padding:16px;margin:16px 0}.final-return-summary>small{color:#70819a}.final-return-summary>strong{display:block;font-size:24px;margin-top:8px}.final-return-summary>p{font-size:14px;line-height:1.8;margin:8px 0 0}#final-return-form>#fr-approve{width:100%}#final-refund-form>.button{margin-top:8px}#fr-details-body table{min-width:420px}#fr-message,#fr-refund-message{white-space:pre-wrap}@media(max-width:600px){.final-return-fields{grid-template-columns:1fr}.final-return-line{padding:12px}.final-return-quantities{gap:10px}.final-return-history th,.final-return-history td{padding:12px 8px}#final-refund-form>.button{width:100%}}


/* Factory tasks */
.tasks-table{min-width:520px}.task-title{border:0;background:none;color:#102e52;font:inherit;font-weight:700;text-align:start;cursor:pointer;padding:0;overflow-wrap:anywhere}.task-title:hover{text-decoration:underline}.task-due{display:block;color:#b54b32;margin-top:6px}.task-last-comment{display:block;max-width:320px;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:6px;color:#70819a}.tasks-pages{display:flex;align-items:center;gap:12px;padding:16px;flex-wrap:wrap}.tasks-pages>span{margin-inline-end:auto;color:#70819a}.task-notes,.task-comments p{white-space:pre-wrap;overflow-wrap:anywhere}.task-comments{display:grid;gap:10px;max-height:250px;overflow:auto;margin:16px 0}.task-comments article{padding:12px;border:1px solid #dce5f2;border-radius:10px;background:#f5f7fb}.task-comments small{display:block;color:#70819a;margin-top:4px}.task-comments p{margin:8px 0 0}.task-alert-row{border:1px solid #dce5f2;border-radius:12px;padding:12px;margin-bottom:10px}.task-alert-row strong,.task-alert-row small{display:block;overflow-wrap:anywhere}.task-alert-row small{color:#70819a;margin:6px 0 12px}#task-create-form>.button,#task-comment-form>.button{width:100%}@media(max-width:600px){.tasks-table td,.tasks-table th{padding:12px 8px}.task-comments{max-height:200px}.task-alert-row>.button{width:100%}}



/* Home dashboard */
.home-quick-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:24px}.home-period{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:22px 0 14px}.home-period h2{font-size:19px;margin:0}.home-period p{color:#70819a;margin:6px 0 0;font-size:13px}.home-period-tabs{display:flex;gap:8px}.home-metrics,.home-alert-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.home-metric{background:#fff;border:1px solid #dce5f2;border-radius:16px;padding:22px;text-align:start;cursor:pointer;color:#102e52;min-width:0;font:inherit}.home-metric:hover,.home-cash-card:hover{border-color:#7897ba;background:#f8faff}.home-metric>span,.home-metric>strong,.home-metric>small{display:block}.home-metric>strong{font-size:30px;margin:14px 0}.home-metric>small,.home-cash-card>small,.home-caption,.home-updated{color:#70819a;font-size:13px;line-height:1.8}.home-caption{margin:10px 0 16px}.home-cash-panel{margin:22px 0}.home-panel-body{padding:0 20px 18px}.home-cash-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.home-cash-card{font:inherit;text-align:start;background:#f5f7fb;border:1px solid #e3eaf4;border-radius:12px;padding:16px;color:#102e52;cursor:pointer;min-width:0}.home-cash-card>span,.home-cash-card>strong,.home-cash-card>small{display:block}.home-cash-card>strong{font-size:22px;margin:12px 0;overflow-wrap:anywhere}.home-alert-row{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid #edf1f7}.home-alert-row:last-child{border-bottom:0}.home-alert-row>div{min-width:0}.home-alert-row strong,.home-alert-row small{display:block;overflow-wrap:anywhere}.home-alert-row small{font-size:12px;color:#70819a;margin-top:6px}.home-empty{font-size:14px;color:#70819a;padding:12px 0}.home-read-error{padding:16px}.home-read-error p{font-size:13px;color:#b54b32;overflow-wrap:anywhere}.home-updated{text-align:end;margin:14px 0}.home-loading{padding:24px;color:#70819a}.home-metric:focus-visible,.home-cash-card:focus-visible{outline:3px solid #7897ba;outline-offset:3px}@media(max-width:1050px){.home-cash-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.home-quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.home-quick-actions .button{padding:12px 8px}.home-metrics{gap:10px}.home-metric{padding:16px 12px}.home-metric>strong{font-size:23px}.home-metric>small{font-size:12px}.home-alert-grid{grid-template-columns:1fr}.home-panel-body{padding:0 14px 14px}.home-cash-card{padding:12px}.home-cash-card>strong{font-size:20px}.home-cash-grid{gap:10px}.home-alert-grid .panel-header{padding:18px 14px}}@media(max-width:350px){.home-metrics{grid-template-columns:1fr}}



/* Financial movement register */
.financial-log-filters{padding:20px}.financial-log-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.financial-log-grid>.field,.financial-log-grid>.sales-filter{min-width:0;margin:0}.financial-log-grid input,.financial-log-grid select{width:100%}.financial-log-advanced{margin:16px 0}.financial-log-advanced summary{cursor:pointer;color:#102e52;padding:8px 0}.financial-log-advanced[open] summary{margin-bottom:10px}.financial-log-actions{display:flex;gap:10px;flex-wrap:wrap;padding:12px 20px}.financial-log-filters .financial-log-actions{padding:12px 0 0}.financial-log-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:0 20px}.financial-log-totals article{padding:16px;background:#f5f7fb;border-radius:12px;min-width:0}.financial-log-totals small,.financial-log-muted{display:block;color:#70819a;font-size:12px}.financial-log-totals strong{display:block;font-size:21px;margin-top:10px}.financial-log-caption{font-size:13px;color:#70819a;padding:0 20px}.financial-log-table{min-width:700px}.financial-log-muted{margin:6px 0}.financial-log-note{white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:900px){.financial-log-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.financial-log-totals{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.financial-log-filters{padding:14px}.financial-log-grid{gap:10px}.financial-log-grid>.field:first-child{grid-column:1/-1}.financial-log-totals{padding:0 14px;gap:10px}.financial-log-totals strong{font-size:19px}.financial-log-totals article{padding:12px}.financial-log-caption{padding:0 14px}.financial-log-actions{padding:12px 14px}}
