:root {
    --agro-green: #1a7f4b;
    --agro-green-dark: #0d5c36;
    --agro-green-light: #e8f5ec;
    --agro-green-mid: #2d9f63;
    --agro-accent: #e8a838;
    --agro-accent-deep: #d4890f;
    --agro-bg: #eef5f0;
    --agro-card: #ffffff;
    --sidebar-width: 278px;
    --semaforo-verde: #28a745;
    --semaforo-amarillo: #ffc107;
    --semaforo-rojo: #dc3545;
    --stat-blue: #3d8bfd;
    --stat-purple: #6f42c1;
    --stat-teal: #20c997;
    --stat-indigo: #6610f2;
    --stat-cyan: #0dcaf0;
    --shadow-soft: 0 2px 16px rgba(13, 92, 54, 0.08);
    --shadow-card: 0 6px 28px rgba(13, 92, 54, 0.1);
}

body {
    background:
        radial-gradient(ellipse at top right, rgba(32, 201, 151, 0.12), transparent 45%),
        radial-gradient(ellipse at bottom left, rgba(232, 168, 56, 0.1), transparent 40%),
        var(--agro-bg);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #2c3e2d;
    min-height: 100vh;
}

/* ── BOTONES AGRO ── */
.btn-agro,
.btn-success {
    background: linear-gradient(135deg, var(--agro-green-mid), var(--agro-green));
    border: none;
    color: #fff;
    transition: transform .15s, box-shadow .15s;
}

.btn-agro:hover,
.btn-success:hover {
    background: linear-gradient(135deg, var(--agro-green), var(--agro-green-dark));
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(26, 127, 75, .35);
}

.text-success { color: var(--agro-green) !important; }

/* ══════════════════════════════════════
   LOGIN
   ══════════════════════════════════════ */
.login-wrapper {
    background: #fff;
    overflow: hidden;
}

.login-hero-pane {
    min-height: 280px;
}

@media (min-width: 992px) {
    .login-hero-pane {
        min-height: 100vh;
    }
}

.login-hero-image {
    position: relative;
    min-height: 280px;
    height: 100%;
    overflow: hidden;
}

@media (min-width: 992px) {
    .login-hero-image {
        min-height: 100vh;
    }
}

.login-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.login-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(13, 92, 54, 0.88) 0%, rgba(26, 127, 75, 0.55) 50%, rgba(0, 0, 0, 0.35) 100%);
    display: flex;
    align-items: flex-end;
    padding: 2.5rem;
    color: #fff;
}

.login-hero-content {
    max-width: 480px;
}

.login-hero-tag {
    display: inline-block;
    background: rgba(232, 168, 56, 0.25);
    border: 1px solid rgba(232, 168, 56, 0.5);
    color: #ffe9b8;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .35em .85em;
    border-radius: 2rem;
    margin-bottom: 1rem;
}

.login-hero-overlay h2 {
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    line-height: 1.25;
    margin-bottom: .75rem;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .25);
}

.login-hero-overlay p {
    font-size: 1rem;
    opacity: .9;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.login-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.login-hero-badges .badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-weight: 500;
    padding: .45em .9em;
    backdrop-filter: blur(6px);
}

.login-form-pane {
    background:
        radial-gradient(circle at 20% 20%, rgba(26, 127, 75, 0.08), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(232, 168, 56, 0.1), transparent 35%),
        linear-gradient(180deg, #f7fcf8 0%, var(--agro-bg) 100%);
    padding: 2rem 1.5rem;
    min-height: 100vh;
}

.login-form-inner {
    max-width: 420px;
    margin: 0 auto;
}

.login-card {
    border-radius: 1.35rem;
    box-shadow: var(--shadow-card) !important;
    border: 1px solid rgba(26, 127, 75, 0.12) !important;
    backdrop-filter: blur(8px);
}

.login-logo-wrap {
    width: 68px;
    height: 68px;
    background: linear-gradient(145deg, var(--agro-green-light), #c8ebd4);
    border-radius: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(26, 127, 75, .2);
}

.login-logo-wrap i {
    font-size: 2.1rem;
    color: var(--agro-green);
}

.login-brand-title {
    color: var(--agro-green-dark);
    letter-spacing: -.02em;
}

.login-form-pane .input-group-text {
    border-color: #dee2e6;
    color: var(--agro-green);
}

.login-form-pane .form-control {
    border-color: #dee2e6;
}

.login-form-pane .form-control:focus {
    border-color: var(--agro-green-mid);
    box-shadow: 0 0 0 .2rem rgba(26, 127, 75, .15);
}

.btn-login-submit .spinner-border {
    width: 1.1rem;
    height: 1.1rem;
}

/* ══════════════════════════════════════
   APP SHELL — SIDEBAR + CONTENIDO
   ══════════════════════════════════════ */
.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1040;
    height: 56px;
    background: linear-gradient(90deg, #0a4a2c, var(--agro-green), var(--stat-teal));
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
    box-shadow: 0 2px 14px rgba(13, 92, 54, .25);
    display: flex;
}

.app-topbar-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -.01em;
}

.app-layout {
    display: flex;
    flex: 1;
    min-height: 0;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(175deg, #0a4a2c 0%, var(--agro-green-dark) 40%, #0f6b42 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform .28s ease;
    box-shadow: 4px 0 28px rgba(0, 0, 0, .2);
}

.sidebar.open {
    transform: translateX(0);
}

@media (min-width: 992px) {
    .sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        transform: none;
        box-shadow: none;
        border-right: 1px solid rgba(255, 255, 255, .08);
    }
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1045;
}

.sidebar-backdrop.show {
    display: block;
}

@media (min-width: 992px) {
    .sidebar-backdrop { display: none !important; }
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1.5rem 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    background: linear-gradient(90deg, rgba(232, 168, 56, 0.12), transparent);
}

.sidebar-brand-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--agro-accent), #f0c14b);
    border-radius: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #0d5c36;
    box-shadow: 0 4px 14px rgba(232, 168, 56, .4);
}

