:root {
    --surface: #ffffff;
    --page: #f4f7f5;
    --ink: #1e2a24;
    --muted: #66736b;
    --success-soft: #e8f5ed;
    --fleet-soft: #eef4ff;
    --amber-soft: #fff7df;
    --danger-soft: #fff0f0;
}

body {
    background: linear-gradient(145deg, #f8faf9 0%, var(--page) 52%, #edf3f0 100%);
    color: var(--ink);
    font-size: 16px;
}

.app-shell {
    padding: 1.25rem;
}

.navbar {
    box-shadow: 0 8px 24px rgba(18, 74, 45, 0.16);
    backdrop-filter: blur(12px);
}

.navbar .nav-link,
.btn,
.notification-item,
.module-link {
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    transform: translateY(-1px);
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.page-heading h1 {
    font-size: clamp(1.6rem, 2vw, 2.25rem);
    margin: 0;
}

.page-heading p {
    margin: .25rem 0 0;
    color: var(--muted);
}

.content-card,
.metric-card {
    background: var(--surface);
    border: 1px solid rgba(20, 82, 54, .1);
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(25, 72, 50, .08);
}

.content-card {
    padding: 1.25rem;
}

.metric-card {
    padding: 1.35rem;
    min-height: 138px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.metric-card span,
.stat-tile span {
    color: var(--muted);
    font-weight: 600;
}

.metric-card strong {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1;
}

.stat-tile {
    min-height: 150px;
    display: grid;
    gap: .4rem;
    position: relative;
    overflow: hidden;
}

.stat-tile i {
    font-size: 2rem;
}

.stat-tile strong {
    font-size: 2rem;
}

.stat-tile small {
    color: var(--muted);
    font-weight: 700;
}

.dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1.5rem;
    border-radius: 8px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(14, 93, 56, .96), rgba(23, 132, 93, .9)),
        linear-gradient(90deg, #146c43, #0f766e);
    box-shadow: 0 18px 45px rgba(14, 93, 56, .22);
    overflow: hidden;
    position: relative;
}

.dashboard-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, .18) 38%, transparent 52%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 34px);
    opacity: .55;
    transform: translateX(-100%);
    animation: dashboard-sweep 7s ease-in-out infinite;
}

.dashboard-hero-compact {
    padding: 1rem 1.15rem;
    margin-bottom: .85rem;
}

.dashboard-hero-compact h1 {
    font-size: clamp(1.45rem, 2.2vw, 2.15rem);
}

.dashboard-hero-compact .btn-lg {
    min-height: 42px;
    padding: .45rem .8rem;
    font-size: .95rem;
}

.dashboard-hero::after {
    content: "";
    position: absolute;
    inset: auto -5rem -8rem auto;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}

.dashboard-hero h1 {
    margin: .2rem 0 .35rem;
    font-size: clamp(1.8rem, 3vw, 3rem);
}

.dashboard-hero p {
    margin: 0;
    color: rgba(255, 255, 255, .82);
}

.dashboard-kicker,
.module-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #146c43;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.dashboard-kicker {
    color: rgba(255, 255, 255, .82);
}

.dashboard-hero-actions {
    display: flex;
    gap: .75rem;
    position: relative;
    z-index: 1;
}

.dashboard-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: .9rem;
    align-items: start;
}

.dashboard-overview,
.dashboard-modules {
    display: grid;
    gap: .85rem;
}

.dashboard-overview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: .85rem;
}

.dashboard-modules {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
}

.overview-tile {
    min-height: 92px;
    padding: 1rem;
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
    display: grid;
    align-content: space-between;
    border: 1px solid rgba(20, 82, 54, .1);
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 10px 30px rgba(25, 72, 50, .08);
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.overview-tile::after,
.dashboard-module::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .5), transparent);
    transform: translateX(-120%);
    transition: transform .55s ease;
}

.overview-tile:hover,
.dashboard-module:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(25, 72, 50, .12);
}

.overview-tile:hover::after,
.dashboard-module:hover::after {
    transform: translateX(120%);
}

