/* Ordninger — tokens, picker, login, app bar, and booking grid from WebShop. */

/* Jespers Torvekøkken brand — tokens from KantineWebSite / brand guide 2026 */

:root {
    --ink: #3e4241;
    --olive: #484c28;
    --cream: #f3e1c1;
    --sand: #d5c7b6;
    --paper: #fbf6ec;
    --ochre: #b27628;
    --ochre-hot: #c07f2c;
    --nav: #3e4241;
    --line: #e3e3e3;
    --gra15: #e3e3e3;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 14px;
    color: var(--ink);
    background: #fff;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--ochre-hot);
    outline-offset: 2px;
}

.ws-shell {
    min-height: 100vh;
    padding: 0.75rem 0.75rem 2.5rem;
}

.ws-frame {
    max-width: 1140px;
    margin: 0 auto;
}

.ws-frame--wide {
    max-width: 1440px;
}

.ws-top {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1.15rem 1.35rem;
    background: #fff;
    color: var(--ink);
    border-radius: 0;
    border-bottom: 1px solid var(--line);
}

.ws-brand {
    text-decoration: none;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    min-height: 48px;
}

.ws-brand-img {
    display: block;
    width: 200px;
    max-width: 100%;
    height: auto;
}

.ws-brand-fallback {
    display: none;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.ws-heading {
    text-align: center;
}

.ws-heading h1 {
    margin: 0;
    font-size: clamp(1.05rem, 2.1vw, 1.4rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none !important;
    line-height: 1.3;
}

.ws-heading-sub {
    margin: 0.35rem 0 0;
    font-size: clamp(0.78rem, 1.4vw, 0.95rem);
    font-weight: 400;
    opacity: 0.95;
    line-height: 1.35;
}

.ws-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.ws-lang {
    display: inline-flex;
}

.ws-lang button {
    appearance: none;
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
}

.ws-lang button:first-child {
    border-radius: 0.25rem 0 0 0.25rem;
}

.ws-lang button:last-child {
    border-radius: 0 0.25rem 0.25rem 0;
    border-left-width: 0;
}

.ws-lang button.on {
    background: var(--nav);
    color: #fff;
}

.ws-back {
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

button.ws-back {
    appearance: none;
    border: 0;
    background: transparent;
    font: inherit;
    padding: 0;
}

.ws-head-link {
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.ws-back::after {
    content: "\f112";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome;
    font-weight: 900;
    margin-left: 0.4rem;
    font-size: 0.9em;
}

.ws-subnav {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    padding: 0.55rem 1.1rem 0.8rem;
    background: var(--nav);
    border-radius: 0;
    margin-bottom: 0.35rem;
}

.ws-subnav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
}

.ws-subnav a.on,
.ws-subnav a:hover {
    background: var(--ochre);
    color: #fff;
}

.ws-count {
    display: inline-grid;
    place-items: center;
    min-width: 1.15rem;
    height: 1.15rem;
    margin-left: 0.25rem;
    border-radius: 999px;
    background: #c45c26;
    font-size: 0.72rem;
}

.ws-content {
    padding: 2.4rem 0 0;
}

.ws-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.35rem 1.6rem;
    align-items: start;
}

.ws-col {
    display: grid;
    gap: 1.35rem;
}

.ws-card {
    display: grid;
    grid-template-columns: 20% 80%;
    width: 90%;
    min-height: 130px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0.375rem;
    overflow: hidden;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--sand);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    box-shadow: none;
    transition: box-shadow 0.12s ease;
}

a.ws-card {
    color: var(--ink);
}

.ws-card:hover {
    box-shadow: 0 0 0 2px var(--ochre);
}

.ws-card-wide {
    width: 95%;
    min-height: 82px;
    margin-top: 1.35rem;
    grid-template-columns: 10% 90%;
}

.ws-card-icon {
    display: grid;
    place-items: center;
    /* PHP: bg-success/shopColor + bg-gradient-shop overlay */
    background-color: var(--ochre);
    background-image: linear-gradient(180deg, rgba(238, 242, 243, 0.36), rgba(255, 255, 255, 0));
    background-repeat: no-repeat;
    color: #fff;
    font-size: 2.4rem;
}

.ws-card-wide .ws-card-icon {
    font-size: 1.85rem;
}

.ws-card-body {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-height: 100px;
    padding: 0.55rem 0.8rem 0.75rem;
    /* PHP: bg-secondary + bg-gradient-cont overlay */
    background-color: var(--paper);
    background-image: none;
    background-repeat: no-repeat;
}

.ws-card-body.has-access {
    padding-bottom: 2.15rem;
}

.ws-card-wide .ws-card-body {
    min-height: 80px;
    padding-bottom: 0.75rem;
}

.ws-card-body strong {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
}

.ws-card-text {
    font-size: 0.95rem;
    line-height: 1.35;
    opacity: 0.96;
}

/* PHP access_div â€” gray footer bar: "ADGANG: â€¦" */
.ws-card-access {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    margin: 0;
    padding: 0.4rem 0.8rem;
    background: #c5ccd3;
    color: #111;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.25;
}

.ws-status,
.ws-message {
    max-width: 40rem;
    padding: 1rem 1.15rem;
    border-radius: 0.4rem;
    background: rgba(255, 255, 255, 0.92);
    color: #212529;
}

.ws-hint {
    color: #495057;
}

.ws-message code {
    display: block;
    margin-top: 0.65rem;
    padding: 0.65rem 0.8rem;
    background: #1b2420;
    color: #d9efe4;
    border-radius: 0.35rem;
}


.ws-user-menu {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.ws-catalog-item p,
.ws-muted {
    margin: 0;
    color: #6c757d;
}

.ws-price {
    font-weight: 700;
}

.ws-mini-line {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #dee2e6;
    color: #212529;
}

.ws-form {
    display: grid;
    gap: 0.75rem;
    max-width: 36rem;
}

.ws-form label {
    display: grid;
    gap: 0.3rem;
    font-weight: 650;
    color: #212529;
}

.ws-alert {
    padding: 0.85rem 1rem;
    border-radius: 0.4rem;
    background: rgba(255, 193, 7, 0.92);
    color: #212529;
    font-weight: 600;
}


/* ===== Auth pages (login / register / forgot) â€” PHP auth_main parity ===== */

.ws-auth {
    min-height: 100vh;
    width: 100%;
    padding: 0.5rem 0 1.5rem;
    box-sizing: border-box;
}

.ws-auth-bar {
    width: 100%;
    max-width: 1320px;
    margin: 0.35rem auto 0;
    padding: 0 0.75rem;
    box-sizing: border-box;
}

.ws-auth-bar-inner {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.65rem 1.25rem 0.85rem;
    background: #fff;
    color: var(--ink);
    border-radius: 0;
    border-bottom: 1px solid var(--line);
}

.ws-auth-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--ink);
    min-height: 48px;
}

