/* BJ Events klantportaal — zelfde donkere huisstijl, eigen kleine set. */
@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
        U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("/assets/fonts/space-grotesk-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
        U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
        U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
        U+A720-A7FF;
}

* { box-sizing: border-box; margin: 0; }

body {
    font: 16px/1.6 "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    background: #0f0d0e;
    color: #ece7e1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.portal-shell { width: min(1080px, 100% - 32px); margin-inline: auto; }

.portal-header { border-bottom: 1px solid rgba(255, 255, 255, .08); padding: 14px 0; }
.portal-header-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.portal-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.portal-logo { height: 34px; width: auto; }
.portal-brand em { font-style: normal; color: #ee7100; font-weight: 800; letter-spacing: .06em; }
.portal-nav { display: flex; gap: 14px; flex: 1; }
.portal-nav a {
    color: #ece7e1; text-decoration: none; font-weight: 600;
    padding: 8px 16px; border-radius: 999px;
}
.portal-nav a:hover { background: rgba(255, 255, 255, .08); }
.portal-account { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: #b9b1a9; }
.portal-account button {
    background: none; border: 1px solid rgba(255, 255, 255, .25); color: #ece7e1;
    border-radius: 999px; padding: 4px 12px; cursor: pointer;
}

main.portal-shell { flex: 1; padding: 28px 0 48px; }
h1 { font-size: 2rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 6px; }
h2 { font-weight: 700; }
.portal-muted { color: #b9b1a9; font-size: .95rem; margin-bottom: 18px; }

.portal-card {
    background: #171415; border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 14px; padding: 20px; margin-bottom: 16px;
}
.portal-card-narrow { max-width: 420px; margin: 40px auto; }

.portal-form { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.portal-form label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: #b9b1a9; }
.portal-form input {
    background: #0f0d0e; border: 1px solid rgba(255, 255, 255, .15); color: #ece7e1;
    border-radius: 8px; padding: 10px 12px; font-size: 1rem;
    width: 100%; box-sizing: border-box;
}
.portal-button {
    display: inline-block; background: #ee7100; color: #171415; font-weight: 700;
    font-family: inherit;
    border: none; border-radius: 999px; padding: 10px 22px; cursor: pointer;
    text-decoration: none; text-align: center; font-size: 1rem;
}
.portal-button-ghost { background: none; border: 1px solid rgba(255, 255, 255, .25); color: #ece7e1; font-weight: 500; }
.portal-notice {
    background: rgba(74, 222, 128, .12); border: 1px solid rgba(74, 222, 128, .4);
    color: #4ade80; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px;
}

.portal-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.portal-table th { text-align: left; color: #b9b1a9; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.portal-table th, .portal-table td { padding: 8px 10px; border-bottom: 1px solid rgba(255, 255, 255, .06); }

.portal-badge { padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.portal-status-concept { background: rgba(255, 255, 255, .08); color: #b9b1a9; }
.portal-status-optie { background: rgba(238, 113, 0, .16); color: #f5a35c; }
.portal-status-akkoord { background: rgba(34, 197, 94, .14); color: #4ade80; }
.portal-status-geannuleerd { background: rgba(239, 68, 68, .14); color: #f87171; }
.portal-status-afgerond { background: rgba(148, 163, 184, .14); color: #94a3b8; }

.portal-page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.portal-yearnav { display: flex; gap: 8px; }
.portal-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.portal-month h2 { font-size: 1.05rem; margin-bottom: 10px; }
.portal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.portal-grid-head { font-size: .7rem; color: #b9b1a9; text-align: center; }
.portal-day {
    text-align: center; font-size: .8rem; padding: 4px 0; border-radius: 6px;
    background: rgba(255, 255, 255, .04);
}
.portal-day-option { background: rgba(238, 113, 0, .35); color: #ffd9b3; }
.portal-day-busy { background: rgba(239, 68, 68, .4); color: #ffc9c9; }
.portal-day-own { outline: 2px solid #4ade80; }

.portal-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin: 0 4px 0 12px; vertical-align: -1px; }
.portal-dot-free { background: rgba(255, 255, 255, .15); }
.portal-dot-option { background: rgba(238, 113, 0, .6); }
.portal-dot-busy { background: rgba(239, 68, 68, .6); }
.portal-dot-own { background: none; outline: 2px solid #4ade80; }

.portal-footer { padding: 18px 0; color: #b9b1a9; font-size: .85rem; border-top: 1px solid rgba(255, 255, 255, .08); }

.portal-textarea {
    background: #0f0d0e; border: 1px solid rgba(255, 255, 255, .15); color: #ece7e1;
    border-radius: 8px; padding: 10px 12px; font-size: 1rem; font-family: inherit;
}
.portal-button-small { padding: 4px 14px; font-size: .85rem; }
.portal-button-active { border-color: #ee7100; color: #ee7100; }
.portal-yearnav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

/* Kalenderlink onder een dag: aanvraag starten vanaf de kalender. */
.portal-day a { color: inherit; text-decoration: none; display: block; }
.portal-day-past { opacity: .35; cursor: default; }
.portal-day-today { outline: 1px solid rgba(238, 113, 0, .8); outline-offset: -1px; border-radius: 6px; }

.portal-confirm-form { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.portal-option-choice { display: flex; gap: 8px; align-items: center; font-size: .9rem; color: #ece7e1; }

/* Reservedatums: klein uitklapregeltje, standaard dicht. */
.portal-altdetails > summary {
    cursor: pointer; color: #b9b1a9; font-size: .85rem; list-style: none;
}
.portal-altdetails > summary::-webkit-details-marker { display: none; }
.portal-altdetails > summary:hover { color: #ee7100; }
.portal-altdetails[open] > summary { margin-bottom: 10px; }
.portal-altdetails { display: flex; flex-direction: column; gap: 14px; }

/* Archiefjaren ingeklapt. */
.portal-archive { margin-bottom: 16px; }
.portal-archive > summary { cursor: pointer; color: #b9b1a9; font-size: .9rem; margin-bottom: 8px; }

/* Reeks kiezen op de kalender + de zwevende actiebalk onderin. */
.portal-day[data-date]:not([data-busy]) { cursor: pointer; }
.portal-day-selstart { outline: 2px solid #3b82f6; }
.portal-day-inrange { background: rgba(59, 130, 246, .35); color: #dbeafe; }
.portal-select-bar[hidden] { display: none; }
.portal-select-bar {
    position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px;
    display: flex; gap: 12px; align-items: center;
    background: #171415; border: 1px solid rgba(59, 130, 246, .6);
    border-radius: 999px; padding: 10px 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .6); z-index: 50;
}

.portal-contact-row { border-bottom: 1px solid rgba(255, 255, 255, .08); padding-bottom: 16px; margin-bottom: 16px; }

/* Zwevend aanvraagvenster boven de kalender. */
.portal-modal[hidden] { display: none; }
.portal-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.portal-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .65); }
.portal-modal-card {
    position: relative; width: min(440px, 100%); max-height: 90vh; overflow-y: auto;
    margin: 0; box-shadow: 0 20px 60px rgba(0, 0, 0, .7); border-color: rgba(238, 113, 0, .4);
}

/* Evenementnaam is klikbaar: opent het detailvenster met de planning. */
.portal-event-name {
    background: none; border: none; padding: 0; cursor: pointer;
    color: #ece7e1; font: inherit; text-align: left;
    text-decoration: underline; text-underline-offset: 2px;
}
.portal-event-name:hover { color: #ee7100; }
.portal-view-table th { text-align: left; white-space: nowrap; padding-right: 16px; }

/* Tabellen op smalle schermen: binnen de kaart scrollen, datums niet
   afbreken en de plaats-kolom verbergen zodat de rest past. */
.portal-table-scroll { overflow-x: auto; }
.portal-table td:nth-child(2) { white-space: nowrap; }
@media (max-width: 640px) {
    .portal-table th:nth-child(3),
    .portal-table td:nth-child(3) { display: none; }
    .portal-table th, .portal-table td { padding: 8px 8px; font-size: .88rem; }
    .portal-badge { font-size: .78rem; padding: 2px 8px; }
}

/* Formulier in twee kolommen: houdt de organisatiepagina kort. */
.portal-form-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px;
}
.portal-form-grid label { min-width: 0; }
@media (max-width: 560px) {
    .portal-form-grid { grid-template-columns: 1fr; }
}

/* Actiemenu per regel: de bolletjes met de opties eronder. */
.portal-actions-cell { position: relative; }
.portal-menu { position: relative; display: inline-block; }
.portal-menu > summary {
    cursor: pointer; list-style: none; padding: 2px 12px;
    border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px;
    font-weight: 700; user-select: none;
}
.portal-menu > summary::-webkit-details-marker { display: none; }
.portal-menu[open] > summary { border-color: #ee7100; color: #ee7100; }
.portal-menu-list {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 40;
    min-width: 190px; display: flex; flex-direction: column;
    background: #171415; border: 1px solid rgba(238, 113, 0, .4);
    border-radius: 10px; padding: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
}
.portal-menu-list a, .portal-menu-list button {
    display: block; width: 100%; text-align: left; background: none; border: none;
    color: #ece7e1; font: inherit; padding: 8px 12px; border-radius: 7px;
    text-decoration: none; cursor: pointer;
}
.portal-menu-list a:hover, .portal-menu-list button:hover { background: rgba(238, 113, 0, .18); }

.portal-request-booked-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }

/* Info-knopje achter Declined + het redenvenster. */
.portal-info-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; margin-left: 6px; vertical-align: middle;
    border-radius: 50%; border: 1px solid rgba(248, 113, 113, .6);
    background: none; color: #f87171; font-weight: 700; font-size: .75rem;
    font-family: inherit; cursor: pointer;
}
.portal-info-btn:hover { background: rgba(248, 113, 113, .15); }
.portal-reason-text { white-space: pre-wrap; margin-bottom: 16px; }
