:root {
    --coral: #d99a09;
    --coral-dark: #b87e00;
    --coral-light: #fff6df;
    --navy: #17212b;
    --text: #29333d;
    --muted: #718096;
    --white: #ffffff;
    --background: #f7f8fa;
    --border: #e5e9ef;
    --danger: #c53030;
    --danger-background: #fff5f5;
    --shadow: 0 18px 45px rgba(23, 33, 43, 0.12);
    --waiter-call-gold: #de9b02;
    --waiter-call-gold-light: #fff6df;
    --waiter-call-dark: #151b23;
    --waiter-call-dark-soft: #202936;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(
            circle at top right,
            rgba(222, 155, 2, 0.08),
            transparent 28%
        ),
        #f4f6f8;
    font-family:
        Tahoma,
        Arial,
        sans-serif;
}

button,
input {
    font: inherit;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(
            circle at top right,
            rgba(255, 107, 95, 0.18),
            transparent 35%
        ),
        var(--background);
}

.login-card {
    width: 100%;
    max-width: 430px;
    padding: 38px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.brand {
    margin-bottom: 30px;
    text-align: center;
}

.brand-mark {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    color: var(--white);
    background: var(--coral);
    border-radius: 20px;
    font-size: 28px;
    font-weight: bold;
}

.brand h1 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 27px;
}

.brand p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--navy);
    font-size: 14px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    transition: 0.2s;
}

.form-control:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 4px var(--coral-light);
}