.ws-auth-logo {
    display: block;
    width: 200px;
    max-width: 100%;
    height: auto;
}

.ws-auth-brand-text {
    display: none;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.9rem;
    line-height: 1.15;
}

.ws-auth-heading {
    text-align: center;
    padding-top: 0.35rem;
}

.ws-auth-heading h1 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none !important;
    color: var(--ink);
}

.ws-auth-heading p {
    margin: 0.4rem 0 0;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.35;
    color: var(--ink);
    opacity: 0.98;
}

.ws-auth-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ws-auth-lang {
    display: inline-flex;
}

.ws-auth-lang button {
    appearance: none;
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
}

.ws-auth-lang button:first-child {
    border-radius: 0.25rem 0 0 0.25rem;
}

.ws-auth-lang button:last-child {
    border-radius: 0 0.25rem 0.25rem 0;
    border-left-width: 0;
}

.ws-auth-lang button.on {
    background: var(--nav);
    color: #fff;
}

.ws-auth-back {
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.ws-auth-back::after {
    content: "\f112";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome;
    font-weight: 900;
    margin-left: 0.4rem;
    font-size: 0.9em;
}

.ws-auth-main {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 0.75rem;
    box-sizing: border-box;
}


@media (max-width: 900px) {
    .ws-auth-bar-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.75rem;
        padding: 0.85rem 1rem;
    }

    .ws-auth-brand {
        justify-content: center;
    }

    .ws-auth-actions {
        justify-content: center;
    }
}


