* { box-sizing: border-box; }
body { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; margin: 0; padding: 0; background: #14110f; color: #f5efe6; }
body.internal-mode { margin: 0; padding: 0; background: #f4f4f9; color: #333; }
body.public-mode { max-width: 100%; margin: 0; padding: 0; background: #14110f; color: #f5efe6; }
#internalAppWrap { max-width: 1120px; margin: 0 auto; padding: 16px 20px 32px; }

.nav-tabs { display: flex; gap: 10px; margin-bottom: 20px; background: #e0e0e6; padding: 6px; border-radius: 10px; flex-wrap: wrap; }
.tab-btn { flex: 1; min-width: 140px; padding: 12px; border: none; border-radius: 8px; background: transparent; font-size: 16px; font-weight: bold; cursor: pointer; color: #555; transition: 0.2s; }
.tab-btn.active { background: white; color: #2e7d32; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.tab-btn.tab-public-back { flex: 0 0 auto; background: #ececf2; color: #333; font-size: 14px; padding: 10px 14px; }
.tab-btn.tab-public-back:hover { background: #dfe3ea; }

.sub-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; border-bottom: 2px solid #e0e0e6; padding-bottom: 10px; }
.sub-btn { padding: 8px 16px; border: none; border-radius: 6px; background: #e0e0e6; font-size: 14px; font-weight: bold; cursor: pointer; color: #555; }
.sub-btn.active { background: #2e7d32; color: white; }

.card { background: white; padding: 24px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 20px; max-width: 100%; min-width: 0; overflow-x: hidden; color: #333; }
input[type="text"], input[type="password"], input[type="number"], input[type="date"], select { width: 100%; padding: 10px; font-size: 15px; margin: 6px 0 14px; border: 1px solid #ccc; border-radius: 6px; }

button.primary { background: #2e7d32; color: white; border: none; padding: 12px 20px; font-size: 15px; border-radius: 6px; cursor: pointer; font-weight: bold; width: 100%; }
button.primary:hover { background: #1b5e20; }
button.logout { background: #d32f2f; color: white; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-weight: bold; }
button.small-btn { padding: 5px 9px; font-size: 12px; border-radius: 5px; border: 1px solid #ccc; background: #fff; cursor: pointer; margin-right: 4px; font-weight: 500; }
button.small-btn:hover { background: #eee; }
button.small-btn.success { background: #e8f5e9; color: #2e7d32; border-color: #a5d6a7; font-weight: bold; }
button.small-btn.danger { color: #d32f2f; border-color: #f5c6cb; }

.hidden { display: none !important; }
.header-bar { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 20px; }

.badge { background: #e8f5e9; color: #2e7d32; padding: 4px 10px; border-radius: 20px; font-size: 13px; font-weight: bold; display: inline-block; }
.badge.admin { background: #fff3e0; color: #e65100; }
.skill-tag { display: inline-block; padding: 6px 12px; border-radius: 8px; font-size: 14px; font-weight: bold; margin: 4px 6px 4px 0; background: #eee; color: #888; }
.skill-tag.has { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }

.form-grid { display: grid; grid-template-columns: 1.8fr 1fr 0.9fr 1.1fr 1fr; gap: 10px; align-items: end; }

.skills-row { display: flex; gap: 18px; flex-wrap: wrap; margin: 12px 0 16px; padding: 10px 12px; background: #fff; border: 1px solid #ddd; border-radius: 6px; align-items: center; }
.skills-row label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 500; font-size: 15px; user-select: none; }
.skills-row input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }

.created-alert { background: #e8f5e9; border: 2px solid #2e7d32; padding: 15px; border-radius: 8px; margin-top: 15px; }

table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
th, td { text-align: left; padding: 10px 6px; border-bottom: 1px solid #eee; vertical-align: middle; }
th { color: #666; font-size: 12px; text-transform: uppercase; }
code { background: #f0f0f5; padding: 3px 6px; border-radius: 4px; font-size: 13px; }

.inline-input { width: 85px; padding: 5px 6px !important; margin: 0 !important; font-size: 13px !important; box-sizing: border-box; }
.inline-date { width: 125px !important; padding: 4px 6px !important; margin: 0 !important; font-size: 13px !important; }
.time-input { width: 62px !important; padding: 4px 5px !important; margin: 0 !important; font-size: 13px !important; text-align: center; }
.table-check { width: 18px; height: 18px; cursor: pointer; }
.center { text-align: center; }

.profile-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; margin-bottom: 25px; }
.summary-box { background: #f8f9fa; padding: 16px; border-radius: 10px; border: 1px solid #e0e0e6; }
.toast { position: fixed; bottom: 20px; right: 20px; background: #333; color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 14px; opacity: 0; transition: 0.3s; pointer-events: none; z-index: 999; }
.toast.show { opacity: 1; }

/* Dnešní přehled pro brigádníka */
.today-banner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 20px; border-radius: 10px; margin-bottom: 20px; border: 2px solid #e0e0e6; background: #f8f9fa; }
.today-banner.working { background: #e8f5e9; border-color: #2e7d32; color: #1b5e20; }
.today-banner.pending { background: #fff8e1; border-color: #ffb300; color: #5d4037; }
.today-banner.cancel-req { background: #ffebee; border-color: #d32f2f; color: #b71c1c; }
.today-banner.free { background: #f4f6f9; border-color: #cfd8dc; color: #37474f; }
.today-banner-title { font-size: 18px; font-weight: bold; margin-bottom: 4px; }
.today-banner-sub { font-size: 14px; opacity: 0.9; }

/* Kalendář směn */
.month-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; background: #f8f9fa; padding: 10px 16px; border-radius: 8px; margin-bottom: 12px; border: 1px solid #e0e0e6; }
.shift-legend-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; background: #fcfcfd; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; border: 1px solid #ececf2; font-size: 13px; }
.day-row-closed { background: #f5f5f7; color: #888; }
.day-row-weekend { background: #fffdf9; }
.day-row-my-approved { background: #f1f8e9 !important; border-left: 4px solid #2e7d32; }
.day-row-my-offered, .day-row-my-preferred { background: #f1f8e9 !important; border-left: 4px solid #43a047; }
.day-row-my-cancel, .day-row-my-unavailable { background: #fff5f5 !important; border-left: 4px solid #d32f2f; }
.shift-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; margin: 3px 6px 3px 0; font-size: 13px; border: 1px solid #ddd; background: #fff; flex-wrap: wrap; }
.shift-pill.approved { background: #e8f5e9; border-color: #81c784; color: #1b5e20; font-weight: 600; }
.shift-pill.offered, .shift-pill.preferred { background: #e8f5e9; border-color: #66bb6a; color: #1b5e20; font-weight: 600; }
.shift-pill.cancel-req, .shift-pill.unavailable { background: #ffebee; border-color: #ef9a9a; color: #b71c1c; font-weight: 600; }
.shift-pill.free { background: #f5f5f8; border-color: #e0e0e6; color: #666; }
.shift-pill.closed { background: #ebebef; border-color: #d8d8e0; color: #777; font-weight: 500; }
.shift-pill.not-selected { background: #fff3e0; border-color: #ffb74d; color: #e65100; font-weight: 600; }
.shift-pill.sos { background: #fff8e1; border-color: #ffd54f; color: #b26a00; font-weight: 600; }
.small-btn.warning { background: #fff8e1; border: 1px solid #ffb300; color: #8d4e00; }
.small-btn.warning:hover { background: #ffecb3; }

/* Kompaktní jednořádkoví zájemci a sbalené omluvenky v plánování směn */
.shift-cand-list { display: flex; flex-direction: column; gap: 4px; }
.shift-cand-chip { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 3px 6px 3px 8px; border-radius: 999px; background: #e8f5e9; border: 1px solid #a5d6a7; color: #1b5e20; font-size: 12.5px; line-height: 1.25; max-width: 100%; box-sizing: border-box; }
.shift-cand-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1 1 auto; }
.shift-cand-chip.is-custom-time { background: #fff8e1; border-color: #ffb74d; color: #5d4037; }
.shift-cand-time { color: #2e7d32; font-weight: 500; font-size: 11.5px; }
.shift-cand-time-badge { display: inline-block; background: #ffe0b2; color: #b7410e; border: 1px solid #ffb74d; border-radius: 6px; padding: 1px 5px; font-size: 11px; font-weight: 700; }
.shift-cand-actions { display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; }
.shift-cand-btn { width: 22px; height: 22px; border-radius: 50%; border: none; cursor: pointer; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0; line-height: 1; transition: transform 0.12s, filter 0.12s; white-space: nowrap; }
.shift-cand-btn:hover { transform: scale(1.08); filter: brightness(0.95); }
.shift-cand-btn.approve { background: #2e7d32; color: #fff; }
.shift-cand-btn.reject { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.shift-cand-btn.shift-sos-confirm-btn { width: auto; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; white-space: nowrap; flex-shrink: 0; }
.shift-cand-btn.shift-sos-confirm-btn:hover { transform: none; filter: brightness(0.94); }

.shift-meta-badges { display: flex; flex-direction: column; gap: 4px; margin-top: 5px; }
.shift-sos-details { margin: 0; }
.shift-sos-summary { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: #fff8e1; border: 1px solid #ffd54f; color: #8d4e00; font-size: 11.5px; font-weight: 600; cursor: pointer; list-style: none; user-select: none; }
.shift-sos-summary::-webkit-details-marker { display: none; }
.shift-sos-summary:hover { background: #ffecb3; }
.shift-sos-list { margin-top: 4px; padding: 6px 8px; border-radius: 6px; background: #fffdf5; border: 1px solid #ffe082; font-size: 12px; color: #5d4037; display: flex; flex-direction: column; gap: 4px; }
.shift-sos-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; line-height: 1.3; word-break: break-word; flex-wrap: wrap; }
.shift-sos-item .shift-cand-btn.reject { width: 24px; height: 24px; }

.shift-unavail-details { margin: 0; }
.shift-unavail-summary { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: #fff5f5; border: 1px solid #f3c4c4; color: #9c2b2b; font-size: 11.5px; font-weight: 600; cursor: pointer; list-style: none; user-select: none; }
.shift-unavail-summary::-webkit-details-marker { display: none; }
.shift-unavail-summary:hover { background: #ffebee; }
.shift-unavail-list { margin-top: 4px; padding: 6px 8px; border-radius: 6px; background: #fff8f8; border: 1px solid #f5d0d0; font-size: 12px; color: #7f1d1d; display: flex; flex-direction: column; gap: 3px; }
.shift-unavail-item { line-height: 1.3; word-break: break-word; }

/* Dashboard SOS přehledy a připomenutí */
.dash-sos-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 14px; border-radius: 10px; background: #fff8e1; border: 1px solid #ffd54f; color: #6d4c00; font-size: 13.5px; }
.dash-sos-banner-text { flex: 1 1 220px; line-height: 1.4; }
.dash-sos-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed #e6e0d4; }
.dash-sos-section { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #e6e0d4; }
.dash-sos-section-title { font-size: 12.5px; font-weight: 700; color: #8d4e00; margin-bottom: 6px; }
.brig-avail-unfilled { display: flex; flex-direction: column; gap: 6px; }
.brig-avail-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.brig-time-picker { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; background: #f8f8fb; border: 1px solid #e0e0e6; border-radius: 8px; padding: 3px 6px; }
.brig-time-picker .time-input { margin: 0; }
.brig-time-reset-btn { padding: 3px 6px !important; font-size: 11px !important; line-height: 1.2 !important; background: #f1f3f5 !important; color: #495057 !important; border: 1px solid #ced4da !important; }
.brig-time-reset-btn:hover { background: #e9ecef !important; }
.brig-avail-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.warn-box { display: inline-block; background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; padding: 4px 8px; border-radius: 6px; font-size: 12px; font-weight: bold; margin-top: 4px; }
.ok-box { display: inline-block; background: #e8f5e9; color: #2e7d32; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: bold; }
.info-box { display: inline-block; background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: bold; margin-top: 4px; }

/* Mobilní popisky skryté na desktopu */
.mobile-only-label { display: none; }
.table-scroll-wrap,
.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
#boxAdmin > div,
#boxBrigadnik > div {
    max-width: 100%;
    min-width: 0;
}

/* Výrazná notifikace zrušení směny pro majitelku */
.admin-alert-banner { background: #ffebee; border: 2px solid #d32f2f; border-radius: 10px; padding: 16px 20px; margin-bottom: 20px; color: #b71c1c; box-shadow: 0 4px 12px rgba(211,47,47,0.15); }
.admin-alert-title { font-size: 17px; font-weight: bold; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.admin-alert-item { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; background: #fff; border: 1px solid #ef9a9a; border-radius: 8px; padding: 10px 14px; margin-top: 8px; color: #333; }

.hours-input { width: 68px !important; padding: 5px 6px !important; margin: 0 !important; font-size: 13px !important; text-align: center; font-weight: bold; }

/* Modální okna */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 14px; }
.modal-box { background: white; color: #333; padding: 24px; border-radius: 12px; width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto; box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.rate-history-list { font-size: 13px; color: #555; background: #f8f9fa; padding: 10px 14px; border-radius: 6px; margin-top: 12px; max-height: 120px; overflow-y: auto; }

/* Web NFC a Checklist prvky */
.nfc-status-box { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; background: #f4f6f9; border: 1px solid #cfd8dc; font-size: 14px; }
.nfc-status-box.active { background: #e8f5e9; border-color: #81c784; color: #1b5e20; }
.nfc-status-box.unsupported { background: #fff8e1; border-color: #ffe082; color: #5d4037; }
.checklist-item-row { padding: 12px; border: 1px solid #e0e0e6; border-radius: 8px; margin-bottom: 10px; background: #f8f9fa; }
.checklist-item-row label { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; margin: 0; }
.checklist-item-row input[type="checkbox"] { width: 20px; height: 20px; cursor: pointer; flex-shrink: 0; }
button.primary:disabled { background: #9e9e9e; cursor: not-allowed; opacity: 0.7; }

/* ==========================================
   ČÁST 1: RESPONZIVNÍ MOBILNÍ ZOBRAZENÍ A PŘEVOD TABULEK NA KARTY
   Výhradně přes @media (max-width: 768px)
   ========================================== */
@media (max-width: 768px) {
    html, body {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    body.internal-mode,
    body.internal-mode.has-quick-bar,
    body.public-mode,
    body.public-mode.has-quick-bar {
        padding: 0;
    }

    #viewTerminal, #viewSystem, .card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 14px 12px;
        box-sizing: border-box;
    }

    .header-bar {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .header-bar > div {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    .sub-tabs {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding-bottom: 6px;
    }

    .sub-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .form-grid,
    .profile-summary {
        grid-template-columns: 1fr !important;
    }

    .form-grid > div {
        width: 100%;
        box-sizing: border-box;
    }

    label,
    input[type="text"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    input[type="time"],
    select,
    textarea {
        width: 100%;
        box-sizing: border-box;
        display: block;
    }

    .skills-row label,
    .checklist-item-row label {
        display: flex;
        width: 100%;
        box-sizing: border-box;
    }

    .skills-row input[type="checkbox"],
    .checklist-item-row input[type="checkbox"],
    .table-check {
        width: 18px !important;
        height: 18px !important;
        display: inline-block;
    }

    .mobile-only-label {
        display: inline-block;
        font-weight: 600;
        color: #444;
        font-size: 13px;
    }

    /* 1. TABULKA UŽIVATELŮ / BRIGÁDNÍKŮ -> KARTY NA MOBILU */
    #adminSecTeam table,
    #adminUsersTable {
        display: block;
        width: 100%;
    }

    #adminSecTeam thead {
        display: none;
    }

    #adminUsersTable tr {
        display: flex;
        flex-direction: column;
        padding: 12px;
        background: #ffffff;
        border: 1px solid #e0e0e6;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
        margin-bottom: 12px;
        gap: 8px;
    }

    #adminUsersTable td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
        padding: 4px 0;
        border-bottom: none;
        width: 100%;
        text-align: left !important;
    }

    /* Seřazení prvků uvnitř karty brigádníka pod sebe:
       1. Jméno brigádníka, 2. UID čipu, 3. Hodinová sazba, 4. Dovednosti (BAR, DÝMKY, KASA, KLÍČE), 5. Nástup/Heslo/Akce */
    #adminUsersTable td.user-cell-name {
        order: 1;
        border-bottom: 1px solid #eee;
        padding-bottom: 8px;
        font-size: 15px;
    }

    #adminUsersTable td.user-cell-nfc {
        order: 2;
        background: #f8f9fa;
        padding: 8px 10px;
        border-radius: 6px;
    }

    #adminUsersTable td.user-cell-nfc .inline-input {
        width: 125px !important;
        flex: 1 1 auto;
    }

    #adminUsersTable td.user-cell-rate {
        order: 3;
        background: #f1f8e9;
        padding: 8px 10px;
        border-radius: 6px;
    }

    #adminUsersTable td.user-cell-skill {
        order: 4;
        justify-content: flex-start;
        background: #fcfcfd;
        padding: 6px 10px;
        border: 1px solid #eee;
        border-radius: 6px;
    }

    #adminUsersTable td.user-cell-skill label {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        width: auto;
        cursor: pointer;
        margin: 0;
    }

    #adminUsersTable td.user-cell-start,
    #adminUsersTable td.user-cell-pass,
    #adminUsersTable td.user-cell-actions {
        order: 5;
        border-top: 1px dashed #eee;
        padding-top: 6px;
    }

    /* 2. KONFIGURACE ÚKOLŮ ZAVÍRACÍHO CHECKLISTU -> KARTY NA MOBILU */
    #adminChecklistItemsTableWrap table,
    #adminChecklistItemsTable {
        display: block;
        width: 100%;
    }

    #adminChecklistItemsTableWrap thead {
        display: none;
    }

    #adminChecklistItemsTable tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: 12px;
        background: #ffffff;
        border: 1px solid #e0e0e6;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
        margin-bottom: 12px;
        gap: 8px;
    }

    #adminChecklistItemsTable td {
        border-bottom: none;
        padding: 2px 0;
        text-align: left !important;
    }

    /* Řádek 1: Název úkolu (input 100%) */
    #adminChecklistItemsTable td.chk-cell-text {
        order: 1;
        flex: 0 0 100%;
        width: 100%;
    }

    #adminChecklistItemsTable td.chk-cell-text input[type="text"] {
        width: 100% !important;
        box-sizing: border-box;
    }

    /* Řádek 2: Pořadí (input) + Typ pole (select) vedle sebe (flexbox 50/50) */
    #adminChecklistItemsTable td.chk-cell-order {
        order: 2;
        flex: 1 1 calc(50% - 6px);
        width: calc(50% - 6px);
    }

    #adminChecklistItemsTable td.chk-cell-order .inline-input {
        width: 100% !important;
    }

    #adminChecklistItemsTable td.chk-cell-type {
        order: 3;
        flex: 1 1 calc(50% - 6px);
        width: calc(50% - 6px);
    }

    /* Řádek 3: Přepínače Povinné a Aktivní s popiskem + tlačítko Smazat */
    #adminChecklistItemsTable td.chk-cell-req,
    #adminChecklistItemsTable td.chk-cell-active {
        order: 4;
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        margin-right: 10px;
    }

    #adminChecklistItemsTable td.chk-cell-req label,
    #adminChecklistItemsTable td.chk-cell-active label {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        width: auto;
        cursor: pointer;
        margin: 0;
    }

    #adminChecklistItemsTable td.chk-cell-delete {
        order: 5;
        margin-left: auto;
        flex: 0 0 auto;
    }

    /* 3. HISTORIE ODEVZDANÝCH CHECKLISTŮ -> POSUVNÝ KONTEJNER + SUMÁRNÍ KARTY */
    .table-scroll-wrap {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #adminChecklistSubmissionsTableWrap table,
    #adminChecklistSubmissionsTable {
        display: block;
        width: 100%;
    }

    #adminChecklistSubmissionsTableWrap thead {
        display: none;
    }

    #adminChecklistSubmissionsTable tr {
        display: flex;
        flex-direction: column;
        padding: 12px;
        background: #ffffff;
        border: 1px solid #e0e0e6;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
        margin-bottom: 12px;
        gap: 6px;
    }

    #adminChecklistSubmissionsTable td {
        display: block;
        width: 100%;
        border-bottom: none;
        padding: 2px 0;
    }

    .inv-card {
        padding: 12px;
        gap: 10px;
    }

    .inv-step-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .inv-qty-input {
        width: 58px !important;
        height: 40px;
        font-size: 16px;
    }
}

/* =========================================================
   MODUL SKLADU A INVENTURY (MOBILE-FIRST + MATICE SE STICKY SLOUPCEM)
   ========================================================= */
.cat-pills-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 10px 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.cat-pill {
    flex: 0 0 auto;
    width: auto;
    padding: 8px 14px;
    border-radius: 20px;
    background: #eef1f5;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #d5dbe3;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.cat-pill.active {
    background: #1b4d3e;
    color: #fff;
    border-color: #1b4d3e;
}

.cat-pill-count {
    background: rgba(0, 0, 0, 0.12);
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 11px;
}

.cat-pill.active .cat-pill-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.inv-cards-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inv-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 2px solid #e0e4ec;
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
    user-select: none;
}

.inv-card:hover {
    border-color: #b0bec5;
}

.inv-card.checked {
    border-color: #2e7d32;
    background: #f1f8e9;
    box-shadow: 0 2px 6px rgba(46, 125, 50, 0.12);
}

.inv-card-left {
    flex: 1 1 auto;
    min-width: 0;
}

.inv-card-title {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    font-size: 15px;
    color: #1f2937;
}

.inv-card-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.inv-card-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.inv-step-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e8ecf2;
    color: #1f2937;
    border: 1px solid #cbd5e1;
}

.inv-step-btn.plus {
    background: #e8f5e9;
    color: #1b5e20;
    border-color: #a5d6a7;
}

.inv-step-btn.minus {
    background: #ffebee;
    color: #b71c1c;
    border-color: #ef9a9a;
}

.inv-qty-input {
    width: 64px !important;
    height: 38px;
    margin: 0 !important;
    padding: 4px 6px !important;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
}

.stock-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

.stock-badge.out {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.stock-badge.low {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffb74d;
}

/* Týdenní matice inventur se sticky prvním sloupcem */
.matrix-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e0e0e6;
    border-radius: 8px;
    background: #fff;
}

.matrix-table {
    margin-top: 0;
    border-collapse: separate;
    border-spacing: 0;
    width: max-content;
    min-width: 100%;
}

.matrix-table th,
.matrix-table td {
    white-space: nowrap;
    border-bottom: 1px solid #eee;
    padding: 8px 12px;
}

.matrix-table .sticky-col {
    position: sticky;
    left: 0;
    z-index: 3;
    background: #ffffff;
    border-right: 2px solid #d0d7de;
}

.matrix-table thead .sticky-col {
    background: #f4f6f9;
    z-index: 4;
}


/* =========================================================
   V2: GLOBÁLNÍ HORNÍ PŘEPÍNACÍ PRUH PRO ADMINA (NÁHLED ROLÍ)
   ========================================================= */
.admin-preview-bar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1e293b;
    color: #f8fafc;
    border-bottom: 1px solid #334155;
    padding: 6px 16px;
    font-size: 13px;
}

.admin-preview-bar.is-preview-active {
    background: #f59e0b;
    color: #451a03;
    border-bottom: 2px solid #b45309;
}

.admin-preview-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-preview-status {
    font-weight: 700;
    white-space: nowrap;
}

.admin-preview-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-preview-btn {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    width: auto;
    margin: 0;
    transition: all 0.15s ease;
}

.admin-preview-bar.is-preview-active .admin-preview-btn {
    border-color: rgba(69, 26, 3, 0.28);
    background: rgba(255, 255, 255, 0.35);
    color: #451a03;
}

.admin-preview-btn.active {
    background: #ffffff;
    color: #0f172a;
    border-color: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.admin-preview-bar.is-preview-active .admin-preview-btn.active {
    background: #451a03;
    color: #fef3c7;
    border-color: #451a03;
}

/* =========================================================
   V2: PLOVOUCÍ LIŠTA PRO PŘIHLÁŠENOU OBSLUHU / ADMINA
   ========================================================= */
.quick-switch-bar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 150;
    background: rgba(20, 17, 15, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 163, 89, 0.3);
    color: #f5efe6;
    padding: 7px 16px;
}

body.has-admin-preview-bar .quick-switch-bar {
    top: var(--admin-preview-bar-h, 38px);
}

body.internal-mode .quick-switch-bar {
    background: #1b4d3e;
    border-bottom: 1px solid #143a2f;
}

body.has-quick-bar #internalAppWrap > .nav-tabs {
    display: none;
}

.quick-switch-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
}

.quick-switch-user {
    font-size: 12.5px;
    font-weight: 600;
    color: #e6d5bc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-switch-actions {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-shrink: 0;
}

.quick-switch-btn {
    border: 1px solid rgba(212, 163, 89, 0.4);
    background: rgba(255, 255, 255, 0.08);
    color: #f5efe6;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.18s ease;
}

.quick-switch-btn:hover {
    background: rgba(212, 163, 89, 0.2);
}

.quick-switch-btn.active {
    background: #d4a359;
    color: #1a1410;
    border-color: #d4a359;
}

/* =========================================================
   V2: VEŘEJNÝ WEB CHRISTEA ROOM (ÚTULNÝ ČAJOVNICKÝ DESIGN)
   ========================================================= */
#viewPublic {
    --bg-deep: #14110f;
    --bg-surface: #1e1915;
    --bg-card: #261f1a;
    --bg-card-hover: #2f2620;
    --gold: #d4a359;
    --gold-soft: rgba(212, 163, 89, 0.16);
    --tea-green: #4a8b68;
    --tea-green-deep: #244b37;
    --cream: #f5efe6;
    --muted: #b8aa99;
    --border-warm: rgba(212, 163, 89, 0.2);

    background: var(--bg-deep);
    color: var(--cream);
    min-height: 100vh;
}

.public-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.public-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(20, 17, 15, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-warm);
}

body.public-mode.has-quick-bar .public-header {
    top: var(--quick-bar-height, 46px);
}

.public-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 14px;
    padding-bottom: 14px;
    flex-wrap: wrap;
}

.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--cream);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: default;
}

.public-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--tea-green-deep), var(--tea-green));
    border: 1px solid var(--border-warm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.public-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.15s ease;
}

.public-nav a:hover {
    color: var(--gold);
}

/* Hero */
.public-hero {
    position: relative;
    overflow: hidden;
    padding: 46px 0 42px;
    background: radial-gradient(circle at 20% 20%, rgba(74, 139, 104, 0.24), transparent 55%),
                radial-gradient(circle at 80% 30%, rgba(212, 163, 89, 0.18), transparent 50%),
                linear-gradient(180deg, #1b1613 0%, #14110f 100%);
    border-bottom: 1px solid var(--border-warm);
}

.public-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.public-hero-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--gold-soft);
    border: 1px solid var(--border-warm);
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.public-hero-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(34px, 5.5vw, 56px);
    line-height: 1.06;
    margin: 0 0 12px;
    color: var(--cream);
    letter-spacing: 0.3px;
}

.public-hero-subtitle {
    font-size: clamp(16px, 2.1vw, 19px);
    line-height: 1.55;
    color: #e4d8c8;
    margin: 0 0 22px;
    max-width: 640px;
}

.public-hero-actions {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.public-hero-reserve-col {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
}

.public-hero-hours-note {
    margin-top: 8px;
    text-align: center;
    white-space: normal;
    max-width: 100%;
    line-height: 1.4;
}

@media (min-width: 640px) {
    .public-hero-hours-note {
        text-align: left;
        white-space: nowrap;
        max-width: none;
    }
}

.public-btn-primary,
.public-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.public-btn-primary {
    background: linear-gradient(135deg, #d4a359, #b9853b);
    color: #19130f;
}

.public-btn-primary:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #deb16a, #c79145);
}

.public-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--cream);
    border: 1px solid var(--border-warm);
}

.public-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
}

/* Sections */
.public-section {
    padding: 56px 0;
}

.public-menu-section {
    padding-top: 38px;
}

.public-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.public-section-kicker {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    margin-bottom: 6px;
}

.public-section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(30px, 4vw, 42px);
    margin: 0;
    color: var(--cream);
}

.public-search-wrap {
    flex: 1 1 280px;
    max-width: 400px;
}

.public-search-input {
    width: 100%;
    padding: 12px 16px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    border: 1px solid var(--border-warm) !important;
    background: var(--bg-surface) !important;
    color: var(--cream) !important;
    font-size: 14px !important;
}

.public-search-input::placeholder {
    color: var(--muted);
}

/* Category Tabs */
.public-cat-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0 14px;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

.public-cat-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--border-warm);
    background: var(--bg-surface);
    color: var(--cream);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}

.public-cat-pill:hover {
    border-color: var(--gold);
    background: var(--bg-card);
}

.public-cat-pill.active {
    background: linear-gradient(135deg, var(--tea-green-deep), var(--tea-green));
    border-color: #6ab18a;
    color: #fff;
}

.public-cat-count {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    color: #e9dfd1;
}

/* Menu Grid & Cards */
.public-menu-group-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
    color: var(--gold);
    margin: 26px 0 14px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-warm);
}

.public-menu-group-volume {
    margin-left: auto;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--cream);
    opacity: 0.82;
    letter-spacing: 0.01em;
}

.public-menu-group-header:first-child {
    margin-top: 4px;
}

.public-menu-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}

.public-menu-card {
    background: var(--bg-card);
    border: 1px solid var(--border-warm);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.public-menu-card:hover {
    transform: translateY(-2px);
    background: var(--bg-card-hover);
    border-color: rgba(212, 163, 89, 0.45);
}

.public-menu-card.is-unavailable {
    opacity: 0.55;
    filter: grayscale(0.45);
}

.public-menu-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.public-menu-card-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--cream);
    line-height: 1.3;
}

.public-menu-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.public-item-subcat {
    font-size: 11px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 6px;
}

.public-item-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--gold-soft);
    color: var(--gold);
    border: 1px solid rgba(212, 163, 89, 0.35);
}

.public-item-badge.unavailable {
    background: rgba(255, 255, 255, 0.08);
    color: #c2b8ae;
    border-color: rgba(255, 255, 255, 0.18);
}

.public-menu-card-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--gold);
    white-space: nowrap;
}

.public-menu-card-desc {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: #d4c8b8;
}

.public-menu-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--muted);
    padding-top: 6px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.public-menu-empty {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-surface);
    border: 1px dashed var(--border-warm);
    border-radius: 14px;
    color: var(--muted);
}

.public-retry-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid rgba(196, 154, 70, 0.55);
    background: rgba(196, 154, 70, 0.16);
    color: var(--ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.public-retry-btn:hover {
    background: rgba(196, 154, 70, 0.28);
    transform: translateY(-1px);
}

.public-hookah-brands-note {
    margin: 14px 0 6px;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(196, 154, 70, 0.08);
    border: 1px solid rgba(196, 154, 70, 0.22);
    text-align: center;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--muted);
}

.public-hookah-brands-note strong {
    color: var(--ink);
    font-weight: 600;
}

.public-menu-disclaimer {
    margin: 26px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    font-style: italic;
}

/* Contact & Hours */
.public-contact-section {
    background: linear-gradient(180deg, #14110f 0%, #1b1613 100%);
    border-top: 1px solid var(--border-warm);
}

.public-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 20px;
}

.public-info-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-warm);
    border-radius: 16px;
    padding: 26px;
}

.public-address {
    font-size: 16px;
    line-height: 1.7;
    color: #e4d8c8;
    margin: 0 0 20px;
}

.public-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.public-social-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-warm);
    color: var(--cream);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.18s ease;
}

.public-social-pill:hover {
    background: var(--gold-soft);
    border-color: var(--gold);
}

.public-hours-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.public-hours-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 15px;
}

.public-hours-list li:last-child {
    border-bottom: none;
}

.public-hours-list span.closed {
    color: #d97a7a;
    font-weight: 600;
}

/* Footer */
.public-footer {
    border-top: 1px solid var(--border-warm);
    background: #100d0b;
    padding: 22px 0;
    font-size: 13px;
    color: var(--muted);
}

.public-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .public-hero {
        padding: 32px 0 28px;
    }
    .public-section {
        padding: 38px 0;
    }
    .public-menu-section {
        padding-top: 26px;
    }
    .public-menu-items-grid {
        grid-template-columns: 1fr;
    }
    .public-nav {
        gap: 12px;
    }
}

/* =========================================================
   V2: ŽIVÝ STAV OTEVŘENO/ZAVŘENO A TELEFON PRO REZERVACE
   ========================================================= */
.public-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.public-hero-meta .public-hero-eyebrow {
    margin-bottom: 0;
}

.public-open-status,
.public-open-status-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.public-open-status-inline {
    margin-bottom: 14px;
}

.public-open-status.is-open,
.public-open-status-inline.is-open {
    background: rgba(74, 139, 104, 0.22);
    border-color: rgba(106, 177, 138, 0.5);
    color: #b7f0cf;
}

.public-open-status.is-closed,
.public-open-status-inline.is-closed {
    background: rgba(217, 122, 122, 0.14);
    border-color: rgba(217, 122, 122, 0.35);
    color: #f3c4c4;
}

.open-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.is-open .open-dot {
    background: #5ee39a;
    box-shadow: 0 0 8px rgba(94, 227, 154, 0.75);
}

.is-closed .open-dot {
    background: #e57373;
}

.public-phone-row {
    margin: 0 0 14px;
}

.public-phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 10px;
    background: rgba(212, 163, 89, 0.16);
    border: 1px solid rgba(212, 163, 89, 0.45);
    color: #f5efe6;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.18s ease;
}

.public-phone-btn:hover {
    background: rgba(212, 163, 89, 0.28);
    border-color: #d4a359;
    transform: translateY(-1px);
}

.public-hours-list li.is-today {
    color: #f5efe6;
    font-weight: 700;
    background: rgba(212, 163, 89, 0.09);
    margin: 0 -10px;
    padding: 11px 10px;
    border-radius: 8px;
}

/* =========================================================
   V2: REZERVAČNÍ SYSTÉM, DASHBOARD BANNER A ČASOVÁ OSA
   ========================================================= */
.today-res-banner {
    background: linear-gradient(135deg, #f3faf5 0%, #eaf5ee 100%);
    border: 1px solid #c5e1ce;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 0 0 18px 0;
    color: #1f3324;
    box-shadow: 0 2px 6px rgba(46, 125, 50, 0.06);
}

.today-res-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.today-res-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.today-res-pill {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #cce3d4;
    border-radius: 9px;
    padding: 7px 11px;
    font-size: 13px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.today-res-time {
    font-weight: 700;
    color: #1b5e20;
}

.today-res-table {
    font-weight: 600;
    color: #4a3f35;
    background: #f4efe8;
    padding: 2px 7px;
    border-radius: 6px;
}

.today-res-note {
    color: #666;
    font-size: 12px;
}

.today-res-actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-left: auto;
}

.today-res-del-btn {
    background: transparent;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 12px;
    line-height: 1.2;
    cursor: pointer;
    margin: 0;
    width: auto;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.today-res-del-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

/* Časová osa (Den: 15:00–24:00) */
.res-timeline {
    min-width: 760px;
    border: 1px solid #e0dcd5;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.res-tl-header-row,
.res-tl-row {
    display: grid;
    grid-template-columns: 155px 1fr;
    border-bottom: 1px solid #ece8e1;
}

.res-tl-row:last-child {
    border-bottom: none;
}

.res-tl-header-row {
    background: #f5f2ec;
    font-weight: 700;
    font-size: 12px;
    color: #555;
}

.res-tl-label-head,
.res-tl-label {
    padding: 10px 12px;
    border-right: 1px solid #e0dcd5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.res-tl-label {
    cursor: pointer;
    background: #fcfbf8;
    transition: background 0.15s ease;
}

.res-tl-label:hover {
    background: #f2ece1;
}

.res-tl-label span {
    font-size: 11px;
    color: #777;
}

.res-tl-hours-head {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
}

.res-tl-hour {
    padding: 10px 6px;
    text-align: left;
    border-right: 1px dashed #e2ddd4;
}

.res-tl-hour:last-child {
    border-right: none;
}

.res-tl-track {
    position: relative;
    min-height: 54px;
    background: #ffffff;
}

.res-tl-grid-lines {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    pointer-events: none;
}

.res-tl-grid-cell {
    border-right: 1px dashed #f0ece4;
}

.res-tl-grid-cell:last-child {
    border-right: none;
}

.res-tl-block {
    position: absolute;
    top: 6px;
    bottom: 6px;
    background: linear-gradient(135deg, #2e7d32, #3d9142);
    color: #fff;
    border: 1px solid #1b5e20;
    border-radius: 7px;
    padding: 4px 8px;
    margin: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 2px 6px rgba(46, 125, 50, 0.25);
    transition: transform 0.12s ease, filter 0.12s ease;
    z-index: 2;
}

.res-tl-block:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.res-tl-block-time {
    font-size: 10.5px;
    font-weight: 700;
    opacity: 0.92;
    white-space: nowrap;
}

.res-tl-block-name {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Týdenní mřížka (Po–Ne) */
.res-week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(145px, 1fr));
    gap: 10px;
    min-width: 980px;
}

.res-week-col {
    background: #faf9f6;
    border: 1px solid #e2ddd4;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.res-week-col.is-today {
    border-color: #2e7d32;
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.14);
}

.res-week-col-head {
    background: #f2eee6;
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #e2ddd4;
    cursor: pointer;
    transition: background 0.15s ease;
}

.res-week-col.is-today .res-week-col-head {
    background: #e3f2e7;
}

.res-week-col-head:hover {
    background: #e8e1d4;
}

.res-week-col-body {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-height: 110px;
}

.res-week-pill {
    width: 100%;
    text-align: left;
    background: #ffffff;
    border: 1px solid #d5e5d9;
    border-left: 4px solid #2e7d32;
    border-radius: 7px;
    padding: 7px 8px;
    margin: 0;
    font-size: 12px;
    color: #222;
    cursor: pointer;
    transition: background 0.12s ease;
}

.res-week-pill:hover {
    background: #f0f9f2;
}

.res-week-empty {
    text-align: center;
    color: #aaa;
    font-size: 12px;
    padding: 18px 6px;
}

/* =========================================================
   V2: DASHBOARD KARTY (ADMIN & BRIGÁDNÍK)
   ========================================================= */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.dash-card {
    background: #fafbfd;
    border: 1px solid #e0e0e6;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dash-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.dash-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

.dash-crew-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dash-stock-details summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #1b4d3e;
    padding: 6px 0;
    user-select: none;
}

.dash-stock-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    max-height: 220px;
    overflow-y: auto;
}

.dash-stock-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e6e8ee;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 13px;
    min-width: 0;
}

.dash-stock-row > span:first-child {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.today-res-pill,
.today-res-guest {
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    #internalAppWrap {
        padding: 12px 10px 24px;
    }
    .dash-grid {
        grid-template-columns: 1fr;
    }
    .inv-card {
        flex-wrap: wrap;
        gap: 10px;
    }
    .inv-card-left {
        flex: 1 1 100%;
    }
    .inv-card-right {
        margin-left: auto;
    }
}

.brig-wage-details {
    background: #f8f9fa;
    border: 1px solid #e0e0e6;
    border-radius: 10px;
    padding: 10px 14px;
}

.brig-wage-details summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    color: #1b4d3e;
    user-select: none;
}

.today-res-pill.is-seated {
    background: #eef7f0;
    border-color: #a5d6a7;
    opacity: 0.85;
}

.res-week-pill.is-cancelled {
    opacity: 0.52;
    text-decoration: line-through;
    border-left-color: #c62828;
}

.today-res-pill.is-cancelled {
    border-color: #fecaca;
    border-left: 4px solid #c62828;
    background: #fffafa;
}

.today-res-pill.is-cancelled .today-res-time,
.today-res-pill.is-cancelled .today-res-table,
.today-res-pill.is-cancelled .today-res-guest {
    opacity: 0.52;
    text-decoration: line-through;
}

.today-res-pill.is-cancelled .today-res-actions,
.today-res-pill.is-cancelled .today-res-actions button {
    opacity: 1;
    text-decoration: none;
}

.res-tl-block.is-seated,
.res-week-pill.is-seated {
    opacity: 0.78;
}

.res-tl-block.is-cancelled {
    background: #9e9e9e;
    border-color: #757575;
    opacity: 0.55;
    text-decoration: line-through;
}

.attendance-tip-badge {
    cursor: help;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.attendance-tip-badge .tip-q {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    opacity: 0.85;
}

.attendance-tip-popover {
    position: fixed;
    z-index: 9999;
    background: #1f2937;
    color: #f9fafb;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    padding: 10px 13px;
    font-size: 12.5px;
    line-height: 1.45;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    pointer-events: auto;
    box-sizing: border-box;
}

.attendance-tip-popover-title {
    font-weight: 700;
    color: #fcd34d;
    margin-bottom: 4px;
    font-size: 12px;
}

.admin-plan-extra-wrap {
    background: linear-gradient(135deg, #f5f8ff 0%, #eef5f2 100%);
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 14px 16px;
}

.admin-plan-extra-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #1e293b;
}

.admin-plan-extra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
}

.admin-plan-extra-card {
    background: #ffffff;
    border: 1px solid #dce3ec;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-plan-extra-name {
    font-weight: 700;
    font-size: 14.5px;
    color: #1f2937;
}

.admin-plan-extra-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.admin-metric-pill {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    min-width: 0;
}

.admin-metric-pill b {
    font-size: 15px;
}

.admin-metric-pill.plan {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.admin-metric-pill.extra {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.admin-metric-pill.total {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #a7f3d0;
}

.admin-metric-pill.money {
    background: #fefce8;
    color: #854d0e;
    border: 1px solid #fde047;
}

@media (max-width: 768px) {
    .admin-plan-extra-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .admin-plan-extra-metrics {
        grid-template-columns: 1fr;
    }
}

/* ========================================== */
/* SPOTŘEBA ENERGIÍ A VODY (POUZE ADMIN)      */
/* ========================================== */
.utilities-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.utilities-range-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.utilities-range-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8faf9;
    border: 1px solid #d9e6df;
    border-radius: 10px;
    padding: 4px 8px;
}

.utilities-range-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #1b4d3e;
}

.utilities-range-group select {
    width: auto;
    min-width: 90px;
    margin: 0;
    padding: 6px 8px;
    font-size: 13px;
}

.utilities-month-picker {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 8px;
}

.utilities-month-picker select {
    margin-bottom: 0;
}

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

.utilities-kpi-card {
    background: #f8faf9;
    border: 1px solid #d9e6df;
    border-radius: 12px;
    padding: 12px 14px;
    min-width: 0;
}

.utilities-kpi-card.utilities-kpi-elec {
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
    border-color: #fde68a;
    border-left-color: #f59e0b;
}

.utilities-kpi-card.utilities-kpi-water {
    border-left: 4px solid #0284c7;
    background: #f0f9ff;
    border-color: #bae6fd;
    border-left-color: #0284c7;
}

.utilities-kpi-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 4px;
}

.utilities-kpi-value {
    font-size: 20px;
    font-weight: 700;
    color: #1b4d3e;
    line-height: 1.25;
}

.utilities-kpi-sub {
    font-size: 12px;
    color: #6b7280;
    margin-top: 3px;
}

.utilities-forms-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.utilities-card {
    background: #ffffff;
    border: 1px solid #dfe6e2;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    min-width: 0;
}

.utilities-card-elec {
    border-top: 4px solid #f59e0b;
}

.utilities-card-water {
    border-top: 4px solid #0284c7;
}

.utilities-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.utilities-card-head h3 {
    margin: 0;
    color: #1b4d3e;
    font-size: 16px;
}

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

.utilities-form-fields label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.utilities-form-fields input {
    margin-bottom: 0;
}

.utilities-tables-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.utilities-table-block {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
}

@media (max-width: 900px) {
    .utilities-forms-grid {
        grid-template-columns: 1fr;
    }
    .utilities-kpi-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .utilities-form-fields {
        grid-template-columns: 1fr;
    }
    .utilities-card,
    .utilities-table-block {
        padding: 12px;
    }
}

/* ========================================== */
/* ŠABLONY A OPAKOVÁNÍ REZERVACÍ              */
/* ========================================== */
.res-templates-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 10px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
}

.res-template-empty {
    font-size: 12.5px;
    color: #64748b;
}

.res-template-chip {
    display: inline-flex;
    align-items: center;
    background: #fef9c3;
    border: 1px solid #fde047;
    border-radius: 999px;
    overflow: hidden;
    max-width: 100%;
}

.res-template-apply {
    background: transparent;
    border: none;
    color: #713f12;
    font-size: 12.5px;
    padding: 5px 10px;
    cursor: pointer;
    margin: 0;
    width: auto;
    white-space: normal;
    text-align: left;
}

.res-template-apply:hover {
    background: #fef08a;
}

.res-template-del {
    background: transparent;
    border: none;
    border-left: 1px solid #fde047;
    color: #991b1b;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 8px;
    cursor: pointer;
    margin: 0;
    width: auto;
}

.res-template-del:hover {
    background: #fee2e2;
}

.res-recurring-box {
    margin-top: 12px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #d9e6df;
    border-radius: 10px;
}

.res-recurring-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    color: #1b4d3e;
    margin: 0;
}

.res-recurring-options {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.res-recurring-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.res-recurring-preview {
    margin-top: 8px;
    font-size: 12.5px;
    color: #1b4d3e;
    background: #f0f9f4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 6px 10px;
}

@media (max-width: 768px) {
    .res-recurring-grid {
        grid-template-columns: 1fr;
    }

    /* ========================================== */
    /* PLÁNOVÁNÍ SMĚN: KARTOVÝ LAYOUT NA MOBILU   */
    /* ========================================== */
    #adminSecShifts .month-bar {
        flex-wrap: wrap;
        gap: 10px;
    }
    #adminSecShifts .month-bar > div {
        flex-wrap: wrap;
        width: 100%;
        justify-content: space-between;
    }
    #adminSecShifts #btnTestCoverageAudit {
        width: 100%;
    }
    #adminSecShifts .table-scroll-wrap {
        overflow-x: visible;
    }
    #adminSecShifts table,
    #adminSecShifts tbody {
        display: block;
        width: 100%;
    }
    #adminSecShifts thead {
        display: none;
    }
    #adminSecShifts tbody tr {
        display: block;
        width: 100%;
        box-sizing: border-box;
        background: #ffffff;
        border: 1px solid #d9e6df;
        border-radius: 12px;
        padding: 12px;
        margin-bottom: 12px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    }
    #adminSecShifts tbody tr.day-row-weekend {
        background: #fcfaf5;
        border-color: #eadbc3;
    }
    #adminSecShifts tbody tr.day-row-closed {
        background: #f5f5f7;
        border-color: #d8d8e0;
    }
    #adminSecShifts tbody td {
        display: block;
        width: 100%;
        box-sizing: border-box;
        border: none;
        padding: 6px 0;
        text-align: left;
    }
    #adminSecShifts tbody td:first-child {
        border-bottom: 1px solid #e5ece8;
        padding-top: 0;
        padding-bottom: 8px;
        margin-bottom: 4px;
        font-size: 15px;
    }
    #adminSecShifts tbody td:nth-child(2)::before {
        content: "Standard: ";
        font-weight: 700;
        color: #1b4d3e;
    }
    #adminSecShifts tbody td:nth-child(3)::before,
    #adminSecShifts tbody td:nth-child(4)::before,
    #adminSecShifts tbody td:nth-child(5)::before {
        display: block;
        font-size: 11.5px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: #5b6b63;
        margin-bottom: 4px;
    }
    #adminSecShifts tbody td:nth-child(3)::before {
        content: "Zájemci (Můžou)";
    }
    #adminSecShifts tbody td:nth-child(4)::before {
        content: "Schválená směna";
    }
    #adminSecShifts tbody td:nth-child(5)::before {
        content: "Kontrola pokrytí";
    }
    #adminSecShifts .shift-pill {
        display: flex;
        width: 100%;
        box-sizing: border-box;
        margin: 4px 0;
        padding: 8px 10px;
        gap: 6px;
        align-items: center;
        flex-wrap: wrap;
    }
    #adminSecShifts .shift-pill > span {
        flex: 1 1 auto;
        min-width: 140px;
        white-space: normal;
        word-break: break-word;
    }
    #adminSecShifts .time-input {
        width: 66px;
        min-width: 66px;
        margin: 0;
        padding: 5px 6px;
    }
    #adminSecShifts .warn-box,
    #adminSecShifts .ok-box,
    #adminSecShifts .info-box {
        white-space: normal;
        word-break: break-word;
        max-width: 100%;
        box-sizing: border-box;
    }
    #adminSecShifts .shift-cand-chip {
        padding: 5px 8px 5px 10px;
        border-radius: 8px;
        font-size: 13px;
    }
    #adminSecShifts .shift-cand-label {
        white-space: normal;
        word-break: break-word;
    }
    #adminSecShifts .shift-cand-btn {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
    #adminSecShifts .shift-cand-btn.shift-sos-confirm-btn {
        width: auto;
        height: 28px;
        padding: 0 10px;
        font-size: 12px;
        white-space: nowrap;
    }
    #adminSecShifts .shift-unavail-summary {
        padding: 4px 10px;
        font-size: 12px;
    }
}

