/**
 * DBS Winterbeurt Frontend Styles
 */

/* Form Wrapper */
.dbs-winterbeurt-form-wrapper,
.dbs-status-checker-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.dbs-form-title {
    margin: 0 0 25px 0;
    font-size: 24px;
    color: #1d2327;
    text-align: center;
}

/* Form Elements */
.dbs-winterbeurt-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dbs-form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dbs-form-row label {
    font-weight: 600;
    color: #1d2327;
    font-size: 14px;
}

.dbs-form-row .required {
    color: #d63638;
}

.dbs-form-row input,
.dbs-form-row select,
.dbs-form-row textarea {
    padding: 12px 15px;
    border: 2px solid #dcdcde;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.dbs-form-row input:focus,
.dbs-form-row select:focus,
.dbs-form-row textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
}

.dbs-form-row input.error,
.dbs-form-row select.error,
.dbs-form-row textarea.error {
    border-color: #d63638;
}

.dbs-field-hint {
    font-size: 12px;
    color: #646970;
}

.dbs-field-error {
    font-size: 12px;
    color: #d63638;
}

/* Half Row */
.dbs-form-row-half {
    flex-direction: row;
    gap: 15px;
}

.dbs-form-row-half .dbs-form-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Inline Form */
.dbs-form-inline {
    flex-direction: row;
    align-items: flex-end;
    gap: 10px;
}

.dbs-form-inline input {
    flex: 1;
}

/* Submit Button */
.dbs-submit-btn {
    background: linear-gradient(180deg, #2271b1, #135e96);
    color: #fff;
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.dbs-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.dbs-submit-btn:active {
    transform: translateY(0);
}

.dbs-submit-btn:disabled {
    background: #a7aaad;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.dbs-form-submit {
    margin-top: 10px;
}

.dbs-form-privacy {
    font-size: 12px;
    color: #646970;
    text-align: center;
    margin: 10px 0 0 0;
}

/* Messages */
.dbs-form-message {
    padding: 15px;
    border-radius: 6px;
    font-size: 14px;
}

.dbs-form-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.dbs-form-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Success State */
.dbs-form-success {
    text-align: center;
    padding: 40px 20px;
}

.dbs-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(180deg, #00a32a, #008a20);
    color: #fff;
    font-size: 40px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.dbs-form-success h3 {
    font-size: 22px;
    margin: 0 0 10px 0;
    color: #00a32a;
}

.dbs-form-success p {
    color: #646970;
    margin: 0 0 10px 0;
}

.dbs-registration-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.dbs-registration-nr,
.dbs-registration-code {
    font-size: 16px;
    color: #1d2327;
    margin: 8px 0;
}

.dbs-code-highlight {
    display: inline-block;
    background: #2271b1;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 18px;
    letter-spacing: 2px;
    margin-left: 5px;
}

.dbs-save-code-hint {
    font-size: 13px;
    color: #646970;
    font-style: italic;
}

/* Pincode row animation */
.dbs-pincode-row {
    overflow: hidden;
}

.dbs-pincode-row input {
    border-color: #dba617;
}

.dbs-pincode-row .dbs-field-hint {
    color: #856404;
}

/* Status Checker */
.dbs-status-intro {
    text-align: center;
    color: #646970;
    margin-bottom: 20px;
}

.dbs-status-result {
    margin-top: 30px;
}

.dbs-status-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.dbs-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dcdcde;
    flex-wrap: wrap;
    gap: 10px;
}

.dbs-status-ids {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dbs-status-nr {
    font-size: 20px;
    font-weight: 700;
    color: #1d2327;
}

.dbs-status-code-display {
    font-size: 12px;
    color: #646970;
    font-family: monospace;
}

.dbs-status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.dbs-status-badge.status-aangemeld {
    background: #e3f2fd;
    color: #1565c0;
}

.dbs-status-badge.status-opgehaald {
    background: #fff3e0;
    color: #e65100;
}

.dbs-status-badge.status-rep-gereed {
    background: #e8f5e9;
    color: #2e7d32;
}

.dbs-status-badge.status-retour {
    background: #d4edda;
    color: #155724;
}

.dbs-status-badge.status-zelf {
    background: #f3e5f5;
    color: #7b1fa2;
}

.dbs-status-details {
    margin-bottom: 15px;
}

.dbs-status-row {
    display: flex;
    padding: 8px 0;
}

.dbs-status-label {
    width: 120px;
    color: #646970;
    font-size: 14px;
}

.dbs-status-value {
    flex: 1;
    font-weight: 500;
    color: #1d2327;
}

.dbs-status-explanation {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    font-size: 14px;
    color: #646970;
    line-height: 1.5;
}

.dbs-check-another {
    display: block;
    width: 100%;
    background: transparent;
    border: 2px solid #2271b1;
    color: #2271b1;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.dbs-check-another:hover {
    background: #2271b1;
    color: #fff;
}

/* Loading Spinner */
.dbs-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: dbs-spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes dbs-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media screen and (max-width: 600px) {
    .dbs-winterbeurt-form-wrapper,
    .dbs-status-checker-wrapper {
        padding: 20px;
        margin: 0 15px;
    }
    
    .dbs-form-row-half {
        flex-direction: column;
    }
    
    .dbs-form-inline {
        flex-direction: column;
    }
    
    .dbs-form-inline input,
    .dbs-form-inline button {
        width: 100%;
    }
    
    .dbs-status-row {
        flex-direction: column;
        gap: 4px;
    }
    
    .dbs-status-label {
        width: 100%;
    }
}

/* ============================================
   MACHINES SECTION STYLES
   ============================================ */

.dbs-machines-section {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e2e4e7;
}

.dbs-section-title {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #1d2327;
    font-weight: 600;
}

.dbs-machine-item {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
}

.dbs-machine-item:last-child {
    margin-bottom: 0;
}

.dbs-machine-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f1;
}

.dbs-machine-number {
    font-weight: 600;
    color: #2271b1;
    font-size: 14px;
}

.dbs-remove-machine {
    background: #dc3232;
    color: #fff;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: background 0.2s;
}

.dbs-remove-machine:hover {
    background: #a00;
}

.dbs-machine-item .dbs-form-row {
    margin-bottom: 12px;
}

.dbs-machine-item .dbs-form-row:last-child {
    margin-bottom: 0;
}

/* Merk en opmerking op een rij */
.dbs-machine-item .dbs-machine-row-inline {
    display: flex;
    gap: 15px;
}

.dbs-machine-item .dbs-machine-row-inline .dbs-form-row {
    flex: 1;
}

.dbs-add-machine-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background: #fff;
    border: 2px dashed #2271b1;
    border-radius: 6px;
    color: #2271b1;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.dbs-add-machine-btn:hover {
    background: #e7f3ff;
    border-style: solid;
}

/* Code input styling */
.dbs-code-input {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: monospace;
    font-size: 18px;
    text-align: center;
}

.dbs-code-format-hint {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

/* ============================================
   DASHBOARD STYLES
   ============================================ */

/* Login Box */
.dbs-dashboard-login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 40px 20px;
}

.dbs-dashboard-login-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.dbs-login-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.dbs-dashboard-login-box h2 {
    margin: 0 0 10px 0;
    color: #1d2327;
}

.dbs-dashboard-login-box p {
    color: #646970;
    margin: 0 0 25px 0;
}

.dbs-login-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.dbs-login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dbs-login-field input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #dcdcde;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
}

