* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f9;
    color: #111827;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: #111827;
    color: white;
    padding: 20px 15px;
    flex-shrink: 0;
}

.admin-sidebar h2 {
    margin: 0 0 25px;
}

.admin-sidebar a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 6px;
    font-weight: 600;
}

.admin-sidebar a:hover {
    background: #8a2be2;
}

.sidebar-badge {
    float: right;
    min-width: 22px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 12px;
    text-align: center;
}

.admin-main {
    flex: 1;
    min-width: 0;
}

.admin-header {
    background: #111;
    color: white;
    padding: 15px 20px;
    font-weight: bold;
}

main {
    padding: 30px;
}

.container {
    max-width: 1200px;
    margin: auto;
}

h1, h2, h3 {
    margin-top: 0;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.col-sm-6,
.col-md-6,
.col-lg-2,
.col-6 {
    flex: 1;
}

.card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.card-header {
    padding: 18px 22px;
    border-bottom: 1px solid #e5e7eb;
}

.card-body {
    padding: 0;
}

.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
}

.table th {
    background: #f9fafb;
    padding: 14px;
    text-align: left;
    font-weight: 800;
    border-bottom: 1px solid #e5e7eb;
}

.table td {
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: #f3f4f6;
}

.admin-aviso-pendiente {
    background: #fff7ed;
}

.admin-form {
    background: white;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.mb-3 {
    margin-bottom: 18px;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 7px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
}

.form-inline {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0;
}

.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
}

.btn-sm {
    padding: 7px 11px;
    font-size: 13px;
}

.btn-primary { background: #2563eb; color: white; }
.btn-success { background: #16a34a; color: white; }
.btn-secondary { background: #6b7280; color: white; }
.btn-warning { background: #f59e0b; color: #111; }
.btn-danger { background: #dc2626; color: white; }
.btn-info { background: #0ea5e9; color: white; }

td:last-child {
    white-space: nowrap;
}

td:last-child .btn {
    min-width: auto !important;
    margin-right: 5px;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-info { background: #0ea5e9; color: white; }
.badge-primary { background: #2563eb; color: white; }
.badge-warning { background: #f59e0b; color: #111827; }
.badge-success { background: #16a34a; color: white; }
.badge-danger { background: #dc2626; color: white; }
.badge-dark { background: #111827; color: white; }
.badge-secondary { background: #6b7280; color: white; }

.small-box {
    border-radius: 14px;
    padding: 22px;
    color: white;
    min-height: 115px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.small-box h3 {
    font-size: 30px;
    margin: 0;
}

.small-box p {
    margin: 6px 0;
}

.small-box-footer {
    color: white;
    text-decoration: none;
}

.bg-info { background: #0891b2; }
.bg-success { background: #16a34a; }
.bg-warning { background: #f59e0b; color: #111; }
.bg-primary { background: #2563eb; }
.bg-secondary { background: #6b7280; }
.bg-danger { background: #dc2626; }

.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.alert-success { background: #dcfce7; color: #166534; }
.alert-danger { background: #fee2e2; color: #991b1b; }

.d-flex { display: flex; gap: 8px; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-nowrap { white-space: nowrap; }
.text-muted { color: #6b7280; }
.text-success { color: #16a34a; }
.text-danger { color: #dc2626; }
.text-primary { color: #2563eb; }
.font-weight-bold { font-weight: 800; }

.cabecera {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}


/* TRACKING */
.timeline {
    position: relative;
    margin: 25px;
    padding-left: 25px;
    border-left: 3px solid #e5e7eb;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.timeline-punto {
    width: 14px;
    height: 14px;
    background: #2563eb;
    border-radius: 50%;
    position: absolute;
    left: -33px;
    top: 6px;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #2563eb;
}

.timeline-contenido {
    background: #f9fafb;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
}

.timeline-fecha {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 6px;
}

.timeline-estado {
    font-weight: 800;
    color: #111827;
    margin-bottom: 10px;
}

.timeline-detalle {
    line-height: 1.6;
}

.small-box {
    border-radius: 14px;
    padding: 20px;
    color: white;
    position: relative;
}

/* QUITAMOS ICONO COMPLETAMENTE */
.small-box .icon {
    display: none;
}

/* FOOTER MEJORADO */
.small-box-footer {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0.9;
}