/* ==========================================
   MIMOŘÁDNÉ UZAVÍRKY (VEŘEJNÝ WEB I ADMIN)
   ========================================== */
.public-closures-notice {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(198, 40, 40, 0.08);
    border: 1px solid rgba(198, 40, 40, 0.28);
    color: #7f1d1d;
    font-size: 13.5px;
    line-height: 1.45;
}
.public-closures-title {
    font-weight: 700;
    margin-bottom: 6px;
    color: #991b1b;
}
.public-closures-list {
    margin: 0;
    padding-left: 18px;
}
.public-closures-list li {
    margin: 3px 0;
}
.shift-closure-reason {
    margin-top: 3px;
    font-size: 11.5px;
    color: #b71c1c;
    font-style: italic;
    word-break: break-word;
}
.shift-close-day-btn {
    font-size: 11px !important;
    padding: 3px 7px !important;
}

#boxBrigadnik.tablet-mode #brigDashGrid {
    grid-template-columns: 1fr;
}

/* ==========================================
   REZERVACE: KOMPAKTNÍ LIŠTA DATA A MOBILNÍ KARTY
   ========================================== */
.res-date-bar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.res-date-bar-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 260px;
    min-width: 0;
}

.res-nav-arrow {
    margin: 0 !important;
    min-width: 36px;
    height: 36px;
    padding: 0 10px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.res-date-picker-trigger {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    color: #1e293b;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.res-date-picker-trigger:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.res-date-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.res-date-caret {
    font-size: 14px;
    flex-shrink: 0;
}

.res-date-native-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    margin: 0;
    padding: 0;
    border: 0;
}

