﻿:root {
    --bg: #0b1220;
    --topbar: #050a14;
    --card: #0f1a2e;
    --card2: #0c1628;
    --stroke: #24324a;
    --text: #eaf0ff;
    --btn-white: #fff;
    --muted: #9fb0cc;
    --ok: #22c55e;
    --warn: #f59e0b;
    --bad: #ef4444;
    --blue: #3b82f6;
    --radius: 18px;
    --shadow: 0 14px 35px rgba(0,0,0,.35);
}

h1 {
    font-size: 22px;
    color: #fff
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

#aspnetForm {
    min-height: 100vh;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    background: radial-gradient(1200px 700px at 25% 15%, rgba(59,130,246,.18), transparent 55%), radial-gradient(1000px 600px at 85% 55%, rgba(34,197,94,.14), transparent 50%), var(--bg);
    color: var(--text);
    overflow: hidden;
}
/***********************/
/* COMMONYLES          */
/***********************/

.hidden {
    display: none !important
}

.lang-icon {
    width: 20px;
    height: 14px;
}
/***********************/
/* LOGIN/PASS          */
/***********************/
.sid_mask {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 20, 0.75);
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    background-size: cover; /* stretch to fill screen, keep aspect ratio */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.sid_container {
    width: 100%;
    max-width: 420px;
    padding: 16px;
    box-sizing: border-box;
}

.sid_form_cont.loginCard {
    background: #0f172a; /* dark slate, similar to header */
    border-radius: 16px;
    padding: 24px 22px 20px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.55);
    color: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.loginHeader {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.loginLogo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #22c55e);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.55);
}

.loginTitleBlock h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.loginSubtitle {
    margin: 2px 0 0;
    font-size: 13px;
    color: #9ca3af;
}

.loginBody {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sid_form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .sid_form label {
        font-size: 13px;
        color: #cbd5f5;
    }

.loginInput {
    border-radius: 10px;
    border: 1px solid #1f2937;
    background: #020617;
    color: #f9fafb;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    width: 100%;
    box-sizing: border-box;
}

    .loginInput:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.6);
        background: #020617;
    }

.loginButton {
    margin-top: 4px;
    width: 100%;
    border-radius: 999px;
    border: none;
    padding: 10px 14px;
    background: linear-gradient(135deg, #2563eb, #22c55e);
    color: #f9fafb;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.55);
    transition: transform 0.05s ease, box-shadow 0.05s ease, filter 0.1s ease;
}

    .loginButton:hover {
        filter: brightness(1.05);
    }

    .loginButton:active {
        transform: translateY(1px);
        box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5);
    }

.loginFooter {
    margin-top: 4px;
    display: flex;
    justify-content: flex-end;
}

.loginLink {
    font-size: 13px;
    color: #60a5fa;
    text-decoration: none;
}

    .loginLink:hover {
        text-decoration: underline;
    }

/* Responsive tweaks */
@media (max-width: 480px) {
    .sid_mask {
        padding: 12px;
    }

    .sid_form_cont.loginCard {
        padding: 20px 16px 18px;
    }

    .loginHeader {
        align-items: flex-start;
    }
}


/***********************/
/* HEADER / TOP BAR    */
/***********************/
header {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    background: linear-gradient(180deg, rgba(5,10,20,.95), rgba(5,10,20,.75));
    border-bottom: 1px solid rgba(36,50,74,.85);
    backdrop-filter: blur(10px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 260px;
}

.logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(59,130,246,.9), rgba(34,197,94,.85));
    box-shadow: 0 10px 30px rgba(59,130,246,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-text {
    display: none;
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
}

header h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .2px;
    line-height: 1.1;
}

.subtitle {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
    font-weight: 600;
}

.controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(36,50,74,.9);
    background: rgba(15,26,46,.55);
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    font-weight: 700;
    color: var(--text);
    user-select: none;
}

    .pill label {
        font-size: 12px;
        color: var(--muted);
        font-weight: 800;
        letter-spacing: .2px;
    }

/* Global link styles - remove underlines */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

select, button, input {
    font: inherit;
}

select {
    background: rgba(12,22,40,.8);
    color: var(--text);
    border: 1px solid rgba(36,50,74,.9);
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 800;
    outline: none;
    cursor: pointer;
}

    select:focus {
        border-color: rgba(59,130,246,.8);
    }

