:root {
    --adirsa-blue: #023371;
    --adirsa-navy: #031c38;
    --adirsa-navy-2: #022852;
    --adirsa-green: #90AF11;
    --adirsa-orange: #EC7636;
    --adirsa-gray: #848688;
    --adirsa-bg: #f5f7fb;
    --adirsa-card: #ffffff;
    --adirsa-border: #e2e8f0;
    --adirsa-border-soft: #edf2f7;
    --adirsa-text: #111827;
    --adirsa-muted: #667085;
    --adirsa-danger: #dc2626;
    --adirsa-warning: #f59e0b;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--adirsa-bg);
    color: var(--adirsa-text);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    overflow-x: hidden;
}

/* =========================================
   SIDEBAR
========================================= */

.sidebar {
    width: 270px;
    height: 100vh;
    position: fixed;
    inset: 0 auto 0 0;
    background: linear-gradient(
            180deg,
            #022852 0%,
            #031c38 100%
    );
    color: white;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    border-right: 1px solid rgba(255,255,255,.05);
}

/* =========================================
   BRAND
========================================= */

.sidebar-brand {
    height: 82px;
    padding: 18px 18px;
    display: flex;
    align-items: center;
    gap: 13px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
}

.sidebar-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.sidebar-brand strong {
    display: block;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .05em;
    line-height: 1;
    color: #ffffff;
}

.sidebar-brand span {
    display: block;
    margin-top: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #9fb3ca;
}

/* =========================================
   MENU
========================================= */

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 18px 14px 22px;
}

.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.14);
    border-radius: 999px;
}

/* =========================================
   MAIN LINKS
========================================= */

.sidebar-main-link,
.sidebar-group-title {
    min-height: 46px;
    padding: 11px 14px;
    border-radius: 14px;
    color: #edf4ff;
    font-size: 14px;
    font-weight: 720;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition:
            background .18s ease,
            color .18s ease,
            transform .18s ease;
}

.sidebar-main-link {
    gap: 12px;
    margin-bottom: 12px;
}

.sidebar-main-link:hover,
.sidebar-group-title:hover {
    background: rgba(255,255,255,.09);
    color: #ffffff;
}

.sidebar-main-link.active {
    background: #ffffff;
    color: #023371;
    box-shadow:
            0 12px 24px rgba(0,0,0,.18),
            inset 0 1px 0 rgba(255,255,255,.25);
}

.sidebar-main-icon {
    width: 22px;
    display: inline-flex;
    justify-content: center;
    font-size: 15px;
}

/* =========================================
   GROUPS
========================================= */

.sidebar-group {
    margin-top: 8px;
    margin-bottom: 14px;
}

.sidebar-group-title {
    cursor: pointer;
    list-style: none;
    justify-content: space-between;
    user-select: none;
}

.sidebar-group-title::-webkit-details-marker {
    display: none;
}

.sidebar-group-title::after {
    content: "⌄";
    color: #b8c9dd;
    font-size: 14px;
    transition: transform .18s ease;
}

.sidebar-group[open] .sidebar-group-title::after {
    transform: rotate(180deg);
}

/* =========================================
   SUBMENU
========================================= */

.sidebar-submenu {
    margin-top: 8px;
    margin-left: 20px;
    padding-left: 18px;
    border-left: 1px solid rgba(255,255,255,.18);

    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-sub-link {
    min-height: 36px;
    padding: 8px 13px;
    border-radius: 11px;

    color: #f3f7fd;
    text-decoration: none;

    font-size: 13px;
    font-weight: 650;

    display: flex;
    align-items: center;

    position: relative;

    transition:
            background .18s ease,
            color .18s ease,
            transform .18s ease;
}

/* DOT */

.sidebar-sub-link::before {
    content: "";

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #90AF11;

    position: absolute;
    left: -22px;

    opacity: .9;
}

/* HOVER */

.sidebar-sub-link:hover {
    background: rgba(255,255,255,.10);
    color: #ffffff;
    transform: translateX(3px);
}

/* ACTIVE */

.sidebar-sub-link.active {
    background: rgba(255,255,255,.14);
    color: #ffffff;
}

/* =========================================
   USER CARD
========================================= */

.sidebar-user {
    margin: 14px;
    padding: 15px;
    border-radius: 16px;

    background: rgba(255,255,255,.06);

    border: 1px solid rgba(255,255,255,.08);

    backdrop-filter: blur(8px);

    flex-shrink: 0;
}

.sidebar-user strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 750;
}

.sidebar-user span {
    display: block;
    margin-top: 6px;

    color: #b7f7c0;

    font-size: 12px;
    font-weight: 600;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .sidebar {
        width: 250px;
    }

}

@media (max-width: 760px) {

    .sidebar {
        transform: translateX(-100%);
    }

}

/* =========================
   LAYOUT
========================= */

.main-content {
    margin-left: 270px;
    min-height: 100vh;
}

.topbar {
    height: 72px;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid #e7edf5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 800;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--adirsa-border);
    background: #ffffff;
    border-radius: 12px;
    color: #1f2937;
    font-size: 18px;
    cursor: pointer;
}

.topbar-title {
    margin: 0;
    color: #101828;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.03em;
    font-family: "Manrope", "Inter", sans-serif;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #475467;
    font-weight: 600;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8f1ff;
    color: var(--adirsa-blue);
    display: grid;
    place-items: center;
    font-weight: 800;
}

/* =========================
   CONTENT
========================= */