.res-date-bar-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.res-today-btn {
    margin: 0 !important;
    height: 36px;
    padding: 0 12px !important;
    font-weight: 600;
}

.res-mode-toggle {
    display: inline-flex;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 2px;
    gap: 2px;
}

.res-mode-btn {
    border: none;
    background: transparent;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.res-mode-btn.active {
    background: #2e7d32;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.res-section-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.res-form-card {
    background: #fafdfb;
    border-color: #c8e6c9;
}

.res-mobile-cards {
    display: none;
}

.res-mobile-empty {
    text-align: center;
    color: #888;
    padding: 14px 8px;
    font-size: 13.5px;
}

.res-mobile-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.res-mobile-card.is-closed {
    opacity: 0.6;
}

.res-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.res-card-time-table {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.res-card-time {
    font-weight: 700;
    font-size: 14.5px;
    color: #1e293b;
}

.res-card-table {
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 999px;
}

.res-card-mid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.res-card-guest {
    font-size: 14.5px;
    color: #0f172a;
}

.res-card-note {
    font-size: 12.5px;
    color: #475569;
    line-height: 1.35;
}

.res-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding-top: 4px;
    border-top: 1px dashed #cbd5e1;
}

.res-card-actions .small-btn {
    margin: 0;
    min-height: 36px;
    padding: 6px 11px;
    font-size: 13px;
}

@media (max-width: 768px) {
    .res-date-bar-card {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 12px;
        gap: 8px;
    }
    .res-date-bar-top {
        flex: none;
        width: 100%;
    }
    .res-date-bar-bottom {
        width: 100%;
        justify-content: space-between;
    }
    .res-section-card {
        padding: 12px;
    }
    .res-desktop-table-wrap {
        display: none;
    }
    .res-mobile-cards {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

/* ==========================================
   VEŘEJNÝ WEB: OZNAMOVACÍ BANNER, MODAL & POZNÁMKA K REZERVACÍM
   ========================================== */
.public-promo-banner-wrap {
    margin: 14px auto 6px;
    max-width: 720px;
}

.public-promo-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(44, 31, 20, 0.92), rgba(26, 18, 12, 0.94));
    border: 1px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
    color: #f8f1e5;
    cursor: pointer;
    text-align: left;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.public-promo-banner:hover {
    transform: translateY(-1px);
    border-color: rgba(212, 175, 55, 0.85);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.36);
}

.public-promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
}

