:root {
    --fc-primary: #2583ee;
    --fc-primary-dark: #0d3150;
    --fc-sidebar: #102e49;
    --fc-sidebar-deep: #0b263d;
    --fc-primary-soft: #eaf4ff;
    --fc-bg: #f3f7fb;
    --fc-surface: #ffffff;
    --fc-border: #e1e9f1;
    --fc-text: #172b42;
    --fc-muted: #718096;
    --fc-success: #169c52;
    --fc-success-soft: #e6f7ed;
    --fc-warning: #e78900;
    --fc-warning-soft: #fff4d8;
    --fc-danger: #dc3545;
    --fc-danger-soft: #fdebed;
    --fc-radius: 14px;
    --fc-shadow: 0 5px 18px rgba(29, 62, 91, .07);
    --fc-sidebar-width: 272px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

html {
    background: var(--fc-bg);
}

body,
body.bg-light,
.fc-body {
    margin: 0;
    background: var(--fc-bg) !important;
    color: var(--fc-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    text-decoration: none;
}

.fc-app {
    min-height: 100vh;
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.fc-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    width: var(--fc-sidebar-width);
    height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(180deg, var(--fc-sidebar) 0%, var(--fc-sidebar-deep) 100%);
    color: #fff;
    box-shadow: 8px 0 30px rgba(10, 39, 62, .08);
    overflow-y: auto;
}

.fc-sidebar-brand {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
}

.fc-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.fc-brand:hover {
    color: #fff;
}

.fc-brand-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(49, 144, 255, .18);
    color: #62adff;
    font-size: 1.55rem;
}

.fc-brand strong {
    display: block;
    font-size: 1.55rem;
    line-height: 1.1;
    letter-spacing: -.5px;
}

.fc-brand strong span {
    color: #4b9fff;
}

.fc-brand small {
    display: block;
    margin-top: 5px;
    color: #b8c7d4;
    font-size: .72rem;
    font-weight: 400;
}

.fc-sidebar-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 1.1rem;
}

.fc-menu {
    flex: 1;
    padding: 5px 12px 22px;
}

.fc-menu-label {
    padding: 14px 10px 8px;
    color: #aebfce;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fc-menu-label-line {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 7px;
}

.fc-menu-label-line::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, .12);
}

.fc-menu-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 3px 0;
    padding: 0 14px;
    border-radius: 9px;
    color: #e4edf4;
    font-size: .92rem;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

.fc-menu-link i {
    width: 24px;
    text-align: center;
    font-size: 1.15rem;
}

.fc-menu-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .07);
    transform: translateX(2px);
}

.fc-menu-link.active {
    color: #fff;
    background: linear-gradient(135deg, #2583ee, #3597ff);
    box-shadow: 0 7px 16px rgba(37, 131, 238, .24);
}

.fc-menu-count {
    min-width: 23px;
    height: 23px;
    margin-left: auto;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
}

.fc-sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.fc-user-mini {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 12px;
}

.fc-user-avatar,
.fc-topbar-avatar {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #2f88ef;
    color: #fff;
    font-weight: 800;
}

.fc-user-avatar {
    width: 38px;
    height: 38px;
}

.fc-user-mini-info {
    min-width: 0;
}

.fc-user-mini-info strong,
.fc-user-mini-info small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fc-user-mini-info strong {
    color: #fff;
    font-size: .86rem;
}

.fc-user-mini-info small {
    margin-top: 2px;
    color: #9fb3c3;
    font-size: .7rem;
    text-transform: capitalize;
}

.fc-logout {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 11px;
    border-radius: 8px;
    color: #c6d4df;
    font-size: .84rem;
}

.fc-logout:hover {
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.fc-sidebar-overlay {
    display: none;
}

/* =========================================================
   CONTENIDO / TOPBAR
   ========================================================= */

.fc-main {
    min-height: 100vh;
    margin-left: var(--fc-sidebar-width);
}

.fc-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--fc-border);
    box-shadow: 0 2px 9px rgba(25, 52, 76, .035);
    backdrop-filter: blur(10px);
}

