/* ============================================================
   ALGEMEEN
============================================================ */
body {
    font-family: Arial, sans-serif;
    background-color: #f7f8fa;
    color: #2B415D;
    margin: 0;
}

/* ============================================================
   CONTAINER
============================================================ */
.container {
    max-width: 1200px;
    margin: 30px auto;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

/* ============================================================
   KNOPPEN
============================================================ */
.btn {
    background-color: #F28B02;
    color: white;
    padding: 9px 16px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: 0.15s;
    cursor: pointer;
}

.btn:hover {
    background-color: #ff9f2d;
}

.btn-reset {
    background-color: #2B415D;
    color: white;
    padding: 9px 16px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: 0.15s;
}

.btn-reset:hover {
    background-color: #F28B02;
}

/* ============================================================
   UNIFORME FORM FIELDS
============================================================ */
.field {
    margin-bottom: 15px;
}

.field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

input[type="text"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
    transition: 0.15s;
    box-sizing: border-box;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #F28B02;
    outline: none;
    box-shadow: 0 0 4px rgba(242,139,2,0.35);
}

textarea {
    min-height: 70px;
    resize: vertical;
}

/* ============================================================
   ✔ RIDE CHECKBOXES – Compact en altijd op één rij
============================================================ */
.ride-checkbox-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
}

.ride-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    white-space: nowrap;
}

.ride-checkbox input {
    width: 16px;
    height: 16px;
    margin: 0;
}

/* ============================================================
   FILTERBALK COMPACT & SLANK
============================================================ */
.filter-bar {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 0 1 auto; /* past zich aan */
}

.filter-row label {
    font-weight: 600;
    white-space: nowrap;
}

.filter-row input[type="text"],
.filter-row input[type="date"],
.filter-row select {
    padding: 6px 8px;
    font-size: 0.9rem;
    border-radius: 6px;
    border:1px solid #ccc;
    min-width: 120px;
    max-width: 200px; /* voorkom te grote inputs */
}

.filter-row button,
.filter-row .btn-reset {
    flex: 0 0 auto;
    white-space: nowrap;
    margin-left: auto; /* knop rechts */
    padding: 6px 12px;
    font-size: 0.9rem;
}

/* Tablet: 2 kolommen */
@media (max-width: 1024px) {
    .filter-row {
        gap: 8px;
    }
    .filter-item {
        flex: 1 1 45%;
    }
}

/* Mobiel: 1 kolom */
@media (max-width: 600px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-item {
        width: 100%;
    }
    .filter-row button,
    .filter-row .btn-reset {
        width: 100%;
        margin-left: 0;
    }
}

/* ============================================================
   TABEL
============================================================ */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px 8px;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #2B415D;
    color: white;
    text-align: left;
    vertical-align: middle;
}

/* Sorteerbare headers */
.sort-link {
    color: white;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
}

.sort-link:hover {
    color: #ff9f2d;
}

/* Actie-iconen */
.icon-btn {
    display: inline-block;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 4px 6px;
    margin: 0 2px;
    border-radius: 6px;
    transition: background 0.15s;
    color: #2B415D;
}

.icon-btn:hover {
    background-color: #F28B02;
    color: white;
}

tr:hover {
    background-color: #f5f5f5;
}

/* TABEL - afwisselende rijen kleur */
table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}
/* Hover voor alle tabellen met klikbare rijen */
table tbody tr:hover {
    background-color: #f5f5f5; /* zelfde als rittenoverzicht */
    cursor: pointer;
}


/* ============================================================
   KLANT BOX
============================================================ */
.customer-info {
    background: #f7f9fc;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #dce3ec;
    line-height: 1.6;
}

/* ============================================================
   ALERTS
============================================================ */
.error-message,
.message-error {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
    padding: 10px;
    border-radius: 6px;
}

.message-success {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 6px;
}

/* ============================================================
   PRINT
============================================================ */
@media print {
    .no-print { display: none; }
    body { background: white; }
}
