* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html, body {
    height: 100%;
}

body {
    background-color: #f0f4f8;
    color: #1a202c;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.encabezado {
    background-color: #0d1527;
    padding: 15px 20px;
    text-align: left;
}

.btn-atras {
    display: inline-block;
    padding: 8px 18px;
    background-color: #3b82f6;
    color: #ffffff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-family: sans-serif;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.btn-atras:hover {
    background-color: #2563eb;
}

.top-header {
    background-color: #0b1d40;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
}

.brand {
    font-size: 24px;
    font-weight: 800;
    color: #3b82f6;
}

.brand span {
    color: #ffffff;
}

.user-info {
    font-size: 14px;
    color: #cbd5e1;
}

.user-info strong {
    color: #ffffff;
}

.app-layout {
    display: flex;
    flex: 1;
}

.sidebar {
    width: 220px;
    background-color: #0f2552;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.sidebar-nav a {
    color: #94a3b8;
    text-decoration: none;
    padding: 14px 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar-nav a:hover {
    color: #ffffff;
}

.sidebar-nav a.active {
    background-color: #3b82f6;
    color: #ffffff;
    font-weight: 600;
}

.main-content {
    flex: 1;
    padding: 30px;
}

.stats-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    flex: 1;
    background-color: #ffffff;
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.stat-title {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 10px;
    font-weight: 500;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: #0f2552;
}

.table-container {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.table-header {
    background-color: #e2e8f0;
    padding: 16px 24px;
}

.table-header h3 {
    font-size: 15px;
    color: #1e293b;
    font-weight: 700;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th {
    padding: 16px 24px;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    border-bottom: 1px solid #f1f5f9;
}

.data-table td {
    padding: 16px 24px;
    font-size: 14px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

.status {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status.entregado {
    background-color: #d1fae5;
    color: #059669;
}

.status.pendiente {
    background-color: #fef3c7;
    color: #d97706;
}

.right-panel {
    width: 250px;
    background-color: #ffffff;
    padding: 30px 20px;
}

.right-panel h3 {
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 18px;
}

.right-panel ul {
    list-style: none;
}

.right-panel li {
    font-size: 13px;
    color: #475569;
    margin-bottom: 12px;
    position: relative;
    padding-left: 14px;
}

.right-panel li::before {
    content: "•";
    color: #3b82f6;
    font-weight: bold;
    position: absolute;
    left: 0;
}

footer {
    background-color: #0b1d40;
    color: #cbd5e1;
    text-align: center;
    padding: 14px 0;
    font-size: 12px;
    width: 100%;
    margin-top: auto;
}

@media (max-width: 992px) {
    .app-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding: 0;
    }

    .sidebar-nav {
        flex-direction: row;
        justify-content: space-around;
    }

    .sidebar-nav a {
        padding: 12px 10px;
        text-align: center;
        flex: 1;
    }

    .right-panel {
        width: 100%;
        border-top: 1px solid #e2e8f0;
    }
}

@media (max-width: 768px) {
    .top-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 15px 20px;
    }

    .stats-grid {
        flex-direction: column;
    }

    .main-content {
        padding: 20px 15px;
    }
}