.fc-topbar-title {
    color: #5c7186;
    font-size: .9rem;
    font-weight: 650;
}

.fc-menu-toggle {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--fc-border);
    border-radius: 10px;
    background: #fff;
    color: var(--fc-text);
    font-size: 1.35rem;
}

.fc-topbar-user {
    display: flex;
    align-items: center;
    gap: 11px;
}

.fc-topbar-avatar {
    width: 39px;
    height: 39px;
}

.fc-topbar-user-text strong,
.fc-topbar-user-text small {
    display: block;
}

.fc-topbar-user-text strong {
    font-size: .84rem;
    color: var(--fc-text);
}

.fc-topbar-user-text small {
    margin-top: 1px;
    color: var(--fc-muted);
    font-size: .71rem;
    text-transform: capitalize;
}

.fc-topbar-logout {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin-left: 4px;
    border-radius: 10px;
    color: #71869a;
}

.fc-topbar-logout:hover {
    background: #f2f6fa;
    color: var(--fc-primary);
}

.fc-content {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 28px 30px 38px;
}

/* =========================================================
   ENCABEZADOS
   ========================================================= */

.fc-page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 23px;
}

.fc-page-heading h1 {
    margin: 0 0 4px;
    color: var(--fc-text);
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -.045em;
}

.fc-page-heading p,
.fc-section-heading p,
.fc-panel-header p {
    margin: 0;
    color: var(--fc-muted);
}

.fc-page-heading p {
    font-size: .93rem;
}

.fc-page-date {
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    color: #71869a;
    font-size: .82rem;
}

.fc-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 12px;
}

.fc-section-heading h2,
.fc-panel-header h2 {
    margin: 0;
    color: var(--fc-text);
    font-size: 1rem;
    font-weight: 800;
}

.fc-section-heading p,
.fc-panel-header p {
    margin-top: 3px;
    font-size: .78rem;
}

/* =========================================================
   TARJETAS KPI
   ========================================================= */

.fc-stat-card,
.fc-mini-card,
.fc-maintenance-card {
    color: var(--fc-text);
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    box-shadow: var(--fc-shadow);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.fc-stat-card:hover,
.fc-mini-card:hover,
.fc-maintenance-card:hover {
    color: var(--fc-text);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(29, 62, 91, .11);
}

.fc-stat-card {
    min-height: 145px;
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 21px;
    border-radius: var(--fc-radius);
}

.fc-stat-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-size: 1.65rem;
}

.fc-stat-content {
    min-width: 0;
}

.fc-stat-content span,
.fc-stat-content strong,
.fc-stat-content small {
    display: block;
}

.fc-stat-content span {
    color: #536a80;
    font-size: .82rem;
    font-weight: 650;
}

.fc-stat-content strong {
    margin: 2px 0 1px;
    color: var(--fc-text);
    font-size: 2rem;
    line-height: 1.08;
    font-weight: 800;
}

.fc-stat-content small {
    color: var(--fc-muted);
    font-size: .72rem;
}

.fc-stat-primary .fc-stat-icon {
    background: var(--fc-primary-soft);
    color: var(--fc-primary);
}

.fc-stat-success .fc-stat-icon {
    background: var(--fc-success-soft);
    color: var(--fc-success);
}

.fc-stat-warning .fc-stat-icon {
    background: var(--fc-warning-soft);
    color: var(--fc-warning);
}

.fc-stat-danger .fc-stat-icon {
    background: var(--fc-danger-soft);
    color: var(--fc-danger);
}

/* =========================================================
   TARJETAS GESTIÓN
   ========================================================= */

.fc-mini-card {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px;
    border-radius: 12px;
}

.fc-mini-card span,
.fc-mini-card strong {
    display: block;
}

.fc-mini-card span {
    min-height: 36px;
    color: #62768a;
    font-size: .77rem;
    font-weight: 650;
}

.fc-mini-card strong {
    margin-top: 4px;
    color: var(--fc-text);
    font-size: 1.7rem;
    line-height: 1;
    font-weight: 800;
}

