* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: #f4f6f9; color: #333; line-height: 1.5;
}
.nav {
    background: #0B2C5E; padding: 15px 30px;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.nav .brand { color: white; font-weight: bold; font-size: 18px; }
.nav .links { display: flex; gap: 15px; align-items: center; }
.nav a {
    color: white; text-decoration: none; padding: 8px 15px;
    border-radius: 5px; transition: background 0.2s;
}
.nav a:hover { background: rgba(255,255,255,0.15); }
.nav a.logout { background: #C0392B; }
.nav a.logout:hover { background: #922B21; }
.nav .user { color: #B8C7E0; font-size: 14px; }

.container {
    max-width: 1100px; margin: 30px auto; padding: 0 20px;
}
.card {
    background: white; border-radius: 10px;
    padding: 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.card h2 {
    color: #0B2C5E; border-bottom: 2px solid #0B2C5E;
    padding-bottom: 10px; margin-bottom: 25px;
}

label {
    display: block; margin-top: 15px; margin-bottom: 5px;
    font-weight: 600; color: #444; font-size: 14px;
}
input, select, textarea {
    width: 100%; padding: 10px 12px;
    border: 1px solid #ccc; border-radius: 6px;
    font-size: 14px; font-family: inherit;
    transition: border 0.2s;
}
input:focus, select:focus { 
    outline: none; border-color: #2E86C1;
    box-shadow: 0 0 0 3px rgba(46,134,193,0.15);
}
input[readonly] { background: #f0f0f0; cursor: not-allowed; }

.btn {
    display: inline-block; padding: 12px 24px;
    border: none; border-radius: 6px;
    font-weight: bold; cursor: pointer; font-size: 14px;
    text-decoration: none; transition: all 0.2s;
}
.btn-primary { background: #2E86C1; color: white; }
.btn-primary:hover { background: #1A5276; }
.btn-success { background: #27AE60; color: white; width: 100%; margin-top: 25px; }
.btn-success:hover { background: #1E8449; }
.btn-danger { background: #C0392B; color: white; }
.btn-danger:hover { background: #922B21; }
.btn-small { padding: 6px 12px; font-size: 12px; }

.total-box {
    background: #e8f4fd; border-left: 5px solid #2E86C1;
    padding: 15px; margin-top: 20px; border-radius: 6px;
    font-size: 18px; font-weight: bold; color: #0B2C5E;
}
.recargo-check {
    display: flex; align-items: center; gap: 10px;
    margin-top: 20px; padding: 12px; background: #fdf0ef;
    border-left: 4px solid #C0392B; border-radius: 6px;
}
.recargo-check input[type="checkbox"] { width: auto; }
.recargo-check label { margin: 0; color: #C0392B; }

table {
    width: 100%; border-collapse: collapse; margin-top: 20px;
    font-size: 13px;
}
table thead { background: #0B2C5E; }
table th { color: white; padding: 12px; text-align: left; font-weight: 600; }
table td { padding: 10px 12px; border-bottom: 1px solid #e0e0e0; }
table tbody tr:hover { background: #f0f8ff; }
table .total-row { background: #e8f5e9; font-weight: bold; }

.filtros {
    display: flex; gap: 15px; flex-wrap: wrap;
    margin-bottom: 20px; padding: 15px;
    background: #f8f9fa; border-radius: 8px;
}
.filtros > div { flex: 1; min-width: 200px; }
.filtros label { margin-top: 0; }

.badge {
    display: inline-block; padding: 3px 10px;
    border-radius: 12px; font-size: 11px; font-weight: bold;
}
.badge-efectivo { background: #d4edda; color: #155724; }
.badge-transferencia { background: #d1ecf1; color: #0c5460; }
.badge-tarjeta { background: #fff3cd; color: #856404; }
.badge-pagoralia { background: #e2d5f1; color: #4a235a; }
.badge-deposito { background: #f8d7da; color: #721c24; }

.alert {
    padding: 12px 20px; border-radius: 6px;
    margin-bottom: 20px; font-size: 14px;
}
.alert-success { background: #d4edda; color: #155724; border-left: 4px solid #27AE60; }
.alert-error { background: #f8d7da; color: #721c24; border-left: 4px solid #C0392B; }
.alert-info { background: #d1ecf1; color: #0c5460; border-left: 4px solid #2E86C1; }

.pagination { display: flex; gap: 5px; margin-top: 20px; justify-content: center; }
.pagination a, .pagination span {
    padding: 8px 12px; border-radius: 4px;
    background: white; color: #2E86C1;
    text-decoration: none; border: 1px solid #ddd;
}
.pagination .active { background: #2E86C1; color: white; }