.iconBtn {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    color: #fff;
    border: none;
    background: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 18px;
    transition: transform .12s ease, background .12s ease;
}

    .iconBtn:active {
        transform: scale(.98);
    }

    .iconBtn:hover {
        background: rgba(15,26,46,.75);
    }

.notification {
    position: relative;
}

    .notification.active::after {
        content: '';
        position: absolute;
        top: 8px;
        right: 8px;
        width: 10px;
        height: 10px;
        border-radius: 999px;
        background: var(--ok);
        box-shadow: 0 0 0 6px rgba(34,197,94,.18);
        animation: ping 1.2s ease-out;
    }

.requestsSidebar {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: none;
}

    .requestsSidebar.open {
        display: block;
    }

.requestsSidebarBackdrop {
    position: absolute;
    inset: 0;
    background: rgba(2,6,23,.58);
    backdrop-filter: blur(4px);
}

.requestsSidebarPanel {
    box-sizing: border-box;
    max-height: 100dvh;
    overflow: hidden;
    position: absolute;
    top: 0;
    right: 0;
    width: min(430px, 94vw);
    height: 100%;
    background: #0b1220;
    border-left: 1px solid rgba(36,50,74,.95);
    box-shadow: -18px 0 45px rgba(0,0,0,.45);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    animation: requestsSidebarIn .18s ease-out forwards;
}

@keyframes requestsSidebarIn {
    to {
        transform: translateX(0);
    }
}

.requestsSidebarTop {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px;
    border-bottom: 1px solid rgba(36,50,74,.95);
    background: rgba(5,10,20,.72);
}

.requestsSidebarTitle {
    color: #f8fafc;
    font-size: 19px;
    font-weight: 950;
    letter-spacing: -.02em;
}

.requestsSidebarSub {
    color: #94a3b8;
    font-size: 12px;
    margin-top: 3px;
    line-height: 1.35;
}