.overview-tile span {
    color: var(--muted);
    font-weight: 800;
    font-size: .82rem;
}

.overview-tile strong {
    font-size: clamp(1.35rem, 1.7vw, 1.8rem);
    line-height: 1.05;
}

.overview-fuel {
    background: linear-gradient(180deg, #fff, #eefaf3);
}

.overview-fleet {
    background: linear-gradient(180deg, #fff, #eef4ff);
}

.overview-alert {
    background: linear-gradient(180deg, #fff, #fff7df);
}

.overview-money {
    background: linear-gradient(180deg, #fff, #f6f1ff);
}

.dashboard-module {
    margin-bottom: 0;
    min-height: 100%;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, .82);
    transition: transform .18s ease, box-shadow .18s ease;
}

.dashboard-stock-list,
.dashboard-metric-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
}

.stock-row,
.metric-row {
    min-height: 118px;
    display: grid;
    align-content: space-between;
    gap: .45rem;
    border: 1px solid rgba(20, 82, 54, .1);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .7)),
        linear-gradient(180deg, rgba(232, 245, 237, .8), rgba(255, 255, 255, .86));
    box-shadow: 0 10px 26px rgba(25, 72, 50, .08);
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.stock-row:hover,
.metric-row:hover {
    transform: translateY(-2px);
    border-color: rgba(25, 135, 84, .22);
    box-shadow: 0 16px 34px rgba(25, 72, 50, .13);
}

.stock-row::before,
.metric-row::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #198754, #65c18c);
}

.stock-row {
    padding: .95rem;
}

.stock-row span,
.metric-row span {
    color: var(--muted);
    font-weight: 800;
    font-size: .84rem;
}

.stock-row strong {
    font-size: clamp(1.35rem, 1.8vw, 1.75rem);
    line-height: 1.05;
}

.metric-row {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: .95rem;
}

.metric-row i {
    grid-column: 2;
    grid-row: 1;
    width: 2.25rem;
    height: 2.25rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
    font-size: 1.25rem;
}

.metric-row span {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
}

.metric-row strong {
    grid-column: 1 / 3;
    font-size: clamp(1.6rem, 2.2vw, 2rem);
    line-height: 1;
}

.metric-row em {
    grid-column: 1 / 3;
    color: var(--muted);
    font-style: normal;
    font-size: .86rem;
    font-weight: 750;
}

.warning-soft-row {
    background: linear-gradient(180deg, #fff, var(--amber-soft));
}

.danger-soft-row {
    background: linear-gradient(180deg, #fff, var(--danger-soft));
}

.dashboard-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .55rem;
    margin-top: .75rem;
}

.dash-mini {
    min-height: 104px;
    padding: .85rem;
    border-radius: 8px;
    border: 1px solid rgba(20, 82, 54, .09);
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 8px 22px rgba(25, 72, 50, .07);
    display: grid;
    align-content: space-between;
}

.dash-mini i {
    font-size: 1.25rem;
}

.dash-mini span {
    color: var(--muted);
    font-weight: 750;
    font-size: .8rem;
}

.dash-mini strong {
    font-size: 1.05rem;
    line-height: 1.1;
}

.dashboard-notifications {
    padding: 1rem;
}

.operator-dashboard-grid,
.operator-action-grid {
    display: grid;
    gap: .9rem;
}

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

.operator-action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.operator-stock-card,
.operator-action-card {
    min-height: 160px;
    padding: 1.25rem;
    border: 1px solid rgba(20, 82, 54, .1);
    border-radius: 8px;
    background: linear-gradient(180deg, #fff, #eefaf3);
    box-shadow: 0 12px 34px rgba(25, 72, 50, .1);
    display: grid;
    align-content: space-between;
    color: var(--ink);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.operator-stock-card:hover,
.operator-action-card:hover {
    transform: translateY(-3px);
    border-color: rgba(25, 135, 84, .24);
    box-shadow: 0 18px 42px rgba(25, 72, 50, .14);
}

.operator-stock-card span,
.operator-action-card span {
    color: var(--muted);
    font-weight: 800;
}

.operator-stock-card strong {
    font-size: clamp(1.75rem, 3vw, 2.6rem);
}

.operator-action-card {
    place-items: center;
    text-align: center;
    background: linear-gradient(180deg, #fff, #eef4ff);
}

.operator-action-card i {
    font-size: 2.6rem;
    color: #198754;
}

.operator-action-card span {
    color: var(--ink);
    font-size: 1.1rem;
}

.module-section {
    margin-bottom: 1.35rem;
    padding: 1.1rem;
    border: 1px solid rgba(20, 82, 54, .08);
    border-radius: 8px;
    background: rgba(255, 255, 255, .64);
    box-shadow: 0 12px 36px rgba(25, 72, 50, .07);
}

.dashboard-modules .dashboard-module {
    margin-bottom: 0;
}

.futuristic-panel {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    animation: panel-rise .42s ease-out both;
}

.futuristic-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .42), transparent 30%),
        repeating-linear-gradient(0deg, rgba(20, 82, 54, .035) 0 1px, transparent 1px 24px);
    opacity: .85;
}

.futuristic-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(25, 135, 84, .08), inset 0 0 34px rgba(25, 135, 84, .06);
}

