/* ========================================
   FRANKIE'S — ORDERS PAGE
   (uses style.css for colours, fields,
   buttons and the modal)
======================================== */

.orders-page {
    min-height: 100vh;
    background: radial-gradient(circle at 80% 0%, rgba(239, 210, 60, 0.06), transparent 45%), #000000;
}

.orders-page [hidden] {
    display: none !important;
}


/* ---------- Login ---------- */

.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 18px;
}

.login-box {
    width: min(440px, 100%);
    padding: 44px 40px 36px;
    display: grid;
    gap: 18px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(239, 210, 60, 0.22);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.login-logo {
    width: 170px;
    height: auto;
    margin-bottom: 10px;
}

.login-box .section-eyebrow {
    margin-bottom: -8px;
}

.login-box h1 {
    margin-bottom: 8px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 52px;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -1.5px;
}

.login-box h1 span {
    color: var(--yellow);
    font-style: italic;
}

.login-box .booking-submit {
    margin-top: 8px;
}

.login-back {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    text-align: center;
    text-decoration: none;
}

.login-back:hover {
    color: var(--yellow);
}


/* ---------- Header ---------- */

.dash-header {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 76px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: rgba(0, 0, 0, 0.92);
    border-bottom: 1px solid rgba(239, 210, 60, 0.22);
    backdrop-filter: blur(12px);
}

.dash-logo {
    width: 130px;
    height: auto;
}

.dash-header-actions {
    display: flex;
    gap: 8px;
}

.dash-btn {
    height: 40px;
    padding: 0 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-family: inherit;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.dash-btn:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}

.dash-btn.small {
    height: 34px;
    padding: 0 12px;
    font-size: 10px;
}

.dash-btn.danger:hover {
    border-color: #ff9a8a;
    color: #ff9a8a;
}


/* ---------- Main ---------- */

.dash-main {
    width: min(calc(100% - 80px), 1480px);
    margin: 0 auto;
    padding: 50px 0 80px;
}

.dash-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.dash-top h1 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(34px, 3.4vw, 56px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1px;
}

.dash-date-field {
    min-width: 240px;
}

.dash-date-field select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0;
    color: var(--white);
    font-family: inherit;
    font-size: 15px;
}

.dash-date-field select:focus {
    outline: none;
    border-color: var(--yellow);
}

.dash-stats {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid rgba(239, 210, 60, 0.30);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.stat {
    padding: 22px 22px 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stat:last-child {
    border-right: 0;
}

.stat span {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.stat strong {
    display: block;
    margin-top: 10px;
    color: var(--yellow);
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1px;
}

.dash-slots {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

.slot-col {
    min-width: 0;
}

.slot-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--yellow);
}

.slot-head h2 {
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-size: 32px;
    color: var(--yellow);
}

.slot-count {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.slot-count.full {
    padding: 4px 8px;
    background: var(--yellow);
    color: var(--black);
}

.slot-empty {
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.order-card {
    margin-bottom: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.order-card.cancelled {
    opacity: 0.45;
}

.order-card.cancelled h3 {
    text-decoration: line-through;
}

.order-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.order-top h3 {
    font-size: 17px;
    font-weight: 900;
}

.order-ref {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.order-total {
    color: var(--yellow);
    font-size: 22px;
    font-weight: 900;
}

.order-lines {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 8px 12px;
    font-size: 13px;
}

.order-lines dt {
    color: rgba(255, 255, 255, 0.45);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding-top: 2px;
}

.order-lines dd {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.order-lines a {
    color: var(--white);
    text-decoration-color: rgba(239, 210, 60, 0.5);
}

.order-foot {
    margin-top: 18px;
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pay-tag {
    padding: 5px 9px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pay-tag.unpaid {
    border: 1px solid rgba(239, 210, 60, 0.6);
    color: var(--yellow);
}

.pay-tag.paid {
    background: var(--yellow);
    color: var(--black);
}

.order-actions {
    display: flex;
    gap: 6px;
}

.cancel-tag {
    color: #ff9a8a;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.dash-updated {
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
}


/* ---------- Responsive ---------- */

@media (max-width: 1100px) {

    .dash-slots {
        grid-template-columns: 1fr;
    }

    .dash-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .stat:nth-child(2n) {
        border-right: 0;
    }

}

@media (max-width: 600px) {

    .dash-header {
        padding: 0 16px;
    }

    .dash-logo {
        width: 96px;
    }

    #print-btn {
        display: none;
    }

    .dash-main {
        width: calc(100% - 32px);
        padding-top: 30px;
    }

    .dash-date-field {
        width: 100%;
    }

    .stat strong {
        font-size: 24px;
    }

    .login-box {
        padding: 34px 22px 28px;
    }

}


/* ---------- Print: a clean kitchen sheet ---------- */

@media print {

    .orders-page {
        background: #ffffff;
        color: #000000;
    }

    .dash-header,
    .dash-date-field,
    .order-actions,
    .dash-updated,
    .order-card.cancelled {
        display: none !important;
    }

    .dash-main {
        width: 100%;
        padding: 0;
    }

    .dash-stats,
    .stat,
    .slot-head,
    .order-card,
    .order-foot {
        border-color: #000000 !important;
        background: none !important;
    }

    .stat strong,
    .slot-head h2,
    .order-total,
    .pay-tag,
    .order-lines dd,
    .order-lines a,
    .order-lines dt,
    .order-ref,
    .stat span,
    .slot-count {
        color: #000000 !important;
        background: none !important;
    }

    .dash-slots {
        grid-template-columns: 1fr;
    }

    .order-card {
        break-inside: avoid;
    }

}


/* ---------- Tabs & reviews ---------- */

.dash-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.dash-tab {
    position: relative;
    padding: 14px 18px;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.6);
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    cursor: pointer;
}

.dash-tab:hover {
    color: var(--white);
}

.dash-tab.active {
    color: var(--yellow);
}

.dash-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--yellow);
}

.tab-badge {
    display: inline-block;
    min-width: 20px;
    margin-left: 6px;
    padding: 2px 6px;
    background: var(--yellow);
    color: var(--black);
    font-size: 10px;
    text-align: center;
}

.dash-top h1 span {
    color: var(--yellow);
    font-style: italic;
}

.review-admin-list {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
    align-items: start;
}

.review-admin.is-pending {
    border-color: rgba(239, 210, 60, 0.45);
}

.review-admin-quote {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.85);
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 16px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}