:root {
    --neon-lime: #bfff00;
    --glacial-blue: #00e5ff;
    --neon-blue: #0096FF;
    --neon-red: #FF3131;
    --neon-magenta: #FF00FF;
    --neon-cyan: #00FFFF;
    --neon-yellow: #FFFF33;
    --neon-reset: #ff7b00;
    --bg-deep: #05070c;
    --card-bg: rgba(15, 20, 30, 0.7);
    --glass-border: rgba(0, 229, 255, 0.2);
    --text-main: #e2e8f0;
    --text-dim: #94a3b8;
    --frozen-glow: 0 0 15px rgba(0, 229, 255, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-deep);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
}

.glass-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(191, 255, 0, 0.05) 0%, transparent 70%);
    z-index: -1;
}

/* Header */
.tactical-header {
    height: 80px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 20, 30, 0.4);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sovereign-logo {
    width: 48px;
    height: 48px;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid var(--glacial-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--frozen-glow);
    color: var(--glacial-blue);
    position: relative;
    overflow: hidden;
}

.sovereign-logo i {
    font-size: 1.4rem;
    animation: icon-pulse-glacial 2s infinite ease-in-out;
}

@keyframes icon-pulse-glacial {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); text-shadow: 0 0 10px var(--glacial-blue); }
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.frosted-logo-img {
    height: 43px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px var(--glacial-blue)) drop-shadow(0 0 18px rgba(0, 229, 255, 0.5));
    transition: all 0.3s ease;
}

.frosted-logo-img:hover {
    filter: drop-shadow(0 0 12px var(--glacial-blue)) drop-shadow(0 0 20px rgba(0, 229, 255, 0.6));
    transform: scale(1.05);
}

.audit-text {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: white;
}

.berry-text {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--neon-lime);
    text-shadow: 0 0 15px rgba(191, 255, 0, 0.4);
    letter-spacing: 1px;
}

.brand-text h1 {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: white;
}

.sub-brand {
    font-size: 0.75rem;
    color: var(--glacial-blue);
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.9;
}

.version {
    color: rgba(255,255,255,0.4);
    margin-left: 10px;
}

.satellite-status {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 229, 255, 0.05);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: var(--neon-blue);
    font-size: 0.8rem;
    font-weight: 700;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Administrative Toggle Switch [v3.2] */
.switch {
    position: relative;
    display: inline-block;
    width: 28px;
    height: 14px;
    margin-top: 2px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255,255,255,0.1);
    transition: .4s;
    border-radius: 34px;
    border: 1px solid rgba(255,255,255,0.1);
}

.slider:before {
    position: absolute;
    content: "";
    height: 10px;
    width: 10px;
    left: 2px;
    bottom: 2px;
    background-color: var(--text-dim);
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: rgba(191, 255, 0, 0.2);
    border-color: var(--neon-lime);
}

input:checked + .slider:before {
    transform: translateX(14px);
    background-color: var(--neon-lime);
    box-shadow: 0 0 10px var(--neon-lime);
}

.btn-tactical {
    background: var(--glacial-blue);
    color: black;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.btn-tactical:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.5);
}

.btn-ar-launch {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.75rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 5px;
}

.btn-ar-launch i {
    font-size: 0.9rem;
}