.fc-mini-icon,
.fc-maintenance-icon {
    display: grid;
    place-items: center;
    border-radius: 12px;
}

.fc-mini-icon {
    width: 47px;
    height: 47px;
    flex: 0 0 47px;
    font-size: 1.25rem;
}

.fc-icon-success {
    background: var(--fc-success-soft);
    color: var(--fc-success);
}

.fc-icon-warning {
    background: var(--fc-warning-soft);
    color: var(--fc-warning);
}

.fc-icon-danger {
    background: var(--fc-danger-soft);
    color: var(--fc-danger);
}

/* =========================================================
   MANTENCIONES
   ========================================================= */

.fc-maintenance-card {
    min-height: 126px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: var(--fc-radius);
}

.fc-maintenance-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    font-size: 1.45rem;
}

.fc-maintenance-content {
    flex: 1;
    min-width: 0;
}

.fc-maintenance-content span,
.fc-maintenance-content strong,
.fc-maintenance-content small {
    display: block;
}

.fc-maintenance-content span {
    color: #526a80;
    font-size: .82rem;
    font-weight: 700;
}

.fc-maintenance-content strong {
    margin: 1px 0 3px;
    font-size: 1.75rem;
    line-height: 1.05;
    font-weight: 800;
}

.fc-maintenance-content small {
    color: var(--fc-muted);
    font-size: .72rem;
}

.fc-card-arrow {
    color: #9badbd;
}

/* =========================================================
   PANELES Y TABLAS
   ========================================================= */

.fc-panel {
    overflow: hidden;
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    box-shadow: var(--fc-shadow);
}

.fc-panel-header {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--fc-border);
}

.fc-panel-header-danger {
    background: linear-gradient(90deg, #fff6f6 0%, #fff 70%);
}

.fc-panel-header-danger h2 {
    color: #b91c1c;
}

.fc-panel-header-danger h2 i {
    margin-right: 7px;
    color: var(--fc-danger);
}

.fc-panel-count {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    background: #edf2f7;
    color: #5f7183;
    font-size: .72rem;
    font-weight: 700;
}

.fc-table {
    --bs-table-color: var(--fc-text);
}

.fc-table > :not(caption) > * > * {
    padding: .78rem .9rem;
    border-bottom-color: #e8eef4;
}

.fc-table thead th {
    background: #eef4f8;
    color: #496176;
    border-bottom: 1px solid #dce6ee;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.fc-table tbody td {
    font-size: .82rem;
}

.fc-table tbody tr:last-child td {
    border-bottom: 0;
}

.fc-table tbody tr:hover > * {
    --bs-table-bg-state: #f8fbfd;
}

.fc-attention-detail {
    min-width: 260px;
}

.fc-attention-detail strong,
.fc-attention-detail small {
    display: block;
}

.fc-attention-detail strong {
    font-size: .82rem;
}

.fc-attention-detail small {
    max-width: 650px;
    margin-top: 2px;
    overflow: hidden;
    color: var(--fc-muted);
    font-size: .74rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fc-empty-state {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px;
    text-align: center;
}

.fc-empty-state i {
    margin-bottom: 9px;
    color: var(--fc-success);
    font-size: 2.25rem;
}

.fc-empty-state strong {
    color: var(--fc-text);
}

.fc-empty-state span {
    margin-top: 3px;
    color: var(--fc-muted);
    font-size: .82rem;
}

/* =========================================================
   ACCESOS RÁPIDOS
   ========================================================= */

.fc-quick-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    padding: 17px 20px 20px;
}

.fc-quick-link {
    min-height: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--fc-border);
    border-radius: 11px;
    color: #496176;
    background: #fbfdff;
    font-size: .77rem;
    font-weight: 700;
    transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}

.fc-quick-link i {
    color: var(--fc-primary);
    font-size: 1.25rem;
}

.fc-quick-link:hover {
    color: var(--fc-primary);
    background: var(--fc-primary-soft);
    border-color: #bed9f5;
    transform: translateY(-2px);
}

