:root {
    --navy-blue: #00030e;
    --navy-blue-container: #0a1d3a;
    --golden-yellow: #ffbb16;
    --surface-light: #f8f9fa;
    --surface-white: #ffffff;
    --text-muted: #475569;
    --border-color: #E2E8F0;
    --status-green: #10B981;
    --status-red: #EF4444;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--surface-light);
    color: var(--navy-blue);
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: var(--navy-blue-container);
    color: var(--surface-white);
    padding: 24px;
}

.sidebar .brand {
    font-size: 22px;
    font-weight: 700;
    color: var(--golden-yellow);
    margin-bottom: 40px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li a {
    display: block;
    color: #b6c7ec;
    text-decoration: none;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-weight: 500;
}

.sidebar ul li a:hover, .sidebar ul li a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--surface-white);
}

.main-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

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

h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.btn-primary {
    background-color: var(--golden-yellow);
    color: var(--navy-blue);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
}

.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.data-table th, .data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.data-table th {
    background-color: var(--navy-blue-container);
    color: var(--surface-white);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
}

.col-fisico {
    background-color: #f0f4ff;
    color: var(--navy-blue);
}

.input-fisico {
    width: 80px;
    padding: 6px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
}
.input-fisico:focus {
    outline: none;
    border-color: var(--golden-yellow);
    box-shadow: 0 0 0 2px rgba(255, 187, 22, 0.2);
}

.trazabilidad-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    background-color: #e2e8f0;
    color: var(--text-muted);
}
.trazabilidad-badge.in { background-color: #dcfce7; color: #166534; }
.trazabilidad-badge.out { background-color: #fee2e2; color: #991b1b; }

.status-match {
    color: var(--status-green);
    font-weight: bold;
}
.status-mismatch {
    color: var(--status-red);
    font-weight: bold;
}

.loading {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    background: var(--surface-white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--navy-blue);
}

.card.done {
    border-left-color: var(--status-green);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.card-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.kpi-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}
.kpi-val {
    font-weight: 700;
}