.btn-ar-launch:hover {
    background: var(--neon-cyan);
    color: black;
    box-shadow: 0 0 20px var(--neon-cyan);
    transform: translateY(-2px);
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Dashboard Layout */
.dashboard-root {
    display: grid;
    grid-template-columns: 1fr 350px;
    height: calc(100vh - 80px);
    padding: 30px;
    gap: 30px;
    overflow: hidden;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Shifting logic for Fleet Navigator [v65.1.61] */
.fleet-sidebar[style*="display: flex"]:not(.collapsed) ~ .dashboard-root {
    margin-left: 320px;
}

.fleet-sidebar.collapsed ~ .dashboard-root {
    margin-left: 80px;
}

.fleet-overview {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    padding-right: 10px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-tag {
    background: rgba(255,255,255,0.05);
    padding: 6px 15px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 10px;
}

.stat-tag.critical {
    color: var(--neon-red);
    background: rgba(255, 49, 49, 0.1);
    border: 1px solid rgba(255, 49, 49, 0.2);
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 20px;
}

.btn-delete-shipment {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    opacity: 0;
}

.shipment-card:hover .btn-delete-shipment {
    opacity: 1;
}

.btn-delete-shipment:hover {
    background: var(--neon-red);
    color: white;
    box-shadow: 0 0 15px var(--neon-red);
    border-color: var(--neon-red);
}

.grid-placeholder {
    grid-column: 1 / -1;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.02);
    border: 2px dashed rgba(255,255,255,0.05);
    border-radius: 20px;
    color: var(--text-dim);
    gap: 20px;
}

/* Shipment Card */
.shipment-card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 15px 18px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    display: flex !important;
    flex-direction: column !important;
}

.shipment-card:hover {
    transform: translateY(-5px);
    border-color: var(--glacial-blue);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
}

.card-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.folio-group h4 { font-size: 1rem; font-weight: 900; }
.folio-group p { font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; margin-top: 4px; }

.variety-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.variety-icon img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    mix-blend-mode: screen;
}

.card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.mini-stat {
    background: rgba(255,255,255,0.03);
    padding: 12px;
    border-radius: 12px;
}

.mini-stat .label { font-size: 0.6rem; color: var(--text-dim); letter-spacing: 1px; display: block; margin-bottom: 4px; }
.mini-stat .value { font-size: 1.1rem; font-weight: 800; }

.card-chart-area {
    height: 100px;
    width: 100% !important;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin: 10px 0;
    position: relative;
    border: 1px solid rgba(255,255,255,0.03);
}

.card-chart-area canvas {
    width: 100% !important;
    height: 100% !important;
}

.card-footer-tactical {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center;
    width: 100% !important;
    font-size: 0.65rem;
    color: var(--text-dim);
    margin-top: auto;
}

.integrity-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 800;
}

.eta-label {
    font-weight: 700;
    font-size: 0.7rem;
}

.signal-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--neon-cyan);
}

.integrity-ok { color: var(--neon-lime); background: rgba(191, 255, 0, 0.1); border: 1px solid rgba(191, 255, 0, 0.2); }
.integrity-warning { color: #ffcc00; background: rgba(255, 204, 0, 0.1); border: 1px solid rgba(255, 204, 0, 0.2); }
.integrity-critical { color: #ff3131; background: rgba(255, 49, 49, 0.1); border: 1px solid rgba(255, 49, 49, 0.2); }

/* Pulse Indicator [v3.2] */
.sync-pulse-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 6px;
    height: 6px;
    background: var(--neon-lime);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-lime);
    animation: sync-pulse-glow 2s infinite ease-in-out;
}

@keyframes sync-pulse-glow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* Side Panel - Ergonómico con Acordeón HUD */
.side-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    overflow: hidden;
}

.hud-section {
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
}

.hud-section.fixed {
    transition: none;
}

.hud-section.active {
    flex: 1 !important;
}

.hud-section:not(.active):not(.fixed) {
    flex: 0 0 45px !important;
}

.card-header {
    background: rgba(255,255,255,0.05);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 45px;
}