/* =========================================================
   BOOTSTRAP GENERAL
   ========================================================= */

.btn {
    border-radius: 9px;
    font-weight: 650;
}

.btn-primary {
    --bs-btn-bg: var(--fc-primary);
    --bs-btn-border-color: var(--fc-primary);
    --bs-btn-hover-bg: #176fce;
    --bs-btn-hover-border-color: #176fce;
    --bs-btn-active-bg: #176fce;
    --bs-btn-active-border-color: #176fce;
}

.btn-outline-primary {
    --bs-btn-color: var(--fc-primary);
    --bs-btn-border-color: #9ec8ef;
    --bs-btn-hover-bg: var(--fc-primary);
    --bs-btn-hover-border-color: var(--fc-primary);
}

.form-control,
.form-select {
    min-height: 42px;
    border-color: #ccd7e2;
    border-radius: 9px;
}

textarea.form-control {
    min-height: auto;
}

.form-control:focus,
.form-select:focus {
    border-color: #78a9c9;
    box-shadow: 0 0 0 .22rem rgba(37, 131, 238, .12);
}

.form-label {
    color: #334a60;
    font-weight: 650;
}

.card {
    border-color: var(--fc-border) !important;
    border-radius: var(--fc-radius) !important;
    background: var(--fc-surface);
}

.card.shadow-sm,
.card.shadow,
.card.border-0 {
    box-shadow: var(--fc-shadow) !important;
}

.badge {
    padding: .46em .7em;
    border-radius: 999px;
    font-weight: 700;
}

.bg-primary-subtle {
    background-color: var(--fc-primary-soft) !important;
}

.bg-success-subtle {
    background-color: var(--fc-success-soft) !important;
}

.bg-warning-subtle {
    background-color: var(--fc-warning-soft) !important;
}

.bg-danger-subtle {
    background-color: var(--fc-danger-soft) !important;
}

.text-primary {
    color: var(--fc-primary) !important;
}

.text-muted {
    color: var(--fc-muted) !important;
}

/* Mantiene compatibilidad visual con otras vistas existentes */
.navbar,
.navbar.bg-dark,
.bg-dark.vehiculo-header {
    background: linear-gradient(135deg, var(--fc-primary-dark), #1f5f8f) !important;
}

.navbar {
    min-height: 66px;
    box-shadow: 0 2px 12px rgba(18, 63, 98, .16);
}

.navbar-brand {
    font-weight: 700 !important;
}

.table-responsive {
    border-radius: 11px;
}

.table {
    --bs-table-color: var(--fc-text);
}

.table > :not(caption) > * > * {
    border-bottom-color: #e7edf3;
}

.table thead.table-light,
.table-light {
    --bs-table-bg: #eef4f8;
    --bs-table-color: #365064;
    --bs-table-border-color: #dde7ef;
}

.alert {
    border-radius: 11px;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link,
.page-item.active .page-link {
    background-color: var(--fc-primary);
    border-color: var(--fc-primary);
}

.page-link {
    color: var(--fc-primary);
}

/* Login existente */
body:has(form input[name="usuario"]) .card {
    box-shadow: 0 16px 42px rgba(24, 63, 96, .13) !important;
}

body:has(form input[name="usuario"]) h3.fw-bold::before {
    content: "";
    display: block;
    width: 52px;
    height: 5px;
    margin: 0 auto 1rem;
    border-radius: 999px;
    background: var(--fc-primary);
}

.vehiculo-header {
    border-radius: var(--fc-radius) var(--fc-radius) 0 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1199.98px) {
    .fc-quick-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .fc-sidebar {
        transform: translateX(-100%);
        transition: transform .22s ease;
    }

    .fc-sidebar.show {
        transform: translateX(0);
    }

    .fc-sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 1030;
        display: block;
        background: rgba(5, 20, 32, .48);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s ease, visibility .2s ease;
    }

    .fc-sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    body.fc-menu-open {
        overflow: hidden;
    }

    .fc-main {
        margin-left: 0;
    }

    .fc-topbar {
        padding: 0 18px;
    }

    .fc-content {
        padding: 23px 18px 32px;
    }
}

@media (max-width: 767.98px) {
    .fc-page-heading {
        margin-bottom: 18px;
    }

    .fc-page-heading h1 {
        font-size: 1.55rem;
    }

    .fc-stat-card {
        min-height: 125px;
        padding: 17px;
    }

    .fc-stat-icon {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        font-size: 1.45rem;
    }

    .fc-stat-content strong {
        font-size: 1.7rem;
    }

    .fc-section-heading {
        align-items: flex-start;
    }

    .fc-panel-header {
        align-items: flex-start;
        padding: 15px 16px;
    }

    .fc-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 15px;
    }

    .fc-table > :not(caption) > * > * {
        padding: .7rem .72rem;
    }
}