.ws-user {
    color: #fff;
    font-size: 0.9rem;
    opacity: 0.95;
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ws-top .ws-user {
    color: var(--ink);
    opacity: 1;
}

@media (max-width: 980px) {
    .ws-shop-body,
    .ws-layout-shop {
        grid-template-columns: 1fr;
    }

    .ws-kurv {
        position: static;
    }

    /* Stacked mobile: allow page scroll; panels stack full-width */
    .ws-shell-shop {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible;
        padding: 0.75rem 0.75rem 1.5rem;
    }

    .ws-shell-shop .ws-frame-shop,
    .ws-content-shop,
    .ws-shell-shop .ws-shop {
        flex: none;
        min-height: 0;
        overflow: visible;
    }

    .ws-shell-shop .ws-shop-body {
        flex: none;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        grid-template-columns: none;
        min-height: 0;
        height: auto;
        margin-top: 0.45rem;
        overflow: visible;
    }

    .ws-shell-shop .ws-vare {
        flex: none;
        width: 100%;
        height: auto;
        max-height: min(70vh, 36rem);
        max-height: min(70dvh, 36rem);
    }

    .ws-shell-shop .ws-kurv {
        flex: none;
        width: 100%;
        max-width: none;
        height: auto;
    }

    .ws-shell-shop .ws-kurv-body {
        max-height: 16rem;
    }

    .ws-kurv-split {
        grid-template-columns: minmax(0, 1fr) 7.5rem;
    }

    .ws-vare-sectionhead {
        flex-wrap: wrap;
    }

    .ws-vare-search-inline {
        flex: 1 1 100%;
        max-width: none;
        margin-left: 0;
    }
}

@media (max-width: 900px) {
    .ws-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ws-brand {
        justify-content: center;
    }

    .ws-actions {
        justify-content: center;
    }

    .ws-grid {
        grid-template-columns: 1fr;
    }

    .ws-card,
    .ws-card-wide {
        width: 100%;
    }

    .ws-catnav {
        justify-content: center;
    }

    .ws-vare-search {
        margin-left: 0;
        width: 100%;
    }
}

.ws-forgot-hint {
    margin: 0 0 1rem;
    color: #ffc107;
    font-size: 0.95rem;
    line-height: 1.4;
}

.ws-forgot-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 1.1rem;
    flex-wrap: wrap;
}

.ws-forgot-actions .ws-login-submit {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ws-alert-ok {
    background: rgba(25, 135, 84, 0.92);
    color: #fff;
}

.ws-reg {
    width: 100%;
    max-width: none;
    margin: 0.5rem 0 0;
    padding: 0;
    box-sizing: border-box;
}

.ws-reg-card {
    position: relative;
    background: rgba(108, 117, 125, 0.95);
    color: #fff;
    border-radius: 0.375rem;
    padding: 1.5rem 1.5rem 1.25rem;
    box-sizing: border-box;
}

.ws-reg-form {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
}

.ws-reg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding-top: 1rem;
    align-items: stretch;
}

.ws-reg-col {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    /* PHP edituser_new.php: min-height 387px default */
    min-height: 387px;
    padding: 1rem 0.75rem;
    box-sizing: border-box;
}