.primary-button {
    width: 100%;
    min-height: 50px;
    padding: 12px 20px;
    color: var(--waiter-call-dark);
    background: var(--waiter-call-gold);
    border: 1px solid var(--waiter-call-gold);
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(222, 155, 2, 0.2);
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.primary-button:hover {
    color: var(--white);
    background: var(--coral-dark);
    border-color: var(--coral-dark);
    transform: translateY(-1px);
}

.alert-error {
    margin-bottom: 20px;
    padding: 13px 15px;
    color: var(--danger);
    background: var(--danger-background);
    border: 1px solid #fed7d7;
    border-radius: 12px;
    font-size: 14px;
}

.dashboard-page {
    min-height: 100vh;
}

.logout-button {
    padding: 10px 16px;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
}

.logout-button:hover {
    color: var(--coral-dark);
    border-color: var(--coral);
}

.dashboard-content {
    width: min(1180px, calc(100% - 40px));
    margin: 34px auto 40px;
}

@media (max-width: 600px) {
    .login-card {
        padding: 28px 22px;
    }

    .topbar {
        padding: 14px 18px;
    }

    .dashboard-content {
        width: min(100% - 24px, 1180px);
        margin: 34px auto 24px;
    }

    .welcome-card {
        padding: 22px;
    }
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.stat-card {
    position: relative;
    overflow: hidden;
    min-height: 145px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    background: var(--white);
    border-radius: 18px;
}

.stat-label {
    color: var(--muted);
    font-size: 15px;
}

.stat-card:nth-child(2)::before {
    background: #38a169;
}

.stat-card:nth-child(3)::before {
    background: #3182ce;
}

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

@media (max-width: 520px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        min-height: 125px;
    }
}
/* ==============================
   جدول قائمة المقاهي
============================== */

table {
    width: 100%;
    margin-top: 24px;
    background-color: #ffffff;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #eeeeee;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(30, 30, 30, 0.06);
}

table thead {
    color: var(--white);
    background: var(--waiter-call-dark);
    box-shadow: inset 0 3px 0 var(--waiter-call-gold);
}

table th,
table td {
    padding: 16px 18px;
    text-align: right;
    vertical-align: middle;
}

table th {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

table td {
    color: #3f3f46;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

table tbody tr {
    transition: background-color 0.2s ease;
}

table tbody tr:hover {
    background: #fffaf0;
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* توافق الجدول مع الجوال */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    table th,
    table td {
        padding: 13px 15px;
    }
}
/* ==============================
   نموذج إضافة مقهى
============================== */

.table-card > h2 {
    margin: 28px 0 16px;
    color: #27272a;
    font-size: 22px;
}

.cafe-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    padding: 24px;
    margin-bottom: 32px;
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(30, 30, 30, 0.06);
}

.cafe-form .form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cafe-form .form-field label {
    color: #3f3f46;
    font-size: 14px;
    font-weight: 700;
}

.cafe-form .form-field input {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    color: #27272a;
    font-family: inherit;
    font-size: 14px;
    background-color: #fafafa;
    border: 1px solid #dddddd;
    border-radius: 10px;
    outline: none;
    box-sizing: border-box;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.cafe-form .form-field input:focus {
    background-color: #ffffff;
    border-color: var(--waiter-call-gold);
    box-shadow: 0 0 0 3px rgba(222, 155, 2, 0.16);
}

.cafe-form .checkbox-field {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #3f3f46;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.cafe-form .checkbox-field input {
    width: 18px;
    height: 18px;
    accent-color: var(--waiter-call-gold);
}

.cafe-form .logout-button {
    height: 46px;
    padding: 0 22px;
    color: var(--waiter-call-dark);
    font-family: inherit;
    font-weight: 700;
    background: var(--waiter-call-gold);
    border: 1px solid var(--waiter-call-gold);
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(222, 155, 2, 0.2);
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.cafe-form .logout-button:hover {
    color: var(--white);
    background: var(--coral-dark);
    border-color: var(--coral-dark);
    transform: translateY(-1px);
}

.form-message {
    padding: 13px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    border-radius: 10px;
}

.form-message.success {
    color: #166534;
    background-color: #dcfce7;
    border: 1px solid #bbf7d0;
}

.form-message.error-message {
    color: #991b1b;
    background-color: #fee2e2;
    border: 1px solid #fecaca;
}

@media (max-width: 900px) {
    .cafe-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .cafe-form {
        grid-template-columns: 1fr;
        padding: 18px;
    }
}
/* ==============================
   حالات الاشتراك وأزرار الجدول
============================== */

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 999px;
}

.status-badge.active {
    color: #166534;
    background-color: #dcfce7;
    border: 1px solid #bbf7d0;
}

.status-badge.inactive {
    color: #991b1b;
    background-color: #fee2e2;
    border: 1px solid #fecaca;
}

.table-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 7px 12px;
    color: #765100;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    background: var(--waiter-call-gold-light);
    border: 1px solid #efd38f;
    border-radius: 8px;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.table-link:hover {
    color: var(--waiter-call-dark);
    background: var(--waiter-call-gold);
    border-color: var(--waiter-call-gold);
    transform: translateY(-1px);
}

.table-link.edit-link {
    color: var(--white);
    background: var(--waiter-call-dark);
    border-color: var(--waiter-call-dark);
}

.table-link.edit-link:hover {
    color: var(--waiter-call-dark);
    background: var(--waiter-call-gold);
    border-color: var(--waiter-call-gold);
}

.table-link.delete-link {
    color: #b42318;
    background: #fff1f0;
    border-color: #f5c2bd;
}

.table-link.delete-link:hover {
    color: var(--white);
    background: #b42318;
    border-color: #b42318;
}
/* ==============================
   ترتيب أزرار إجراءات المقاهي
============================== */

.table-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.table-action-form {
    display: inline-flex;
    margin: 0;
}

.table-action-form .table-link {
    font-family: inherit;
    line-height: normal;
    cursor: pointer;
}

@media (max-width: 768px) {
    .table-actions {
        flex-wrap: nowrap;
    }
}
/* =========================================
   هوية Waiters Call — تحسين لوحة الإدارة
========================================= */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 78px;
    padding: 12px max(32px, calc((100% - 1180px) / 2));
    color: var(--white);
    background:
        linear-gradient(
            135deg,
            var(--waiter-call-dark),
            var(--waiter-call-dark-soft)
        );
    border-bottom: 3px solid var(--waiter-call-gold);
    box-shadow: 0 10px 30px rgba(21, 27, 35, 0.18);
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
}

.topbar-logo {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    flex: 0 0 50px;
    color: var(--waiter-call-dark);
    background: var(--waiter-call-gold);
    border-radius: 14px;
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
}

.topbar-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-right: 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.topbar-product {
    color: var(--white);
    font-size: 16px;
}

.topbar-subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    font-weight: normal;
}

.topbar .logout-button {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
}

.topbar .logout-button:hover {
    color: var(--white);
    background: rgba(222, 155, 2, 0.18);
    border-color: var(--waiter-call-gold);
}

.welcome-card {
    position: relative;
    overflow: hidden;
    padding: 38px;
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #fffaf0 100%
        );
    border: 1px solid rgba(222, 155, 2, 0.22);
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(21, 27, 35, 0.08);
}

