/* Keep this workspace readable without changing legacy screen themes. Layered
   important rules deliberately outrank the legacy global important selectors. */
@layer modernApproved {
 body.zace-modern #content#content.vx-scroll-page:has(>.fv){height:var(--fv-viewport-height,100%)!important;max-height:var(--fv-viewport-height,100%)!important;min-height:0!important;overflow:auto!important;scroll-padding-bottom:12px}
 body.zace-modern #content#content.vx-scroll-page>.fv{height:auto!important;min-height:0!important;flex:0 0 auto!important}
 body.zace-modern #content#content.vx-scroll-page:has(>.fv)>.vx-report-scroll-tools{position:static!important;inset:auto!important;flex:0 0 auto!important}
}
@layer field-visits {
 .fv:not(.fv-modal){padding:14px!important}
 .fv>header.fv-header>div>small{display:none!important}
 .fv>header.fv-header h1{margin:0 0 3px!important;line-height:1.3!important}
 .fv>header.fv-header .muted{font-size:12px!important}
 .fv #fvFilters{flex-wrap:nowrap!important;align-items:flex-end!important;padding:10px!important;margin-bottom:8px!important}
 .fv #fvFilters label{min-width:88px!important;flex:1 1 100px!important;font-size:12px!important}
 .fv #fvFilters button{padding:5px 7px!important;flex:0 0 auto!important}
 .fv .fv-kpis{margin:8px 0!important;gap:8px!important}
 .fv .fv-kpis article{padding:6px 12px!important}
 .fv .fv-kpis strong{font-size:24px!important;line-height:1.25!important}
 .fv .fv-tabs{margin:10px 0!important}
 #modal:has(.fv-modal){width:min(1040px,94vw)!important;max-width:94vw!important;max-height:90vh!important;padding:14px!important;overflow:auto!important;border-radius:12px!important}
 .fv.fv-modal{width:100%!important;max-width:100%!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding:10px!important}
 .fv-modal .fv-header{padding-left:32px!important;position:static!important;display:flex!important}
 .fv-modal h2{position:static!important;inset:auto!important;transform:none!important;margin:0!important}
 .fv-grid>*{min-width:0!important}
 .fv-stop .fv-grid{grid-template-columns:minmax(180px,2fr) minmax(115px,1fr) minmax(100px,1fr)!important}
 .fv,.fv :is(p,span,b,small,label,input,select,textarea,button,summary,td,th,strong,legend){font-family:'Segoe UI',Tahoma,Arial,sans-serif!important;font-size:14px!important;line-height:1.55!important;letter-spacing:normal!important}
 .fv h1{font-size:24px!important;font-weight:700!important;line-height:1.4!important}
 .fv h2{font-size:18px!important;font-weight:700!important;line-height:1.4!important}
 .fv h3{font-size:16px!important;font-weight:700!important}
 .fv small,.fv .fv-note,.fv .fv-badge{font-size:12px!important}
 .fv .fv-kpis strong{font-size:27px!important;font-weight:700!important}
 .fv button{min-height:34px!important;height:auto!important;padding:6px 11px!important;border-radius:7px!important;background:#fff!important;color:#183449!important;border:1px solid #bdcdd8!important;box-shadow:none!important}
 .fv button.primary,.fv button.active{background:#176776!important;color:#fff!important;border-color:#176776!important}
 .fv :is(input,select,textarea):not([type=checkbox]):not([type=radio]){min-height:36px!important;height:auto!important;background:white!important;color:#183449!important;border:1px solid #bdcdd8!important;border-radius:6px!important;padding:5px 8px!important}
 .fv input[type=checkbox]{width:17px!important;height:17px!important;min-height:17px!important;accent-color:#176776}
 .fv th{background:#e6eef4!important;color:#173c52!important;font-weight:700!important;padding:9px!important}
 .fv td{padding:8px 9px!important;height:auto!important;white-space:normal!important;color:#183449!important}
 .fv tbody tr:nth-child(even) td{background:#f2f7fa!important}
 .fv .fv-header{margin-bottom:12px!important}
 .fv .fv-filters{padding:12px!important;gap:8px!important}
 .fv .fv-kpis article{padding:10px 14px!important}
 .fv .fv-tabs{gap:6px!important}
 .fv .fv-table{max-height:58vh!important;overflow:auto!important}
 .fv .fv-alert{padding:3px 6px!important;margin:3px 0!important;font-size:12px!important}
}
.fv{--fv-ink:#183449;--fv-main:#176776;--fv-line:#dce5ec;direction:rtl;color:var(--fv-ink);background:#f5f8fb;padding:20px;font:14px/1.6 'Segoe UI',Tahoma,Arial,sans-serif;min-height:70vh}.fv *{box-sizing:border-box}.fv h1,.fv h2,.fv h3{margin:0 0 8px;color:var(--fv-ink)}.fv h1{font-size:25px}.fv h2{font-size:18px}.fv small,.fv .muted{color:#597182}.fv-header,.fv-actions,.fv-tabs,.fv-filters{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.fv-header{justify-content:space-between;margin-bottom:18px}.fv button,.fv .fv-link{border:1px solid #c4d3de;border-radius:8px;background:white;color:var(--fv-ink);padding:8px 13px;cursor:pointer;font:inherit;line-height:1.4;text-decoration:none;min-height:36px}.fv button:hover{border-color:var(--fv-main);background:#eaf4f5}.fv button:focus-visible,.fv input:focus-visible,.fv select:focus-visible{outline:3px solid #49a8c8;outline-offset:2px}.fv button.primary,.fv button.active{background:var(--fv-main);color:white;border-color:var(--fv-main)}.fv button:disabled{opacity:.5;cursor:default}.fv-tabs{margin:14px 0}.fv-filters,.fv-card{background:white;border:1px solid var(--fv-line);border-radius:12px;padding:16px;margin-bottom:14px}.fv label{display:flex;flex-direction:column;gap:5px;font-weight:600}.fv input,.fv select,.fv textarea{min-height:38px;padding:7px 9px;border:1px solid #bdcdd8;border-radius:7px;background:white;color:var(--fv-ink);font:inherit;max-width:100%}.fv textarea{min-height:75px}.fv-filters label{min-width:120px;flex:1}.fv-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0}.fv-kpis article{border:1px solid var(--fv-line);border-top:3px solid #4594a1;background:white;border-radius:10px;padding:14px}.fv-kpis strong{display:block;font-size:27px;line-height:1.4}.fv-table{overflow:auto;max-height:58vh;border:1px solid var(--fv-line);border-radius:9px;background:white}.fv table{border-collapse:collapse;width:100%;min-width:780px}.fv th,.fv td{padding:10px 12px;text-align:right;border-bottom:1px solid #e5edf2;vertical-align:middle}.fv th{position:sticky;top:0;background:#e9f0f5;color:#173c52;z-index:1;font-weight:700}.fv tr:nth-child(even) td{background:#f7fafc}.fv td.num,.fv th.num{text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums}.fv td small{display:block}.fv-badge{border-radius:20px;background:#eef2f6;color:#486274;padding:3px 9px;display:inline-block;white-space:nowrap;font-size:12px}.fv-badge.completed{background:#def2e8;color:#165337}.fv-badge.started{background:#def0fb;color:#155b82}.fv-badge.alert{background:#fff0d9;color:#80520a}.fv-badge.cancelled,.fv-badge.postponed{background:#f2e5e5;color:#834444}.fv-alert{background:#fff5e6;color:#714b0c;border-right:3px solid #d69c3b;border-radius:6px;padding:10px;margin:8px 0}.fv-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.fv-span{grid-column:1/-1}.fv-checks{display:flex;flex-wrap:wrap;gap:12px}.fv-checks label{display:flex;flex-direction:row;align-items:center;font-weight:400}.fv-checks input{min-height:0}.fv-modal{max-width:1040px;width:min(1040px,90vw);max-height:82vh;overflow:auto;padding:18px}.fv-modal .fv-table{max-height:40vh}.fv-empty{padding:30px;text-align:center;color:#657f90}.fv-route-stops{display:grid;gap:10px}.fv-stop{background:#f5f8fb;border:1px solid var(--fv-line);padding:10px;border-radius:8px}.fv-stop .fv-grid{grid-template-columns:2fr 1fr 1fr}.fv-note{font-size:12px;color:#61778a;margin:12px 0}.fv-progress{height:6px;background:#dfe8ec;border-radius:8px;overflow:hidden}.fv-progress span{height:100%;display:block;background:#219079}.fv-card-row{display:flex;justify-content:space-between;gap:10px;align-items:center}.fv a{color:#145d91}@media(max-width:800px){.fv{padding:12px}.fv-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.fv-grid,.fv-stop .fv-grid{grid-template-columns:1fr}.fv h1{font-size:21px}.fv-modal{width:92vw;padding:12px}}

@layer field-visits {
 .fv .fv-badge.blocked{color:#793623!important;background:#ffe6d7!important;border-color:#dbac98!important}
 .fv #fvPanel .fv-table th,.fv #fvPanel .fv-table td{font-size:14px!important;line-height:1.55!important}
 .fv #fvPanel small,.fv .fv-plan-kpis small{font-size:13px!important}
 .fv :is(button,summary,select):focus-visible{outline:3px solid #126858!important;outline-offset:2px}
 .fv .fv-plan-kpis article{min-width:0}
}
