/*
Theme Name: Repair Ticket System
Theme URI: https://example.com
Author: Repair Ticket Theme
Description: Een eenvoudig en veilig ticketsysteem voor bugfixes en website-aanpassingen, inclusief een handleidingspagina.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: repair-ticket
*/

/* ============================================
   CSS VARIABELEN & RESET
   ============================================ */
:root {
    --primary:        #3B5BDB;
    --primary-dark:   #2F4AC8;
    --primary-light:  #EEF2FF;
    --success:        #2F9E44;
    --success-light:  #EBFBEE;
    --warning:        #E67700;
    --warning-light:  #FFF3BF;
    --danger:         #C92A2A;
    --danger-light:   #FFF5F5;
    --gray-50:        #F8F9FA;
    --gray-100:       #F1F3F5;
    --gray-200:       #E9ECEF;
    --gray-300:       #DEE2E6;
    --gray-400:       #CED4DA;
    --gray-500:       #ADB5BD;
    --gray-600:       #6C757D;
    --gray-700:       #495057;
    --gray-800:       #343A40;
    --gray-900:       #212529;
    --white:          #FFFFFF;
    --radius-sm:      6px;
    --radius:         10px;
    --radius-lg:      16px;
    --shadow-sm:      0 1px 3px rgba(0,0,0,0.08);
    --shadow:         0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg:      0 8px 32px rgba(0,0,0,0.14);
    --font:           'Segoe UI', system-ui, -apple-system, sans-serif;
    --transition:     0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--gray-50);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

/* ============================================
   LAYOUT
   ============================================ */
.rts-site { display: flex; flex-direction: column; min-height: 100vh; }

.rts-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.rts-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 16px;
}

.rts-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.rts-logo-icon { font-size: 1.5rem; }

.rts-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.rts-nav a {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: background var(--transition), color var(--transition);
}

.rts-nav a:hover,
.rts-nav a.current {
    background: var(--primary-light);
    color: var(--primary);
}

.rts-nav .rts-login-btn {
    background: var(--primary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: var(--radius-sm);
}

.rts-nav .rts-login-btn:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.rts-nav .rts-logout-btn {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.rts-user-info {
    font-size: 0.85rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rts-admin-badge {
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.rts-main { flex: 1; padding: 40px 24px; }

.rts-container {
    max-width: 900px;
    margin: 0 auto;
}

.rts-container-wide {
    max-width: 1100px;
    margin: 0 auto;
}

.rts-footer {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 20px 24px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ============================================
   PAGINA KOPTEKSTEN
   ============================================ */
.rts-page-header {
    margin-bottom: 32px;
}

.rts-page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
    line-height: 1.2;
}

.rts-page-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
}

/* ============================================
   TABS
   ============================================ */
.rts-tabs-wrapper {
    margin-bottom: 32px;
}

.rts-tab-list {
    display: flex;
    gap: 4px;
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 4px;
    width: fit-content;
    flex-wrap: wrap;
}

.rts-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: calc(var(--radius) - 4px);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.rts-tab-btn:hover {
    color: var(--gray-900);
    background: var(--white);
}

.rts-tab-btn.active {
    background: var(--white);
    color: var(--primary);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* ============================================
   FORMULIER
   ============================================ */
.rts-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.rts-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rts-form-group { margin-bottom: 20px; }

.rts-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.rts-label .required { color: var(--danger); margin-left: 2px; }

.rts-input,
.rts-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--gray-900);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.rts-input:focus,
.rts-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59,91,219,0.12);
}

.rts-textarea { resize: vertical; min-height: 140px; }

.rts-file-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
    position: relative;
}

.rts-file-zone:hover,
.rts-file-zone.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.rts-file-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.rts-file-zone-icon { font-size: 2rem; margin-bottom: 8px; }
.rts-file-zone-text { font-size: 0.9rem; color: var(--gray-600); }
.rts-file-zone-text strong { color: var(--primary); }

.rts-file-list { margin-top: 10px; }
.rts-file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--gray-700);
    margin-top: 6px;
}

.rts-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
}