.sidebar-brand-name {
    display: block;
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.2;
}

.sidebar-brand-sub {
    display: block;
    font-size: .68rem;
    opacity: .65;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem .75rem;
    overflow-y: auto;
    min-height: 0;
}

.sidebar-nav-label {
    display: block;
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    opacity: .45;
    padding: 0 .75rem;
    margin-bottom: .5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem .9rem;
    margin-bottom: .2rem;
    border-radius: .7rem;
    color: rgba(255, 255, 255, .9);
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    transition: all .2s;
    border-left: 3px solid transparent;
}

.sidebar-link i {
    font-size: 1.2rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: .45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 1;
    flex-shrink: 0;
}

/* Iconos con colores que contrastan sobre el sidebar verde oscuro */
.sidebar-link .icon-inicio {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}
.sidebar-link .icon-fert {
    background: rgba(125, 255, 212, .25);
    color: #7dffd4;
}
.sidebar-link .icon-parcelas {
    background: rgba(61, 139, 253, .3);
    color: #8ec5ff;
}
.sidebar-link .icon-semaforo {
    background: rgba(255, 193, 7, .28);
    color: #ffd666;
}
.sidebar-link .icon-planes {
    background: rgba(111, 66, 193, .35);
    color: #c4a8ff;
}
.sidebar-link .icon-reportes {
    background: rgba(232, 168, 56, .3);
    color: #ffd27a;
}
.sidebar-link .icon-usuarios {
    background: rgba(13, 202, 240, .28);
    color: #7ae8ff;
}

.sidebar-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .12);
}

.sidebar-link.active {
    color: #fff;
    background: rgba(255, 255, 255, .16);
    border-left-color: var(--agro-accent);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.sidebar-link.active i {
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(255,255,255,.15);
}

/* Destacar Fertilización — segundo ítem, imposible de pasar por alto */
.sidebar-link-fert {
    background: linear-gradient(90deg, rgba(32, 201, 151, 0.35), rgba(32, 201, 151, 0.12)) !important;
    border: 1px solid rgba(125, 255, 212, 0.55) !important;
    border-left: 3px solid #7dffd4 !important;
    margin-bottom: .55rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
}

.sidebar-link-fert span:not(.sidebar-new-tag) {
    color: #fff;
    font-weight: 700;
}

.sidebar-link-fert:hover,
.sidebar-link-fert.active {
    background: linear-gradient(90deg, rgba(32, 201, 151, 0.5), rgba(32, 201, 151, 0.2)) !important;
    border-left-color: #b8ffe8 !important;
    color: #fff;
}

.sidebar-new-tag {
    margin-left: auto;
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #1a1a1a;
    padding: .25em .55em;
    border-radius: 1rem;
    line-height: 1.2;
    animation: pulse-new 1.8s ease-in-out infinite;
}

@keyframes pulse-new {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.sidebar-alert-badge {
    margin-left: auto;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 .4rem;
    border-radius: 1rem;
    background: var(--semaforo-rojo);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.sidebar-alert-badge.badge-dosif {
    background: var(--stat-blue);
}

.sidebar-footer {
    padding: .75rem 1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    flex-shrink: 0;
}

/* Barra inferior móvil */
.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: flex;
    background: linear-gradient(180deg, #0d5c36, #0a4a2c);
    border-top: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 -6px 24px rgba(0,0,0,.25);
    padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom));
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    padding: .4rem .15rem;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: .62rem;
    font-weight: 600;
    border-radius: .5rem;
}

.mobile-nav-item i {
    font-size: 1.2rem;
    line-height: 1;
}

.mobile-nav-item.active {
    color: #fff;
    background: rgba(255,255,255,.12);
}

.mobile-nav-fert {
    color: #7dffd4 !important;
}

.mobile-nav-fert i {
    color: #7dffd4;
}

.mobile-nav-fert.active {
    background: rgba(32, 201, 151, .3);
}

@media (max-width: 991.98px) {
    .app-content {
        padding-bottom: 4.5rem;
    }
    .fab-evaluar {
        bottom: 4.5rem;
    }
}

.app-alerts-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    align-items: center;
}