@media (max-width: 420px) {
    .fc-content {
        padding-left: 13px;
        padding-right: 13px;
    }

    .fc-topbar {
        padding: 0 13px;
    }

    .fc-quick-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* =========================================================
   IMPRESIÓN
   ========================================================= */

@media print {
    body,
    body.bg-light,
    .fc-body {
        background: #fff !important;
    }

    .fc-sidebar,
    .fc-topbar,
    .fc-sidebar-overlay {
        display: none !important;
    }

    .fc-main {
        margin-left: 0 !important;
    }

    .fc-content {
        max-width: none;
        padding: 0;
    }

    .fc-stat-card,
    .fc-mini-card,
    .fc-maintenance-card,
    .fc-panel,
    .card {
        box-shadow: none !important;
    }
}


/* =========================================================
   VISTAS INTERNAS FLOTACHECK
   ========================================================= */

.fc-inner-page {
    min-width: 0;
}

.fc-page-actions {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
}

.fc-back-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .85rem;
    color: #63788c;
    font-size: .84rem;
    font-weight: 650;
}

.fc-back-link:hover {
    color: var(--fc-primary);
}

.fc-filter-card,
.fc-form-card,
.fc-data-card {
    background: #fff;
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    box-shadow: var(--fc-shadow);
}

.fc-filter-card {
    padding: 16px;
}

.fc-form-card .card-body,
.fc-data-card .card-body {
    padding: 22px;
}

.fc-form-section-title {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1rem;
    color: var(--fc-text);
    font-size: .92rem;
    font-weight: 800;
}

.fc-form-section-title i {
    color: var(--fc-primary);
}

.fc-info-grid small {
    display: block;
    margin-bottom: 4px;
    color: var(--fc-muted);
}

.fc-info-grid .fc-info-value {
    color: var(--fc-text);
    font-weight: 650;
}

.fc-module-title {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.fc-module-title-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--fc-primary-soft);
    color: var(--fc-primary);
    font-size: 1.2rem;
}

.fc-table-actions {
    display: inline-flex;
    gap: .35rem;
    justify-content: flex-end;
}

.fc-empty-table {
    padding: 3.25rem 1rem !important;
    color: var(--fc-muted) !important;
    text-align: center;
}

.fc-empty-table i {
    display: block;
    margin-bottom: .55rem;
    font-size: 2rem;
    color: #9eb0c0;
}

.fc-detail-card-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.15rem;
    font-size: 1rem;
    font-weight: 800;
}

.fc-detail-card-title i {
    color: var(--fc-primary);
}

.fc-history-item {
    padding: 14px;
    border: 1px solid var(--fc-border);
    border-radius: 10px;
    background: #fbfdff;
}

.fc-main .card {
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .fc-page-actions {
        width: 100%;
    }

    .fc-page-actions .btn {
        flex: 1 1 auto;
    }

    .fc-form-card .card-body,
    .fc-data-card .card-body {
        padding: 17px;
    }
}
/* =========================================================
   DASHBOARD - COMPACTO ESCRITORIO
   ========================================================= */