.dbs-login-field input:focus {
    outline: none;
    border-color: #2271b1;
}

.dbs-login-btn {
    display: inline-block;
    background: linear-gradient(180deg, #2271b1, #135e96);
    color: #fff;
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.dbs-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
    color: #fff;
}

/* Dashboard Wrapper */
.entry-content .dbs-dashboard-wrapper,
.dbs-dashboard-wrapper {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    box-sizing: border-box;
    overflow: hidden;
}

/* Force WordPress content area to not overflow */
.entry-content {
    overflow: hidden !important;
}

/* Header with title + seizoen selector */
.dbs-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.dbs-dashboard-title {
    margin: 0;
    font-size: 28px;
    color: #1d2327;
}

.dbs-seizoen-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dbs-seizoen-selector label {
    font-weight: 600;
    color: #1d2327;
    font-size: 14px;
    white-space: nowrap;
}

.dbs-seizoen-selector select {
    padding: 8px 30px 8px 12px;
    border: 2px solid #2271b1;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #2271b1;
    background: #fff;
    cursor: pointer;
    appearance: auto;
}

.dbs-seizoen-selector select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.25);
}

/* Stats row: boxes + progress */
.dbs-dashboard-stats-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

/* Stats */
.dbs-dashboard-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dbs-stat-box {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 8px 14px;
    text-align: center;
    min-width: 80px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.dbs-stat-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.dbs-stat-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    border-color: #2271b1;
}

.dbs-stat-clickable:active {
    transform: translateY(0);
}

.dbs-stat-box.dbs-stat-active {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34,113,177,0.3), 0 4px 12px rgba(0,0,0,0.1);
}

.dbs-stat-number {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #1d2327;
    line-height: 1.2;
}

.dbs-stat-label {
    display: block;
    font-size: 10px;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Progress bar in dashboard */
.dbs-dashboard-progress {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 12px 20px;
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.dbs-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    gap: 15px;
}

.dbs-progress-stat {
    font-size: 14px;
    color: #646970;
}

.dbs-progress-stat strong {
    font-size: 20px;
    font-weight: 700;
    color: #1d2327;
}

.dbs-progress-pct strong {
    color: #00a32a;
    font-size: 24px;
}

.dbs-dashboard-progress .dbs-progress-bar {
    height: 18px;
    background: #e0e0e0;
    border-radius: 9px;
    overflow: hidden;
}

.dbs-dashboard-progress .dbs-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00a32a 0%, #4ab866 100%);
    border-radius: 9px;
    transition: width 0.5s ease;
}

/* Copy to seizoen button */
.dbs-btn-copy-seizoen {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.dbs-btn-copy-seizoen:hover {
    background: #135e96;
}

.dbs-edit-actions-center {
    display: flex;
    align-items: center;
}

/* Status kleuren voor stat boxes */
.dbs-stat-aangemeld {
    border-left: 4px solid #2271b1;
}
.dbs-stat-aangemeld .dbs-stat-number {
    color: #2271b1;
}

.dbs-stat-opgehaald {
    border-left: 4px solid #dba617;
}
.dbs-stat-opgehaald .dbs-stat-number {
    color: #996800;
}

.dbs-stat-repgereed {
    border-left: 4px solid #00a32a;
}
.dbs-stat-repgereed .dbs-stat-number {
    color: #00a32a;
}

.dbs-stat-retour {
    border-left: 4px solid #8c8f94;
}
.dbs-stat-retour .dbs-stat-number {
    color: #8c8f94;
}

.dbs-stat-zelf {
    border-left: 4px solid #9b59b6;
}
.dbs-stat-zelf .dbs-stat-number {
    color: #9b59b6;
}

/* Filters */
.dbs-dashboard-filters {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    overflow: visible;
    position: relative;
    z-index: 10;
}

.dbs-filter-row {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
}

.dbs-filter-row:last-of-type {
    margin-bottom: 0;
}

.dbs-filter-row-2col {
    grid-template-columns: 1fr 1fr;
}

.dbs-filter-row-3col {
    grid-template-columns: 1fr 1fr 1fr;
}

.dbs-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dbs-filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
}

.dbs-filter-group input,
.dbs-filter-group select {
    padding: 10px 12px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    font-size: 14px;
}

.dbs-filter-group input:focus,
.dbs-filter-group select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
}

.dbs-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.dbs-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.dbs-btn-primary {
    background: #2271b1;
    color: #fff;
}

.dbs-btn-primary:hover {
    background: #135e96;
}

.dbs-btn-secondary {
    background: #f0f0f1;
    color: #1d2327;
}

.dbs-btn-secondary:hover {
    background: #dcdcde;
}

.dbs-btn-small {
    padding: 8px 15px;
    font-size: 13px;
}

.dbs-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dbs-results-count {
    margin-left: auto;
    color: #646970;
    font-size: 14px;
}

/* Column picker */
.dbs-column-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    margin-top: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dcdcde;
}

.dbs-column-option {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.dbs-column-option:hover {
    border-color: #2271b1;
}

.dbs-column-option input {
    margin: 0;
}

.dbs-column-option input:checked + span {
    font-weight: 600;
}

/* Maps link */
.dbs-maps-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #4285f4;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s;
}

.dbs-maps-link:hover {
    background: #3367d6;
    transform: scale(1.1);
}

.dbs-col-maps {
    width: 50px;
    text-align: center;
}

.dbs-col-adres {
    max-width: 180px;
}

/* Multi-select dropdown */
.dbs-multi-select {
    position: relative;
    min-width: 150px;
}

.dbs-multi-select.open {
    z-index: 99999;
}

.dbs-multi-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: border-color 0.2s;
}

.dbs-multi-select-trigger:hover,
.dbs-multi-select-trigger:focus {
    border-color: #2271b1;
    outline: none;
}

.dbs-multi-select.open .dbs-multi-select-trigger {
    border-color: #2271b1;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.dbs-multi-select-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dbs-multi-select-arrow {
    margin-left: 8px;
    font-size: 10px;
    color: #666;
    transition: transform 0.2s;
}

.dbs-multi-select.open .dbs-multi-select-arrow {
    transform: rotate(180deg);
}

.dbs-multi-select-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #2271b1;
    border-top: none;
    border-radius: 0 0 6px 6px;
    z-index: 99999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dbs-multi-select.open .dbs-multi-select-dropdown {
    display: block;
}

