/* TyreManager Pro - publieke stijlen */
.tmp-wizard, .tmp-portal, .tmp-auth { max-width: 760px; margin: 0 auto; font-size: 15px; }

.tmp-step { display: none; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 16px; }
.tmp-step.tmp-step-active { display: block; }
.tmp-step-header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #e2e8f0; background: #f8fafc; border-radius: 10px 10px 0 0; }
.tmp-step-header h3 { margin: 0; font-size: 17px; }
.tmp-step-number { background: #1d4ed8; color: #fff; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.tmp-step-body { padding: 20px; }

.tmp-field { margin-bottom: 14px; }
.tmp-field label { display: block; font-weight: 600; margin-bottom: 5px; }
.tmp-field input, .tmp-field select, .tmp-field textarea,
.tmp-auth input { width: 100%; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 15px; box-sizing: border-box; }
.tmp-field input:focus, .tmp-field select:focus, .tmp-field textarea:focus { border-color: #1d4ed8; outline: none; box-shadow: 0 0 0 2px rgba(29,78,216,.15); }
.tmp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .tmp-grid-2 { grid-template-columns: 1fr; } }

.tmp-step-nav { display: flex; justify-content: space-between; margin-top: 18px; }
.tmp-btn { display: inline-block; padding: 10px 20px; border: 1px solid #cbd5e1; background: #fff; color: #1e293b; border-radius: 6px; cursor: pointer; font-size: 15px; text-decoration: none; }
.tmp-btn:hover { background: #f1f5f9; }
.tmp-btn-primary { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.tmp-btn-primary:hover { background: #1e40af; }
.tmp-btn-small { padding: 5px 12px; font-size: 13px; }
.tmp-btn-danger { color: #b91c1c; border-color: #fca5a5; }
.tmp-btn-danger:hover { background: #fee2e2; }

.tmp-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.tmp-slots-hint { color: #64748b; font-style: italic; }
.tmp-slot { padding: 8px 16px; border: 1px solid #cbd5e1; background: #fff; border-radius: 6px; cursor: pointer; }
.tmp-slot:hover { border-color: #1d4ed8; }
.tmp-slot-selected { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }

.tmp-summary-table { width: 100%; border-collapse: collapse; }
.tmp-summary-table td { padding: 8px 4px; border-bottom: 1px solid #e2e8f0; }
.tmp-summary-table td:first-child { color: #64748b; width: 40%; }

.tmp-alert { padding: 12px 16px; border-radius: 6px; margin: 12px 0; }
.tmp-alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.tmp-alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* Auth (login/registratie) */
.tmp-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .tmp-auth { grid-template-columns: 1fr; } }
.tmp-auth-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 24px; }
.tmp-auth-box h3 { margin-top: 0; }
.tmp-auth-box label { display: block; font-weight: 600; margin-bottom: 12px; }
.tmp-remember { font-weight: 400 !important; }

/* Portaal */
.tmp-portal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.tmp-tabs { display: flex; gap: 4px; border-bottom: 2px solid #e2e8f0; margin-bottom: 20px; flex-wrap: wrap; }
.tmp-tab { padding: 10px 18px; text-decoration: none; color: #475569; border-bottom: 2px solid transparent; margin-bottom: -2px; font-weight: 600; }
.tmp-tab:hover { color: #1d4ed8; }
.tmp-tab-active { color: #1d4ed8; border-bottom-color: #1d4ed8; }

.tmp-table-portal { width: 100%; border-collapse: collapse; background: #fff; }
.tmp-table-portal th, .tmp-table-portal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e2e8f0; }
.tmp-table-portal th { background: #f8fafc; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: #64748b; }

.tmp-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.tmp-status-pending { background: #fef3c7; color: #92400e; }
.tmp-status-confirmed { background: #dcfce7; color: #166534; }
.tmp-status-completed { background: #e0e7ff; color: #3730a3; }
.tmp-status-cancelled { background: #fee2e2; color: #991b1b; }

.tmp-note { color: #64748b; font-size: 14px; }

/* === Contrast-fix voor donkere thema's (thema zet tekst op wit, plugin-kaarten zijn wit) === */
.tmp-portal, .tmp-auth, .tmp-wizard, .tmp-auth-box, .tmp-portal-section { color: #1e293b; }
.tmp-portal h2, .tmp-portal h3, .tmp-portal h4,
.tmp-auth h3, .tmp-wizard h3, .tmp-wizard h4 { color: #0f172a !important; }
.tmp-portal p, .tmp-portal label, .tmp-portal td, .tmp-portal strong, .tmp-portal li,
.tmp-auth label, .tmp-wizard label, .tmp-wizard p, .tmp-wizard td, .tmp-wizard li { color: #1e293b; }
.tmp-portal input[type="text"], .tmp-portal input[type="email"], .tmp-portal input[type="tel"],
.tmp-portal input[type="password"], .tmp-portal input[type="date"], .tmp-portal input[type="number"],
.tmp-portal select, .tmp-portal textarea,
.tmp-auth input[type="text"], .tmp-auth input[type="email"], .tmp-auth input[type="password"],
.tmp-wizard input[type="text"], .tmp-wizard input[type="email"], .tmp-wizard input[type="tel"],
.tmp-wizard input[type="password"], .tmp-wizard input[type="date"], .tmp-wizard input[type="number"],
.tmp-wizard select, .tmp-wizard textarea {
    background: #fff !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px;
    padding: 8px 10px;
}
.tmp-portal input::placeholder, .tmp-auth input::placeholder, .tmp-wizard input::placeholder { color: #94a3b8 !important; }
.tmp-portal a:not(.tmp-btn):not(.tmp-tab), .tmp-auth a { color: #1d4ed8; }

/* === Kaart-layout: lichte achtergrond zodat donkere tekst altijd leesbaar is === */
.tmp-portal, .tmp-auth, .tmp-wizard {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px;
    margin: 20px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.tmp-auth { display: flex; gap: 20px; flex-wrap: wrap; background: transparent; border: 0; box-shadow: none; padding: 0; }
.tmp-auth-box { flex: 1 1 320px; box-shadow: 0 2px 12px rgba(0,0,0,.25); border-radius: 12px; }
.tmp-portal .tmp-tabs { border-bottom-color: #cbd5e1; }

/* === Tabel-fix: thema forceert donkere rijen/cellen -> alles geforceerd licht === */
.tmp-portal table, .tmp-wizard table { background: #ffffff !important; color: #1e293b !important; border-collapse: collapse; }
.tmp-portal table tr, .tmp-wizard table tr { background: #ffffff !important; }
.tmp-portal table td, .tmp-wizard table td { background: #ffffff !important; color: #1e293b !important; border-color: #e2e8f0 !important; }
.tmp-portal table th, .tmp-wizard table th { background: #f8fafc !important; color: #475569 !important; border-color: #e2e8f0 !important; }

/* === Versterking kaart-layout en tabbladen tegen thema-overrides === */
.tmp-portal, .tmp-wizard { background: #ffffff !important; }
.tmp-portal .tmp-tab { color: #475569 !important; background: transparent !important; }
.tmp-portal .tmp-tab:hover { color: #1d4ed8 !important; }
.tmp-portal .tmp-tab-active { color: #1d4ed8 !important; }
.tmp-portal-head h2 { color: #0f172a !important; }
