/* ===================================================================
   S-Pod Portal  -  basisstijl (bewust simpel & licht)
   =================================================================== */
:root {
    --bg:         #f4f6f9;
    --card:       #ffffff;
    --ink:        #232a2f;
    --muted:      #6b7580;
    --line:       #e3e7ec;
    --brand:      #9B1917;   /* S-pod rood */
    --brand-dark: #7d1412;
    --brand-ink:  #ffffff;
    --grey:       #808382;   /* S-pod grijs (uit logo) */
    --ok:         #1a9d63;
    --warn:       #b7791f;
    --err:        #c0392b;
    --radius:     10px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
}

/* --- Topbar / navigatie (witte balk met logo) --- */
.topbar {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    color: var(--ink);
    padding: 0 20px;
    height: 62px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.brandlink { display: flex; align-items: center; }
.brandlink .logo { height: 36px; width: auto; display: block; }
.mainnav { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; }
.mainnav a {
    color: #4a545e;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: .95rem;
    font-weight: 500;
}
.mainnav a:hover { background: #f5f0f0; color: var(--brand); }
.mainnav a.active { background: #fbeceb; color: var(--brand); }
.userbox { display: flex; align-items: center; gap: 12px; }
.whoami { font-size: .85rem; text-align: right; line-height: 1.2; color: var(--ink); }
.whoami small { display: block; color: var(--muted); }

/* --- Container --- */
.container { max-width: 1080px; margin: 24px auto; padding: 0 20px; }
h1 { font-size: 1.5rem; margin: 0 0 8px; }
.lead { color: var(--muted); margin-top: 0; }

/* --- Knoppen (uniforme hoogte & uitlijning) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    font-family: inherit;
    font-size: .92rem;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
    vertical-align: middle;
}
.btn:hover { border-color: #cbd5e1; }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: #fbeceb; }
.btn-small { height: 30px; padding: 0 10px; font-size: .82rem; }
.btn-danger { background: #fff; color: var(--err); border-color: #e6b7b2; }
.btn-danger:hover { background: var(--err); color: #fff; border-color: var(--err); }
.btn-block { width: 100%; }

/* --- Kaarten (stat tiles) --- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 20px 0; }
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    display: flex; flex-direction: column; gap: 4px;
}
.card-num { font-size: 2rem; font-weight: 700; color: var(--brand); }
.card-lbl { color: var(--muted); font-size: .9rem; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 24px; }

/* --- Quicklinks --- */
.quicklinks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 14px; }
.tile {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px; text-decoration: none; color: var(--ink);
    display: flex; flex-direction: column; gap: 4px;
}
.tile:hover { border-color: #cbd5e1; }
.tile span { color: var(--muted); font-size: .9rem; }

/* --- Tabellen --- */
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); font-size: .93rem; }
th { background: #f8fafc; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: none; }

/* --- Statusbadges (vol, duidelijk gekleurd) --- */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 11px; border-radius: 999px;
    font-size: .78rem; font-weight: 600; white-space: nowrap;
    background: #8a939c; color: #fff; letter-spacing: .1px;
}
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.85); flex: 0 0 auto; }
.badge-grey   { background: #8a939c; color: #fff; }
.badge-blue   { background: #2f6fb0; color: #fff; }
.badge-teal   { background: #0f9488; color: #fff; }
.badge-yellow { background: #e6a417; color: #3a2c00; }
.badge-yellow::before { background: rgba(0,0,0,.55); }
.badge-orange { background: #e2711d; color: #fff; }
.badge-green  { background: #1a9d63; color: #fff; }
.badge-red    { background: #c0392b; color: #fff; }
/* Actie-knoppenrij in tabellen */
.rowbtns { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.rowbtns form { margin: 0; }
/* Klikbare rijen */
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: #eef5fb; }
/* Vrachtwagen bewerken (inklapbaar) */
details.truck-edit { margin: 6px 0 4px; }
details.truck-edit summary { cursor: pointer; color: var(--brand); font-size: .92rem; padding: 6px 0; }
/* Klikbare statuskaart */
a.card { text-decoration: none; }
a.card:hover { border-color: #cbd5e1; }

/* --- Formulieren --- */
form label { display: block; margin: 12px 0 4px; font-size: .9rem; color: var(--muted); }
form input, form select, form textarea {
    width: 100%; padding: 9px 10px; border: 1px solid var(--line);
    border-radius: 8px; font-size: .95rem; background: #fff;
}

/* --- Flash / meldingen --- */
.flash { padding: 10px 14px; border-radius: 8px; margin: 12px 0; font-size: .92rem; }
.flash-info  { background: #e7f0f7; color: #124667; }
.flash-ok    { background: #e4f5ee; color: var(--ok); }
.flash-warn  { background: #fdf3e2; color: var(--warn); }
.flash-error { background: #fdecea; color: var(--err); }

/* --- Login --- */
.login-body { display: flex; min-height: 100vh; align-items: center; justify-content: center; background: var(--brand); }
.login-card { background: #fff; padding: 32px; border-radius: 14px; width: 340px; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.login-logo { display: block; width: 190px; max-width: 100%; height: auto; margin: 0 auto 6px; }
.login-sub { margin: 2px 0 18px; color: var(--muted); font-size: .9rem; text-align: center; }

/* --- Panels & formulieren (projecten/badkamers) --- */
.panel {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 20px; margin: 18px 0;
}
.panel h2 { margin: 0 0 14px; font-size: 1.1rem; }
.panel .count { color: var(--muted); font-weight: 400; font-size: .95rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.panel-head h2 { margin: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.field { display: flex; flex-direction: column; }
.field-wide { grid-column: 1 / -1; }
.field label { margin: 0 0 5px; }
.req { color: var(--err); }
.muted { color: var(--muted); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* --- Transport / trailer-visual --- */
.row-active { background: #fbeceb; }

.trailer-wrap { margin: 6px 0 18px; }
.trailer-meta { font-size: .92rem; color: var(--ink); margin-bottom: 8px; }
.trailer {
    display: flex; align-items: stretch;
    height: 64px; border-radius: 8px; overflow: hidden;
    border: 1px solid var(--line); background: #f8fafc;
}
.trailer-cab {
    width: 46px; flex: 0 0 46px; background: var(--brand);
    border-right: 3px solid var(--brand-dark);
    position: relative;
}
.trailer-cab::after {
    content: ''; position: absolute; top: 10px; right: 8px;
    width: 18px; height: 14px; background: rgba(255,255,255,.85); border-radius: 2px;
}
.trailer-body { display: flex; flex: 1; min-width: 0; }
.load-seg {
    background: #6f7a86; border-right: 2px solid #fff;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: .72rem; overflow: hidden; white-space: nowrap;
    min-width: 0;
}
.load-seg span { padding: 0 4px; text-overflow: ellipsis; overflow: hidden; }
.load-free {
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: .78rem;
    background: repeating-linear-gradient(45deg, #f1f5f9, #f1f5f9 8px, #e9eef4 8px, #e9eef4 16px);
}
.assign-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
#sel-info { font-size: .92rem; color: var(--muted); }

/* --- Zoek/filterbalk --- */
.searchbar {
    display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
    margin: 0 0 16px; padding: 12px 14px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.searchbar input[type="search"], .searchbar input[type="text"] { flex: 1 1 220px; min-width: 160px; height: 36px; }
.searchbar select { height: 36px; width: auto; min-width: 150px; }
.searchbar .sb-label { color: var(--muted); font-size: .9rem; }

/* --- Kalender --- */
.cal-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.cal-head h2 { margin: 0; font-size: 1.15rem; text-align: center; min-width: 190px; }
.cal-scroll { overflow-x: auto; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 6px; }
.cal-dow { text-align: center; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; padding: 2px 0; }
.cal-day { min-height: 104px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.cal-day.empty { background: transparent; border: 1px dashed #eef1f4; }
.cal-day.weekend { background: #fafbfc; }
.cal-day.is-today { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.cal-daynum { font-size: .78rem; font-weight: 700; color: var(--muted); }
.cal-day.is-today .cal-daynum { color: var(--brand); }
.cal-ev { display: block; font-size: .72rem; line-height: 1.25; padding: 3px 6px; border-radius: 5px; color: #fff; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ev:hover { filter: brightness(0.94); }
.cal-legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; font-size: .85rem; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }

/* --- Footer --- */
.sitefooter { text-align: center; color: var(--muted); font-size: .85rem; padding: 30px 0; }

/* --- Productie (Altor): vrachtwagenblokken --- */
.truck-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 12px 0; background: #fff; }
.truck-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.truck-facts { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.truck-block table { margin-top: 8px; }

/* --- Gantt-planning (alleen S-Pod) --- */
.gantt-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.gantt-inner { position: relative; }
.gantt-head { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); background: #f8fafc; }
.gantt-corner { flex: 0 0 240px; width: 240px; position: sticky; left: 0; z-index: 3; background: #f8fafc; border-right: 1px solid var(--line); padding: 8px 12px; font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; display: flex; align-items: center; }
.gantt-months { display: flex; }
.gantt-month { flex: 0 0 auto; border-left: 1px solid var(--line); padding: 8px 6px; font-size: .8rem; font-weight: 600; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; }
.gantt-body { position: relative; }
.gantt-grid { position: absolute; top: 0; bottom: 0; left: 240px; right: 0; pointer-events: none; z-index: 0; }
.gantt-grid .gline { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.gantt-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--brand); }
.gantt-today span { position: absolute; top: 2px; left: 4px; font-size: .68rem; color: var(--brand); font-weight: 700; white-space: nowrap; }
.gantt-row { display: flex; align-items: center; height: 42px; border-top: 1px solid var(--line); }
.gantt-row:first-child { border-top: none; }
.gantt-label { flex: 0 0 240px; width: 240px; position: sticky; left: 0; z-index: 2; background: #fff; border-right: 1px solid var(--line); height: 100%; display: flex; align-items: center; padding: 0 12px; overflow: hidden; }
.gantt-label a { text-decoration: none; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gantt-label a:hover strong { color: var(--brand); }
.gantt-label .muted { margin-left: 6px; font-size: .85rem; }
.gantt-track { position: relative; height: 100%; flex: 0 0 auto; }
.gantt-bar { position: absolute; top: 9px; height: 24px; border-radius: 6px; display: flex; align-items: center; padding: 0 8px; font-size: .75rem; font-weight: 600; overflow: hidden; white-space: nowrap; text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,.12); box-sizing: border-box; }
.gantt-bar:hover { filter: brightness(.95); }
.gantt-bar span { overflow: hidden; text-overflow: ellipsis; }

/* --- Transport: 2D-laadplattegrond (top-view trailer) --- */
.plan-meta { font-size: .92rem; color: var(--ink); margin: 6px 0 10px; }
.plan-scroll { overflow-x: auto; padding-bottom: 6px; }
.plan-wrap { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; background: #f4f6f9; padding: 8px; }
.plan-cab { width: 34px; flex: 0 0 34px; background: var(--brand); border-radius: 7px 3px 3px 7px; margin-right: 6px; position: relative; }
.plan-cab::after { content: ''; position: absolute; top: 12px; right: 6px; width: 16px; height: 12px; background: rgba(255,255,255,.85); border-radius: 2px; }
.plan-bed { position: relative; background-color: #e9eef4; background-image: repeating-linear-gradient(90deg, transparent, transparent 45px, rgba(0,0,0,.06) 45px, rgba(0,0,0,.06) 46px); border: 1px dashed #b8c2cd; border-radius: 5px; }
.plan-seg { position: absolute; border: 1px solid rgba(255,255,255,.75); border-radius: 4px; color: #fff; display: flex; align-items: center; justify-content: center; text-align: center; font-size: .66rem; line-height: 1.05; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.plan-seg span { padding: 2px; }
.plan-seg small { font-size: .6rem; opacity: .9; }
.plan-free { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .72rem; text-align: center; line-height: 1.1; }

/* --- Instellingen: invite-link + modellen --- */
.invite-row { display: flex; gap: 6px; align-items: center; }
.invite-link { font-size: .8rem; min-width: 220px; max-width: 340px; padding: 6px 8px; }
#modellen table input[type="text"] { padding: 6px 8px; }

/* --- Gantt: week- en dagrijen --- */
.gantt-weeks, .gantt-days { display: flex; }
.gantt-weeks { border-top: 1px solid var(--line); }
.gantt-week { flex: 0 0 auto; border-left: 1px solid var(--line); padding: 3px 4px; font-size: .72rem; font-weight: 600; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; }
.gantt-days { border-top: 1px solid var(--line); }
.gantt-day { flex: 0 0 auto; border-left: 1px solid #eef1f4; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3px 0; line-height: 1.05; }
.gantt-day.weekend { background: #eef1f5; }
.gantt-day.is-today { background: #fbeceb; }
.g-dow { font-size: .6rem; color: var(--muted); text-transform: uppercase; }
.g-dnum { font-size: .72rem; font-weight: 700; color: var(--ink); }
.gantt-day.is-today .g-dnum { color: var(--brand); }
.gband { position: absolute; top: 0; bottom: 0; background: rgba(0,0,0,.035); }

/* --- Badkamers: compacte statuskeuze in actiekolom --- */
.status-mini { width: auto; min-width: 150px; height: 30px; padding: 4px 8px; font-size: .82rem; }

/* --- Transport: legenda kleur-per-model --- */
.plan-legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: .85rem; }

/* --- Badkamers: batch-selectie --- */
.bulkbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; padding: 10px 12px; background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; }
.bulkbar label { margin: 0; }
.bulkbar-dates .bulk-date { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; white-space: nowrap; }
.bulkbar-dates .bulk-date input[type="date"], .bulkbar-dates .bulk-date input.wp-input { max-width: 140px; padding: 4px 6px; }
th.cbcol, td.cbcol { width: 36px; text-align: center; }
.bulk-check, #bulk-all { width: 16px; height: 16px; }

/* --- Taalknop (NL/EN) --- */
.langswitch { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.langswitch a { padding: 6px 10px; font-size: .8rem; font-weight: 700; color: var(--muted); text-decoration: none; background: #fff; }
.langswitch a.active { background: var(--brand); color: #fff; }
.langswitch a:hover:not(.active) { background: #f5f0f0; color: var(--brand); }
.langswitch-fixed { position: fixed; top: 16px; right: 16px; z-index: 10; box-shadow: 0 1px 4px rgba(0,0,0,.15); }

/* --- Statusbalk per badkamer --- */
.statusbar { display: flex; gap: 2px; margin-top: 5px; max-width: 150px; }
.statusbar .seg { height: 5px; flex: 1; border-radius: 2px; background: #e3e7ec; }

/* --- Navigatie-dropdown (Voorraad) --- */
.navdrop { position: relative; display: inline-block; }
.navdrop > .navdrop-toggle { color: #4a545e; text-decoration: none; padding: 8px 12px; border-radius: 6px; font-size: .95rem; font-weight: 500; display: inline-block; }
.navdrop:hover > .navdrop-toggle, .navdrop.active > .navdrop-toggle { background: #fbeceb; color: var(--brand); }
.navdrop-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 195px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.12); padding: 4px; z-index: 30; }
.navdrop:hover .navdrop-menu { display: block; }
.navdrop-menu a { display: block; padding: 8px 12px; border-radius: 6px; color: #4a545e; text-decoration: none; font-size: .92rem; white-space: nowrap; }
.navdrop-menu a:hover, .navdrop-menu a.active { background: #f5f0f0; color: var(--brand); }

/* Instellingen als tandwiel-icoon in de userbox (naast Uitloggen) */
.navdrop-settings .settings-gear { padding: 6px 8px; font-size: 1.25rem; line-height: 1; color: #4a545e; border-radius: 8px; }
.navdrop-settings:hover .settings-gear, .navdrop-settings.active .settings-gear { background: #fbeceb; color: var(--brand); }
.navdrop-settings .navdrop-menu { left: auto; right: 0; }

/* --- Lage voorraad --- */
tr.low-stock td { background: #fdecea; }
.qty-big { font-weight: 700; }

/* --- Compacter badkameroverzicht (alles op één regel) --- */
.bk-table th, .bk-table td { padding: 6px 8px; white-space: nowrap; vertical-align: middle; }
.bk-table .rowbtns { flex-wrap: nowrap; gap: 5px; align-items: center; }
.bk-table .rowbtns form { margin: 0; }
.bk-table input[type="date"], .bk-table input.wp-input { max-width: 140px; padding: 5px 6px; }
.bk-table .prodnr-input { max-width: 110px; padding: 5px 6px; }
.prodnr-input { padding: 5px 6px; }
.bk-table .status-mini { min-width: 116px; height: 28px; padding: 3px 6px; }
.bk-table .btn-small { height: 28px; padding: 0 9px; }
.bk-table .statusbar { margin-top: 3px; max-width: 116px; }
.bk-table .badge { font-size: .74rem; padding: 2px 9px; }

/* --- Service: bijlagen + checkbox-regel --- */
.checkline { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.att-item { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.att-item img, .att-item video { width: 100%; height: 130px; object-fit: cover; display: block; background: #000; }
.att-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 8px; font-size: .78rem; }
.att-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- Datumkiezer met weeknummers (datepicker.js) --- */
input.wp-input { cursor: pointer; background: #fff; }
.wp-cal {
    position: absolute;
    z-index: 9999;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
    padding: 10px;
    width: 272px;
    font-size: .85rem;
    color: var(--ink);
    user-select: none;
}
.wp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.wp-title { font-weight: 600; text-transform: capitalize; }
.wp-nav {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 6px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1;
    color: var(--ink);
}
.wp-nav:hover { background: #f5f0f0; color: var(--brand); border-color: var(--brand); }
.wp-grid { border-collapse: collapse; width: 100%; table-layout: fixed; }
.wp-grid th { font-weight: 600; color: var(--muted); padding: 5px 0; font-size: .72rem; text-transform: uppercase; }
.wp-grid td { text-align: center; padding: 1px; }
.wp-day { cursor: pointer; border-radius: 6px; height: 30px; line-height: 30px; }
.wp-day:hover { background: #fbeceb; color: var(--brand); }
.wp-other { color: #c3c9cf; }
.wp-sel { background: var(--brand); color: #fff; font-weight: 600; }
.wp-sel:hover { background: var(--brand-dark); color: #fff; }
.wp-today:not(.wp-sel) { box-shadow: inset 0 0 0 1px var(--brand); }
.wp-wk {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 600;
    background: #f4f6f9;
    border-right: 1px solid var(--line);
    width: 32px;
}
td.wp-wk { cursor: default; }
.wp-foot { display: flex; justify-content: space-between; margin-top: 8px; }
.wp-foot button {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: .8rem;
    color: var(--ink);
}
.wp-foot button:hover { background: #f5f0f0; color: var(--brand); border-color: var(--brand); }