.module-fuel.futuristic-panel {
    background: linear-gradient(180deg, rgba(232, 245, 237, .84), rgba(255, 255, 255, .82));
}

.invoices-panel {
    background: linear-gradient(180deg, rgba(255, 247, 223, .88), rgba(255, 255, 255, .82));
}

.module-section-compact {
    margin-bottom: .9rem;
    padding: .75rem;
}

.module-section-compact .module-heading {
    margin-bottom: .65rem;
}

.module-section-compact .module-heading h2 {
    font-size: 1.08rem;
}

.module-section-compact .metric-card {
    min-height: 102px;
    padding: .9rem;
}

.module-section-compact .metric-card strong {
    font-size: clamp(1.45rem, 2vw, 2.15rem);
}

.module-section-compact .stat-tile {
    min-height: 104px;
    padding: .85rem;
}

.module-section-compact .stat-tile i {
    font-size: 1.45rem;
}

.module-section-compact .stat-tile strong {
    font-size: 1.55rem;
}

.module-section-compact .notification-card {
    padding: .9rem;
}

.module-fleet {
    background: linear-gradient(180deg, rgba(238, 244, 255, .84), rgba(255, 255, 255, .76));
}

.module-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.module-heading h2 {
    margin: .15rem 0 0;
    font-size: 1.35rem;
}

.module-link {
    color: #146c43;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.module-link:hover {
    color: #0b4f32;
    transform: translateX(2px);
}

.animated-card {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, filter .2s ease;
}

.animated-card:hover {
    transform: translateY(-3px);
    border-color: rgba(25, 135, 84, .24);
    box-shadow: 0 16px 38px rgba(25, 72, 50, .13);
    filter: saturate(1.05);
}

.dashboard-card {
    animation: card-pop .35s ease-out both;
}

.dashboard-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .42), transparent);
    transform: translateX(-120%);
    transition: transform .55s ease;
}

.dashboard-card:hover::after {
    transform: translateX(120%);
}

.metric-line {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #198754, #65c18c);
    opacity: .78;
    position: relative;
    overflow: hidden;
}

.metric-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent);
    animation: metric-pulse 2.8s ease-in-out infinite;
}