.public-promo-badge.is-akce {
    background: rgba(212, 175, 55, 0.22);
    color: #f6d365;
    border: 1px solid rgba(212, 175, 55, 0.55);
}

.public-promo-badge.is-soutez {
    background: rgba(234, 88, 12, 0.24);
    color: #fdba74;
    border: 1px solid rgba(251, 146, 60, 0.55);
}

.public-promo-badge.is-novinka {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border: 1px solid rgba(74, 222, 128, 0.5);
}

.public-promo-badge.is-info {
    background: rgba(56, 189, 248, 0.2);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.5);
}

.public-promo-title {
    flex: 1 1 auto;
    font-size: 14.5px;
    font-weight: 600;
    color: #fdf8f0;
    line-height: 1.35;
}

.public-promo-link {
    font-size: 13px;
    font-weight: 700;
    color: #e5c158;
    white-space: nowrap;
    flex-shrink: 0;
}

.public-phone-hours-note {
    margin-top: 8px;
    font-size: 12.5px;
    color: #cbbba8;
    opacity: 0.92;
    text-align: center;
}

.public-phone-hours-note.is-left {
    text-align: left;
    margin-bottom: 10px;
}

.public-promo-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(12, 8, 5, 0.78);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.public-promo-modal {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: linear-gradient(160deg, #241911 0%, #17100b 100%);
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 16px;
    padding: 24px 22px 22px;
    color: #f8f1e5;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    max-height: 90vh;
    overflow-y: auto;
}

.public-promo-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #f8f1e5;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.public-promo-modal-close:hover {
    background: rgba(255, 255, 255, 0.18);
}

