/* Reduce dashboard card height by approximately 10%, preserving readable text. */
.dashboard-stats .stat{padding-top:15.5px;padding-bottom:15.5px}
@media(max-width:1100px){.dashboard-stats .stat{padding-top:10px;padding-bottom:10px}}
@media(max-width:760px){.dashboard-stats .stat{padding-top:10px;padding-bottom:10px}}
.heat .leave-count{margin:3px 1px;border-radius:4px}
.heat.has-leave .leave-count{background:#fef08a;color:#422006;font-weight:700;box-shadow:0 0 0 1px #eab308}
.today-stats .stat:nth-child(1){background:#fff2bf;color:#533d00}.today-stats .stat:nth-child(2){background:#dbeafe;color:#153d74}.today-stats .stat:nth-child(3){background:#dcfce7;color:#14532d}.today-stats .stat:nth-child(4){background:#ffe4e6;color:#881337}.today-stats .stat span{color:inherit}
.driver-search{display:flex;align-items:end;gap:12px;margin-bottom:20px}.driver-search .field{flex:1;min-width:0;margin:0;max-width:480px}.driver-search button{flex:0 0 auto;width:auto;padding:8px 18px;min-height:38px;font-size:13px}.driver-search~.table-wrap{border:1px solid #e5e7eb;border-radius:12px}.driver-search~.table-wrap th{text-align:center;background:#fff7d6;padding:14px 12px}.driver-search~.table-wrap td{text-align:center;vertical-align:middle;padding:14px 12px}.driver-search~.table-wrap tbody tr:nth-child(even){background:#fafafa}.driver-search~.table-wrap tbody tr:hover{background:#fffbee}.sms-recipients{max-height:280px;overflow:auto;display:flex;flex-direction:column;gap:2px;padding:4px}.sms-recipients .check{margin:0;padding:4px 6px;border-bottom:1px solid #eee;flex-shrink:0}.sms-recipients .check[hidden]{display:none}.sms-search{margin-bottom:6px!important}.sms-message{white-space:pre-wrap;min-width:180px;max-width:520px}
.document-upload{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;padding:12px;margin:12px 0;border:1px solid #e5e7eb;border-radius:12px;background:#fafafa}.document-upload .field{margin:0;min-width:0;font-size:13px}.document-upload input[type=file]{width:100%;min-height:36px;padding:5px;font-size:12px;background:white}.document-upload input::file-selector-button{padding:5px 8px;border:0;border-radius:6px;background:#fff0b0;margin-left:6px}.document-upload button{padding:8px 12px;font-size:12px;min-height:36px}.heat-unknown{background:#e5e7eb}.heat-legend span{color:white}.heat-0{background:hsl(120 75% 28%);color:white}.heat-1{background:hsl(103 75% 28%)}.heat-2{background:hsl(86 75% 28%)}.heat-3{background:hsl(69 75% 28%)}.heat-4{background:hsl(51 75% 28%)}.heat-5{background:hsl(34 75% 28%)}.heat-6{background:hsl(17 75% 28%)}.heat-7{background:hsl(0 75% 28%);color:white}@media(max-width:480px){.document-upload{grid-template-columns:minmax(0,1fr)}.document-upload button{justify-self:end}}
.requests-table th,.requests-table td{vertical-align:middle;padding:7px 9px}.request-driver{display:flex;align-items:center;gap:9px}.requests-table .driver-avatar{width:52px;height:52px;border-radius:0;margin:0}.request-driver-info{display:flex;flex-direction:column;align-items:flex-start;gap:2px}.requests-table .request-driver-info>strong{font-weight:800;line-height:1.5;white-space:nowrap}.requests-table .request-driver-info>small{margin:0;line-height:1.2;font-size:10px}.requests-table .plate{font-size:13px;height:27px;gap:5px;border-width:1px;border-radius:3px;margin:0}.requests-table .plate-flag{padding:1px 3px;font-size:7px}.requests-table .plate-flag small{font-size:4px!important;margin:2px 0 0!important}.requests-table .plate-region{padding:0 4px}.requests-table .plate-region small{font-size:6px;margin:0}.requests-table .outline,.requests-table .small-btn{padding:6px 10px;white-space:nowrap}
.driver-avatar{width:44px;height:44px;border-radius:50%;object-fit:cover;flex-shrink:0}.driver-avatar.placeholder{display:inline-grid;place-items:center;background:#fff2bf;font-size:26px}.topbar-end{margin-right:auto}.login-logo{max-width:180px;max-height:110px;object-fit:contain;margin-top:24px}.menu-toggle{display:none}.heat-months{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.heat-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;text-align:center}.heat-grid>small{font-size:10px}.heat{border-radius:8px;padding:8px 2px;color:#15201b}.heat b,.heat small{display:block}.heat-legend{display:flex;gap:6px;margin-top:18px;align-items:center}.heat-legend span{padding:2px 10px;border-radius:5px}.install-offer{position:fixed;bottom:16px;left:16px;width:min(420px,calc(100% - 32px));background:#fff9dc;border:1px solid #c79d16;border-radius:14px;padding:20px;box-shadow:0 8px 40px #0003;z-index:30}.install-offer p{font-size:12px}.install-offer button{margin:3px;padding:6px 10px}@media(max-width:1000px){.heat-months{grid-template-columns:1fr}}@media(max-width:768px){.menu-toggle{display:inline-block}.sidebar{display:none;position:fixed;top:76px;right:0;bottom:0;width:260px;overflow:auto;padding:20px;z-index:25}.menu-open .sidebar{display:flex}.sidebar nav{display:flex;flex-direction:column;overflow:visible}.sidebar nav button{width:100%}.workspace{margin-right:0}.topbar{height:auto;min-height:76px;padding:12px;gap:8px;flex-wrap:wrap}.topbar strong{font-size:13px}.topbar-end{gap:8px}.topbar .today{display:none}.heat-grid{gap:3px}.heat-grid>small{font-size:8px}.heat small{font-size:10px}.heat-legend{flex-wrap:wrap}.login-logo{max-height:75px}.install-offer{max-height:50vh;overflow:auto}}
.letter-tokens{display:flex;flex-wrap:wrap;gap:7px;margin-block:10px}.letter-tokens button[data-letter-token]{color:#1247a0;background:#edf5ff;border:1px solid #98bced;border-radius:8px;cursor:grab;padding:6px 10px}.letter-tokens button:active{cursor:grabbing}.saved-verification{white-space:pre-wrap;overflow-wrap:anywhere}.org-preview{max-width:180px;max-height:120px;object-fit:contain;background:#fff;border:1px solid #aaa;border-radius:8px;padding:6px}.heat button.day-trigger{position:absolute;inset:0;width:100%;height:100%;padding:0;border:none;background:transparent;cursor:pointer}.day-trigger:focus-visible{outline:3px solid #184dac}.day-pop{position:fixed;z-index:100;background:white;color:#152638;box-shadow:0 5px 22px #14273840;border:1px solid #bbc6cf;border-radius:10px;width:min(250px,calc(100vw - 16px));padding:8px;text-align:start;overflow:auto}.day-pop button{display:block;width:100%;text-align:start;margin:2px 0}.day-request{overflow-wrap:anywhere}.heat{position:relative}.heat.has-leave{outline:2px solid #f4c400;outline-offset:-2px;background-image:linear-gradient(135deg,#ffffff20,#00000020)!important}.leave-dot{position:absolute;top:4px;right:4px;width:7px;height:7px;border-radius:50%;background:#ffe000;animation:leave-pulse 1.5s ease-in-out infinite}@keyframes leave-pulse{50%{opacity:.25}}@media(prefers-reduced-motion:reduce){.leave-dot{animation:none}}
.logout-button,.sidebar nav .logout-button{background:#ffd000!important;color:#171717!important;border:2px solid #e2ac00;font-weight:800;border-radius:10px;padding:10px 18px}.upload-preview{display:grid;gap:8px;margin:10px 0}.upload-preview img{max-width:180px;max-height:160px;object-fit:contain;border-radius:10px}.upload-preview progress{width:100%}
@media(min-width:900px){.sms-compose{max-width:none}.sms-compose form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.sms-compose form>*{grid-column:1}.sms-compose form>fieldset{grid-column:2;grid-row:2/10;min-width:0;min-height:0;display:flex;flex-direction:column;align-self:stretch;margin:0}.sms-compose .sms-recipients{flex:1 1 0;height:0;min-height:0;max-height:none}.sms-compose form>fieldset>button{flex-shrink:0;align-self:flex-start}.sms-compose form>.check:first-child{grid-column:2;grid-row:1}.sms-compose form>.field{grid-row:1/3}}
.sms-report{width:100%;min-width:0;box-sizing:border-box}.sms-report table{width:100%}.sms-report th,.sms-report td{text-align:right;vertical-align:top}.sms-report td{overflow-wrap:anywhere}.sms-compose fieldset{min-width:0}.sms-compose textarea{min-height:180px}
/* Compact management navigation; driver navigation is unchanged. */
.sidebar.admin-sidebar{padding:22px 14px}.admin-sidebar .sidebar-label{margin:24px 10px 10px}.admin-sidebar nav{gap:0}.admin-sidebar nav button{padding:6px 10px;gap:8px}.admin-sidebar nav .logout-button{padding:6px 10px}.admin-sidebar .sidebar-bottom{padding:10px 8px}
.drivers-card .plate{font-size:15.2px;height:32px;gap:6.4px;border-width:1.6px;border-radius:4px}.drivers-card .plate-flag{padding:1.6px 3.2px;font-size:8px}.drivers-card .plate-flag small{font-size:4.8px!important;margin-top:2.4px!important}.drivers-card .plate-region{padding:0 4.8px}.drivers-card .plate-region small{font-size:6.4px}
.driver-actions{display:flex;align-items:center;justify-content:center;gap:6px}.driver-actions .driver-action{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:8px;flex-shrink:0}.driver-action.danger{color:#b91c1c;border-color:#fecaca}.driver-action:focus-visible{outline:3px solid #2563eb;outline-offset:2px}.driver-action svg{pointer-events:none}
.settings-menu{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px}.settings-menu button{display:flex;flex-direction:column;align-items:flex-start;text-align:right;gap:7px;padding:16px;border:1px solid #dbe4ed;background:#f8fafc;color:#334155;border-radius:12px}.settings-menu button.active{background:#eaf6f2;border-color:#168269;color:#12634f}.settings-menu small{font-size:11px;font-weight:400;line-height:1.8}.settings-menu button:focus-visible{outline:3px solid #2563eb;outline-offset:2px}[data-settings-panel][hidden],#settings-save[hidden]{display:none!important}[data-settings-panel] h2{margin-top:22px}#settings-save{margin-top:20px}@media(max-width:900px){.settings-menu{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.settings-menu{grid-template-columns:1fr}.settings-menu button{padding:12px}}
.review-summary{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;padding:10px 0;border-bottom:1px solid #e2e8f0;font-size:13px}.review-summary strong{display:flex;align-items:center;gap:8px}.review-summary .avatar{width:38px;height:38px;border-radius:6px}.sms-audience-list{max-height:55vh;overflow:auto}.sms-audience-list p{padding:10px;border-bottom:1px solid #e2e8f0}[data-form="review"] [hidden]{display:none!important}
@media(pointer:coarse){.driver-actions .driver-action{width:44px;height:44px}}
.document-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.document-grid .document-upload{display:flex;flex-direction:column;align-items:stretch;margin:0;min-width:0}.document-current{display:flex;flex-direction:column;gap:8px}.document-thumb{width:100%;background:white}.document-thumb img{display:block;width:100%;height:160px;object-fit:contain}.document-status{overflow-wrap:anywhere}.review-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:10px}.review-metrics>span{padding:12px;background:#f1f5f9;border:1px solid #dce3e9;border-radius:10px}.review-metrics>span:nth-last-child(-n+2){grid-column:span 2}#document-viewer{max-width:94vw;max-height:94vh;padding:16px;border:0;border-radius:14px}#document-viewer::backdrop{background:#000b}#document-viewer>img{display:block;max-width:85vw;max-height:78vh;object-fit:contain;margin-top:12px}.site-settings-entry{margin-bottom:18px}@media(max-width:1000px){.document-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.document-grid,.review-metrics{grid-template-columns:minmax(0,1fr)}.review-metrics>span:nth-last-child(-n+2){grid-column:auto}}
/* Spreadsheet fields keep identical column widths, including plate and date controls. */
.driver-excel-fields{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}.driver-excel-fields>.field{min-width:0;grid-column:auto}.driver-excel-fields input,.driver-excel-fields select{width:100%;min-width:0;box-sizing:border-box;height:44px}@media(max-width:600px){.driver-excel-fields{grid-template-columns:minmax(0,1fr)}}
/* Driver editor and document review, 1.4.28 */
.review-summary{font-weight:700}.review-route{display:grid;white-space:pre-wrap;overflow-wrap:anywhere}
.review-documents{align-items:start}.review-documents .document-thumb{padding:0;line-height:0}.review-documents .document-thumb img{height:auto;max-height:none;width:100%;object-fit:contain}
#document-viewer{width:max-content;height:auto;max-width:96vw;max-height:96vh}#document-viewer>img{width:auto;height:auto;max-width:90vw;max-height:80vh;object-fit:contain}
.driver-excel-fields{grid-template-columns:repeat(12,minmax(0,1fr))}
.driver-excel-fields>.field,.driver-excel-fields>.radio-field{grid-column:span 4;min-width:0}
.driver-excel-fields>.field:has([name="P_eshteghal_no"]){grid-column:1 / span 4}
.driver-excel-fields>.radio-field:has([name="educational"]){grid-column:1 / -1}
.driver-excel-fields>.field:has([name="address"]){grid-column:1 / -1}
.driver-excel-fields>.radio-field:has([name="gender"]){grid-column:1 / span 4}
.driver-excel-fields>.radio-field:has([name="gender"]),.driver-excel-fields>.radio-field:has([name="marital_status"]){padding:3px 10px;margin:0;align-self:end}
.driver-excel-fields>.radio-field:has([name="gender"]) label,.driver-excel-fields>.radio-field:has([name="marital_status"]) label{margin:0 6px}
.driver-excel-fields .radio-field input[type="radio"]{height:auto;width:auto}
.driver-plate-fields{grid-column:1 / -1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;direction:ltr}
.driver-plate-fields>.field{direction:rtl;min-width:0}
.driver-excel-fields>.radio-field:has([name="fuel"]){grid-column:1 / -1}
.driver-excel-fields>.field:has([name="certificate_number"]){grid-column:1 / span 4}
@media(max-width:600px){.driver-excel-fields{grid-template-columns:minmax(0,1fr)}.driver-excel-fields>.field,.driver-excel-fields>.radio-field{grid-column:1 / -1!important}}
/* Keep long management forms side by side only when there is room. */
.admin-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.admin-columns>*{min-width:0}.admin-columns>.card{margin:0}.admin-columns fieldset{min-width:0;margin:12px 0;padding:12px;border:1px solid #e2e8f0;border-radius:12px}.admin-columns input[type=file]{max-width:100%}.admin-columns .hint,.admin-columns .notice{overflow-wrap:anywhere}
@media(max-width:1000px){.admin-columns{grid-template-columns:minmax(0,1fr)}}

