:root{--ink:#243746;--muted:#657580;--line:#e3e1da;--green:#304d61;--pale:#eef1f3;--paper:#f6f4ef;--white:#fff;--red:#aa3e38;font-family:Tahoma,Arial,sans-serif;color:var(--ink);background:var(--paper);font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button{border:0}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.sidebar{width:250px;position:fixed;inset:0 0 0 auto;background:#243746;color:#f8f5ef;padding:36px 22px;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;margin-bottom:62px}.brand-mark{font-size:27px;border:1px solid #b89560;width:45px;height:45px;display:grid;place-items:center;border-radius:12px;color:#e1c79f}.brand b{font-size:16px;letter-spacing:1.5px}.brand small{display:block;color:#c1ccd2;margin-top:7px;font-size:11px}.nav-label{font-size:11px;color:#b7c2ca;padding:0 15px 15px}nav{display:flex;flex-direction:column;gap:5px}nav button{display:flex;align-items:center;gap:13px;text-align:right;background:none;color:#d8e0e5;border-radius:9px;padding:13px 15px}nav button.active{background:#f4eadb;color:#243746;font-weight:bold}nav button:hover:not(:disabled){background:#354f62;color:white}nav .nav-icon{width:20px;text-align:center;font-size:18px}.sidebar-bottom{margin-top:auto;border-top:1px solid #455968;padding:23px 7px 0;font-size:11px;color:#d8e0e5}.sidebar-bottom small{display:block;color:#b7c2ca;margin:11px 15px}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#c9a777;margin-left:6px}.workspace{margin-right:250px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:100px;background:var(--white);border-bottom:1px solid var(--line);padding:0 44px;display:flex;align-items:center;justify-content:space-between;gap:15px}.eyebrow{font-size:11px;color:var(--muted)}.top-title{font-size:14px;margin-top:9px;font-weight:bold}.account{display:flex;align-items:center;gap:16px;font-size:12px}.avatar{display:grid;place-items:center;background:var(--pale);border-radius:50%;height:35px;width:35px;color:var(--green)}main{padding:40px 44px;flex:1}.kicker{font-size:11px;color:var(--green);letter-spacing:.5px;font-weight:bold}h1{font-size:29px;line-height:1.7;letter-spacing:-.7px;margin:9px 0 4px}h2{font-size:21px;margin:9px 0 16px}p{color:var(--muted);line-height:1.9}.page-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:28px}.page-head p{margin:4px 0}.actions{display:flex;gap:10px;flex-wrap:wrap}.primary{background:var(--green);color:#fff;padding:12px 19px;border-radius:8px;font-weight:bold;font-size:12px;min-height:42px}.primary:hover{background:#243746}.secondary{background:#fff;border:1px solid var(--line);padding:10px 16px;border-radius:8px;color:var(--ink);font-size:12px}.ghost{background:none;color:var(--green);padding:7px;font-size:11px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:25px}.metric{background:#fff;border:1px solid var(--line);border-radius:12px;padding:23px}.metric-label{color:#657580;font-size:12px}.metric strong{display:block;font-size:33px;margin:18px 0 10px;font-weight:normal}.metric small{font-size:10px;color:#657580}.metric-icon{float:left;color:var(--green);background:var(--pale);padding:5px 8px;border-radius:7px}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:20px}.panel-head{padding:21px 23px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:15px}.panel-head h2{font-size:15px;margin:0}.panel-head span{font-size:11px;color:var(--muted)}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap;font-size:12px}th{text-align:right;color:#657580;font-size:11px;font-weight:normal;background:#f8f7f3;padding:15px 22px}td{padding:17px 22px;border-bottom:1px solid #eeece6}tr:last-child td{border-bottom:0}td strong{font-weight:normal;color:#243746}td .code{font-family:monospace;color:#536c7c;font-size:12px;direction:ltr;unicode-bidi:isolate}.pill{display:inline-block;padding:5px 9px;border-radius:6px;font-size:10px;background:var(--pale);color:var(--green)}.pill.off{background:#f5efed;color:#986056}.empty{padding:58px 20px;text-align:center}.empty-symbol{width:53px;height:53px;display:grid;place-items:center;border:1px dashed #c7ced2;border-radius:15px;margin:0 auto 18px;font-size:25px;color:#718694}.empty h3{font-size:16px;font-weight:normal}.empty p{font-size:12px}.pager{padding:16px 22px;display:flex;gap:12px;align-items:center;justify-content:flex-end;border-top:1px solid var(--line);font-size:11px}.search{border:1px solid var(--line);padding:10px 13px;border-radius:7px;background:#fff;max-width:240px}.grid-two{display:grid;grid-template-columns:1.3fr 1fr;gap:20px}.guide{padding:24px}.guide h3{font-size:14px;margin:0 0 12px}.guide p{font-size:12px;margin:0}.step{display:flex;gap:14px;align-items:center;margin:24px 0}.step-number{width:30px;height:30px;border-radius:50%;background:var(--pale);display:grid;place-items:center;color:var(--green);font-size:11px}.step b{font-size:12px}.step small{display:block;margin-top:7px;color:var(--muted);font-size:10px}.login-layout{display:grid;grid-template-columns:1fr 390px;align-items:center;gap:65px;max-width:1150px;margin:50px auto}.intro h1{font-size:38px;line-height:1.6;margin:23px 0}.intro h1 span{color:var(--green)}.intro p{font-size:14px}.intro-steps{display:flex;gap:28px;margin-top:50px;color:#b89560;font-size:12px}.intro-steps b{display:block;margin-top:12px;color:#536c7c;font-size:11px}.login-card{background:#fff;padding:32px;border:1px solid var(--line);border-radius:15px;box-shadow:0 12px 35px #24374606}.mini-label{font-size:10px;color:var(--green);background:var(--pale);padding:6px 9px;border-radius:5px}.login-card h2{margin-top:24px}.login-card p{font-size:12px}.login-card label{margin-top:22px}.login-card .primary{width:100%;margin-top:15px}.login-card .primary span{float:left}.login-card small{display:block;text-align:center;font-size:10px;color:var(--muted);margin-top:20px}label{display:block;color:#344957;font-size:12px;margin-bottom:17px}input:not([type=checkbox]),select,textarea{display:block;width:100%;border:1px solid #d9dee1;border-radius:7px;padding:11px 12px;color:var(--ink);background:white;margin-top:9px;min-height:42px}textarea{min-height:80px;resize:vertical}input:focus,select:focus,textarea:focus{outline:2px solid #607f94;border-color:transparent}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.field-grid .wide{grid-column:1/-1}.check-label{display:flex;align-items:center;gap:9px;margin:10px 0}.check-label input{accent-color:var(--green)}dialog{border:1px solid var(--line);border-radius:15px;padding:0;width:650px;max-width:calc(100vw - 28px);max-height:90vh;color:var(--ink)}dialog::backdrop{background:#15273670;backdrop-filter:blur(2px)}dialog form{padding:26px}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px}.dialog-head h2{margin-top:7px}.icon-button{font-size:25px;background:none;color:var(--muted)}.dialog-actions{display:flex;gap:10px;padding-top:20px;border-top:1px solid var(--line);margin-top:15px}.error{color:var(--red);font-size:12px;min-height:8px;white-space:normal}.notice{padding:14px 18px;border:1px solid #e6dcb6;border-radius:8px;background:#fff9e6;font-size:12px;color:#7d692f;margin-bottom:22px;line-height:1.8}.toast{position:fixed;bottom:25px;left:30px;background:#243746;color:#fff;padding:15px 24px;border-radius:9px;z-index:20;max-width:80vw}.loading{padding:55px;text-align:center;color:var(--muted)}.line-row{display:grid;grid-template-columns:1fr 100px 30px;gap:8px;align-items:end;border-top:1px solid var(--line);padding-top:12px}.line-row button{margin-bottom:23px}.hint{font-size:11px;color:var(--muted);line-height:1.8;margin:0 0 14px}.permissions-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px;max-height:300px;overflow:auto}.override-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:9px}.override-row select{width:140px;margin:0}footer{font-size:10px;color:#657580;padding:20px 44px;border-top:1px solid var(--line);letter-spacing:1px;display:flex;justify-content:space-between}footer span{letter-spacing:0}.skip-link{position:fixed;top:-100px}.skip-link:focus{top:10px;right:10px;background:#fff;padding:15px;z-index:50}@media(max-width:1150px){.sidebar{width:205px;padding:25px 14px}.workspace{margin-right:205px}.topbar{padding:0 25px}main{padding:30px 25px}.login-layout{gap:25px;grid-template-columns:1fr 340px}.intro h1{font-size:30px}.cards{grid-template-columns:repeat(2,1fr)}}@media(max-width:850px){.login-layout{display:block;max-width:420px;margin:10px auto}.intro{margin-bottom:30px}.intro h1{font-size:25px;margin:10px 0}.intro-steps{display:none}.grid-two{grid-template-columns:1fr}.page-head{align-items:flex-start;flex-direction:column}.account{gap:7px}.top-title{font-size:12px}}@media(max-width:600px){.sidebar{position:relative;width:auto;padding:16px}.brand{margin-bottom:18px}.brand-mark{height:34px;width:34px;font-size:21px}.nav-label,.sidebar-bottom{display:none}nav{flex-direction:row;overflow:auto;gap:5px}nav button{white-space:nowrap;padding:10px;font-size:11px}.nav-icon{display:none}.workspace{margin:0}.topbar{height:75px;padding:15px 18px}main{padding:22px 16px}.cards{gap:9px}.metric{padding:16px}.metric strong{font-size:27px}.account #account-name{max-width:95px;overflow:hidden}.avatar{display:none}.field-grid{grid-template-columns:1fr}.field-grid .wide{grid-column:auto}.login-card{padding:24px}footer{padding:20px 16px}.permissions-grid{grid-template-columns:1fr}.line-row{grid-template-columns:1fr 80px 25px}.panel-head{padding:17px}.table-scroll th,.table-scroll td{padding:14px 16px}h1{font-size:25px}}

.layout-entry{display:block;padding:13px;margin-bottom:18px;border:1px solid #718694;border-radius:8px;font-size:12px;color:#f4eadb}.layout-entry:hover{background:#354f62}

.audit-fields{margin:0 0 1rem}.audit-fields>div{padding:.55rem 0;border-bottom:1px solid #e3e1da}.audit-fields dt{font-weight:700;color:#304d61}.audit-fields dd{margin:.3rem 0 0;overflow-wrap:anywhere}.audit-values{padding-inline-start:1.3rem}.audit-values>li{margin:.5rem 0}details summary{cursor:pointer;padding:.8rem 0;font-weight:700}

/* Arabic typography is hosted with the app; no external font requests. */
@font-face{font-family:Tajawal;src:url('/assets/Tajawal-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:Tajawal;src:url('/assets/Tajawal-Bold.ttf') format('truetype');font-weight:700;font-display:swap}
:root{font-family:Tajawal,'Segoe UI',sans-serif}
/* The workspace is revealed only after successful authentication. */
.signed-out{background:#f6f4ef;color:#243746}
.signed-out .sidebar,.signed-out .topbar,.signed-out footer{display:none}
.signed-out .workspace{margin:0;min-height:100svh}
.signed-out main{display:grid;place-items:center;position:relative;isolation:isolate;overflow:hidden;min-height:100svh;padding:48px 24px;background:radial-gradient(ellipse at 50% 36%,#fffdf9 0,transparent 65%)}
.signed-out .notice{position:relative;z-index:2;width:min(100%,440px);margin:0 auto 20px}
.signed-out .login-layout{display:block;width:100%;max-width:420px;margin:0;position:static}
.login-card{position:relative;z-index:1;padding:46px 42px 42px;background:#fffefa;border:1px solid #e7e3da;border-radius:24px;box-shadow:0 24px 80px #2437460a,0 2px 6px #24374604}
.login-brand{text-align:center;margin-bottom:43px}
.factory-symbol{width:64px;height:64px;color:#243746;display:block;margin:0 auto 20px;filter:drop-shadow(0 5px 8px #24374612)}
.login-brand h1{font-family:'Segoe UI',Arial,sans-serif;font-size:32px;line-height:1.25;letter-spacing:-1.4px;font-weight:600;margin:0;color:#243746}
.brand-period{color:#b89560}
.login-card label{font-size:15px;color:#344957;margin:0 0 23px;font-weight:700}
.login-card input:not([type=checkbox]){background:#faf9f6;border:1px solid #dedfdc;border-radius:10px;min-height:52px;font-size:15px;color:#243746;padding:13px 15px;margin-top:10px;font-weight:400;transition:border-color .15s,box-shadow .15s}
.login-card input::placeholder{color:#8b9396;font-size:13px}
.login-card input:focus{outline:2px solid #607f94;outline-offset:2px;border-color:#607f94;background:#fff}
.login-password-field{margin-bottom:23px}
.login-card .login-password-field>label{margin:0}
.login-password-control{display:flex;align-items:stretch;gap:8px;margin-top:10px}
.login-card .login-password-control input{flex:1;min-width:0;margin:0;font-size:16px}
.login-password-toggle{flex:none;min-width:68px;min-height:52px;padding:10px;border:1px solid #b8c3cb;border-radius:10px;background:#f0f3f5;color:#243746;font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.login-password-toggle:hover{background:#e4ebef}
.login-password-toggle:focus-visible{outline:2px solid #607f94;outline-offset:2px}
.login-card .primary{background:#243746;border:1px solid #243746;color:#fffaf2;min-height:52px;font-size:16px;border-radius:10px;margin-top:5px;transition:background .15s,box-shadow .15s}
.login-card .primary:hover{background:#354f62;box-shadow:0 6px 18px #24374618}
.login-card .primary:focus-visible{outline:3px solid #b89560}
.login-card .primary span{font-family:Arial,sans-serif;font-size:21px;font-weight:400}
.login-card .error:empty{display:none}
#login-inspect{font-size:13px;margin:8px 0;min-height:36px}
#login-input-details{white-space:pre-line;line-height:1.7;overflow-wrap:anywhere;margin:0 0 12px}
.rep-customer-list table{min-width:0;width:100%;table-layout:fixed;white-space:normal}
.rep-customer-list th,.rep-customer-list td{white-space:normal;overflow-wrap:anywhere;padding:10px 6px}
.rep-customer-list th:first-child{width:44%}
.rep-customer-list th:nth-child(2){width:32%}
.rep-customer-list td:nth-child(2){font-weight:700;font-variant-numeric:tabular-nums}
.rep-customer-list button{white-space:normal;max-width:100%;padding:7px}
#rep-debt-total{margin-bottom:20px;overflow-wrap:anywhere}
.login-card .error{font-size:14px;line-height:1.7;margin:0 0 14px}
.thread-art{position:absolute;width:520px;height:650px;pointer-events:none;z-index:-1;transform:rotate(-32deg);opacity:.65}
.thread-art-left{left:-270px;top:-130px}
.thread-art-right{right:-285px;bottom:-140px;transform:rotate(148deg)}
.thread-art i{position:absolute;inset:0;border:1px solid #b3bfc3;border-radius:48% 48% 8% 48%}
.thread-art i:nth-child(2){inset:22px;border-color:#c4b497}
.thread-art i:nth-child(3){inset:44px}
.thread-art i:nth-child(4){inset:66px;border-color:#c4b497}
.thread-art i:nth-child(5){inset:88px}
.thread-art i:nth-child(6){inset:110px;border-color:#c4b497}
@media(max-width:600px){.signed-out main{padding:32px 20px}.login-card{padding:36px 27px;border-radius:20px}.login-brand{margin-bottom:36px}.thread-art{opacity:.3}.thread-art-left{left:-410px}.thread-art-right{right:-425px}.login-brand h1{font-size:30px}}
@media(prefers-reduced-motion:reduce){.login-card input,.login-card .primary{transition:none}}

/* Shared interior identity: navy, ivory and restrained brass accents. */
.sidebar{overflow-y:auto;background:linear-gradient(165deg,#243746,#1b2c38);padding-top:30px}
.brand{margin-bottom:34px}.brand-mark{flex-shrink:0;border-color:#64727a;border-radius:13px;padding:4px;color:#f8f5ef}
.brand b{font-family:'Segoe UI',Arial,sans-serif;letter-spacing:1px;font-weight:600}.brand small{font-size:12px}
.nav-label{font-size:12px}.sidebar nav button{font-size:14px;min-height:44px;padding:11px 13px;border:1px solid transparent}
.sidebar nav button.active{background:#f4eadb;color:#243746;border-color:#d8bd95;box-shadow:0 3px 12px #0000000c}
.sidebar nav button.active:hover{background:#e9dcc7;color:#243746}
.layout-entry{color:#e1c79f;border-color:#62717a;font-size:13px}
.topbar{background:#fffefa;height:92px}.top-title{font-size:16px}.eyebrow{font-size:12px}.account{font-size:14px}
.page-head h1{font-size:30px}.page-head p{font-size:15px}.primary,.secondary{font-size:14px;border-radius:10px;min-height:44px}.ghost{font-size:13px}
.primary:focus-visible,.secondary:focus-visible,.ghost:focus-visible,nav button:focus-visible{outline:3px solid #b89560}
.panel,.metric{border-radius:16px;box-shadow:0 5px 20px #24374604}.panel-head{background:#fffefa}.panel-head h2{font-size:17px}
.metric-label{font-size:14px}.metric strong{font-size:36px}.metric small{font-size:12px}.metric-icon{background:#f3ebdd;color:#80653c;border-radius:10px}
.avatar{background:#f3ebdd;color:#80653c}.step-number{background:#f3ebdd;color:#80653c}.step b{font-size:14px}.step small,.guide p{font-size:13px}.guide h3{font-size:17px}
.table-scroll table{font-size:14px}th{font-size:13px;font-weight:700}td .code{font-size:13px}tbody tr:hover{background:#faf8f3}
.pill{font-size:12px;padding:5px 10px;border-radius:20px}.pager{font-size:13px}.hint{font-size:13px}.empty p{font-size:14px}
label{font-size:14px}input:not([type=checkbox]),select,textarea{min-height:46px;border-radius:10px}.notice{font-size:14px}.dialog-head h2{font-size:23px}
dialog{border-radius:20px;background:#fffefa;box-shadow:0 24px 80px #15273620}.dialog-actions{padding-top:18px}.audit-fields dt{color:#304d61}
footer{background:#fffefa;font-size:11px}.sidebar-bottom{font-size:12px}.sidebar-bottom small{font-size:11px}
@media(max-width:600px){.sidebar{padding:16px}.brand{margin-bottom:18px}.sidebar nav button{font-size:13px;min-height:42px;padding:9px 12px}.topbar{height:auto;min-height:76px}.top-title{font-size:14px}.account{font-size:12px}.page-head h1{font-size:26px}.metric strong{font-size:30px}.metric small{font-size:11px}.panel-head h2{font-size:16px}}

/* All ERP sections share the main authenticated navigation. */
.nav-group{border-bottom:1px solid #ffffff12;padding:4px 0}.nav-group summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:8px;color:#d8e0e5;padding:12px 10px;font-size:14px;font-weight:700;cursor:pointer;border-radius:9px}.nav-group summary::-webkit-details-marker{display:none}.nav-group summary:hover{background:#354f62}.nav-group summary.group-active{color:#e1c79f}.nav-group[open]>summary>span{transform:rotate(180deg)}.nav-children{border-inline-start:1px solid #64727a;margin:0 10px 9px 0;padding-inline-start:8px}.sidebar .nav-children button{width:100%;font-size:13px;justify-content:space-between;gap:8px;text-align:right;white-space:normal}.nav-children small{font-size:10px;color:#c7ced2;border:1px solid #62717a;padding:2px 4px;border-radius:4px;font-weight:400}.nav-children button.active small{color:#536c7c}.sidebar{scrollbar-width:thin;scrollbar-color:#718694 #243746}summary:focus-visible{outline:3px solid #b89560;outline-offset:2px}
.nav-stage{color:#d8e0e5;font-size:12px;font-weight:700;padding:12px 10px 5px;border-top:1px solid #ffffff18;margin-top:5px}.nav-stage:first-child{border-top:0;margin-top:0}
@media(max-width:600px){#navigation{display:block;max-height:260px;overflow:auto}#navigation>button{width:100%}.nav-group summary{font-size:14px}.sidebar .nav-children button{padding:10px;min-height:42px}}
/* Document tabs live in the shared sidebar when rendered inside the app. */
#page-body .doc-layout{grid-template-columns:minmax(0,1fr)}#page-body .doc-layout>.doc-list{display:none}
/* Reference-inspired working screens: compact data, clear actions, responsive navigation. */
body:not(.signed-out){--ink:#1f2733;--muted:#697586;--line:#e6e9ef;--green:#2563eb;--paper:#f4f5f7;--pale:#eff6ff;background:var(--paper);color:var(--ink)}
body:not(.signed-out) .sidebar{background:#0f172a;color:#e2e8f0;width:250px;padding:24px 16px}
body:not(.signed-out) .workspace{margin-right:250px}
body:not(.signed-out) .topbar{height:72px;padding:12px 28px;background:white}
body:not(.signed-out) main{padding:24px 28px;min-width:0}
body:not(.signed-out) .page-head{margin-bottom:20px}
body:not(.signed-out) h1{font-size:26px}
body:not(.signed-out) .panel{background:white;border-color:#e6e9ef;border-radius:12px;box-shadow:0 2px 5px #10182804}
body:not(.signed-out) .panel-head{padding:16px 20px}
body:not(.signed-out) .guide{padding:18px 20px}
body:not(.signed-out) .metric{padding:17px 20px;border-color:#e6e9ef;background:white}
body:not(.signed-out) .metric strong{font-size:25px;font-weight:700;margin:10px 0 0;font-variant-numeric:tabular-nums}
body:not(.signed-out) .cards{gap:12px;grid-template-columns:repeat(auto-fit,minmax(155px,1fr))}
body:not(.signed-out) .primary{background:#2563eb;color:white}
body:not(.signed-out) .primary:hover{background:#1d4ed8}
body:not(.signed-out) .secondary{background:white;color:#344054;border-color:#e1e6ee}
body:not(.signed-out) th{background:#f8fafc;color:#64748b;font-weight:700;padding:12px 16px}
body:not(.signed-out) td{padding:13px 16px;border-color:#eef1f5;font-variant-numeric:tabular-nums}
body:not(.signed-out) tbody tr:hover{background:#f8fbff}
body:not(.signed-out) .sidebar button.active{background:#2563eb;color:white}
body:not(.signed-out) .nav-group summary.group-active{color:#93c5fd}
body:not(.signed-out) .sidebar button:hover{background:#1e293b;color:white}
.account-tabs{display:flex;gap:6px;overflow:auto;border-bottom:1px solid #dde3ed;margin:18px 0 20px;padding:0 0 6px}
.account-tabs button{background:transparent;color:#64748b;white-space:nowrap;padding:12px 16px;border-radius:8px;flex-shrink:0;font-weight:700}
.account-tabs button[aria-selected=true]{background:#eaf1ff;color:#1d4ed8;box-shadow:inset 0 -3px #2563eb}
.account-filter{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:16px;background:white;border:1px solid #e6e9ef;border-radius:12px;margin-bottom:16px}
.account-filter label{flex:1;min-width:150px;margin:0}.account-filter input{margin-top:6px}
.rep-statement-ledger table{width:100%;min-width:0;table-layout:fixed}.rep-statement-ledger th,.rep-statement-ledger td{white-space:normal;overflow-wrap:anywhere;vertical-align:top;padding:10px 8px;border:1px solid #dce3ed}.rep-statement-ledger th:nth-child(2){width:25%}.rep-statement-ledger tr:first-child,.rep-statement-ledger tr:last-child{font-weight:700;background:#eff6f9}.rep-statement-metrics strong{font-size:20px}
@media screen and (max-width:600px){.rep-statement-ledger table,.rep-statement-ledger tbody{display:block}.rep-statement-ledger thead{display:none}.rep-statement-ledger tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:10px;border:1px solid #dce3ed;border-radius:8px;overflow:hidden}.rep-statement-ledger td{display:block;padding:9px;font-size:12px;border:0}.rep-statement-ledger td::before{content:attr(data-label);display:block;font-weight:700;color:#607087;margin-bottom:5px}.rep-statement-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.rep-statement-metrics strong{font-size:16px}}
@media print{.rep-statement-print .rep-statement-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0}.rep-statement-print .metric{padding:8px;border:1px solid #888}.rep-statement-print .metric strong{display:block;font-size:11pt}}
.nav-toggle,.nav-backdrop{display:none}
@media(max-width:900px){
 body:not(.signed-out) .sidebar{display:none;position:fixed;inset:0 0 0 auto;height:100dvh;width:min(300px,85vw);z-index:40;overflow:auto}
 body:not(.signed-out).nav-open .sidebar{display:flex}
 body:not(.signed-out) .workspace{margin:0;width:100%;min-width:0}
 body:not(.signed-out) .nav-toggle{display:block;flex:none;font-size:20px}
 body:not(.signed-out) .topbar{padding:12px 16px;gap:10px}
 body:not(.signed-out) .topbar>.account{margin-inline-start:auto}.topbar .eyebrow{display:none}
 body:not(.signed-out) main{padding:18px 12px}
 body:not(.signed-out) .nav-backdrop:not([hidden]){display:block;position:fixed;inset:0;background:#0f172a75;z-index:39}
 body:not(.signed-out) #navigation{max-height:none;overflow:visible}
 body:not(.signed-out) .sidebar .brand{margin-bottom:24px}
 .account-filter{gap:8px}.account-filter label{min-width:125px}
}
.signed-out .nav-toggle,.signed-out .nav-backdrop{display:none!important}
.cell-sub{display:block;color:#8490a3;font-size:12px;margin-top:3px}
.rep-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:18px}
.rep-card{background:white;border:1px solid #e4e9f0;border-radius:14px;padding:22px;box-shadow:0 3px 10px #172d4510}
.rep-card header{display:flex;align-items:center;gap:12px;margin-bottom:20px}.rep-card h2{margin:0;font-size:20px}
.rep-avatar{display:grid;place-items:center;background:#eaf1ff;color:#2563eb;width:46px;height:46px;border-radius:50%;font-size:23px;font-weight:700}
.rep-card dl{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:0 0 20px}.rep-card dt{color:#64748b;font-size:13px}.rep-card dd{margin:5px 0 0;font-size:23px;font-weight:700;font-variant-numeric:tabular-nums}
.rep-incentives{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;background:#f4f8ff;padding:14px;border-radius:10px;color:#64748b;font-size:12px}.rep-incentives strong{display:block;color:#1e40af;font-size:20px;margin-top:5px}
.portfolio-metrics .metric{padding:18px}.portfolio-metrics .metric strong{font-size:28px}.rep-card .actions{border-top:1px solid #edf0f5;padding-top:12px}
.section-title{display:flex;align-items:center;gap:12px;font-size:17px;margin:24px 0 12px}.section-title small{font-size:12px;color:#8792a2;font-weight:400}.aging-row{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid #eef1f5}
.account-tabs button[aria-current=page]{background:#eaf1ff;color:#1d4ed8;box-shadow:inset 0 -3px #2563eb}
.source-profile{white-space:pre-wrap;font:inherit;overflow-wrap:anywhere}

/* Mobile entry: one expanded product, compact invoice summaries. */
.sales-product{display:block;border:1px solid #dedbd3;border-radius:10px;margin:8px 0;background:#fff;max-width:100%;min-width:0}
.sales-product>summary{display:flex;flex-direction:column;gap:4px;padding:12px;cursor:pointer;min-height:48px;overflow-wrap:anywhere}
.sales-product>summary strong{font-size:14px}.sales-product>summary span{font-size:12px;color:#647580}
.sales-product[open]>summary{background:#f3f0e8;border-radius:10px 10px 0 0}
.sales-product-body{padding:12px;min-width:0}.sales-product-body [hidden]{display:none!important}
[data-sale-results]{display:grid;grid-template-columns:1fr;gap:6px;margin:8px 0;max-height:250px;overflow-y:auto}
[data-sale-results] button{text-align:right;white-space:normal;padding:12px;min-height:44px}
[data-sale-results] small{color:#647580;font-size:10px}
.sales-product-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0}
.sales-product-toolbar label{display:flex;align-items:center;gap:4px;min-width:0;font-size:12px}
.sales-product-toolbar select{width:90px;padding:6px;min-height:44px}
.sales-product-toolbar button{min-height:44px;padding:8px}
.sales-color>strong{display:block;margin:12px 0 6px;font-size:13px}
.sales-size-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(78px,1fr));gap:8px}
.sales-size-cell{display:flex;flex-direction:column;align-items:stretch;gap:4px;text-align:center;margin:0;min-width:0;padding:6px;border:1px solid #dedbd3;border-radius:8px}
.sales-size-cell>small{display:none}.sales-size-cell>span{font-size:10px;color:#647580}
.sales-size-cell input:is([type=number],.factory-number){width:100%;min-width:0;height:48px;font-size:18px;text-align:center;padding:6px;border-radius:6px}
[data-sale-done]{width:100%;min-height:48px;margin-top:14px}
@media(max-width:600px){.sales-size-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sales-product-body{padding:10px}#editor .field-grid{grid-template-columns:minmax(0,1fr)}}

/* Vertical sizes: product, size and quantity remain visible after Done. */
.sales-size-grid{display:flex;flex-direction:column;gap:6px}
.sales-size-cell{display:grid;grid-template-columns:minmax(0,1fr) 46px 84px;gap:4px 8px;align-items:center;text-align:right;padding:8px}
.sales-size-cell .sales-item-name{grid-column:1;grid-row:1;font-size:12px;overflow-wrap:anywhere;color:inherit}
.sales-size-cell>strong{grid-column:2;grid-row:1;text-align:center}
.sales-size-cell>span:not(.sales-item-name){grid-column:1 / 3;grid-row:2;font-size:10px}
.sales-size-cell input:is([type=number],.factory-number){grid-column:3;grid-row:1 / 3;height:44px;min-width:0}
.sales-size-cell>span.factory-stepper{grid-column:3;grid-row:1 / 3;position:relative;display:block;min-width:0;direction:ltr}
.sales-size-cell .factory-stepper input.factory-number{padding-right:25px;padding-left:3px}
.sales-size-cell .factory-stepper button{position:absolute;right:1px;width:22px;height:21px;min-height:0;padding:0;margin:0;border:0;border-left:1px solid #c7cfd5;border-radius:0;background:#edf2f7;color:#233746;font:10px Arial;line-height:20px;text-align:center;cursor:pointer}
.sales-size-cell .factory-stepper button[data-number-step="1"]{top:1px;border-bottom:1px solid #c7cfd5;border-top-right-radius:5px}
.sales-size-cell .factory-stepper button[data-number-step="-1"]{bottom:1px;border-bottom-right-radius:5px}
.sales-size-cell .factory-stepper button:hover{background:#dce6ee}
.sales-size-cell .factory-stepper button:focus-visible{outline:2px solid #285d82;z-index:1}
.sales-size-cell .factory-stepper button:disabled{opacity:.45;cursor:default}
.sales-size-cell>span.cut-target-inputs{grid-column:1 / -1;grid-row:3;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border-top:1px solid #dedbd3;padding-top:6px;text-align:center}
.cut-target-inputs>label{display:flex;flex-direction:column;gap:3px;min-width:0;margin:0;font-size:11px}
.cut-target-group{display:flex;flex-direction:column;gap:5px;min-width:0;padding:6px;border:1px solid #c5ced9;border-radius:6px;background:#f8fafc}
.cut-target-group>label{display:flex;flex-direction:column;gap:3px;min-width:0;margin:0;font-size:11px}
.cut-target-group>small{font-size:10px;color:#526578}
.sales-size-cell .cut-target-inputs input:is([type=number],.factory-number){height:36px;font-size:15px}
.cut-target-item{display:grid;gap:4px;text-align:right;line-height:1.6}
.cut-target-values{display:grid;gap:6px;text-align:center}
.cut-target-values>span{display:grid;gap:2px}
.cut-target-values>span+span{border-top:1px solid #c5ced9;padding-top:5px}
.cut-target-values small,.cut-target-item small{color:#526578;font-size:.85em}
.cut-target-values bdi,.cut-target-pieces{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.cut-target-summary{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 20px}
.cut-target-summary>div{flex:1;min-width:110px;border:1px solid #9baaba;border-radius:6px;padding:8px;text-align:center;display:grid;gap:5px}
.cut-target-summary strong{white-space:nowrap}
@media screen{
 .cut-target-document table{min-width:560px;width:100%;table-layout:fixed}
 .cut-target-document th:first-child{width:31%}
 .cut-target-document th:nth-child(2){width:12%}
 body:not(.signed-out) :is(.cut-target-document,.cut-plan-document) :is(th,td){border:1.5px solid #718399;padding:10px 6px;vertical-align:middle;text-align:center;font-size:13px;line-height:1.6;overflow-wrap:normal;word-break:normal}
 body:not(.signed-out) :is(.cut-target-document,.cut-plan-document) th{background:#edf2f7;color:#243746;font-weight:700;white-space:nowrap}
 body:not(.signed-out) .cut-target-document td{white-space:normal}
 body:not(.signed-out) .cut-target-document td strong{font-weight:700}
 body:not(.signed-out) .cut-target-document td:first-child{overflow-wrap:break-word}
 body:not(.signed-out) .cut-plan-document :is(th,td):first-child{text-align:right;min-width:150px;white-space:normal}
 body:not(.signed-out) .cut-plan-document :is(th,td):not(:first-child){min-width:48px;white-space:nowrap}
}
@media(max-width:600px){.sales-size-grid{display:flex;flex-direction:column}.sales-size-cell{grid-template-columns:minmax(0,1fr) 38px 76px}}

/* Compact size/quantity tiles after Done, wrapping on narrow phones. */
.sales-product:not([open])>summary{flex-direction:column;align-items:stretch;gap:6px;white-space:normal}
.sales-product>summary [data-sale-summary]{display:flex;flex-direction:column;gap:5px;min-width:0}
.sales-mini-color{display:flex;flex-direction:column;gap:3px;min-width:0}
.sales-product>summary .sales-mini-color-name{font-size:10px;color:#647580}
.sales-mini-sizes{display:flex;flex-wrap:wrap;gap:4px}
.sales-product>summary .sales-mini-size{display:flex;flex-direction:column;min-width:34px;text-align:center;border:1px solid #dedbd3;border-radius:5px;overflow:hidden;background:#fff}
.sales-product>summary .sales-mini-size>span{font-size:10px;line-height:16px;padding:0 5px;background:#f3f0e8;color:#647580}
.sales-mini-size>b{font-size:12px;line-height:20px;padding:0 5px;font-variant-numeric:tabular-nums;color:#233746;direction:ltr;unicode-bidi:isolate;white-space:nowrap}

.new-user-permissions fieldset{border:1px solid #dedbd3;border-radius:8px;margin:12px 0;padding:12px;min-width:0}.new-user-permissions legend{font-weight:700;color:#233746;padding:0 6px}.new-user-permissions .check-label{align-items:flex-start;padding:6px;white-space:normal}.new-user-permissions .check-label:has(input:disabled){opacity:.5}
.account-print-output{display:none}@media print{body.printing-account>*{display:none!important}body.printing-account>.account-print-output{display:block!important;color:#111;background:#fff;font-family:Arial,sans-serif;font-size:9pt}.account-print-output h1{font-size:16pt}.account-print-output p{margin:3px 0}.account-print-output table{width:100%;border-collapse:collapse;min-width:0;font-size:8pt}.account-print-output th,.account-print-output td{border:1px solid #bbb;padding:4px;white-space:normal;overflow-wrap:anywhere;color:#111;background:#fff}.account-print-output .table-scroll{overflow:visible}.account-print-output thead{display:table-header-group}.account-print-output tr{break-inside:avoid}@page{size:A4 landscape;margin:8mm}}
@media print{
 @page sales-invoice{size:A4 landscape;margin:8mm}
 .sales-invoice-print{page:sales-invoice}
 .sales-invoice-print h1{margin:0 0 8px}
 .sales-invoice-print table{table-layout:fixed;margin:8px 0;width:100%;border:2pt solid #000;font-size:9pt}
 /* Outrank signed-in screen tables and tr:last-child so every printed edge stays black. */
 body.printing-account .sales-invoice-print th,body.printing-account .sales-invoice-print td{border:2pt solid #000;text-align:center;vertical-align:middle;padding:5px 2px;color:#000;background:#fff}
 .sales-invoice-print thead th{border-bottom:2pt solid #000}
 .sales-invoice-print .invoice-item-col{width:46mm}
 .sales-invoice-print .invoice-measure-col{width:14mm}
 .sales-invoice-print .invoice-money-col{width:24mm}
 .sales-invoice-print .invoice-discount-col{width:17mm}
 body.printing-account .sales-invoice-print .invoice-item{text-align:right;padding:5px}
 .sales-invoice-print .invoice-quantity{display:block;font-size:10pt;font-weight:bold}
 body.printing-account .sales-invoice-print .invoice-size-cell,body.printing-account .sales-invoice-print .invoice-measure{padding:0}
 .sales-invoice-print .invoice-size-rate{line-height:1.3}
 .sales-invoice-print .invoice-size-rate>*{box-sizing:border-box;min-height:7mm;padding:3px 2px;margin:0}
 .sales-invoice-print .invoice-size-rate+.invoice-size-rate{border-top:2pt solid #000}
 .sales-invoice-print .invoice-size-price{font-weight:normal;border-top:2pt solid #000}
 .sales-invoice-print .invoice-size-cell bdi{white-space:nowrap}
 .sales-invoice-print .invoice-money{white-space:nowrap}
 .sales-invoice-print tbody{break-inside:avoid}
 .sales-invoice-print small{display:block;font-size:7pt}
 .sales-invoice-print .invoice-totals{break-inside:avoid;margin:10px 0}
 .sales-invoice-print .invoice-balances{display:flex;gap:12mm;border-top:2px solid #000;padding-top:6px;font-size:12pt}
 .sales-invoice-print .invoice-balances p{margin:0}
 .sales-invoice-print .invoice-balance-note{font-size:8pt;margin:5px 0}
 .sales-invoice-print .invoice-total{font-size:13pt;border-top:2px solid #333;padding-top:6px}
 .sales-invoice-print .invoice-cancelled{font-size:14pt;font-weight:bold;border:2px solid #333;padding:8px}
}
/* The on-screen sales invoice uses the same product/size matrix as its printout. */
dialog:has(.sales-invoice-view){width:min(1400px,96vw);max-width:96vw}
.sales-invoice-view{grid-column:1/-1;min-width:0;max-width:100%;overflow-x:auto;margin:8px 0 16px}
.sales-invoice-view .invoice-size-matrix{table-layout:fixed;width:100%;min-width:680px;border-collapse:collapse;border:2px solid #344054;margin:0 0 12px;font-size:13px}
.sales-invoice-view .invoice-item-col{width:20%}.sales-invoice-view .invoice-measure-col{width:6%}.sales-invoice-view .invoice-money-col{width:10%}.sales-invoice-view .invoice-discount-col{width:8%}
body .sales-invoice-view th,body .sales-invoice-view td{border:1.5px solid #667085;padding:6px 3px;text-align:center;vertical-align:middle;white-space:normal;overflow-wrap:anywhere;color:#172b3a;background:#fff}
body .sales-invoice-view thead th{background:#edf2f7;font-size:13px;font-weight:700}
body .sales-invoice-view .invoice-item{text-align:right;padding:8px;font-size:14px}
.sales-invoice-view small{display:block;font-size:12px;line-height:1.4}
body .sales-invoice-view .invoice-size-cell,body .sales-invoice-view .invoice-measure{padding:0}
.sales-invoice-view .invoice-size-rate{line-height:1.35}.sales-invoice-view .invoice-size-rate>*{display:block;box-sizing:border-box;min-height:30px;padding:6px 2px;margin:0}
.sales-invoice-view .invoice-quantity{font-size:14px;font-weight:700}.sales-invoice-view .invoice-size-price{border-top:1px solid #98a2b3;font-weight:400}
.sales-invoice-view .invoice-size-rate+.invoice-size-rate{border-top:1.5px solid #667085}
.sales-invoice-view bdi{white-space:nowrap}.sales-invoice-view .invoice-money{font-weight:700}
@media(max-width:600px){dialog:has(.sales-invoice-view){padding:14px}.sales-invoice-view .invoice-size-matrix{font-size:12px}}
.incentive-net{border-top:2px solid #263f55;padding-top:12px;margin-top:14px;font-size:1.15em;break-inside:avoid}
.incentive-receipts table{min-width:0;width:100%;table-layout:fixed}.incentive-receipts th:first-child{width:34%}.incentive-receipts td,.incentive-receipts th{white-space:normal!important;padding:8px 5px;overflow-wrap:anywhere}.incentive-date{display:block;direction:ltr;text-align:right;font-size:12px;margin-top:3px}.incentive-exception{display:inline-block;background:#fff0ce;color:#654600;border:1px solid #dcc38d;border-radius:5px;padding:2px 5px;font-size:11px;margin-top:4px}.incentive-reason{display:block;font-size:11px;line-height:1.4}.incentive-rate-list{display:flex;flex-wrap:wrap;gap:3px}.incentive-rate-box{display:flex;flex-direction:column;align-items:center;min-width:46px;border:1px solid #d6dce1;border-radius:6px;padding:3px 5px;background:#faf9f6}.incentive-rate-box span{font-size:11px;color:#526271}.incentive-rate-box strong{font-size:13px}.incentive-receipts .table-scroll{overflow-x:auto}@media(max-width:600px){.incentive-receipts th,.incentive-receipts td{font-size:11px;padding:6px 3px}.incentive-rate-box{min-width:0;padding:3px}.incentive-receipts th:first-child{width:32%}}

.back-toolbar{position:sticky;top:0;z-index:12;background:var(--paper);padding:8px 0;margin-bottom:12px}.back-toolbar button{min-height:42px;padding:8px 16px;font-weight:700}

/* Customer evaluation: keep actions beside the customer, without horizontal scrolling. */
#customer-kpis .kpi-compact-list{display:grid;gap:10px;min-width:0}
#customer-kpis .kpi-customer{border:1px solid #dce3eb;border-radius:12px;background:#fff;padding:14px;min-width:0}
#customer-kpis .kpi-customer-main{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:start}
#customer-kpis .kpi-identity,#customer-kpis .kpi-metric{display:flex;flex-direction:column;gap:5px;min-width:0;overflow-wrap:anywhere}
#customer-kpis .kpi-identity small,#customer-kpis .kpi-metric small{color:#576779;font-size:12px}
#customer-kpis .kpi-near-actions{display:flex;flex-wrap:wrap;gap:6px}
#customer-kpis .kpi-customer .ghost{padding:5px 8px;min-height:34px;white-space:normal;font-size:13px}
#customer-kpis .kpi-identity>strong .ghost{font-weight:700;font-size:15px;padding-inline:0;text-align:start}
#customer-kpis .kpi-inline-detail{border-top:1px solid #dce3eb;margin-top:12px;padding-top:10px}
#customer-kpis .kpi-inline-detail[hidden]{display:none}
#customer-kpis .kpi-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0}
#customer-kpis .kpi-detail-grid dt{font-size:12px;color:#576779}
#customer-kpis .kpi-detail-grid dd{margin:3px 0;overflow-wrap:anywhere}
#customer-kpis #kpi-summary table{min-width:0;width:100%;table-layout:fixed}
#customer-kpis #kpi-summary th,#customer-kpis #kpi-summary td{white-space:normal;overflow-wrap:anywhere;padding:8px;font-size:13px}
#customer-kpis #kpi-summary .ghost{padding:4px;white-space:normal;font-size:inherit}
@media(max-width:850px){#customer-kpis .kpi-customer-main{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}#customer-kpis .kpi-identity{grid-column:1/-1}#customer-kpis .kpi-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:450px){#customer-kpis .kpi-customer{padding:10px}#customer-kpis .kpi-metric{font-size:12px}#customer-kpis #kpi-summary th,#customer-kpis #kpi-summary td{font-size:11px;padding:4px}}

@media print{.order-packing-print .packing-check{margin-top:8px;font-size:9pt;display:flex;align-items:center;gap:6px}.order-packing-print .packing-check span{display:inline-block;width:7mm;height:7mm;border:1.5px solid #111}.order-packing-print td{padding:8px}.order-packing-print>p:last-child{margin-top:15px}}

@media print{
 .order-packing-print .packing-matrix table{table-layout:fixed;width:100%;direction:rtl;font-size:8pt;border-collapse:collapse;border:1.5pt solid #000}
 .order-packing-print .packing-matrix th,.order-packing-print .packing-matrix td{padding:3px 1px;text-align:center;vertical-align:middle;overflow-wrap:anywhere;border:1pt solid #000;color:#000}
 .order-packing-print .packing-matrix th{border-bottom:1.5pt solid #000;font-weight:700}
 .order-packing-print .packing-matrix td:not(:first-child){font-weight:700}
 .order-packing-print .packing-matrix th:first-child,.order-packing-print .packing-matrix td:first-child{width:42mm;text-align:right;padding:3px 5px}
 .order-packing-print .packing-matrix small{display:block;font-size:7pt}
 .order-packing-print .packing-tick{display:block;width:3mm;height:3mm;border:1px solid #111;margin-top:2px}
}

.materials-page table,.materials-card table{min-width:0;width:100%;table-layout:fixed}
.materials-page th,.materials-page td,.materials-card th,.materials-card td{white-space:normal;overflow-wrap:anywhere;padding:12px 8px}
.materials-page th:first-child{width:45%}.materials-page th:nth-child(2){width:22%}
.materials-row-actions{display:flex;flex-wrap:wrap;gap:6px}.materials-row-actions button{padding:6px 9px;min-height:38px}
.materials-page .hint,.materials-card .hint{display:block}
.materials-card th:nth-child(2){width:32%}.materials-card details{font-size:12px}
.materials-summary table{min-width:0;width:100%;table-layout:fixed;white-space:normal}
.materials-summary th,.materials-summary td{padding:7px 8px;overflow-wrap:anywhere;vertical-align:top;white-space:normal}
.materials-summary th:first-child{width:52%}.materials-summary th:nth-child(2){width:18%}.materials-summary .hint{display:block;font-size:12px}
.materials-summary-report h1{font-size:18px;margin:20px 0 8px}.materials-summary-options{margin:10px 0}
.materials-summary details{margin-top:8px;font-size:12px}.materials-summary details p{margin:8px 0}
.materials-summary h3{margin:22px 0 10px}
@media print{
 @page materials-movement{size:A4 portrait;margin:12mm}
 .materials-summary-print{page:materials-movement}
 body.printing-account .materials-summary-print h1{font-size:15pt;margin:0 0 8px}
 body.printing-account .materials-summary-print h3{font-size:11pt;margin:12px 0 5px;break-after:avoid}
 body.printing-account .materials-summary-print table{table-layout:fixed;font-size:10pt}
 body.printing-account .materials-summary-print th,body.printing-account .materials-summary-print td{border:1px solid #222;padding:4px 7px;text-align:right;color:#111;background:#fff}
 body.printing-account .materials-summary-print th:first-child{width:52%}
 body.printing-account .materials-summary-print th:nth-child(2){width:18%}
 body.printing-account .materials-summary-print .table-scroll{overflow:visible}
}
@media(max-width:600px){.materials-summary th,.materials-summary td{padding:8px 4px;font-size:12px}.materials-summary .field-grid{grid-template-columns:1fr 1fr}.materials-summary .field-grid label{min-width:0}.materials-summary input,.materials-summary select{width:100%;min-width:0}}
@media(max-width:600px){.materials-page th,.materials-page td,.materials-card th,.materials-card td{padding:8px 4px;font-size:12px}.materials-row-actions button{font-size:12px;padding:6px}.materials-card .field-grid{grid-template-columns:1fr}}
.materials-movement-status{display:block;color:#9c3a20;font-weight:600;margin:.35rem 0}
.hr-employee-filters{margin:16px 0;grid-template-columns:repeat(2,minmax(0,1fr))}
.hr-department-group{border:1px solid #d9e3ee;border-radius:10px;margin:10px 0;overflow:hidden}
.hr-department-group>summary{cursor:pointer;padding:14px 16px;background:#f4f7fb;color:#173b69;font-size:16px}
.hr-department-group>summary span{float:left;font-size:14px;color:#526781}
.hr-department-group[open]>summary{border-bottom:1px solid #d9e3ee}
.hr-department-group .table-scroll{margin:0}
@media(max-width:600px){.hr-employee-filters{grid-template-columns:1fr}.hr-department-group>summary{padding:12px}}

.invoice-customer-picker{position:relative;margin-bottom:16px}
#invoice-customer-results{max-height:240px;overflow-y:auto;border:1px solid #cbd5e1;border-radius:10px;background:#fff;margin-top:4px}
#invoice-customer-results button{display:block;width:100%;min-height:44px;border:0;border-radius:0;border-bottom:1px solid #e2e8f0;background:#fff;color:#172b4d;text-align:right;white-space:normal;padding:12px 14px}
#invoice-customer-results button:hover,#invoice-customer-results button[aria-selected="true"]{background:#eaf1ff;color:#1749a0}
#invoice-customer-hint{display:block;margin-top:6px}

.rep-requests-page{container:rep-requests / inline-size;min-width:0;max-width:100%}
.rep-requests-page .table-scroll{overflow:visible}
.rep-requests-page table{min-width:0;width:100%;table-layout:fixed;white-space:normal}
.rep-requests-page th,.rep-requests-page td{white-space:normal;overflow-wrap:anywhere;padding:10px 8px}
.rep-requests-page td button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.order-queue-table{container:order-queue / inline-size;min-width:0;max-width:100%}
.order-queue-table table{min-width:0;width:100%;table-layout:fixed;white-space:normal;border:2px solid #5b6f85}
.order-queue-table th,.order-queue-table td{white-space:normal;overflow-wrap:anywhere;vertical-align:top;padding:12px 10px}
.order-queue-table thead th,.order-queue-table tbody td{border:2px solid #5b6f85}
.order-queue-table thead th{background:#edf2f7;color:#243746;font-weight:700}
.order-queue-financial th:nth-child(1){width:17%}.order-queue-financial th:nth-child(2){width:33%}.order-queue-financial th:nth-child(3){width:16%}.order-queue-financial th:nth-child(4){width:16%}.order-queue-financial th:nth-child(5){width:18%}
.order-queue-quantities th:nth-child(1){width:30%}.order-queue-quantities th:nth-child(2){width:25%}.order-queue-quantities th:nth-child(3){width:21%}.order-queue-quantities th:nth-child(4){width:24%}
.order-queue-table th:nth-last-child(-n+2),.order-queue-table td:nth-last-child(-n+2){text-align:center;overflow-wrap:normal;word-break:normal;line-height:1.7}
.order-queue-status{display:block;border:1px solid #d9e3ee;border-radius:8px;background:#f3f6fa;padding:9px 7px;color:#234463;font-size:12px;font-weight:700}
.order-queue-revision{display:block;margin-top:9px;font-size:12px;color:#855718}
.order-queue-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px}
.order-queue-actions>button{width:100%;min-height:38px;margin:0;padding:9px 7px;border:1px solid #d9e3ee;border-radius:7px;background:#fff;font-size:12px;line-height:1.6;white-space:normal;overflow-wrap:normal;word-break:normal}
.order-queue-actions>button:hover:not(:disabled){background:#eef4fb;border-color:#a4b9d1}
.order-queue-actions>[data-action="order-cancel-invoice"]{color:#aa3e38;border-color:#ebd3d0}
.order-queue-table td>small{display:block;margin-top:6px}.order-queue-table td>button{padding:8px}
.order-inline-approval{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.order-inline-approval label{font-size:12px;max-width:90px;margin:0}.order-inline-approval input{width:85px;margin-top:4px;min-height:40px;padding:7px}
.order-inline-total small,.order-inline-total strong{display:block}.order-inline-total small{font-size:12px;color:#526781}.order-inline-total strong{margin-top:4px;color:#173b69}
.order-inline-approval button{min-height:40px;padding:8px 12px;font-size:13px}.order-inline-error{flex-basis:100%;color:#b42318}.order-inline-error:empty{display:none}
.order-inline-error:not(:empty){display:block;min-width:0;padding:10px;border:1px solid #e3a9a5;border-radius:7px;background:#fff5f4;font-size:12px}
.order-inline-error,#form-error{white-space:pre-line;overflow-wrap:anywhere;line-height:1.8}
.order-inline-approval .order-discount-hint{flex-basis:100%;max-width:440px;line-height:1.6}.order-inline-approval label{max-width:105px}
.order-shipping-fields{flex-basis:100%;max-width:560px;border:1px solid #d9e3ee;border-radius:8px;padding:9px}.order-shipping-fields summary{cursor:pointer;color:#173b69;font-weight:700}.order-shipping-fields .field-grid{margin-top:10px;grid-template-columns:repeat(2,minmax(0,1fr))}.order-inline-approval .order-shipping-fields label{max-width:none}.order-inline-approval .order-shipping-fields input{width:100%}.shipping-transfer{border:1px solid #d9e3ee;border-inline-start:4px solid #d39b23;border-radius:8px;padding:14px;margin:12px 0;overflow-wrap:anywhere}.shipping-transfer h3{margin-top:0}.shipping-transfer p{line-height:1.8}
.payroll-tabs{display:flex;gap:10px;flex-wrap:wrap;padding:14px 0}
.order-price-selection{flex-basis:100%;max-width:560px;border:1px solid #d9e3ee;border-radius:8px;padding:9px}
.order-price-selection summary{cursor:pointer;color:#173b69;font-weight:700}
.order-inline-approval .order-price-selection label{max-width:none;margin-top:8px}
.order-queue-table .order-inline-approval{gap:8px;min-width:0;max-width:100%}
.order-queue-table .order-inline-approval>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
.order-queue-table .order-inline-approval>label{flex:1 1 90px;max-width:none}
.order-queue-table .order-inline-approval input,.order-queue-table .order-inline-approval select{width:100%;min-width:0;max-width:100%;font-size:13px}
.order-queue-table .order-inline-approval summary{white-space:normal;line-height:1.6;padding:2px 0}
.order-queue-table .order-price-selection,.order-queue-table .order-shipping-fields{width:100%}
.order-queue-table .order-inline-total{flex:1 1 130px}
.order-queue-table .order-inline-total strong{font-weight:700}
.order-queue-table .order-shipping-fields .field-grid{grid-template-columns:minmax(0,1fr);gap:8px}
@container order-queue (max-width:1000px){
 .order-queue-table table,.order-queue-table tbody{display:block;border:0}
 .order-queue-table thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}
 .order-queue-table tbody tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:12px;border:2px solid #5b6f85;border-radius:10px;overflow:hidden;background:#fff}
 .order-queue-financial tbody tr{grid-template-areas:"customer document status" "approval approval actions"}
 .order-queue-quantities tbody tr{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"customer document" "status actions"}
 .order-queue-table tbody td{min-width:0;border:0!important;box-shadow:inset 0 0 0 1px #94a6b9;padding:10px!important;text-align:right!important;overflow-wrap:anywhere!important}
 .order-queue-table tbody td::before{display:block;font-size:12px;font-weight:700;color:#526781;margin-bottom:7px;line-height:1.5}
 .order-queue-table tbody td:first-child{grid-area:customer;background:#f3f6fa}
 .order-queue-table tbody td:first-child::before{content:"العميل"}
 .order-queue-table tbody td:nth-last-child(3){grid-area:document;background:#f3f6fa}
 .order-queue-table tbody td:nth-last-child(3)::before{content:"المستند"}
 .order-queue-table tbody td:nth-last-child(2){grid-area:status}
 .order-queue-table tbody td:nth-last-child(2)::before{content:"الحالة"}
 .order-queue-table tbody td:last-child{grid-area:actions}
 .order-queue-table tbody td:last-child::before{content:"التفاصيل"}
 .order-queue-financial tbody td:nth-child(2){grid-area:approval}
 .order-queue-financial tbody td:nth-child(2)::before{content:"الصافي والاعتماد"}
 .order-queue-table .order-inline-approval{gap:10px}
 .order-queue-table .order-inline-approval>label{flex:0 1 115px}
 .order-queue-table .order-shipping-fields .field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .order-queue-status{padding:6px;font-size:12px}
}
@container order-queue (max-width:650px){
 .order-queue-financial tbody tr{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"customer document" "status actions" "approval approval"}
 .order-queue-table tbody tr{margin:8px}
 .order-queue-table tbody td{padding:8px!important}
 .order-queue-table .order-inline-approval>label{flex:1 1 110px}
}
@container order-queue (max-width:380px){
 .order-queue-table .order-shipping-fields .field-grid{grid-template-columns:minmax(0,1fr)}
}
@container rep-requests (max-width:650px){
 .rep-queue-custody table,.rep-queue-custody tbody,.rep-queue-returns table,.rep-queue-returns tbody{display:block}
 .rep-queue-custody thead,.rep-queue-returns thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}
 .rep-queue-custody tr,.rep-queue-returns tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:8px;border:1px solid #94a6b9;border-radius:8px;overflow:hidden}
 .rep-queue-custody td,.rep-queue-returns td{min-width:0;padding:10px!important;box-shadow:inset 0 0 0 1px #d9e3ee;border:0!important;overflow-wrap:anywhere}
 .rep-queue-custody td::before,.rep-queue-returns td::before{display:block;font-size:12px;font-weight:700;color:#526781;margin-bottom:6px}
 .rep-queue-custody td:nth-child(1)::before{content:"المندوب"}
 .rep-queue-custody td:nth-child(2)::before{content:"الطريقة"}
 .rep-queue-custody td:nth-child(3)::before{content:"المبلغ"}
 .rep-queue-custody td:nth-child(4)::before{content:"الجهة والسبب"}
 .rep-queue-custody td:last-child{grid-column:1/-1}
 .rep-queue-custody td button{width:100%;min-height:40px}
 .rep-queue-returns td:nth-child(1)::before{content:"العميل / الإذن"}
 .rep-queue-returns td:nth-child(2)::before{content:"التاريخ"}
 .rep-queue-returns td:nth-child(3)::before{content:"الحالة"}
 .rep-queue-returns td:nth-child(4)::before{content:"التفاصيل"}
}
.sale-price-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:22px 0 18px;padding:18px 8px 22px;border-bottom:3px solid #243746}
.sale-price-brand{text-align:center;min-width:160px;color:#243746}
.sale-price-brand strong{display:block;font-family:Tajawal,Tahoma,Arial,sans-serif;font-size:48px;font-weight:700;line-height:1.25}
.sale-price-brand span{display:block;font-family:Georgia,'Times New Roman',serif;font-size:19px;font-weight:700;letter-spacing:5px;margin-top:4px}
.sale-price-heading-title{text-align:left}.sale-price-heading-title h2{font-size:25px;margin:0 0 5px}.sale-price-heading-title p{margin:0;color:#243746}.sale-price-heading-title small{display:block;color:#657580;margin-top:4px}
.sale-price-version-note,.sale-price-search-note{font-size:12px;margin:5px 0 12px}
.sale-price-types{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 12px;padding-bottom:14px;border-bottom:1px solid #dce3e8}.sale-price-types button{flex:1;padding:12px 18px;font-weight:700}
.sale-price-categories{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 12px}.sale-price-categories button{padding:10px 16px}.sale-price-categories button span{font-size:12px}.sale-price-category-title{margin:0 0 12px;color:#243746}
.sale-price-grid-wrap{margin-bottom:22px}.sale-price-grid{table-layout:fixed;min-width:650px;white-space:normal;border:2px solid #243746}
.sale-price-section{border:2px solid #243746;margin:18px 0 26px;padding:12px;background:#fff}.sale-price-section>h3{margin:0 0 14px;padding:10px;border-bottom:2px solid #243746;font-size:22px;color:#243746}.sale-price-section .sale-price-grid-wrap:last-child{margin-bottom:0}
#sale-price-results .sale-price-grid .sale-price-band th,.sale-price-grid .sale-price-band th{background:#e9efeb;font-weight:700;padding:10px;border:2px solid #243746}
.sale-price-grid .sale-price-item-col{width:25%}.sale-price-grid .sale-price-kind-col{width:60px}
.sale-price-grid th,.sale-price-grid td,.sale-price-grid tr:last-child td{border:1.5px solid #243746;padding:6px 3px;text-align:center;vertical-align:middle;color:#243746;overflow-wrap:anywhere}
#sale-price-results .sale-price-grid th,#sale-price-results .sale-price-grid td{border:1.5px solid #243746;padding:6px 3px;background:#fff;color:#243746}
#sale-price-results .sale-price-grid .sale-price-item{padding:9px 12px}
#sale-price-results .sale-price-grid .sale-price-kind{white-space:nowrap;font-size:11px;background:#f7f8fa}
.sale-price-grid thead th{background:#eef1f3;font-weight:700;font-size:14px;padding:10px 4px}
.sale-price-grid th.sale-price-item{text-align:right;padding:9px 12px;background:#fff}.sale-price-grid .sale-price-item strong{display:block;font-weight:700;font-size:14px;line-height:1.6}.sale-price-grid .sale-price-item small{display:block;font-size:12px;margin-top:3px;font-weight:400}
.sale-price-grid .sale-price-kind{font-size:11px;font-weight:400;background:#f7f8fa}.sale-price-grid td{font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}.sale-price-grid td small{display:block;font-size:9px;font-weight:400}
.sale-price-edit{background:transparent;color:inherit;width:100%;min-height:28px;padding:3px 1px;border-radius:3px;font:inherit}.sale-price-edit:hover,.sale-price-edit:focus-visible{background:#e8eff4;outline:2px solid #607f94;outline-offset:0}
@media(max-width:600px){.sale-price-heading{gap:12px}.sale-price-brand{min-width:120px}.sale-price-brand strong{font-size:38px}.sale-price-brand span{font-size:15px}.sale-price-heading-title h2{font-size:20px}}
@media print{
 @page salePrices{size:A4 landscape;margin:10mm}
 body.printing-account .sales-price-print{page:salePrices;font-family:Tajawal,Arial,sans-serif}
 body.printing-account .sales-price-print .sale-price-heading{margin:0 0 12px;padding:4px 4px 12px;break-inside:avoid;border-color:#000}
 body.printing-account .sales-price-print .sale-price-brand strong{font-size:32pt;color:#000}
 body.printing-account .sales-price-print .sale-price-brand span{font-size:14pt;color:#000}
 body.printing-account .sales-price-print .sale-price-heading-title h2{font-size:19pt}
 body.printing-account .sales-price-print .sale-price-grid{font-size:10pt;min-width:0;border:1.5pt solid #000}
 body.printing-account .sales-price-print .sale-price-grid th,body.printing-account .sales-price-print .sale-price-grid td{border:1.2pt solid #000;padding:4px;color:#000;background:#fff}
 body.printing-account .sales-price-print .sale-price-grid .sale-price-item{padding:6px 8px}
 body.printing-account .sales-price-print .sale-price-grid .sale-price-item strong{font-size:10pt}
 body.printing-account .sales-price-print .sale-price-grid thead th{font-size:10pt;font-weight:700}
 body.printing-account .sales-price-print .sale-price-grid tbody{break-inside:avoid;page-break-inside:avoid}
 body.printing-account .sales-price-print .sale-price-grid-wrap{margin:0 0 14px;overflow:visible}
 body.printing-account .sales-price-print .sale-price-section{border:1.5pt solid #000;margin:0 0 16px;padding:8px;break-inside:auto}
 body.printing-account .sales-price-print .sale-price-section>h3{font-size:15pt;margin:0 0 8px;padding:4px 4px 8px;break-after:avoid;border-color:#000;color:#000}
 body.printing-account .sales-price-print .sale-price-grid thead{display:table-header-group}
}

/* Current cash-desk balances: independent of the statement's date/method filters. */
.treasury-overview{margin-bottom:24px;min-width:0}.treasury-overview h2{font-size:20px;margin:0 0 6px}.treasury-overview>p{font-size:12px;margin:0 0 14px}.treasury-balance-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.treasury-balance-card{min-width:0;border:1px solid #d5dfe8;border-top:4px solid #50738b;border-radius:12px;background:#fff;padding:18px 16px}.treasury-balance-card h3{margin:0 0 14px;font-size:13px;line-height:1.7;font-weight:600;min-height:44px;color:#405969}.treasury-balance-card strong{display:block;font-size:clamp(21px,2.1vw,29px);line-height:1.4;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;color:#213e50}.treasury-balance-card small{display:block;margin-top:7px;color:#657580;font-size:11px}.treasury-balance-cheque{border-top-color:#b58022;background:#fffcf3}.treasury-balance-total{border-color:#284c60;background:#284c60}.treasury-balance-total h3,.treasury-balance-total strong,.treasury-balance-total small{color:#fff}@media(max-width:480px){.treasury-balance-grid{grid-template-columns:1fr 1fr;gap:8px}.treasury-balance-card{padding:13px 10px}.treasury-balance-card h3{font-size:12px;min-height:41px}.treasury-balance-card strong{font-size:20px}}

@media(max-width:1000px){.treasury-balance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
#editor:has(.hr-manual-day){width:960px}
.hr-manual-day table{min-width:0!important;width:100%;table-layout:fixed;font-size:13px}
.hr-manual-day th,.hr-manual-day td{white-space:normal;overflow-wrap:anywhere;padding:8px;border:1px solid #cbd5e1}
.hr-manual-day th:first-child{width:64px;white-space:nowrap}.hr-manual-day th:nth-child(2){width:32%}
.hr-manual-day input[type=time]{min-width:0;width:100%;direction:ltr;padding:6px}
.hr-manual-day input[type=checkbox]{width:20px;height:20px;flex:none}
.hr-manual-defaults{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:12px 0}
.hr-manual-defaults label{flex:1;min-width:110px}.hr-manual-defaults button{flex:1}
.hr-manual-select{display:flex;align-items:center;gap:10px}
#hr-manual-rows{max-height:48vh;overflow:auto;margin:12px 0}
#hr-manual-rows thead{position:sticky;top:0;background:#eef2f6;z-index:1}
.hr-manual-protected{background:#f1f5f9;color:#64748b}.hr-manual-absent{background:#fff1f2}
.rep-custody-document{display:grid;gap:6px;min-width:170px;max-width:280px;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
.rep-custody-document strong{font-size:1.05em;color:#203744}
.rep-custody-document span{font-size:.85em;color:#52616b}
.rep-custody-methods{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.rep-custody-method{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%;padding:16px;background:#f8faf9;border:2px solid #c8d4d8;color:#203744;text-align:right;border-radius:12px;white-space:normal}
.rep-custody-method:hover,.rep-custody-method:focus-visible{background:#edf5f5;border-color:#386f78}
.rep-custody-method strong{font-size:1.1rem}.rep-custody-method b{font-size:1.2rem}.rep-custody-method small{color:#52616b;font-size:.8rem}
.rep-custody-link{margin-top:6px;font-weight:700;color:#28626c}
.rep-custody-toolbar{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 4px}
button.rep-custody-document{background:#f6f9fa;color:#203744;border:1px solid #bacbd2;text-align:right;padding:10px;max-width:100%;width:100%;margin:0}
button.rep-custody-document:hover,button.rep-custody-document:focus-visible{border-color:#386f78;background:#eaf2f3}
.rep-custody-detail{grid-column:1/-1}.rep-custody-detail p{white-space:normal;overflow-wrap:anywhere}
@media(max-width:750px){.rep-custody-methods{grid-template-columns:repeat(2,minmax(0,1fr))}.rep-custody-method{padding:12px;gap:4px}.rep-custody-method b{font-size:1rem}.rep-custody-entries table,.rep-custody-entries tbody,.rep-custody-entries tr,.rep-custody-entries td{display:block;width:100%;min-width:0!important;white-space:normal!important}.rep-custody-entries thead{display:none}.rep-custody-entries tr{border:1px solid #bacbd2;border-radius:10px;margin-bottom:12px;padding:8px}.rep-custody-entries td{border:0;padding:5px}.rep-custody-entries .table-wrap{overflow:visible}.rep-custody-document{min-width:0}}
.app-update-notice{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;margin-bottom:16px;border:2px solid #c19a55;border-radius:12px;background:#fff8e6;color:#344554}
.app-update-notice[hidden]{display:none}.app-update-notice p{margin:6px 0 0}.app-update-notice button{flex-shrink:0}
@media(max-width:600px){.app-update-notice{align-items:stretch;flex-direction:column}}
@media print{.app-update-notice{display:none!important}}
.penalty-report{padding:16px;color:#243745}.penalty-report h1{font-size:1.5rem;margin:0 0 8px}.penalty-report h2{font-size:1.2rem}.penalty-report h3{margin:24px 0 8px}
.penalty-report table{table-layout:fixed;width:100%;min-width:0}.penalty-report th,.penalty-report td{white-space:normal;overflow-wrap:anywhere;border:1px solid #b9c3cb;padding:8px;vertical-align:top}
.penalty-report th:first-child{width:23%}.penalty-report-total{padding:12px;background:#f1f5f8;border:2px solid #8195a3;font-size:1.1rem}.penalty-report-total strong{font-variant-numeric:tabular-nums}
@media(max-width:600px){.penalty-report{padding:8px}.penalty-report th,.penalty-report td{padding:5px;font-size:.75rem}}
@media print{.penalty-report{padding:0}.penalty-report h3{break-after:avoid}.penalty-report table{font-size:9pt}.penalty-report-total{break-inside:avoid}.penalty-report .hint{font-size:9pt}}
/* Accountant invoice delivery cards fit narrow screens without horizontal scrolling. */
.wa-jobs{display:grid;gap:12px;margin-top:18px}.wa-job{display:grid;grid-template-columns:1fr 1fr auto;gap:16px;padding:16px;border:2px solid #cbd5db;border-radius:12px;background:#fff;overflow-wrap:anywhere}.wa-job p{margin:6px 0}.wa-job .actions{align-content:start;flex-wrap:wrap}.wa-job small{color:#55636b}@media(max-width:760px){.wa-job{grid-template-columns:1fr}.wa-job .actions{display:flex}}

/* معاينة الاستيراد: الأسماء الكاملة وسبب المراجعة واضحان. */
#editor:has(.attendance-import-preview){width:1050px;max-width:96vw}
.attendance-import-preview table{width:100%;table-layout:fixed;min-width:650px}
.attendance-import-preview th,.attendance-import-preview td{white-space:normal;overflow-wrap:anywhere;vertical-align:top;padding:12px 8px}
.attendance-import-preview th:first-child{width:9%}.attendance-import-preview th:last-child{width:25%}