.warning-card {
    background: linear-gradient(180deg, #fff, var(--amber-soft));
}

.danger-card {
    background: linear-gradient(180deg, #fff, var(--danger-soft));
}

.form-control,
.form-select,
.btn {
    border-radius: 8px;
}

.form-control-lg,
.form-select-lg,
.btn-lg {
    min-height: 52px;
}

.signature-box {
    background: #fff;
    border: 2px dashed #94b49f;
    border-radius: 8px;
    height: 260px;
    overflow: hidden;
    touch-action: none;
}

.signature-box canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.table-card {
    padding: 0;
    overflow: hidden;
}

.table {
    margin-bottom: 0;
    min-width: 980px;
}

.table thead th {
    background: #ecf4ef;
    white-space: nowrap;
}

.sort-link {
    color: inherit;
    text-decoration: none;
}

.signature-preview {
    max-width: 100%;
    max-height: 70vh;
    border: 1px solid #d8e5dd;
    border-radius: 8px;
    background: white;
}

.login-wrap {
    min-height: calc(100vh - 2.5rem);
    display: grid;
    place-items: center;
}

.login-panel {
    width: min(100%, 460px);
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(20, 82, 54, .12);
    box-shadow: 0 18px 50px rgba(24, 70, 48, .14);
}

.brand-mark {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #198754;
    color: white;
    font-size: 2rem;
}

.section-title {
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.vehicle-photo {
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(20, 82, 54, .12);
    border-radius: 8px;
    background: #eef5f1;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #198754;
    font-size: 3rem;
    transition: transform .18s ease, box-shadow .18s ease;
}

.vehicle-photo:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(25, 72, 50, .12);
}

.vehicle-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-metric {
    border: 1px solid rgba(20, 82, 54, .1);
    border-radius: 8px;
    background: #f8fbf9;
    padding: 1rem;
    min-height: 86px;
    display: grid;
    align-content: space-between;
}

.mini-metric span {
    color: var(--muted);
    font-weight: 600;
}

.mini-metric strong {
    font-size: 1.25rem;
}

.notification-panel h3 {
    font-size: 1rem;
    margin-bottom: .75rem;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .75rem 0;
    border-top: 1px solid rgba(20, 82, 54, .1);
    color: var(--ink);
    text-decoration: none;
}

.notification-item:hover {
    color: #146c43;
    transform: translateX(3px);
    background: rgba(25, 135, 84, .04);
    padding-left: .5rem;
}

.notification-card {
    background: rgba(255, 255, 255, .86);
}

.module-section > * {
    position: relative;
    z-index: 1;
}

@keyframes dashboard-sweep {
    0%, 45% {
        transform: translateX(-100%);
    }
    70%, 100% {
        transform: translateX(100%);
    }
}

@keyframes panel-rise {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.995);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes card-pop {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes metric-pulse {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}

.empty-state {
    padding: .75rem;
    border-radius: 8px;
    background: #f4f8f6;
    color: var(--muted);
}

.fleet-sheet-card {
    padding: 1rem;
}

.fleet-sheet-card .section-title {
    margin-bottom: .75rem;
    padding-bottom: .55rem;
    border-bottom: 1px solid rgba(20, 82, 54, .1);
}

.compact-form .form-label {
    margin-bottom: .25rem;
    font-size: .84rem;
    font-weight: 700;
    color: #3d4d43;
}

.compact-form .form-control,
.compact-form .form-select {
    min-height: 38px;
    padding: .4rem .6rem;
    font-size: .94rem;
}

.compact-form textarea.form-control {
    min-height: 72px;
}

.compact-form .form-text {
    margin-top: .25rem;
    font-size: .78rem;
}

.compact-form .btn {
    min-height: 42px;
}

.fleet-sheet-card .vehicle-photo {
    max-height: 180px;
}

.fleet-sheet-card .table {
    font-size: .92rem;
}

.fleet-sheet-card .table > :not(caption) > * > * {
    padding: .55rem .65rem;
}

.fleet-sheet-card .table .btn-sm {
    min-height: 32px;
    padding: .25rem .55rem;
}

.fleet-detail-grid {
    display: grid;
    grid-template-columns: minmax(360px, .88fr) minmax(0, 1.35fr);
    gap: .85rem;
    align-items: start;
}

.fleet-primary-grid {
    display: grid;
    grid-template-columns: minmax(420px, 1.05fr) minmax(340px, .95fr);
    gap: .85rem;
    align-items: start;
}

.fleet-detail-left,
.fleet-detail-right {
    min-width: 0;
}

.fleet-detail-left .fleet-sheet-card,
.fleet-detail-right .fleet-sheet-card {
    margin-bottom: .85rem;
}

.fleet-detail-left .table {
    min-width: 720px;
}

.fleet-detail-right .table {
    min-width: 680px;
}

.fleet-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: .85rem;
    align-items: start;
}

.fleet-bottom-grid .fleet-sheet-card {
    height: 100%;
}

.fleet-bottom-grid .table {
    min-width: 520px;
}

.fleet-bottom-grid .mini-metric {
    min-height: 74px;
    padding: .75rem;
}

.fleet-bottom-grid .mini-metric strong {
    font-size: 1.05rem;
}

.compact-filter {
    padding: 1rem;
}

.compact-filter .form-label,
.filter-card .form-label {
    margin-bottom: .25rem;
    font-size: .86rem;
    font-weight: 700;
}

.compact-filter .form-control,
.compact-filter .form-select,
.filter-card .form-control,
.filter-card .form-select {
    min-height: 38px;
    padding: .4rem .6rem;
}

@media (max-width: 991px) {
    .app-shell {
        padding: 1rem;
    }

    .page-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .page-heading .btn {
        width: 100%;
    }

    .content-card {
        padding: 1rem;
    }

    .signature-box {
        height: 220px;
    }

    .dashboard-hero,
    .module-heading,
    .dashboard-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-hero-actions .btn {
        width: 100%;
    }

    .module-section {
        padding: .85rem;
    }

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

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

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

    .dashboard-stock-list,
    .dashboard-metric-list,
    .operator-dashboard-grid,
    .operator-action-grid {
        grid-template-columns: 1fr;
    }

    .fleet-detail-grid,
    .fleet-primary-grid,
    .fleet-bottom-grid {
        grid-template-columns: 1fr;
    }
}

.management-hub {
    width: min(100%, 1320px);
    min-height: calc(100dvh - 98px);
    margin: 0 auto;
    padding: .5rem;
    display: grid;
    align-content: center;
    gap: 1.25rem;
}

.management-hub-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 .15rem;
}

.management-hub-heading span {
    color: #607168;
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.management-hub-heading h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
}

.management-module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.management-module-button {
    --module-accent: #198754;
    --module-soft: #e9f7ef;
    min-height: 180px;
    padding: 1.35rem;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    color: #17231d;
    text-decoration: none;
    border: 1px solid color-mix(in srgb, var(--module-accent) 22%, #dce5e0);
    border-radius: 8px;
    background: linear-gradient(145deg, #fff 18%, var(--module-soft) 100%);
    box-shadow: 0 14px 34px rgba(24, 55, 39, .10);
    animation: module-enter .42s ease-out both;
    animation-delay: calc(var(--module-order) * 55ms);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.management-module-button::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--module-accent);
}

.management-module-button::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, .75) 45%, transparent 65%);
    transform: translateX(-120%);
    transition: transform .6s ease;
}