/* Select all/none buttons */
.dbs-multi-select-actions {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid #e2e4e7;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}

.dbs-multi-select-actions button {
    flex: 1;
    padding: 5px 8px;
    font-size: 12px;
    border: 1px solid #dcdcde;
    border-radius: 3px;
    background: #f6f7f7;
    color: #1d2327;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.dbs-multi-select-actions button:hover {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

/* Zoekfunctie in multi-select dropdown */
.dbs-multi-select-search {
    padding: 8px 12px;
    border-bottom: 1px solid #e2e4e7;
    position: sticky;
    top: 44px;
    background: #fff;
    z-index: 1;
}

.dbs-multi-select-search input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    font-size: 13px;
}

.dbs-multi-select-search input:focus {
    outline: none;
    border-color: #2271b1;
}

.dbs-multi-select-option {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.1s;
    margin: 0;
}

.dbs-multi-select-option:hover {
    background: #f0f6fc;
}

.dbs-multi-select-option input {
    margin: 0 10px 0 0;
}

.dbs-multi-select-option input:checked + span {
    font-weight: 600;
    color: #2271b1;
}

/* Filter count badges */
.dbs-filter-count {
    color: #2271b1;
    font-weight: 600;
    font-size: 12px;
}

.dbs-filter-count-zero {
    color: #b0b5b9;
    font-weight: 400;
}

.dbs-multi-select-option.dbs-filter-zero {
    opacity: 0.5;
}

.dbs-multi-select-option.dbs-filter-zero:hover {
    opacity: 0.8;
}

/* Active filters */
.dbs-active-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e4e7;
    flex-wrap: wrap;
}

.dbs-active-filters-label {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

.dbs-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dbs-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #e7f3ff;
    border: 1px solid #2271b1;
    border-radius: 15px;
    font-size: 12px;
    color: #2271b1;
}

.dbs-filter-tag-remove {
    cursor: pointer;
    font-weight: bold;
    opacity: 0.7;
}

.dbs-filter-tag-remove:hover {
    opacity: 1;
}

/* Loading */
.dbs-dashboard-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    color: #646970;
}

.dbs-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #dcdcde;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: dbs-spin 1s linear infinite;
}

@keyframes dbs-spin {
    to { transform: rotate(360deg); }
}

/* Table */
.dbs-dashboard-table-wrapper {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    box-sizing: border-box;
    width: 0;
    min-width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 1;
}

.dbs-dashboard-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.dbs-dashboard-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #1d2327;
    border-bottom: 2px solid #dcdcde;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.dbs-dashboard-table th:hover {
    background: #f0f0f1;
}

.dbs-dashboard-table th .dbs-sort-icon {
    opacity: 0.3;
    margin-left: 5px;
}

.dbs-dashboard-table th.sorted .dbs-sort-icon {
    opacity: 1;
}

.dbs-dashboard-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f1;
    vertical-align: top;
}

.dbs-dashboard-table tbody tr:hover {
    background: #f8f9fa;
}

.dbs-dashboard-table tbody tr:last-child td {
    border-bottom: none;
}

/* Column widths */
.dbs-col-nr { width: 60px; }
.dbs-col-code { width: 80px; }
.dbs-col-status { width: 140px; }
.dbs-col-postcode { width: 80px; }
.dbs-col-telefoon { width: 120px; }
.dbs-col-machine { width: 120px; }
.dbs-col-datum { width: 100px; }
.dbs-col-opmerking { max-width: 200px; }
.dbs-col-maps { width: 50px; text-align: center; }
.dbs-col-edit { width: 60px; text-align: center; }

/* Code styling */
.dbs-code {
    font-family: monospace;
    font-size: 11px;
    color: #666;
    background: #f0f0f1;
    padding: 2px 5px;
    border-radius: 3px;
}

.dbs-code-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.dbs-code-clickable:hover {
    background: #2271b1;
    color: #fff;
}

.dbs-code-sending {
    opacity: 0.5;
    pointer-events: none;
}

.dbs-code-sending::after {
    content: ' ⏳';
}

/* Ensure all header cells have background */
.dbs-dashboard-table thead tr {
    background: #f8f9fa;
}

.dbs-dashboard-table thead th {
    background: #f8f9fa;
}

/* Status in table */
.dbs-dashboard-table .dbs-status-cell select {
    padding: 6px 10px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
}

/* Status select basis styling */
.dbs-status-select {
    padding: 6px 28px 6px 10px !important;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 10px;
}