.rts-btn-primary {
    background: var(--primary);
    color: var(--white);
}

.rts-btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59,91,219,0.3);
}

.rts-btn-success {
    background: var(--success);
    color: var(--white);
    padding: 6px 14px;
    font-size: 0.82rem;
}

.rts-btn-success:hover { background: #27843a; color: var(--white); }

.rts-btn-warning {
    background: var(--warning);
    color: var(--white);
    padding: 6px 14px;
    font-size: 0.82rem;
}

.rts-btn-warning:hover { background: #c96a00; color: var(--white); }

.rts-btn-danger {
    background: var(--danger);
    color: var(--white);
    padding: 6px 14px;
    font-size: 0.82rem;
}

.rts-btn-danger:hover { background: #a52424; color: var(--white); }

.rts-btn-ghost {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 6px 14px;
    font-size: 0.82rem;
}

.rts-btn-ghost:hover { background: var(--gray-200); color: var(--gray-900); }

.rts-btn-sm { padding: 5px 12px; font-size: 0.8rem; }
.rts-btn-full { width: 100%; justify-content: center; }

/* ============================================
   MELDINGEN
   ============================================ */
.rts-notice {
    padding: 14px 18px;
    border-radius: var(--radius);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.rts-notice-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }

.rts-notice-success {
    background: var(--success-light);
    color: #1a5c2b;
    border: 1px solid #b2f2bb;
}

.rts-notice-error {
    background: var(--danger-light);
    color: #7a1a1a;
    border: 1px solid #ffc9c9;
}

.rts-notice-info {
    background: var(--primary-light);
    color: #1a2f80;
    border: 1px solid #bac8ff;
}

/* ============================================
   STATUS BADGES
   ============================================ */
.rts-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.rts-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

.badge-pending {
    background: var(--warning-light);
    color: #7a4f00;
}
.badge-pending::before { background: var(--warning); }

.badge-in_progress {
    background: var(--primary-light);
    color: #1a2f80;
}
.badge-in_progress::before { background: var(--primary); }

.badge-done {
    background: var(--success-light);
    color: #1a5c2b;
}
.badge-done::before { background: var(--success); }

/* ============================================
   TICKET KAARTEN
   ============================================ */
.rts-tickets-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.rts-tickets-count {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.rts-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rts-filter-btn {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    border: 1.5px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
}

.rts-filter-btn:hover,
.rts-filter-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.rts-ticket-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rts-ticket-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.rts-ticket-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.rts-ticket-card.status-done {
    border-left: 4px solid var(--success);
    opacity: 0.85;
}

.rts-ticket-card.status-in_progress {
    border-left: 4px solid var(--primary);
}

.rts-ticket-card.status-pending {
    border-left: 4px solid var(--warning);
}

.rts-ticket-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.rts-ticket-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rts-ticket-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--gray-900);
}

.rts-ticket-date {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.rts-ticket-id {
    font-size: 0.75rem;
    color: var(--gray-400);
    font-family: monospace;
}

.rts-ticket-message {
    font-size: 0.92rem;
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 12px;
    white-space: pre-wrap;
    word-break: break-word;
}

.rts-ticket-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.rts-attachment-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}

.rts-attachment-link:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.rts-ticket-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
    margin-top: 4px;
}

.rts-action-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-right: 4px;
}

/* ============================================
   LEGE STAAT
   ============================================ */
.rts-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

.rts-empty-icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.5; }
.rts-empty-title { font-size: 1.1rem; font-weight: 600; color: var(--gray-600); margin-bottom: 6px; }
.rts-empty-text { font-size: 0.9rem; }

/* ============================================
   HANDLEIDING PAGINA
   ============================================ */
.rts-manual-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
}

.rts-manual-sidebar {
    position: sticky;
    top: 84px;
}