.welcome-card::after {
    content: "";
    position: absolute;
    top: -85px;
    left: -70px;
    width: 230px;
    height: 230px;
    background: rgba(222, 155, 2, 0.08);
    border-radius: 50%;
}

.welcome-layout {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.welcome-card .eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 13px;
    color: #8a5d00;
    background: var(--waiter-call-gold-light);
    border: 1px solid #f2d38c;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.welcome-card h1 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: clamp(26px, 3vw, 36px);
}

.welcome-card p {
    margin: 0;
    max-width: 600px;
    color: var(--muted);
    line-height: 1.8;
}

.management-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 175px;
    padding: 14px 20px;
    color: var(--waiter-call-dark);
    background: var(--waiter-call-gold);
    border: 1px solid var(--waiter-call-gold);
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 10px 24px rgba(222, 155, 2, 0.24);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.management-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(222, 155, 2, 0.32);
}

.stat-card {
    border-color: rgba(21, 27, 35, 0.08);
    box-shadow: 0 12px 30px rgba(21, 27, 35, 0.07);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(21, 27, 35, 0.11);
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: var(--waiter-call-gold);
}

.stat-card:nth-child(4)::before {
    background: var(--coral);
}

.stat-number {
    color: var(--navy);
    font-size: 42px;
    line-height: 1;
}

.stat-note {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    margin-bottom: 26px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(21, 27, 35, 0.06);
}

.page-header h1 {
    margin: 0 0 8px;
    color: var(--waiter-call-dark);
}

.page-header p {
    margin: 0;
    color: var(--muted);
}

.cafe-form .form-field select {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    color: #27272a;
    font-family: inherit;
    background: #fafafa;
    border: 1px solid #dddddd;
    border-radius: 10px;
    outline: none;
}

.cafe-form .form-field select:focus {
    background: var(--white);
    border-color: var(--waiter-call-gold);
    box-shadow: 0 0 0 3px rgba(222, 155, 2, 0.16);
}

.table-action-form input[type="password"] {
    width: 155px;
    height: 34px;
    padding: 0 10px;
    font-family: inherit;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
}

.table-action-form input[type="password"]:focus {
    border-color: var(--waiter-call-gold);
    box-shadow: 0 0 0 3px rgba(222, 155, 2, 0.16);
}

@media (max-width: 700px) {
    .topbar {
        padding: 12px 16px;
    }

    .topbar-logo {
        width: 92px;
        height: 40px;
    }

    .topbar-brand-copy {
        display: none;
    }

    .welcome-layout,
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .management-link {
        width: 100%;
    }
}
/* =========================================
   صفحة تأكيد حذف المنشأة
========================================= */

.delete-warning-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    margin-bottom: 24px;
    color: #7f1d1d;
    background: #fff7f7;
    border: 1px solid #fecaca;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(127, 29, 29, 0.07);
}

.delete-warning-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: #dc2626;
    border-radius: 50%;
    font-size: 26px;
    font-weight: bold;
}

.delete-warning-card h2 {
    margin: 0 0 12px;
}

.delete-warning-card p {
    line-height: 1.8;
}

.delete-warning-list {
    margin: 14px 0;
    padding-right: 22px;
    line-height: 2;
}

.delete-warning-emphasis {
    margin-bottom: 0;
    font-weight: bold;
}

.delete-confirmation-card {
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(21, 27, 35, 0.07);
}

.delete-confirmation-card h2 {
    margin: 0 0 10px;
    color: var(--waiter-call-dark);
}

.delete-confirmation-card > p {
    margin: 0 0 22px;
    color: var(--muted);
}

.delete-confirmation-form {
    display: flex;
    align-items: flex-end;
    gap: 18px;
}

