:root{--navy:#101f35;--navy2:#192e49;--blue:#3479ed;--aqua:#20c4b8;--mint:#1ba879;--amber:#e7a12c;--red:#dd4a62;--purple:#7969d8;--bg:#f3f6f9;--card:#fff;--text:#182b40;--muted:#708198;--line:#e5ebf1;--shadow:0 9px 28px rgba(22,45,70,.065);font-family:system-ui,-apple-system,'Segoe UI',Tahoma,Arial,sans-serif;color-scheme:light}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#e8eef3;color:var(--text)}body{font-size:14px;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #3479ed66;outline-offset:2px}a{color:inherit}svg{display:block}
.app{width:min(100%,760px);margin:auto;min-height:100vh;position:relative;background:var(--bg);padding-bottom:calc(88px + env(safe-area-inset-bottom));box-shadow:0 0 38px #101f3514}
.header{background:radial-gradient(circle at 10% -30%,#3686ec55,transparent 42%),linear-gradient(145deg,#101e33 0%,#162a44 67%,#1b3656);border-radius:0 0 27px 27px;color:#fff;padding:calc(15px + env(safe-area-inset-top)) 18px 23px}.head-top,.hflex,.between{display:flex;align-items:center;justify-content:space-between;gap:10px}.brand{display:flex;align-items:center;gap:12px}.logo{display:grid;place-items:center;width:44px;height:44px;border-radius:15px;background:linear-gradient(140deg,#29d0bb,#3794f7);font-size:26px;font-weight:850;box-shadow:0 7px 18px #006ec641}.brand h1{font-size:21px;margin:0;font-weight:800;letter-spacing:.1px}.brand span{color:#ccdae9;font-size:11px;display:block;margin-top:1px}.head-tools{display:flex;gap:8px}.header-icon{position:relative;display:grid;place-items:center;background:#ffffff17;color:white;border:1px solid #ffffff25;border-radius:12px;width:40px;height:40px}.header-icon svg{width:20px;height:20px}.bubble{position:absolute;top:-4px;right:-5px;min-width:18px;height:18px;padding:2px 3px;border-radius:50%;background:var(--red);color:white;font-size:10px;border:2px solid #152843;text-align:center}.head-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:18px}.head-bottom strong{font-size:13px;font-weight:650}.tag-glass{padding:6px 10px;border-radius:20px;border:1px solid #ffffff25;color:#d9e9f6;font-size:10px}
.content{padding:14px 14px 8px}.page{display:grid;gap:11px}.eyebrow{display:block;font-size:10px;font-weight:750;color:#698199;letter-spacing:.2px}.title{font-size:18px;font-weight:800;margin:2px 0 4px;letter-spacing:-.2px}.description{color:var(--muted);font-size:11px;line-height:1.5;margin:0}.section-title{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:3px 0 0}.section-title h3{font-size:13.5px;letter-spacing:-.2px;margin:0}.section-title small{color:var(--muted);font-size:10px}
.panel{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:14px;padding:12px 14px}.hero{padding:12px 14px}.grid-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:10px}.metric{background:#f7f9fc;border-radius:11px;padding:8px 6px;text-align:center;border:1px solid #edf1f5}.metric strong{display:block;font-size:18px;font-weight:800;font-variant-numeric:tabular-nums;line-height:1.2}.metric span{font-size:9.5px;color:var(--muted);display:block;margin-top:2px}.metric.blue strong{color:var(--blue)}.metric.teal strong{color:var(--mint)}.metric.purple strong{color:var(--purple)}.metric.amber strong{color:#bd791a}
.shift-hero{background:linear-gradient(155deg,#fbfdfd,#fff);border-color:#dcece5;padding:18px}.status-line{display:flex;justify-content:space-between;align-items:center;gap:8px}.status{display:inline-flex;align-items:center;gap:5px;border-radius:9px;padding:5px 9px;background:#f0f2f6;color:#6b7c91;font-size:10px;font-weight:750;white-space:nowrap}.status.running{background:#e0f6eb;color:#128653}.status.planned{background:#e7f0ff;color:#306fcb}.status.finished{background:#ebeff4;color:#617186}.status.cancelled{background:#ffebee;color:#c73c57}.clock{font-size:35px;font-weight:800;line-height:1.2;margin:17px 0 4px;font-variant-numeric:tabular-nums;color:#15334d}.subtitle{font-size:12px;color:var(--muted)}.btn{border:0;cursor:pointer;transition:all .15s ease;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:37px;padding:9px 12px;border-radius:11px;background:#edf3fb;color:#2565b7;font-size:12px;font-weight:750}.btn:hover{filter:brightness(.94)}.btn:active{transform:scale(.97)}.btn svg{width:16px;height:16px}.btn.primary{background:var(--blue);color:#fff}.btn.secondary{background:#475569;color:#fff}.btn.success{background:#12a474;color:#fff}.btn.danger{background:#e95067;color:#fff}.btn.neutral{background:#f1f4f7;color:#4f647c}.btn.outline{background:#fff;border:1px solid var(--line);color:#4a6682}.btn.full{width:100%;min-height:48px;margin-top:16px;font-size:14px;border-radius:13px}.btn.tiny{min-height:29px;padding:5px 8px;font-size:10px}.btnrow{display:flex;flex-wrap:wrap;gap:7px;align-items:center}
.location{margin-top:10px;border-radius:12px;padding:10px;background:#f6f9fc;border:1px solid #e9eff5;display:flex;align-items:center;justify-content:space-between;gap:8px}.location b{font-size:11px}.location small{display:block;font-size:10px;color:var(--muted);margin-top:2px;line-height:1.5}.location .btn{flex:0 0 auto}
.activity-list{display:grid;gap:9px}.person{display:flex;align-items:center;gap:10px}.avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#e5f2ff;color:#236ab5;font-size:16px;font-weight:800;flex-shrink:0}.pinfo{min-width:0;flex:1}.pinfo strong{font-size:13px;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.pinfo small{color:var(--muted);display:block;font-size:10px;margin-top:3px}.person-wrap{display:grid;gap:10px}.dot{width:9px;height:9px;background:#a8b8c7;border-radius:99px;flex-shrink:0}.dot.on{background:var(--mint);box-shadow:0 0 0 4px #1ba8791b}.mini-row{display:flex;gap:6px;flex-wrap:wrap}.mini{font-size:10px;background:#f4f7fa;color:#5d7287;border-radius:8px;padding:5px 7px}.empty{font-size:12px;color:var(--muted);text-align:center;padding:25px 10px;border:1px dashed #d8e1eb;background:#fff;border-radius:15px}.warn-box{display:flex;gap:9px;align-items:center;border:1px solid #f6dca9;border-radius:14px;background:#fff9ec;color:#895e19;padding:11px;font-size:12px;line-height:1.5}.warn-box svg{width:19px;height:19px;flex-shrink:0}.notice{display:flex;justify-content:space-between;align-items:flex-start;gap:9px;padding:12px;background:#fff;border:1px solid #f4d5d9;border-right:3px solid var(--red);border-radius:13px}.notice strong{display:block;font-size:12px}.notice p{font-size:10px;margin:4px 0 0;color:var(--muted);line-height:1.65}.notice.warning{border-color:#f6e3b6;border-right-color:var(--amber)}.notice.info{border-color:#d7e7ff;border-right-color:var(--blue)}
.nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);height:calc(73px + env(safe-area-inset-bottom));width:min(100%,760px);display:flex;align-items:stretch;justify-content:space-around;padding:6px 7px calc(6px + env(safe-area-inset-bottom));z-index:30;background:#fffffff4;backdrop-filter:blur(20px);border-top:1px solid #e4eaf0;box-shadow:0 -8px 28px #09253a09}.nav button{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;max-width:160px;background:transparent;border:0;color:#8c9aab;font-size:10px;font-weight:700;border-radius:12px}.nav button svg{height:22px;width:22px;stroke-width:1.8}.nav button.active{background:#ecf3ff;color:#2b72dd}.nav button.active svg{stroke-width:2.1}
.week-head{display:flex;align-items:center;justify-content:space-between;gap:6px}.week-head strong{font-size:14px}.week-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-top:13px}.day{border:1px solid #e9eef3;background:#f8fafd;border-radius:13px;min-height:84px;padding:8px 3px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:7px;color:var(--text)}.day.active{background:#e9f2ff;border-color:#84aeed;box-shadow:inset 0 0 0 1px #96bbf1}.day .weekday{font-size:10px;color:#8393a5;font-weight:750}.day .daynum{font-size:17px;font-weight:800;line-height:1}.day.active .daynum{color:#1760c4}.day .daybar{width:20px;height:4px;background:#dce5ed;border-radius:10px;margin-top:auto}.day .daybar.running{background:var(--mint)}.day .daybar.planned{background:var(--blue)}.day .daybar.finished{background:#8d9caf}.day .daybar.cancelled{background:var(--red)}.day .daybar.multi{background:linear-gradient(90deg,#3b81e8 50%,#22ac7b 50%)}.calendar-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.calendar-tools select{flex:1;min-width:120px}
.form{display:grid;grid-template-columns:1fr 1fr;gap:10px}.field{min-width:0}.field.wide{grid-column:1/-1}.field label{display:block;font-size:11px;color:#63788d;font-weight:700;margin-bottom:5px}.field input,.field select,.field textarea{width:100%;min-width:0;background:#fbfcfd;border:1px solid #dce5ed;border-radius:11px;padding:10px 10px;color:var(--text);outline:0}.field textarea{min-height:80px;resize:vertical}.helper{font-size:11px;color:var(--muted);line-height:1.65}.toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:space-between}.report-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.report-metric{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 8px;text-align:center}.report-metric.report-wage-metric{background:#f0f6ff;border-color:#bad5fb}.report-metric.report-wage-metric strong{color:#1a62bf}.report-metric.report-wage-metric span{color:#2a5890;font-weight:700}.report-subtext{font-size:11px;color:var(--muted);font-weight:normal}.report-metric strong{display:block;font-size:17px;font-variant-numeric:tabular-nums}.report-metric span{display:block;font-size:9px;color:var(--muted);margin-top:4px}.tablebox{max-width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:15px;background:white}table{border-collapse:collapse;width:100%;min-width:1030px}th,td{padding:10px 9px;border-bottom:1px solid #eff2f5;text-align:right;font-size:11px;white-space:nowrap}th{background:#f7f9fc;color:#61768b;font-size:10px;font-weight:800}tr:last-child td{border-bottom:0}td a{color:#236fd2;text-decoration:underline;text-underline-offset:2px}td.good{color:#13824e}td.bad{color:#c53c55}
.overlay{position:fixed;z-index:50;inset:0;background:#07162590;display:flex;align-items:flex-end;justify-content:center}.modal{width:min(100%,760px);max-height:min(92vh,900px);overflow-y:auto;border-radius:24px 24px 0 0;background:#fff;padding:16px 17px calc(24px + env(safe-area-inset-bottom));box-shadow:0 -18px 50px #101f3555}.modal h2{font-size:19px;margin:0}.modal-sub{color:var(--muted);font-size:11px;margin:5px 0 16px}.handle{height:5px;width:44px;background:#d9e2eb;border-radius:6px;margin:0 auto 15px}.modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:17px}.modal-actions .btn{height:45px}.toast{position:fixed;z-index:70;bottom:calc(92px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%,15px);opacity:0;transition:.2s;pointer-events:none;background:#172e43;color:#fff;border-radius:12px;padding:12px 16px;min-width:160px;text-align:center;font-size:12px;box-shadow:0 12px 24px #0003}.toast.show{transform:translate(-50%,0);opacity:1}
.login-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:radial-gradient(circle at 15% 10%,#3a86f044,transparent 38%),linear-gradient(145deg,#0c1e33,#1a3353)}.login-card{width:min(100%,420px);background:#fff;border-radius:25px;padding:25px;box-shadow:0 20px 55px #0003}.login-logo{width:58px;height:58px;border-radius:18px;background:linear-gradient(145deg,#2cc8b7,#3987ed);display:grid;place-items:center;color:#fff;font-size:33px;font-weight:800}.login-card h1{font-size:27px;margin:14px 0 4px}.login-card p{color:var(--muted);font-size:12px;line-height:1.7;margin:0 0 19px}.login-form{display:grid;gap:11px}.account-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:15px}.account-chips button{font-size:11px;background:#f0f4f9;color:#4b647e;border:1px solid #e3eaf2;border-radius:10px;padding:7px 9px}.demo-label{font-size:10px;color:#a07723;background:#fff8e9;border:1px solid #f7eac6;border-radius:10px;padding:10px;margin-top:13px;line-height:1.6}
@media(max-width:440px){.content{padding:13px 11px}.header{padding-left:12px;padding-right:12px}.report-grid{grid-template-columns:repeat(2,1fr)}.metric strong{font-size:19px}.metric{padding:12px 4px}.week-grid{gap:3px}.day{min-height:75px;padding:8px 2px}.day .weekday{font-size:9px}.day .daynum{font-size:15px}.day .daybar{width:14px}.modal{padding-left:12px;padding-right:12px}.form{gap:8px}}
@media(max-width:330px){.week-grid{overflow:auto;display:flex}.day{min-width:43px}}
@media(min-width:780px){body{padding-top:16px}.app{border-radius:24px 24px 0 0;overflow:hidden}}
@media print{body{background:#fff!important}.app{box-shadow:none;width:100%;padding:0}.header,.nav,.toolbar .btn,.week-grid,.login-screen{display:none!important}.content{padding:0}.panel{box-shadow:none}.tablebox{overflow:visible}table{min-width:0}th,td{font-size:8px;padding:5px}.report-page .form{display:none}.report-page .section-title{margin-bottom:8px}}

.mobile-report-list{display:none}
.mobile-report{display:grid;gap:9px}
.mobile-report details{border-top:1px solid var(--line);padding-top:10px;margin-top:10px}
.mobile-report summary{font-size:11px;font-weight:750;color:var(--blue);cursor:pointer;list-style:inside}
.mobile-report .detail-lines{display:grid;gap:8px;margin-top:10px}
.mobile-report .detail-lines>div{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px}
.mobile-report .detail-lines span:first-child{color:var(--muted)}
@media(max-width:600px){.mobile-report-list{display:grid;gap:9px}.report-page .tablebox{display:none}}
@media print{.mobile-report-list{display:none!important}.report-page .tablebox{display:block!important}}
/* Monthly payroll-ready attendance export: browser native print-to-PDF */
.monthly-section{display:grid;gap:13px;border:1px solid #d4e6ef;background:linear-gradient(155deg,#fff,#fafdff);}
.monthly-title{display:flex;align-items:center;justify-content:space-between;gap:15px}
.monthly-title svg{color:#3479ed;flex:0 0 auto}
.monthly-title h3{margin:4px 0;font-size:17px;font-weight:800;color:#142c45}
.monthly-title p{margin:0;color:var(--muted);font-size:11px;line-height:1.7}
.monthly-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.monthly-kpi{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.monthly-kpi>div{background:#f5f9fc;border:1px solid #e8eff4;border-radius:13px;padding:10px 7px;text-align:center}
.monthly-kpi span{display:block;font-size:10px;color:#77899d}
.monthly-kpi strong{display:block;font-size:19px;color:#163c62;margin-top:5px;font-variant-numeric:tabular-nums}
.monthly-total{border-radius:16px;padding:15px 17px;background:linear-gradient(105deg,#14283f,#204b68);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px}
.monthly-total span{font-size:12px;font-weight:750}
.monthly-total strong{font-size:27px;direction:ltr;white-space:nowrap;font-variant-numeric:tabular-nums}
.monthly-total small{font-size:11px;font-weight:500;direction:rtl}
.monthly-actions{display:flex;gap:8px;flex-wrap:wrap}.monthly-actions .btn{flex:1;min-height:44px}
.monthly-hint{margin:-4px 0 0;font-size:10px;color:#728397;line-height:1.6}
#printReportRoot{display:none}
#printReportRoot.show-preview{display:block;position:fixed;inset:0;z-index:80;overflow-y:auto;overflow-x:auto;background:#e8eef3;padding:68px clamp(8px,2vw,20px) 26px;direction:rtl;box-sizing:border-box}
.print-preview-controls{background:#101f35;color:#fff;position:sticky;top:-68px;margin:-68px -12px 16px;padding:13px clamp(12px,3vw,35px);display:flex;align-items:center;justify-content:space-between;gap:10px;z-index:2;box-sizing:border-box}
.print-preview-controls strong{font-size:13px}.print-preview-controls>div{display:flex;gap:7px;flex-wrap:wrap}
.print-document{background:#fff;color:#172f46;direction:rtl;max-width:820px;width:100%;margin:0 auto;min-height:auto;padding:26px 24px 20px;box-shadow:0 14px 36px #101f3520;font-family:Arial,Tahoma,'Noto Naskh Arabic',sans-serif;box-sizing:border-box}
.print-document *{box-sizing:border-box}
.print-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-bottom:17px;border-bottom:2px solid #d9e8ed}
.print-brand{display:flex;align-items:center;gap:10px}.print-logo{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;color:#fff;font-weight:900;font-size:26px;background:linear-gradient(155deg,#23c2ae,#3c85de)}
.print-brand strong{display:block;font-size:18px;letter-spacing:.15px}.print-brand small{display:block;color:#758ba0;font-size:9px;margin-top:4px}
.print-head-side{text-align:left}.print-head-side span{display:block;font-weight:800;color:#254f70;font-size:13px}.print-head-side small{display:block;color:#758ba0;font-size:9px;margin-top:5px}
.print-heading{margin:22px 0 17px}.print-heading .print-kicker{font-size:10px;font-weight:800;letter-spacing:.3px;color:#0b9f91}.print-heading h1{font-size:24px;margin:7px 0 6px;color:#142d45}.print-heading p{font-size:10px;color:#8192a0;margin:0}
.print-details{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0}
.print-details>div{background:#f7f9fc;border:1px solid #e8eff3;border-radius:10px;padding:10px 12px}
.print-details span{display:block;font-size:9px;color:#77889a}.print-details b{display:block;margin-top:5px;font-size:13px;color:#173852}
.print-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:17px 0 24px}
.print-summary>div{background:#ecf7f7;border-right:3px solid #27bcaa;padding:11px 12px;border-radius:9px}
.print-summary span{display:block;color:#5d8192;font-size:9px}.print-summary b{display:block;font-size:18px;color:#155565;margin-top:5px;font-variant-numeric:tabular-nums}
.print-section-heading{font-size:15px;color:#183b58;border-bottom:1px solid #e1e8ed;margin:15px 0 11px;padding-bottom:9px;display:flex;justify-content:space-between}
.print-section-heading small{font-size:9px;color:#8595a5;font-weight:400}
.print-table{table-layout:fixed;width:100%!important;max-width:100%!important;min-width:0!important;border-collapse:collapse;direction:rtl;font-variant-numeric:tabular-nums;box-sizing:border-box}
.print-table th,.print-table td{border-bottom:1px solid #e8eef3;padding:8px 3px;text-align:center;vertical-align:middle;font-size:9px;line-height:1.45;box-sizing:border-box}
.print-table th{background:#17324b;color:#fff;font-size:8.5px;font-weight:700;white-space:nowrap!important;word-break:keep-all!important;text-align:center}
.print-table th:first-child{border-radius:0 6px 6px 0}
.print-table th:last-child{border-radius:6px 0 0 6px}
.print-table col:nth-child(1),.print-table th:nth-child(1),.print-table td:nth-child(1){width:4%;text-align:center}
.print-table col:nth-child(2),.print-table th:nth-child(2),.print-table td:nth-child(2){width:21%;text-align:right;padding-right:6px}
.print-table col:nth-child(3),.print-table th:nth-child(3),.print-table td:nth-child(3){width:12%;text-align:center}
.print-table col:nth-child(4),.print-table th:nth-child(4),.print-table td:nth-child(4){width:9.5%;text-align:center}
.print-table col:nth-child(5),.print-table th:nth-child(5),.print-table td:nth-child(5){width:9.5%;text-align:center}
.print-table col:nth-child(6),.print-table th:nth-child(6),.print-table td:nth-child(6){width:9%;text-align:center}
.print-table col:nth-child(7),.print-table th:nth-child(7),.print-table td:nth-child(7){width:8.5%;text-align:center}
.print-table col:nth-child(8),.print-table th:nth-child(8),.print-table td:nth-child(8){width:12.5%!important;min-width:65px!important;text-align:center;white-space:nowrap!important;word-break:keep-all!important}
.print-table col:nth-child(9),.print-table th:nth-child(9),.print-table td:nth-child(9){width:14%!important;text-align:center;white-space:nowrap!important;word-break:keep-all!important}
.print-table tbody tr:nth-child(even){background:#f8fafc}
.print-table td strong{font-size:9px;display:block}
.print-table .print-mapline{display:block;font-size:7.3px;margin-top:3px;line-height:1.65}
.print-table .print-mapline a{color:#11769c;text-decoration:none}
.print-table .print-num{direction:ltr;text-align:center;font-size:9.5px;white-space:nowrap!important}
.print-table .print-num small{display:block;font-size:7px;color:#748699}
.print-table .print-orders-cell{direction:rtl;text-align:center;font-size:9px;white-space:nowrap!important;word-break:keep-all!important}
.print-table .print-orders-cell .orders-badge{white-space:nowrap!important;display:inline-flex;align-items:center;gap:3px}
.print-table .print-orders-cell b{font-size:10px;color:#183b58;white-space:nowrap!important}
.print-table .print-orders-cell small{color:#647d96;font-size:8px;white-space:nowrap!important}
.print-edit{color:#b8752c!important}.map-unavailable{color:#adb8c0}
.print-table .empty-table{text-align:center;color:#7c8da0;padding:23px}
.print-last-total{margin-top:22px;border:1.5px solid #bed8e1;border-radius:12px;overflow:hidden;break-inside:avoid;page-break-inside:avoid;width:100%;max-width:100%;box-sizing:border-box}
.print-total-head{background:#e7f4f4;color:#1b5667;padding:11px 15px;display:flex;justify-content:space-between;gap:10px;font-size:12px;font-weight:800}
.print-total-head small{font-weight:400;color:#6e8593;font-size:9px}
.print-final-rows{display:flex;align-items:center;justify-content:space-between;padding:10px 15px;border-bottom:1px solid #e5ecf0;font-size:10px}
.print-final-rows strong{font-size:14px;color:#193f5c;direction:ltr}
.print-grand-total{padding:14px 16px;display:flex;justify-content:space-between;gap:10px;align-items:center;color:#fff;background:#14344e}
.print-grand-total span{font-weight:800;font-size:13px}.print-grand-total strong{font-size:27px;direction:ltr;font-variant-numeric:tabular-nums}.print-grand-total small{font-size:11px;font-weight:400;direction:rtl}
.print-method{font-size:9px;color:#718397;line-height:1.9;margin:16px 0 22px}
.print-signatures{display:flex;gap:30px;margin:25px 0;page-break-inside:avoid;break-inside:avoid}.print-signatures>div{flex:1;font-size:10px;color:#64798c}.print-signatures i{display:block;border-bottom:1px dashed #a7bac8;margin-top:25px}
.print-footer{border-top:1px solid #e0e8ed;padding-top:11px;display:flex;justify-content:space-between;gap:10px;color:#8c9dad;font-size:8px}
@media(max-width:440px){.monthly-form{grid-template-columns:1fr}.monthly-kpi strong{font-size:15px}.monthly-title h3{font-size:16px}.monthly-total strong{font-size:22px}.monthly-actions{flex-direction:column}.print-document{padding:19px 14px;min-height:auto}.print-heading h1{font-size:20px}.print-details b{font-size:11px}.print-table th,.print-table td{font-size:7px;padding:6px 3px}.print-table .print-num{font-size:8px}.print-table .print-mapline{font-size:6px}}
@page{size:A4 portrait;margin:10mm 10mm 12mm}
@media print{
 html,body{margin:0!important;background:#fff!important;padding:0!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 body.report-print-mode>#app,body.report-print-mode>#modalRoot,body.report-print-mode>#toast{display:none!important}
 body.report-print-mode>#printReportRoot{display:block!important;position:static!important;inset:auto!important;background:#fff!important;padding:0!important;overflow:visible!important;margin:0!important;width:100%!important;max-width:100%!important}
 #printReportRoot .print-preview-controls{display:none!important}
 .print-document{max-width:100%!important;margin:0!important;padding:0!important;box-shadow:none!important;min-height:0!important;width:100%!important;overflow:visible!important;box-sizing:border-box!important}
 .print-document *{box-sizing:border-box!important}
 .print-table,.print-cash-table{width:100%!important;max-width:100%!important;min-width:0!important;table-layout:fixed!important;box-sizing:border-box!important}
 .print-table thead,.print-cash-table thead{display:table-header-group}
 .print-table tbody tr,.print-cash-table tbody tr{page-break-inside:avoid;break-inside:avoid}
 .print-settlement,.print-cash,.print-daily{page-break-inside:avoid;break-inside:avoid;width:100%!important;max-width:100%!important;box-sizing:border-box!important}
 .print-settlement-grid,.print-cash-metrics{page-break-inside:avoid;break-inside:avoid}
 .print-last-total,.print-settlement-total,.print-cash-total,.print-daily-total,.print-signatures{page-break-inside:avoid;break-inside:avoid;width:100%!important;max-width:100%!important;box-sizing:border-box!important}
 .print-table .print-mapline a{color:#11769c!important}
}
/* Compact printed spacing for one-page summaries; multi-page reports remain paginated. */
@media print{
 .print-header{padding-bottom:10px}
 .print-logo{width:40px;height:40px;font-size:22px}
 .print-heading{margin:12px 0 9px}
 .print-heading h1{font-size:21px;margin:4px 0}
 .print-details{gap:6px;margin:10px 0}
 .print-details>div{padding:7px 10px}
 .print-summary{margin:9px 0 13px;gap:6px}
 .print-summary>div{padding:8px 10px}
 .print-summary b{font-size:16px;margin-top:2px}
 .print-section-heading{margin:9px 0 6px;padding-bottom:6px}
 .print-table th,.print-table td{padding:5px 4px;line-height:1.3}
 .print-table .print-mapline{margin-top:2px}
 .print-last-total{margin-top:12px}
 .print-total-head{padding:7px 11px}
 .print-final-rows{padding:7px 11px}
 .print-grand-total{padding:10px 13px}
 .print-grand-total strong{font-size:24px}
 .print-method{margin:9px 0 11px;line-height:1.65}
 .print-signatures{margin:12px 0 9px;gap:24px}
 .print-signatures i{margin-top:13px}
 .print-footer{padding-top:6px}
}

/* Shiftly Pro v0.3.2 — adaptive desktop workspace */
.nav-identity,.nav-overline,.nav-footer,.nav-spacer,.desktop-crumb,.desktop-date,.day-status,.day-shift-time,.calendar-help{display:none}
.nav-links{display:flex;flex:1;width:100%;justify-content:space-around;align-items:stretch;min-width:0}
.nav-active-marker{display:none}
.dashboard-grid,.dashboard-main,.dashboard-side,.calendar-layout,.calendar-primary,.calendar-agenda{display:grid;gap:15px;min-width:0;align-content:start}
.dashboard-page .metric-panel>.grid-metrics{margin-top:13px}
.overview-date{font-size:11px;color:var(--muted)}
.quick-panel{display:grid;gap:11px}
.quick-panel strong{font-size:15px;color:#173550}
.quick-panel .description{line-height:1.8}
.quick-symbol{width:49px;height:49px;display:grid;place-items:center;border-radius:15px;background:#e9f3ff;color:#327eeb}
.quick-panel .btn.full{margin-top:2px}
.calendar-help{color:#60778d;font-size:12px;line-height:1.7;gap:12px;align-items:center}
.calendar-help svg{color:var(--blue);flex:0 0 auto}
.day-status{color:#6c7f92}
.day .weekday-long{display:none}.day .weekday-short{display:inline}

/* Tablets and landscape phones: use available width without scaling mobile view. */
@media (min-width:760px) and (max-width:1099px){
  body{padding:0;background:#f3f6fa}
  .app{width:100%;max-width:none;border-radius:0;overflow:visible;box-shadow:none}
  .nav{width:100%;max-width:none}
  .content{padding:24px 30px 35px;max-width:1100px;margin:0 auto}
  .panel{padding:20px}
  .header{border-radius:0 0 24px 24px;padding-inline:30px}
  .page{gap:19px}
  .dashboard-grid{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:18px}
  .calendar-layout{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:18px}
  .calendar-help{display:flex}
  .team-page>.activity-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .report-page .form{grid-template-columns:repeat(4,minmax(0,1fr))}
  .week-grid{gap:7px}
  .day{min-height:104px}
}

/* Desktop: true multi-column application; fixed rail, wide content, top command bar. */
@media (min-width:1100px){
  :root{--nav-width:258px;--shadow:0 12px 34px rgba(21,43,70,.052)}
  html,body{background:#f2f5f9}
  body{padding:0;min-height:100vh;font-size:15px}
  .app{width:calc(100% - var(--nav-width));max-width:none;min-height:100vh;margin:0 var(--nav-width) 0 0;padding:0;background:linear-gradient(165deg,#f4f7fb 0%,#f8fafc 72%,#f2f6fa 100%);box-shadow:none;border-radius:0;overflow:visible}
  .header{position:sticky;top:0;z-index:20;margin:0;background:#ffffffeb;color:#203951;border-bottom:1px solid #e4eaf1;border-radius:0;padding:14px clamp(24px,3vw,50px);box-shadow:0 7px 24px rgba(19,46,67,.025);backdrop-filter:blur(15px)}
  .head-top{min-height:45px;gap:20px;max-width:1180px;margin:0 auto;width:100%}
  .header .brand{display:none}
  .desktop-crumb{display:flex;align-items:center;gap:12px;font-size:13px;color:#728399}
  .desktop-crumb svg{color:#3978d2}
  .desktop-crumb strong{font-size:17px;font-weight:780;color:#1a354d}
  .crumb-slash{color:#c2ced8}
  .head-tools{align-items:center;gap:10px}
  .desktop-date{display:inline-block;font-size:12px;color:#7a8b9c;padding-inline:12px;white-space:nowrap}
  .header-icon{color:#354e69;border:1px solid #e4eaf1;background:#f6f8fb;transition:background .2s,transform .2s}
  .header-icon:hover{background:#e9f2ff;transform:translateY(-1px)}
  .header-icon svg{width:19px;height:19px}
  .bubble{border:2px solid #fff;top:-5px;right:-5px}
  .head-bottom{display:none}
  .content{width:100%;max-width:1180px;margin:0 auto;padding:16px clamp(16px,2.5vw,36px) 40px;box-sizing:border-box}
  .page{gap:11px;min-width:0}
  .page>.hero{padding:13px 18px;border-radius:13px}
  .hero{border:1px solid #dde7ef;box-shadow:0 6px 20px rgba(24,58,83,.035);background:linear-gradient(120deg,#fff 70%,#f0f8fd)}
  .eyebrow{font-size:10px;color:#2b89b6;letter-spacing:.2px}
  .title{font-size:18px;margin:2px 0 3px;letter-spacing:-.3px}
  .description{font-size:11.5px;line-height:1.5}
  .section-title{margin:2px 0 0}
  .section-title h3{font-size:13.5px}
  .section-title small{font-size:10.5px}
  .panel{padding:13px 15px;border:1px solid #e2eaf1;border-radius:14px;box-shadow:var(--shadow)}
  .panel:hover{border-color:#d7e5ef}
  .grid-metrics{gap:9px;margin-top:8px}
  .metric{padding:9px 8px;border:1px solid #e8edf3;border-radius:11px;min-height:unset;background:linear-gradient(145deg,#f9fbff,#fff)}
  .metric strong{font-size:20px;line-height:1.2;letter-spacing:-.3px}
  .metric span{font-size:10.5px}
  .nav{inset:0 0 0 auto;left:auto;bottom:0;transform:none;position:fixed;height:100dvh;width:var(--nav-width);background:linear-gradient(180deg,#11243b,#0b1b2d 60%,#0b1929);color:#eef5fc;border:0;border-left:1px solid #213a51;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:28px 14px 20px;gap:0;box-shadow:-9px 0 36px rgba(4,27,46,.08);backdrop-filter:none;z-index:40}
  .nav-identity{display:flex;align-items:center;gap:12px;padding:0 11px 31px;border-bottom:1px solid #ffffff1b;margin-bottom:25px}
  .nav-logo{width:47px;height:47px;border-radius:15px;background:linear-gradient(140deg,#1fd3bf,#327ef5);display:grid;place-items:center;box-shadow:0 8px 22px #0bd4d42e;font-size:26px;font-weight:900;flex:0 0 auto}
  .nav-identity strong{display:block;font-size:20px;letter-spacing:.2px}
  .nav-pro{color:#49d8ce;font-size:10px;vertical-align:super;letter-spacing:1px}
  .nav-identity small{display:block;color:#93a9bf;font-size:10px;margin-top:4px}
  .nav-overline{display:block;color:#7e95aa;padding:0 15px 13px;font-size:10px;font-weight:750;letter-spacing:.7px}
  .nav-links{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;flex:0 0 auto;gap:5px;width:100%}
  .nav button{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;flex:0 0 auto;max-width:none;width:100%;min-height:50px;padding:0 14px;border:1px solid transparent;border-radius:13px;text-align:right;gap:14px;color:#a1b2c3;font-size:13px;font-weight:650;position:relative;transition:color .18s,background .18s,transform .18s}
  .nav button svg{height:20px;width:20px;flex:0 0 auto;color:#91a9bd}
  .nav button:hover{color:#fff;background:#ffffff0b;transform:translateX(-2px)}
  .nav button.active{color:#f9fdff;background:linear-gradient(100deg,#247dec45,#1dbfa61a);border:1px solid #59a3ee39;box-shadow:inset 0 1px 0 #ffffff13}
  .nav button.active svg{color:#4cd6d5}
  .nav-active-marker{display:none}
  .nav button.active .nav-active-marker{position:absolute;right:0;top:12px;bottom:12px;width:3px;background:#3ad1c8;display:block;border-radius:3px}
  .nav-spacer{display:block;flex:1}
  .nav-footer{display:flex;gap:10px;align-items:center;padding:15px 11px 1px;border-top:1px solid #ffffff20;min-width:0}
  .nav-indicator{width:9px;height:9px;border-radius:50%;background:#3ed1a4;box-shadow:0 0 0 4px #3ed1a419;flex:0 0 auto}
  .nav-footer strong{display:block;font-size:11px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:178px}
  .nav-footer small{display:block;color:#91a7bb;font-size:10px;margin-top:4px}
  .dashboard-grid{grid-template-columns:minmax(0,1.58fr) minmax(300px,.82fr);gap:13px}
  .dashboard-main,.dashboard-side{gap:11px}
  .dashboard-main .activity-list.team-dashboard-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .dashboard-page .overview-panel{padding:12px 16px;border-radius:14px}
  .dashboard-page .overview-panel .grid-metrics{margin-top:8px}
  .overview-date{font-size:11px}
  .no-alerts{background:#f1fbf8;color:#328570;border-color:#d7eee6;min-height:unset;padding:8px 12px;font-size:11px;border-radius:10px}
  .shift-hero{background:linear-gradient(145deg,#fff,#f6fbfa);padding:15px}
  .clock{font-size:28px}
  .dashboard-side .quick-panel{padding:13px 15px;gap:7px;border-radius:14px}
  .quick-symbol{width:36px;height:36px;border-radius:10px}
  .quick-symbol svg{width:18px;height:18px}
  .quick-panel strong{font-size:13px}
  .quick-panel .description{font-size:11px;line-height:1.45}
  .quick-panel .btn.full{min-height:35px;font-size:11.5px;margin-top:5px;border-radius:9px;padding:6px 10px}
  .calendar-layout{grid-template-columns:minmax(0,1.45fr) minmax(345px,.85fr);gap:24px;align-items:start}
  .calendar-primary,.calendar-agenda{gap:17px}
  .calendar-panel{padding:25px}
  .calendar-tools{justify-content:space-between;gap:14px}
  .calendar-tools>.field{min-width:240px!important}
  .calendar-tools .btn{min-height:41px}
  .calendar-page .week-grid{gap:9px;margin-top:20px}
  .calendar-page .day{min-height:157px;align-items:flex-start;justify-content:flex-start;padding:14px 12px;gap:10px;background:#fbfcff;border:1px solid #e2eaf2;border-radius:16px;text-align:right;transition:transform .18s,border .18s,background .18s,box-shadow .18s}
  .calendar-page .day:hover{transform:translateY(-2px);border-color:#a6c3ea;box-shadow:0 8px 18px #2756a41a}
  .calendar-page .day.active{background:linear-gradient(155deg,#e9f3ff,#f8fbff);border-color:#81adeb;box-shadow:0 0 0 2px #d8e9ff,0 12px 25px #1b78dd14}
  .day .weekday{font-size:11px;color:#738aa1;font-weight:750}
  .day .weekday-long{display:inline}.day .weekday-short{display:none}
  .day .daynum{font-size:30px;line-height:1.15}
  .day-status{display:block;font-size:10px;line-height:1.35;margin-top:4px}
  .day-shift-time{display:block;color:#526d83;font-size:10px;direction:ltr;text-align:right;white-space:nowrap}
  .day .daybar{width:100%;height:5px;margin-top:auto}
  .calendar-help{display:flex;background:#f9fbfd;box-shadow:none}
  .calendar-agenda>.section-title{margin-top:3px}
  .calendar-agenda .activity-list{gap:13px}
  .calendar-agenda .warn-box{margin-top:2px}
  .team-page>.activity-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .person-wrap{padding:11px 13px;border-radius:12px;gap:7px}
  .person{gap:10px}
  .avatar{width:36px;height:36px;font-size:14px;border-radius:10px}
  .pinfo strong{font-size:12.5px}
  .pinfo small{font-size:10px}
  .report-page .form{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
  .report-page .form .field label{font-size:12px}
  .report-page .form input,.report-page .form select{min-height:44px}
  .report-grid{gap:13px}
  .report-metric{padding:17px 14px;border-radius:15px}
  .report-metric strong{font-size:24px}
  .report-metric span{font-size:11px}
  .report-page .tablebox{box-shadow:var(--shadow);border-radius:17px;overflow:auto}
  .report-page table{min-width:1100px}
  .report-page th,.report-page td{padding:13px 11px;font-size:11px}
  .report-page th{position:sticky;top:0;z-index:1;background:#eef3f8;font-size:11px}
  .monthly-section{padding:24px}
  .monthly-title h3{font-size:20px}
  .monthly-kpi>div{padding:15px}
  .monthly-kpi strong{font-size:23px}
  .monthly-form{grid-template-columns:1fr 1fr}
  .monthly-total{padding:20px 23px}
  .monthly-total strong{font-size:32px}
  .settings-page>#settingsForm{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
  .settings-page>#settingsForm>.field.wide{grid-column:1/-1}
  .settings-page>.activity-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
  .overlay{align-items:center;padding:24px}
  .modal{width:min(100%,660px);border-radius:22px;padding:24px 28px 28px;max-height:calc(100vh - 70px);box-shadow:0 30px 80px #101f3552}
  .modal h2{font-size:21px}
  .modal .handle{display:none}
  .modal-sub{font-size:12px}
  .field label{font-size:12px}
  .field input,.field select,.field textarea{min-height:42px}
  .toast{bottom:30px}
  .login-screen{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,460px);gap:clamp(40px,6vw,110px);align-items:center;min-height:100vh;padding:clamp(40px,6vw,90px) clamp(45px,8vw,160px);direction:rtl}
  .login-aside{display:flex;flex-direction:column;gap:15px;max-width:610px;color:#fff;direction:rtl}
  .login-mark{display:grid;place-items:center;width:68px;height:68px;border-radius:22px;background:linear-gradient(145deg,#20c9ba,#347bed);font-size:38px;font-weight:850;box-shadow:0 15px 40px #0b99d755;margin-bottom:10px}
  .login-aside-label{text-transform:uppercase;color:#68d5d4;font-size:12px;font-weight:750;letter-spacing:1.4px}
  .login-aside h2{font-size:clamp(36px,3.6vw,62px);line-height:1.35;letter-spacing:-1.2px;margin:0}
  .login-aside p{color:#bfd1e2;font-size:16px;line-height:2;max-width:530px;margin:0 0 13px}
  .login-feature{display:flex;align-items:center;gap:12px;color:#e0edf6;font-size:14px;padding:9px 0}
  .login-feature svg{color:#61d8d4}
  .login-aside-footer{font-size:10px;color:#7096b6;letter-spacing:1.3px;padding-top:35px;direction:ltr;text-align:right}
  .login-card{padding:36px;border-radius:25px;box-shadow:0 32px 70px #010d1f44}
  .login-card h1{font-size:31px}
  .login-card .login-form .field label{font-size:12px}
  .login-card .login-form input{min-height:47px}
  .login-card .login-form button{min-height:47px}
  .login-logo{width:64px;height:64px}
}
/* Tight desktop widths use narrower rail and comfortable single-page minimum. */
@media (min-width:1100px) and (max-width:1380px){
  :root{--nav-width:232px}
  .content{padding:26px 25px 55px}
  .dashboard-grid{grid-template-columns:minmax(0,1.36fr) minmax(310px,.9fr);gap:17px}
  .dashboard-main .activity-list.team-dashboard-list{grid-template-columns:1fr}
  .calendar-layout{grid-template-columns:minmax(0,1.3fr) minmax(300px,.9fr);gap:16px}
  .calendar-page .day{padding:12px 8px;min-height:144px}
  .day .daynum{font-size:26px}
  .day .weekday{font-size:10px}
  .calendar-panel{padding:18px}
  .day-shift-time{font-size:9px}
}
/* On phones preserve bottom navigation and keep sidebar-only elements invisible. */
@media (max-width:759px){
  .dashboard-grid,.dashboard-main,.dashboard-side{gap:13px}
  .dashboard-grid{display:flex;flex-direction:column}
  .dashboard-side{order:0}
  .nav-links{display:flex;flex:1;width:100%;justify-content:space-around;align-items:stretch}
  .nav-identity,.nav-overline,.nav-footer,.nav-spacer,.desktop-crumb,.desktop-date,.login-aside{display:none}
  .calendar-layout,.calendar-primary,.calendar-agenda{gap:13px}
  .calendar-help{display:none}
  .day .weekday{font-size:10px}
}
@media (min-width:760px) and (max-width:1099px){.nav-identity,.nav-overline,.nav-footer,.nav-spacer,.desktop-crumb,.desktop-date,.login-aside{display:none}}
/* Native monthly PDF has its own print sheet; never include the desktop rail. */
@media print{.nav,.nav-identity,.nav-links,.desktop-crumb,.desktop-date,.login-aside,.calendar-help{display:none!important}}

/* 0.3.3 — clock-in controls remain available even with no scheduled shift. */
.shift-start-btn{min-height:58px!important;font-size:15px!important;font-weight:850!important;box-shadow:0 8px 20px rgba(18,164,116,.18)}
.shift-start-btn svg{width:22px;height:22px}
.shift-start-help{font-size:11px;line-height:1.7;color:#667c8e;margin:10px 1px 0}
.shift-unscheduled-label{font-size:11px;font-weight:700;background:#fff7e7;color:#a86818;padding:9px 11px;border:1px solid #fae5c2;border-radius:10px;margin:12px 0 0}
.manager-shift-prominent{margin:12px 0 18px;max-width:680px}
.manager-shift-prominent .shift-hero{background:linear-gradient(115deg,#fff,#f2fcf7);border:1px solid #cfe9db;box-shadow:0 12px 30px rgba(15,68,50,.07)}
.manager-shift-prominent .shift-hero .clock{margin-top:10px}
@media(max-width:759px){.manager-shift-prominent{max-width:none;margin:5px 0 18px}}


/* Shiftly v0.3.4 — cash reconciliation kept visually/arithmetically separate from hours and wages. */
.cash-section{margin:20px 0;padding:20px;display:grid;gap:13px;background:linear-gradient(155deg,#ffffff,#f8fcff);border:1px solid #d6e5ef}
.cash-warning{display:flex;gap:8px;align-items:start;font-size:11px;line-height:1.8;color:#716027;background:#fff8e8;border:1px solid #f3dfaa;padding:12px;border-radius:12px}
.cash-warning svg{flex:0 0 auto}
.cash-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.cash-stats>div{padding:14px;border:1px solid #deebf3;background:#fff;border-radius:14px;min-width:0}
.cash-stats span{display:block;font-size:10px;color:#728196;margin-bottom:10px}
.cash-stats strong{font-size:19px;white-space:nowrap;font-variant-numeric:tabular-nums;direction:ltr;display:block;text-align:right;color:#18354a}
.cash-stats .cash-balance{background:#eaf7f3;border-color:#c7e9db}
.cash-balance strong{color:#0c7959!important}
.cash-summary-bottom{display:flex;flex-wrap:wrap;gap:12px;font-size:11px;font-weight:700;color:#53677b}
.cash-actions{display:flex;gap:9px;flex-wrap:wrap}
.cash-ledger{display:grid;gap:7px}
.cash-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e5edf3;border-radius:12px;background:#fff;padding:12px 14px}
.cash-row>div:first-child{min-width:0}.cash-row strong{font-size:12px}.cash-row small{display:block;font-size:10px;line-height:1.6;color:#788899;margin-top:4px}
.cash-row-end{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.cash-row-end strong{white-space:nowrap;color:#087a57;direction:ltr}.cash-row-end strong.out{color:#c35a32}
.cash-state{display:inline-block;font-size:9px;border-radius:9px;padding:5px 8px;font-weight:800;background:#fff3d9;color:#9b6b08;white-space:nowrap}
.cash-state.approved{background:#e2f8ec;color:#0d8554}
.cash-empty{padding:20px;text-align:center;font-size:11px;line-height:1.9;color:#738497;background:#fff;border:1px dashed #d8e4ed;border-radius:12px}
.print-cash{margin:20px 0 0;padding:0;direction:rtl;width:100%!important;max-width:100%!important;box-sizing:border-box;page-break-inside:avoid;break-inside:avoid}
.print-cash-head{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:3px solid #1489a7;padding:0 0 12px;margin-bottom:15px}
.print-cash-head h2{font-size:17px;color:#163e5a;margin:0}.print-cash-head span{color:#6b8191;font-size:9px}
.print-cash-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:10px 0 16px;width:100%;max-width:100%;box-sizing:border-box;page-break-inside:avoid;break-inside:avoid}
.print-cash-metrics div{padding:10px 11px;border:1px solid #d7e6ed;border-radius:9px;background:#f5fafc;min-width:0;box-sizing:border-box;overflow:hidden}
.print-cash-metrics span{display:block;color:#708294;font-size:8.5px;margin-bottom:5px;line-height:1.4;overflow-wrap:break-word;word-break:break-word}
.print-cash-metrics b{font-size:14px;color:#183d53;overflow-wrap:break-word}
.print-cash-table{width:100%!important;max-width:100%!important;min-width:0!important;border-collapse:collapse;table-layout:fixed;direction:rtl;box-sizing:border-box}
.print-cash-table th,.print-cash-table td{padding:8px 6px;border-bottom:1px solid #e1ebf2;text-align:right;font-size:8.5px;line-height:1.45;overflow-wrap:break-word;word-break:break-word;box-sizing:border-box}
.print-cash-table th{background:#eaf3f7;font-weight:800}
.print-cash .print-cash-table th:nth-child(1){width:16%}
.print-cash .print-cash-table th:nth-child(2){width:26%}
.print-cash .print-cash-table th:nth-child(3){width:22%}
.print-cash .print-cash-table th:nth-child(4){width:18%}
.print-cash .print-cash-table th:nth-child(5){width:18%}
.print-daily{margin:20px 0 0;padding:0;direction:rtl;width:100%!important;max-width:100%!important;box-sizing:border-box;page-break-inside:avoid;break-inside:avoid}
.print-daily .print-cash-table th:nth-child(1){width:16%}
.print-daily .print-cash-table th:nth-child(2){width:38%}
.print-daily .print-cash-table th:nth-child(3){width:15%}
.print-daily .print-cash-table th:nth-child(4){width:15%}
.print-daily .print-cash-table th:nth-child(5){width:16%}
.print-cash-total{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;margin-top:16px;border-radius:10px;background:#0f3c55;color:#fff;box-sizing:border-box;width:100%;max-width:100%;page-break-inside:avoid;break-inside:avoid}
.print-cash-total span{font-size:11px;font-weight:700;line-height:1.45;flex:1;min-width:0;overflow-wrap:break-word}
.print-cash-total b{font-size:19px;direction:ltr;white-space:nowrap;flex-shrink:0}
.print-daily-total{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;margin-top:14px;border-radius:10px;background:#2b3958;color:#fff;box-sizing:border-box;width:100%;max-width:100%;page-break-inside:avoid;break-inside:avoid}
.print-daily-total span{font-size:11px;font-weight:700;line-height:1.45;flex:1;min-width:0;overflow-wrap:break-word}
.print-daily-total b{font-size:18px;direction:ltr;white-space:nowrap;flex-shrink:0}
.print-cash-note{font-size:8.5px;line-height:1.8;color:#697e91;margin:12px 0;overflow-wrap:break-word}
@media(max-width:820px){.cash-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.cash-section{padding:13px}.cash-stats{gap:7px}.cash-stats strong{font-size:15px}.cash-row{align-items:flex-start;flex-direction:column}.cash-row-end{justify-content:flex-start}}
@media print{.cash-section{display:none!important}.print-cash{margin-top:14px}.print-cash-head h2{font-size:15px}.print-cash-metrics b{font-size:13px}.print-cash-table th,.print-cash-table td{font-size:8px;padding:6px 5px}}

/* v0.3.5 – date-level notes/rewards/penalties */
.day-evaluation{font-size:9px;font-weight:800;color:#7a55b6;background:#f1ecff;padding:3px 5px;border-radius:7px;line-height:1.2;max-width:100%;overflow-wrap:anywhere}
.daily-calendar-control{margin-top:12px;border:1px solid #dbe6ed;background:linear-gradient(145deg,#fff,#fafcff)}
.daily-calendar-control .between strong{font-size:13px}
.daily-inline{margin-top:12px;padding:11px 12px;border-radius:12px;background:#f7faff;border:1px solid #e3edf6}
.daily-inline-top{display:flex;align-items:center;justify-content:space-between;gap:6px}
.daily-inline-top strong{display:flex;align-items:center;gap:6px;font-size:11px;color:#314f69}
.daily-inline p{font-size:12px;line-height:1.7;margin:7px 0;color:#263f55;white-space:pre-wrap;overflow-wrap:anywhere}
.daily-moneys{display:flex;flex-wrap:wrap;gap:10px;margin-top:7px;font-size:11px;font-weight:800}
.daily-reward{color:#148a5b!important}.daily-fine{color:#b34856!important}
.daily-tag{font-size:9px;font-weight:800;border-radius:8px;padding:4px 7px;background:#eaf0f8;color:#526b83;display:inline-block}
.daily-tag.approved{color:#128557;background:#dff5ea}.daily-tag.pending{color:#a26f1c;background:#fff4da}.daily-tag.rejected{color:#b44b55;background:#fff0f0}
.daily-monthly-panel{display:grid;gap:13px;background:linear-gradient(155deg,#fff,#fcfdff);border:1px solid #d7e6ee}
.daily-month-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.daily-month-grid>div{background:#f8fafc;border:1px solid #e6edf3;border-radius:13px;padding:12px 9px}
.daily-month-grid small{display:block;font-size:10px;color:var(--muted);margin-bottom:5px}
.daily-month-grid strong{font-size:16px;direction:ltr;display:block;text-align:right;white-space:nowrap}
.daily-entries-list{display:grid;gap:8px}
.daily-entry{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:12px;border:1px solid #e5ecf2;border-radius:13px;background:#fff}
.daily-entry-main{flex:1 1 170px;min-width:0}.daily-entry-main strong{font-size:12px}.daily-entry-main p{font-size:11px;color:#5e7183;line-height:1.6;margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere}.daily-entry-main small{font-size:10px;color:#5d7084}
.daily-approve-actions{display:flex;gap:5px;flex-wrap:wrap}
.print-daily{margin-top:28px;padding:15px 0 14px;break-inside:auto;page-break-inside:auto;border-top:3px solid #8b70d1}
.print-daily .print-cash-head{border-bottom-color:#8770c9}
.print-daily-total{background:#f0edfc;color:#493a75;border-radius:10px;padding:12px 14px;margin-top:14px;display:flex;justify-content:space-between;align-items:center;gap:9px;break-inside:avoid}
.print-daily-total strong,.print-daily-total b{font-size:18px}
@media(max-width:480px){.daily-month-grid{grid-template-columns:1fr 1fr}.daily-month-grid>div:last-child{grid-column:1/-1}.daily-month-grid strong{font-size:14px}.day-evaluation{font-size:8px}}
@media print{.daily-monthly-panel{display:none!important}.print-daily{break-before:page;page-break-before:always;margin-top:0}.print-daily .print-cash-metrics b{font-size:14px}}

/* v0.3.6: clearly accessible administrative daily-entry shortcuts */
.daily-month-actions{display:flex;justify-content:flex-start;margin:10px 0 12px}
.daily-month-actions .btn{min-height:38px}
.team-dashboard-list .person-wrap .btnrow{flex-wrap:wrap}
@media(min-width:1100px){.team-dashboard-list .btnrow .btn{min-height:34px}}

/* Bringy worker import - minimal, responsive and consistent with Shiftly desktop aesthetic. */
.team-tools{align-items:center;justify-content:flex-end;margin:0;gap:8px;flex-wrap:wrap}
.external-link-info{padding:12px;background:#eef6ff;border-radius:12px;color:#305b89;font-size:12px}
.bringy-import-ui{display:grid;gap:12px}
.import-description{border:1px solid #dce9f9;background:#f4f9ff;border-radius:14px;padding:12px 14px;line-height:1.8;font-size:12px;color:#405f7c}
.import-summary{font-size:12px;color:#6b7c8b;font-weight:700}
.bringy-selection-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:12px;padding:10px 14px}
.bringy-selection-badge{font-size:13px;color:#1d4ed8;font-weight:750}
.bringy-worker-list{max-height:min(52vh,470px);overflow:auto;display:grid;gap:8px}
.bringy-worker{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e3ebf4;border-radius:13px;padding:11px 14px;background:white;transition:all .15s ease}
.bringy-worker:not(.is-linked){cursor:pointer}
.bringy-worker:hover:not(.is-linked){border-color:#93c5fd;background:#f8fafc}
.bringy-worker.is-selected{background:#eff6ff;border-color:#3b82f6;box-shadow:0 1px 3px rgba(59,130,246,0.12)}
.bringy-worker.is-linked{background:#f8fafc;opacity:0.85}
.bringy-worker[hidden]{display:none}
.bringy-worker strong{font-size:13.5px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bringy-worker small{display:block;margin-top:4px;font-size:11px;color:#697d8c}
.bringy-worker select{border:1px solid #dce6f0;border-radius:8px;background:#f9fbfd;color:#23415b;padding:5px 8px;font-size:11px}
.bringy-chk-label{display:inline-flex;align-items:center;cursor:pointer}
.bringy-select-chk{width:20px;height:20px;cursor:pointer;accent-color:#2563eb;margin:0}
.bringy-chk-disabled{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:6px;background:#e2e8f0;color:#64748b;font-weight:900;font-size:13px}
.bringy-row-tag{display:inline-block;padding:4px 10px;border-radius:20px;font-size:11px;font-weight:750;transition:all .15s ease}
.bringy-row-tag.tag-selected{background:#dbeafe;color:#1d4ed8;border:1px solid #bfdbfe}
.bringy-row-tag.tag-unselected{background:#f1f5f9;color:#64748b;border:1px solid #e2e8f0}
.bringy-warning{line-height:1.7}
@media(max-width:580px){.bringy-worker{flex-direction:column;align-items:flex-start}.team-tools{justify-content:stretch}.team-tools .btn{flex:1}}

.bringy-missing-name{display:inline-block;border:1px solid #dfad6f;background:#fff7ea;color:#8d5a21;margin:4px;padding:5px 8px;border-radius:9px;font-weight:750;font-size:11px}

/* v0.3.9 — administrator app-activity timeline. Read-only / no pay deductions. */
.app-activity-panel{display:grid;gap:13px;background:linear-gradient(160deg,#fff 0%,#f8fcff 100%);border:1px solid #dce9f2;min-width:0}
.activity-head{align-items:flex-start}.activity-head h3{display:flex;gap:8px;align-items:center;margin:5px 0 3px;font-size:15px;color:#173550}.activity-head h3 svg{color:#236fc9}
.activity-head .helper{margin:4px 0 0;font-size:10px;line-height:1.6}
.activity-status{flex:none;border-radius:22px;padding:7px 9px;font-size:10px;font-weight:800;white-space:nowrap}
.activity-status.pending{background:#eef3f9;color:#5c7187}.activity-status.demo{background:#fff4df;color:#9a6412}.activity-status.verified{background:#ddf6e9;color:#138452}
.app-activity-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.app-activity-stats>div{background:white;border:1px solid #e5edf4;border-radius:13px;padding:12px 6px;text-align:center;min-width:0}
.app-activity-stats span{display:block;color:#73869a;font-size:10px}.app-activity-stats strong{display:block;font-size:23px;margin-top:6px;color:#1a3953;font-variant-numeric:tabular-nums}
.app-activity-stats>div:nth-child(2) strong{color:#118557}.app-activity-stats>div:nth-child(3) strong{color:#b78027}
.app-activity-clock-labels{display:flex;justify-content:space-between;color:#78899a;font-size:10px;font-weight:800;margin:1px 0 -6px}
.app-activity-bar{display:flex;align-items:stretch;width:100%;min-height:32px;overflow:hidden;border-radius:12px;background:#eff3f7;gap:2px}
.app-activity-bar .activity-piece{height:32px;min-width:2px}.activity-piece.active{background:#1cb780}.activity-piece.gap{background:#f2bc57}.activity-piece.unknown{background:#1cb780}
.offline-ink-text{color:#172330;font-weight:800}
.activity-legend{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:10px;color:#607588}
.activity-legend span,.activity-label{display:inline-flex;align-items:center;gap:5px}.activity-legend i,.activity-label i{width:8px;height:8px;display:inline-block;border-radius:99px}
.activity-legend .green,.activity-label .green{background:#1cb780}.activity-legend .amber,.activity-label .amber{background:#f2bc57}.activity-legend .muted,.activity-label .muted{background:#bbc7d2}
.activity-breakdown{display:grid;gap:6px}.activity-breakdown>div{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:9px;border:1px solid #e9eff4;background:#fff;padding:9px 11px;border-radius:11px;font-size:11px}
.activity-breakdown strong{font-size:11px;color:#39536d;font-weight:750}.activity-breakdown small{color:#667c91;font-size:10px;direction:ltr}
.activity-buttons{display:flex;gap:7px;flex-wrap:wrap}.activity-buttons .btn{flex:1;min-width:130px}
.activity-disclaimer{margin:0;border-top:1px dashed #dfe9ee;padding-top:9px;color:#8193a5;font-size:10px;line-height:1.8}
.app-activity-empty{border:1px dashed #d6e3ed;border-radius:14px;padding:19px;text-align:center;display:grid;justify-items:center;gap:6px;background:#fbfdff;color:#72869b}
.app-activity-empty svg{color:#a7b7c8}.app-activity-empty strong{font-size:12px;color:#516b82}.app-activity-empty p{font-size:10px;line-height:1.7;margin:0}
.activity-error{font-size:11px;color:#a26018;background:#fff6e8;border:1px solid #f6deb1;padding:10px;border-radius:10px;line-height:1.65;margin:0}
@media (max-width:460px){.activity-head{gap:6px}.activity-head h3{font-size:13px}.app-activity-stats strong{font-size:19px}.activity-breakdown>div{gap:4px;font-size:10px}.activity-breakdown strong{font-size:9px}.activity-breakdown small{font-size:9px}.activity-buttons{flex-direction:column}}
@media print{.app-activity-panel{display:none!important}}

/* v0.4.1: dark segment for source-confirmed app offline only; unknown stays grey */
.app-activity-bar .activity-piece.offline{background:#172330}
.activity-legend .offline-ink,.activity-label .offline-ink{background:#172330}

/* v0.4.1+: Wage calculation and comprehensive settlement report styling */
.monthly-wage-kpi{margin-top:10px}
.monthly-wage-kpi strong.wage-val{color:#138356!important}
.print-wage-row{display:flex;justify-content:space-between;padding:5px 0}
.print-wage-row strong{color:#0e5944!important}
.print-settlement{margin:20px 0 0;padding:0;direction:rtl;width:100%!important;max-width:100%!important;box-sizing:border-box;page-break-inside:avoid;break-inside:avoid}
.print-settlement .print-cash-head{border-bottom:3px solid #1f6e52;padding:0 0 12px;margin-bottom:15px;display:flex;align-items:center;justify-content:space-between;gap:15px}
.print-settlement .print-cash-head h2{font-size:17px;color:#134e3b;margin:0}
.print-settlement-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:10px 0 16px;width:100%;max-width:100%;box-sizing:border-box;page-break-inside:avoid;break-inside:avoid}
.print-settlement-card{padding:10px 11px;border:1px solid #d5e5dc;border-radius:9px;background:#f6fbf8;min-width:0;box-sizing:border-box;overflow:hidden}
.print-settlement-card span{display:block;font-size:8.5px;color:#557064;margin-bottom:5px;line-height:1.4;overflow-wrap:break-word;word-break:break-word}
.print-settlement-card b{font-size:14px;color:#12523b;direction:ltr;display:block;text-align:right;overflow-wrap:break-word}
.print-settlement .print-cash-table th:nth-child(1){width:22%}
.print-settlement .print-cash-table th:nth-child(2){width:38%}
.print-settlement .print-cash-table th:nth-child(3){width:18%}
.print-settlement .print-cash-table th:nth-child(4){width:22%}
.print-settlement-total{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;margin-top:16px;border-radius:10px;background:#134b39;color:#fff;box-sizing:border-box;width:100%;max-width:100%;page-break-inside:avoid;break-inside:avoid}
.print-settlement-total span{font-size:11px;font-weight:700;line-height:1.45;flex:1;min-width:0;overflow-wrap:break-word}
.print-settlement-total b{font-size:19px;direction:ltr;white-space:nowrap;flex-shrink:0}
@media print{.print-settlement{margin-top:14px}.print-settlement .print-cash-head h2{font-size:15px}.print-settlement-card b{font-size:13px}}

/* Courier & Staff Hourly Rates Table in Admin Panel */
.rates-directory-panel{display:grid;gap:15px;background:linear-gradient(145deg,#ffffff,#f7fbfd);border:1px solid #d4e5f0;border-radius:20px;padding:19px;margin-bottom:12px}
.rates-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.rates-summary-item{background:#fff;border:1px solid #e1ecf3;border-radius:13px;padding:12px 14px;text-align:right}
.rates-summary-item span{display:block;font-size:9.5px;color:#6f8296;margin-bottom:4px}
.rates-summary-item strong{display:block;font-size:18px;font-weight:800;color:#153752;font-variant-numeric:tabular-nums;direction:ltr;text-align:right}
.rates-summary-item strong small{font-size:10.5px;font-weight:600;color:#788f9f}
.rates-table-wrap{border:1px solid #e0ebf3;border-radius:14px;overflow-x:auto;background:#fff}
.rates-table{width:100%;border-collapse:collapse;min-width:680px;direction:rtl}
.rates-table th,.rates-table td{padding:11px 13px;border-bottom:1px solid #edf3f7;text-align:right;font-size:11px}
.rates-table th{background:#f4f8fb;color:#557088;font-weight:800;font-size:10px}
.rate-badge{display:inline-flex;align-items:center;gap:4px;padding:4px 9px;border-radius:8px;font-size:12px;font-weight:850;font-variant-numeric:tabular-nums;direction:ltr}
.rate-badge.manager{background:#eef4ff;color:#2065c7;border:1px solid #cddffa}
.rate-badge.courier,.rate-badge.hourly{background:#e8f8f0;color:#0d8253;border:1px solid #bcead3}
.rate-badge.per-order{background:#eff6ff;color:#1855a3;border:1px solid #c8dcf9}
.rate-badge.guest{background:#fff7ea;color:#b26f12;border:1px solid #f8e1ba}
.pay-model-switch{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:6px}
.pay-model-option{display:flex;align-items:center;gap:9px;padding:11px 14px;border:1.5px solid #d5e2ec;border-radius:10px;cursor:pointer;font-size:12px;font-weight:750;background:#f8fafc;transition:.15s;user-select:none;color:#234460}
.pay-model-option:hover{border-color:#1c69b8;background:#f0f6ff}
.pay-model-option input[type="radio"]{accent-color:#1c69b8;width:17px;height:17px;cursor:pointer;margin:0}
.pay-model-option.active{border-color:#1c69b8;background:#ebf4ff;color:#104780}
@media(max-width:760px){.rates-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pay-model-switch{grid-template-columns:1fr}}
@media(max-width:480px){.rates-directory-panel{padding:14px}.rates-summary-grid{gap:7px}.rates-summary-item strong{font-size:16px}}
.audit-list-compact{max-height:360px;overflow-y:auto;display:grid;gap:6px;padding-left:4px}
.audit-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;background:#f8fafd;border:1px solid #edf2f7;border-radius:11px;font-size:12px}
.audit-main{display:grid;gap:2px;min-width:0}
.audit-main strong{font-size:12px;color:#182b40}
.audit-desc{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.audit-meta{text-align:left;flex-shrink:0;display:grid;gap:2px}
.audit-actor{font-size:11px;font-weight:750;color:#2062b0}
.audit-time{font-size:10px;color:var(--muted);direction:ltr}
@media(max-width:500px){
  .audit-row{flex-direction:column;align-items:flex-start;gap:6px}
  .audit-meta{text-align:right}
}

/* Google OAuth Login Button & Auth Divider */
.google-btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;background:#ffffff;color:#1f2937;border:1.5px solid #dbe3eb;font-weight:700;font-size:14px;padding:12px 18px;border-radius:12px;transition:all .2s ease;box-shadow:0 3px 10px rgba(0,0,0,0.06);cursor:pointer;width:100%;text-decoration:none;margin-bottom:6px}
.google-btn:hover{background:#f8fafc;border-color:#1a73e8;box-shadow:0 6px 16px rgba(26,115,232,0.15);transform:translateY(-1px)}
.google-btn:active{transform:translateY(0)}
.google-icon{width:22px;height:22px;flex-shrink:0}
.login-divider{display:flex;align-items:center;text-align:center;margin:16px 0 14px;color:#8598a9;font-size:12px;font-weight:600}
.login-divider::before,.login-divider::after{content:'';flex:1;border-bottom:1.5px solid #e5edf5}
.login-divider span{padding:0 12px;white-space:nowrap}
.tag-google{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:#1557b0;background:#e8f0fe;padding:2px 8px;border-radius:6px;font-weight:700;border:1px solid #cce0ff}

/* Bringy Orders & Payment Methods Differentiation */
.print-bringy-orders{margin:16px 0 0;padding:0;direction:rtl;width:100%!important;max-width:100%!important;box-sizing:border-box;page-break-inside:avoid;break-inside:avoid}
.print-bringy-orders .print-cash-head{border-bottom:2.5px solid #0284c7;padding:0 0 10px;margin-bottom:12px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.print-bringy-orders .print-cash-head h2{font-size:15px;color:#0369a1;margin:0}
.badge-cash{display:inline-flex!important;align-items:center!important;gap:5px!important;background:#fff7ed!important;color:#c2410c!important;border:1px solid #fed7aa!important;padding:3px 9px!important;border-radius:999px!important;font-size:11px!important;font-weight:750!important;white-space:nowrap!important;line-height:1.2!important}
.badge-card{display:inline-flex!important;align-items:center!important;gap:5px!important;background:#f0fdf4!important;color:#15803d!important;border:1px solid #bbf7d0!important;padding:3px 9px!important;border-radius:999px!important;font-size:11px!important;font-weight:750!important;white-space:nowrap!important;line-height:1.2!important}
.badge-deduct{display:inline-block;color:#b91c1c;font-size:10.5px;font-weight:750;white-space:nowrap}
.badge-exempt{display:inline-block;color:#15803d;font-size:10.5px;font-weight:750;white-space:nowrap}
.bringy-sync-prompt{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f0f9ff;border:1px solid #bae6fd;padding:10px 14px;border-radius:10px;font-size:11.5px;color:#0369a1;margin-top:8px}
@media print{
  .print-bringy-orders{margin-top:12px}
  .print-bringy-orders .print-cash-head h2{font-size:14px}
  .bringy-sync-prompt{display:none!important}
}

/* Detailed Bringy Orders Table (Scrollable & Clean) */
.bringy-orders-scroll{overflow-x:auto;width:100%;margin-top:8px;border:1px solid #e2e8f0;border-radius:10px;background:#fff}
.bringy-orders-table{width:100%!important;border-collapse:collapse;font-size:11px;direction:rtl;table-layout:auto!important}
.bringy-orders-table th,.bringy-orders-table td{padding:8px 9px!important;border-bottom:1px solid #f1f5f9;vertical-align:middle;text-align:right}
.bringy-orders-table th{background:#f8fafc;color:#475569;font-weight:750;font-size:10.5px;white-space:nowrap}
.bringy-orders-table td.col-amount{text-align:left!important;direction:ltr!important;white-space:nowrap!important;font-variant-numeric:tabular-nums;font-weight:750}
.bringy-orders-table td.col-restaurant{white-space:normal;max-width:160px;min-width:110px}
.order-id-badge{font-family:monospace;background:#f1f5f9;padding:2px 5px;border-radius:4px;font-size:10.5px}

/* Concise Courier Financial Payslip / Report */
.report-type-toggle{display:inline-flex;align-items:center;gap:6px;background:#1e314b;padding:3px;border-radius:10px}
.report-type-toggle .btn{padding:6px 12px;font-size:11.5px;font-weight:750;border-radius:7px;border:none;min-height:30px}
.report-type-toggle .btn.active{background:#0284c7;color:#fff}
.report-type-toggle .btn.outline{background:transparent;color:#94a3b8}
.report-type-toggle .btn.outline:hover{background:#284062;color:#fff}
.print-preview-btns{display:flex;gap:7px;flex-wrap:wrap;align-items:center}

.courier-summary-doc{min-height:auto!important;padding:20px 22px!important;max-width:820px!important;box-sizing:border-box!important}
.courier-kpi-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:10px 0 14px}
.courier-kpi-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:10px 12px;text-align:right}
.courier-kpi-card span{display:block;font-size:10px;color:#64748b;margin-bottom:3px}
.courier-kpi-card strong{display:block;font-size:19px;color:#0f172a;font-weight:800;direction:ltr;text-align:right}
.courier-kpi-card strong small{font-size:11px;font-weight:600;color:#64748b}

.courier-section{margin-bottom:12px;border:1px solid #e2e8f0;border-radius:10px;overflow-x:auto;background:#fff;box-sizing:border-box}
.courier-section-head{display:flex;align-items:center;justify-content:space-between;background:#f8fafc;padding:8px 12px;border-bottom:1px solid #e2e8f0}
.courier-section-head h3{margin:0;font-size:12.5px;color:#1e293b;font-weight:750}
.courier-section-head span{font-size:10px;color:#64748b}

.courier-table{width:100%!important;max-width:100%!important;border-collapse:collapse;font-size:11px;direction:rtl;table-layout:fixed;box-sizing:border-box}
.courier-table th,.courier-table td{padding:7px 10px;border-bottom:1px solid #f1f5f9;text-align:right;vertical-align:middle;box-sizing:border-box;word-wrap:break-word;overflow-wrap:break-word}
.courier-table th{background:#f8fafc;color:#475569;font-weight:750;font-size:10.5px}
.courier-table td:last-child,.courier-table th:last-child{text-align:left!important;direction:ltr!important;white-space:nowrap!important;padding-left:14px!important}
.courier-subtotal-row{background:#f8fafc;font-weight:750;border-top:1.5px solid #cbd5e1}
.courier-subtotal-row td{padding:8px 10px;font-size:11.5px}
.subtotal-val{color:#0f766e;font-size:13px}

.courier-payout-box{display:flex;align-items:center;justify-content:space-between;gap:14px;background:linear-gradient(135deg,#065f46,#047857);color:#fff;padding:12px 18px;border-radius:10px;margin:12px 0 10px;box-shadow:0 4px 14px rgba(4,120,87,0.15)}
.payout-title{display:block;font-size:13px;font-weight:800;letter-spacing:.2px}
.payout-formula{display:block;font-size:9.5px;color:#a7f3d0;margin-top:2px}
.payout-amount{text-align:left;flex-shrink:0}
.payout-amount strong{display:block;font-size:22px;font-weight:900;direction:ltr;line-height:1.1}
.payout-amount span{display:block;font-size:9.5px;color:#d1fae5;margin-top:2px}

.courier-note{font-size:10px;color:#475569;line-height:1.5;background:#f8fafc;padding:8px 12px;border-radius:8px;border-right:3px solid #0d9488;margin:8px 0 12px}

.courier-signatures{display:grid;grid-template-columns:1fr 1.2fr;gap:12px;margin-top:12px;page-break-inside:avoid;break-inside:avoid}
.sig-box{border:1px dashed #cbd5e1;border-radius:8px;padding:8px 12px;background:#fafafa;font-size:10px}
.sig-box span{display:block;font-weight:750;color:#334155;margin-bottom:4px;font-size:10.5px}
.sig-box p{margin:0 0 4px;color:#64748b;line-height:1.45}
.sig-line{font-size:9.5px;color:#475569;margin-top:6px;padding-top:4px;border-top:1px solid #e2e8f0}

@media print{
  .courier-summary-doc{box-shadow:none!important;padding:10px 14px!important;margin:0!important;max-width:100%!important;page-break-after:always!important;break-after:page!important;page-break-inside:avoid!important;break-inside:avoid!important;max-height:272mm!important;box-sizing:border-box!important}
  .courier-summary-doc:last-child{page-break-after:auto!important;break-after:auto!important}
  .executive-summary-doc{box-shadow:none!important;padding:12px 16px!important;margin:0!important;max-width:100%!important;page-break-after:always!important;break-after:page!important;page-break-inside:avoid!important;break-inside:avoid!important;max-height:272mm!important;box-sizing:border-box!important}
  .courier-section,.courier-payout-box,.courier-signatures,.courier-charts-row{page-break-inside:avoid;break-inside:avoid}
}

/* Multi-Courier Report & Accounting Visual Charts */
.courier-charts-row{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:8px 0 12px;page-break-inside:avoid;break-inside:avoid}
.courier-chart-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:9px;padding:8px 10px;text-align:right;box-sizing:border-box}
.courier-chart-box.highlight-fin-box{background:#f0fdf4;border-color:#bbf7d0}
.chart-title-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.chart-title-text{font-size:11px;font-weight:750;color:#1e293b}
.chart-badge{font-size:9.5px;font-weight:700;color:#475569;background:#e2e8f0;padding:2px 6px;border-radius:4px}
.chart-badge.green-badge{background:#dcfce7;color:#166534}
.chart-ratio-bar{display:flex;height:16px;border-radius:5px;overflow:hidden;background:#e2e8f0;margin-bottom:6px;border:1px solid #cbd5e1}
.chart-segment{height:100%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:8.5px;font-weight:750;text-shadow:0 1px 2px rgba(0,0,0,0.25);overflow:hidden;white-space:nowrap;padding:0 3px}
.chart-segment.cash-segment{background:linear-gradient(90deg,#f59e0b,#d97706)}
.chart-segment.card-segment{background:linear-gradient(90deg,#10b981,#059669)}
.chart-segment.hours-segment{background:linear-gradient(90deg,#0284c7,#0369a1)}
.chart-segment.offline-segment{background:#ef4444}
.chart-segment.empty-segment{background:#cbd5e1;color:#64748b;text-shadow:none}
.chart-notes-row{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:9px;color:#475569;flex-wrap:wrap}
.chart-dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-left:3px;vertical-align:middle}
.chart-dot.dot-cash{background:#f59e0b}
.chart-dot.dot-card{background:#10b981}
.chart-dot.dot-hours{background:#0284c7}
.chart-dot.dot-offline{background:#ef4444}
.fin-bars-wrap{display:flex;flex-direction:column;gap:3.5px}
.fin-metric-line{display:flex;align-items:center;gap:5px;font-size:9.5px}
.fin-metric-line.net-line{border-top:1px dashed #bbf7d0;padding-top:3px;font-weight:750}
.fin-tag{width:56px;color:#475569;font-weight:700;flex-shrink:0;font-size:9px}
.fin-track{flex:1;height:7px;background:#e2e8f0;border-radius:4px;overflow:hidden}
.fin-fill{height:100%;border-radius:4px}
.fin-fill.fill-earn{background:#0284c7}
.fin-fill.fill-deduct{background:#ef4444}
.fin-fill.fill-net{background:#10b981}
.fin-amt{width:68px;text-align:left;direction:ltr;font-weight:800;font-size:9.5px;flex-shrink:0}
.font-blue{color:#0284c7}
.font-red{color:#b91c1c}
.font-green{color:#15803d}

/* Modal Couriers Checklist */
.courier-pick-row:hover{background:#f1f5f9!important}
.export-opt-label:hover{color:#0284c7}
.courier-summary-doc .print-brand strong{color:#0f172a;font-weight:850}
.executive-summary-doc{background:#fff;color:#172f46;direction:rtl;max-width:820px;width:100%;margin:0 auto;padding:18px 22px;box-sizing:border-box}
.exec-kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:12px 0 16px}
.exec-kpi-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:9px;padding:9px 12px;text-align:right}
.exec-kpi-card.highlight{background:#f0fdf4;border-color:#bbf7d0}
.exec-kpi-card span{display:block;font-size:10px;color:#64748b;margin-bottom:3px}
.exec-kpi-card strong{display:block;font-size:17px;font-weight:850;direction:ltr;text-align:right;color:#0f172a}
.exec-kpi-card.highlight strong{color:#15803d}
.exec-table{width:100%;border-collapse:collapse;font-size:10.5px;direction:rtl;table-layout:auto;margin:10px 0}
.exec-table th,.exec-table td{padding:6px 8px;border:1px solid #e2e8f0;text-align:center;vertical-align:middle}
.exec-table th{background:#0f172a;color:#fff;font-weight:750;font-size:10px}
.exec-table tr.total-row{background:#f8fafc;font-weight:800;border-top:2px solid #0f172a}
.exec-table tr.total-row td{padding:8px 8px;font-size:11px}
.exec-net-cell{background:#dcfce7;color:#166534;font-weight:850;direction:ltr;text-align:left!important}

/* Executive Artistic Analytics Home Dashboard */
.exec-home{display:flex;flex-direction:column;gap:18px;direction:rtl}
.exec-hero{position:relative;overflow:hidden;border-radius:20px;padding:22px 24px;background:radial-gradient(circle at 12% 20%,rgba(56,189,248,.22),transparent 45%),radial-gradient(circle at 88% 80%,rgba(16,185,129,.18),transparent 48%),linear-gradient(135deg,#0f172a 0%,#1e293b 55%,#0f172a 100%);color:#f8fafc;box-shadow:0 16px 40px rgba(15,23,42,.22)}
.exec-hero-top{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
.exec-hero-kicker{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;background:rgba(56,189,248,.16);border:1px solid rgba(56,189,248,.35);color:#7dd3fc;font-size:11px;font-weight:800;margin-bottom:8px}
.exec-hero h2{margin:0 0 6px;font-size:clamp(20px,2.4vw,28px);font-weight:850;letter-spacing:-.3px;color:#fff}
.exec-hero p{margin:0;color:#cbd5e1;font-size:13px;max-width:600px;line-height:1.6}
.exec-hero-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.exec-month-select{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.22);color:#fff;border-radius:11px;padding:8px 12px;font-size:13px;font-weight:750;cursor:pointer;backdrop-filter:blur(8px)}
.exec-month-select option{background:#0f172a;color:#fff}
.exec-kpi-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:12px;margin-top:18px}
.exec-kpi-glass{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);border-radius:14px;padding:12px 14px;backdrop-filter:blur(10px);transition:transform .18s ease,border-color .18s ease}
.exec-kpi-glass:hover{transform:translateY(-2px);border-color:rgba(125,211,252,.45)}
.exec-kpi-glass .k-label{font-size:11px;color:#94a3b8;font-weight:700;display:flex;align-items:center;justify-content:space-between}
.exec-kpi-glass .k-val{font-size:22px;font-weight:900;color:#fff;margin:4px 0 2px;direction:ltr;text-align:right}
.exec-kpi-glass .k-sub{font-size:10.5px;color:#cbd5e1}
.exec-filter-bar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.exec-filter-pills{display:flex;gap:8px;flex-wrap:wrap}
.exec-pill{border:1px solid #cbd5e1;background:#fff;color:#334155;padding:6px 13px;border-radius:999px;font-size:12px;font-weight:750;cursor:pointer;transition:all .15s ease}
.exec-pill:hover{border-color:#0284c7;color:#0284c7}
.exec-pill.active{background:#0f172a;color:#fff;border-color:#0f172a;box-shadow:0 4px 12px rgba(15,23,42,.18)}
.exec-cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:16px}
.courier-art-card{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:18px;box-shadow:0 6px 20px rgba(15,23,42,.05);display:flex;flex-direction:column;gap:14px;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;position:relative;overflow:hidden}
.courier-art-card:hover{transform:translateY(-3px);box-shadow:0 16px 34px rgba(15,23,42,.1);border-color:#bae6fd}
.courier-art-card.has-errors{border-top:4px solid #ef4444}
.courier-art-card.clean-record{border-top:4px solid #10b981}
.cac-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.cac-identity{display:flex;align-items:center;gap:10px}
.cac-avatar{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;font-weight:900;font-size:16px;color:#fff;background:linear-gradient(135deg,#0284c7,#2563eb);position:relative;flex-shrink:0}
.cac-avatar.online::after{content:'';position:absolute;bottom:-2px;left:-2px;width:11px;height:11px;border-radius:50%;background:#10b981;border:2px solid #fff}
.cac-name{font-size:15px;font-weight:850;color:#0f172a;margin:0}
.cac-meta{font-size:11px;color:#64748b;margin-top:2px}
.cac-badge{padding:4px 10px;border-radius:999px;font-size:11px;font-weight:800}
.cac-badge.good{background:#dcfce7;color:#15803d}
.cac-badge.warn{background:#fef3c7;color:#b45309}
.cac-badge.bad{background:#fee2e2;color:#b91c1c}
.cac-charts-row{display:grid;grid-template-columns:112px 1fr;gap:14px;align-items:center;background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:12px}
.cac-donut-wrap{position:relative;width:100px;height:100px;margin:0 auto}
.cac-donut-svg{width:100px;height:100px;transform:rotate(-90deg)}
.cac-donut-bg{fill:none;stroke:#e2e8f0;stroke-width:9}
.cac-donut-fg{fill:none;stroke-width:9;stroke-linecap:round;transition:stroke-dashoffset .5s ease}
.cac-donut-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.cac-donut-center strong{font-size:17px;font-weight:900;color:#0f172a;line-height:1}
.cac-donut-center span{font-size:9px;color:#64748b;font-weight:750;margin-top:2px}
.cac-mini-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.cac-stat-box{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:7px 9px}
.cac-stat-box span{display:block;font-size:10px;color:#64748b;font-weight:700}
.cac-stat-box strong{display:block;font-size:13.5px;font-weight:850;color:#0f172a;margin-top:2px;direction:ltr;text-align:right}
.cac-split-wrap{display:flex;flex-direction:column;gap:5px}
.cac-split-labels{display:flex;justify-content:space-between;font-size:11px;font-weight:750;color:#475569}
.cac-split-bar{height:9px;border-radius:999px;background:#e2e8f0;overflow:hidden;display:flex}
.cac-bar-cash{background:linear-gradient(90deg,#f59e0b,#fbbf24);height:100%;transition:width .4s ease}
.cac-bar-card{background:linear-gradient(90deg,#0284c7,#38bdf8);height:100%;transition:width .4s ease}
.cac-fin-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.cac-fin-pill{background:#f1f5f9;border-radius:10px;padding:7px 9px;text-align:center}
.cac-fin-pill span{display:block;font-size:9.5px;color:#64748b;font-weight:700}
.cac-fin-pill strong{display:block;font-size:12.5px;font-weight:850;color:#0f172a;direction:ltr;margin-top:2px}
.cac-fin-pill.net{background:#ecfdf5;border:1px solid #a7f3d0}
.cac-fin-pill.net strong{color:#047857}
.cac-radar{border-radius:12px;padding:10px 12px;font-size:11.5px}
.cac-radar.alert{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}
.cac-radar.ok{background:#f0fdf4;border:1px solid #bbf7d0;color:#166534;display:flex;align-items:center;gap:6px;font-weight:750}
.cac-radar-title{font-weight:850;font-size:11.5px;margin-bottom:6px;display:flex;align-items:center;justify-content:space-between}
.cac-err-pills{display:flex;flex-wrap:wrap;gap:5px}
.cac-err-pill{display:inline-flex;align-items:center;gap:4px;background:#fff;border:1px solid #fca5a5;color:#b91c1c;border-radius:8px;padding:3px 8px;font-size:10.5px;font-weight:750}
.cac-err-pill.warn{border-color:#fcd34d;color:#b45309;background:#fffbeb}
.cac-actions{display:flex;gap:8px;margin-top:auto}
.exec-proposals{background:linear-gradient(135deg,#f8fafc,#eff6ff);border:1px dashed #93c5fd;border-radius:16px;padding:16px 18px}
.exec-proposals h3{margin:0 0 8px;font-size:14px;font-weight:850;color:#1e3a8a}
.exec-prop-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.exec-prop-item{background:#fff;border:1px solid #dbeafe;border-radius:12px;padding:10px 12px}
.exec-prop-item strong{display:block;font-size:12px;color:#0f172a;margin-bottom:3px}
.exec-prop-item p{margin:0;font-size:11px;color:#475569;line-height:1.5}