/* Status select kleuren */
.dbs-status-select option[value="AANGEMELD"] { color: #2271b1; }
.dbs-status-select option[value="OPGEHAALD"] { color: #996800; }
.dbs-status-select option[value="REP GEREED"] { color: #00a32a; }
.dbs-status-select option[value="RETOUR"] { color: #8c8f94; }
.dbs-status-select option[value="ZELF"] { color: #9b59b6; }

.dbs-status-select.status-aangemeld { background-color: #e7f3ff; border-color: #2271b1; color: #2271b1; }
.dbs-status-select.status-opgehaald { background-color: #fff8e5; border-color: #dba617; color: #996800; }
.dbs-status-select.status-rep-gereed { background-color: #e6f6ea; border-color: #00a32a; color: #00a32a; }
.dbs-status-select.status-retour { background-color: #f0f0f1; border-color: #8c8f94; color: #8c8f94; }
.dbs-status-select.status-zelf { background-color: #f5eef8; border-color: #9b59b6; color: #9b59b6; }

/* Row styling voor RETOUR - grijze tekst */
.dbs-dashboard-table tbody tr.status-retour {
    background-color: #f8f8f8;
}
.dbs-dashboard-table tbody tr.status-retour td {
    color: #a0a5aa !important;
}
.dbs-dashboard-table tbody tr.status-retour td a {
    color: #a0a5aa !important;
}
.dbs-dashboard-table tbody tr.status-retour .dbs-table-naam {
    color: #a0a5aa;
}
.dbs-dashboard-table tbody tr.status-retour .dbs-maps-link {
    opacity: 0.5;
}

.dbs-table-naam {
    font-weight: 600;
    color: #1d2327;
}

.dbs-table-phone {
    color: #2271b1;
    text-decoration: none;
}

.dbs-table-phone:hover {
    text-decoration: underline;
}

.dbs-table-opmerking {
    font-size: 12px;
    color: #646970;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.dbs-table-opmerking:hover {
    white-space: normal;
    overflow: visible;
}

.dbs-no-results td {
    text-align: center;
    padding: 40px;
    color: #646970;
}

/* Pagination */
.dbs-dashboard-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
}

.dbs-page-info {
    color: #646970;
    font-size: 14px;
}

/* Modal */
.dbs-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dbs-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.dbs-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.dbs-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #646970;
    line-height: 1;
}

.dbs-modal-close:hover {
    color: #1d2327;
}

.dbs-modal-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #1d2327;
}

.dbs-modal-body {
    line-height: 1.6;
}

.dbs-detail-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f1;
}

.dbs-detail-label {
    width: 120px;
    font-weight: 600;
    color: #646970;
    flex-shrink: 0;
}

.dbs-detail-value {
    flex: 1;
    color: #1d2327;
}

/* Responsive Dashboard */
@media screen and (max-width: 768px) {
    .dbs-dashboard-stats-row {
        flex-direction: column;
    }
    
    .dbs-dashboard-stats {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
    
    .dbs-stat-box {
        flex: 1;
        min-width: auto;
        padding: 6px 8px;
    }
    
    .dbs-stat-number {
        font-size: 18px;
    }
    
    .dbs-stat-label {
        font-size: 8px;
    }
    
    .dbs-dashboard-progress {
        min-width: 100%;
    }
    
    .dbs-filter-row,
    .dbs-filter-row-2col,
    .dbs-filter-row-3col {
        grid-template-columns: 1fr;
    }
    
    .dbs-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dbs-results-count {
        margin-left: 0;
        text-align: center;
    }
    
    /* Scrollable table container */
    .dbs-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -10px;
        padding: 0 10px;
    }
    
    .dbs-dashboard-table {
        font-size: 12px;
        min-width: 900px;
    }
    
    .dbs-dashboard-table th,
    .dbs-dashboard-table td {
        padding: 6px 8px;
        white-space: nowrap;
    }
    
    .dbs-dashboard-table td[data-column="naam"],
    .dbs-dashboard-table td[data-column="adres"],
    .dbs-dashboard-table td[data-column="opmerking"] {
        white-space: normal;
        min-width: 120px;
    }
    
    /* Bulk actions responsive */
    .dbs-bulk-row-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .dbs-bulk-buttons {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .dbs-bulk-divider {
        display: none;
    }
    
    /* Dashboard header */
    .dbs-dashboard-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .dbs-seizoen-wrapper {
        align-self: flex-start;
    }
    
    /* Modal responsive */
    .dbs-modal-large {
        max-width: 95vw;
    }
    
    /* Pagination */
    .dbs-pagination {
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media screen and (max-width: 480px) {
    .dbs-dashboard-stats {
        flex-wrap: wrap;
    }
    
    .dbs-stat-box {
        flex: 0 0 calc(33.33% - 6px);
        padding: 6px 4px;
    }
    
    .dbs-stat-number {
        font-size: 16px;
    }
    
    .dbs-bulk-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .dbs-filter-actions .dbs-btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   GEBELD & INGEPLAND STYLES
   ============================================ */

/* Gele achtergrond voor gebelde klanten */
.dbs-dashboard-table tr.gebeld-ingepland {
    background-color: #fff8e5 !important;
}

.dbs-dashboard-table tr.gebeld-ingepland:hover {
    background-color: #fff3cc !important;
}

.dbs-dashboard-table tr.gebeld-niet-opgenomen {
    background-color: #e8f1fb !important;
}

.dbs-dashboard-table tr.gebeld-niet-opgenomen:hover {
    background-color: #d4e4f7 !important;
}

.dbs-dashboard-table tr.gebeld-niet-opgenomen.voicemail-ingesproken {
    background-color: #ddeaf8 !important;
    border-left: 3px solid #5b9bd5;
}

.dbs-dashboard-table tr.gebeld-niet-opgenomen.voicemail-ingesproken:hover {
    background-color: #cde0f4 !important;
}

/* Indicator icoon voor ophaal opmerking */
.ophaal-opmerking-indicator {
    display: inline-block;
    cursor: help;
    font-size: 14px;
}

/* Hidden class voor filter zoekresultaten */
.dbs-multi-select-option.hidden {
    display: none;
}

/* ============================================
   EDIT MODAL STYLES
   ============================================ */

.dbs-modal-large {
    max-width: 700px;
    width: 95%;
}

.dbs-edit-form {
    padding: 0;
}

.dbs-edit-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.dbs-edit-section {
    background: #f8f9fa;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    padding: 15px;
}

.dbs-edit-section h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    padding-bottom: 10px;
    border-bottom: 1px solid #dcdcde;
}

.dbs-edit-section-yellow {
    background: #fff8e5;
    border-color: #ffb900;
}

.dbs-edit-section-yellow h4 {
    color: #996800;
    border-bottom-color: #ffcc00;
}

.dbs-edit-row {
    margin-bottom: 12px;
}

.dbs-edit-row:last-child {
    margin-bottom: 0;
}

.dbs-edit-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 5px;
}

.dbs-edit-row input[type="text"],
.dbs-edit-row input[type="tel"],
.dbs-edit-row select,
.dbs-edit-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}

.dbs-edit-row input:focus,
.dbs-edit-row select:focus,
.dbs-edit-row textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
}

.dbs-edit-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.dbs-edit-phone-row {
    display: flex;
    gap: 10px;
}

.dbs-edit-phone-row input {
    flex: 1;
}

.dbs-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.dbs-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
}

.dbs-gebeld-label {
    font-weight: 600;
    color: #996800;
}

.dbs-gebeld-niet-label {
    font-weight: 600;
    color: #3a6fa5;
}

.dbs-voicemail-label {
    font-weight: 500;
    color: #5b9bd5;
    font-size: 13px;
}

.dbs-edit-actions {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #e2e4e7;
}

/* Edit button in table */
.dbs-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.dbs-edit-btn:hover {
    background: #135e96;
    color: #fff;
}

.dbs-col-edit {
    width: 70px;
    text-align: center;
}

/* ============================================
   EDIT MACHINE STYLES
   ============================================ */

.dbs-edit-machine-item {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
}

.dbs-edit-machine-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e4e7;
}

.dbs-edit-machine-number {
    font-weight: 600;
    color: #2271b1;
    font-size: 13px;
}

.dbs-edit-remove-machine {
    background: #dc3232;
    color: #fff;
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.dbs-edit-remove-machine:hover {
    background: #a00;
}

.dbs-edit-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 8px;
}

.dbs-edit-row-grid:last-child {
    margin-bottom: 0;
}

.dbs-edit-row-grid .dbs-edit-row {
    margin-bottom: 0;
}

.dbs-edit-row-grid .dbs-edit-row label {
    font-size: 12px;
    margin-bottom: 3px;
}

.dbs-edit-row-grid .dbs-edit-row input,
.dbs-edit-row-grid .dbs-edit-row select {
    padding: 8px 10px;
    font-size: 13px;
}

@media screen and (max-width: 500px) {
    .dbs-edit-row-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 600px) {
    .dbs-edit-row-half {
        grid-template-columns: 1fr;
    }
    
    .dbs-edit-phone-row {
        flex-direction: column;
    }
}

/* Edit actions layout */
.dbs-edit-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #dcdcde;
    margin-top: 15px;
}

.dbs-edit-actions-left {
    display: flex;
    gap: 10px;
}

.dbs-edit-actions-right {
    display: flex;
}

/* Danger button */
.dbs-btn-danger {
    background: #dc3232 !important;
    color: #fff !important;
    border-color: #dc3232 !important;
}

.dbs-btn-danger:hover {
    background: #a00 !important;
    border-color: #a00 !important;
}

/* Success button */
.dbs-btn-success {
    background: #00a32a !important;
    color: #fff !important;
    border-color: #00a32a !important;
}

.dbs-btn-success:hover {
    background: #008a20 !important;
    border-color: #008a20 !important;
}

/* Ingepland toggle button */
.dbs-btn-ingepland.active {
    background: #f0c33c !important;
    color: #1d2327 !important;
    border-color: #d4a717 !important;
    font-weight: 600;
    box-shadow: 0 0 0 2px rgba(240, 195, 60, 0.3);
}

.dbs-btn-ingepland.active:hover {
    background: #d4a717 !important;
}

/* Gebeld (niet opgenomen) toggle button */
.dbs-btn-gebeld.active {
    background: #5b9bd5 !important;
    color: #fff !important;
    border-color: #4a89c4 !important;
    font-weight: 600;
    box-shadow: 0 0 0 2px rgba(91, 155, 213, 0.3);
}

.dbs-btn-gebeld.active:hover {
    background: #4a89c4 !important;
}

/* Email modal */
#dbs-email-modal .dbs-modal-content,
#dbs-delete-modal .dbs-modal-content,
#dbs-code-email-modal .dbs-modal-content,
#dbs-message-modal .dbs-modal-content {
    max-width: 400px;
    text-align: center;
}

#dbs-duplicate-modal .dbs-modal-content {
    max-width: 500px;
    text-align: center;
}

#dbs-email-modal h3,
#dbs-delete-modal h3,
#dbs-code-email-modal h3,
#dbs-message-modal h3,
#dbs-duplicate-modal h3 {
    margin: 0 0 15px 0;
}