.public-promo-modal-title {
    margin: 0 0 8px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 28px;
    line-height: 1.15;
    color: #f5deb3;
}

.public-promo-modal-date {
    font-size: 13px;
    color: #e5c158;
    margin-bottom: 12px;
    font-weight: 600;
}

.public-promo-modal-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #e8ddd0;
    margin-bottom: 18px;
}

.public-promo-modal-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid rgba(212, 175, 55, 0.22);
}

@media (max-width: 600px) {
    .public-promo-banner {
        flex-wrap: wrap;
        padding: 10px 12px;
        gap: 8px;
    }
    .public-promo-title {
        flex: 1 1 100%;
        order: 2;
        font-size: 14px;
    }
    .public-promo-link {
        margin-left: auto;
    }
}

.public-promo-date-pill {
    display: inline-block;
    margin-left: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #e5c158;
    opacity: 0.92;
}

.public-promo-badge.is-offer {
    background: rgba(212, 175, 55, 0.22);
    color: #f6d365;
    border: 1px solid rgba(212, 175, 55, 0.55);
}

.public-offer-card {
    background: linear-gradient(160deg, rgba(38, 27, 19, 0.94), rgba(22, 15, 10, 0.96));
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 16px;
    padding: 18px 20px;
    text-align: left;
    color: #f8f1e5;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
}