.hud-toggle {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.hud-section.active .hud-toggle {
    transform: rotate(180deg);
}

.hud-expandable {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hud-section.active .hud-expandable {
    opacity: 1;
}

.terminal-body {
    padding: 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #48bb78;
    overflow-y: auto;
    flex: 1;
    background: rgba(0,0,0,0.2);
}

.log-line { margin-bottom: 6px; line-height: 1.4; }

.metrics-summary {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 10px;
}

.metric-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 20px;
}

.metric-card .label { font-size: 0.65rem; color: var(--text-dim); display: block; margin-bottom: 10px; font-weight: 700; }
.metric-card .value { font-size: 1.8rem; font-weight: 900; color: white; display: block; }
.metric-card .value.neon { color: var(--glacial-blue); text-shadow: 0 0 10px rgba(0, 229, 255, 0.5); }

/* Modals & Overlays */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.overlay.active { display: flex; opacity: 1; }

.glass-panel {
    background: rgba(15, 20, 30, 0.98);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 40px;
    position: relative;
}

.detail-card { width: 90%; max-width: 1200px; max-height: 90vh; overflow-y: auto; }
.modal-card { width: 500px; }

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.5;
}

.close-btn:hover { opacity: 1; }

.detail-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; }
.detail-title-group h2 { font-size: 2rem; font-weight: 900; }

/* [v61.23.28.22] DISPATCH CENTER & TACTICAL LABELS */
.dispatch-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

.dispatch-summary-box {
    display: flex;
    justify-content: space-around;
    background: rgba(255,255,255,0.03);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px dashed rgba(255,255,255,0.1);
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.summary-item label {
    font-size: 0.6rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.summary-item span {
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
}

.label-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.label-preview-card {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.label-header {
    background: rgba(255,255,255,0.05);
    padding: 8px;
    font-size: 0.65rem;
    font-weight: 900;
    text-align: center;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.qr-preview {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.qr-preview img {
    width: 180px;
    height: 180px;
    border: 4px solid white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,229,255,0.2);
}

.label-footer {
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(0,0,0,0.1);
}

.label-footer p {
    font-size: 0.55rem;
    opacity: 0.5;
    text-transform: uppercase;
}

.print-control-group {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.print-control-group input {
    width: 70px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--neon-cyan);
    padding: 8px;
    border-radius: 8px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 900;
}

.print-control-group input:focus {
    border-color: var(--neon-cyan);
    outline: none;
    box-shadow: 0 0 10px rgba(0,229,255,0.3);
}

@media (max-width: 600px) {
    .label-grid {
        grid-template-columns: 1fr;
    }
}

.detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.chart-container-large {
    background: rgba(0,0,0,0.3);
    border-radius: 24px;
    padding: 20px;
    height: 400px;
}

.incident-scroll { height: 350px; overflow-y: auto; }

.detail-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
    margin-top: auto;
}

.logistic-info {
    display: flex;
    gap: 30px;
}

.logistic-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.logistic-item label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--neon-cyan);
    font-weight: 800;
    letter-spacing: 1px;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logistic-item label i {
    font-size: 0.55rem;
}

.logistic-item span {
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-report {
    background: var(--glacial-blue);
    color: black;
    font-weight: 900;
    padding: 12px 25px;
    border: none;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.btn-report:hover {
    box-shadow: 0 0 30px var(--glacial-blue);
    transform: translateY(-2px);
}

/* Indicators & Components */
.signal-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--neon-cyan);
}

.signal-indicator i { animation: signal-pulse 2s infinite ease-in-out; }

@keyframes signal-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; text-shadow: 0 0 5px var(--neon-cyan); }
}

.tactical-btn {
    background: rgba(0, 229, 255, 0.05);
    color: var(--glacial-blue);
    border: 1px solid var(--glacial-blue);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tactical-btn:hover {
    background: var(--glacial-blue);
    color: black;
    box-shadow: 0 0 15px var(--glacial-blue);
}

.btn-reset {
    border-color: var(--neon-reset);
    color: var(--neon-reset);
    background: rgba(255, 123, 0, 0.05);
}

.btn-reset:hover {
    background: var(--neon-reset);
    color: white;
    box-shadow: 0 0 15px var(--neon-reset);
}

/* Scrollbars - Sovereign Standard */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--glacial-blue); }