/* Duplicate items list */
.dbs-duplicate-items {
    text-align: left;
    margin: 15px 0;
}

.dbs-duplicate-item {
    background: #fff8e5;
    border: 1px solid #ffcc00;
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 10px;
}

.dbs-duplicate-item:last-child {
    margin-bottom: 0;
}

.dbs-duplicate-item small {
    color: #666;
}

.dbs-duplicate-matches {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #ddd;
}

.dbs-match-field {
    color: #333;
}

.dbs-match-field em {
    color: #d63638;
    font-style: normal;
    font-weight: 600;
}

/* Input error styling */
.dbs-input-error {
    border-color: #d63638 !important;
    box-shadow: 0 0 0 1px #d63638 !important;
}
    font-size: 18px;
}

#dbs-email-modal p,
#dbs-delete-modal p {
    margin: 0 0 20px 0;
    color: #666;
}

.dbs-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

@media screen and (max-width: 500px) {
    .dbs-edit-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .dbs-edit-actions-left,
    .dbs-edit-actions-right {
        width: 100%;
    }
    
    .dbs-edit-actions-left {
        justify-content: center;
    }
    
    .dbs-edit-actions-right {
        justify-content: center;
    }
    
    .dbs-btn-danger {
        width: 100%;
    }
}

/* ===========================================
   EXPORT DROPDOWN
   =========================================== */

.dbs-export-dropdown {
    position: relative;
    display: inline-block;
}

.dbs-export-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 180px;
    margin-top: 4px;
}

.dbs-export-option {
    display: block;
    width: 100%;
    padding: 10px 15px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background 0.2s;
}

.dbs-export-option:hover {
    background: #f0f0f1;
}

.dbs-export-option:first-child {
    border-radius: 4px 4px 0 0;
}

.dbs-export-option:last-child {
    border-radius: 0 0 4px 4px;
}

/* Export loading state */
.dbs-export-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.dbs-export-loading-text {
    margin-top: 15px;
    font-size: 16px;
    color: #333;
}

/* Postcode lookup status */
.dbs-postcode-status {
    margin: -10px 0 5px 0;
    padding: 4px 8px;
    font-size: 13px;
    border-radius: 4px;
}

/* Frontend Form - Duplicate Warning Modal */
.dbs-form-duplicate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dbs-form-duplicate-modal {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.dbs-form-duplicate-modal h3 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #1d2327;
}

.dbs-form-duplicate-modal > p {
    color: #555;
    margin: 0 0 15px;
    font-size: 14px;
}

.dbs-form-duplicate-item {
    background: #fef9e7;
    border: 1px solid #f0d78e;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    text-align: left;
}

.dbs-form-duplicate-name {
    font-weight: 700;
    font-size: 16px;
    color: #1d2327;
    margin-bottom: 8px;
}

.dbs-form-duplicate-matches {
    font-size: 13px;
    color: #555;
}

.dbs-form-duplicate-matches strong {
    display: block;
    margin-bottom: 4px;
    color: #333;
}

.dbs-form-duplicate-matches ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dbs-form-duplicate-matches li {
    padding: 2px 0;
}

.dbs-form-duplicate-matches .dbs-match-label {
    color: #666;
}

.dbs-form-duplicate-matches .dbs-match-value {
    font-weight: 600;
    color: #c0392b;
}

.dbs-form-duplicate-question {
    margin-top: 15px;
    font-weight: 500;
}

.dbs-form-duplicate-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.dbs-form-duplicate-actions .dbs-submit-btn {
    padding: 10px 24px;
    font-size: 14px;
    min-width: auto;
}

.dbs-form-duplicate-actions .dbs-btn-cancel {
    padding: 10px 24px;
    font-size: 14px;
    background: #e0e0e0;
    color: #333;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.dbs-form-duplicate-actions .dbs-btn-cancel:hover {
    background: #d0d0d0;
}

/* Export Modal */
.dbs-export-modal-section {
    margin-bottom: 18px;
}

.dbs-export-modal-label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #1d2327;
    margin-bottom: 8px;
}

.dbs-export-modal-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dbs-radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
}

.dbs-radio-option:hover {
    border-color: #2271b1;
    background: #f0f6fc;
}

.dbs-radio-option input[type="radio"] {
    margin: 0;
}

.dbs-export-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.dbs-export-col-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
}

.dbs-export-col-option:hover {
    background: #f0f6fc;
}

.dbs-export-col-option input[type="checkbox"] {
    margin: 0;
}

/* Ophaal opmerking detail row */
.dbs-ophaal-detail-row td {
    padding: 0 !important;
    border-top: none !important;
    background: #fefce8 !important;
}

.dbs-ophaal-detail {
    padding: 10px 15px 10px 60px;
    font-size: 13px;
    color: #1d2327;
    border-left: 3px solid #dba617;
    margin: 0;
    line-height: 1.5;
}

.dbs-ophaal-detail strong {
    color: #996800;
}