.public-offer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.public-offer-date {
    font-size: 12.5px;
    font-weight: 600;
    color: #e5c158;
}

.public-offer-title {
    margin: 0 0 12px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 26px;
    line-height: 1.15;
    color: #f5deb3;
}

.public-offer-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid rgba(212, 175, 55, 0.22);
    padding-top: 10px;
}

.public-offer-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.16);
}

.public-offer-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.public-offer-item-info {
    flex: 1 1 auto;
    min-width: 0;
}

.public-offer-item-name {
    font-size: 15px;
    font-weight: 600;
    color: #fdf8f0;
}

.public-offer-item-desc {
    font-size: 12.5px;
    color: #cbbba8;
    margin-top: 2px;
    line-height: 1.35;
}

.public-offer-item-price {
    font-size: 15px;
    font-weight: 700;
    color: #e5c158;
    white-space: nowrap;
    flex-shrink: 0;
}

.admin-banner-offer-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-banner-offer-row {
    display: grid;
    grid-template-columns: 1.4fr 1.8fr 0.7fr auto;
    gap: 8px;
    align-items: center;
}

@media (max-width: 768px) {
    .admin-banner-offer-row {
        grid-template-columns: 1fr;
        background: #ffffff;
        padding: 10px;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
    }
    .public-offer-card {
        padding: 14px 16px;
    }
    .public-offer-title {
        font-size: 22px;
    }
}

/* ==========================================
   ŠABLONY BANNERŮ, DASHBOARD KARTA A VEŘEJNÁ NABÍDKA PRO OBSLUHU
   ========================================== */
.admin-banner-templates-wrap {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
}

.admin-banner-templates-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
}

.admin-banner-templates-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.admin-banner-template-chip {
    display: inline-flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    overflow: hidden;
}

.admin-banner-template-load {
    background: transparent;
    border: none;
    padding: 6px 10px 6px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    margin: 0;
}

.admin-banner-template-load:hover {
    background: #e2e8f0;
}