.form-grid { display: flex; flex-direction: column; gap: 20px; margin: 30px 0; }
.input-group label { display: block; font-size: 0.7rem; color: var(--text-dim); margin-bottom: 8px; letter-spacing: 1px; }
.input-group input, .input-group select {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px;
    border-radius: 8px;
    color: white;
    outline: none;
}
.dual-input { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }

.input-group select option {
    background: #1a202c; /* Fondo oscuro sólido para las opciones */
    color: white;
}

.modal-actions { display: flex; justify-content: flex-end; gap: 15px; }

.btn-cancel { background: none; border: 1px solid rgba(255,255,255,0.2); color: white; padding: 10px 20px; border-radius: 8px; cursor: pointer; }
.btn-confirm { background: var(--glacial-blue); border: none; color: black; padding: 10px 20px; border-radius: 8px; cursor: pointer; font-weight: 900; }

/* Bridge & Scanner UI */
.qr-container {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 20px auto;
    background: white;
    padding: 10px;
    border-radius: 12px;
}

.qr-container img {
    width: 100%;
    height: 100%;
}

.qr-corners span {
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--glacial-blue);
    border-style: solid;
    border-width: 0;
}

.qr-corners span:nth-child(1) { top: -5px; left: -5px; border-top-width: 4px; border-left-width: 4px; }
.qr-corners span:nth-child(2) { top: -5px; right: -5px; border-top-width: 4px; border-right-width: 4px; }
.qr-corners span:nth-child(3) { bottom: -5px; left: -5px; border-bottom-width: 4px; border-left-width: 4px; }
.qr-corners span:nth-child(4) { bottom: -5px; right: -5px; border-bottom-width: 4px; border-right-width: 4px; }

.bridge-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    color: var(--neon-blue);
    font-weight: 800;
    font-size: 0.9rem;
}

.scanner-viewfinder {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.laser-line {
    position: absolute;
    top: 50%;
    left: 10%;
    width: 80%;
    height: 2px;
    background: var(--neon-red);
    box-shadow: 0 0 15px var(--neon-red);
    z-index: 10;
    animation: laser-sweep 2s infinite ease-in-out;
}

@keyframes laser-sweep {
    0%, 100% { transform: translateY(-150px); opacity: 0.5; }
    50% { transform: translateY(150px); opacity: 1; }
}

.target-brackets {
    width: 250px;
    height: 150px;
    border: 2px solid rgba(255,255,255,0.2);
    position: relative;
}

.target-brackets::after {
    content: '';
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border: 2px solid var(--glacial-blue);
    mask-image: radial-gradient(circle at center, transparent 70%, black 71%);
    opacity: 0.5;
    animation: pulse 2s infinite;
}

.scanner-header, .scanner-footer {
    position: absolute;
    width: 100%;
    text-align: center;
    color: white;
    padding: 20px;
    font-weight: 800;
    letter-spacing: 2px;
}

.scanner-header { top: 20px; font-size: 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.1); }

.scanner-footer { bottom: 20px; font-size: 0.9rem; color: var(--glacial-blue); }

.pulse-icon { animation: pulse-icon 1.5s infinite; }
@keyframes pulse-icon {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0.6; }
}

/* [v7.5.42] TACTICAL CLOAK: Ocultamiento de simulación sin pérdida de datos */
.sim-hidden, 
body:not(.sim-active) .sim-card,
body:not(.sim-active) .card-chart-area {
    display: none !important;
}

/* [v61.23.28] Refinamiento de HUD (Canal Verde) */
.partida-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.partida-card:hover {
    background: rgba(191, 255, 0, 0.1) !important;
    border-color: rgba(191, 255, 0, 0.4) !important;
}

