/* Compact workspace and a shared vector icon system, in both themes. */
.portal-title-row{display:flex;align-items:center;gap:10px;min-width:0}
.portal-page-back{display:grid;place-items:center;flex:none;width:38px;height:38px;padding:0;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-surface);color:var(--ui-brand);cursor:pointer}
.portal-page-back svg{width:19px;height:19px}
.portal-heading{margin:4px 0 16px;gap:14px}
.portal-heading h1{font-size:clamp(23px,2.1vw,29px);margin:4px 0;letter-spacing:-.55px}
.portal-heading p:empty{display:none}
#appPage[data-page=folder-content] .subsection-header,#appPage[data-page=dept-detail] .subsection-header,#appPage[data-page=departments] #page-departments>.card>.card-title,#appPage[data-page=profile] #page-profile>.card>.card-title{display:none}
.card,.subsection-content,#page-home .card{padding:20px}
.card-title{margin-bottom:14px}
.page:not(#page-home){gap:16px}
.portal-icon-badge{display:grid;place-items:center;position:relative;flex:none;width:48px;height:48px;border-radius:15px;color:var(--icon-ink);background:var(--icon-soft);border:1px solid var(--icon-line);box-shadow:inset 0 1px 0 rgba(255,255,255,.55)}
.portal-icon-badge>svg{width:26px;height:26px}
.portal-icon-blue{--icon-ink:#35698b;--icon-soft:#edf4fa;--icon-line:#d8e6f1}
.portal-icon-green{--icon-ink:#337763;--icon-soft:#eaf5f0;--icon-line:#d0e6db}
.portal-icon-violet{--icon-ink:#71618e;--icon-soft:#f1eef7;--icon-line:#e2dced}
.portal-icon-amber{--icon-ink:#99713d;--icon-soft:#faf3e8;--icon-line:#ecdfc8}
.portal-shortcut .portal-icon-badge{width:40px;height:40px;border-radius:12px}
.portal-shortcut .portal-icon-badge>svg{width:23px;height:23px}
.dept-card,.folder-card,.subsection-card{min-height:148px;padding:20px;transition:background .15s,border-color .15s,box-shadow .15s}
.dept-card>.portal-icon-badge,.folder-card>.portal-icon-badge,.subsection-card>.portal-icon-badge{margin:0 0 14px}
.dept-card:hover,.folder-card:hover,.subsection-card:hover{border-color:var(--ui-line);box-shadow:0 4px 16px rgba(24,43,64,.06)}
.dept-card .desc,.folder-card .folder-desc{margin-top:5px}
.portal-folder-badge{width:62px;height:54px;border-radius:14px;background:var(--icon-soft)}
.portal-folder-badge>svg{width:43px;height:37px;stroke-width:1.35}
.portal-folder-mark{position:absolute;right:-5px;bottom:-4px;display:grid;place-items:center;width:27px;height:27px;border:2px solid var(--ui-surface);border-radius:9px;background:var(--icon-ink);color:var(--ui-surface)}
.portal-folder-mark svg{width:16px;height:16px;stroke-width:1.8}
.portal-fold>summary{display:flex;align-items:center;gap:8px;min-height:40px;cursor:pointer;font-size:13px;font-weight:600;color:var(--ui-muted);list-style:none}
.portal-fold>summary::-webkit-details-marker,.fleet-edit-section>summary::-webkit-details-marker{display:none}
.portal-fold>summary::after,.fleet-edit-section>summary::after{content:'';width:7px;height:7px;margin-left:auto;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);transition:transform .15s}
.portal-fold[open]>summary::after,.fleet-edit-section[open]>summary::after{transform:rotate(225deg)}
.portal-fold>summary:focus-visible,.fleet-edit-section>summary:focus-visible{outline:2px solid var(--ui-brand);outline-offset:3px;border-radius:5px}
/* The page heading is the sole visible title; journal controls remain in place. */
.sc-heading{justify-content:flex-end;margin:0 0 4px;gap:8px}
.sc-heading>div,.svi-heading>div{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
.sc-summary{border-bottom:1px solid var(--ui-line);margin-bottom:10px}
#scStatsCount{font-size:12px;min-width:22px;padding:1px 6px;border-radius:6px;color:var(--ui-brand);background:var(--ui-active);text-align:center}
.sc-stats{gap:8px;margin:0 0 12px}
.sc-stats button{padding:10px 12px}
.sc-stats strong{font-size:22px}
.sc-stats span{margin-top:4px;font-size:12px}
.sc-filters{padding:12px;margin-bottom:8px;border-radius:11px}
.sc-search-line label{font-size:12px}
.sc-refine{margin-top:6px!important}
.sc-main-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.sc-refine>.sc-main-filters{padding-top:8px}
.sc-refine>details{margin-top:8px}
.sc-tools{margin-top:10px;gap:8px}
.sc-tools label{min-width:150px}
.sc-tools .sc-views{align-self:end}
#scFeedback{margin:6px 0;font-size:12px}
.sc-pager{padding:10px 0;gap:8px}
.sc-pager-top{padding:0 0 10px}
.sc-table th,.sc-table td{padding:11px 10px}
.sc-card{padding:14px}
.sc-card-meta{margin:12px 0}
.svi-heading{justify-content:flex-end;margin:0 0 8px;gap:10px}
.svi-fleet-routing{margin:6px 0;padding:9px 11px}
.svi-summary{margin-bottom:10px;border-bottom:1px solid var(--ui-line)}
.svi-fleet-summary{gap:8px;margin:0 0 10px}
.svi-fleet-count{padding:10px 12px;gap:4px}
.svi-fleet-count strong{font-size:24px}
.svi-summary .svi-fleet-summary>p{font-size:11px}
.svi-filters{margin-bottom:10px}
.svi-advanced{margin-bottom:8px}
.svi-extra-filters{margin:0;padding:8px 0 0}
.svi-journal-toolbar{gap:8px;margin:8px 0}
#rentalTechSearch{box-sizing:border-box;width:100%;min-width:0!important;min-height:44px;border:1px solid var(--ui-line);border-radius:10px;padding:10px 12px;font:inherit;background:var(--ui-surface);color:var(--ui-ink)}
/* Optional card fields stay in the DOM, keeping drafts and save payloads intact. */
.fleet-edit-form{min-width:0}
.fleet-edit-section{border:1px solid var(--ui-line);border-radius:12px;margin:0 0 10px;padding:0 14px;background:var(--ui-surface)}
.fleet-edit-section>h3,.fleet-edit-section>summary{display:flex;align-items:center;gap:9px;min-height:48px;margin:0;font-size:14px;font-weight:650;color:var(--ui-ink);list-style:none}
.fleet-edit-section>summary{cursor:pointer}
.fleet-edit-section>h3 svg,.fleet-edit-section>summary svg{width:20px;height:20px;color:var(--ui-brand);flex:none}
.fleet-section-body{padding:4px 0 0}
.fleet-edit-section .form-group{margin-bottom:12px}
.fleet-edit-section .form-row{gap:12px}
.fleet-edit-section .form-group label{margin-bottom:5px}
.fleet-edit-footer{position:sticky;bottom:-24px;z-index:18;display:flex;gap:10px;justify-content:flex-end;margin:16px -24px -24px;padding:12px 24px 18px;border-top:1px solid var(--ui-line);background:var(--ui-surface);box-shadow:0 -6px 18px rgba(24,43,64,.04)}
.fleet-edit-footer .btn-primary{width:auto;min-width:140px}
.fleet-edit-footer button{min-height:44px}
#modalBody:has(.fleet-edit-form)>.portal-draft-bar{padding:8px 10px;margin-bottom:12px;font-size:12px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
#modalBody:has(.fleet-edit-form)>.portal-draft-bar>span{flex:1;min-width:160px}
#modalBody:has(.fleet-edit-form)>.portal-draft-bar button{min-height:34px;padding:5px 8px;font-size:12px}
html[data-theme=dark] .portal-icon-badge{box-shadow:none}
html[data-theme=dark] .portal-icon-blue{--icon-ink:#9fc8e4;--icon-soft:#253c50;--icon-line:#3b5368}
html[data-theme=dark] .portal-icon-green{--icon-ink:#a2d6c1;--icon-soft:#233d38;--icon-line:#3c5b50}
html[data-theme=dark] .portal-icon-violet{--icon-ink:#c3b7df;--icon-soft:#363248;--icon-line:#514965}
html[data-theme=dark] .portal-icon-amber{--icon-ink:#dfc298;--icon-soft:#423a2e;--icon-line:#5e523d}
@media(max-width:700px){
    .portal-heading{margin:2px 0 12px}
    .portal-heading h1{font-size:23px}
    .portal-breadcrumbs{font-size:11px;gap:4px}
    .portal-title-row{gap:8px}
    .portal-page-back{width:34px;height:38px;border-radius:9px}
    .card,.subsection-content,#page-home .card{padding:14px}
    .app-header{padding:10px 12px;margin-bottom:12px}
    .dept-card,.folder-card,.subsection-card{padding:15px 13px;min-height:134px}
    .dept-card>.portal-icon-badge,.folder-card>.portal-icon-badge,.subsection-card>.portal-icon-badge{margin-bottom:12px}
    .portal-icon-badge{width:42px;height:42px;border-radius:13px}
    .portal-icon-badge>svg{width:24px;height:24px}
    .portal-folder-badge{width:53px;height:46px}
    .portal-folder-badge>svg{width:36px;height:32px}
    .portal-folder-mark{width:24px;height:24px;right:-3px}
    .portal-shortcut{flex-direction:row;align-items:center;gap:8px}
    .portal-shortcut .portal-icon-badge{width:34px;height:34px;border-radius:10px}
    .portal-shortcut .portal-icon-badge>svg{width:21px;height:21px}
    .sc-heading{flex-direction:row;margin-bottom:0}
    .sc-summary>summary,.sc-refine>summary{min-height:38px}
    .sc-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
    .sc-main-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
    .sc-filters{padding:10px}
    .sc-search-line input{font-size:16px}
    .sc-tools label{min-width:0;flex:1}
    .sc-tools button{font-size:12px;padding:8px}
    .sc-pager-top>span{width:auto;margin-right:auto}
    .sc-pager-top form{display:none}
    .sc-pager-top button{min-width:44px;padding:7px 9px}
    .sc-card .sc-excerpt{margin:7px 0}
    .svi-fleet-routing{font-size:12px;gap:6px}
    .svi-fleet-routing>span{display:none}
    .svi-fleet-count{padding:9px 10px}
    .fleet-edit-section{padding:0 12px}
    .fleet-edit-section .form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
    .fleet-edit-section .form-row>.form-group{min-width:0}
    .fleet-edit-section input,.fleet-edit-section select{width:100%;box-sizing:border-box}
    .fleet-edit-section label{font-size:12px}
    .fleet-edit-section .form-group input,.fleet-edit-section .form-group select{padding:10px 9px}
    .fleet-edit-footer{bottom:-18px;margin:14px -18px -18px;padding:10px 18px 14px}
    .fleet-edit-footer .btn-primary{flex:1;min-width:0}
}
@media(prefers-reduced-motion:reduce){.portal-fold>summary::after,.fleet-edit-section>summary::after,.dept-card,.folder-card,.subsection-card{transition:none}}