.admin-banner-template-del {
    background: transparent;
    border: none;
    border-left: 1px solid #cbd5e1;
    padding: 6px 9px;
    font-size: 12px;
    cursor: pointer;
    margin: 0;
}

.admin-banner-template-del:hover {
    background: #fee2e2;
}

.staff-public-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.staff-public-menu-filters {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.staff-public-menu-filters select,
.staff-public-menu-filters input {
    margin-bottom: 0;
}

.staff-public-menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.staff-public-menu-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.staff-public-menu-card.is-hidden-item {
    background: #f8fafc;
    opacity: 0.78;
    border-style: dashed;
}

.staff-public-menu-info {
    min-width: 0;
    flex: 1;
}

.staff-public-menu-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 14.5px;
    color: #0f172a;
}

.staff-public-menu-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: #64748b;
    margin-top: 3px;
}

.staff-public-menu-action {
    flex-shrink: 0;
}

.dash-banner-type-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: #fef3c7;
    color: #92400e;
}

.dash-banner-type-pill.is-offer {
    background: #fef3c7;
    color: #78350f;
}

.dash-banner-type-pill.is-soutez {
    background: #ede9fe;
    color: #5b21b6;
}

.dash-banner-type-pill.is-novinka {
    background: #dcfce7;
    color: #166534;
}

.dash-banner-type-pill.is-info {
    background: #e0f2fe;
    color: #075985;
}

.dash-banner-desc {
    font-size: 13.5px;
    color: #334155;
    line-height: 1.5;
    margin-top: 8px;
}

.dash-banner-offer-items {
    margin-top: 10px;
    border-top: 1px solid #e2e8f0;
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dash-banner-offer-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 6px 8px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 13.5px;
}

.dash-banner-offer-price {
    font-weight: 800;
    color: #b45309;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .staff-public-menu-filters {
        grid-template-columns: 1fr;
    }
    .staff-public-menu-card {
        flex-direction: column;
        align-items: stretch;
    }
    .staff-public-menu-action button {
        width: 100%;
    }
}

.admin-banner-top-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1.6fr;
    gap: 10px;
    align-items: end;
}

.admin-banner-dates-pair {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
}

@media (max-width: 900px) {
    .admin-banner-top-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   DOSTUPNOST BRIGÁDNÍKŮ: STAV "🤷 NEVÍM"
   ========================================== */
.day-row-my-maybe {
    background: #fffbeb !important;
}

.shift-pill.maybe {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.small-btn.maybe-btn {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}

.small-btn.maybe-btn:hover {
    background: #fde68a;
}

.small-btn.maybe-save-btn {
    background: #f59e0b;
    color: #ffffff;
    border: none;
    padding: 4px 8px;
}

.brig-avail-maybe-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shift-maybe-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.shift-maybe-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 12px;
    max-width: 100%;
    flex-wrap: wrap;
}

.shift-maybe-note {
    margin-left: 4px;
    color: #78350f;
    font-style: italic;
}

.brig-maybe-head {
    display: flex;
    align-items: center;
    gap: 6px;
}

.brig-maybe-note-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.brig-maybe-note-input {
    flex: 1 1 180px;
    min-width: 140px;
}

@media (max-width: 768px) {
    #brigSecShifts .table-scroll-wrap {
        overflow-x: visible;
    }
    #brigSecShifts table,
    #brigShiftsTable {
        display: block;
        width: 100%;
    }
    #brigSecShifts thead {
        display: none;
    }
    #brigShiftsTable tr {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 10px 12px;
        background: #ffffff;
        border: 1px solid #e0e0e6;
        border-radius: 10px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
        margin-bottom: 10px;
    }
    #brigShiftsTable td {
        display: block;
        width: 100%;
        border-bottom: none;
        padding: 2px 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    #brigShiftsTable .brig-avail-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
    #brigShiftsTable .brig-avail-actions .small-btn {
        padding: 6px 9px;
        font-size: 12.5px;
    }
    #brigShiftsTable .brig-maybe-note-row {
        flex-direction: column;
        align-items: stretch;
    }
    #brigShiftsTable .brig-maybe-note-row .maybe-save-btn {
        width: 100%;
        padding: 7px 10px;
    }
}

/* ==========================================
   CHYTRÝ GENERÁTOR SMĚN & NOTIFIKACE ZMĚN
   ========================================== */
.shift-gen-modal-box {
    max-width: 820px;
    width: 96%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 18px;
    box-sizing: border-box;
}

.shift-gen-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.shift-gen-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
}

.shift-gen-worker-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    color: #1e293b;
}

.shift-gen-days-list {
    flex: 1 1 auto;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 2px;
}

.shift-gen-day-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 11px 13px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shift-gen-day-card.is-unchecked {
    opacity: 0.55;
    background: #f8fafc;
}

.shift-gen-day-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.shift-gen-day-check-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.shift-gen-day-check-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.shift-gen-assigned-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.shift-gen-person-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12.5px;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #1b5e20;
    flex-wrap: wrap;
}

.shift-gen-person-pill.is-existing {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

.shift-gen-person-pill.is-custom-time {
    background: #fff8e1;
    border-color: #ffe082;
    color: #795548;
}

.shift-gen-time-tag {
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.75);
}