.ws-reg-btn-cancel,
.ws-reg-btn-ok {
    appearance: none;
    border: 0;
    border-radius: 0.4rem;
    padding: 0.65rem 1.4rem;
    font: inherit;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ws-reg-btn-cancel {
    background: #ffc107;
    color: #111;
}

.ws-reg-btn-ok {
    background: var(--ochre);
    color: #fff;
}

.ws-reg-btn-ok:disabled {
    opacity: 0.65;
    cursor: default;
}

/* ===== Special apps: booking / lunch / empcard (not catering catalog) ===== */

/* ===== Special apps (booking / lunch / empcard) ===== */

.ws-app {
    min-height: 100vh;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.ws-app-bar {
    width: 100%;
    max-width: 1320px;
    margin: 0.35rem auto 0;
    padding: 0 0.75rem;
    box-sizing: border-box;
}

.ws-app-bar-inner {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 1.25rem 0.95rem;
    background: rgba(108, 117, 125, 0.95);
    color: #fff;
    border-radius: 0.15rem;
}

.ws-app-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.ws-app-logo {
    display: block;
    width: 200px;
    max-width: 100%;
    height: auto;
}

.ws-app-brand-text {
    display: none;
}

.ws-app-heading {
    text-align: center;
}

.ws-app-heading h1 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    color: #fff;
}

.ws-app-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.ws-app-navbtn {
    appearance: none;
    border: 1px solid #212529;
    background: #212529;
    color: #fff;
    font: inherit;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 0.25rem;
    text-decoration: none;
    cursor: pointer;
}

.ws-app-navbtn.on,
.ws-app-navbtn:hover {
    background: #000;
}

.ws-app-lang {
    display: inline-flex;
    margin-left: 0.25rem;
}

.ws-app-lang button {
    appearance: none;
    border: 1px solid #212529;
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
}

.ws-app-lang button:first-child {
    border-radius: 0.25rem 0 0 0.25rem;
}

.ws-app-lang button:last-child {
    border-radius: 0 0.25rem 0.25rem 0;
    border-left-width: 0;
}

.ws-app-lang button.on {
    background: #212529;
}

.ws-app-main {
    width: 100%;
    max-width: 1320px;
    margin: 0.75rem auto 0;
    padding: 0 0.75rem;
    box-sizing: border-box;
}

.ws-app-panel {
    background: rgba(108, 117, 125, 0.95);
    color: #fff;
    border-radius: 0.375rem;
    padding: 1.75rem 1.5rem 2rem;
    min-height: 22rem;
}

.ws-app-panel--narrow {
    max-width: 32rem;
    margin: 0 auto;
}

.ws-app-panel h2 {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
}

.ws-app-lead {
    margin: 0 0 1.25rem;
    opacity: 0.95;
}

.ws-app-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 12rem;
    text-align: center;
    opacity: 0.9;
}

.ws-app-placeholder i {
    font-size: 2.5rem;
}

.ws-empcard-home {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    max-width: 22rem;
    margin: 3rem auto;
}

.ws-empcard-choice {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 5.5rem;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    background: rgba(108, 117, 125, 0.95);
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.12s ease, transform 0.12s ease;
}

.ws-empcard-choice:hover {
    box-shadow: 0 0 0 4px #939f65;
    transform: translateY(-1px);
    color: #fff;
}

@media (max-width: 900px) {
    .ws-app-bar-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ws-app-actions {
        justify-content: center;
    }
}

/* ===== Ordninger ===== */

.ws-booking {
    background: transparent;
    color: #212529;
    border-radius: 0;
    padding: 0;
    min-height: calc(100vh - 7rem);
}

.ws-booking-datebar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    width: 100%;
    padding: 0.65rem 1rem;
    margin: 0;
    background: var(--nav);
    color: #fff;
    border-radius: 0;
}

.ws-booking-datebtn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: #f8f9fa;
    color: #212529;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 0.25rem;
    cursor: pointer;
}

.ws-booking-datebtn:hover {
    background: #fff;
}

.ws-booking-date {
    font-weight: 600;
    font-size: 1rem;
    min-width: 7rem;
    text-align: center;
    color: #fff;
    padding: 0 0.35rem;
}

.ws-booking-building {
    margin: 0.75rem 0.75rem 1rem;
    max-width: 36rem;
    padding: 1rem 1.15rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.25rem;
}

.ws-booking-building label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.ws-booking-building select {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    font: inherit;
    background: #fff;
}

.ws-booking-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: #dc3545;
    font-weight: 600;
}

.ws-booking-grid-wrap {
    display: flex;
    width: calc(100% - 1.5rem);
    margin: 0 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.24);
    background: #fff;
}