.rts-toc {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.rts-toc-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.rts-toc-list { list-style: none; }

.rts-toc-item { border-bottom: 1px solid var(--gray-100); }
.rts-toc-item:last-child { border-bottom: none; }

.rts-toc-link {
    display: block;
    padding: 8px 0;
    font-size: 0.88rem;
    color: var(--gray-700);
    transition: color var(--transition);
}

.rts-toc-link:hover { color: var(--primary); }
.rts-toc-link.active { color: var(--primary); font-weight: 600; }

.rts-manual-content { min-width: 0; }

.rts-chapter {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 90px;
}

.rts-chapter-header {
    padding: 20px 28px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.rts-chapter-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.82rem;
    font-weight: 700;
    flex-shrink: 0;
}

.rts-chapter-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.rts-chapter-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
}

.rts-chapter-admin-actions {
    display: flex;
    gap: 6px;
}

.rts-chapter-body {
    padding: 28px;
}

.rts-chapter-image {
    border-radius: var(--radius);
    margin-bottom: 20px;
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.rts-chapter-text {
    font-size: 0.95rem;
    color: var(--gray-800);
    line-height: 1.75;
}

.rts-chapter-text h1,
.rts-chapter-text h2,
.rts-chapter-text h3,
.rts-chapter-text h4 { margin: 1.2em 0 0.5em; color: var(--gray-900); }

.rts-chapter-text p { margin-bottom: 1em; }
.rts-chapter-text ul, .rts-chapter-text ol { margin: 0.5em 0 1em 1.5em; }
.rts-chapter-text li { margin-bottom: 4px; }
.rts-chapter-text img { border-radius: var(--radius-sm); margin: 12px 0; max-width: 100%; }
.rts-chapter-text strong { color: var(--gray-900); }
.rts-chapter-text a { color: var(--primary); }
.rts-chapter-text code {
    background: var(--gray-100);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.9em;
    color: var(--primary-dark);
}
.rts-chapter-text pre {
    background: var(--gray-900);
    color: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 16px;
    overflow-x: auto;
    margin: 12px 0;
}

/* Nieuw hoofdstuk formulier */
.rts-add-chapter-wrap {
    margin-top: 32px;
}

.rts-add-chapter-toggle {
    margin-bottom: 16px;
}

.rts-add-chapter-form {
    background: var(--white);
    border: 2px dashed var(--primary);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.rts-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rts-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

/* ============================================
   STATISTIEKEN
   ============================================ */
.rts-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.rts-stat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.rts-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
}

.rts-stat-label {
    font-size: 0.78rem;
    color: var(--gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   ADMIN BAR AANPASSING
   ============================================ */
body.admin-bar .rts-header {
    top: 32px;
}

body.admin-bar .rts-manual-sidebar {
    top: 116px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .rts-header { top: 46px; }
    body.admin-bar .rts-manual-sidebar { top: 130px; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .rts-main { padding: 24px 16px; }

    .rts-card { padding: 20px; }

    .rts-page-title { font-size: 1.5rem; }

    .rts-tab-list { width: 100%; }
    .rts-tab-btn { flex: 1; justify-content: center; padding: 8px 12px; font-size: 0.85rem; }

    .rts-ticket-header { flex-direction: column; gap: 8px; }

    .rts-manual-layout {
        grid-template-columns: 1fr;
    }

    .rts-manual-sidebar {
        position: static;
    }

    .rts-toc { display: none; }

    .rts-chapter-body { padding: 20px; }
    .rts-chapter-header { padding: 16px 20px; }

    .rts-stats-row { grid-template-columns: repeat(2, 1fr); }

    .rts-header-inner { height: auto; padding: 12px 0; flex-wrap: wrap; }

    .rts-nav { gap: 4px; }
    .rts-nav a { padding: 5px 10px; font-size: 0.83rem; }
}

@media (max-width: 480px) {
    .rts-ticket-actions { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   LOADING / ANIMATIES
   ============================================ */
@keyframes rts-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.rts-fade-in { animation: rts-fade-in 0.3s ease forwards; }

/* ============================================
   URENREGISTRATIE – INLOGSCHERM
   ============================================ */
.uren-login-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 20px;
}

.uren-login-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow);
    text-align: center;
}

.uren-login-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    line-height: 1;
}

.uren-login-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.uren-login-sub {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.uren-login-card .rts-label { text-align: left; }

/* ============================================
   URENREGISTRATIE – INVOERFORMULIER
   ============================================ */
.uren-add-form { }

.uren-add-row {
    display: grid;
    grid-template-columns: 1fr 160px 140px;
    gap: 12px;
    align-items: end;
}

.uren-add-field { }
.uren-add-field--small { }
.uren-add-field--btn { }

/* ============================================
   URENREGISTRATIE – LIJST
   ============================================ */
.uren-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    margin-bottom: 28px;
}

/* ── Enkele entry ── */
.uren-entry {
    border-bottom: 1px solid var(--gray-100);
    transition: background var(--transition);
}

.uren-entry:last-child { border-bottom: none; }

.uren-entry--paid { background: #fafffe; }
.uren-entry--open { background: var(--white); }

.uren-entry.open { background: var(--primary-light); }

/* ── Samengevatte rij ── */
.uren-entry-row {
    display: grid;
    grid-template-columns: 40px 180px 90px 130px 1fr 28px;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    cursor: pointer;
    user-select: none;
    transition: background var(--transition);
}

.uren-entry-row:hover { background: rgba(59,91,219,0.04); }

.uren-entry.open .uren-entry-row { background: rgba(59,91,219,0.07); }

/* Uitbetaald knop */
.uren-paid-form { display: flex; align-items: center; }

.uren-paid-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
    padding: 2px;
    border-radius: 4px;
    transition: transform var(--transition), opacity var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.uren-paid-btn:hover {
    transform: scale(1.15);
    background: var(--gray-100);
}

.uren-paid-btn.is-paid { opacity: 0.9; }

/* Datum */
.uren-entry-datum {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.uren-datum-text {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--gray-900);
}

.uren-datum-dag {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: capitalize;
}

/* Uren */
.uren-entry-uren {
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.uren-uren-getal {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

.uren-uren-label {
    font-size: 0.78rem;
    color: var(--gray-500);
}

/* Status */
.uren-entry-status { }

/* Preview tekst */
.uren-entry-preview {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.uren-preview-text {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.uren-preview-empty {
    font-size: 0.82rem;
    color: var(--gray-400);
    font-style: italic;
}

/* Expand indicator */
.uren-expand-icon {
    color: var(--gray-400);
    font-size: 1.1rem;
    transition: transform 0.2s ease;
    text-align: center;
}

.uren-entry.open .uren-expand-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

/* ── Detail-paneel (ingeklapt/uitgevouwen) ── */
.uren-entry-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.2s ease;
    border-top: 0px solid transparent;
}

.uren-entry.open .uren-entry-detail {
    max-height: 600px;
    border-top: 1px solid var(--gray-200);
    padding: 20px;
}

.uren-summary-form { margin-bottom: 16px; }

.uren-summary-textarea {
    margin: 8px 0 12px;
    font-size: 0.92rem;
    min-height: 110px;
}

.uren-detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.uren-delete-zone {
    padding-top: 12px;
    border-top: 1px dashed var(--gray-200);
    display: flex;
    justify-content: flex-end;
}

/* ── Wachtwoord sectie ── */
.uren-pw-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

/* ============================================
   RESPONSIVE – UREN
   ============================================ */
@media (max-width: 768px) {
    .uren-add-row {
        grid-template-columns: 1fr 1fr;
    }

    .uren-add-field--btn {
        grid-column: 1 / -1;
    }

    .uren-entry-row {
        grid-template-columns: 36px 1fr 70px 28px;
        grid-template-rows: auto auto;
        gap: 8px 10px;
        padding: 12px 16px;
    }

    .uren-entry-datum { grid-column: 2; }
    .uren-entry-uren  { grid-column: 3; }
    .uren-expand-icon { grid-column: 4; grid-row: 1; }
    .uren-entry-status { grid-column: 2; }
    .uren-entry-preview { grid-column: 2 / -1; }

    .uren-entry.open .uren-entry-detail {
        padding: 16px;
    }

    .uren-detail-actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .uren-login-card { padding: 24px 20px; }
}

/* ============================================
   WORDPRESS STANDAARD STIJLEN
   ============================================ */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