.content {
    padding: 28px;
    max-width: 1380px;
    margin: 0 auto;
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.page-kicker {
    margin: 0 0 7px;
    color: var(--adirsa-blue);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .10em;
}

.page-title {
    margin: 0;
    color: #101828;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.15;
    font-family: "Manrope", "Inter", sans-serif;
}

.page-description {
    margin: 8px 0 0;
    color: var(--adirsa-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* =========================
   BUTTONS
========================= */

.btn-adirsa,
.btn-light-adirsa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
    font-weight: 750;
    transition: all .18s ease;
}

.btn-adirsa {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    border: none;
    background: var(--adirsa-blue);
    color: white;
    box-shadow:
            0 10px 20px rgba(2,51,113,.17),
            inset 0 1px 0 rgba(255,255,255,.16);
}

.btn-adirsa:hover {
    background: #012755;
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-light-adirsa {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 11px;
    border: 1px solid var(--adirsa-border);
    background: #ffffff;
    color: var(--adirsa-blue);
}

.btn-light-adirsa:hover {
    border-color: #b9c7d8;
    background: #f8fbff;
}

/* =========================
   KPI CARDS
========================= */

.project-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.summary-card {
    background: var(--adirsa-card);
    border: 1px solid var(--adirsa-border);
    border-radius: 18px;
    padding: 18px;
    min-height: 124px;
    box-shadow: 0 10px 24px rgba(16,24,40,.045);
    border-top: 4px solid var(--adirsa-blue);
}

.summary-card.green {
    border-top-color: var(--adirsa-green);
}

.summary-card.orange {
    border-top-color: var(--adirsa-orange);
}

.summary-card.red {
    border-top-color: var(--adirsa-danger);
}

.summary-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.summary-label {
    color: #475467;
    font-size: 13px;
    font-weight: 750;
}

.summary-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #eef4ff;
    color: var(--adirsa-blue);
    display: grid;
    place-items: center;
}

.summary-value {
    margin-top: 16px;
    color: #101828;
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.03em;
}

.summary-note {
    margin-top: 8px;
    color: var(--adirsa-muted);
    font-size: 12px;
    font-weight: 500;
}

/* =========================
   ALERTS
========================= */

.alert-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.alert-pill {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--adirsa-border);
    border-left: 5px solid var(--adirsa-orange);
    border-radius: 999px;
    padding: 0 15px;
    color: #344054;
    font-size: 13px;
    font-weight: 750;
    box-shadow: 0 6px 16px rgba(16,24,40,.035);
}

.alert-pill.red {
    border-left-color: var(--adirsa-danger);
}

.alert-pill.green {
    border-left-color: var(--adirsa-green);
}

.alert-pill.gray {
    border-left-color: var(--adirsa-gray);
}

/* =========================
   CARD + TABLE
========================= */

.dashboard-card {
    background: #ffffff;
    border: 1px solid var(--adirsa-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(16,24,40,.05);
}

.card-toolbar {
    padding: 20px 22px;
    border-bottom: 1px solid var(--adirsa-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.card-toolbar h2 {
    margin: 0;
    color: #101828;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.03em;
    font-family: "Manrope", "Inter", sans-serif;
}

.card-toolbar p {
    margin: 5px 0 0;
    color: var(--adirsa-muted);
    font-size: 14px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.adirsa-table {
    width: 100%;
    border-collapse: collapse;
}

.adirsa-table th {
    background: #f8fafc;
    color: #667085;
    padding: 14px 18px;
    text-align: left;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    border-bottom: 1px solid var(--adirsa-border);
}

.adirsa-table td {
    padding: 16px 18px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid var(--adirsa-border-soft);
    vertical-align: middle;
}

.adirsa-table tbody tr:hover {
    background: #fbfdff;
}

.adirsa-table tbody tr:last-child td {
    border-bottom: none;
}

.code-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 6px 9px;
    border-radius: 9px;
    background: #eef4ff;
    color: var(--adirsa-blue);
    font-size: 12px;
    font-weight: 800;
}

.project-name {
    color: var(--adirsa-blue);
    text-decoration: none;
    font-size: 15px;
    font-weight: 750;
}

.project-name:hover {
    color: var(--adirsa-orange);
}

.client-text {
    color: #475467;
    font-weight: 600;
}

.money {
    color: #101828;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.status,
.risk {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.status {
    background: #eaf7d7;
    color: #4f6f05;
}

.risk.ok {
    background: #ecfdf3;
    color: #027a48;
}

.risk.warning {
    background: #fff7ed;
    color: #c2410c;
}

.risk.danger {
    background: #fef2f2;
    color: #b91c1c;
}

/* =========================
   EMPTY STATE
========================= */

.empty-state {
    padding: 52px 20px;
    text-align: center;
}

.empty-state h3 {
    margin: 0 0 8px;
    color: #101828;
    font-size: 22px;
    font-weight: 800;
}

.empty-state p {
    color: var(--adirsa-muted);
    margin: 0 0 18px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
    .project-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }

    .content {
        padding: 18px;
    }

    .page-head,
    .card-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-summary-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        padding: 0 18px;
    }

    .topbar-user span {
        display: none;
    }
}

.project-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.project-tab {
    padding: 10px 15px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--adirsa-border);
    color: #475467;
    text-decoration: none;
    font-size: 13px;
    font-weight: 750;
}

.project-tab:hover {
    color: var(--adirsa-blue);
    background: #f8fbff;
}

.project-tab.active {
    background: var(--adirsa-blue);
    color: #ffffff;
    border-color: var(--adirsa-blue);
}

/* =========================================
   TOPBAR / HEADER
========================================= */

.topbar {
    height: 74px;
    background: rgba(255,255,255,.90);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid #e7edf5;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 28px;

    position: sticky;
    top: 0;
    z-index: 800;
}

.topbar-left {
    display: flex;
    align-items: center;
}

.topbar-kicker {
    margin: 0 0 3px;
    color: var(--adirsa-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.topbar-title {
    margin: 0;
    color: #101828;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.03em;
    font-family: "Manrope", "Inter", sans-serif;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;

    color: #475467;

    font-size: 14px;
    font-weight: 650;
}

.avatar {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: #e8f1ff;
    color: var(--adirsa-blue);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    font-weight: 800;
}

/* =========================================
   DROPDOWN
========================================= */

.alerts-dropdown {
    width: 340px;

    position: absolute;

    top: 56px;
    right: 0;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 18px;

    box-shadow:
            0 18px 45px rgba(15,23,42,.12);

    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);

    transition: all .18s ease;

    z-index: 1000;
}

.alerts-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.alerts-dropdown-header {
    padding: 16px 18px;

    border-bottom: 1px solid #edf2f7;

    font-size: 15px;
    font-weight: 800;

    color: #111827;
}

/* =========================================
   ALERT ITEM
========================================= */

.alert-item {
    display: flex;
    gap: 12px;

    padding: 15px 18px;

    border-bottom: 1px solid #f1f5f9;

    transition: background .18s ease;
}

.alert-item:hover {
    background: #f8fbff;
}

.alert-item:last-child {
    border-bottom: none;
}

.alert-item-icon {
    width: 40px;
    height: 40px;

    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    font-size: 15px;
}

.alert-item-icon.danger {
    background: #fef2f2;
    color: #b91c1c;
}

.alert-item-icon.warning {
    background: #fff7ed;
    color: #c2410c;
}

.alert-item-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.alert-item-content strong {
    color: #111827;
    font-size: 14px;
    font-weight: 750;
}

.alert-item-content span {
    color: #667085;
    font-size: 13px;
    line-height: 1.45;
}

/* =========================================
   EMPTY
========================================= */

.alert-empty {
    padding: 18px;

    text-align: center;

    color: #027a48;

    font-size: 14px;
    font-weight: 700;
}

/* =========================================
   USER
========================================= */

.topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;

    color: #475467;

    font-weight: 650;
}

.avatar {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: #e8f1ff;
    color: var(--adirsa-blue);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    font-weight: 800;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .topbar-search {
        width: 260px;
    }

}

@media (max-width: 760px) {

    .topbar-search {
        display: none;
    }

    .topbar {
        padding: 0 18px;
    }

}

/* =========================================
   FORMULARIOS ADIRSA
========================================= */

.form-section {
    margin-bottom: 22px;
}

.form-grid {
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.form-grid.three-columns {
    grid-template-columns: repeat(3, 1fr);
}

.form-grid.two-columns {
    grid-template-columns: repeat(2, 1fr);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 9px;
    color: #344054;
    font-size: 13px;
    font-weight: 750;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    background: #ffffff;
    padding: 0 15px;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: all .18s ease;
}

.form-group textarea {
    min-height: 118px;
    padding-top: 14px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--adirsa-blue);
    box-shadow: 0 0 0 4px rgba(2,51,113,.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #98a2b3;
}

.money-input {
    height: 48px;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: white;
    transition: all .18s ease;
}

.money-input:focus-within {
    border-color: var(--adirsa-blue);
    box-shadow: 0 0 0 4px rgba(2,51,113,.08);
}

.money-input span {
    width: 58px;
    height: 100%;
    background: #f8fafc;
    border-right: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475467;
    font-size: 13px;
    font-weight: 800;
}

.money-input input {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 26px;
    margin-bottom: 20px;
}

button.btn-adirsa {
    cursor: pointer;
}

@media (max-width: 1000px) {
    .form-grid,
    .form-grid.three-columns,
    .form-grid.two-columns {
        grid-template-columns: 1fr;
    }
}

.clickable-row {
    cursor: pointer;
}

.clickable-row:hover {
    filter: brightness(0.98);
}

.input-error {
    margin-top: 8px;
    color: #dc2626;
    font-size: 13px;
    font-weight: 650;
}

/* =========================================
   DETALLE PROYECTO
========================================= */

.project-detail-hero {
    background: #ffffff;
    border: 1px solid var(--adirsa-border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 12px 28px rgba(16,24,40,.05);

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.project-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    color: #667085;
    font-size: 14px;
}

.project-meta strong {
    color: #101828;
}

.project-detail-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-detail-actions form {
    margin: 0;
}

.btn-danger-adirsa {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 11px;
    border: 1px solid #fecaca;
    background: #fff;
    color: #b91c1c;
    font-weight: 750;
    cursor: pointer;
}

.btn-danger-adirsa:hover {
    background: #fef2f2;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 20px;
}

.chart-card {
    min-height: 360px;
}

.chart-container {
    padding: 22px;
    height: 280px;
}

.detail-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-tab {
    border: 1px solid var(--adirsa-border);
    background: #ffffff;
    color: #475467;
    border-radius: 999px;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition: all .18s ease;
}

.detail-tab:hover {
    background: #f8fbff;
    color: var(--adirsa-blue);
}

.detail-tab.active {
    background: var(--adirsa-blue);
    color: #ffffff;
    border-color: var(--adirsa-blue);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.financial-list {
    padding: 22px;
}

.financial-row {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid #edf2f7;
    color: #475467;
    font-size: 14px;
}

.financial-row strong {
    color: #101828;
    font-weight: 800;
}

.financial-row.title {
    min-height: 38px;
    margin-top: 8px;
    color: var(--adirsa-blue);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    border-bottom: none;
}

.financial-row.total {
    background: #f8fafc;
    margin: 8px -10px 0;
    padding: 0 10px;
    border-radius: 12px;
    border-bottom: none;
}

.financial-row.total.warning {
    background: #fff7ed;
}

.toolbar-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-adirsa {
    padding: 18px 22px;
    border-top: 1px solid var(--adirsa-border);
    display: flex;
    align-items: center;
    gap: 14px;
    color: #667085;
    font-weight: 650;
}

@media (max-width: 1000px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .project-detail-hero {
        flex-direction: column;
    }

    .project-detail-actions {
        flex-wrap: wrap;
    }
}

/* =========================================
   ITEMS POR ETAPA / SUBETAPA
========================================= */

.item-row-stage td {
    background: #023371 !important;
    color: #ffffff !important;
    font-weight: 800;
    text-transform: uppercase;
}

.item-row-stage .code-badge {
    background: rgba(255,255,255,.16);
    color: #ffffff;
}

.item-row-stage .project-name {
    color: #ffffff;
}

.item-row-substage td {
    background: #e5e7eb !important;
    color: #101828 !important;
    font-weight: 800;
}

.item-row-substage .code-badge {
    background: #dbeafe;
    color: #023371;
}

.item-row-substage .project-name {
    color: #101828;
    font-weight: 800;
}

.item-row-normal td {
    background: #ffffff;
}

/* =========================================
   AYUDA VISUAL ÍTEMS
========================================= */

.item-help-card {
    margin-bottom: 22px;
}

.item-structure-example {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.example-stage,
.example-substage,
.example-item {
    min-height: 42px;
    display: flex;
    align-items: center;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 750;
}

.example-stage {
    background: #023371;
    color: #ffffff;
    padding: 0 16px;
    text-transform: uppercase;
}

.example-substage {
    background: #e5e7eb;
    color: #101828;
    padding: 0 16px 0 32px;
}

.example-item {
    background: #f8fafc;
    color: #344054;
    border: 1px solid #e2e8f0;
    padding: 0 16px 0 48px;
}

.descripcion-cell {
    white-space: normal;
    min-width: 280px;
    max-width: 520px;
    line-height: 1.4;
}

/* =========================================
   MOVIMIENTOS AGRUPADOS POR PROYECTO
========================================= */

.movements-project-list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.movement-project-card {
    border: 1px solid var(--adirsa-border);
    border-radius: 18px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(16,24,40,.035);
}

.movement-project-header {
    padding: 18px 20px;
    background: #f8fafc;
    border-bottom: 1px solid var(--adirsa-border);

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.movement-project-header h3 {
    margin: 0;
    color: #101828;
    font-size: 17px;
    font-weight: 800;
    font-family: "Manrope", "Inter", sans-serif;
}

.movement-project-header p {
    margin: 5px 0 0;
    color: #667085;
    font-size: 13px;
    font-weight: 600;
}

.movement-filter-card {
    margin-bottom: 18px;
    padding: 18px;
}

.movement-filter-form {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.movement-filter-form .form-group {
    min-width: 320px;
    margin: 0;
}

/* =========================================
   CLASIFICAR MOVIMIENTO
========================================= */

.movement-detail-box {
    padding: 22px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 16px;
}

.movement-detail-box div {
    background: #f8fafc;
    border: 1px solid var(--adirsa-border);
    border-radius: 14px;
    padding: 14px;
}

.movement-detail-box span {
    display: block;
    color: #667085;
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 6px;
}

.movement-detail-box strong {
    color: #101828;
    font-size: 14px;
    font-weight: 800;
}

.conditional-field {
    display: none;
}

.classification-help-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.classification-help-card {
    background: #ffffff;
    border: 1px solid var(--adirsa-border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(16,24,40,.035);
}

.classification-help-card strong {
    display: block;
    color: var(--adirsa-blue);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 6px;
}

.classification-help-card span {
    color: #667085;
    font-size: 13px;
    line-height: 1.45;
}

.small-summary {
    font-size: 18px !important;
    line-height: 1.2 !important;
}

@media (max-width: 1000px) {
    .movement-detail-box,
    .classification-help-grid {
        grid-template-columns: 1fr;
    }
}

.money-input.is-readonly {
    background: #f8fafc;
}

.money-input.is-readonly input {
    color: #667085;
    background: #f8fafc;
    cursor: not-allowed;
}

/* =========================================
   BUSQUEDA POR SECCION
========================================= */

.section-tools {
    padding: 18px 22px 0;
    display: flex;
    justify-content: flex-end;
}

.section-search {
    width: 380px;
    max-width: 100%;
    min-height: 42px;
    border: 1px solid var(--adirsa-border);
    border-radius: 14px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    background: #ffffff;
}

.section-search:focus {
    border-color: var(--adirsa-blue);
    box-shadow: 0 0 0 4px rgba(2, 51, 113, .08);
}

/* =========================================
   TABLAS GRANDES
========================================= */

.large-table {
    max-height: 520px;
    overflow: auto;
}

.large-table thead th {
    position: sticky;
    top: 0;
    z-index: 5;
}

.progress-container {
    width: 100%;
    height: 9px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-bar-custom {
    height: 100%;
    background: linear-gradient(90deg, #90AF11, #16a34a);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.table-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:center;
}

.table-actions form{
    margin:0;
}

.table-actions .btn-light-adirsa,
.table-actions .btn-danger-adirsa{
    min-width:140px;
    justify-content:center;
}

/* ================================
   ITEMS TREE / TABLA JERÁRQUICA
================================ */

.items-tree-panel {
    background: transparent;
}

.items-tree-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 24px;
}

.items-tree-header h2 {
    font-size: 28px;
    font-weight: 900;
    color: #07152f;
    margin: 0 0 6px;
}

.items-tree-header p {
    color: #52627a;
    margin: 0;
    font-size: 16px;
}

.items-tree-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.items-tree-wrap {
    background: #ffffff;
    border: 1px solid #dce5f2;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(15, 35, 65, 0.08);
}

.items-tree-scroll {
    overflow: auto;
    width: 100%;
    max-height: 70vh;
}

.items-tree-grid-head {
    position: sticky;
    top: 0;
    z-index: 20;
}

.items-tree-scroll::-webkit-scrollbar {
    height: 12px;
    width: 12px;
}

.items-tree-scroll::-webkit-scrollbar-thumb {
    background: #9fb0c7;
    border-radius: 999px;
}

.items-tree-scroll::-webkit-scrollbar-track {
    background: #eef3f8;
}

.items-tree-grid {
    display: grid;
    grid-template-columns:
        360px
        110px
        80px
        100px
        145px
        145px
        150px
        130px
        140px
        155px
        260px;
    align-items: center;
    gap: 14px;
    width: max-content;
    min-width: 100%;
}

.items-tree-grid-head,
.items-tree-row {
    box-sizing: border-box;
}

.items-tree-row {
    width: max-content;
    min-width: 100%;
}

.items-tree-grid-head {
    width: max-content;
    min-width: 100%;
}

.items-tree-grid-head {
    background: #f3f6fb;
    color: #5a6a82;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 15px 24px;
    border-bottom: 1px solid #dce5f2;
}

.items-tree-row {
    padding: 18px 24px;
    border-bottom: 1px solid #e8eef7;
    transition: background .2s ease, filter .2s ease;
}

.items-tree-row:last-child {
    border-bottom: none;
}

.items-tree-row:hover {
    background: #f8fbff;
}

.clickable-row {
    cursor: pointer;
}

.etapa-row {
    background: #0d4f8f;
    color: #ffffff;
}

.etapa-row:hover {
    background: #0a447c;
}

.subetapa-row {
    background: #d8dde5;
    color: #07152f;
    font-weight: 800;
}

.subetapa-row:hover {
    background: #cfd6e0;
}

.item-row {
    background: #ffffff;
}

.item-tree-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.item-tree-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.item-tree-code-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.item-tree-description {
    color: #07152f;
    text-decoration: none;
    font-weight: 900;
    line-height: 1.25;
    word-break: break-word;
}

.item-tree-description:hover {
    color: #003f88;
}

.etapa-row .item-tree-description,
.etapa-row .money,
.etapa-row .strong,
.etapa-row .status-pill,
.etapa-row .item-type-label {
    color: #ffffff;
}

.item-type-label {
    font-size: 11px;
    font-weight: 900;
    opacity: .85;
}

.etapa-row .code-badge {
    background: rgba(255, 255, 255, .17);
    color: #ffffff;
}

.subetapa-row .code-badge {
    background: #edf3ff;
    color: #003f88;
}

.tree-toggle {
    width: 32px;
    height: 32px;
    border: 1px solid #dce5f2;
    border-radius: 10px;
    background: #ffffff;
    color: #003f88;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.tree-toggle:hover {
    background: #edf4ff;
}

.etapa-row .tree-toggle {
    border-color: rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .14);
    color: #ffffff;
}

.tree-toggle.open {
    transform: rotate(90deg);
}

.tree-spacer {
    width: 32px;
    display: inline-block;
    flex: 0 0 auto;
}

.items-tree-row[data-level="1"] .item-tree-main {
    padding-left: 26px;
}

.items-tree-row[data-level="2"] .item-tree-main {
    padding-left: 52px;
}

.items-tree-row[data-level="3"] .item-tree-main {
    padding-left: 78px;
}

.items-tree-row[data-level="4"] .item-tree-main {
    padding-left: 104px;
}

.items-tree-row .money {
    white-space: nowrap;
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 850;
}

.items-tree-grid-head > div:nth-child(n+5):nth-child(-n+10) {
    text-align: right;
}

.compact-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.compact-actions form {
    margin: 0;
}

.compact-actions .btn-light-adirsa,
.compact-actions .btn-danger-adirsa {
    min-width: 76px;
    padding: 9px 13px;
    font-size: 13px;
    justify-content: center;
    white-space: nowrap;
}

.items-tree-row.is-hidden {
    display: none;
}

@media (max-width: 1100px) {
    .items-tree-grid-head {
        display: none;
    }

    .items-tree-grid {
        display: block;
        min-width: 0;
    }

    .items-tree-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 18px;
    }

    .item-tree-main {
        padding-left: 0 !important;
    }

    .compact-actions {
        justify-content: flex-start;
    }

    .items-tree-row .money {
        text-align: left;
    }
}

.import-rules-box {
    padding: 24px 28px;
    display: grid;
    gap: 14px;
}

.import-rule-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #e1e8f3;
    border-radius: 16px;
    background: #f8fbff;
}

.import-rule-number {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #003f88;
    color: #ffffff;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 13px;
}

.import-rule-item p {
    margin: 0;
    color: #26364e;
    font-size: 15px;
    line-height: 1.45;
}

.no-click-row {
    cursor: default;
}

.static-description {
    cursor: default;
}

.subetapa-row .static-description:hover {
    color: inherit;
}

/* =========================================
   DASHBOARD DE ETAPA
========================================= */

.stage-head-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.stage-kpi-grid {
    margin-bottom: 24px;
}

.summary-card.violet {
    background: linear-gradient(135deg, #6f42c1 0%, #8757dd 100%);
    color: #ffffff;
}

.summary-card.violet .summary-label,
.summary-card.violet .summary-note,
.summary-card.violet .summary-value {
    color: #ffffff;
}

.summary-card.violet .summary-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.stage-dashboard-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.stage-visual-card {
    min-height: 100%;
}

.stage-meters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 4px 0 6px;
}

.progress-ring-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    background: #f8fbff;
    border: 1px solid #e3ebf5;
    border-radius: 20px;
    padding: 20px 16px;
}

.progress-ring {
    --value: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(#0b5cab calc(var(--value) * 1%), #e7eef7 0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.progress-ring.green-ring {
    background: conic-gradient(#19a974 calc(var(--value) * 1%), #e7eef7 0);
}

.progress-ring::after {
    content: "";
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: #ffffff;
    position: absolute;
}

.progress-ring-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.progress-ring-inner strong {
    font-size: 28px;
    line-height: 1;
    color: #07152f;
    font-weight: 900;
}

.progress-ring-inner span {
    font-size: 12px;
    color: #5b6b83;
    font-weight: 700;
}

.progress-ring-meta {
    text-align: center;
}

.progress-ring-meta h4 {
    margin: 0 0 6px;
    font-size: 16px;
    color: #07152f;
    font-weight: 800;
}

.progress-ring-meta p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #5a6a82;
}

.category-breakdown {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 8px;
}

.category-line {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-line-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    font-size: 14px;
    color: #26364e;
}

.category-line-top span {
    font-weight: 700;
}

.category-line-top strong {
    color: #07152f;
    font-weight: 900;
    white-space: nowrap;
}

.category-bar {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: #e8eef6;
    overflow: hidden;
}

.category-bar-fill {
    height: 100%;
    border-radius: 999px;
    width: 100%;
}

.materials-fill {
    background: linear-gradient(90deg, #2563eb 0%, #5b8cff 100%);
}

.labor-fill {
    background: linear-gradient(90deg, #f59e0b 0%, #f7b955 100%);
}

.transport-fill {
    background: linear-gradient(90deg, #06b6d4 0%, #51d3e8 100%);
}

.epp-fill {
    background: linear-gradient(90deg, #16a34a 0%, #4fd27a 100%);
}

.sub-fill {
    background: linear-gradient(90deg, #8b5cf6 0%, #ab84ff 100%);
}

.executive-insights {
    display: grid;
    gap: 14px;
}

.insight-box {
    background: #f8fbff;
    border: 1px solid #e3ebf5;
    border-radius: 18px;
    padding: 16px 18px;
}

.insight-box h4 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #07152f;
    font-weight: 800;
}

.insight-box p {
    margin: 0;
    color: #52627a;
    line-height: 1.5;
    font-size: 14px;
}

.insight-box strong {
    color: #07152f;
}

.stage-child-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.child-tree-mark {
    color: #5a6a82;
    font-weight: 900;
}

.status-pill.warning {
    background: #fff4db;
    color: #b26a00;
}

.status-pill.danger {
    background: #ffe1e1;
    color: #b3261e;
}

.status-pill.success {
    background: #e4f7eb;
    color: #137a43;
}

@media (max-width: 1300px) {
    .stage-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .stage-meters-grid {
        grid-template-columns: 1fr;
    }

    .stage-head-actions {
        width: 100%;
    }
}

/* ===============================
   AVANCE FÍSICO DEL ÍTEM
================================ */

.avance-progress-card {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid #e2eaf5;
}

.avance-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.avance-progress-header span {
    font-size: 14px;
    font-weight: 800;
    color: #26364e;
}

.avance-progress-header strong {
    font-size: 18px;
    font-weight: 900;
    color: #07152f;
}

.avance-progress-track {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    background: #e7edf6;
    overflow: hidden;
}

.avance-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #90AF11 0%, #19a974 100%);
    transition: width .3s ease;
}

.avance-progress-card p {
    margin: 10px 0 0;
    color: #5a6a82;
    font-size: 14px;
}

/* =====================================
   STAGE TREE / DASHBOARD DE ETAPA
===================================== */

.stage-tree-wrap {
    margin: 0 24px 24px;
    background: #ffffff;
    border: 1px solid #dce5f2;
    border-radius: 22px;
    overflow: hidden;
}

.stage-tree-scroll {
    overflow: auto;
    width: 100%;
    max-height: 58vh;
}

.stage-tree-grid {
    display: grid;
    grid-template-columns:
        380px
        120px
        160px
        160px
        160px
        150px
        240px;
    align-items: center;
    gap: 16px;
    width: max-content;
    min-width: 100%;
}

.stage-tree-head {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f3f6fb;
    color: #5a6a82;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 16px 24px;
    border-bottom: 1px solid #dce5f2;
}

.stage-tree-row {
    padding: 18px 24px;
    border-bottom: 1px solid #e8eef7;
}

.stage-tree-row:last-child {
    border-bottom: none;
}

.stage-sub-row {
    background: #d8dde5;
    color: #07152f;
    font-weight: 800;
}

.stage-item-row {
    background: #ffffff;
}

.stage-tree-row:hover {
    background: #f8fbff;
}

.stage-sub-row:hover {
    background: #cfd6e0;
}

.stage-tree-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.stage-tree-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.stage-tree-code-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stage-tree-description {
    color: #07152f;
    font-weight: 900;
    text-decoration: none;
    line-height: 1.25;
    word-break: break-word;
}

.stage-tree-description:hover {
    color: #003f88;
}

.stage-tree-toggle {
    width: 32px;
    height: 32px;
    border: 1px solid #dce5f2;
    border-radius: 10px;
    background: #ffffff;
    color: #003f88;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.stage-tree-toggle.open {
    transform: rotate(90deg);
}

.stage-tree-spacer {
    width: 32px;
    display: inline-block;
    flex: 0 0 auto;
}

.stage-tree-row[data-stage-level="1"] .stage-tree-main {
    padding-left: 26px;
}

.stage-tree-row[data-stage-level="2"] .stage-tree-main {
    padding-left: 52px;
}

.stage-tree-row[data-stage-level="3"] .stage-tree-main {
    padding-left: 78px;
}

.stage-tree-row .money {
    white-space: nowrap;
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 850;
}

.stage-tree-head > div:nth-child(n+3):nth-child(-n+5) {
    text-align: right;
}

.stage-tree-head > div:nth-child(3),
.stage-tree-head > div:nth-child(4),
.stage-tree-head > div:nth-child(5) {
    text-align: right;
}

.stage-tree-row.stage-hidden {
    display: none;
}

.stage-tree-scroll::-webkit-scrollbar {
    height: 12px;
    width: 12px;
}

.stage-tree-scroll::-webkit-scrollbar-thumb {
    background: #9fb0c7;
    border-radius: 999px;
}

.stage-tree-scroll::-webkit-scrollbar-track {
    background: #eef3f8;
}

.dashboard-card .stage-tree-wrap {
    margin-top: 18px;
}

/* ===============================
   CLASIFICACIÓN DE MOVIMIENTOS
================================ */

.movement-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.movement-info-item {
    padding: 16px 18px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid #e2eaf5;
}

.movement-info-item span {
    display: block;
    color: #5a6a82;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

.movement-info-item strong {
    color: #07152f;
    font-size: 15px;
    font-weight: 900;
}

.alert-error {
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: 14px;
    background: #ffe1e1;
    color: #b3261e;
    font-weight: 800;
    border: 1px solid #ffc9c9;
}

.status-pill.neutral {
    background: #edf2f7;
    color: #52627a;
}

@media (max-width: 1000px) {
    .movement-info-grid {
        grid-template-columns: 1fr;
    }
}

.planilla-admin-field,
.planilla-directa-field,
.item-destino-field,
.cantidad-field,
.transporte-extra-field,
.epp-extra-field,
.subcontrato-extra-field {
    display: none;
}

.movement-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.movement-info-item {
    padding: 16px 18px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid #e2eaf5;
}

.movement-info-item span {
    display: block;
    color: #5a6a82;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

.movement-info-item strong {
    color: #07152f;
    font-size: 15px;
    font-weight: 900;
}

.alert-error {
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: 14px;
    background: #ffe1e1;
    color: #b3261e;
    font-weight: 800;
    border: 1px solid #ffc9c9;
}

.status-pill.neutral {
    background: #edf2f7;
    color: #52627a;
}

.gastos-proyecto-field {
    display: none;
}

@media (max-width: 1000px) {
    .movement-info-grid {
        grid-template-columns: 1fr;
    }
}

.material-extra-field,
.planilla-admin-field,
.planilla-directa-field,
.item-destino-field,
.cantidad-field,
.transporte-extra-field,
.epp-extra-field,
.subcontrato-extra-field,
.gastos-proyecto-field {
    display: none;
}

.category-summary-grid {
    margin: 18px 22px 22px;
}

.tab-panel > .category-summary-grid:first-child {
    margin-top: 0;
}

/* ===============================
   ITEM RESUMEN EJECUTIVO
================================ */

.item-executive-hero {
    background: linear-gradient(135deg, #07152f 0%, #0b2c5f 55%, #123f81 100%);
    color: #ffffff;
    border: none;
    overflow: hidden;
    position: relative;
}

.item-executive-hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    right: -70px;
    top: -80px;
}

.executive-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

.executive-hero-content h2 {
    margin: 6px 0 8px;
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
}

.executive-hero-content p {
    margin: 0;
    color: #dce8ff;
    max-width: 780px;
}

.executive-status-box {
    min-width: 220px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    text-align: center;
}

.executive-status-box span {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: #dce8ff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.item-summary-main {
    margin: 20px 0;
}

.item-alert-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.item-alert {
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid transparent;
}

.item-alert strong {
    display: block;
    font-size: 15px;
    margin-bottom: 6px;
}

.item-alert p {
    margin: 0;
    color: #52627a;
    line-height: 1.5;
}

.item-alert.success {
    background: #e9f9f0;
    border-color: #bceccd;
    color: #11683b;
}

.item-alert.warning {
    background: #fff6df;
    border-color: #ffe09a;
    color: #9a6500;
}

.item-alert.danger {
    background: #ffe8e8;
    border-color: #ffc3c3;
    color: #b3261e;
}

.item-alert.neutral {
    background: #edf2f7;
    border-color: #d8e0ea;
    color: #52627a;
}

.category-bars {
    display: grid;
    gap: 18px;
    padding: 4px 0;
}

.category-bar-row {
    display: grid;
    gap: 8px;
}

.category-bar-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    font-size: 14px;
}

.category-bar-head strong {
    color: #07152f;
}

.category-bar-head span {
    color: #5a6a82;
    font-weight: 800;
}

.progress-track {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    background: #edf2f7;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
    max-width: 100%;
}

.progress-fill.blue {
    background: linear-gradient(90deg, #1d4ed8, #60a5fa);
}

.progress-fill.orange {
    background: linear-gradient(90deg, #f97316, #fdba74);
}

.progress-fill.green {
    background: linear-gradient(90deg, #16a34a, #86efac);
}

.progress-fill.purple {
    background: linear-gradient(90deg, #7c3aed, #c4b5fd);
}

.progress-fill.red {
    background: linear-gradient(90deg, #dc2626, #fca5a5);
}

.summary-card.danger {
    background: #fff1f1;
    border-color: #ffc3c3;
}

.summary-card.danger .summary-value {
    color: #b3261e;
}

@media (max-width: 900px) {
    .executive-hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .executive-status-box {
        width: 100%;
    }

    .item-alert-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== HERO / RESUMEN EJECUTIVO DEL ÍTEM ===== */
.item-hero {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 24px;
    padding: 26px 28px;
    border-radius: 24px;
    background: linear-gradient(135deg, #0d3b78 0%, #123f7f 100%);
    color: #fff;
    margin-bottom: 24px;
    overflow: hidden;
}

.item-hero__content {
    flex: 1;
    min-width: 0;
}

.item-hero__eyebrow {
    display: block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0.95;
}

.item-hero__title {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
}

.item-hero__subtitle {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
}

.item-hero__status {
    min-width: 210px;
    max-width: 250px;
    padding: 22px 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
    backdrop-filter: blur(4px);
}

.item-hero__status-label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

.item-hero__status-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    background: rgba(255, 255, 255, 0.92);
    color: #b42318;
}

/* ===== CONSUMO POR CATEGORÍA ===== */
.category-consumption-card {
    background: #ffffff;
    border: 1px solid #d9e2ef;
    border-radius: 22px;
    overflow: hidden;
    margin-bottom: 24px;
}

.category-consumption-card__header {
    padding: 24px 28px 18px 28px;
    border-bottom: 1px solid #e3eaf4;
}

.category-consumption-card__title {
    margin: 0 0 6px 0;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
}

.category-consumption-card__subtitle {
    margin: 0;
    font-size: 15px;
    color: #64748b;
    line-height: 1.45;
}

.category-consumption-card__body {
    padding: 20px 28px 24px 28px;
}

.category-row {
    margin-bottom: 22px;
}

.category-row:last-child {
    margin-bottom: 0;
}

.category-row__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.category-row__name {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.category-row__value {
    font-size: 15px;
    font-weight: 800;
    color: #51627c;
    white-space: nowrap;
}

.category-progress {
    width: 100%;
    height: 18px;
    border-radius: 999px;
    background: #e8eef6;
    overflow: hidden;
}

.category-progress__fill {
    height: 100%;
    border-radius: 999px;
}

.category-progress__fill.blue {
    background: linear-gradient(90deg, #2957d1 0%, #5b9cff 100%);
}

.category-progress__fill.orange {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.category-progress__fill.green {
    background: linear-gradient(90deg, #22c55e 0%, #86efac 100%);
}

.category-progress__fill.purple {
    background: linear-gradient(90deg, #7c3aed 0%, #b197fc 100%);
}

.category-progress__fill.red {
    background: linear-gradient(90deg, #ef4444 0%, #fca5a5 100%);
}

/* ===============================
   LOGIN ADIRSA
================================ */

.login-body {
    min-height: 100vh;
    margin: 0;
    background:
            radial-gradient(circle at top left, rgba(144, 175, 17, 0.18), transparent 32%),
            radial-gradient(circle at bottom right, rgba(236, 118, 54, 0.16), transparent 34%),
            linear-gradient(135deg, #f8fbff 0%, #edf3f9 100%);
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px;
}

.login-shell {
    width: min(1120px, 100%);
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 480px;
    background: #ffffff;
    border-radius: 34px;
    overflow: hidden;
    border: 1px solid #dbe3ef;
    box-shadow: 0 28px 70px rgba(2, 51, 113, 0.18);
}

/* PANEL IZQUIERDO */
.login-visual-panel {
    position: relative;
    background:
            linear-gradient(135deg, rgba(2, 51, 113, 0.92), rgba(13, 59, 120, 0.96)),
            url("/img/login-construccion.jpg");
    background-size: cover;
    background-position: center;
    color: #ffffff;
    overflow: hidden;
}

.login-visual-panel::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    background: rgba(144, 175, 17, 0.20);
    right: -160px;
    top: -130px;
}

.login-visual-panel::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 999px;
    background: rgba(236, 118, 54, 0.20);
    left: -140px;
    bottom: -130px;
}

.login-visual-overlay {
    position: absolute;
    inset: 0;
    background:
            linear-gradient(135deg, rgba(2, 51, 113, 0.94), rgba(2, 51, 113, 0.76)),
            repeating-linear-gradient(
                    135deg,
                    rgba(255,255,255,0.04) 0,
                    rgba(255,255,255,0.04) 1px,
                    transparent 1px,
                    transparent 18px
            );
}

.login-visual-content {
    position: relative;
    z-index: 2;
    min-height: 100%;
    padding: 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-visual-logo-circle {
    width: 138px;
    height: 138px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    box-shadow: 0 22px 46px rgba(0,0,0,.22);
}

.login-visual-logo-circle img {
    max-width: 112px;
    max-height: 92px;
    object-fit: contain;
}

.login-system-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(144, 175, 17, 0.22);
    color: #f4ffd7;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 18px;
}

.login-visual-content h1 {
    margin: 0;
    max-width: 560px;
    font-size: 42px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #ffffff;
}

.login-visual-content p {
    max-width: 520px;
    margin: 18px 0 0;
    color: #dbeafe;
    font-size: 17px;
    line-height: 1.65;
}

.login-visual-stats {
    margin-top: 42px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.login-visual-stats div {
    min-width: 150px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.14);
}

.login-visual-stats strong {
    display: block;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
}

.login-visual-stats span {
    display: block;
    margin-top: 4px;
    color: #dbeafe;
    font-size: 13px;
    font-weight: 700;
}

/* CARD DERECHA */
.login-card {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
            radial-gradient(circle at top right, rgba(2, 51, 113, 0.06), transparent 34%),
            #ffffff;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 44px;
}

.login-logo-box {
    width: 88px;
    height: 70px;
    border-radius: 22px;
    background: #f8fbff;
    border: 1px solid #dbe3ef;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-logo-img {
    width: 76px;
    height: auto;
    display: block;
}

.login-logo-box span {
    display: none;
}

.login-logo-box.fallback-logo {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: #023371;
}

.login-logo-box.fallback-logo span {
    display: block;
    color: #ffffff;
    font-size: 26px;
    font-weight: 900;
}

.login-brand h1 {
    margin: 0;
    color: #023371;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.login-brand p {
    margin: 2px 0 0;
    color: #848688;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.login-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: #90AF11;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.login-header h2 {
    margin: 0;
    color: #07152f;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.login-header p {
    margin: 10px 0 28px;
    color: #64748b;
    font-size: 16px;
    line-height: 1.55;
}

.login-form {
    display: grid;
    gap: 18px;
}

.login-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    border-radius: 18px;
    border: 1px solid #dbe3ef;
    background: #f8fbff;
    padding: 0 16px;
    transition: .18s ease;
}

.login-input-wrap:focus-within {
    border-color: #023371;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(2, 51, 113, 0.08);
}

.login-input-wrap span {
    font-size: 17px;
    opacity: .8;
}

.login-input-wrap input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
}

.login-input-wrap input::placeholder {
    color: #94a3b8;
    font-weight: 600;
}

.login-button {
    margin-top: 6px;
    min-height: 58px;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(2, 51, 113, 0.20);
}

.login-footer-note {
    margin-top: 28px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f8fbff;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-footer-note span {
    color: #90AF11;
}

.alert-error,
.alert-success {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 14px;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

@media (max-width: 1050px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-visual-panel {
        display: none;
    }

    .login-card {
        min-height: 640px;
    }
}

@media (max-width: 620px) {
    .login-page {
        padding: 18px;
    }

    .login-card {
        padding: 30px 22px;
    }

    .login-brand {
        align-items: flex-start;
    }

    .login-header h2 {
        font-size: 28px;
    }
}

.alert-success {
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: 14px;
    background: #e9f9f0;
    color: #11683b;
    font-weight: 800;
    border: 1px solid #bceccd;
}

.planilla-hours-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

@media (max-width: 1000px) {
    .planilla-hours-grid {
        grid-template-columns: 1fr;
    }
}

.inline-assignment-form {
    display: grid;
    gap: 8px;
    min-width: 280px;
}

.inline-assignment-form select,
.inline-assignment-form input {
    width: 100%;
}

.mt-8 {
    margin-top: 8px;
}

.inline-assignment-form {
    width: 100%;
}

.inline-assignment-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.2fr) minmax(180px, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.inline-assignment-grid select,
.inline-assignment-grid input {
    width: 100%;
}

@media (max-width: 900px) {
    .inline-assignment-grid {
        grid-template-columns: 1fr;
    }
}

.inline-assignment-actions {
    display: grid;
    gap: 10px;
}

.inline-assignment-actions .btn-danger-adirsa {
    width: fit-content;
}

.received-transfer-action-card {
    min-width: 380px;
    display: grid;
    gap: 10px;
}

.received-transfer-form {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) minmax(150px, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.received-transfer-form select,
.received-transfer-form input {
    width: 100%;
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid #d7e1ef;
    padding: 0 12px;
    font-size: 14px;
    background: #ffffff;
}

.received-transfer-form button {
    min-height: 44px;
    white-space: nowrap;
}

.received-transfer-cancel-form {
    display: flex;
    justify-content: flex-start;
}

.received-transfer-cancel-form button {
    min-height: 42px;
}

@media (max-width: 1000px) {
    .received-transfer-action-card {
        min-width: 260px;
    }

    .received-transfer-form {
        grid-template-columns: 1fr;
    }
}

/* ===============================
   IMPORTAR MOVIMIENTOS
================================ */

.import-hero-card {
    background: linear-gradient(135deg, #07152f 0%, #0d3b78 55%, #1554a6 100%);
    color: #ffffff;
    border-radius: 26px;
    padding: 30px;
    margin-bottom: 22px;
    box-shadow: 0 18px 42px rgba(7, 21, 47, 0.18);
    overflow: hidden;
    position: relative;
}

.import-hero-card::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    right: -80px;
    top: -90px;
}

.import-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

.import-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #dbeafe;
    margin-bottom: 8px;
}

.import-hero-content h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 28px;
    font-weight: 900;
}

.import-hero-content p {
    margin: 0;
    color: #dce8ff;
    max-width: 760px;
    line-height: 1.5;
}

.import-hero-icon {
    width: 82px;
    height: 82px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    font-size: 38px;
}

.import-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr);
    gap: 22px;
    align-items: start;
}

.import-main-card {
    overflow: hidden;
}

.selected-project-box {
    margin: 0 22px 22px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #edf5ff;
    border: 1px solid #cfe2ff;
}

.selected-project-box span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 6px;
}

.selected-project-box strong {
    color: #0d3b78;
    font-size: 18px;
}

.import-upload-box {
    margin: 22px;
    padding: 30px;
    border-radius: 24px;
    border: 2px dashed #b8c7dc;
    background: #f8fbff;
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 10px;
}

.upload-icon {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    background: #0d3b78;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
}

.import-upload-box h3 {
    margin: 8px 0 0;
    font-size: 20px;
    font-weight: 900;
    color: #07152f;
}

.import-upload-box p {
    margin: 0;
    color: #64748b;
}

.import-upload-box input[type="file"] {
    display: none;
}

.upload-file-label {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 14px;
    background: #0d3b78;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
    transition: .18s ease;
}

.upload-file-label:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(13, 59, 120, .22);
}

.upload-file-label.file-selected {
    background: #16a34a;
}

.import-guide-card {
    overflow: hidden;
}

.expected-columns-list {
    padding: 0 22px 22px;
    display: grid;
    gap: 10px;
}

.expected-column {
    padding: 14px 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.expected-column strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    margin-bottom: 4px;
}

.expected-column span {
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

.import-note-box {
    margin: 0 22px 22px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.import-note-box strong {
    color: #9a3412;
    display: block;
    margin-bottom: 6px;
}

.import-note-box p {
    margin: 0;
    color: #7c2d12;
    line-height: 1.45;
    font-size: 13px;
}

@media (max-width: 1100px) {
    .import-layout {
        grid-template-columns: 1fr;
    }

    .import-hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .import-hero-icon {
        width: 68px;
        height: 68px;
        font-size: 30px;
    }
}

.import-rules-list {
    padding: 30px 34px;
    display: grid;
    gap: 18px;
}

.import-rule-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid #dbe7f6;
}

.import-rule-item span {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #0d3b78;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex-shrink: 0;
}

.import-rule-item p {
    margin: 0;
    color: #334155;
    font-weight: 600;
    line-height: 1.45;
}

.import-format-table td {
    vertical-align: middle;
}

.import-hero-card {
    background: linear-gradient(135deg, #07152f 0%, #0d3b78 55%, #1554a6 100%);
    color: #ffffff;
    border-radius: 26px;
    padding: 30px;
    margin-bottom: 22px;
    box-shadow: 0 18px 42px rgba(7, 21, 47, 0.18);
    overflow: hidden;
    position: relative;
}

.import-hero-card::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    right: -80px;
    top: -90px;
}

.import-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

.import-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #dbeafe;
    margin-bottom: 8px;
}

.import-hero-content h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 28px;
    font-weight: 900;
}

.import-hero-content p {
    margin: 0;
    color: #dce8ff;
    max-width: 760px;
    line-height: 1.5;
}

.import-hero-icon {
    width: 82px;
    height: 82px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    font-size: 38px;
}

@media (max-width: 1100px) {
    .import-hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .import-hero-icon {
        width: 68px;
        height: 68px;
        font-size: 30px;
    }
}

/* ===============================
   IMPORTAR MOVIMIENTOS / ÍTEMS
================================ */

.import-hero-card {
    background: linear-gradient(135deg, #07152f 0%, #0d3b78 55%, #1554a6 100%);
    color: #ffffff;
    border-radius: 26px;
    padding: 30px;
    margin-bottom: 22px;
    box-shadow: 0 18px 42px rgba(7, 21, 47, 0.18);
    overflow: hidden;
    position: relative;
}

.import-hero-card::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    right: -80px;
    top: -90px;
}

.import-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

.import-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #dbeafe;
    margin-bottom: 8px;
}

.import-hero-content h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 28px;
    font-weight: 900;
}

.import-hero-content p {
    margin: 0;
    color: #dce8ff;
    max-width: 760px;
    line-height: 1.5;
}

.import-hero-icon {
    width: 82px;
    height: 82px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    font-size: 38px;
}

.selected-project-box {
    margin: 0 26px 28px;
    padding: 20px 26px;
    border-radius: 22px;
    background: #edf5ff;
    border: 1px solid #c9ddff;
}

.selected-project-box span {
    display: block;
    color: #607089;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 8px;
}

.selected-project-box strong {
    display: block;
    color: #0d3b78;
    font-size: 24px;
    font-weight: 900;
}

.import-upload-box {
    margin: 0 26px 28px;
    padding: 36px 28px;
    min-height: 280px;
    border-radius: 28px;
    border: 2px dashed #b8cbe8;
    background: #f8fbff;
    display: grid;
    justify-items: center;
    align-content: center;
    text-align: center;
    gap: 12px;
}

.upload-icon {
    width: 78px;
    height: 78px;
    border-radius: 24px;
    background: #0d3b78;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(13, 59, 120, .22);
}

.import-upload-box h3 {
    margin: 10px 0 0;
    font-size: 26px;
    font-weight: 900;
    color: #07152f;
}

.import-upload-box p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
}

.import-upload-box input[type="file"] {
    display: none;
}

.upload-file-label {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 30px;
    border-radius: 18px;
    background: #0d3b78;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
    transition: .18s ease;
}

.upload-file-label:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(13, 59, 120, .25);
}

.upload-file-label.file-selected {
    background: #16a34a;
}

.import-upload-box .field-hint {
    margin-top: 2px;
    color: #0f172a;
}

@media (max-width: 1100px) {
    .import-hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .import-hero-icon {
        width: 68px;
        height: 68px;
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .selected-project-box,
    .import-upload-box {
        margin-left: 18px;
        margin-right: 18px;
    }

    .import-upload-box {
        min-height: 240px;
        padding: 28px 20px;
    }

    .import-upload-box h3 {
        font-size: 22px;
    }

    .upload-icon {
        width: 66px;
        height: 66px;
        font-size: 30px;
    }
}

.executive-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.executive-card {
    border-radius: 24px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.executive-card span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 8px;
}

.executive-card strong {
    display: block;
    color: #07152f;
    font-size: 25px;
    font-weight: 900;
    line-height: 1.1;
}

.executive-card p {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

.executive-card.primary {
    background: linear-gradient(135deg, #07152f, #0d3b78);
}

.executive-card.primary span,
.executive-card.primary strong,
.executive-card.primary p {
    color: #ffffff;
}

.executive-card.warning {
    border-color: #fed7aa;
    background: #fff7ed;
}

.executive-card.success {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.executive-card.danger {
    border-color: #fecaca;
    background: #fef2f2;
}

.executive-progress,
.big-progress {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    margin-top: 14px;
}

.executive-progress div,
.big-progress div {
    height: 100%;
    border-radius: 999px;
    background: #0d3b78;
    max-width: 100%;
}

.executive-analysis-card {
    margin-bottom: 22px;
}

.executive-analysis-layout {
    padding: 0 24px 24px;
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
    gap: 22px;
}

.executive-main-indicator {
    border-radius: 24px;
    padding: 24px;
    background: #f8fbff;
    border: 1px solid #dbeafe;
}

.executive-main-indicator span {
    color: #64748b;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .06em;
}

.executive-main-indicator strong {
    display: block;
    font-size: 42px;
    font-weight: 900;
    color: #0d3b78;
    margin: 8px 0;
}

.executive-main-indicator p {
    color: #475569;
    font-weight: 600;
}

.executive-insights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.insight-item {
    border-radius: 20px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.insight-item span {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 8px;
}

.insight-item strong {
    color: #0f172a;
    font-size: 20px;
    font-weight: 900;
}

.financial-accordion {
    padding: 0 24px 24px;
    display: grid;
    gap: 16px;
}

.financial-group {
    border: 1px solid #dbe3ef;
    border-radius: 22px;
    background: #ffffff;
    overflow: hidden;
}

.financial-group summary {
    cursor: pointer;
    padding: 20px 22px;
    background: #f8fbff;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

.financial-group summary strong {
    display: block;
    font-size: 18px;
    color: #07152f;
}

.financial-group summary span {
    color: #64748b;
    font-size: 13px;
}

.financial-group-numbers {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.financial-group-numbers span {
    display: grid;
    gap: 4px;
    text-align: right;
}

.financial-group-numbers b {
    color: #0d3b78;
}

.financial-table-wrap {
    padding: 18px 22px 22px;
}

@media (max-width: 1100px) {
    .executive-summary-grid,
    .executive-analysis-layout {
        grid-template-columns: 1fr;
    }

    .executive-insights {
        grid-template-columns: 1fr;
    }

    .financial-group summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .financial-group-numbers {
        justify-content: flex-start;
    }
}

.sidebar-section-label {
    margin: 18px 18px 8px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.sidebar-info-box {
    margin: 8px 12px 14px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.sidebar-info-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    margin-bottom: 8px;
}

.sidebar-info-title strong {
    font-size: 13px;
    font-weight: 900;
}

.sidebar-info-box p {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    line-height: 1.4;
}

.sidebar-mini-list {
    display: grid;
    gap: 6px;
}

.sidebar-mini-list span {
    display: block;
    padding: 7px 9px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.06);
    font-size: 12px;
    font-weight: 700;
}

/* ===============================
   DASHBOARD EJECUTIVO
================================ */

.dashboard-hero {
    border-radius: 30px;
    padding: 34px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #07152f 0%, #0d3b78 55%, #1554a6 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 46px rgba(7, 21, 47, .18);
}

.dashboard-hero::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    right: -90px;
    top: -90px;
}

.dashboard-hero > * {
    position: relative;
    z-index: 2;
}

.dashboard-hero .page-kicker,
.dashboard-hero .page-title,
.dashboard-hero .page-description {
    color: #ffffff;
}

.dashboard-hero .page-description {
    max-width: 760px;
    color: #dbeafe;
}

.dashboard-hero-badge {
    min-width: 230px;
    padding: 22px;
    border-radius: 24px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    text-align: center;
}

.dashboard-hero-badge span {
    display: block;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #dbeafe;
    margin-bottom: 8px;
}

.dashboard-hero-badge strong {
    font-size: 42px;
    font-weight: 900;
    color: #ffffff;
}

.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.dashboard-kpi-card {
    border-radius: 24px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    min-height: 150px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
}

.dashboard-kpi-card span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 8px;
}

.dashboard-kpi-card strong {
    display: block;
    color: #07152f;
    font-size: 27px;
    font-weight: 900;
    line-height: 1.15;
}

.dashboard-kpi-card small {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-weight: 800;
}

.dashboard-kpi-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.dashboard-kpi-card.primary {
    background: linear-gradient(135deg, #07152f, #0d3b78);
}

.dashboard-kpi-card.primary span,
.dashboard-kpi-card.primary strong,
.dashboard-kpi-card.primary small {
    color: #ffffff;
}

.dashboard-kpi-card.primary .dashboard-kpi-icon {
    background: rgba(255,255,255,.14);
}

.dashboard-kpi-card.orange {
    background: #fff7ed;
    border-color: #fed7aa;
}

.dashboard-kpi-card.green {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.dashboard-kpi-card.red,
.dashboard-kpi-card.danger {
    background: #fef2f2;
    border-color: #fecaca;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
    margin-bottom: 22px;
}

.dashboard-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
    overflow: hidden;
}

.project-status-grid {
    padding: 0 24px 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.project-status-item {
    padding: 20px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-decoration: none;
}

.project-status-item span {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.project-status-item strong {
    display: block;
    margin-top: 8px;
    color: #07152f;
    font-size: 34px;
    font-weight: 900;
}

.project-status-item.success {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.project-status-item.neutral {
    background: #f8fafc;
}

.project-status-item.danger {
    background: #fef2f2;
    border-color: #fecaca;
}

.alert-summary-grid {
    padding: 0 24px 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.alert-summary-item {
    padding: 20px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.alert-summary-item span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.alert-summary-item strong {
    display: block;
    margin-top: 8px;
    color: #07152f;
    font-size: 32px;
    font-weight: 900;
}

.alert-summary-item.danger {
    background: #fef2f2;
    border-color: #fecaca;
}

.alert-summary-item.warning {
    background: #fff7ed;
    border-color: #fed7aa;
}

.dashboard-inline-link {
    display: inline-flex;
    margin: 0 24px 24px;
    color: #0d3b78;
    font-weight: 900;
    text-decoration: none;
}

.dashboard-table td strong {
    display: block;
    color: #0f172a;
}

.dashboard-table td small {
    color: #64748b;
    font-weight: 700;
}

.mini-progress {
    height: 8px;
    width: 120px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    margin-bottom: 6px;
}

.mini-progress div {
    height: 100%;
    border-radius: 999px;
    background: #0d3b78;
}

.ranking-list,
.pending-movement-list {
    padding: 0 24px 24px;
    display: grid;
    gap: 12px;
}

.ranking-item,
.pending-movement-item {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: space-between;
    padding: 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-decoration: none;
}

.ranking-item:hover,
.pending-movement-item:hover,
.project-status-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
}

.ranking-number {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #0d3b78;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex-shrink: 0;
}

.ranking-info {
    flex: 1;
}

.ranking-info strong,
.pending-movement-item strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
}

.ranking-info small,
.pending-movement-item small {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.pending-movement-item .money {
    font-weight: 900;
    color: #0d3b78;
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .dashboard-kpi-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-hero-badge {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 760px) {
    .project-status-grid,
    .alert-summary-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-kpi-card {
        flex-direction: column;
    }
}

.dashboard-chart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: 22px;
    margin-bottom: 22px;
}

.chart-dashboard-card {
    min-height: 420px;
}

.dashboard-chart-wrap {
    height: 330px;
    padding: 0 24px 24px;
}

.dashboard-chart-wrap.small {
    height: 280px;
}

@media (max-width: 1200px) {
    .dashboard-chart-grid {
        grid-template-columns: 1fr;
    }

    .chart-dashboard-card {
        min-height: auto;
    }
}

/* ===============================
   TOPBAR USER DROPDOWN
================================ */

.topbar-user-menu {
    position: relative;
    margin-left: auto;
}

.user-dropdown {
    position: relative;
}

.user-dropdown summary {
    list-style: none;
}

.user-dropdown summary::-webkit-details-marker {
    display: none;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 10px 8px 14px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: .18s ease;
}

.user-dropdown-toggle:hover {
    background: #f8fbff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.topbar-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.topbar-user-info span {
    color: #334155;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.1;
}

.topbar-user-info small {
    color: #16a34a;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
}

.user-dropdown-arrow {
    color: #64748b;
    font-size: 18px;
    font-weight: 900;
    padding: 0 4px;
}

.user-dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 230px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16);
    padding: 12px;
    z-index: 999;
}

.user-dropdown-panel::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 26px;
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-left: 1px solid #e2e8f0;
    border-top: 1px solid #e2e8f0;
    transform: rotate(45deg);
}

.user-dropdown-header {
    padding: 12px 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 10px;
}

.user-dropdown-header strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
    font-weight: 900;
}

.user-dropdown-header span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.user-dropdown-logout-form {
    margin: 0;
}

.user-dropdown-logout-btn {
    width: 100%;
    border: none;
    border-radius: 14px;
    background: #fef2f2;
    color: #b91c1c;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    cursor: pointer;
    transition: .18s ease;
}

.user-dropdown-logout-btn:hover {
    background: #fee2e2;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .topbar-user-info {
        display: none;
    }

    .user-dropdown-panel {
        right: -8px;
    }
}

/* ===============================
   ERROR PAGE
================================ */

.error-page-wrapper {
    min-height: 100vh;
    background:
            radial-gradient(circle at top left, rgba(13, 59, 120, 0.18), transparent 34%),
            linear-gradient(135deg, #f8fbff 0%, #eef4fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px;
}

.error-card {
    width: min(720px, 100%);
    background: #ffffff;
    border-radius: 30px;
    padding: 42px;
    border: 1px solid #dbe3ef;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
    text-align: center;
}

.error-icon {
    width: 82px;
    height: 82px;
    border-radius: 26px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    margin: 0 auto 18px;
}

.error-card h1 {
    margin: 0;
    color: #07152f;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.error-message {
    max-width: 560px;
    margin: 14px auto 24px;
    color: #64748b;
    font-size: 17px;
    line-height: 1.55;
}

.error-details-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 26px 0;
}

.error-details-box div {
    padding: 18px;
    border-radius: 20px;
    background: #f8fbff;
    border: 1px solid #dbeafe;
    text-align: left;
}

.error-details-box span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 6px;
}

.error-details-box strong {
    display: block;
    color: #0d3b78;
    font-size: 18px;
    font-weight: 900;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.error-help-text {
    margin: 24px 0 0;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 700px) {
    .error-card {
        padding: 30px 22px;
    }

    .error-card h1 {
        font-size: 26px;
    }

    .error-details-box {
        grid-template-columns: 1fr;
    }
}