/* [v65.1.62] ENTERPRISE FLEET NAVIGATOR STYLES (GeoVision Premium Parity) */
.fleet-sidebar {
    position: fixed;
    top: 80px;
    left: 0;
    width: 280px;
    height: calc(100vh - 80px);
    background: rgba(5, 7, 12, 0.4) !important;
    backdrop-filter: blur(30px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(180%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    flex-direction: column;
    z-index: 10000;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fleet-sidebar.collapsed {
    width: 80px;
}

.sidebar-collapse-trigger {
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 48px;
    background: #05070c;
    border: 1px solid var(--neon-lime);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-lime);
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(191, 255, 0, 0.3);
}

.sidebar-collapse-trigger:hover {
    background: var(--neon-lime);
    color: black;
    box-shadow: 0 0 15px var(--neon-lime);
}

.fleet-sidebar.collapsed .sidebar-collapse-trigger i {
    transform: rotate(180deg);
}

.fleet-title {
    padding: 35px 20px 15px 20px;
    font-size: 1rem;
    font-weight: 900;
    color: var(--neon-lime);
    text-shadow: 0 0 10px rgba(191, 255, 0, 0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
}

#fleet-help-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    background: rgba(191, 255, 0, 0.1);
    border: 1px solid var(--neon-lime);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-lime);
    font-weight: 800;
    cursor: pointer;
    font-size: 12px;
    z-index: 10002;
}

.fleet-sidebar.collapsed #fleet-help-btn {
    display: none;
}

.fleet-list {
    padding: 15px;
    flex: 1;
    overflow-y: auto;
}

.fleet-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 14px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 15px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.fleet-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.fleet-card.active {
    background: rgba(191, 255, 0, 0.05);
    border-color: var(--neon-lime);
    box-shadow: 0 0 20px rgba(191, 255, 0, 0.15), inset 0 0 10px rgba(191, 255, 0, 0.05);
}

.fleet-sidebar.collapsed .fleet-list {
    padding: 10px 5px;
}

/* [v65.1.62] CLEAN COLLAPSE: Ocultar título y nombres para evitar solapamientos */
.fleet-sidebar.collapsed .fleet-title,
.fleet-sidebar.collapsed .fleet-card-name,
.fleet-sidebar.collapsed .fleet-card-info {
    display: none !important;
}

.fleet-sidebar.collapsed .fleet-card {
    grid-template-columns: 1fr;
    padding: 12px 5px;
    justify-content: center;
    border: none;
    background: transparent;
}

/* [v65.1.62] NEON FOCUS: Identificador visual para huerto activo colapsado (High Visibility) */
.fleet-sidebar.collapsed .fleet-card.active .fruit-icon-container {
    border: 2px solid var(--neon-lime) !important;
    box-shadow: 0 0 25px var(--neon-lime), inset 0 0 10px var(--neon-lime) !important;
    animation: orchard-pulse 2s infinite ease-in-out;
    overflow: visible !important;
    z-index: 10;
}

@keyframes orchard-pulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.15); filter: brightness(1.3); box-shadow: 0 0 35px var(--neon-lime); }
}

.fruit-icon-container {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.fleet-card:hover .fruit-icon-container {
    transform: scale(1.1);
    border-color: var(--neon-lime);
    box-shadow: 0 0 15px rgba(191, 255, 0, 0.3);
}

.fruit-img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    mix-blend-mode: screen;
    filter: brightness(1.1);
}

.fleet-card-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.fleet-card-name {
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
    text-transform: capitalize;
}

/* [v65.1.62] Eliminado duplicado de ACTUAL (prevailing native badge) */

/* Hide Phytosanitary / Extra labels for ColdChain context */
.fleet-card-info div:not(.fleet-card-name) {
    display: none !important;
}

/* Hide trash icon by default, show on hover */
.delete-orchard-btn, .btn-delete-shipment {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: var(--neon-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.fleet-card:hover .delete-orchard-btn {
    opacity: 1;
    pointer-events: auto;
}

.fleet-placeholder-card {
    padding: 30px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-dim);
    font-size: 0.7rem;
}
