/* Only the fuel-records workspace opts into a viewport-sized shell.
   Other programs retain their existing scroll/layout behavior. */
html:has(#contentFrame[src^="/admin/workforce/vehicle-fuel-records/index.html"]),
body:has(#contentFrame[src^="/admin/workforce/vehicle-fuel-records/index.html"]) {
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}
.admin-shell:has(#contentFrame[src^="/admin/workforce/vehicle-fuel-records/index.html"]) {
    height: 100dvh;
    min-height: 0;
    min-width: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}
.admin-shell:has(#contentFrame[src^="/admin/workforce/vehicle-fuel-records/index.html"]) .top-bar-inner {
    min-width: 0;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 8px 14px;
}
.admin-shell:has(#contentFrame[src^="/admin/workforce/vehicle-fuel-records/index.html"]) .top-nav {
    flex: 1 1 720px;
    flex-wrap: wrap;
    gap: 6px;
}
.admin-shell:has(#contentFrame[src^="/admin/workforce/vehicle-fuel-records/index.html"]) .nav-button {
    white-space: nowrap;
}
.admin-shell:has(#contentFrame[src^="/admin/workforce/vehicle-fuel-records/index.html"]) .frame-wrapper {
    width: calc(100% - 20px);
    max-width: var(--page-max);
    min-width: 0;
    min-height: 0;
    margin: 10px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}
.admin-shell:has(#contentFrame[src^="/admin/workforce/vehicle-fuel-records/index.html"]) .frame-header {
    min-width: 0;
    gap: 10px;
    padding: 8px 12px;
    min-height: 44px;
}
.admin-shell:has(#contentFrame[src^="/admin/workforce/vehicle-fuel-records/index.html"]) .frame-header-title {
    min-width: 0;
    font-size: 13px;
}
.admin-shell:has(#contentFrame[src^="/admin/workforce/vehicle-fuel-records/index.html"]) #frameTitle {
    overflow-wrap: anywhere;
}
.admin-shell:has(#contentFrame[src^="/admin/workforce/vehicle-fuel-records/index.html"]) .frame-header-note {
    display: none;
}
.admin-shell:has(#contentFrame[src^="/admin/workforce/vehicle-fuel-records/index.html"]) .inline-frame-host {
    min-height: 0;
    min-width: 0;
    height: 100%;
}
@media (max-width: 1100px) {
    .admin-shell:has(#contentFrame[src^="/admin/workforce/vehicle-fuel-records/index.html"]) .top-nav {
        order: 3;
        flex-basis: 100%;
    }
}
@media (max-width: 700px) {
    .admin-shell:has(#contentFrame[src^="/admin/workforce/vehicle-fuel-records/index.html"]) .top-bar-inner { padding: 5px 8px; gap: 5px; }
    .admin-shell:has(#contentFrame[src^="/admin/workforce/vehicle-fuel-records/index.html"]) .nav-button { min-height: 28px; font-size: 11px; }
    .admin-shell:has(#contentFrame[src^="/admin/workforce/vehicle-fuel-records/index.html"]) .frame-wrapper { width: calc(100% - 8px); margin: 4px; }
    .admin-shell:has(#contentFrame[src^="/admin/workforce/vehicle-fuel-records/index.html"]) .frame-header-title { font-size: 11px; }
}
