/*
 * LaundryLax design tokens.
 * P2a: tokens only. Existing page rules remain authoritative to preserve visuals.
 */
:root {
    --teal-900: #00695c;
    --teal-800: #006d75;
    --teal-700: #087f8c;
    --teal-700-alt: #0f766e;
    --teal-600: #078f98;
    --teal-600-alt: #008c95;
    --teal-500: #079ca5;
    --teal-400: #35c4bd;

    --surface: #ffffff;
    --page-bg: #f1fafa;
    --text: #263238;
    --text-muted: #607d8b;
    --border: #eeeeee;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/*
 * Shared application shell.
 * A fixed teal sidebar used by the admin and cashier areas.
 */
body.app-shell {
    padding: 0 !important;
    background: var(--page-bg);
}

/* Compact layout for Charge and Open Ticket pages inside POS panels. */
.embedded-pos-page body.app-shell .app-main {
    padding-top: 18px;
}
.embedded-pos-page .menu-btn,
.embedded-pos-page .sidebar,
.embedded-pos-page .sidebar-overlay {
    display: none !important;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    width: 250px;
    height: 100vh;
    padding: 25px 15px;
    overflow-y: auto;
    background: var(--teal-600);
    color: #ffffff;
}

.brand {
    padding: 10px;
    margin-bottom: 22px;
    font-size: 26px;
    font-weight: bold;
}

.brand small {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    font-weight: normal;
}

.sidebar-user {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.14);
}

.sidebar-user strong {
    font-size: 14px;
}

.sidebar-user small {
    font-size: 11px;
    opacity: 0.8;
}

.nav-title {
    padding: 10px;
    margin-top: 10px;
    font-size: 11px;
    opacity: 0.7;
}

.sidebar a {
    display: block;
    padding: 13px 12px;
    margin-bottom: 5px;
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
}

.sidebar a:hover,
.sidebar a.active {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar .logout {
    margin-top: auto;
    padding-top: 12px;
}

.sidebar .logout form {
    margin: 0;
}

.sidebar .logout button {
    width: 100%;
    padding: 13px 12px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.sidebar .logout button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.app-main {
    min-height: 100vh;
    margin-left: 0;
    padding: 76px 30px 30px;
}

/* Global hamburger navigation: the sidebar is an off-canvas drawer on
   desktop and mobile, keeping the POS workspace uncluttered. */
.menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 1200;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: var(--teal-600);
    color: #ffffff;
    font-size: 23px;
    line-height: 1;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.menu-btn:hover {
    background: var(--teal-700);
}

.sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 8px 0 28px rgba(0, 0, 0, 0.14);
}

.sidebar.show {
    transform: translateX(0);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(0, 0, 0, 0.45);
}

.sidebar-overlay.show {
    display: block;
}

@media (max-width: 700px) {
    .app-main {
        margin-left: 0;
        padding: 72px 18px 24px;
    }
}
