@font-face{font-family:FilivoVazirmatn;src:url('/assets/vazirmatn-v33.003.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}
:root{color-scheme:light;--bg:#f2f5f9;--surface:#fff;--ink:#17283f;--muted:#64748b;--line:#e1e7ef;--primary:#087f80;--primary-dark:#06696a;--nav:#14263c;--nav-muted:#a7b8cd;--shadow:0 2px 8px #14263c07;--radius:14px}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:FilivoVazirmatn,Tahoma,Arial,sans-serif;font-size:13px;color:var(--ink);background:var(--bg);line-height:1.65}body{direction:rtl}button,input,select,textarea{font:inherit}button,select{cursor:pointer}button:disabled,select:disabled,textarea:disabled{cursor:not-allowed;opacity:.55}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,tr:focus-visible{outline:3px solid #76c8c6;outline-offset:2px}.hidden,[hidden]{display:none!important}h1,h2,h3,p{margin:0}svg{display:block;width:100%;height:100%}
.shell{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--nav);color:#fff;padding:26px 16px 18px;display:flex;flex-direction:column;gap:13px;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:11px;padding:0 5px 24px;border-bottom:1px solid #ffffff16}.brand-icon,.pilot-login-mark{width:42px;height:42px;border-radius:12px;background:#0c9692;color:#fff;display:grid;place-items:center;font-size:25px;font-family:Arial,sans-serif;font-weight:800;flex:none}.brand strong{display:block;font-size:19px;line-height:1.5}.brand small,.sidebar-bottom small{display:block;font-size:10px;color:var(--nav-muted);white-space:normal}.side-caption{padding:11px 12px 0;color:var(--nav-muted);font-size:11px}.nav{display:grid;gap:6px}.nav-item{display:flex;align-items:center;gap:12px;text-align:right;width:100%;border:0;padding:12px;border-radius:9px;color:#d5e0ed;background:transparent;font-size:13px;font-weight:500;white-space:nowrap}.nav-item:hover{background:#ffffff0d}.nav-item.active{background:#1f4852;color:#c3faf3;box-shadow:inset -3px 0 #47c9bb}.nav-symbol{font-size:19px;line-height:1;width:24px;text-align:center}.sidebar-bottom{margin-top:auto;border-top:1px solid #ffffff16;padding:18px 4px 0;display:flex;align-items:center;gap:10px;min-width:0}.sidebar-bottom strong{font-size:12px;display:block;overflow-wrap:anywhere}.avatar{width:36px;height:36px;border-radius:10px;background:#2c445f;display:grid;place-items:center;color:#e0ebf7;flex:none}
.main{min-width:0;display:flex;flex-direction:column}.topbar{height:64px;background:#fff;border-bottom:1px solid var(--line);padding:0 24px;display:flex;align-items:center;justify-content:space-between;gap:14px}.crumb{color:var(--muted);white-space:nowrap}.crumb strong{color:var(--ink)}.crumb span{color:#a3afbf;margin:0 5px}.top-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.preview-label{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);margin-left:8px}.live-indicator{width:7px;height:7px;border-radius:50%;background:#0b9d82;display:inline-block}.round-dot{display:none}.page{padding:20px 24px 10px;min-width:0;flex:1}.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.workspace-heading h1{font-size:23px;line-height:1.45;letter-spacing:-.35px;font-weight:800}.workspace-heading p{color:var(--muted);font-size:12px;margin-top:3px}.workspace-tag{background:#e7edf5;color:#52657d;border-radius:6px;padding:5px 10px;font-size:11px;white-space:nowrap}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.metric{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:var(--radius);padding:12px 15px;min-width:0;--accent:#526d9d;--tint:#edf2fb}.metric--open{--accent:#087f80;--tint:#e3f5f2}.metric--soon{--accent:#b36c0c;--tint:#fff3e0}.metric--closed{--accent:#27804f;--tint:#e7f6ed}.metric-top,.metric-bottom{display:flex;align-items:center;justify-content:space-between;gap:7px}.metric-label{font-size:12px;font-weight:650;color:#526178}.metric-icon{width:33px;height:33px;border-radius:9px;padding:7px;background:var(--tint);color:var(--accent);flex:none}.metric-bottom{align-items:baseline;margin-top:3px}.metric-bottom strong{font-size:29px;line-height:1.35;color:var(--ink);font-weight:800;font-variant-numeric:tabular-nums}.metric-bottom small{font-size:10px;color:var(--muted);text-align:left}
.work-area{display:grid;grid-template-columns:minmax(0,1.48fr) minmax(0,1fr);gap:14px;align-items:start}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);min-width:0;overflow:hidden}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 16px;border-bottom:1px solid var(--line)}.panel-title h2{font-size:15px;font-weight:800}.panel-title p{font-size:11px;color:var(--muted);margin-top:2px;overflow-wrap:anywhere}.counter{color:#426078;background:#eef3f8;border-radius:7px;padding:4px 9px;font-size:11px;white-space:nowrap}.filters{display:flex;gap:9px;padding:12px 14px;align-items:center}.search{display:flex;align-items:center;gap:8px;flex:1;min-width:0;border:1px solid #dbe3ec;background:#f8fafc;border-radius:8px;padding:0 10px}.search span{width:17px;height:17px;flex:none;color:#71839a}.search input{width:100%;min-width:0;border:0;background:transparent;outline:none;padding:9px 0;color:var(--ink)}.search:focus-within{border-color:var(--primary);box-shadow:0 0 0 2px #087f801c}input,select,textarea{color:var(--ink);border:1px solid #dbe3ec;border-radius:8px;background:#fff;padding:8px 10px;min-width:0;max-width:100%}select{min-height:38px}.filters select{width:132px;flex:none;font-size:12px}.search input::placeholder,textarea::placeholder,input::placeholder{color:#8291a4}textarea{width:100%;resize:vertical;line-height:1.8}
.list-panel{display:flex;flex-direction:column;min-height:300px}.table-scroller{overflow:auto;min-height:0}table{width:100%;border-collapse:collapse;text-align:right;table-layout:fixed;font-size:12px}thead{background:#f3f6fa;color:#63758a}th{font-weight:650;height:40px;white-space:nowrap;padding:0 8px}td{height:48px;border-bottom:1px solid #edf1f6;padding:0 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}th:first-child,td:first-child{width:27%;padding-right:14px}th:nth-child(2){width:23%}th:nth-child(3){width:17%}th:nth-child(4){width:17%}th:last-child{width:16%}td:first-child,td:nth-child(2){direction:ltr;text-align:right;font-size:11px;font-variant-numeric:tabular-nums}td:first-child{font-weight:650;color:#334c6b}tbody tr{cursor:pointer;transition:background .12s}tbody tr:hover{background:#f5f9fa}tbody tr.selected{background:#eaf7f5;box-shadow:inset -3px 0 #08938d}tbody tr.selected td:first-child{color:#087f80}.status-badge{display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:650;padding:3px 7px;white-space:nowrap;max-width:100%;border-radius:6px;background:#eef2f6;color:#66768b}.status-badge::before{content:'';width:6px;height:6px;flex:none;border-radius:50%;background:currentColor}.status-badge.new{color:#1764a3;background:#e7f1fc}.status-badge.reviewing{color:#98701b;background:#fff3d7}.status-badge.waiting{color:#7851ab;background:#f1e9fa}.status-badge.closed{color:#237a4b;background:#e6f4eb}.status-badge.muted::before{display:none}.table-pagination{display:flex;align-items:center;justify-content:center;gap:12px;padding:9px;border-top:1px solid var(--line);color:var(--muted);font-size:11px}.page-btn,.review-page-btn{display:grid;place-items:center;width:27px;height:27px;padding:0;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);font-size:19px;line-height:1}.empty{color:var(--muted);text-align:center;padding:28px 14px;font-size:12px}.spacious{min-height:240px;display:grid;place-items:center}
.detail-panel .panel-title{background:linear-gradient(90deg,#fff,#f9fcfc)}#detailSubtitle{direction:ltr;text-align:right;font-size:11px;letter-spacing:.1px}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:12px 14px 4px}.detail-grid>div{min-width:0;padding:9px 11px;background:#f7f9fc;border:1px solid #e8edf3;margin:0 0 -1px -1px;min-height:59px}.detail-grid>div:nth-child(1){border-top-right-radius:9px}.detail-grid>div:nth-child(2){border-top-left-radius:9px}.detail-grid>div:nth-last-child(2){border-bottom-right-radius:9px}.detail-grid>div:last-child{border-bottom-left-radius:9px}.detail-grid label{display:block;color:var(--muted);font-size:10px;margin-bottom:3px}.detail-grid strong{display:block;font-size:13px;font-weight:700;overflow-wrap:anywhere}.detail-grid small{display:block;font-size:9px;color:var(--muted)}.sensitive-value{text-align:right;font-variant-numeric:tabular-nums}.detail-grid #dDue{font-size:11px;line-height:1.55}.subhead{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:12px 15px 7px}.subhead h3{font-size:13px;font-weight:800}.review-nav{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:10px}.review-history{padding:0 14px;display:grid;gap:6px}.review-entry,.no-reviews{background:#f7f9fc;border:1px solid #e8edf3;border-radius:8px;padding:9px 11px;font-size:11px;overflow-wrap:anywhere}.review-entry .metadata{color:var(--muted);font-size:10px}.review-entry p{margin:4px 0;white-space:pre-wrap}.review-entry small{color:var(--primary-dark)}.no-reviews{color:var(--muted)}#reviewForm{padding:12px 14px 14px;display:grid;gap:6px}.field-label{font-size:11px;font-weight:650;color:#46586f}.form-note{font-size:10px;color:var(--muted);line-height:1.7}.detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:5px}#reviewNote{min-height:78px}#audioChoice{width:100%}.btn{border:1px solid transparent;min-height:36px;border-radius:8px;padding:7px 12px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:650;line-height:1.5;white-space:normal}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover:not(:disabled){background:var(--primary-dark)}.btn-outline{color:#52657a;background:#fff;border-color:#d8e1eb}.btn-outline:hover:not(:disabled){background:#f2f6f9}.btn-quiet{color:#52657a;background:#f2f5f9;border-color:#e7edf3}.btn-quiet:hover{background:#e6edf5}#closeRequest{color:#a34a43;border-color:#e7c9c5}#closeRequest:hover:not(:disabled){background:#fff1ef}
.audio-panel{max-width:1050px}.audio-items,.pilot-users{display:grid;gap:9px;padding:16px}.audio-item,.pilot-user-row{display:flex;gap:12px;align-items:center;border:1px solid var(--line);border-radius:10px;padding:12px;background:#f9fbfd}.audio-item .note{width:34px;height:34px;border-radius:8px;display:grid;place-items:center;background:#e4f5f1;color:var(--primary);font-size:20px;flex:none}.audio-item small,.pilot-user-row small{display:block;color:var(--muted);font-size:11px}.pilot-user-row{justify-content:space-between;flex-wrap:wrap}.pilot-user-buttons{display:flex;gap:7px;flex-wrap:wrap;align-items:center}.pilot-user-fixed{color:var(--muted);font-size:11px}.pilot-create-user-form{display:grid;grid-template-columns:1fr 1fr 130px auto;gap:12px;align-items:end;padding:16px;border-bottom:1px solid var(--line)}.pilot-create-user-form label{display:grid;gap:5px;font-size:11px;font-weight:600}.audio-panel>.form-note{padding:0 16px 16px}.footer{text-align:center;color:#8291a4;font-size:10px;padding:12px 0 0}
.pilot-login{position:fixed;inset:0;z-index:100;background:radial-gradient(ellipse at 75% 0%,#e2f1f0 0%,transparent 55%),#edf2f7;display:grid;place-items:center;overflow:auto;padding:20px}.pilot-login-form{width:min(100%,410px);background:#fff;border:1px solid var(--line);border-radius:18px;padding:30px;box-shadow:0 15px 50px #182c4017;display:grid;gap:10px}.pilot-login-mark{width:50px;height:50px;margin-bottom:7px}.pilot-login-form h1,.pilot-login-form h2{font-size:21px;font-weight:800}.pilot-login-form p{color:var(--muted);font-size:12px;margin-bottom:10px}.pilot-login-form label{font-size:12px;font-weight:650;margin-top:4px}.pilot-login-form input{height:43px;width:100%}.pilot-login-form .btn{min-height:42px}.pilot-login-warning{background:#f4f7fb;padding:10px;border-radius:8px;font-size:11px;color:#687a91}.pilot-login-error{color:#a33b39;font-size:11px;overflow-wrap:anywhere}.pilot-login-error:empty{display:none}.toast{position:fixed;bottom:20px;left:20px;z-index:200;max-width:calc(100vw - 40px);background:#14263c;color:white;border-radius:10px;padding:13px 18px;box-shadow:0 8px 24px #14263c30;font-size:12px;overflow-wrap:anywhere}
@media(min-width:1280px) and (min-height:720px){.list-panel{height: max(350px,calc(100vh - 264px));}.table-scroller{flex:1;min-height:0}.detail-panel{max-height:max(350px,calc(100vh - 264px));overflow:auto}.table-pagination{flex:none}.filters,.panel-title{flex:none}.list-panel .empty{padding:12px}.review-history .review-entry p{max-height:90px;overflow:auto}}
@media(max-width:1279px){.shell{grid-template-columns:192px minmax(0,1fr)}.page{padding:16px}.topbar{padding:0 16px}.work-area{grid-template-columns:minmax(0,1fr)}.detail-panel{overflow:visible}.list-panel{min-height:0}.table-scroller{max-height:480px}.metric{padding:10px}.metric-bottom small{font-size:9px}.detail-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.detail-grid>div{border-radius:0!important}.detail-grid>div:nth-child(1){border-top-right-radius:9px!important}.detail-grid>div:nth-child(3){border-top-left-radius:9px!important}.detail-grid>div:nth-child(4){border-bottom-right-radius:9px!important}.detail-grid>div:nth-child(6){border-bottom-left-radius:9px!important}}
@media(max-width:800px){.shell{display:block}.sidebar{position:relative;height:auto;padding:12px;gap:10px}.brand{border:0;padding:0}.brand-icon{width:34px;height:34px;font-size:20px}.brand strong{font-size:16px}.side-caption{display:none}.nav{display:flex;flex-wrap:wrap;gap:4px}.nav-item{width:auto;padding:7px 10px;font-size:11px;gap:5px}.nav-symbol{font-size:16px;width:17px}.sidebar-bottom{margin:0;padding:8px 0 0;gap:8px}.sidebar-bottom .avatar{width:28px;height:28px}.sidebar-bottom small{display:inline;margin-right:7px}.topbar{height:auto;min-height:52px;padding:8px 12px;flex-wrap:wrap}.top-actions{gap:5px}.preview-label{margin-left:0;font-size:10px}.page{padding:12px}.workspace-heading h1{font-size:20px}.workspace-tag{display:none}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.metric-bottom strong{font-size:24px}.work-area{gap:10px}.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-grid>div{border-radius:0!important}.pilot-create-user-form{grid-template-columns:1fr 1fr}.pilot-user-row{align-items:flex-start}.table-scroller{max-height:440px}.table-scroller table{min-width:570px}.filters{padding:10px}.filters select{width:115px}.panel-title{padding:11px 12px}.pilot-login-form{padding:23px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media(min-width:1280px) and (min-height:720px){#tablePagination.hidden{display:flex!important;visibility:hidden;pointer-events:none} .list-panel .empty:not(.hidden){position:absolute;inset:160px 12px auto;pointer-events:none}.list-panel{position:relative}}
@media(min-width:1280px) and (min-height:720px){.page{padding-top:15px}.workspace-heading{margin-bottom:12px}.metrics{margin-bottom:12px}.metric{padding:10px 15px}.list-panel{height:max(350px,calc(100vh - 268px))}.detail-panel{max-height:max(350px,calc(100vh - 268px))}.detail-panel .panel-title{padding:10px 14px}.detail-grid{padding:9px 14px 3px}.detail-grid>div{padding:6px 10px;min-height:50px}.subhead{padding:8px 14px 5px}.review-entry,.no-reviews{padding:6px 9px}.review-entry p{margin:2px 0}.review-history .review-entry p{max-height:60px}#reviewForm{padding:8px 14px 10px;gap:4px}#reviewNote{min-height:62px;height:62px}.detail-actions{margin-top:4px}}
/* 11B report-only layout */
#reportsView .audio-panel{max-width: none;width:100%;box-sizing:border-box}
#reportsView .report-controls{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;padding:16px}
#reportsView .report-controls label{display:block;font-size:12px;margin-bottom:6px}
#reportsView .report-controls select,#reportsView .report-controls input{width:100%;min-height:38px;box-sizing:border-box}
#reportsView .report-custom{display:flex;gap:8px;flex-wrap:wrap}#reportsView .report-custom.hidden{display:none}
#reportsView .report-custom input{max-width:145px}
#reportsView .report-actions{display:flex;gap:8px;flex-wrap:wrap}
#reportsView .report-note{margin:12px 16px;line-height:1.8}
#reportsView .report-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;padding:0 16px}
#reportsView .report-kpi{border:1px solid #dce5ee;border-radius:12px;background:#f7fafc;padding:14px;min-height:70px;display:flex;flex-direction:column;justify-content:space-between;gap:10px}
#reportsView .report-kpi label{color:#5e748b;font-size:12px}#reportsView .report-kpi strong{font-size:23px;color:#123049}#reportsView .report-kpi.warn strong{color:#b45309}#reportsView .report-kpi.accent strong{color:#087e83}
#reportsView .report-charts{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:8px 16px}
#reportsView .report-chart{min-width:0;border:1px solid #dce5ee;border-radius:12px;padding:14px;background:#fff}#reportsView .report-chart h3{margin:0 0 10px;font-size:14px}
#reportsView .report-bars{max-height:320px;overflow:auto;display:grid;gap:8px}
#reportsView .report-bar{display:grid;grid-template-columns:minmax(80px,1fr) minmax(60px,2fr) auto;gap:8px;align-items:center;font-size:11px}
#reportsView meter{width:100%;height:14px;accent-color:#0d8589}#reportsView meter::-webkit-meter-optimum-value{background:#0d8589}#reportsView meter.close-bar::-webkit-meter-optimum-value{background:#547ba0}
#reportsView .report-table-wrap{overflow:auto}#reportsView .report-table-wrap table{min-width:780px}
@media(max-width:800px){#reportsView .report-charts{grid-template-columns:1fr}#reportsView .report-cards{grid-template-columns:repeat(2,minmax(0,1fr))}#reportsView .report-kpi strong{font-size:18px}}

/* 11B Fix1: isolate eight-column management report from request-list table widths. */
#reportsView .report-table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
#reportsView .report-table-wrap table{width:100%;min-width:880px;table-layout:fixed;font-size:12px}
#reportsView .report-table-wrap th,#reportsView .report-table-wrap td{width:auto;padding:10px 8px;height:auto;min-height:40px;direction:rtl;text-align:center;white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip;line-height:1.65;vertical-align:middle;font-size:12px}
#reportsView .report-table-wrap th:first-child,#reportsView .report-table-wrap td:first-child{width:20%;text-align:right;padding-right:14px;font-weight:650}
#reportsView .report-table-wrap th:nth-child(2){width:10%}
#reportsView .report-table-wrap th:nth-child(3),#reportsView .report-table-wrap th:nth-child(4){width:11%}
#reportsView .report-table-wrap th:nth-child(5),#reportsView .report-table-wrap th:nth-child(6){width:10%}
#reportsView .report-table-wrap th:nth-child(7),#reportsView .report-table-wrap th:nth-child(8){width:14%}
#reportsView .report-table-wrap tbody tr{cursor:default}

/* 11C request alerts: scoped to three new elements. */
.new-request-badge{margin-inline-start:auto;flex:none;min-width:22px;padding:1px 6px;border-radius:999px;background:#c5f2eb;color:#075f61;font-size:11px;font-weight:750;text-align:center;line-height:20px}
#requestSound[aria-pressed="true"]{background:#e3f4f1;color:#087f80;border-color:#afdcd6}
.request-alert{position:fixed;bottom:72px;left:20px;z-index:199;display:flex;align-items:center;gap:12px;flex-wrap:wrap;max-width:calc(100vw - 40px);padding:12px 15px;border:1px solid #77c8bc;border-radius:12px;color:#fff;background:#075f63;box-shadow:0 8px 24px #14263c30;font-size:13px}
.request-alert button{background:#ffffff20;border:1px solid #ffffff55;color:white;border-radius:7px;padding:5px 9px;font-size:12px}
.request-alert button:last-child{font-size:17px;line-height:1.2}

/* 11D: scoped request tools and overdue styling */
#requestsView .request-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:end;padding:0 14px 12px;flex:none}
#requestsView .request-tools label{display:grid;gap:3px;flex:1;min-width:118px;font-size:10px;color:var(--muted)}
#requestsView .request-tools select{width:100%;min-height:33px;font-size:11px;padding:5px 8px}
#requestsView .request-tools .btn{min-height:33px;font-size:11px}
#requestRows tr.request-overdue{background:#fff3f2;box-shadow:inset -3px 0 #d34b47}
#requestRows tr.request-overdue.selected{background:#ffe7e5;box-shadow:inset -4px 0 #b42318}
#requestRows tr.request-overdue td:first-child{color:#a52d28}
#requestRows .overdue-mark{display:block;font-size:9px;color:#b42318;line-height:1.25;margin-top:2px;font-weight:650}
#requestsView .copy-label{display:flex;justify-content:space-between;align-items:center;gap:4px;margin-bottom:2px}
#requestsView .copy-label label{margin:0}
#requestsView .copy-phone{border:1px solid #d6e2e9;border-radius:5px;background:#fff;color:#087f80;font:inherit;font-size:10px;padding:2px 6px;line-height:1.3}
#requestsView .copy-phone:disabled{opacity:.45;cursor:not-allowed}

/* 11E: request owner and assignment history, scoped to the request view. */
#requestsView .list-panel th:first-child,#requestsView .list-panel td:first-child{width:22%}
#requestsView .list-panel th:nth-child(2){width:20%}
#requestsView .list-panel th:nth-child(3){width:15%}
#requestsView .list-panel th:nth-child(4){width:15%}
#requestsView .list-panel th:nth-child(5){width:15%}
#requestsView .list-panel th:nth-child(6){width:13%;white-space:normal}
#requestsView .assignment-box{margin:10px 14px;padding:10px;border:1px solid var(--line);border-radius:8px;background:#f5f8fa;font-size:11px}
#requestsView .assignment-top,#requestsView .assignment-editor{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
#requestsView .assignment-top>span{flex:1;min-width:100px}
#requestsView .assignment-box .btn{min-height:30px;padding:4px 8px;font-size:11px}
#requestsView .assignment-editor{margin-top:8px}
#requestsView .assignment-editor select{flex:1;min-width:110px}
#requestsView .assignment-hint{margin:6px 0;color:var(--muted)}
#requestsView .assignment-box details{border-top:1px solid var(--line);padding-top:5px}
#requestsView .assignment-box summary{cursor:pointer;color:#087f80}
#requestsView .assignment-entry{padding:6px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
#requestsView .assignment-box .hidden{display:none!important}
#requestsView .list-panel .table-scroller table{min-width:600px}
#requestsView .list-panel th,#requestsView .list-panel td{padding-left:6px;padding-right:6px}
#requestsView .list-panel td:nth-child(6){font-size:11px;direction:rtl}

/* 11F.1: bulk assignment dialog, scoped styles. */
#bulkDialog{border:1px solid #cbd5e1;border-radius:14px;padding:22px;width:min(620px,calc(100vw - 32px));max-height:85vh;overflow:auto;background:white;color:#162d45;font:inherit;box-sizing:border-box}#bulkDialog::backdrop{background:rgba(15,35,55,.55)}#bulkDialog h2{font-size:17px;margin:0 0 12px}#bulkDialog p{font-size:12px;color:#52677c;margin:10px 0}#bulkDialog select{width:100%;margin:6px 0}#bulkDialog .workload-list,#bulkDialog .bulk-rows{max-height:175px;overflow:auto;border:1px solid #d9e4ec;border-radius:8px;margin:10px 0}#bulkDialog .workload-row,#bulkDialog .bulk-row{display:flex;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid #e9eff4;font-size:12px}#bulkDialog .bulk-row input{width:auto;min-width:16px;height:16px;margin:0}#bulkDialog .bulk-actions{display:flex;gap:8px;flex-wrap:wrap}#bulkOpen{white-space:normal} .assignment-top{flex-wrap:wrap}

/* 11F.2: operations, deadline reminders, and append-only activity view. */
#operationsView .audio-panel{max-width:none;width:100%;box-sizing:border-box;margin-bottom:14px}
#operationsView .operations-subtitle{margin:16px 16px 10px;font-size:14px}
#operationsView .operations-table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
#operationsView .operations-table-wrap table{width:100%;min-width:900px;table-layout:fixed;font-size:11px}
#operationsView .operations-table-wrap th,#operationsView .operations-table-wrap td{padding:9px 7px;text-align:center;white-space:normal;overflow-wrap:anywhere;line-height:1.6;vertical-align:middle}
#operationsView .operations-table-wrap th:first-child,#operationsView .operations-table-wrap td:first-child{width:15%;text-align:right}
#operationsView .operations-table-wrap th:nth-child(2){width:8%}
#operationsView .operations-table-wrap th:nth-child(3),#operationsView .operations-table-wrap th:nth-child(4),#operationsView .operations-table-wrap th:nth-child(5){width:8%}
#operationsView .operations-table-wrap th:nth-child(6){width:10%}
#operationsView .operations-table-wrap th:nth-child(7),#operationsView .operations-table-wrap th:nth-child(9){width:19%}
#operationsView .operations-table-wrap th:nth-child(8){width:8%}
#operationsView .operations-activity-controls{align-items:end}
#operationsView .operations-activity-controls>div{min-width:150px;flex:1}
#operationsView .operations-activity-controls .report-actions{flex:none}
#operationsView .operations-inactive{color:#9a6700}
#operationsView .operations-overdue{color:#b42318;font-weight:700}
#operationsView .operations-soon{color:#b45309;font-weight:700}
@media(max-width:800px){#operationsView .report-cards{grid-template-columns:repeat(2,minmax(0,1fr))}#operationsView .operations-table-wrap table{min-width:900px}#operationsView .operations-activity-controls>div{min-width:130px}}

/* 11F.2/11F.3 UI Fix1: scoped operations dashboard layout. */
#operationsView{min-width:0;max-width:100%;}
#operationsView .operations-panel,#operationsView .operations-activity-panel{margin-bottom:18px;}
#operationsView .panel-title{padding:20px 22px;gap:12px;align-items:center;}
#operationsView .panel-title h2{font-size:19px;line-height:1.5;}
#operationsView .panel-title p{font-size:12px;line-height:1.7;margin-top:5px;}
#operationsView .report-controls{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px 16px;padding:18px 22px;background:#f8fafc;border-bottom:1px solid var(--line);}
#operationsView .report-controls>div:not(.report-custom):not(.report-actions){flex:1 1 170px;min-width:0;max-width:260px;}
#operationsView .report-controls label{display:block;font-size:12px;font-weight:650;color:#46586f;margin-bottom:7px;}
#operationsView .report-controls input,#operationsView .report-controls select{width:100%;min-width:0;min-height:42px;font-size:12px;background:#fff;}
#operationsView .report-custom{display:flex;flex:1 1 280px;gap:12px;flex-wrap:wrap;min-width:0;max-width:380px;}
#operationsView .report-custom.hidden{display:none;}
#operationsView .report-custom>div{flex:1 1 125px;min-width:0;}
#operationsView .report-actions{display:flex;align-items:center;flex:0 1 auto;min-width:0;flex-wrap:wrap;gap:8px;margin-inline-start:auto;}
#operationsView .report-actions .btn{min-height:42px;padding:8px 15px;}
#operationsView .report-note{margin:14px 22px;font-size:11px;line-height:1.9;overflow-wrap:anywhere;}
#operationsView .report-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr));gap:12px;padding:4px 22px 14px;}
#operationsView .report-kpi{display:flex;flex-direction:column;justify-content:space-between;gap:12px;min-width:0;min-height:105px;padding:14px 15px;border:1px solid var(--line);border-radius:12px;background:#f6f9fc;border-inline-start:3px solid #7891b0;}
#operationsView .report-kpi label{display:block;font-size:12px;font-weight:650;color:#52657d;line-height:1.7;overflow-wrap:anywhere;}
#operationsView .report-kpi strong{display:block;font-size:28px;line-height:1.25;font-weight:800;color:var(--ink);font-variant-numeric:tabular-nums;}
#operationsView .report-kpi:nth-child(2){border-inline-start-color:#ca8a04;background:#fffbeb;}
#operationsView .report-kpi:nth-child(3){border-inline-start-color:#087f80;background:#f0faf8;}
#operationsView .report-kpi:nth-child(4){border-inline-start-color:#d97706;background:#fff8ed;}
#operationsView .report-kpi:nth-child(5){border-inline-start-color:#dc2626;background:#fff3f2;}
#operationsView .report-kpi:nth-child(2) strong,#operationsView .report-kpi:nth-child(4) strong{color:#a15c06;}
#operationsView .report-kpi:nth-child(3) strong{color:#087f80;}
#operationsView .report-kpi:nth-child(5) strong{color:#b42318;}
#operationsView .operations-subtitle{margin:14px 22px 12px;font-size:15px;font-weight:800;}
#operationsView .operations-table-wrap{margin:0 22px;max-width:calc(100% - 44px);overflow-x:auto;border:1px solid var(--line);border-radius:10px;}
#operationsView .operations-table-wrap table{width:100%;table-layout:fixed;border-collapse:collapse;min-width:920px;font-size:12px;}
#operationsView .operations-table-wrap th,#operationsView .operations-table-wrap td{width:auto;height:auto;padding:12px 8px;direction:rtl;text-align:center;white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip;line-height:1.7;font-size:12px;vertical-align:middle;}
#operationsView .operations-table-wrap th{font-weight:700;color:#46586f;background:#edf2f7;}
#operationsView .operations-table-wrap td:first-child,#operationsView .operations-table-wrap th:first-child{text-align:right;font-weight:650;padding-inline-start:12px;}
#operationsView .operations-table-wrap tbody tr{cursor:default;}
#operationsView .operations-table-wrap tbody tr:nth-child(even){background:#f8fafc;}
#operationsView .operations-table-wrap tbody tr:hover{background:#eef6f6;}
#operationsView .operations-panel .operations-table-wrap th:nth-child(1),#operationsView .operations-panel .operations-table-wrap td:nth-child(1){width:16%;}
#operationsView .operations-panel .operations-table-wrap th:nth-child(2){width:10%;}
#operationsView .operations-panel .operations-table-wrap th:nth-child(3){width:8%;}
#operationsView .operations-panel .operations-table-wrap th:nth-child(4){width:9%;}
#operationsView .operations-panel .operations-table-wrap th:nth-child(5){width:10%;}
#operationsView .operations-panel .operations-table-wrap th:nth-child(6){width:9%;}
#operationsView .operations-panel .operations-table-wrap th:nth-child(7){width:13%;}
#operationsView .operations-panel .operations-table-wrap th:nth-child(8){width:9%;}
#operationsView .operations-panel .operations-table-wrap th:nth-child(9){width:16%;}
#operationsView .operations-activity-panel .operations-table-wrap table{min-width:740px;}
#operationsView .operations-activity-panel .operations-table-wrap th:nth-child(1),#operationsView .operations-activity-panel .operations-table-wrap td:nth-child(1){width:22%;}
#operationsView .operations-activity-panel .operations-table-wrap th:nth-child(2){width:18%;}
#operationsView .operations-activity-panel .operations-table-wrap th:nth-child(3),#operationsView .operations-activity-panel .operations-table-wrap th:nth-child(4),#operationsView .operations-activity-panel .operations-table-wrap th:nth-child(5){width:20%;}
#operationsView .operations-activity-panel .operations-table-wrap td:nth-child(5){direction:ltr;font-size:11px;overflow-wrap:anywhere;}
@media(max-width:800px){
#operationsView .panel-title{padding:15px 14px;}
#operationsView .panel-title h2{font-size:17px;}
#operationsView .report-controls{padding:14px;gap:12px;}
#operationsView .report-controls>div:not(.report-custom):not(.report-actions){max-width:none;flex:1 1 145px;}
#operationsView .report-custom{max-width:none;}
#operationsView .report-actions{margin-inline-start:0;flex:1 1 100%;}
#operationsView .report-actions .btn{flex:1 1 120px;}
#operationsView .report-cards{padding:0 14px 12px;gap:8px;grid-template-columns:repeat(2,minmax(0,1fr));}
#operationsView .report-kpi{min-height:92px;padding:12px;}
#operationsView .report-kpi strong{font-size:24px;}
#operationsView .report-note,#operationsView .operations-subtitle{margin-inline:14px;}
#operationsView .operations-table-wrap{margin-inline:14px;max-width:calc(100% - 28px);}
}

/* 11G: subscription history only. */
#subscriptionHistoryOpen{margin:8px 0 0;width:100%;font-size:12px;}
#subscriptionHistoryDialog{border:1px solid #d5e0eb;border-radius:16px;padding:20px;width:min(600px,calc(100vw - 28px));max-height:85vh;overflow:auto;background:#fff;color:var(--ink);font:inherit;}
#subscriptionHistoryDialog::backdrop{background:rgba(15,35,55,.55)}
#subscriptionHistoryDialog h2{font-size:17px;line-height:1.7;}
#subscriptionHistoryDialog .subscription-history-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;}
#subscriptionHistoryInfo{margin:12px 0 5px;font-weight:700;}
#subscriptionHistoryDialog .subscription-history-note{font-size:12px;color:#52657d;margin-bottom:12px;}
#subscriptionHistoryRows{display:grid;gap:10px;}
#subscriptionHistoryDialog .subscription-history-card{border:1px solid #dce5ef;background:#f7f9fc;border-radius:10px;padding:12px;display:grid;gap:8px;min-width:0;}
#subscriptionHistoryDialog .subscription-history-meta{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:12px;color:#40566c;}
#subscriptionHistoryDialog .subscription-history-card p{font-size:12px;color:#52657d;}
#subscriptionHistoryDialog .subscription-history-card button{justify-self:start;}

/* 12A: scoped system settings */
#settingsView{max-width:1100px;margin:0 auto;display:grid;gap:16px}#settingsView.hidden{display:none}
#settingsView .settings-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;padding:20px}
#settingsView .settings-form label{display:block;font-weight:600;margin-bottom:8px}
#settingsView input{width:100%;min-width:0;padding:10px;border:1px solid #d6e0eb;border-radius:8px;background:#f7f9fc;font:inherit}
#settingsView .settings-actions{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}
#settingsView .settings-note{padding:0 20px 12px;margin:0;color:#52657b}
#settingsView .settings-history{padding:12px 20px;display:grid;gap:8px}
#settingsView .settings-history>div{padding:12px;border:1px solid #d6e0eb;background:#f7f9fc;border-radius:8px;line-height:1.9;overflow-wrap:anywhere}
@media(max-width:700px){#settingsView .settings-form{grid-template-columns:1fr;padding:14px}}

/* 12C: isolated system health dashboard */
#healthView{max-width:1250px;margin:auto;display:grid;gap:14px}
#healthView.hidden{display:none}
#healthView .health-panel{min-width:0;margin:0;overflow:hidden}
#healthView .health-grid{padding:14px 18px;display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:10px}
#healthView .health-card{border:1px solid #dce5ee;border-radius:10px;background:#f6f8fb;padding:15px;display:grid;gap:12px;min-width:0}
#healthView .health-card span{font-size:12px;color:#53677d}
#healthView .health-card strong{font-size:15px}
#healthView .health-good{color:#087f67}#healthView .health-bad{color:#b42318}
#healthView .health-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#healthView .health-fields{padding:8px 18px;display:grid}
#healthView .health-field{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #e5ebf2;flex-wrap:wrap;font-size:12px}
#healthView .health-field span{color:#52657b}#healthView .health-field strong{overflow-wrap:anywhere}
#healthView .health-note{margin:0;padding:12px 18px;color:#52657b;font-size:12px;line-height:1.9}
#healthView .health-actions,#healthView .health-disk{padding:8px 18px 16px}
#healthView .health-actions .form-note{margin-top:8px}
#healthView progress{width:100%;height:10px;accent-color:#087f80}
@media(max-width:800px){#healthView .health-columns{grid-template-columns:1fr}#healthView .health-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:430px){#healthView .health-grid{grid-template-columns:1fr}}

/* 12D scoped cleanup management */
#settingsView .cleanup-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:12px;align-items:end;padding:20px}
#settingsView .cleanup-form label,#settingsView .cleanup-confirm label{display:block;font-weight:600;margin-bottom:7px}
#settingsView .cleanup-results{padding:0 20px 20px}
#settingsView .cleanup-results.hidden{display:none}
#settingsView .cleanup-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:8px 0}
#settingsView .cleanup-table-wrap{overflow:auto;border:1px solid #d8e2ec;border-radius:8px;max-height:360px}
#settingsView .cleanup-table{table-layout:auto;width:100%;min-width:560px}
#settingsView .cleanup-table th,#settingsView .cleanup-table td{position:static!important;width:auto!important;min-width:0!important;text-align:right;padding:12px;white-space:nowrap}
#settingsView .cleanup-table input[type=checkbox]{width:16px;height:16px;min-height:0;cursor:pointer}
#settingsView .cleanup-confirm{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:16px;padding:12px;background:#fff4f2;border:1px solid #f1d1cd;border-radius:8px}
#settingsView .cleanup-confirm input{width:120px}
#settingsView #cleanupApply{color:#b42318;border-color:#e6a9a3}
#settingsView #cleanupApply:disabled{opacity:.45}
@media(max-width:900px){#settingsView .cleanup-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){#settingsView .cleanup-form{grid-template-columns:1fr;padding:14px}}

/* 12D Fix1: date picker only. */
input.jalali-input[readonly]{cursor:pointer;direction:ltr;text-align:left;background:#fff;border-color:#cbd9e6;padding-inline:12px;}
input.jalali-input[readonly]:focus{outline:2px solid #0d9488;outline-offset:2px;}
#jalaliPicker{width:min(370px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:0;border:1px solid #d7e0ea;border-radius:16px;background:#fff;color:#142b40;box-shadow:0 18px 65px #10283d38;}
#jalaliPicker::backdrop{background:#132b42a0;}
#jalaliPicker .jalali-header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #e0e8ef;}
#jalaliPicker h2{font-size:15px;margin:0;}
#jalaliPicker .jalali-content{padding:16px;}
#jalaliPicker .jalali-nav{display:grid;grid-template-columns:34px minmax(0,1fr) 88px 34px;gap:7px;align-items:center;margin-bottom:14px;}
#jalaliPicker .jalali-nav button{font-size:22px;line-height:1;padding:0;min-height:38px;}
#jalaliPicker select{width:100%;min-width:0;padding:6px;font-size:13px;min-height:38px;}
#jalaliPicker .jalali-week,#jalaliPicker .jalali-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center;}
#jalaliPicker .jalali-week{color:#63778e;font-weight:700;margin-bottom:6px;}
#jalaliPicker .jalali-day{min-width:0;min-height:36px;border:1px solid transparent;border-radius:8px;background:#f4f7fa;color:#19354d;padding:2px;}
#jalaliPicker .jalali-day:not(:disabled):hover{background:#e0f4f0;border-color:#0d9488;}
#jalaliPicker .jalali-day.jalali-today{border-color:#0d9488;font-weight:800;}
#jalaliPicker .jalali-day.jalali-selected{background:#087f80;color:#fff;}
#jalaliPicker .jalali-day:disabled{opacity:.38;cursor:not-allowed;}
#jalaliPicker button:focus-visible,#jalaliPicker select:focus-visible{outline:2px solid #0d9488;outline-offset:2px;}
#jalaliPicker .jalali-footer{display:flex;gap:8px;justify-content:space-between;border-top:1px solid #e0e8ef;margin-top:14px;padding-top:12px;}