.shift-gen-alerts {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shift-gen-alert {
    font-size: 12px;
    padding: 5px 9px;
    border-radius: 6px;
    line-height: 1.35;
}

.shift-gen-alert.info {
    background: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #90caf9;
}

.shift-gen-alert.warn-skill {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
}

.shift-gen-alert.crit {
    background: #ffebee;
    color: #b71c1c;
    border: 1px solid #ef9a9a;
}

.shift-gen-modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.worker-changes-modal-box {
    max-width: 520px;
    width: 94%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 18px;
    box-sizing: border-box;
}

.worker-changes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.worker-change-item {
    padding: 8px 11px;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.4;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #1e293b;
}

.worker-change-item.is-added {
    background: #e8f5e9;
    border-color: #a5d6a7;
    color: #1b5e20;
}

.worker-change-item.is-removed {
    background: #ffebee;
    border-color: #ef9a9a;
    color: #b71c1c;
}

.worker-change-item.is-modified {
    background: #fff8e1;
    border-color: #ffe082;
    color: #6d4c41;
}

@media (max-width: 640px) {
    .shift-gen-modal-box {
        width: 98%;
        max-height: 92vh;
        padding: 12px;
    }
    .shift-gen-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .shift-gen-modal-footer .small-btn {
        width: 100%;
    }
}












/* ==========================================
   MODUL ČSSZ / JMHZ
   ========================================== */
.jmhz-user-section {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 12px;
    margin: 10px 0 14px;
}
.jmhz-user-section-title {
    font-weight: 700;
    font-size: 13px;
    color: #1b4d3e;
    margin-bottom: 10px;
}
.jmhz-check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    margin: 0;
}
.jmhz-check-row input[type="checkbox"] {
    width: auto;
    margin: 0;
}
.jmhz-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.jmhz-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.jmhz-grid-3-tight {
    display: grid;
    grid-template-columns: 0.9fr 1.2fr 1fr;
    gap: 8px;
}
.jmhz-header-bar {
    margin-bottom: 14px;
}
.jmhz-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.jmhz-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1b4d3e;
    margin-bottom: 12px;
}
.jmhz-card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.jmhz-card label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 4px;
}
.jmhz-req-15 {
    color: #b45309;
    font-weight: 700;
}
.jmhz-controls-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    align-items: end;
}
.jmhz-schema-toggle {
    display: flex;
    gap: 6px;
}
.jmhz-schema-toggle .small-btn {
    flex: 1;
    padding: 9px 10px;
    margin: 0;
    font-weight: 600;
}
.jmhz-schema-toggle .small-btn.active-schema {
    background: #1b4d3e;
    color: #ffffff;
    border-color: #1b4d3e;
}
.jmhz-batch-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}
.jmhz-batch-cell {
    min-width: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
    background: #f8fafc;
    text-align: center;
}
.jmhz-batch-cell.active {
    border-color: #1b4d3e;
    background: #ecfdf5;
}
.jmhz-batch-cell.done {
    border-color: #86efac;
}
.jmhz-batch-month {
    font-weight: 700;
    font-size: 12.5px;
    color: #1e293b;
}
.jmhz-batch-status {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
    min-height: 15px;
    overflow-wrap: anywhere;
}
.jmhz-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    margin: 8px 0 10px;
}
.jmhz-row-excluded {
    opacity: 0.72;
    background: #f8fafc;
}
.jmhz-row-selected {
    background: #f0fdf4;
}
.jmhz-excluded-badge {
    display: inline-block;
    background: #e2e8f0;
    color: #475569;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
}
.jmhz-status-pill {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
}
.jmhz-status-pill.ok { background: #dcfce7; color: #166534; }
.jmhz-status-pill.excluded { background: #e2e8f0; color: #475569; }
.jmhz-status-pill.error { background: #fee2e2; color: #991b1b; }
.jmhz-status-pill.muted { background: #f1f5f9; color: #64748b; }
.jmhz-totals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}
.jmhz-total-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
}
.jmhz-total-label {
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
}
.jmhz-total-val {
    font-size: 18px;
    font-weight: 800;
    color: #1b4d3e;
    margin-top: 4px;
}
.jmhz-total-sub {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}
.jmhz-export-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.jmhz-xml-preview-wrap {
    margin-top: 14px;
    border-top: 1px solid #e2e8f0;
    padding-top: 12px;
}
.jmhz-xml-textarea {
    width: 100%;
    min-height: 280px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11.5px;
    line-height: 1.45;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #0f172a;
    color: #e2e8f0;
    resize: vertical;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .jmhz-grid-2,
    .jmhz-grid-3,
    .jmhz-grid-3-tight,
    .jmhz-totals-grid {
        grid-template-columns: 1fr;
    }
    .jmhz-batch-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .jmhz-export-actions .primary,
    .jmhz-export-actions .small-btn {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .jmhz-batch-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .jmhz-batch-cell {
        padding: 6px;
    }
    .jmhz-batch-status {
        font-size: 10.5px;
    }
}

.jmhz-new-user-accordion {
    margin: 12px 0;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
}
.jmhz-new-user-accordion > summary {
    padding: 10px 14px;
    font-weight: 700;
    font-size: 13.5px;
    color: #1b4d3e;
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.jmhz-new-user-accordion > summary::-webkit-details-marker {
    display: none;
}
.jmhz-new-user-accordion > summary::after {
    content: "▾";
    font-size: 14px;
    transition: transform 0.15s ease;
}
.jmhz-new-user-accordion[open] > summary {
    border-bottom: 1px solid #e2e8f0;
    background: #f1f5f9;
}
.jmhz-new-user-accordion[open] > summary::after {
    transform: rotate(180deg);
}
.jmhz-accordion-body {
    padding: 12px 14px;
    background: #ffffff;
}

.jmhz-guide-accordion {
    margin: 0 0 14px 0;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    overflow: hidden;
}
.jmhz-guide-accordion > summary {
    padding: 11px 16px;
    font-weight: 700;
    font-size: 13.5px;
    color: #166534;
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.jmhz-guide-accordion > summary::-webkit-details-marker {
    display: none;
}
.jmhz-guide-accordion > summary::after {
    content: "▾";
    font-size: 14px;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}
.jmhz-guide-accordion[open] > summary {
    border-bottom: 1px solid #bbf7d0;
    background: #dcfce7;
}
.jmhz-guide-accordion[open] > summary::after {
    transform: rotate(180deg);
}
.jmhz-guide-body {
    padding: 14px 16px;
    background: #ffffff;
    font-size: 13px;
    line-height: 1.5;
    color: #334155;
}
.jmhz-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.jmhz-guide-step {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
}
.jmhz-guide-step-title {
    font-weight: 700;
    color: #1b4d3e;
    margin-bottom: 6px;
    font-size: 13.5px;
}
.jmhz-guide-step ul {
    margin: 0;
    padding-left: 18px;
}
.jmhz-guide-step li {
    margin-bottom: 5px;
}
.jmhz-guide-step li:last-child {
    margin-bottom: 0;
}
.jmhz-guide-note {
    margin-top: 12px;
    padding: 10px 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    font-size: 12.5px;
    color: #78350f;
}
@media (max-width: 900px) {
    .jmhz-guide-grid {
        grid-template-columns: 1fr;
    }
}


/* ========================================================================== */
/* MODUL WIKI: PROVOZNÍ PŘÍRUČKA & RECEPTURY                                  */
/* ========================================================================== */
.wiki-shell {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wiki-header-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    border: 1px solid #e2e8f0;
}

.wiki-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.wiki-main-switch {
    display: inline-flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    gap: 4px;
}

.wiki-switch-btn {
    border: none;
    background: transparent;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    width: auto;
    margin: 0;
}

.wiki-switch-btn.active {
    background: #1b4d3e;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(27, 77, 62, 0.25);
}

.wiki-count-pill {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: inherit;
}

.wiki-switch-btn.active .wiki-count-pill {
    background: rgba(255, 255, 255, 0.22);
}

.wiki-controls-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.wiki-cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wiki-cat-pill,
.wiki-sec-pill {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    width: auto;
    margin: 0;
    transition: all 0.15s ease;
}

.wiki-cat-pill:hover,
.wiki-sec-pill:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.wiki-cat-pill.active,
.wiki-sec-pill.active {
    background: #1b4d3e;
    border-color: #1b4d3e;
    color: #ffffff;
}

.wiki-cat-pill.wiki-cat-alko.active {
    background: #b45309;
    border-color: #b45309;
}

.wiki-cat-pill.wiki-cat-nealko.active {
    background: #0f766e;
    border-color: #0f766e;
}

.wiki-search-wrap {
    width: 100%;
}

.wiki-search-input {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    background: #f8fafc;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.wiki-search-input:focus {
    outline: none;
    border-color: #1b4d3e;
    background: #ffffff;
}

.wiki-recipes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 1100px) {
    .wiki-recipes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .wiki-recipes-grid {
        grid-template-columns: 1fr;
    }
}

.wiki-recipe-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wiki-recipe-media {
    height: 150px;
    border-radius: 8px;
    background: #f8fafc;
    overflow: hidden;
}

.wiki-recipe-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    display: block;
}

.wiki-recipe-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.wiki-recipe-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.wiki-recipe-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.wiki-category-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.wiki-category-badge.alko {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.wiki-category-badge.nealko {
    background: #ccfbf1;
    color: #0f766e;
    border: 1px solid #99f6e4;
}

.wiki-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wiki-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.wiki-chill-badge {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #bae6fd;
}

.wiki-ingredients-list {
    display: flex;
    flex-direction: column;
    margin-top: 2px;
}

.wiki-ingredient-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 2px;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 13.5px;
}

.wiki-ingredient-row:last-child {
    border-bottom: none;
}

.wiki-ingredient-row.is-highlighted {
    background: #fef9c3;
    border-radius: 6px;
    padding: 6px 8px;
}

.wiki-ing-name {
    color: #1e293b;
}

.wiki-ing-amount {
    color: #1b4d3e;
    font-weight: 700;
    white-space: nowrap;
    text-align: right;
}

.wiki-garnish-note {
    margin-top: auto;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 12.5px;
    line-height: 1.4;
    display: flex;
    gap: 6px;
    align-items: flex-start;
}

.wiki-articles-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.wiki-articles-count-info {
    font-size: 13px;
    color: #475569;
}

.wiki-articles-bulk-btns {
    display: flex;
    gap: 8px;
}

.wiki-bulk-toggle-btn {
    margin: 0 !important;
    padding: 6px 12px !important;
    font-weight: 700;
}

.wiki-articles-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

@media (max-width: 760px) {
    .wiki-articles-grid {
        grid-template-columns: 1fr;
    }
}

.wiki-article-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wiki-article-card.is-accordion {
    padding: 0;
    gap: 0;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wiki-article-card.is-accordion.is-expanded {
    border-color: #a7d7c5;
    box-shadow: 0 4px 14px rgba(27, 77, 62, 0.08);
}

.wiki-article-toggle-btn {
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    background: #ffffff;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: inherit;
    font-family: inherit;
    transition: background-color 0.15s ease;
}

.wiki-article-toggle-btn:hover {
    background: #f8fafc;
}

.wiki-article-card.is-accordion.is-expanded .wiki-article-toggle-btn {
    background: #f4faf7;
    border-bottom: 1px solid #e2e8f0;
}

.wiki-article-toggle-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.wiki-article-toggle-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.wiki-article-chevron {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    color: #1b4d3e;
    background: #e6f4ea;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.wiki-article-preview-line {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    font-weight: 400;
}

.wiki-article-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: wikiFadeIn 0.16s ease-out;
}

@keyframes wikiFadeIn {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wiki-article-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.wiki-article-section-tag {
    display: inline-block;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 9px;
    border-radius: 999px;
    background: #e6f4ea;
    color: #1b4d3e;
    border: 1px solid #bbf7d0;
}

.wiki-article-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.wiki-article-img-wrap img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: zoom-in;
    display: block;
}

.wiki-article-content {
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
}

.wiki-admin-article-card {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}

.wiki-admin-article-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    flex-wrap: wrap;
    transition: background-color 0.15s ease;
}

.wiki-admin-article-head:hover {
    background: #f8fafc;
}

.wiki-admin-article-head .wiki-admin-row-main {
    flex: 1 1 260px;
    min-width: 0;
}

.wiki-admin-article-card.is-expanded .wiki-admin-article-head {
    background: #f4faf7;
    border-bottom: 1px solid #e2e8f0;
}

.wiki-admin-article-detail {
    padding: 14px;
    background: #ffffff;
    animation: wikiFadeIn 0.16s ease-out;
}

.wiki-empty-state {
    background: #ffffff;
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    color: #64748b;
    border: 1px dashed #cbd5e1;
}

/* Administrace Wiki */
.wiki-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.wiki-admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.wiki-admin-search {
    flex: 1 1 220px;
    margin: 0;
}

.wiki-admin-cat-btn.active {
    background: #1b4d3e;
    color: #ffffff;
}

.wiki-admin-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wiki-admin-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    flex-wrap: wrap;
}

.wiki-admin-row.is-inactive {
    opacity: 0.65;
    background: #f8fafc;
}

.wiki-admin-row-actions {
    display: flex;
    gap: 6px;
}

.wiki-modal-box {
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
}

.wiki-cat-toggle-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
}

.wiki-cat-toggle {
    padding: 10px;
    border-radius: 10px;
    border: 2px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-weight: 700;
    cursor: pointer;
    margin: 0;
}

.wiki-cat-toggle.active#wikiCatBtnNealko {
    background: #0d9488;
    border-color: #0d9488;
    color: #ffffff;
}

.wiki-cat-toggle.active#wikiCatBtnAlko {
    background: #be123c;
    border-color: #be123c;
    color: #ffffff;
}

.wiki-form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.wiki-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.wiki-ingredients-form-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wiki-ing-form-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.3fr auto;
    gap: 8px;
    align-items: center;
}

.wiki-ing-form-row input,
.wiki-ing-form-row select {
    margin: 0;
}

.wiki-ing-remove-btn {
    margin: 0;
    padding: 8px 11px;
}

.wiki-photo-upload-box {
    padding: 12px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
}

@media (max-width: 640px) {
    .wiki-form-grid-3,
    .wiki-form-grid-2,
    .wiki-ing-form-row {
        grid-template-columns: 1fr;
    }
    .wiki-recipes-grid,
    .wiki-articles-grid {
        grid-template-columns: 1fr;
    }
}