.delete-confirmation-form .form-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.delete-confirmation-form label {
    color: var(--waiter-call-dark);
    font-weight: bold;
}

.delete-confirmation-form input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
}

.delete-confirmation-form input:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.delete-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.danger-button {
    min-height: 48px;
    padding: 0 20px;
    color: #ffffff;
    background: #dc2626;
    border: 1px solid #dc2626;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
}

.danger-button:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

.cancel-link {
    padding: 13px 18px;
    color: var(--text);
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-weight: bold;
}

@media (max-width: 700px) {
    .delete-warning-card,
    .delete-confirmation-form {
        flex-direction: column;
        align-items: stretch;
    }

    .delete-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .danger-button,
    .cancel-link {
        width: 100%;
        text-align: center;
    }
}
.profile-form {
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: end;
}

.profile-form .logout-button {
    min-width: 190px;
}

.profile-note {
    margin: -14px 0 0;
    padding: 14px 16px;
    color: var(--muted);
    background: var(--waiter-call-gold-light);
    border: 1px solid #f2d38c;
    border-radius: 10px;
    line-height: 1.8;
}

@media (max-width: 600px) {
    .profile-form {
        grid-template-columns: 1fr;
    }

    .profile-form .logout-button {
        width: 100%;
    }
}
.secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    color: var(--waiter-call-dark);
    background: var(--waiter-call-gold-light);
    border: 1px solid #e5bd5c;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.secondary-link:hover {
    color: var(--white);
    background: var(--waiter-call-dark);
    border-color: var(--waiter-call-dark);
    transform: translateY(-1px);
}
.cafe-form > .logout-button {
    align-self: end;
}
.additional-contacts {
    grid-column: 1 / -1;
    padding: 18px;
    border: 1px solid #e7d8b7;
    border-radius: 14px;
    background: #fffbf2;
}
.additional-contacts-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.additional-contacts-heading strong { color: #25323a; }
.additional-contacts-heading p { margin: 5px 0 0; color: #636b72; font-size: 13px; }
.additional-contact-add, .additional-contact-remove {
    padding: 9px 13px;
    border: 1px solid #d39b20;
    border-radius: 9px;
    background: #fff;
    color: #664300;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.additional-contact-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 10px;
    align-items: end;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e9dcc3;
}
.additional-contact-row label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; }
.additional-contact-row input {
    width: 100%; height: 43px; padding: 0 11px; box-sizing: border-box;
    border: 1px solid #d7d6d2; border-radius: 9px; font: inherit;
}
.additional-contact-remove { color: #a42c26; border-color: #e5beb8; }
.copy-login-link { font: inherit; cursor: pointer; white-space: nowrap; }
@media (max-width: 700px) {
    .additional-contacts-heading { align-items: stretch; flex-direction: column; }
    .additional-contact-row { grid-template-columns: 1fr; }
    .additional-contact-remove { justify-self: start; }
}
/* نافذة تأكيد حذف الحساب */
.delete-dialog {
    width: min(430px, calc(100% - 32px));
    padding: 30px;
    color: var(--text);
    background: var(--white);
    border: 1px solid rgba(222, 155, 2, 0.35);
    border-top: 5px solid var(--waiter-call-gold);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(21, 27, 35, 0.28);
    text-align: center;
}

.delete-dialog::backdrop {
    background: rgba(15, 20, 27, 0.68);
    backdrop-filter: blur(3px);
}

.delete-dialog-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    color: #8a5d00;
    background: var(--waiter-call-gold-light);
    border: 1px solid #efd38f;
    border-radius: 50%;
    font-size: 28px;
    font-weight: bold;
}

.delete-dialog h2 {
    margin: 0 0 12px;
    color: var(--waiter-call-dark);
}

.delete-dialog p {
    margin: 0;
    line-height: 1.8;
}

.delete-dialog-note {
    margin-top: 6px !important;
    color: var(--muted);
    font-size: 13px;
}

.delete-dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.delete-dialog-cancel,
.delete-dialog-confirm {
    min-height: 46px;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
}

.delete-dialog-cancel {
    color: var(--waiter-call-dark);
    background: var(--waiter-call-gold-light);
    border: 1px solid #e5bd5c;
}

.delete-dialog-confirm {
    color: var(--white);
    background: #b42318;
    border: 1px solid #b42318;
}

.delete-dialog-cancel:hover {
    background: #f8e5b4;
}

.delete-dialog-confirm:hover {
    background: #8f1c13;
    border-color: #8f1c13;
}

@media (max-width: 480px) {
    .delete-dialog {
        padding: 24px 18px;
    }

    .delete-dialog-actions {
        grid-template-columns: 1fr;
    }
}
.market-selector-actions {
    display: grid;
    gap: 12px;
}

.market-selector-actions .primary-button {
    display: block;
    text-align: center;
    text-decoration: none;
}

/* Unified venue, administration and staff identity. */
.login-page {
    background: radial-gradient(circle at 12% 8%, #344963 0, transparent 37%),
        linear-gradient(145deg, #1f3046, #111b29);
}
.login-card {
    border-color: rgba(222, 155, 2, .35);
    box-shadow: 0 24px 60px rgba(8, 20, 34, .28);
}
.brand-mark,
.app-brand-icon {
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    object-fit: contain;
    background: none;
    border-radius: 18px;
    filter: drop-shadow(0 6px 14px rgba(222, 155, 2, .42));
}
.topbar-logo {
    display: block;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    object-fit: contain;
    background: none;
    border-radius: 15px;
    filter: drop-shadow(0 5px 12px rgba(222, 155, 2, .36));
}
.welcome-card {
    color: #fff;
    background: radial-gradient(circle at 8% 10%, #344963 0, transparent 38%),
        linear-gradient(145deg, #1f3046, #111b29);
    border-color: rgba(233, 191, 98, .3);
}
.welcome-card .eyebrow {
    color: #f1ce78;
    background: rgba(233, 191, 98, .12);
    border-color: rgba(233, 191, 98, .38);
}
.welcome-card h1 { color: #fff; }
.welcome-card p { color: #d1d8e3; }
.dashboard-page > .topbar + .dashboard-content > .page-header {
    color: #fff;
    background: radial-gradient(circle at 8% 10%, #344963 0, transparent 38%),
        linear-gradient(145deg, #1f3046, #111b29);
    border-color: rgba(233, 191, 98, .28);
}
.dashboard-page > .topbar + .dashboard-content > .page-header h1 { color: #fff; }
.dashboard-page > .topbar + .dashboard-content > .page-header p { color: #d1d8e3; }
@media (max-width: 700px) {
    .topbar-logo { width: 44px; height: 44px; flex-basis: 44px; }
}

/* Keep the market identity readable and aligned on narrow screens. */
.dashboard-page > .topbar {
    flex-direction: row-reverse;
}
.dashboard-page > .topbar .topbar-brand {
    direction: ltr;
    min-width: 0;
}
.dashboard-page > .topbar .topbar-brand-copy {
    display: flex;
    min-width: 0;
    padding: 0 0 0 12px;
    border-right: 0;
    border-left: 1px solid rgba(255, 255, 255, .22);
    text-align: left;
}
.dashboard-page > .topbar .topbar-subtitle {
    color: #f1ce78;
    font-size: 14px;
    font-weight: 800;
}
.dashboard-page > .topbar .topbar-logo {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
}
.dashboard-page > .topbar form {
    flex: none;
}

.table-link.qr-download-link {
    color: #172638;
    background: #e6bd62;
    border-color: #d4a439;
}
.table-link.qr-download-link:hover,
.table-link.qr-download-link:focus-visible {
    color: #172638;
    background: #ffe4a2;
    border-color: #b87e00;
}

@media (max-width: 700px) {
    .dashboard-page > .topbar { gap: 8px; }
    .dashboard-page > .topbar .topbar-brand { gap: 7px; }
    .dashboard-page > .topbar .topbar-brand-copy {
        gap: 2px;
        padding-left: 7px;
    }
    .dashboard-page > .topbar .topbar-product { font-size: 13px; }
    .dashboard-page > .topbar .topbar-subtitle { font-size: 13px; }
    .dashboard-page > .topbar .logout-button { padding: 8px 10px; }
}
