﻿.admin-week-toolbar {
    min-height: 4vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-height: 4vh;
    border-bottom: 1px solid #ffffff33;
}

.admin-button {
    display: flex;
    color: #fff;
    cursor: pointer;
    height: 4vh;
    align-items: center;
    padding: 0 2vw;
    letter-spacing: 3px;
    font-size: 0.85rem;
}

.admin-invoice-button {
    display: block;
    outline: none;
    border: none;
    background: #ffffff22;
    color: #ffffff;
    padding: 8px 16px;
    font-family: poppins;
    margin-top: 16px;
    margin-left: -16px;
    cursor: pointer;
}

    .admin-invoice-button.closed {
        display: none;
    }

.admin-week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    padding: 2vw;
    color: #fff;
}

.admin-day {
    padding: 16px;
    min-height: 300px;
}

.admin-day-header {
    margin-bottom: 14px;
}

    .admin-day-header span {
        display: block;
        font-size: 12px;
        opacity: .6;
    }

.admin-timeblock {
    margin-bottom: 16px;
}

.admin-timeblock-title {
    margin-bottom: 8px;
    font-size: 13px;
}

    .admin-timeblock-title span {
        display: block;
        opacity: .6;
    }

.admin-tables {
    display: grid;
    gap: 1px;
    margin-left: -16px;
    width: calc(100% + 32px);
}

.admin-table {
    padding: 16px;
    cursor: pointer;
    background: #ffffff22;
}

    .admin-table.taken {
        background: #ffffff22;
    }

    .admin-table.free {
        opacity: .25;
    }

.admin-table-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.admin-res-time {
    font-size: 13px;
    font-weight: 700;
}

.admin-res-guest {
    font-size: 13px;
}

.admin-res-meta,
.admin-res-exp,
.admin-free-label {
    font-size: 12px;
    opacity: .65;
}

#reservationContent {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.admin-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    align-items: center;
    justify-content: center;
    z-index: 9999;
    align-items: flex-start;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

    .admin-modal.visible {
        display: flex;
    }

    .admin-modal input, .admin-modal select, .admin-modal textarea {
        outline: none;
        border: none;
        background: #ffffff22;
        color: #fff;
        font-family: Poppins;
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    .admin-modal option {
        outline: none;
        border: none;
        background: #1834257a;
        color: #fff;
        font-family: Poppins;
        font-size: 0.85rem;
    }

.admin-modal-window {
    /* background: #fff; */
    /* border-radius: 18px; */
    padding: 28px;
    width: 75vw;
    position: relative;
    color: #ffffffaa;
}

.admin-modal-close {
    position: absolute;
    right: 18px;
    top: 14px;
    cursor: pointer;
    font-size: 26px;
}

.admin-modal-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.admin-pill {
    display: inline-block;
    padding: 6px 10px;
    background: #ffffff22;
    font-size: 0.85rem;
}

.admin-log {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

    .admin-log span {
        display: block;
        font-size: 12px;
        opacity: .55;
    }

#admin-comment {
    width: 100%;
    min-height: 90px;
}

.admin-waiting-list {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px dashed #d0b46c;
}

.admin-waiting-title {
    font-size: 13px;
    font-weight: 700;
    color: #9a7420;
    margin-bottom: 8px;
}

.admin-waiting-item {
    background: #fff3d6;
    border: 1px solid #e5c777;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
    cursor: pointer;
}

.admin-waiting-time {
    font-weight: 700;
    font-size: 13px;
}

.admin-waiting-guest {
    font-size: 13px;
}

.admin-waiting-meta {
    font-size: 12px;
    opacity: .7;
}

.admin-table.taken.awaiting_confirmation {
    background: #fff3d6;
    border-color: #d99b3d;
}

.admin-promoted-label {
    margin-top: 6px;
    display: inline-block;
    padding: 4px 7px;
    border-radius: 999px;
    background: #d99b3d;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

.admin-week-center {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-week-title {
    cursor: pointer;
    font-weight: 700;
    padding: 10px 14px;
    background: #f1f1f1;
    border-radius: 8px;
}

    .admin-week-title:hover {
        background: #e5e5e5;
    }

.admin-button.secondary {
    background: #666;
}

.admin-week-calendar {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 9998;
    align-items: center;
    justify-content: center;
}

    .admin-week-calendar.visible {
        display: flex;
    }

.admin-picker-window {
    width: min(420px, 92vw);
    background: #fff;
    border-radius: 18px;
    padding: 22px;
}

.admin-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.admin-picker-title {
    font-weight: 700;
    font-size: 18px;
}

.admin-picker-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 26px;
}

.admin-picker-weekdays,
.admin-picker-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 7px;
}

.admin-picker-weekdays {
    font-size: 11px;
    opacity: .55;
    text-align: center;
    margin-bottom: 8px;
}

.admin-picker-day {
    aspect-ratio: 1 / 1;
    background: #f3f3f3;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .admin-picker-day.outside {
        opacity: .25;
    }

    .admin-picker-day.today {
        border: 2px solid #222;
    }

    .admin-picker-day.selected-week {
        background: #dbeee1;
    }


#personalInfo {
    display: flex;
    gap: 1px;
    flex-direction: column;
    padding: 16px;
}

.masterPdfViewer {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
}

    .masterPdfViewer[hidden] {
        display: none;
    }

.masterPdfViewerWindow {
    width: min(1200px, 100%);
    height: min(920px, 96vh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.masterPdfViewerHeader {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.masterPdfViewerTitle {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.masterPdfViewerActions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.masterPdfViewerButton,
.masterPdfViewerClose {
    appearance: none;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.masterPdfViewerButton {
    padding: 9px 14px;
    background: #eeeeee;
}

    .masterPdfViewerButton.primary {
        background: #111111;
        color: #ffffff;
    }

.masterPdfViewerClose {
    width: 38px;
    height: 38px;
    background: transparent;
    font-size: 28px;
    line-height: 1;
}

.masterPdfViewerFrame {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    border: 0;
    background: #dddddd;
}

html.pdfViewerOpen,
html.pdfViewerOpen body {
    overflow: hidden;
}