.ws-booking-rooms {
    width: 15%;
    min-width: 10rem;
    flex: 0 0 15%;
}

.ws-booking-corner,
.ws-booking-time {
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-bottom: 1px solid rgba(0, 0, 0, 0.24);
    background: #f8f9fa;
}

.ws-booking-room {
    height: 90px;
    padding: 1.2rem 0.65rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.18);
    border-right: 1px solid rgba(0, 0, 0, 0.18);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.25;
}

.ws-booking-room small {
    font-weight: 500;
    opacity: 0.85;
}

.ws-booking-slots {
    width: 85%;
    overflow-x: auto;
    overflow-y: hidden;
}

.ws-booking-slots-inner {
    min-width: calc(var(--slot-count, 12) * 150px);
}

.ws-booking-times,
.ws-booking-row {
    display: grid;
    grid-template-columns: repeat(var(--slot-count, 12), minmax(150px, 1fr));
}

.ws-booking-cell {
    appearance: none;
    height: 90px;
    margin: 0;
    padding: 1.1rem 0.35rem 0.35rem;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.18);
    border-right: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    box-sizing: border-box;
    cursor: pointer;
    font: inherit;
    color: #212529;
    text-align: center;
    position: relative;
}

.ws-booking-cell.is-free:hover:not(:disabled) {
    background: #dff5df;
}

.ws-booking-cell.is-confirmed {
    background: #eef7ee !important;
    color: #212529 !important;
    cursor: pointer;
    opacity: 1;
}

.ws-booking-cell.is-confirmed:hover:not(:disabled) {
    background: #e0f0e0 !important;
}

.ws-booking-cell.is-confirmed.is-start {
    border-left: 3px solid green !important;
}

.ws-booking-cell.is-confirmed.is-end {
    border-right: 3px solid green !important;
}

.ws-booking-cell.is-own-hold,
.ws-booking-cell.is-other-hold {
    background: #eef3f7 !important;
    color: #212529 !important;
    cursor: pointer;
    opacity: 1;
}

.ws-booking-cell.is-own-hold:hover:not(:disabled),
.ws-booking-cell.is-other-hold:hover:not(:disabled) {
    background: #e0eaf2 !important;
}

.ws-booking-cell.is-own-hold.is-start,
.ws-booking-cell.is-other-hold.is-start {
    border-left: 3px solid green !important;
}

.ws-booking-cell.is-own-hold.is-end,
.ws-booking-cell.is-other-hold.is-end {
    border-right: 3px solid green !important;
}

.ws-booking-cell.is-disabled,
.ws-booking-cell:disabled {
    background: #e1e1e1 !important;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 1;
}

.ws-booking-cell-label {
    display: block;
    font-size: 14px;
    line-height: 1.3;
    color: #212529;
    pointer-events: none;
}

.ws-booking-cell-label b {
    font-weight: 700;
    color: #212529;
}

.ws-booking-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 40;
}

.ws-booking-modal {
    position: fixed;
    z-index: 50;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(32rem, calc(100vw - 2rem));
    background: #fff;
    color: #212529;
    border-radius: 0.35rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.ws-booking-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #464545;
    color: #fff;
}

.ws-booking-modal-close {
    appearance: none;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.ws-booking-modal-body {
    padding: 1rem 1.1rem;
    display: grid;
    gap: 0.75rem;
}

.ws-booking-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.ws-booking-field input,
.ws-booking-field select,
.ws-booking-field textarea {
    width: 100%;
    padding: 0.4rem 0.5rem;
    border: 1px solid #adb5bd;
    border-radius: 0.25rem;
    font: inherit;
    box-sizing: border-box;
}

.ws-booking-check {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
}

.ws-booking-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 0.75rem 1rem 1rem;
}

.ws-booking-table {
    width: 100%;
    border-collapse: collapse;
}

.ws-booking-table th,
.ws-booking-table td {
    border: 1px solid #dee2e6;
    padding: 0.55rem 0.65rem;
    text-align: left;
}

.ws-booking-table th {
    background: #f1f3f5;
}

.ws-booking-list {
    margin: 0.75rem;
    padding: 1rem;
    background: #fff;
    border-radius: 0.25rem;
}