.alert-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .65rem;
    border-radius: 2rem;
    font-size: .72rem;
    font-weight: 600;
    white-space: nowrap;
}

.alert-chip-red { background: rgba(220, 53, 69, .12); color: var(--semaforo-rojo); }
.alert-chip-yellow { background: rgba(255, 193, 7, .2); color: #856404; }
.alert-chip-blue { background: rgba(61, 139, 253, .12); color: var(--stat-blue); }
.alert-chip-green { background: rgba(40, 167, 69, .12); color: var(--semaforo-verde); }

.sidebar-user {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem .5rem;
    margin-bottom: .5rem;
}

.sidebar-user-avatar {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, .15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.sidebar-user-info small {
    display: block;
    font-size: .68rem;
    opacity: .55;
}

.sidebar-user-info strong {
    font-size: .85rem;
    font-weight: 600;
}

.btn-sidebar-logout {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .2);
    color: rgba(255, 255, 255, .85);
    font-size: .85rem;
    padding: .5rem;
    border-radius: .5rem;
    transition: all .2s;
}

.btn-sidebar-logout:hover {
    background: rgba(220, 53, 69, .25);
    border-color: rgba(220, 53, 69, .4);
    color: #fff;
}

/* Área principal */
.app-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@media (min-width: 992px) {
    .app-main {
        margin-left: 0;
    }
}

.app-header {
    background: linear-gradient(90deg, #fff 0%, #f4fbf6 100%);
    border-bottom: 1px solid rgba(26, 127, 75, .14);
    padding: 1.25rem 2rem;
    box-shadow: var(--shadow-soft);
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.app-header-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--agro-green-dark);
    margin-bottom: .15rem;
}

.app-header-subtitle {
    font-size: .875rem;
    color: #6c757d;
}

.app-content {
    flex: 1;
    padding: 1.25rem;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .app-content {
        padding: 1.5rem 2rem 2rem;
    }
}

#vistaDashboard { display: none; }

/* ══════════════════════════════════════
   COMPONENTES
   ══════════════════════════════════════ */
.card {
    border: none;
    border-radius: .85rem;
    box-shadow: var(--shadow-soft);
}

.parcela-card {
    transition: transform .2s, box-shadow .2s;
    border: none;
    border-left: 4px solid var(--agro-green);
    border-radius: .85rem !important;
    overflow: hidden;
}

.parcela-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card) !important;
}

.parcela-card-media {
    border-left: none !important;
}

.parcela-media {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a7f4b, #e8a838);
}

.parcela-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.parcela-card:hover .parcela-media img {
    transform: scale(1.06);
}

.parcela-media-badge {
    position: absolute;
    left: .75rem;
    bottom: .75rem;
    background: rgba(13, 92, 54, .85);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    padding: .3rem .65rem;
    border-radius: 2rem;
    backdrop-filter: blur(4px);
}

.parcela-card .gps-coords {
    font-size: .8rem;
    color: #6c757d;
    font-family: Consolas, monospace;
}

.parcela-estado-chip {
    position: absolute;
    top: .65rem;
    right: .65rem;
    font-size: .68rem;
    font-weight: 700;
    padding: .25rem .55rem;
    border-radius: 1rem;
}

.parcela-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.chip-soft {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .68rem;
    font-weight: 600;
    padding: .2rem .5rem;
    border-radius: 1rem;
    background: #eef6f1;
    color: #0d5c36;
}