/* Ophaal opmerking toggle button */
/* De ophaal-opmerking zit in de datum-chip zelf (💬): de hele chip is het
   klikdoel. Geen schaal-animatie meer - dat blies de chip op. */
.dbs-plan-chip-klik {
    cursor: pointer;
    user-select: none;
    transition: box-shadow 0.15s, filter 0.15s;
}

.dbs-plan-chip-klik:hover {
    filter: brightness(0.95);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.dbs-plan-chip-klik.active {
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Bulk Actions Bar */
.dbs-bulk-actions-bar {
    background: linear-gradient(135deg, #2271b1 0%, #1a5a8e 100%);
    color: #fff;
    padding: 0;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 3px 10px rgba(34, 113, 177, 0.35);
    position: sticky;
    top: 32px;
    z-index: 999;
}

.dbs-bulk-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    gap: 12px;
    flex-wrap: wrap;
}

.dbs-bulk-row-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 15px 10px;
}

.dbs-bulk-info {
    font-size: 14px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

#dbs-bulk-count {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.dbs-bulk-status-summary {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    font-weight: 400;
}

.dbs-bulk-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.dbs-bulk-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dbs-bulk-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
}

.dbs-bulk-divider {
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,0.25);
    margin: 0 4px;
}

/* Bulk select dropdown */
#dbs-bulk-status-select {
    padding: 7px 28px 7px 10px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 6px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    appearance: auto;
    -webkit-appearance: menulist;
}

#dbs-bulk-status-select option {
    color: #1d2327;
    background: #fff;
}

#dbs-bulk-status-select:focus {
    border-color: #fff;
    outline: none;
    background: rgba(255,255,255,0.25);
}

/* Bulk action buttons */
.dbs-bulk-btn {
    padding: 7px 16px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    line-height: 1.4;
}

.dbs-bulk-btn-apply {
    background: #fff;
    color: #2271b1;
}
.dbs-bulk-btn-apply:hover {
    background: #f0f0f0;
}

.dbs-bulk-btn-plan {
    background: #dba617;
    color: #fff;
}
.dbs-bulk-btn-plan:hover {
    background: #c08c00;
}

.dbs-bulk-btn-unplan {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4) !important;
}
.dbs-bulk-btn-unplan:hover {
    background: rgba(255,255,255,0.25);
}

.dbs-bulk-btn-danger {
    background: #d63638;
    color: #fff;
}
.dbs-bulk-btn-danger:hover {
    background: #b32d2e;
}

.dbs-bulk-btn-cancel {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
}
.dbs-bulk-btn-cancel:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* Bulk ophaal opmerking input */
.dbs-bulk-opmerking-input {
    flex: 1;
    padding: 7px 12px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 6px;
    background: rgba(255,255,255,0.2);
    color: #fff !important;
    font-size: 13px;
    -webkit-text-fill-color: #fff;
}

.dbs-bulk-opmerking-input::placeholder {
    color: rgba(255,255,255,0.6) !important;
    -webkit-text-fill-color: rgba(255,255,255,0.6);
}

.dbs-bulk-opmerking-input:focus {
    border-color: #fff;
    outline: none;
    background: rgba(255,255,255,0.25);
}

.dbs-btn-small {
    padding: 6px 12px !important;
    font-size: 12px !important;
}

/* Checkbox column */
.dbs-col-checkbox {
    width: 36px;
    text-align: center;
    padding: 4px !important;
}

.dbs-col-checkbox input[type="checkbox"],
td[data-column="checkbox"] input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
}

/* Highlight checked rows */
tr.dbs-row-selected {
    background: #e8f0fe !important;
}

/* Custom Toast Notification */
.dbs-toast {
    position: fixed;
    top: 50px;
    right: 20px;
    z-index: 100000;
    min-width: 300px;
    max-width: 450px;
    padding: 16px 20px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: dbsToastIn 0.3s ease;
    backdrop-filter: blur(10px);
}

.dbs-toast-success {
    background: linear-gradient(135deg, #00a32a 0%, #007a1e 100%);
}

.dbs-toast-error {
    background: linear-gradient(135deg, #d63638 0%, #a02022 100%);
}

.dbs-toast-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.dbs-toast-message {
    flex: 1;
    font-weight: 500;
}

.dbs-toast-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.dbs-toast-close:hover {
    color: #fff;
}

@keyframes dbsToastIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes dbsToastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(40px); }
}

/* Map Modal */
.dbs-modal-map {
    max-width: 900px;
    width: 95vw;
}

.dbs-map-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.dbs-map-actions .dbs-btn {
    font-size: 13px;
    padding: 6px 14px;
}

#dbs-map-container {
    background: #f0f0f1;
    position: relative;
}

.dbs-map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.9);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-size: 14px;
    color: #50575e;
    z-index: 1000;
}

.dbs-map-progress {
    margin-top: 8px;
    height: 4px;
    background: #dcdcde;
    border-radius: 2px;
    overflow: hidden;
}

.dbs-map-progress-bar {
    height: 100%;
    background: #2271b1;
    border-radius: 2px;
    transition: width 0.3s;
    width: 0%;
}

/* Custom Confirm Dialog */
.dbs-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: dbsFadeIn 0.2s ease;
}

.dbs-confirm-dialog {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 420px;
    width: 90%;
    overflow: hidden;
    animation: dbsScaleIn 0.2s ease;
}

