﻿body{
    font-family:'Segoe UI',sans-serif;
    background:#eef3f7;
    margin:0;
    padding:28px;
    color:#25313d;
}

.container{
    max-width:1380px;
    margin:auto;
}

.topbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:18px;
}

.brand{
    display:flex;
    align-items:center;
    gap:18px;
}

.logo img{
    max-width:138px;
    display:block;
}

.logo a{
    display:block;
}

h1{
    color:#17212b;
    margin:0;
    font-size:30px;
    line-height:1.2;
}

h2{
    margin:0 0 16px;
}

.subtitle{
    margin:6px 0 0;
    color:#64727f;
}

.top-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    justify-content:flex-end;
}

.top-actions form{
    margin:0;
}

button,
.button-link{
    font-size:14px;
    padding:11px 14px;
    border:none;
    border-radius:7px;
    cursor:pointer;
    font-weight:bold;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:white;
    white-space:nowrap;
}

.btn-primary{ background:#1769aa; }
.btn-success{ background:#228b51; }
.btn-danger{ background:#c0392b; }
.btn-muted{ background:#596874; }
.btn-warning{ background:#b66a00; }

.panel{
    display:none;
    background:white;
    padding:22px;
    border-radius:8px;
    box-shadow:0 12px 30px rgba(31,45,61,.12);
    margin-bottom:20px;
    border:1px solid #dfe7ee;
}

.form-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}

.form-group.full-width,
.form-actions{
    grid-column:1 / -1;
}

.form-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

label{
    display:block;
    margin-bottom:7px;
    font-weight:bold;
    color:#344250;
    font-size:14px;
}

input,
select,
textarea{
    width:100%;
    padding:11px;
    border:1px solid #bac7d3;
    border-radius:7px;
    box-sizing:border-box;
    font-size:15px;
    background:white;
}

input:focus,
select:focus,
textarea:focus{
    outline:3px solid rgba(23,105,170,.16);
    border-color:#1769aa;
}

#reparatieDetails{
    display:none;
}

.touch-options{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}

.touch-options-three{
    grid-template-columns:repeat(3,minmax(0,1fr));
}

.touch-option{
    margin:0;
}

.touch-option input{
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.touch-option span{
    min-height:52px;
    padding:13px 12px;
    border:2px solid #bac7d3;
    border-radius:8px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f8fbfd;
    color:#344250;
    font-weight:bold;
    font-size:16px;
    cursor:pointer;
    user-select:none;
    box-sizing:border-box;
}

.touch-option input:checked + span{
    background:#1769aa;
    border-color:#1769aa;
    color:white;
}

.touch-option input:focus-visible + span{
    outline:3px solid rgba(23,105,170,.2);
    outline-offset:2px;
}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
    margin-bottom:18px;
}

.stat-card{
    background:white;
    border:1px solid #dfe7ee;
    border-radius:8px;
    padding:16px;
    box-shadow:0 8px 18px rgba(31,45,61,.06);
}

.stat-label{
    display:block;
    color:#64727f;
    font-size:13px;
    font-weight:bold;
    margin-bottom:6px;
}

.stat-number{
    display:block;
    font-size:28px;
    line-height:1;
    font-weight:bold;
    color:#17212b;
}

.notice{
    padding:12px 14px;
    border-radius:7px;
    margin-bottom:18px;
    font-weight:bold;
}

.notice-success{
    background:#e7f8ef;
    color:#18733d;
    border:1px solid #b9ebcf;
}

.notice-error{
    background:#fdecea;
    color:#9f1f17;
    border:1px solid #f5c2bd;
}

.log-section{
    background:white;
    padding:0;
    border-radius:8px;
    box-shadow:0 8px 22px rgba(31,45,61,.08);
    border:1px solid #dfe7ee;
    overflow-x:auto;
    margin-bottom:20px;
}

.log-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:18px 20px;
    border-bottom:1px solid #e8eef3;
}

.log-header h2{
    margin:0;
    font-size:21px;
}

.filters{
    display:grid;
    grid-template-columns:minmax(230px,1fr) 145px 145px 145px 145px;
    gap:10px;
    padding:0 20px 18px;
}

.filters input,
.filters select{
    padding:10px 12px;
}

table{
    width:100%;
    border-collapse:collapse;
    min-width:1220px;
}

th,td{
    padding:12px 13px;
    border-bottom:1px solid #edf1f5;
    text-align:left;
    vertical-align:top;
}

th{
    background:#17212b;
    color:white;
    font-size:13px;
    position:sticky;
    top:0;
}

tbody tr:hover{
    background:#f7fafc;
}

.badge{
    display:inline-block;
    padding:5px 9px;
    border-radius:999px;
    font-size:12px;
    font-weight:bold;
}

.badge-retour{ background:#fff0c2; color:#9a6700; }
.badge-reparatie{ background:#ffe1df; color:#b42318; }
.badge-spoed{ background:#ffe1df; color:#b42318; }
.badge-hoog{ background:#ffe8c7; color:#a14d00; }
.badge-normaal{ background:#e8f1fb; color:#1769aa; }
.badge-laag{ background:#edf2f4; color:#596874; }

.status-open{
    color:#e67e22;
    font-weight:bold;
}

.status-verwerkt{
    color:#228b51;
    font-weight:bold;
}

.small-text{
    display:block;
    color:#64727f;
    font-size:12px;
    margin-top:4px;
}

.row-actions{
    display:flex;
    flex-direction:column;
    gap:7px;
    min-width:132px;
}

.row-actions form{
    margin:0;
}

.row-actions button{
    width:100%;
    min-height:36px;
    padding:8px 10px;
    font-size:13px;
}

.edit-row{
    display:none;
    background:#f8fbfd;
}

.edit-panel{
    padding:14px;
    border:1px solid #dfe7ee;
    border-radius:8px;
    background:white;
}

.muted-row{
    text-align:center;
    color:#64727f;
    padding:28px;
}

.log-mini{
    padding:18px 20px;
}

.log-mini table{
    min-width:820px;
}

.quick-register{
    max-width:860px;
    margin:0 auto 24px;
    background:white;
    border:1px solid #dfe7ee;
    border-radius:10px;
    padding:26px;
    box-shadow:0 12px 30px rgba(31,45,61,.12);
}

.quick-register .form-grid{
    grid-template-columns:1fr;
    gap:18px;
}

.quick-register label{
    font-size:18px;
}

.quick-register input,
.quick-register select,
.quick-register textarea{
    min-height:58px;
    font-size:20px;
    border-radius:9px;
}

.quick-register .touch-option span{
    min-height:64px;
    font-size:22px;
    border-radius:9px;
}

.quick-register textarea{
    min-height:110px;
}

.quick-register .form-actions button{
    width:100%;
    min-height:64px;
    font-size:22px;
}

.quick-title{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    margin-bottom:18px;
}

.quick-title h2{
    font-size:30px;
    margin:0;
}

.quick-title p{
    margin:6px 0 0;
    color:#64727f;
    font-size:17px;
}

/* --- TABLET START SCHERM STYLING --- */
.tablet-start-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 920px;
    margin: 0 auto 24px;
}

.tablet-start-layout .quick-register {
    margin: 0;
    max-width: 100%;
}

.readonly-section table{
    min-width:1040px;
}

.login-panel{
    max-width:520px;
    margin:40px auto;
    display:block;
}

.login-panel .form-grid{
    grid-template-columns:1fr;
}

@media (max-width: 920px){
    body{
        padding:14px;
    }

    .topbar,
    .brand,
    .log-header{
        align-items:stretch;
        flex-direction:column;
    }

    .top-actions,
    .form-actions{
        justify-content:stretch;
    }

    .top-actions button,
    .top-actions .button-link,
    .form-actions button{
        width:100%;
    }

    .form-grid,
    .stats-grid,
    .filters,
    .touch-options,
    .touch-options-three{
        grid-template-columns:1fr;
    }

    .quick-register{
        padding:18px;
    }

    .quick-title{
        flex-direction:column;
    }
}
