/* UX simplification (Meftah 16/11/2026, docs/ux/DAILY_FLOWS.md, CLAUDE.md "UX rules"). Fixed colour meanings: the
   accent only for actions; red = danger, overdue or delete; green = done or paid; orange = waiting. Targets at
   least 44 px. Logical properties only, so Arabic and English are the same layout mirrored. */
:root{--wait:#b45309;--wait-soft:rgba(180,83,9,.10);--bad:#b42318;--bad-soft:rgba(180,35,24,.09);--done:#17753f;--done-soft:rgba(23,117,63,.10)}
:root[data-theme="dark"]{--wait:#f59e0b;--bad:#f87171;--done:#4ade80}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--wait:#f59e0b;--bad:#f87171;--done:#4ade80}}

/* UXS-01: the six destinations */
.nav6{padding:8px 10px;display:flex;flex-direction:column;gap:2px}
.nav6 a.dest{min-height:46px;font-size:14.5px;padding:10px 12px;gap:12px}
.nav6 a.dest .ic{width:20px;height:20px}
.nav6 a.dest.active{background:rgba(57,135,229,.22);color:#fff;font-weight:600}

/* the second row of tabs inside a destination, with its own "More" */
.subnav{display:flex;gap:4px;flex-wrap:wrap;align-items:stretch;margin:-6px 0 18px;border-bottom:1px solid var(--border)}
.subnav > a,.subnav-more > summary{min-height:44px;display:inline-flex;align-items:center;padding:0 14px;color:var(--text2);text-decoration:none;border-bottom:2px solid transparent;margin-bottom:-1px;font-weight:500;cursor:pointer;list-style:none}
.subnav-more > summary::-webkit-details-marker{display:none}
.subnav > a:hover,.subnav-more > summary:hover{color:var(--text)}
.subnav > a.active,.subnav-more > summary.active{color:var(--accent);border-bottom-color:var(--accent);font-weight:600}
.subnav-more{position:relative}
.subnav-more .menu a{min-height:44px;display:flex;align-items:center}

/* More */
.more-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
.more-grid h2{font-size:15px;margin:0 0 6px}
.more-list{list-style:none;margin:0;padding:0}
.more-list a{display:flex;align-items:center;gap:10px;min-height:44px;text-decoration:none;color:var(--text);border-radius:8px;padding:0 8px}
.more-list a:hover{background:var(--hover)}
.more-list .ic{width:18px;height:18px;fill:none;stroke:var(--text2);stroke-width:1.8}

/* UXS-02: Ctrl K */
.palette-bg{position:fixed;inset:0;background:rgba(10,15,24,.45);z-index:80;display:flex;justify-content:center;align-items:flex-start;padding-top:12vh}
.palette{width:min(640px,92vw);background:var(--surface);border-radius:14px;box-shadow:0 20px 60px rgba(0,0,0,.3);overflow:hidden}
.palette input{width:100%;font-size:18px;padding:16px 18px;border:0;border-bottom:1px solid var(--border);background:var(--surface);outline:none}
.palette .pal-actions{list-style:none;margin:0;padding:6px;max-height:40vh;overflow:auto}
.palette .pal-actions a{display:flex;min-height:44px;align-items:center;padding:0 12px;border-radius:8px;text-decoration:none;color:var(--text)}
.palette .pal-actions a:hover,.palette .pal-actions a:focus{background:var(--hover)}
.palette .pal-title{font-size:11.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;padding:8px 12px 2px}
.palette #pal-results{max-height:40vh;overflow:auto;padding:0 6px 6px}
kbd{font:inherit;font-size:11px;border:1px solid var(--border);border-radius:5px;padding:0 5px;color:var(--muted)}
.subnav-more > summary{border-top:0;border-inline:0;border-radius:0;background:none;box-shadow:none}
.subnav{margin:0 0 18px}
main.content > .subnav{order:0}  /* UXS-01: the tabs of the destination first, under any message */

/* UXS-03: Today */
.btn.big{min-height:46px;padding:0 16px;font-size:14px}
.btn .ic{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
.today-head{align-items:center}
.role-chips{display:flex;gap:6px;flex-wrap:wrap;margin:-4px 0 14px}
.chip-link{min-height:36px;display:inline-flex;align-items:center;padding:0 14px;border-radius:999px;border:1px solid var(--border);text-decoration:none;color:var(--text2);background:var(--surface)}
.chip-link.on{background:var(--text);color:var(--surface);border-color:var(--text)}
.figures{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin-bottom:18px}
.fig{display:flex;flex-direction:column;gap:2px;padding:14px 16px;border-radius:14px;background:var(--surface);border:1px solid var(--border);text-decoration:none;color:var(--text);box-shadow:var(--shadow);min-height:96px}
.fig:hover{border-color:var(--accent)}
.fig-label{font-size:13px;color:var(--text2)}
.fig-value{font-size:30px;font-weight:650;line-height:1.15;font-variant-numeric:tabular-nums}
.fig-unit{font-size:14px;font-weight:500;color:var(--text2)}
.fig.wait .fig-value{color:var(--wait)} .fig.bad .fig-value{color:var(--bad)} .fig.done .fig-value{color:var(--done)}
.fig-foot{font-size:12px;color:var(--muted)}
.today-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:16px;align-items:start}
@media (max-width:980px){.today-grid{grid-template-columns:1fr}}
.work{display:flex;flex-direction:column;gap:16px}
.worklist header{display:flex;align-items:center;gap:10px;margin-bottom:6px}
.worklist h2{margin:0;font-size:16px}
.count-chip{font-size:12px;font-weight:600;border-radius:999px;padding:1px 9px;background:var(--surface2);border:1px solid var(--border)}
.more-link{margin-inline-start:auto;font-size:13px;text-decoration:none}
.rows{list-style:none;margin:0;padding:0}
.rows li{display:flex;align-items:center;gap:12px;min-height:58px;padding:8px 0;border-top:1px solid var(--border)}
.rows li:first-child{border-top:0}
.rows input[type=checkbox]{width:20px;height:20px}
.nobulk{width:20px;flex-shrink:0}
.row-main{flex:1;min-width:0;display:flex;flex-direction:column}
.row-main b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.row-sub{font-size:12.5px;color:var(--text2)}
.row-btn{min-height:44px;min-width:120px;justify-content:center}
.rows form{margin:0}
.tag.wait{background:var(--wait-soft);color:var(--wait)} .tag.bad{background:var(--bad-soft);color:var(--bad)} .tag.done{background:var(--done-soft);color:var(--done)}
.bulk{display:flex;align-items:center;gap:10px;font-size:13px;padding:4px 0 8px;color:var(--text2)}
.empty{padding:14px 0;color:var(--text2);display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.empty p{margin:0}
.attention h2{margin:0 0 8px;font-size:16px}
.att{display:grid;grid-template-columns:10px 1fr;gap:4px 10px;align-items:start;padding:10px 0;border-top:1px solid var(--border)}
.att:first-of-type{border-top:0}
.att .dot{width:10px;height:10px;border-radius:50%;margin-top:5px;background:var(--muted)}
.att.bad .dot{background:var(--bad)} .att.wait .dot{background:var(--wait)}
.att p{margin:0}
.att .btn{grid-column:2;justify-self:start;min-height:40px}

/* the print page of a contract period (UXS-03, UXS-04) */
.prints{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.print-card{border:1px solid var(--border);border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:8px;background:var(--surface)}
.print-card h3{margin:0;font-size:15px}
.print-card p{margin:0;color:var(--text2);font-size:13px}
.print-card .btn{align-self:flex-start;min-height:44px}
.who{font-size:12px;color:var(--muted)}

/* UXS-04: the contract workspace */
.ws-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;flex-wrap:wrap;margin-bottom:12px}
.ws-head h1{margin:0;font-size:22px}
.ws-sub{color:var(--text2);margin:2px 0 0}
.ws-facts{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 14px}
.ws-fact{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:8px 14px;min-width:150px;text-decoration:none;color:var(--text)}
.ws-fact b{display:block;font-size:20px;font-variant-numeric:tabular-nums}
.ws-fact span{font-size:12.5px;color:var(--text2)}
.ws-fact.wait b{color:var(--wait)} .ws-fact.bad b{color:var(--bad)} .ws-fact.done b{color:var(--done)}
.ws-tabs{display:flex;gap:2px;flex-wrap:wrap;border-bottom:1px solid var(--border);margin-bottom:16px}
.ws-tabs .btn{border:0;border-radius:0;background:none;min-height:44px;border-bottom:2px solid transparent;margin-bottom:-1px;color:var(--text2);font-size:14px}
.ws-tabs .btn.primary{background:none;color:var(--accent);border-bottom-color:var(--accent);font-weight:600}
.more-menu summary.btn{list-style:none}
.more-menu summary.btn::-webkit-details-marker{display:none}
.danger-text{color:var(--bad)!important}
.ws-issue{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.ws-issue .grow{flex:1;min-width:220px}
.ws-issue h2{margin:0}
.add-employee{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:4px 0 12px}
.add-employee input{min-height:44px;flex:1;min-width:240px;max-width:460px;padding:0 12px;border:1px solid var(--border);border-radius:10px;background:var(--page)}
.matches{border:1px solid var(--border);border-radius:12px;padding:6px 14px;margin:0 0 14px;background:var(--surface2)}

/* UXS-05, UXS-06: the scan station */
.scan-modes{display:inline-flex;max-width:100%;border:1px solid var(--border);border-radius:12px;overflow:hidden;margin:0 0 14px;background:var(--surface)}
.scan-modes a{min-height:48px;display:inline-flex;align-items:center;gap:8px;padding:0 20px;text-decoration:none;color:var(--text2);font-weight:600}
.scan-modes a.on{background:var(--text);color:var(--surface)}
.scan-modes .ic{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}
.scan-one #scan,.scan-find input{font-size:20px;min-height:52px;padding:8px 14px;border-radius:10px;border:2px solid var(--accent);width:100%;max-width:560px;font-variant-numeric:tabular-nums}
.scan-find label{display:block;font-weight:600;margin-bottom:6px}
.scan-one .scan-list{max-height:none}
.confirm-row{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap;border-top:1px solid var(--border);padding-top:12px;margin-top:12px}
.confirm-row p{margin:0}
.filter-more{margin-top:12px}
.filter-more summary{cursor:pointer;color:var(--text2);min-height:44px;display:flex;align-items:center}
.issue-bar{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:14px}
.issue-bar form{margin:0}
.progress-line{margin:0;font-size:16px}
.finished{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
main.content > .crumbs{order:1}  /* the breadcrumb above the page title (UXS-06) */
/* gate F08 (16/11/2026): the bulk review boxes are ticked by default and big enough to hit */
.worklist .bulk .check-all, .worklist .rows > li > input[type=checkbox]{min-block-size:44px;display:inline-flex;align-items:center;gap:.4rem}
.worklist input[type=checkbox]{inline-size:22px;block-size:22px}
/* gate F01 (16/11/2026): Issue badges rows show holds and warnings before scanning */
.row-state{margin-block-start:.3rem}.row-state .reasons{margin:.25rem 0;padding-inline-start:1.1rem;color:var(--muted)}
.row-state .ack{display:inline-flex;align-items:center;gap:.4rem;min-block-size:44px}.row-state .ack input{inline-size:22px;block-size:22px}
tr.row-wait td{background:color-mix(in srgb,var(--wait) 8%,transparent)}
/* gate R05 (17/11/2026): the tick box the issue stopped on */
.row-state .ack.need{outline:2px solid var(--bad);outline-offset:2px;border-radius:6px}
/* gate R10 (17/11/2026): the request Decide opened is marked */
.req:target{outline:2px solid var(--primary, #1f4e79);outline-offset:2px}
