:root {
    --primary: #013a4a;
    --accent: #f46d32;
    --bg: #f3f6f8;
    --text: #223039;
    --muted: #5b6a72;
}

body {
    background:
        radial-gradient(circle at 12% 8%, rgba(244, 109, 50, 0.14) 0%, rgba(244, 109, 50, 0) 28%),
        radial-gradient(circle at 88% 10%, rgba(1, 58, 74, 0.16) 0%, rgba(1, 58, 74, 0) 30%),
        linear-gradient(180deg, #f8fbfd 0%, #eef4f7 100%);
    color: var(--text);
    font-family: 'IBM Plex Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6,
.panel-title,
.navbar-brand {
    font-family: 'Space Grotesk', sans-serif;
}

.app-shell {
    min-height: calc(100vh - 64px);
}

.obs-navbar {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 24px rgba(8, 36, 48, 0.14);
}

.card {
    border: 1px solid rgba(1, 58, 74, 0.08);
    border-radius: 14px;
}

.panel-card {
    background: #fff;
    border: 1px solid rgba(1, 58, 74, 0.08);
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(8, 36, 48, 0.08);
    overflow: hidden;
}

.panel-header {
    border-bottom: 1px solid rgba(1, 58, 74, 0.1);
    background: linear-gradient(180deg, rgba(1, 58, 74, 0.04) 0%, rgba(1, 58, 74, 0.01) 100%);
    padding: 1.3rem 1.3rem 1rem;
}

.panel-body {
    padding: 1.3rem;
}

.panel-title {
    font-size: 1.9rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary);
    letter-spacing: -0.01em;
}

.panel-kicker {
    display: inline-flex;
    align-items: center;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0a5064;
    background: rgba(1, 58, 74, 0.08);
    border: 1px solid rgba(1, 58, 74, 0.14);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    margin-bottom: 0.45rem;
    font-weight: 700;
}

.panel-subtitle {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.98rem;
}

.table > :not(caption) > * > * {
    padding: 0.62rem 0.7rem;
    white-space: nowrap;
}

.table-responsive {
    max-height: 72vh;
    overflow: auto;
}

#chassislijst-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #ffffff;
    box-shadow: inset 0 -1px 0 rgba(1, 58, 74, 0.12);
}

.row-actions {
    text-align: center;
}

.editable {
    cursor: pointer;
    position: relative;
}

.editable:hover {
    background: rgba(1, 58, 74, 0.05);
}

.editable input {
    padding: 0.3rem 0.4rem;
}

.btn-delete {
    padding: 0.2rem 0.4rem;
    font-size: 0.85rem;
}

.legend-chip {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 4px;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.legend-yellow {
    background: #f9e26b;
}

.legend-orange {
    background: #f6a03b;
}

.legend-red {
    background: #e74c3c;
}

.nrplaat-danger {
    color: #c82333 !important;
    font-weight: 700;
}

.nrplaat-orange {
    color: #cc6d00 !important;
    font-weight: 700;
}

.nrplaat-yellow {
    color: #8f6b00 !important;
    font-weight: 700;
}

.plat-green {
    background: #59d663;
    color: #05380a;
    font-weight: 700;
    text-transform: uppercase;
}

.plat-blue {
    background: #62b0ff;
    color: #032246;
    font-weight: 700;
    text-transform: uppercase;
}

.plat-orange {
    background: #ffbe5b;
    color: #522f00;
    font-weight: 700;
    text-transform: uppercase;
}

.problem-cell {
    background: #f8d7da;
    color: #842029;
    font-weight: 700;
}

.duplicate-driver {
    background: #f8d7da;
    color: #842029;
    font-weight: 700;
}

.inactive-driver {
    background: #fff3cd;
    color: #856404;
    font-weight: 700;
}

.rederij-cma {
    background: #2b7de9;
    color: #fff;
    font-weight: 700;
}

.rederij-hapag {
    background: #ff9c32;
    color: #2d1a00;
    font-weight: 700;
}

.rederij-msc {
    background: #ffe268;
    color: #3b3000;
    font-weight: 700;
}

.rederij-one {
    background: #ff9ad5;
    color: #4a1030;
    font-weight: 700;
}

.rederij-hmm {
    background: #e74c3c;
    color: #fff;
    font-weight: 700;
}

.rederij-evergreen {
    background: #56c568;
    color: #08370f;
    font-weight: 700;
}

.rederij-oocl_cosco {
    background: #bcc3cc;
    color: #20252b;
    font-weight: 700;
}

.rederij-maersk {
    background: #9ed5ff;
    color: #003b5c;
    font-weight: 700;
}

.rederij-yang_ming {
    background: #fff;
    color: #222;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

@media (max-width: 900px) {
    .panel-title {
        font-size: 1.45rem;
    }

    .table > :not(caption) > * > * {
        padding: 0.5rem 0.55rem;
        font-size: 0.86rem;
    }
}