.dbs-confirm-header {
    padding: 20px 24px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dbs-confirm-header-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.dbs-confirm-title {
    font-size: 17px;
    font-weight: 700;
    color: #1d2327;
    margin: 0;
}

.dbs-confirm-body {
    padding: 12px 24px 20px;
    font-size: 14px;
    color: #50575e;
    line-height: 1.6;
}

.dbs-confirm-actions {
    padding: 0 24px 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.dbs-confirm-btn {
    padding: 9px 20px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.dbs-confirm-btn-cancel {
    background: #f0f0f1;
    color: #50575e;
}
.dbs-confirm-btn-cancel:hover {
    background: #dcdcde;
}

.dbs-confirm-btn-ok {
    background: #2271b1;
    color: #fff;
}
.dbs-confirm-btn-ok:hover {
    background: #135e96;
}

.dbs-confirm-btn-danger {
    background: #d63638;
    color: #fff;
}
.dbs-confirm-btn-danger:hover {
    background: #a02022;
}

@keyframes dbsFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes dbsScaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* ==========================================================
 * Werk-tabs (Alles / Te bellen / Niet bereikt / Ingepland / Vandaag)
 * ========================================================== */
.dbs-werk-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 0 0 15px 0;
    padding: 6px;
    background: #f0f2f4;
    border-radius: 8px;
}

.dbs-werk-tab {
    border: none;
    background: transparent;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #3c434a;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.dbs-werk-tab:hover {
    background: #e2e6ea;
}

.dbs-werk-tab.active {
    background: #2271b1;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.dbs-werk-count {
    font-weight: 400;
    opacity: 0.85;
    font-size: 12.5px;
}

#dbs-plan-dag {
    margin-left: auto;
    padding: 7px 10px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    font-size: 13.5px;
    background: #fff;
    max-width: 220px;
}

/* Ophaaldatum-chip in de tabel.
   Geen nowrap: een lange chip (datum + dagdeel) breekt netjes af binnen
   de kolom in plaats van over de datumkolom heen te steken. */
.dbs-plan-chip {
    display: inline-block;
    background: #fff3cc;
    border: 1px solid #dba617;
    color: #6b5200;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: normal;
    max-width: 100%;
    box-sizing: border-box;
    line-height: 1.35;
    text-align: center;
}

/* De Ophalen-kolom genoeg ruimte geven zodat de chip meestal op één regel past */
.dbs-dashboard-table th.dbs-col-ophalen {
    min-width: 118px;
}

.dbs-dashboard-table td[data-column="ophalen"] {
    white-space: normal;
}

.dbs-plan-chip-grijs {
    background: #f0f0f1;
    border-color: #c3c4c7;
    color: #50575e;
    font-weight: 500;
}

/* Belstatus-opties in de bewerkmodal */
.dbs-belstatus-opties {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dbs-belstatus-optie {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.15s, border-color 0.15s;
}

.dbs-belstatus-optie:hover {
    background: #f6f7f7;
}

.dbs-belstatus-optie input[type="radio"] {
    margin: 0;
}

.dbs-belstatus-optie input[type="radio"]:checked + span {
    font-weight: 600;
}

@media (max-width: 640px) {
    .dbs-werk-tabs {
        gap: 4px;
    }
    .dbs-werk-tab {
        padding: 7px 10px;
        font-size: 13px;
    }
    #dbs-plan-dag {
        margin-left: 0;
        width: 100%;
        max-width: none;
    }
}

/* Retour-planning: groene chip (ophalen = geel, retour = groen) */
.dbs-plan-chip-retour {
    background: #e4f1e7;
    border-color: #00a32a;
    color: #1e5c2e;
}

/* Terugkerende klant: machine-overname popup + badge */
.dbs-returning-machine {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    margin-bottom: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.15s, border-color 0.15s;
}

.dbs-returning-machine:hover {
    background: #f0f6fb;
    border-color: #2271b1;
}

.dbs-returning-machine input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
}

.dbs-terugkerend-badge {
    cursor: help;
    font-size: 13px;
}

/* Terugkerende klant: infobox in de nieuw-toevoegen-modal (medewerkers) */
.dbs-returning-staff {
    background: #e7f3ff;
    border: 1px solid #2271b1;
    border-radius: 6px;
    padding: 12px;
    margin: 4px 0 12px;
}

.dbs-returning-staff-kop {
    margin-bottom: 8px;
    font-size: 14px;
    color: #1d2327;
}

/* Legenda voor de rijkleuren (belstatus) onder de tabel */
.dbs-rij-legenda {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 10px 0 4px;
    font-size: 12.5px;
    color: #50575e;
}

.dbs-legenda-label {
    font-weight: 600;
}

.dbs-legenda-blok {
    display: inline-block;
    width: 16px;
    height: 12px;
    border-radius: 2px;
    vertical-align: -1px;
    margin-right: 4px;
}

/* ==========================================================
   Kaartplanning (planmodus + dagweergave)
   ========================================================== */

.dbs-map-flex {
    display: flex;
    gap: 12px;
    align-items: stretch;
}
.dbs-map-flex #dbs-map-container {
    flex: 1;
    min-width: 0;
}
#dbs-plan-panel {
    width: 300px;
    flex-shrink: 0;
    background: #f8f9fa;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 12px;
    max-height: 500px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dbs-plan-panel-kop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}