.requestsSidebarClose {
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

    .requestsSidebarClose:hover {
        color: #fff;
    }

.requestsSidebarBody {
    min-height: 0;
    overscroll-behavior: contain;
    flex: 1;
    overflow: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.requestsSidebarFooter {
    flex-shrink: 0;
    padding: 12px 14px 16px;
    border-top: 1px solid rgba(36,50,74,.95);
    background: rgba(5,10,20,.72);
}

.requestsSidebarAll {
    display: block;
    width: 100%;
    text-align: center;
    border-radius: 12px;
    padding: 10px 12px;
    color: #fff;
    background: #2563eb;
    font-weight: 900;
}

.rsReqCard {
    background: #0f172a;
    border: 1px solid #25324a;
    border-radius: 16px;
    padding: 12px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    position: relative;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.rsReqIcon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: #172554;
    color: #bfdbfe;
    flex-shrink: 0;
}

    .rsReqIcon.call-manager {
        background: #312e81;
        color: #ddd6fe;
    }

    .rsReqIcon.call-bill, .rsReqIcon.request-bill {
        background: #14532d;
        color: #bbf7d0;
    }

    .rsReqIcon.call-clean, .rsReqIcon.clean-table {
        background: #164e63;
        color: #a5f3fc;
    }

.rsReqMain {
    min-width: 0;
}

.rsReqTop {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.rsReqType {
    color: #f8fafc;
    font-size: 14px;
    font-weight: 950;
}

.rsReqSpot {
    color: #bfdbfe;
    background: #172554;
    border: 1px solid #1d4ed8;
    border-radius: 999px;
    padding: 3px 7px;
    font-size: 11px;
    font-weight: 900;
}

.rsReqBody {
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.42;
}

.rsReqMeta {
    margin-top: 8px;
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

    .rsReqMeta span {
        background: #111827;
        border: 1px solid #25324a;
        border-radius: 999px;
        padding: 4px 7px;
    }

    .rsReqMeta .rsReqAnswered {
        color: #86efac;
        background: #052e16;
        border-color: #166534;
    }

.rsReqDate {
    grid-column: 2;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
}

.rsReqEmpty {
    color: #94a3b8;
    background: #0f172a;
    border: 1px dashed #334155;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

@keyframes ping {
    from {
        transform: scale(.7);
        opacity: 1;
    }

    to {
        transform: scale(1.4);
        opacity: 0;
    }
}

.statusDot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--warn);
    box-shadow: 0 0 0 6px rgba(245,158,11,.16);
}

    .statusDot.ok {
        background: var(--ok);
        box-shadow: 0 0 0 6px rgba(34,197,94,.16);
    }

.statusText {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .2px;
    color: var(--muted);
}

/*========================================================
                     FOOTER  Styles
=========================================================*/
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 5px 0 5px;
    font-size: 13px;
    color: #fff;
    background-color: #141414;
    border-top: solid 1px #999
}

.footer-copyrights {
    width: 40%;
    float: left;
    text-align: left;
}

.footer-links {
    width: 60%;
    text-align: right;
    padding-right: 10px;
    float: left;
}

    .footer-links a {
        color: #eee;
        text-decoration: none
    }

/* Layout */
main {
    height: calc(100vh - 72px);
    padding: 14px 14px 18px;
    overflow: auto;
}


.btn {
    flex: 1;
    padding: 14px 14px;
    border-radius: 14px;
    border: 1px solid rgba(36,50,74,.95);
    cursor: pointer;
    font-weight: 950;
    font-size: 16px;
    letter-spacing: .15px;
    transition: transform .08s ease, filter .12s ease;
    background: rgba(5,10,20,.35);
    color: var(--btn-white);
}
.btn-s {
    flex: 1;
    padding: 8px !important;
    border-radius: 10px !important;
    font-weight: 850 !important;
    font-size: 14px !important;
}
    .btn:active {
        transform: scale(.99);
    }

    .btn:disabled {
        opacity: .5;
        cursor: not-allowed;
        transform: none;
    }

    .btn.ok {
        background: linear-gradient(135deg, rgba(34,197,94,.9), rgba(34,197,94,.65));
        color: #052014;
        border-color: rgba(34,197,94,.5);
    }

    .btn.full {
        background: rgba(148,163,184,.16);
        border-color: rgba(148,163,184,.35);
        color: #eee;
        width: 100%
    }

        .btn.full:hover {
            color: #fff;
            border-color: #fff;
        }

    .btn.gray {
        background: #eee;
        border-color: rgba(148,163,184,.35);
       color:#333
    }

        .btn.gray:hover {
            color: #000
        }

    .btn.bad {
        background: rgba(239,68,68,.18);
        border-color: rgba(239,68,68,.4);
        color: #ff5656
    }

        .btn.bad:hover {
            background: rgba(239,68,68,.1);
            border-color: rgba(239,68,68,.4);
            color: #bb0000
        }

/* Locked overlay */

.order.locked {
    filter: saturate(.85);
}

.lockOverlay {
    position: absolute;
    inset: 0;
    background: rgba(2,6,23,.55);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
}

.order.locked .lockOverlay {
    display: flex;
}

.lockCard {
    width: 100%;
    max-width: 280px;
    border: 1px solid rgba(36,50,74,.95);
    background: rgba(15,26,46,.85);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 14px 35px rgba(0,0,0,.35);
}

.lockTitle {
    font-weight: 1000;
    letter-spacing: .2px;
    margin-bottom: 6px;
    font-size: 14px;
}

.lockSub {
    color: var(--muted);
    font-weight: 850;
    font-size: 12px;
    line-height: 1.35;
}

/* MENU STYLES */
.itemsPopup {
    color: var(--text);
}

.itemsCard {
    background: linear-gradient(180deg, rgba(15,26,46,.95), rgba(12,22,40,.95));
    border: 1px solid rgba(36,50,74,.95);
    color: var(--text);
}

:root {
    --headerH: 72px;
}
/* adjust if your header height changes */

.menuPopup {
    position: fixed;
    top: var(--headerH);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2,6,23,.45);
    backdrop-filter: blur(6px);
    display: none;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 14px 16px 16px; /* no more 86px top padding */
    z-index: 9000; /* below header (10000) */
}

    .menuPopup.open {
        display: flex;
    }

.menuCard {
    width: 320px;
    max-height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 18px;
    border: 1px solid rgba(36,50,74,.95);
    background: rgba(15,26,46,.92);
    box-shadow: 0 18px 45px rgba(0,0,0,.45);
    padding: 12px;
}

.menuTitle {
    font-weight: 950;
    letter-spacing: .2px;
    margin: 2px 6px 10px;
    color: var(--text);
}

.menuItem {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 7px;
    border-radius: 14px;
    border: 1px solid rgba(36,50,74,.65);
    background: rgba(5,10,20,.30);
    color: var(--text);
    font-weight: 900;
    text-decoration: none;
    margin: 8px 0;
}

    .menuItem:hover {
        background: rgba(5,10,20,.45);
    }

    .menuItem.active {
        border-color: rgba(245,158,11,.7);
        box-shadow: 0 0 0 6px rgba(245,158,11,.12);
    }

/* Language selector in menu - desktop hidden, mobile visible */
.menuLangSelector {
    display: none;
}

@media (max-width: 680px) {
    .menuLangSelector {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        margin: 8px 0;
    }

    .menuLangSelector .lang-icon {
        width: 28px;
        height: 20px;
        cursor: pointer;
        transition: transform 0.15s ease, opacity 0.15s ease;
        opacity: 0.7;
    }

    .menuLangSelector .lang-icon:hover {
        transform: scale(1.1);
        opacity: 1;
    }

    /* Make menu items more compact on mobile */
    .menuItem {
        padding: 8px 10px;
        margin: 4px 0;
        font-size: 14px;
        gap: 8px;
        border-radius: 10px;
    }

    .menuTitle {
        font-size: 14px;
        margin: 2px 6px 6px;
    }

    .menuCard {
        padding: 10px;
    }

    .menuSep {
        margin: 6px 4px;
    }
}

.menuSep {
    height: 1px;
    background: rgba(36,50,74,.9);
    margin: 10px 4px;
    opacity: .7;
}

/* ORDER STATUS WATERMARKS */
.order .wm {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 130px;
    font-weight: 1000;
    opacity: .12;
    pointer-events: none;
    transform: rotate(-10deg);
}

body[data-mode="completed"] .order .wm.completed {
    display: flex;
    color: rgba(34,197,94,1);
}

body[data-mode="canceled"] .order .wm.canceled {
    display: flex;
    color: rgba(239,68,68,1);
}

/* Small screens */
@media (max-width: 680px) {
    header {
        position: relative;
        z-index: 10000;
        height: auto;
        padding: 8px 12px;
        gap: 0;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    main {
        height: calc(100vh - 56px);
    }

    /* Hide footer on mobile */
    footer {
        display: none;
    }

    .orders {
        grid-template-columns: 1fr;
    }

    .brand {
        width: auto;
        min-width: 0;
        gap: 0;
    }

    .brand-text {
        display: none;
    }

    .logo {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .logo-text {
        display: block;
    }

    .controls {
        width: auto;
        gap: 6px;
        flex-wrap: nowrap;
    }

    .connection-status {
        display: none !important;
    }

    .mute-btn {
        display: none !important;
    }

    .iconBtn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    select {
        padding: 8px 10px;
        font-size: 13px;
        min-width: 140px;
    }
    .btn {
        flex: 1;
        padding: 7px 7px;
        border-radius: 10px;
        font-weight: 800;
        font-size: 15px;
        letter-spacing: .12px;
    }
}

.w50 {
    width: 50%;
}

.w33 {
    width: 33.3333%;
}

.w33 {
    display: inline-block;
    vertical-align: top;
}

@media (max-width: 680px) {
    .w50 {
        width: 100%
    }

    .w33 {
        width: 100%
    }
}

/* Keep order actions behind the open notification panel. */
body.requests-sidebar-open { overflow: hidden; }
body.requests-sidebar-open .bulkActionBar { display: none !important; }

/* Monthly order usage follows the service's dark palette. */
.order-usage-menu-divider { border: 0; border-top: 1px solid var(--stroke); margin: 18px 0 14px; }
.order-usage-menu { padding: 0 12px 4px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.order-usage-menu strong { display: block; margin-top: 4px; color: var(--text); font-size: 18px; font-weight: 800; }
.order-usage-summary.order-usage-warning, .order-usage-summary.order-usage-warning strong,
.order-usage-summary.order-usage-warning a, .order-usage-summary.order-usage-warning .order-usage-alert { color: #ff727c; font-weight: 700; }
.order-usage-summary {
    padding: 14px 20px;
    background: var(--card2);
    border-bottom: 1px solid var(--stroke);
    color: var(--text);
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.order-usage-summary strong { color: var(--text); }
.order-usage-summary a {
    display: inline-block;
    margin-left: 12px;
    color: #93c5fd;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.order-usage-summary a:hover { color: #bfdbfe; }
.order-usage-summary a:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 4px;
    border-radius: 2px;
}
.order-usage-summary .order-usage-alert { margin: 8px 0; color: #fca5a5; }
@media (max-width: 600px) {
    .order-usage-summary { padding: 12px 16px; }
    .order-usage-summary a { display: block; margin: 8px 0 0; }
}
