:root {
            --gsa-blue: #4f3984;
            --gsa-blue-dark: #37245f;
            --gsa-blue-light: #eef4ff;
            --white: #ffffff;
            --text: #182033;
            --muted: #6a7284;
            --border: #dbe4f3;
            --shadow: 0 18px 45px rgba(24, 32, 51, 0.12);
            --sidebar-width: 270px;
            --sidebar-collapsed: 76px;
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            min-height: 100vh;
            font-family: Arial, Helvetica, sans-serif;
            color: var(--text);
            background: #f4f8ff;
        }

        .login-page {
            min-height: 100vh;
            display: grid;
            place-items: center;
            padding: 28px;
            background:
                radial-gradient(circle at top left, rgba(79, 57, 132, 0.12), transparent 34%),
                linear-gradient(135deg, #f7faff 0%, #eef4ff 100%);
        }

        .login-shell {
            width: min(1080px, 100%);
            min-height: 660px;
            display: grid;
            grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1fr);
            align-items: center;
            border: 1px solid var(--border);
            border-radius: 12px;
            background: var(--white);
            box-shadow: var(--shadow);
            overflow: hidden;
        }

        .login-visual {
            position: relative;
            min-height: 660px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 52px 46px 34px;
            overflow: hidden;
            color: var(--white);
            background:
                linear-gradient(180deg, rgba(79, 57, 132, 0.96) 0%, rgba(55, 36, 95, 0.98) 100%);
        }

        .login-visual::before {
            content: "";
            position: absolute;
            inset: 0;
            background:
                radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.16), transparent 22%),
                linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.08) 100%);
            pointer-events: none;
        }

        .login-brand,
        .login-copy,
        .transport-scene,
        .login-copyright {
            position: relative;
            z-index: 1;
        }

        .login-brand {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .login-brand img {
            width: 58px;
            height: 58px;
            padding: 8px;
            border-radius: 8px;
            background: var(--white);
            object-fit: contain;
        }

        .login-brand strong,
        .login-brand span {
            display: block;
            letter-spacing: 0;
        }

        .login-brand strong {
            font-size: 19px;
            line-height: 1.1;
        }

        .login-brand span {
            margin-top: 3px;
            color: rgba(255, 255, 255, 0.78);
            font-size: 13px;
            font-weight: 800;
        }

        .login-copy {
            max-width: 320px;
            margin-top: 58px;
        }

        .login-copy h1 {
            margin: 0;
            font-size: 28px;
            line-height: 1.18;
        }

        .login-copy p {
            margin: 18px 0 0;
            color: rgba(255, 255, 255, 0.78);
            font-size: 14px;
            line-height: 1.7;
            font-weight: 700;
        }

        .transport-scene {
            max-width: 420px;
            margin: auto auto 0;
            color: var(--white);
            opacity: 0.72;
        }

        .transport-scene svg {
            display: block;
            width: 100%;
            height: auto;
        }

        .scene-road {
            fill: rgba(238, 244, 255, 0.22);
        }

        .scene-skyline,
        .scene-cloud {
            fill: rgba(238, 244, 255, 0.12);
        }

        .scene-cloud.small {
            opacity: 0.75;
        }

        .scene-bus {
            fill: #eef4ff;
            stroke: #dbe4f3;
            stroke-width: 8;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .scene-bus path:nth-child(2),
        .scene-bus path:nth-child(3) {
            fill: rgba(79, 57, 132, 0.34);
            stroke-width: 6;
        }

        .scene-bus circle {
            fill: #37245f;
        }

        .scene-bus circle:nth-last-child(-n + 2) {
            fill: #eef4ff;
            stroke-width: 4;
        }

        .login-copyright {
            margin: 20px 0 0;
            color: rgba(255, 255, 255, 0.64);
            font-size: 12px;
            text-align: center;
        }

        .login-panel {
            min-height: 660px;
            display: grid;
            place-items: center;
            padding: 46px 54px;
            background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
        }

        .login-card {
            width: min(390px, 100%);
            margin-left: 0;
            display: grid;
            gap: 18px;
            padding: 0;
            border: 0;
            border-radius: 0;
            background: transparent;
            box-shadow: none;
        }

        .login-card-heading {
            text-align: center;
            margin-bottom: 4px;
        }

        .login-card-heading h2 {
            margin: 0;
            color: var(--gsa-blue-dark);
            font-size: 28px;
            line-height: 1.2;
        }

        .login-card-heading p {
            margin: 8px 0 0;
            color: var(--muted);
            font-size: 14px;
            font-weight: 700;
        }

        .login-alert {
            border-radius: 8px;
            padding: 12px 14px;
            font-size: 13px;
            font-weight: 800;
            line-height: 1.4;
        }

        .login-alert.error {
            border: 1px solid #f2b8b5;
            background: #fff4f2;
            color: #9f1d18;
        }

        .login-alert.success {
            border: 1px solid #b7dfc4;
            background: #f0fbf4;
            color: #146c2e;
        }

        .login-field {
            display: grid;
            gap: 9px;
            color: var(--text);
            font-size: 13px;
            font-weight: 800;
        }

        .login-input-wrap {
            min-height: 48px;
            display: flex;
            align-items: center;
            gap: 12px;
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 0 14px;
            background: var(--white);
            transition: border-color 160ms ease, box-shadow 160ms ease;
        }

        .login-input-wrap:focus-within {
            border-color: var(--gsa-blue);
            box-shadow: 0 0 0 4px rgba(79, 57, 132, 0.12);
        }

        .login-input-wrap svg {
            width: 19px;
            height: 19px;
            flex: 0 0 auto;
            fill: none;
            stroke: var(--muted);
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .login-input-wrap input {
            width: 100%;
            min-width: 0;
            border: 0;
            outline: 0;
            color: var(--text);
            background: transparent;
            font: inherit;
            font-size: 14px;
            font-weight: 700;
        }

        .login-input-wrap input::placeholder {
            color: #98a1b3;
        }

        .login-options {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            color: var(--muted);
            font-size: 13px;
            font-weight: 700;
        }

        .remember-control {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
        }

        .remember-control input {
            width: 16px;
            height: 16px;
            accent-color: var(--gsa-blue);
        }

        .login-options a,
        .signup-link a {
            color: var(--gsa-blue);
            text-decoration: none;
            font-weight: 800;
        }

        .login-options a:hover,
        .signup-link a:hover {
            text-decoration: underline;
        }

        .login-submit,
        .google-login {
            min-height: 48px;
            border-radius: 8px;
            cursor: pointer;
            font: inherit;
            font-size: 14px;
            font-weight: 800;
        }

        .login-submit {
            border: 0;
            background: var(--gsa-blue);
            color: var(--white);
            box-shadow: 0 14px 28px rgba(79, 57, 132, 0.22);
            transition: background 160ms ease, transform 160ms ease;
        }

        .login-submit:hover {
            background: var(--gsa-blue-dark);
            transform: translateY(-1px);
        }

        .login-divider {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
            gap: 14px;
            color: var(--muted);
            font-size: 12px;
            font-weight: 700;
        }

        .login-divider::before,
        .login-divider::after {
            content: "";
            height: 1px;
            background: var(--border);
        }

        .google-login {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            border: 1px solid var(--border);
            background: var(--white);
            color: var(--text);
        }

        .google-login span {
            width: 22px;
            height: 22px;
            display: inline-grid;
            place-items: center;
            border-radius: 50%;
            color: #1a73e8;
            font-weight: 900;
        }

        .signup-link {
            margin: 0;
            color: var(--muted);
            font-size: 13px;
            font-weight: 700;
            text-align: center;
        }

        .app-shell {
            min-height: 100vh;
            display: grid;
            grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
            transition: grid-template-columns 220ms ease;
        }

        .app-shell.sidebar-collapsed {
            grid-template-columns: var(--sidebar-collapsed) minmax(0, 1fr);
        }

        .sidebar {
            position: sticky;
            top: 0;
            min-width: 0;
            height: 100vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            background: var(--gsa-blue);
            color: var(--white);
            box-shadow: var(--shadow);
        }

        .brand {
            min-height: 92px;
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 18px 20px;
            background: var(--white);
            border-right: 1px solid var(--border);
        }

        .brand img {
            width: 48px;
            height: 48px;
            object-fit: contain;
            flex: 0 0 auto;
        }

        .brand-text {
            min-width: 0;
            color: var(--gsa-blue);
            line-height: 1.1;
            font-weight: 800;
            letter-spacing: 0;
            white-space: nowrap;
            transition: opacity 160ms ease, transform 160ms ease;
        }

        .brand-text span {
            display: block;
            color: var(--muted);
            font-size: 12px;
            font-weight: 700;
            margin-top: 4px;
        }

        .sidebar .menu-toggle {
            margin-left: auto;
            flex: 0 0 auto;
        }

        .sidebar-nav {
            min-width: 0;
            padding: 20px 14px;
            display: grid;
            gap: 8px;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 255, 255, 0.34) transparent;
        }

        .nav-link {
            width: 100%;
            min-width: 0;
            min-height: 48px;
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 0 14px;
            border-radius: 8px;
            color: rgba(255, 255, 255, 0.88);
            text-decoration: none;
            font-size: 15px;
            font-weight: 700;
            transition: background 160ms ease, color 160ms ease;
        }

        .nav-link:hover,
        .nav-link.active {
            background: rgba(255, 255, 255, 0.16);
            color: var(--white);
        }

        .nav-icon {
            width: 34px;
            height: 34px;
            display: inline-grid;
            place-items: center;
            flex: 0 0 34px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.16);
            color: var(--white);
            line-height: 1;
        }

        .nav-icon svg {
            width: 20px;
            height: 20px;
            display: block;
            stroke: currentColor;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
            fill: none;
        }

        .nav-label {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            transition: opacity 160ms ease, transform 160ms ease;
        }

        .nav-group {
            width: 100%;
            min-width: 0;
            display: grid;
            gap: 6px;
        }

        .sub-nav {
            min-width: 0;
            display: grid;
            gap: 6px;
            padding-left: 38px;
            transition: opacity 160ms ease, transform 160ms ease;
        }

        .sub-nav-link {
            min-width: 0;
            min-height: 38px;
            display: flex;
            align-items: center;
            padding: 0 12px;
            border-radius: 8px;
            color: rgba(255, 255, 255, 0.76);
            text-decoration: none;
            font-size: 13px;
            font-weight: 700;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .sub-nav-link:hover,
        .sub-nav-link.active {
            background: rgba(255, 255, 255, 0.12);
            color: var(--white);
        }

        .sidebar-footer {
            margin-top: auto;
            padding: 18px 20px;
            color: rgba(255, 255, 255, 0.74);
            font-size: 13px;
            line-height: 1.45;
            border-top: 1px solid rgba(255, 255, 255, 0.14);
            transition: opacity 160ms ease;
        }

        .main {
            min-width: 0;
            display: flex;
            flex-direction: column;
        }

        .topbar {
            position: sticky;
            top: 0;
            z-index: 5;
            min-height: 76px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 18px;
            padding: 16px 28px;
            background: rgba(255, 255, 255, 0.94);
            border-bottom: 1px solid var(--border);
            backdrop-filter: blur(12px);
        }

        .menu-toggle {
            width: 48px;
            height: 48px;
            display: inline-grid;
            place-items: center;
            border: 2px solid var(--gsa-blue);
            border-radius: 8px;
            color: var(--white);
            background: var(--gsa-blue);
            cursor: pointer;
            box-shadow: 0 8px 18px rgba(79, 57, 132, 0.12);
            transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
        }

        .menu-toggle:hover {
            background: var(--gsa-blue-dark);
            border-color: var(--gsa-blue-dark);
        }

        .menu-lines,
        .menu-lines::before,
        .menu-lines::after {
            width: 20px;
            height: 2px;
            display: block;
            border-radius: 999px;
            background: currentColor;
            content: "";
        }

        .menu-lines {
            position: relative;
        }

        .menu-lines::before,
        .menu-lines::after {
            position: absolute;
            left: 0;
        }

        .menu-lines::before {
            top: -7px;
        }

        .menu-lines::after {
            top: 7px;
        }

        .page-title {
            min-width: 0;
            flex: 1;
        }

        .page-title h1 {
            margin: 0;
            font-size: 24px;
            line-height: 1.2;
            color: var(--gsa-blue-dark);
        }

        .page-title p {
            margin: 4px 0 0;
            color: var(--muted);
            font-size: 14px;
        }

        .user-chip {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 12px;
            border: 1px solid var(--border);
            border-radius: 8px;
            background: var(--white);
            color: var(--gsa-blue);
            font-weight: 800;
            white-space: nowrap;
        }

        .content {
            width: min(1180px, 100%);
            padding: 28px;
        }

        .tab-panel {
            display: none;
        }

        .tab-panel.active {
            display: block;
            min-height: calc(100vh - 132px);
        }

        .data-card {
            border: 1px solid var(--border);
            border-radius: 8px;
            background: var(--white);
            box-shadow: 0 12px 30px rgba(55, 36, 95, 0.08);
            overflow: hidden;
        }

        .dashboard-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 14px;
            margin-bottom: 18px;
        }

        .dashboard-grid > .summary-card {
            appearance: none;
            -webkit-appearance: none;
            width: 100%;
            min-width: 0;
            min-height: 122px;
            display: grid;
            grid-template-rows: auto 1fr auto;
            gap: 12px;
            padding: 16px;
            border: 1px solid var(--border);
            border-radius: 8px;
            background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
            color: var(--text);
            box-shadow: 0 12px 30px rgba(55, 36, 95, 0.08);
            cursor: pointer;
            text-align: left;
            font: inherit;
            line-height: 1.2;
            transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
        }

        .dashboard-grid > .summary-card:hover,
        .dashboard-grid > .summary-card.active {
            border-color: var(--gsa-blue);
            box-shadow: 0 16px 34px rgba(55, 36, 95, 0.14);
            transform: translateY(-1px);
        }

        .dashboard-grid > .summary-card.active {
            background: #ffffff;
            box-shadow: inset 4px 0 0 var(--gsa-blue), 0 16px 34px rgba(55, 36, 95, 0.14);
        }

        .summary-label,
        .summary-note {
            display: block;
            min-width: 0;
        }

        .summary-label {
            color: var(--gsa-blue-dark);
            font-size: 12px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0;
        }

        .dashboard-grid > .summary-card strong {
            align-self: center;
            color: var(--text);
            font-size: 38px;
            line-height: 1;
        }

        .summary-note {
            color: var(--muted);
            font-size: 13px;
            font-weight: 700;
        }

        .dashboard-detail .data-toolbar h2 {
            margin: 0;
            color: var(--gsa-blue-dark);
            font-size: 18px;
            line-height: 1.25;
        }

        .dashboard-detail .data-toolbar p {
            margin: 4px 0 0;
            color: var(--muted);
            font-size: 13px;
            font-weight: 700;
        }

        .report-card {
            display: grid;
        }

        .report-controls {
            display: grid;
            grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.4fr) repeat(2, minmax(150px, 0.8fr));
            gap: 14px;
            padding: 16px;
            border-bottom: 1px solid var(--border);
            background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
        }

        .report-field {
            display: grid;
            gap: 7px;
            min-width: 0;
            color: var(--gsa-blue-dark);
            font-size: 12px;
            font-weight: 800;
            text-transform: uppercase;
        }

        .report-field input,
        .report-field select {
            width: 100%;
            min-height: 42px;
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 0 12px;
            background: var(--white);
            color: var(--text);
            font: inherit;
            font-size: 14px;
            font-weight: 700;
            text-transform: none;
        }

        .report-field input:focus,
        .report-field select:focus {
            border-color: var(--gsa-blue);
            box-shadow: 0 0 0 4px rgba(79, 57, 132, 0.12);
            outline: 0;
        }

        .report-actions {
            grid-column: 1 / -1;
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            flex-wrap: wrap;
        }

        .report-summary {
            align-items: flex-start;
        }

        .report-summary h2 {
            margin: 0;
            color: var(--gsa-blue-dark);
            font-size: 18px;
            line-height: 1.25;
        }

        .report-summary p,
        #reportRecordCount {
            color: var(--muted);
            font-size: 13px;
            font-weight: 700;
        }

        .report-summary p {
            margin: 4px 0 0;
        }

        #reportRecordCount {
            white-space: nowrap;
        }

        .settings-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 34px;
        }

        .settings-card {
            min-width: 0;
            display: flex;
            flex-direction: column;
            border: 1px solid var(--border);
            border-radius: 18px;
            background: var(--white);
            box-shadow: 0 18px 42px rgba(55, 36, 95, 0.12);
            overflow: hidden;
        }

        .settings-card-title {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 28px 28px 0;
            color: #263247;
        }

        .settings-card-title svg {
            width: 28px;
            height: 28px;
            flex: 0 0 28px;
            fill: none;
            stroke: currentColor;
            stroke-width: 2.6;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .settings-card-title h2,
        .settings-card h2 {
            margin: 0;
            color: #263247;
            font-size: 23px;
            line-height: 1.25;
        }

        .settings-card-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 14px;
            min-height: 91px;
            padding: 16px;
            border-bottom: 1px solid var(--border);
            background: #fbfcff;
        }

        .settings-form {
            flex: 1;
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            align-items: start;
            align-content: start;
            gap: 14px;
            padding: 16px;
        }

        .user-create-card .settings-form {
            grid-template-columns: minmax(150px, 1.15fr) minmax(150px, 1.15fr) minmax(150px, 1.15fr) minmax(120px, 0.72fr) auto;
            align-items: end;
            gap: 22px;
            padding: 28px;
        }

        .user-create-card .form-field label {
            position: absolute;
            width: 1px;
            height: 1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
        }

        .user-create-card .form-field input,
        .user-create-card .form-field select {
            min-height: 58px;
            border: 1px solid #cbd9ea;
            border-radius: 12px;
            padding: 0 18px;
            color: #202733;
            font-size: 18px;
            font-weight: 700;
        }

        .user-create-card .form-field input::placeholder {
            color: #565c66;
            opacity: 1;
        }

        .settings-actions {
            grid-column: 1 / -1;
            display: flex;
            align-items: end;
            justify-content: stretch;
            gap: 10px;
        }

        .user-create-card .settings-actions {
            grid-column: auto;
        }

        .user-create-card .settings-actions .primary-btn {
            min-width: 78px;
            min-height: 58px;
            border-radius: 12px;
            background: #2f5f9d;
            font-size: 19px;
        }

        .toggle-field {
            min-height: 42px;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            color: var(--text);
            font-size: 14px;
            font-weight: 800;
            text-transform: none;
        }

        .toggle-field input {
            width: 18px;
            height: 18px;
            accent-color: var(--gsa-blue);
        }

        .role-pill {
            display: inline-flex;
            align-items: center;
            min-height: 28px;
            padding: 0 10px;
            border-radius: 999px;
            background: #1268ff;
            color: #ffffff;
            font-size: 12px;
            font-weight: 900;
            text-transform: capitalize;
            white-space: nowrap;
        }

        .role-pill.superadmin {
            background: #1268ff;
            color: #ffffff;
        }

        .settings-table-card {
            grid-column: 1 / -1;
            min-width: 0;
            padding-bottom: 28px;
        }

        .users-table {
            min-width: 900px;
            margin: 28px;
            width: calc(100% - 56px);
        }

        .users-table th {
            padding: 22px 18px;
            background: #f4f7fb;
            color: #1f416d;
            font-size: 20px;
            text-transform: none;
        }

        .users-table td {
            padding: 22px 18px;
            font-size: 18px;
            vertical-align: middle;
        }

        .users-table tbody tr:nth-child(even):not(.empty-row) {
            background: #eeeeee;
        }

        .users-table th:last-child,
        .users-table td:last-child {
            min-width: 330px;
        }

        .users-table td:first-child {
            font-weight: 900;
        }

        .user-actions {
            display: grid;
            grid-template-columns: minmax(112px, 1fr) minmax(170px, 1.25fr);
            gap: 10px;
            white-space: normal;
        }

        .user-actions .action-btn {
            min-height: 42px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 6px;
            font-size: 16px;
            font-weight: 800;
        }

        .user-actions .primary-outline {
            border-color: #1268ff;
            color: #1268ff;
        }

        .user-actions .primary-outline:hover {
            background: #1268ff;
            color: #ffffff;
        }

        .user-actions .danger-outline {
            border-color: #ef2f42;
            color: #ef2f42;
        }

        .user-actions .danger-outline:hover {
            background: #fff4f5;
        }

        .user-actions .danger-outline.muted,
        .user-actions .danger-outline:disabled {
            border-color: #ff6b76;
            color: #e97880;
            opacity: 0.7;
            cursor: not-allowed;
        }

        .account-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 18px;
        }

        .account-list {
            flex: 1;
            display: grid;
            gap: 0;
            margin: 0;
            padding: 0;
        }

        .account-list div {
            display: grid;
            grid-template-columns: 150px minmax(0, 1fr);
            align-items: center;
            gap: 14px;
            min-height: 72px;
            padding: 15px 16px;
            border-bottom: 1px solid var(--border);
        }

        .account-list div:last-child {
            border-bottom: 0;
        }

        .account-list dt,
        .account-list dd {
            margin: 0;
        }

        .account-list dt {
            color: var(--muted);
            font-size: 12px;
            font-weight: 900;
            text-transform: uppercase;
        }

        .account-list dd {
            color: var(--text);
            font-weight: 800;
        }

        .data-toolbar,
        .data-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            padding: 16px;
        }

        .data-toolbar {
            border-bottom: 1px solid var(--border);
            flex-wrap: wrap;
        }

        .search-form {
            display: flex;
            min-width: min(100%, 420px);
            flex: 1;
            gap: 8px;
        }

        .search-form input {
            width: 100%;
            min-height: 42px;
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 0 12px;
            color: var(--text);
            font: inherit;
        }

        .table-wrap {
            width: 100%;
            overflow-x: auto;
            overflow-y: hidden;
            padding-bottom: 10px;
            scrollbar-color: var(--gsa-blue) #e8eef8;
            scrollbar-width: auto;
        }

        .table-wrap::-webkit-scrollbar {
            height: 12px;
        }

        .table-wrap::-webkit-scrollbar-track {
            border-radius: 999px;
            background: #e8eef8;
        }

        .table-wrap::-webkit-scrollbar-thumb {
            border: 2px solid #e8eef8;
            border-radius: 999px;
            background: var(--gsa-blue);
        }

        .table-wrap::-webkit-scrollbar-thumb:hover {
            background: var(--gsa-blue-dark);
        }

        .data-table {
            width: 100%;
            min-width: 920px;
            border-collapse: collapse;
        }

        .data-table.wide-table {
            min-width: 1180px;
        }

        .data-table.extra-wide-table {
            min-width: 2300px;
        }

        .data-table th,
        .data-table td {
            padding: 14px 16px;
            border-bottom: 1px solid var(--border);
            text-align: left;
            vertical-align: top;
            font-size: 14px;
        }

        .data-table th:last-child,
        .data-table td:last-child {
            min-width: 170px;
            white-space: nowrap;
        }

        .data-table th {
            background: #f7f9ff;
            color: var(--gsa-blue-dark);
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 0.02em;
            text-transform: uppercase;
            white-space: nowrap;
        }

        .data-table tbody tr:hover {
            background: #fbfcff;
        }

        .data-table tbody tr:last-child td {
            border-bottom: 0;
        }

        .empty-row {
            display: none;
        }

        .empty-row td {
            padding: 26px 16px;
            color: var(--muted);
            text-align: center;
            font-weight: 700;
        }

        .date-stack,
        .action-group {
            display: flex;
            gap: 8px;
        }

        .date-stack {
            flex-direction: column;
            color: var(--text);
            line-height: 1.3;
        }

        .date-stack span {
            color: var(--muted);
            font-size: 12px;
            font-weight: 700;
        }

        .action-group {
            flex-wrap: nowrap;
            min-width: max-content;
            white-space: nowrap;
        }

        .action-btn {
            min-height: 32px;
            flex: 0 0 auto;
            padding: 0 10px;
            border: 1px solid var(--border);
            border-radius: 8px;
            background: var(--white);
            color: var(--gsa-blue);
            cursor: pointer;
            font: inherit;
            font-size: 12px;
            font-weight: 800;
        }

        .action-btn:hover {
            border-color: var(--gsa-blue);
            background: var(--gsa-blue-light);
        }

        .action-btn:disabled {
            opacity: 0.45;
            cursor: not-allowed;
        }

        .action-btn.danger {
            color: #b42318;
        }

        .action-btn.danger:hover {
            border-color: #f4b8b0;
            background: #fff4f2;
        }

        .modal-backdrop {
            position: fixed;
            inset: 0;
            z-index: 50;
            display: none;
            place-items: center;
            padding: 20px;
            background: rgba(24, 32, 51, 0.44);
        }

        .modal-backdrop.open {
            display: grid;
        }

        .modal {
            width: min(560px, 100%);
            border-radius: 8px;
            background: var(--white);
            box-shadow: var(--shadow);
            overflow: hidden;
        }

        .modal-header,
        .modal-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 16px 18px;
            border-bottom: 1px solid var(--border);
        }

        .modal-header h2 {
            margin: 0;
            color: var(--gsa-blue-dark);
            font-size: 18px;
        }

        .modal-close {
            width: 36px;
            height: 36px;
            border: 0;
            border-radius: 8px;
            background: #f2f5fb;
            color: var(--text);
            cursor: pointer;
            font-size: 22px;
            line-height: 1;
        }

        .modal-body {
            padding: 18px;
        }

        .record-form {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
        }

        .form-field {
            display: grid;
            gap: 6px;
        }

        .form-field.full {
            grid-column: 1 / -1;
        }

        .form-field label {
            color: var(--muted);
            font-size: 12px;
            font-weight: 800;
            text-transform: uppercase;
        }

        .form-field input,
        .form-field select,
        .form-field textarea {
            width: 100%;
            min-height: 42px;
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 10px 12px;
            color: var(--text);
            font: inherit;
        }

        .status-badge {
            display: inline-flex;
            align-items: center;
            min-height: 28px;
            padding: 0 10px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 800;
            text-transform: capitalize;
            white-space: nowrap;
        }

        .status-badge.maintenance {
            background: #fff7e6;
            color: #9a5b00;
        }

        .status-badge.working {
            background: #ecfdf3;
            color: #027a48;
        }

        .status-badge.at-workshop {
            background: #eff4ff;
            color: #3538cd;
        }

        .form-field textarea {
            min-height: 78px;
            resize: vertical;
        }

        .modal-footer {
            justify-content: flex-end;
            border-top: 1px solid var(--border);
            border-bottom: 0;
        }

        .primary-btn {
            min-height: 40px;
            padding: 0 16px;
            border: 0;
            border-radius: 8px;
            background: var(--gsa-blue);
            color: var(--white);
            cursor: pointer;
            font: inherit;
            font-weight: 800;
        }

        .primary-btn:disabled {
            opacity: 0.55;
            cursor: not-allowed;
        }

        .data-footer {
            border-top: 1px solid var(--border);
            color: var(--muted);
            font-size: 13px;
            font-weight: 700;
            flex-wrap: wrap;
        }

        .pagination {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .page-indicator {
            color: var(--text);
            min-width: 88px;
            text-align: center;
        }

        .app-shell.sidebar-collapsed .brand {
            min-height: 84px;
            display: grid;
            place-items: center;
            gap: 0;
            padding: 16px 0;
            background: var(--gsa-blue);
            border-right: 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.14);
        }

        .app-shell.sidebar-collapsed .brand img,
        .app-shell.sidebar-collapsed .brand-text,
        .app-shell.sidebar-collapsed .sub-nav,
        .app-shell.sidebar-collapsed .sidebar-footer {
            display: none;
        }

        .app-shell.sidebar-collapsed .sidebar .menu-toggle {
            width: 52px;
            height: 52px;
            margin-left: 0;
            border-color: transparent;
            background: rgba(255, 255, 255, 0.16);
            color: var(--white);
            box-shadow: none;
        }

        .app-shell.sidebar-collapsed .sidebar-nav {
            width: 100%;
            justify-items: center;
            gap: 10px;
            padding: 16px 0;
        }

        .app-shell.sidebar-collapsed .nav-group {
            width: 100%;
            justify-items: center;
        }

        .app-shell.sidebar-collapsed .nav-label {
            display: none;
        }

        .app-shell.sidebar-collapsed .nav-link {
            width: 52px;
            height: 52px;
            min-height: 52px;
            justify-content: center;
            gap: 0;
            padding-left: 0;
            padding-right: 0;
        }

        .app-shell.sidebar-collapsed .nav-icon {
            width: 52px;
            height: 52px;
            flex-basis: 52px;
            background: transparent;
        }

        .app-shell.sidebar-collapsed .nav-icon svg {
            width: 22px;
            height: 22px;
        }

        @media (max-width: 980px) {
            :root {
                --sidebar-width: 240px;
            }

            .login-page {
                padding: 18px;
            }

            .login-shell {
                grid-template-columns: 1fr;
                min-height: 0;
            }

            .login-visual {
                min-height: 430px;
                padding: 36px 32px 26px;
            }

            .login-copy {
                margin-top: 48px;
            }

            .transport-scene {
                max-width: 520px;
                margin-left: auto;
                margin-right: auto;
            }

            .login-panel {
                min-height: 0;
                padding: 34px;
            }

            .login-card {
                width: min(460px, 100%);
                margin-left: 0;
                padding: 0;
                border: 0;
                box-shadow: none;
            }

            .dashboard-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .report-controls {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .settings-grid,
            .account-grid {
                grid-template-columns: 1fr;
            }

            .brand {
                padding-left: 16px;
                padding-right: 14px;
            }

            .brand img {
                width: 42px;
                height: 42px;
            }

            .brand-text {
                font-size: 14px;
            }

            .sidebar-nav {
                padding: 16px 10px;
            }

            .nav-link {
                gap: 10px;
                padding-left: 10px;
                padding-right: 10px;
                font-size: 14px;
            }

            .sub-nav {
                padding-left: 34px;
            }
        }

        @media (max-width: 760px) {
            :root {
                --sidebar-width: min(270px, 86vw);
            }

            .login-page {
                display: block;
                padding: 0;
                background: var(--white);
            }

            .login-shell {
                width: 100%;
                border: 0;
                border-radius: 0;
                box-shadow: none;
            }

            .login-visual {
                min-height: 360px;
                padding: 28px 22px 18px;
            }

            .login-brand img {
                width: 50px;
                height: 50px;
            }

            .login-copy {
                max-width: 290px;
                margin-top: 38px;
            }

            .login-copy h1 {
                font-size: 25px;
            }

            .transport-scene {
                margin-top: 12px;
            }

            .login-copyright {
                display: none;
            }

            .login-panel {
                padding: 24px 18px 32px;
            }

            .login-card {
                width: 100%;
                padding: 0;
                border-radius: 0;
                box-shadow: none;
            }

            .login-card-heading h2 {
                font-size: 25px;
            }

            .login-options {
                align-items: flex-start;
                flex-direction: column;
                gap: 10px;
            }

            .app-shell,
            .app-shell.sidebar-collapsed {
                grid-template-columns: 1fr;
            }

            .sidebar {
                position: fixed;
                z-index: 20;
                width: var(--sidebar-width);
                max-width: 100vw;
                height: 100dvh;
                transition: width 220ms ease;
            }

            .app-shell.sidebar-collapsed .sidebar {
                width: var(--sidebar-collapsed);
            }

            .topbar {
                min-height: 68px;
                padding: 12px 16px;
                padding-left: calc(var(--sidebar-collapsed) + 16px);
            }

            .page-title h1 {
                font-size: 20px;
            }

            .user-chip {
                display: none;
            }

            .content {
                padding: 18px 14px 18px calc(var(--sidebar-collapsed) + 14px);
            }

            .data-table th,
            .data-table td {
                padding: 12px;
            }

            .data-toolbar,
            .data-footer,
            .search-form {
                align-items: stretch;
                flex-direction: column;
            }

            .search-form,
            .primary-btn,
            .pagination {
                width: 100%;
            }

            .pagination {
                justify-content: space-between;
            }

            .record-form {
                grid-template-columns: 1fr;
            }

            .dashboard-grid {
                grid-template-columns: 1fr;
            }

            .report-controls {
                grid-template-columns: 1fr;
            }

            .report-actions {
                align-items: stretch;
                flex-direction: column;
            }

            .report-actions .action-btn,
            .report-actions .primary-btn {
                width: 100%;
            }

            .settings-card-head,
            .settings-actions {
                align-items: stretch;
                flex-direction: column;
            }

            .settings-form,
            .user-create-card .settings-form {
                grid-template-columns: 1fr;
            }

            .settings-actions .primary-btn {
                width: 100%;
            }

            .users-table {
                margin: 16px;
                width: calc(100% - 32px);
                min-width: 760px;
            }

            .account-list div {
                grid-template-columns: 1fr;
                gap: 6px;
            }

        }

        @media (max-width: 430px) {
            .app-shell.sidebar-collapsed .sidebar .menu-toggle,
            .app-shell.sidebar-collapsed .nav-link,
            .app-shell.sidebar-collapsed .nav-icon {
                width: 48px;
            }

            .app-shell.sidebar-collapsed .nav-link,
            .app-shell.sidebar-collapsed .nav-icon {
                height: 48px;
                min-height: 48px;
                flex-basis: 48px;
            }

            .app-shell.sidebar-collapsed .sidebar-nav {
                gap: 8px;
            }

            .page-title p {
                display: none;
            }
        }

        /* Enhanced responsiveness for larger screens */
        @media (min-width: 1200px) {
            .content {
                width: min(1300px, 100%);
            }
        }
        @media (min-width: 1400px) {
            .content {
                width: min(1400px, 100%);
            }

            .dashboard-grid {
                grid-template-columns: repeat(5, minmax(0, 1fr));
            }

            .data-table {
                min-width: 1100px;
            }

            .data-table.wide-table {
                min-width: 1400px;
            }

            .data-table.extra-wide-table {
                min-width: 2800px;
            }
        }

        @media (min-width: 1600px) {
            .content {
                width: min(1600px, 100%);
            }

            .dashboard-grid {
                grid-template-columns: repeat(6, minmax(0, 1fr));
            }

            .data-table {
                min-width: 1200px;
            }

            .data-table.wide-table {
                min-width: 1600px;
            }

            .data-table.extra-wide-table {
                min-width: 3200px;
            }

            .topbar {
                padding: 16px 32px;
            }

            .content {
                padding: 32px;
            }
        }

        @media (min-width: 1920px) {
            .content {
                width: min(1800px, 100%);
            }

            .dashboard-grid {
                grid-template-columns: repeat(6, minmax(0, 1fr));
                gap: 18px;
            }

            .data-table {
                min-width: 1400px;
            }

            .data-table.wide-table {
                min-width: 1800px;
            }

            .data-table.extra-wide-table {
                min-width: 3600px;
            }

            .topbar {
                padding: 18px 36px;
            }

            .content {
                padding: 36px;
            }

            .page-title h1 {
                font-size: 26px;
            }

            .summary-label {
                font-size: 13px;
            }

            .dashboard-grid > .summary-card strong {
                font-size: 42px;
            }

            .summary-note {
                font-size: 14px;
            }
        }

        @media (min-width: 2560px) {
            .content {
                width: min(2200px, 100%);
            }

            .dashboard-grid {
                grid-template-columns: repeat(8, minmax(0, 1fr));
                gap: 20px;
            }

            .data-table {
                min-width: 1600px;
            }

            .data-table.wide-table {
                min-width: 2200px;
            }

            .data-table.extra-wide-table {
                min-width: 4400px;
            }

            .topbar {
                padding: 20px 40px;
            }

            .content {
                padding: 40px;
            }

            .page-title h1 {
                font-size: 28px;
            }

            .dashboard-grid > .summary-card {
                min-height: 140px;
                padding: 20px;
            }

            .dashboard-grid > .summary-card strong {
                font-size: 48px;
            }

            .summary-label {
                font-size: 14px;
            }

            .summary-note {
                font-size: 15px;
            }

            .data-table th,
            .data-table td {
                padding: 16px 18px;
                font-size: 15px;
            }
        }

        /* Enhanced login page responsiveness for larger screens */
        @media (min-width: 1400px) {
            .login-shell {
                width: min(1200px, 100%);
            }

            .login-visual {
                padding: 60px 52px 40px;
            }

            .login-copy h1 {
                font-size: 32px;
            }

            .login-copy p {
                font-size: 16px;
            }

            .transport-scene {
                max-width: 480px;
            }

            .login-panel {
                padding: 52px 60px;
            }

            .login-card-heading h2 {
                font-size: 30px;
            }
        }

        @media (min-width: 1600px) {
            .login-shell {
                width: min(1400px, 100%);
                grid-template-columns: minmax(0, 0.85fr) minmax(500px, 1.15fr);
            }

            .login-visual {
                padding: 70px 60px 50px;
            }

            .login-copy h1 {
                font-size: 36px;
            }

            .login-copy p {
                font-size: 18px;
            }

            .transport-scene {
                max-width: 520px;
            }

            .login-panel {
                padding: 60px 70px;
            }

            .login-card-heading h2 {
                font-size: 32px;
            }

            .login-submit,
            .google-login {
                min-height: 52px;
            }
        }

        @media (min-width: 1920px) {
            .login-shell {
                width: min(1600px, 100%);
                grid-template-columns: minmax(0, 0.8fr) minmax(600px, 1.2fr);
            }

            .login-visual {
                padding: 80px 70px 60px;
            }

            .login-copy h1 {
                font-size: 40px;
            }

            .login-copy p {
                font-size: 20px;
            }

            .transport-scene {
                max-width: 580px;
            }

            .login-panel {
                padding: 70px 80px;
            }

            .login-card-heading h2 {
                font-size: 36px;
            }

            .login-submit,
            .google-login {
                min-height: 56px;
                font-size: 16px;
            }

            .login-input-wrap input {
                font-size: 16px;
            }
        }

        @media (min-width: 2560px) {
            .login-shell {
                width: min(2000px, 100%);
                grid-template-columns: minmax(0, 0.75fr) minmax(800px, 1.25fr);
            }

            .login-visual {
                padding: 100px 80px 80px;
            }

            .login-copy h1 {
                font-size: 48px;
            }

            .login-copy p {
                font-size: 22px;
            }

            .transport-scene {
                max-width: 700px;
            }

            .login-panel {
                padding: 80px 100px;
            }

            .login-card {
                width: min(500px, 100%);
            }

            .login-card-heading h2 {
                font-size: 40px;
            }

            .login-submit,
            .google-login {
                min-height: 60px;
                font-size: 18px;
            }

            .login-input-wrap input {
                font-size: 18px;
                min-height: 52px;
            }

            .login-field {
                font-size: 14px;
            }
        }