@media (min-width: 992px) {

    /* Contenido general */
    .fc-content {
        padding-top: 16px;
        padding-bottom: 24px;
    }

    /* Encabezado */
    .fc-page-heading {
        margin-bottom: 14px;
    }

    .fc-page-heading h1 {
        font-size: 1.7rem;
        margin-bottom: 2px;
    }

    .fc-page-heading p {
        font-size: .86rem;
    }


    /* =====================================================
       TARJETAS PRINCIPALES
       ===================================================== */

    .fc-stat-card {
        min-height: 112px;
        padding: 14px 18px;
        gap: 14px;
    }

    .fc-stat-icon {
        width: 52px;
        height: 52px;
        flex: 0 0 52px;
        min-width: 52px;
        font-size: 1.45rem;
    }

    .fc-stat-content span {
        font-size: .78rem;
    }

    .fc-stat-content strong {
        margin: 1px 0;
        font-size: 1.75rem;
        line-height: 1;
    }

    .fc-stat-content small {
        font-size: .69rem;
    }


    /* =====================================================
       TÍTULOS DE SECCIONES
       ===================================================== */

    .fc-section-heading {
        margin-bottom: 8px;
    }

    .fc-section-heading h2 {
        font-size: .95rem;
    }

    .fc-section-heading p {
        margin-top: 1px;
        font-size: .74rem;
    }


    /* =====================================================
       GESTIÓN
       ===================================================== */

    .fc-mini-card {
        min-height: 86px;
        padding: 12px 16px;
        gap: 10px;
    }

    .fc-mini-card span {
        min-height: 30px;
        font-size: .72rem;
    }

    .fc-mini-card strong {
        margin-top: 1px;
        font-size: 1.5rem;
    }

    .fc-mini-icon {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        min-width: 42px;
        font-size: 1.1rem;
    }


    /* =====================================================
       MANTENCIONES
       ===================================================== */

    .fc-maintenance-card {
        min-height: 88px;
        padding: 12px 18px;
        gap: 13px;
    }

    .fc-maintenance-icon {
        width: 46px;
        height: 46px;
        flex: 0 0 46px;
        min-width: 46px;
        font-size: 1.2rem;
    }

    .fc-maintenance-content span {
        font-size: .77rem;
    }

    .fc-maintenance-content strong {
        margin: 0 0 1px;
        font-size: 1.5rem;
        line-height: 1;
    }

    .fc-maintenance-content small {
        font-size: .68rem;
    }


    /* =====================================================
       ESPACIO ENTRE BLOQUES
       ===================================================== */

    .fc-main .mb-4 {
        margin-bottom: .8rem !important;
    }
}


/* =========================================================
   MÓVIL
   No forzamos alturas para conservar el diseño responsive.
   ========================================================= */

@media (max-width: 767.98px) {

    .fc-stat-card,
    .fc-mini-card,
    .fc-maintenance-card {
        min-height: auto;
    }

}

/* =========================================================
   DASHBOARD - AJUSTE COMPACTO DEFINITIVO
   Mantiene móvil intacto y reduce altura en escritorio.
   ========================================================= */
@media (min-width: 992px) {
    .fc-content {
        padding-top: 12px;
        padding-bottom: 20px;
    }

    .fc-page-heading {
        margin-bottom: 12px;
    }

    .fc-stat-card {
        min-height: 100px;
        padding: 12px 16px;
        gap: 12px;
    }

    .fc-stat-icon {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        min-width: 48px;
        font-size: 1.35rem;
    }

    .fc-stat-content strong {
        font-size: 1.65rem;
    }

    .fc-mini-card {
        min-height: 78px;
        padding: 10px 14px;
    }

    .fc-mini-card span {
        min-height: 26px;
    }

    .fc-mini-icon {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        min-width: 40px;
    }

    .fc-maintenance-card {
        min-height: 78px;
        padding: 10px 16px;
    }

    .fc-maintenance-icon {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        min-width: 42px;
    }

    .fc-main .mb-4 {
        margin-bottom: .65rem !important;
    }
}