.management-module-button:hover,
.management-module-button:focus-visible {
    color: #17231d;
    border-color: var(--module-accent);
    transform: translateY(-4px);
    box-shadow: 0 22px 48px color-mix(in srgb, var(--module-accent) 18%, transparent);
}

.management-module-button:hover::after,
.management-module-button:focus-visible::after {
    transform: translateX(120%);
}

.management-module-icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: var(--module-accent);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--module-accent) 28%, transparent);
    font-size: 1.8rem;
}

.management-module-copy {
    display: grid;
    gap: .3rem;
}

.management-module-copy small {
    color: var(--module-accent);
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.management-module-copy strong {
    font-size: 1.45rem;
    line-height: 1.15;
}

.management-module-arrow {
    color: var(--module-accent);
    font-size: 1.3rem;
    transition: transform .2s ease;
}

.management-module-button:hover .management-module-arrow {
    transform: translateX(4px);
}

.management-module-fleet {
    --module-accent: #2166c2;
    --module-soft: #eaf2ff;
}

.management-module-invoices {
    --module-accent: #a76500;
    --module-soft: #fff4dc;
}

.management-module-hr {
    --module-accent: #007c83;
    --module-soft: #e5f7f6;
}

.management-module-docs {
    --module-accent: #c44d39;
    --module-soft: #fff0ec;
}

.management-module-settings {
    --module-accent: #654a9a;
    --module-soft: #f2eef9;
}

.module-menu {
    width: min(100%, 1180px);
    min-height: calc(100dvh - 98px);
    margin: 0 auto;
    display: grid;
    align-content: center;
    gap: 1rem;
}

.module-menu-header {
    --menu-accent: #198754;
    min-height: 116px;
    padding: 1rem 1.15rem;
    display: grid;
    grid-template-columns: 44px 64px minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    color: #fff;
    border-radius: 8px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--menu-accent) 84%, #16251d), var(--menu-accent));
    box-shadow: 0 16px 36px color-mix(in srgb, var(--menu-accent) 24%, transparent);
}