.ws-booking-list .ws-booking-datebar {
    justify-content: flex-start;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.ws-booking-recurring {
    border: 1px solid #dee2e6;
    background: #f8f9fa;
    border-radius: 0.25rem;
    padding: 0.75rem;
    display: grid;
    gap: 0.5rem;
}

.ws-booking-recurring-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.ws-booking-modal--confirm {
    width: min(24rem, calc(100vw - 2rem));
    z-index: 60;
}

.ws-booking-modal-actions--spread {
    justify-content: space-around;
}

.ws-field-error {
    color: #b02a37;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* ===== Lunch / faste ordninger ===== */

.ws-app--lunch .ws-content {
    padding-top: 0.25rem;
}

.ws-lunch {
    background: rgba(108, 117, 125, 0.95);
    color: #fff;
    border-radius: 0.35rem;
    padding: 1.25rem 1.25rem 1.75rem;
    min-height: calc(100vh - 8rem);
}

.ws-lunch-welcome {
    margin: 0 0 1.5rem;
    text-align: center;
    font-size: 1.35rem;
}

.ws-lunch-empty {
    text-align: center;
    font-weight: 700;
    color: #ffc107;
    padding: 1.5rem;
}

.ws-lunch-groups {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    max-width: 22rem;
    margin: 0 auto;
}

.ws-lunch-group-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 5rem;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    background: rgba(70, 69, 69, 0.55);
    color: #fff;
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ws-lunch-group-card:hover {
    box-shadow: 0 0 0 4px #939f65;
    color: #fff;
}

.ws-lunch-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.ws-lunch-toolbar h2 {
    margin: 0;
    font-size: 1.25rem;
}

.ws-lunch-child {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0.35rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.ws-lunch-child-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.ws-lunch-child-head h3 {
    margin: 0;
    font-size: 1.1rem;
}

.ws-lunch-table-wrap {
    overflow-x: auto;
    background: #fff;
    color: #212529;
    border-radius: 0.25rem;
}

.ws-lunch-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.ws-lunch-table th,
.ws-lunch-table td {
    border: 1px solid #dee2e6;
    padding: 0.45rem 0.5rem;
    text-align: center;
    vertical-align: middle;
}

.ws-lunch-table th:first-child,
.ws-lunch-table td:first-child {
    text-align: left;
    min-width: 10rem;
}

.ws-lunch-table th {
    background: #f1f3f5;
    font-size: 0.85rem;
}

.ws-lunch-table th.is-disabled {
    background: #e1e1e1;
    color: #6c757d;
}

.ws-lunch-table input[type="number"] {
    width: 4rem;
    padding: 0.3rem;
    border: 1px solid #adb5bd;
    border-radius: 0.2rem;
    text-align: center;
    font: inherit;
}

.ws-lunch-table input[type="number"]:disabled {
    background: #e9ecef;
}

.ws-lunch-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.ws-lunch-saved {
    font-weight: 700;
    color: #ffc107;
}

.ws-lunch-history td,
.ws-lunch-history th {
    font-size: 0.85rem;
    white-space: nowrap;
}

.ws-event-menu {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.ws-event-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: transparent;
}

.ws-event-menu-drop {
    position: relative;
    z-index: 80;
}

.ws-event-menu-top {
    appearance: none;
    border: 0;
    background: var(--olive);
    color: #fff;
    font: inherit;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: 3px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.ws-event-menu-caret {
    font-size: 0.7rem;
    transition: transform 0.15s ease;
}

.ws-event-menu-caret.is-open {
    transform: rotate(180deg);
}

.ws-event-menu-list {
    position: absolute;
    right: 0;
    top: calc(100% + 0.2rem);
    z-index: 90;
    min-width: 12.5rem;
    margin: 0;
    padding: 0.25rem 0;
    list-style: none;
    background: #fff;
    color: #212529;
    border-radius: 3px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.ws-event-menu-list button {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    padding: 0.45rem 0.9rem;
    cursor: pointer;
}

.ws-event-menu-list button:hover {
    background: #f3f4f6;
}