.chip-soft i { font-size: .7rem; }
.chip-plan { background: #e8f1ff; color: #0d47a1; }
.chip-warn { background: #fff6e0; color: #9a6b00; }
.chip-alert { background: #fde8eb; color: #b02a37; }

.parcelas-filtro-card {
    background: linear-gradient(180deg, #f7fbf8, #fff);
    border: 1px solid rgba(26,127,75,.1) !important;
}

.hist-tabs .nav-link {
    font-size: .78rem;
    padding: .35rem .7rem;
    border-radius: 2rem;
}

.hist-timeline {
    max-height: 380px;
    overflow-y: auto;
    padding-right: .25rem;
}

.hist-tl-item {
    display: flex;
    gap: .75rem;
    padding: .65rem 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.hist-tl-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #eef6f1;
    color: #1a7f4b;
    font-size: .85rem;
}

.hist-tl-primary .hist-tl-dot { background: #e7f1ff; color: #0d6efd; }
.hist-tl-warning .hist-tl-dot { background: #fff6e0; color: #b8860b; }
.hist-tl-danger .hist-tl-dot { background: #fde8eb; color: #dc3545; }
.hist-tl-secondary .hist-tl-dot { background: #f1f3f5; color: #6c757d; }

.campana-card {
    background: #f4f8f5;
    border-radius: .75rem;
    padding: .85rem 1rem;
    border: 1px solid rgba(26,127,75,.12);
}

.parcela-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: .4rem;
    width: 100%;
}

.btn-parcela-action {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    font-size: .72rem;
    font-weight: 600;
    padding: .4rem .35rem;
    white-space: nowrap;
    border-radius: .5rem;
}

.btn-parcela-action span {
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 380px) {
    .btn-parcela-action span { display: none; }
    .btn-parcela-action { padding: .45rem; }
}

/* Modal footer siempre visible */
.agro-modal-footer {
    border-top: 1px solid rgba(26, 127, 75, .12);
    background: #f7fbf8;
    padding: .9rem 1.25rem;
    gap: .5rem;
    position: sticky;
    bottom: 0;
    z-index: 2;
}

.agro-modal .modal-header {
    background: linear-gradient(180deg, #f3faf5, #fff);
}

.ver-parcela-hero {
    border-radius: .85rem;
    overflow: hidden;
    height: 220px;
    background: #1a7f4b;
}

.ver-parcela-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ver-parcela-meta {
    display: grid;
    gap: .55rem;
}

.ver-parcela-meta > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .55rem .75rem;
    background: #f4f8f5;
    border-radius: .55rem;
    font-size: .85rem;
}

.ver-parcela-meta span { color: #6c757d; }
.ver-kpi {
    background: #f4f8f5;
    border-radius: .55rem;
    padding: .65rem;
    text-align: center;
}
.ver-kpi small { display: block; color: #6c757d; font-size: .7rem; }
.ver-kpi strong { font-size: 1.15rem; color: #0d5c36; }

.chart-container-sm { height: 180px; position: relative; }

.ver-plan-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: .75rem;
}

/* Semáforo: datos izq + panel gráfico der */
.semaforo-card-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
}

.semaforo-visual-panel {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(0,0,0,.06);
}

.semaforo-visual-img {
    flex: 1;
    min-height: 110px;
    overflow: hidden;
}

.semaforo-visual-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 110px;
}

.semaforo-visual-status {
    padding: .65rem .75rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.semaforo-visual-status strong {
    font-size: .78rem;
    line-height: 1.2;
}

.semaforo-visual-status small {
    font-size: .68rem;
    opacity: .85;
}

.semaforo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-bottom: .25rem;
}

.semaforo-visual-panel.estado-verde {
    background: linear-gradient(180deg, rgba(40,167,69,.08), rgba(40,167,69,.18));
}
.semaforo-visual-panel.estado-verde .semaforo-dot { background: #28a745; box-shadow: 0 0 0 4px rgba(40,167,69,.25); }
.semaforo-visual-panel.estado-amarillo {
    background: linear-gradient(180deg, rgba(255,193,7,.1), rgba(255,193,7,.22));
}
.semaforo-visual-panel.estado-amarillo .semaforo-dot { background: #ffc107; box-shadow: 0 0 0 4px rgba(255,193,7,.3); }
.semaforo-visual-panel.estado-rojo {
    background: linear-gradient(180deg, rgba(220,53,69,.08), rgba(220,53,69,.18));
}
.semaforo-visual-panel.estado-rojo .semaforo-dot { background: #dc3545; box-shadow: 0 0 0 4px rgba(220,53,69,.25); }

.report-thumb {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: .4rem;
    flex-shrink: 0;
}

.plan-actions .btn { padding: .25rem .45rem; }

/* Reporte fertilizaciones */
.fert-report-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .75rem;
}

.fert-sum-card {
    background: #fff;
    border: 1px solid rgba(26, 127, 75, .12);
    border-radius: .75rem;
    padding: .85rem 1rem;
    box-shadow: var(--shadow-soft);
}

.fert-sum-card small {
    display: block;
    color: #6c757d;
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin-bottom: .25rem;
}

.fert-sum-card strong {
    font-size: 1.35rem;
    color: #0d5c36;
}

.fert-sum-ok strong { color: #198754; }
.fert-sum-pend strong { color: #b58105; }
.fert-sum-total {
    background: linear-gradient(135deg, #e8f6ee, #fff);
    border-color: rgba(26, 127, 75, .25);
}

@media (max-width: 991.98px) {
    .fert-report-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .fert-report-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .semaforo-card-row { flex-wrap: wrap; }
    .semaforo-visual-panel {
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(0,0,0,.06);
        flex-direction: row;
    }
    .semaforo-visual-img {
        width: 42%;
        min-height: 96px;
    }
    .semaforo-visual-status { justify-content: center; }
}

/* Semáforo con imagen de parcela */
.semaforo-card {
    padding: 0 !important;
    overflow: hidden;
}

.semaforo-card-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.semaforo-parcela-media {
    position: relative;
    width: 160px;
    min-height: 140px;
    flex-shrink: 0;
    background: #1a7f4b;
}

.semaforo-parcela-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 140px;
}

.semaforo-estado-chip {
    position: absolute;
    left: .5rem;
    bottom: .5rem;
    font-size: .68rem;
    font-weight: 700;
    padding: .25rem .55rem;
    border-radius: 1rem;
    color: #fff;
}

.semaforo-estado-chip.estado-verde { background: rgba(40, 167, 69, .92); }
.semaforo-estado-chip.estado-amarillo { background: rgba(255, 193, 7, .95); color: #212529; }
.semaforo-estado-chip.estado-rojo { background: rgba(220, 53, 69, .95); }

.semaforo-card-body {
    flex: 1;
    min-width: 200px;
    padding: 1rem 1.15rem;
}

.semaforo-evidencia {
    max-height: 72px;
    border-radius: .5rem;
    border: 2px solid rgba(26,127,75,.2);
}

@media (max-width: 575.98px) {
    .semaforo-parcela-media {
        width: 100%;
        height: 140px;
    }
}

/* Semáforo */
.semaforo-group .btn-check:checked + .btn-semaforo-verde {
    background-color: var(--semaforo-verde);
    border-color: var(--semaforo-verde);
    color: #fff;
    box-shadow: 0 0 0 .25rem rgba(40, 167, 69, .35);
}

.semaforo-group .btn-check:checked + .btn-semaforo-amarillo {
    background-color: var(--semaforo-amarillo);
    border-color: var(--semaforo-amarillo);
    color: #212529;
    box-shadow: 0 0 0 .25rem rgba(255, 193, 7, .45);
}

.semaforo-group .btn-check:checked + .btn-semaforo-rojo {
    background-color: var(--semaforo-rojo);
    border-color: var(--semaforo-rojo);
    color: #fff;
    box-shadow: 0 0 0 .25rem rgba(220, 53, 69, .35);
}

.btn-semaforo-verde { border-color: var(--semaforo-verde); color: var(--semaforo-verde); }
.btn-semaforo-amarillo { border-color: var(--semaforo-amarillo); color: #856404; }
.btn-semaforo-rojo { border-color: var(--semaforo-rojo); color: var(--semaforo-rojo); }

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: .65rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--semaforo-verde), var(--semaforo-amarillo), var(--semaforo-rojo));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
    background: var(--agro-card);
    border-radius: .75rem;
    box-shadow: var(--shadow-soft);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.55rem;
    top: 1.25rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px currentColor;
}

.timeline-item.estado-verde::before { color: var(--semaforo-verde); }
.timeline-item.estado-amarillo::before { color: var(--semaforo-amarillo); }
.timeline-item.estado-rojo::before { color: var(--semaforo-rojo); }

/* FAB */
.fab-evaluar {
    position: fixed;
    bottom: 1.5rem;
    right: 1.25rem;
    z-index: 1025;
    padding: .75rem 1.25rem;
    border-radius: 2rem;
    box-shadow: 0 4px 20px rgba(26, 127, 75, .4);
    font-weight: 600;
}

/* KPI */
.kpi-card {
    border: none;
    border-radius: .85rem;
    transition: transform .2s;
    box-shadow: var(--shadow-soft);
}

.kpi-card:hover {
    transform: translateY(-2px);
}

.kpi-card .kpi-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}

.kpi-card.kpi-green { border-left: 4px solid var(--agro-green); }
.kpi-card.kpi-red { border-left: 4px solid var(--semaforo-rojo); }
.kpi-card.kpi-orange { border-left: 4px solid var(--agro-accent); }
.kpi-card.kpi-blue { border-left: 4px solid var(--stat-blue); }

.kpi-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.kpi-icon-green { background: var(--agro-green-light); color: var(--agro-green); }
.kpi-icon-red { background: rgba(220, 53, 69, .1); color: var(--semaforo-rojo); }
.kpi-icon-orange { background: rgba(232, 168, 56, .15); color: var(--agro-accent); }
.kpi-icon-blue { background: rgba(61, 139, 253, .12); color: var(--stat-blue); }

/* Dashboard Inicio */
.dashboard-welcome {
    background: linear-gradient(125deg, #0a4a2c 0%, var(--agro-green) 42%, var(--stat-teal) 78%, #3d8bfd 100%);
    border-radius: 1.15rem;
    padding: 1.35rem 1.6rem;
    color: #fff;
    box-shadow: 0 10px 36px rgba(13, 92, 54, .28);
    overflow: hidden;
    position: relative;
}

.dashboard-welcome::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, .06);
    border-radius: 50%;
    pointer-events: none;
}

.dashboard-welcome-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.dashboard-welcome-tag {
    display: inline-block;
    background: rgba(232, 168, 56, .25);
    border: 1px solid rgba(232, 168, 56, .4);
    color: #ffe9b8;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: .3em .75em;
    border-radius: 2rem;
    margin-bottom: .5rem;
}

.dashboard-welcome-title {
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    font-weight: 700;
    margin-bottom: .35rem;
}

.dashboard-welcome-sub {
    opacity: .88;
    font-size: .9rem;
    max-width: 480px;
}

.dashboard-welcome-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.welcome-stat {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: .75rem;
    padding: .65rem 1rem;
    text-align: center;
    min-width: 90px;
    backdrop-filter: blur(4px);
}

.welcome-stat-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
}

.welcome-stat-label {
    display: block;
    font-size: .68rem;
    opacity: .75;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-top: .15rem;
}

/* Stat cards dashboard */
.stat-card {
    border: none;
    border-radius: .85rem;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.stat-card .card-body {
    padding: .85rem 1rem;
    position: relative;
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: .6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: .5rem;
}

.stat-label {
    display: block;
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 600;
    opacity: .7;
    margin-bottom: .15rem;
}

.stat-value {
    font-size: clamp(1.25rem, 4vw, 1.65rem);
    font-weight: 700;
    line-height: 1.1;
}

.stat-green { background: linear-gradient(145deg, #fff 60%, var(--agro-green-light)); border-left: 4px solid var(--agro-green); }
.stat-green .stat-icon { background: var(--agro-green-light); color: var(--agro-green); }
.stat-green .stat-value { color: var(--agro-green); }

.stat-red { background: linear-gradient(145deg, #fff 60%, rgba(220,53,69,.06)); border-left: 4px solid var(--semaforo-rojo); }
.stat-red .stat-icon { background: rgba(220,53,69,.1); color: var(--semaforo-rojo); }
.stat-red .stat-value { color: var(--semaforo-rojo); }

.stat-yellow { background: linear-gradient(145deg, #fff 60%, rgba(255,193,7,.1)); border-left: 4px solid var(--semaforo-amarillo); }
.stat-yellow .stat-icon { background: rgba(255,193,7,.2); color: #856404; }
.stat-yellow .stat-value { color: #856404; }

.stat-orange { background: linear-gradient(145deg, #fff 60%, rgba(232,168,56,.1)); border-left: 4px solid var(--agro-accent); }
.stat-orange .stat-icon { background: rgba(232,168,56,.15); color: var(--agro-accent); }
.stat-orange .stat-value { color: #c87a00; }

.stat-blue { background: linear-gradient(145deg, #fff 60%, rgba(61,139,253,.08)); border-left: 4px solid var(--stat-blue); }
.stat-blue .stat-icon { background: rgba(61,139,253,.12); color: var(--stat-blue); }
.stat-blue .stat-value { color: var(--stat-blue); }

.stat-purple { background: linear-gradient(145deg, #fff 60%, rgba(111,66,193,.08)); border-left: 4px solid var(--stat-purple); }
.stat-purple .stat-icon { background: rgba(111,66,193,.12); color: var(--stat-purple); }
.stat-purple .stat-value { color: var(--stat-purple); }

/* Chart cards */
.chart-card {
    border: none;
    border-radius: .85rem;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.chart-card .card-header {
    background: #fff;
    border-bottom: 2px solid transparent;
    font-weight: 600;
    font-size: .9rem;
    padding: .85rem 1.15rem;
}

.chart-card-green .card-header { border-bottom-color: var(--agro-green); color: var(--agro-green-dark); }
.chart-card-teal .card-header { border-bottom-color: var(--stat-teal); color: #0f5132; }
.chart-card-amber .card-header { border-bottom-color: var(--agro-accent); color: #856404; }
.chart-card-indigo .card-header { border-bottom-color: var(--stat-indigo); color: var(--stat-indigo); }
.chart-card-red .card-header { border-bottom-color: var(--semaforo-rojo); color: var(--semaforo-rojo); }
.chart-card-purple .card-header { border-bottom-color: var(--stat-purple); color: var(--stat-purple); }

.chart-container {
    position: relative;
    height: 280px;
}

.chart-container-sm {
    height: 240px;
}

.chart-container-lg {
    height: 320px;
}

/* Quick access */
.btn-quick {
    text-align: left;
    font-weight: 600;
    font-size: .88rem;
    padding: .65rem 1rem;
    border-radius: .65rem;
    border: none;
    color: #fff;
    transition: transform .15s, box-shadow .15s;
}

.btn-quick:hover {
    transform: translateX(4px);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.btn-quick-green { background: linear-gradient(135deg, var(--agro-green-mid), var(--agro-green)); }
.btn-quick-yellow { background: linear-gradient(135deg, #ffc107, #e8a838); color: #212529; }
.btn-quick-yellow:hover { color: #212529; }
.btn-quick-blue { background: linear-gradient(135deg, #3d8bfd, #6610f2); }
.btn-quick-red { background: linear-gradient(135deg, #dc3545, #c82333); }
.btn-quick-purple { background: linear-gradient(135deg, #6f42c1, #6610f2); }

.quick-access-card .card-body {
    padding-top: .5rem;
}

/* Module cards — acceso rápido a módulos */
.module-card {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem 1.1rem;
    border-radius: .85rem;
    text-decoration: none;
    color: inherit;
    background: var(--agro-card);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, .04);
    transition: transform .2s, box-shadow .2s;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.module-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
    color: inherit;
}

.module-green::before { background: var(--agro-green); }
.module-yellow::before { background: var(--semaforo-amarillo); }
.module-blue::before { background: var(--stat-blue); }
.module-purple::before { background: var(--stat-purple); }

.module-card-icon {
    width: 44px;
    height: 44px;
    border-radius: .65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.module-green .module-card-icon { background: var(--agro-green-light); color: var(--agro-green); }
.module-yellow .module-card-icon { background: rgba(255,193,7,.2); color: #856404; }
.module-blue .module-card-icon { background: rgba(61,139,253,.12); color: var(--stat-blue); }
.module-purple .module-card-icon { background: rgba(111,66,193,.12); color: var(--stat-purple); }

.module-card-body { flex: 1; min-width: 0; }

.module-card-title {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: .1rem;
    color: var(--agro-green-dark);
}

.module-card-desc {
    font-size: .75rem;
    color: #6c757d;
    margin-bottom: .35rem;
}

.module-card-badge {
    display: inline-block;
    font-size: .68rem;
    font-weight: 600;
    padding: .2em .55em;
    border-radius: 1rem;
    background: var(--agro-bg);
    color: #495057;
}

.module-card-arrow {
    color: #adb5bd;
    font-size: .9rem;
    flex-shrink: 0;
}

/* Feed de movimientos */
.activity-feed-card {
    border-radius: .85rem;
}

.activity-item {
    display: flex;
    gap: .85rem;
    padding: .85rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    cursor: pointer;
    transition: background .15s;
    border-radius: .5rem;
    margin: 0 -.5rem;
    padding-left: .5rem;
    padding-right: .5rem;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background: var(--agro-green-light);
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--agro-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.activity-title {
    font-size: .85rem;
}

.activity-detail {
    font-size: .78rem;
    color: #6c757d;
}

/* Reportes */
.report-summary-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(90deg, var(--agro-green-light), #fff);
    border-radius: .85rem;
    border-left: 4px solid var(--agro-green);
}

.report-summary-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    color: #495057;
    padding: .25rem .75rem;
    background: rgba(255, 255, 255, .7);
    border-radius: 2rem;
}

.report-summary-item i {
    color: var(--agro-green);
    font-size: 1rem;
}

.report-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: .25rem;
    gap: .35rem;
    -webkit-overflow-scrolling: touch;
}

.report-tabs .nav-link {
    white-space: nowrap;
    font-size: .85rem;
    font-weight: 600;
    color: #495057;
    border-radius: 2rem;
    padding: .45rem 1rem;
    border: 1px solid transparent;
}

.report-tabs .nav-link.active {
    background: var(--agro-green);
    color: #fff;
}

.report-tabs .nav-link:not(.active):hover {
    background: var(--agro-green-light);
    color: var(--agro-green-dark);
}

.report-table {
    font-size: .88rem;
}

.filtros-reportes-card {
    border-left: 4px solid var(--stat-teal) !important;
}

/* Fertilización */
.fert-calc-card {
    border-left: 4px solid var(--stat-teal) !important;
}

.fert-summary-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: .85rem 1rem;
    background: linear-gradient(90deg, #e8f8f5, #fff);
    border-radius: .85rem;
    border-left: 4px solid var(--stat-teal);
}

.momento-card {
    border: none;
    border-radius: .85rem;
    box-shadow: var(--shadow-soft);
}

.momento-grano { border-left: 4px solid var(--agro-accent) !important; }
.momento-hortaliza { border-left: 4px solid #dc3545 !important; }

.momento-list li {
    padding: .55rem 0;
    border-bottom: 1px solid rgba(0,0,0,.05);
}

.momento-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.momento-list strong {
    display: block;
    font-size: .88rem;
    color: var(--agro-green-dark);
}

.fert-product-card {
    border: none;
    border-radius: .85rem;
    box-shadow: var(--shadow-soft);
    transition: transform .2s;
}

.fert-product-card:hover {
    transform: translateY(-2px);
}

.fert-product-icon {
    width: 40px;
    height: 40px;
    border-radius: .6rem;
    background: var(--agro-green-light);
    color: var(--agro-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: .65rem;
}

.fert-formula-destacada {
    border: 1px solid rgba(26, 127, 75, .25);
    background: linear-gradient(160deg, #fff 55%, var(--agro-green-light));
}

.formula-npk-badge {
    display: inline-block;
    font-family: Consolas, 'Courier New', monospace;
    font-weight: 700;
    font-size: .95rem;
    color: var(--agro-green-dark);
    background: rgba(26, 127, 75, .1);
    padding: .2rem .55rem;
    border-radius: .4rem;
    letter-spacing: .02em;
}

.fert-filtro-cat.active {
    background: var(--agro-green) !important;
    color: #fff !important;
    border-color: var(--agro-green) !important;
}

.table-dosificacion th {
    background-color: var(--agro-green-light);
    color: var(--agro-green-dark);
    font-size: .85rem;
    white-space: nowrap;
}

.nutrient-badge {
    font-size: .75rem;
    padding: .2em .5em;
}

.gramos-planta {
    font-size: .78rem;
    color: #6c757d;
}

.plan-activo-banner {
    background: linear-gradient(90deg, var(--agro-green-light), #fff);
    border-left: 4px solid var(--agro-green);
    border-radius: .85rem !important;
}

.custom-file-label {
    cursor: pointer;
    border: 2px dashed #ced4da;
    border-radius: .65rem;
    padding: 1.5rem;
    text-align: center;
    transition: border-color .2s, background .2s;
}

.custom-file-label:hover {
    border-color: var(--agro-green);
    background: var(--agro-green-light);
}

.gps-capture {
    background: var(--agro-green-light);
    border-radius: .5rem;
    font-family: Consolas, monospace;
    font-size: .85rem;
}

.app-section { display: none; }
.app-section.active { display: block; }

/* ── Responsive: teléfonos ── */
@media (max-width: 575.98px) {
    .app-content {
        padding: 1rem .85rem 5rem;
    }

    .app-header {
        padding: 1rem;
    }

    .app-header-title {
        font-size: 1.25rem;
    }

    .dashboard-welcome {
        padding: 1rem;
        border-radius: .75rem;
    }

    .dashboard-welcome-stats {
        width: 100%;
    }

    .welcome-stat {
        flex: 1;
        min-width: calc(33% - .5rem);
        padding: .5rem .4rem;
    }

    .welcome-stat-value {
        font-size: 1.1rem;
    }

    .stat-card .card-body {
        padding: .65rem .75rem;
    }

    .stat-icon {
        width: 28px;
        height: 28px;
        font-size: .85rem;
        margin-bottom: .35rem;
    }

    .kpi-card .kpi-value {
        font-size: 1.35rem;
    }

    .kpi-icon-wrap {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .chart-container { height: 220px; }
    .chart-container-sm { height: 200px; }
    .chart-container-lg { height: 260px; }

    .semaforo-group {
        flex-direction: column;
    }

    .semaforo-group .btn {
        border-radius: .5rem !important;
        margin-bottom: .35rem;
    }

    .fab-evaluar {
        bottom: 1rem;
        right: .75rem;
        left: .75rem;
        width: calc(100% - 1.5rem);
        border-radius: .75rem;
        padding: .85rem;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-item {
        padding: .85rem;
    }

    .app-alerts-bar {
        display: none;
    }

    .app-topbar .app-alerts-bar {
        display: none;
    }

    .filtros-reportes-card .btn {
        width: 100%;
    }

    .module-card {
        padding: .85rem;
        gap: .65rem;
    }

    .module-card-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .module-card-title {
        font-size: .88rem;
    }

    .report-summary-bar {
        flex-direction: column;
        gap: .5rem;
        padding: .85rem 1rem;
    }

    .report-summary-item {
        width: 100%;
        justify-content: flex-start;
    }

    .report-tabs .nav-link {
        font-size: .78rem;
        padding: .4rem .75rem;
    }

    .table-dosificacion {
        font-size: .78rem;
    }

    .table-dosificacion th,
    .table-dosificacion td {
        padding: .4rem .35rem;
    }
}

/* ── Responsive: tablets ── */
@media (min-width: 576px) and (max-width: 991.98px) {
    .app-content {
        padding: 1.25rem 1.5rem 2rem;
    }

    .chart-container { height: 250px; }
    .chart-container-sm { height: 230px; }
    .chart-container-lg { height: 290px; }

    .dashboard-welcome-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-welcome-stats {
        width: 100%;
        justify-content: flex-start;
    }

    .welcome-stat {
        flex: 1;
    }

    .kpi-card .kpi-value {
        font-size: 1.65rem;
    }

    .fab-evaluar {
        bottom: 1.25rem;
        right: 1rem;
    }
}

@media (max-width: 991.98px) {
    .app-topbar-title {
        font-size: 1rem;
    }

    .sidebar {
        top: 0;
        padding-top: 0;
    }

    #vistaDashboard .app-layout {
        flex-direction: column;
    }
}

/* Impresión */
@media print {
    .sidebar,
    .app-topbar,
    .sidebar-backdrop,
    .fab-evaluar,
    .btn-group,
    .toast-container,
    .app-header,
    #seccionInicio,
    #seccionUsuarios,
    .report-tabs,
    .filtros-reportes-card,
    .report-summary-bar {
        display: none !important;
    }

    #vistaDashboard { display: block !important; }
    .app-section { display: none !important; }
    #seccionReportes { display: block !important; }
    #seccionReportes .tab-pane { display: block !important; opacity: 1 !important; }
    .app-main { margin: 0 !important; }
}