.module-menu-back,
.module-menu-main-icon {
    display: grid;
    place-items: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
}

.module-menu-back {
    width: 44px;
    height: 44px;
    text-decoration: none;
    transition: background-color .18s ease, transform .18s ease;
}

.module-menu-back:hover {
    color: #fff;
    background: rgba(255, 255, 255, .22);
    transform: translateX(-2px);
}

.module-menu-main-icon {
    width: 64px;
    height: 64px;
    font-size: 1.65rem;
}

.module-menu-header small {
    color: rgba(255, 255, 255, .78);
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.module-menu-header h1 {
    margin: .2rem 0 0;
    font-size: 1.75rem;
}

.module-menu-fleet {
    --menu-accent: #2166c2;
}

.module-menu-invoices {
    --menu-accent: #a76500;
}

.module-menu-settings {
    --menu-accent: #654a9a;
}

.module-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
}

.module-action-button {
    --action-accent: #198754;
    min-height: 126px;
    padding: 1rem;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 24px;
    align-items: center;
    gap: .8rem;
    color: #1e2a24;
    text-decoration: none;
    border: 1px solid rgba(20, 82, 54, .12);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(25, 72, 50, .08);
    animation: module-enter .38s ease-out both;
    animation-delay: calc(var(--module-order) * 50ms);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.module-action-button:hover,
.module-action-button:focus-visible {
    color: #1e2a24;
    border-color: var(--action-accent);
    transform: translateY(-3px);
    box-shadow: 0 17px 38px rgba(25, 72, 50, .13);
}

.module-action-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--action-accent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--action-accent) 10%, #fff);
    font-size: 1.35rem;
}

.module-action-arrow {
    color: var(--action-accent);
    transition: transform .18s ease;
}

.module-action-button:hover .module-action-arrow {
    transform: translateX(3px);
}

.module-action-danger {
    --action-accent: #c43b48;
}

.module-action-warning {
    --action-accent: #a76500;
}

.settings-form {
    width: min(100%, 980px);
}

.settings-users-table .table {
    min-width: 760px;
}

@keyframes module-enter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .management-hub,
    .module-menu {
        min-height: auto;
        align-content: start;
    }

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

    .management-module-button {
        min-height: 150px;
    }
}

@media (max-width: 575px) {
    .management-hub-heading {
        display: block;
    }

    .management-hub-heading h1 {
        margin-top: .2rem;
        font-size: 1.65rem;
    }

    .management-module-grid,
    .module-action-grid {
        grid-template-columns: 1fr;
    }

    .management-module-button {
        min-height: 118px;
        padding: 1rem;
        grid-template-columns: 54px minmax(0, 1fr) 24px;
    }

    .management-module-icon {
        width: 54px;
        height: 54px;
        font-size: 1.45rem;
    }

    .management-module-copy strong {
        font-size: 1.2rem;
    }

    .module-menu-header {
        min-height: 102px;
        grid-template-columns: 40px 48px minmax(0, 1fr);
        gap: .7rem;
        padding: .85rem;
    }

    .module-menu-back {
        width: 40px;
        height: 40px;
    }

    .module-menu-main-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    .module-menu-header h1 {
        font-size: 1.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .management-module-button,
    .module-action-button {
        animation: none;
        transition: none;
    }
}