.dbs-plan-panel-sluit {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}
.dbs-plan-panel-hint {
    font-size: 12px;
    color: #666;
    margin: 0;
}
#dbs-plan-selectie-lijst {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 40px;
}
.dbs-plan-selectie-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 12px;
}
.dbs-plan-selectie-item .dbs-psi-info {
    flex: 1;
    min-width: 0;
}
.dbs-plan-selectie-item .dbs-psi-naam {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dbs-plan-selectie-item .dbs-psi-sub {
    color: #777;
    font-size: 11px;
}
.dbs-plan-selectie-item .dbs-psi-punten {
    color: #2271b1;
    font-weight: 600;
    white-space: nowrap;
}
.dbs-plan-selectie-item .dbs-psi-weg {
    background: none;
    border: none;
    color: #d63638;
    font-size: 15px;
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
}
.dbs-plan-panel-totalen {
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
}
.dbs-plan-panel-voertuig label,
.dbs-plan-panel-datum label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    margin-bottom: 3px;
}
.dbs-plan-panel-voertuig select,
.dbs-plan-panel-datum input,
.dbs-plan-panel-datum select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 6px;
    box-sizing: border-box;
}
.dbs-plan-capaciteit {
    height: 10px;
    background: #e5e5e5;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 4px;
}
.dbs-plan-capaciteit-balk {
    height: 100%;
    width: 0;
    background: #00a32a;
    border-radius: 5px;
    transition: width 0.2s, background 0.2s;
}
.dbs-plan-capaciteit-balk.bijna-vol { background: #dba617; }
.dbs-plan-capaciteit-balk.te-vol { background: #d63638; }
.dbs-plan-capaciteit-tekst {
    font-size: 12px;
    color: #666;
    margin-top: 3px;
}
.dbs-plan-capaciteit-tekst.te-vol {
    color: #d63638;
    font-weight: 600;
}

/* Dagkoppen in de Ingepland/Vandaag-weergave */
.dbs-dag-header td {
    background: #eaf3ea !important;
    border-top: 2px solid #1a5c2e;
    font-weight: 700;
    font-size: 13px;
    color: #1d2327;
    padding: 8px 10px !important;
}
.dbs-dag-header .dbs-dag-lading {
    font-weight: 400;
    color: #555;
    margin-left: 8px;
}
.dbs-dag-header .dbs-dag-acties {
    float: right;
    display: flex;
    gap: 6px;
}
.dbs-dag-header .dbs-dag-acties button {
    font-size: 11px;
    padding: 3px 8px;
    border: 1px solid #1a5c2e;
    background: #fff;
    color: #1a5c2e;
    border-radius: 5px;
    cursor: pointer;
}
.dbs-dag-header .dbs-dag-acties button:hover {
    background: #1a5c2e;
    color: #fff;
}
.dbs-route-nr {
    display: inline-block;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: #1a5c2e;
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    margin-right: 6px;
}
tr.dbs-route-sleepbaar { cursor: grab; }
tr.dbs-route-slepend { opacity: 0.4; }
tr.dbs-route-doel td { border-top: 2px solid #2271b1 !important; }

@media (max-width: 900px) {
    .dbs-map-flex { flex-direction: column; }
    #dbs-plan-panel { width: auto; max-height: none; }
}

/* Routekolom (#) in de dagweergave */
.dbs-col-route {
    width: 34px;
    text-align: center;
    white-space: nowrap;
}
td.dbs-col-route .dbs-route-nr { margin-right: 0; }

/* Rode dagknop (rit annuleren) */
.dbs-dag-header .dbs-dag-acties button.dbs-dag-knop-rood {
    border-color: #d63638;
    color: #d63638;
}
.dbs-dag-header .dbs-dag-acties button.dbs-dag-knop-rood:hover {
    background: #d63638;
    color: #fff;
}

/* Uitleg-ballonnetjes (?-icoontjes) */
.dbs-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e5e5e5;
    color: #555;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    align-self: center;
    flex-shrink: 0;
}
.dbs-help:hover {
    background: #1a5c2e;
    color: #fff;
}
.dbs-help-ballon {
    position: absolute;
    z-index: 100010;
    max-width: 380px;
    background: #1d2327;
    color: #fff;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 12px;
    line-height: 1.5;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.dbs-help-regel {
    margin-bottom: 6px;
}
.dbs-help-regel:last-child {
    margin-bottom: 0;
}

/* Waarschuwing in de verplaats-popup */
.dbs-verplaats-waarschuwing {
    background: #fff8e5;
    border: 1px solid #dba617;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.5;
    margin-top: 8px;
    color: #1d2327;
}

/* Kaart-popups: groter en beter leesbaar */
.dbs-dashboard-wrapper .leaflet-popup-content,
.dbs-modal .leaflet-popup-content {
    font-size: 14px;
    line-height: 1.5;
    margin: 12px 14px;
}
.dbs-modal .leaflet-popup-content a {
    color: #1a5c2e;
}

/* ==========================================================
   Ritlogboek (tab Afgerond) + probleemmarkering
   ========================================================== */

.dbs-historie-laden,
.dbs-historie-leeg {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    color: #666;
    font-size: 14px;
}
.dbs-historie-dag {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    margin-bottom: 14px;
    overflow: hidden;
}
.dbs-historie-dagkop {
    background: #eaf3ea;
    border-bottom: 2px solid #1a5c2e;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 14px;
}
.dbs-historie-samenvatting {
    font-weight: 400;
    color: #555;
    margin-left: 10px;
    font-size: 13px;
}
.dbs-historie-regel {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 14px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}
.dbs-historie-regel:last-child { border-bottom: none; }
.dbs-historie-regel-mislukt { background: #fcf0f1; }
.dbs-historie-geen-nr { width: 20px; }
.dbs-historie-tijd { color: #999; font-size: 12px; width: 40px; }
.dbs-historie-naam { font-weight: 600; min-width: 180px; }
.dbs-historie-plaats { color: #666; min-width: 100px; }
.dbs-historie-machine { color: #666; flex: 1; }
.dbs-historie-type { font-weight: 700; white-space: nowrap; }
.dbs-historie-opmerking {
    flex-basis: 100%;
    color: #b32d2e;
    font-size: 12px;
    padding-left: 30px;
}

/* Rij met een chauffeursprobleem (❌-notitie): rode markering */
.dbs-dashboard-table tr.dbs-rij-probleem td {
    background: #fcf0f1 !important;
}
.dbs-dashboard-table tr.dbs-rij-probleem td:first-child {
    border-left: 4px solid #d63638;
}

/* ==========================================================
   Moduswissel (Overzicht / Planning) + Openstaand-chips
   ========================================================== */

.dbs-modus-schakel {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.dbs-modus-knop {
    flex: 1;
    max-width: 220px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 700;
    border: 2px solid #dcdcde;
    background: #fff;
    color: #50575e;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
}
.dbs-modus-knop:hover {
    border-color: #1a5c2e;
    color: #1a5c2e;
}
.dbs-modus-knop.active {
    background: #1a5c2e;
    border-color: #1a5c2e;
    color: #fff;
}

.dbs-openstaand-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
}
.dbs-chip-label {
    font-size: 11px;
    font-weight: 700;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.dbs-chip {
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #dcdcde;
    background: #fff;
    color: #50575e;
    border-radius: 14px;
    cursor: pointer;
}
.dbs-chip:hover {
    border-color: #1a5c2e;
    color: #1a5c2e;
}
.dbs-chip.active {
    background: #1a5c2e;
    border-color: #1a5c2e;
    color: #fff;
}
.dbs-chip-wachtend.active {
    background: #dba617;
    border-color: #dba617;
}

/* Rode meldingen-badge (chauffeursmeldingen) */
.dbs-melding-badge {
    display: inline-block;
    background: #d63638;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    cursor: pointer;
    animation: dbs-badge-pulse 2s infinite;
}
.dbs-melding-badge:hover {
    background: #b32d2e;
}
@keyframes dbs-badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(214, 54, 56, 0.5); }
    50% { box-shadow: 0 0 0 5px rgba(214, 54, 56, 0); }
}

/* Chauffeursfoto's in de edit-popup */
.dbs-edit-fotos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.dbs-foto-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    width: 110px;
}
.dbs-foto-thumb img {
    width: 110px;
    height: 82px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #d5dbe1;
    display: block;
}
.dbs-foto-thumb:hover img {
    border-color: #1a5c2e;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.dbs-foto-thumb span {
    font-size: 11px;
    color: #5a6570;
    text-align: center;
    line-height: 1.3;
}

/* Seizoen-melding boven het aanmeldformulier */
.dbs-form-seizoen {
    display: block;
    background: #e8f5e9;
    border: 1px solid #1a5c2e33;
    color: #1a5c2e;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 0 0 16px;
    font-size: 15px;
    text-align: center;
}
.dbs-form-seizoen strong {
    font-weight: 700;
}

/* Duidelijk onderscheid tussen placeholder (licht grijs) en ingevulde
   tekst (donker) - het thema kleurt invoervelden anders allemaal grijs */
.dbs-winterbeurt-form-wrapper input,
.dbs-winterbeurt-form-wrapper textarea,
.dbs-winterbeurt-form-wrapper select,
.dbs-status-checker-wrapper input,
.dbs-dashboard-wrapper input,
.dbs-dashboard-wrapper textarea,
.dbs-dashboard-wrapper select,
.dbs-dashboard-login-wrapper input {
    color: #1d2327 !important;
}
.dbs-winterbeurt-form-wrapper input::placeholder,
.dbs-winterbeurt-form-wrapper textarea::placeholder,
.dbs-status-checker-wrapper input::placeholder,
.dbs-dashboard-wrapper input::placeholder,
.dbs-dashboard-wrapper textarea::placeholder,
.dbs-dashboard-login-wrapper input::placeholder {
    color: #b3bac1 !important;
    opacity: 1 !important;
}
