﻿html, body {
    height: 100%;
    margin: 0;
    overflow: hidden; /* ✅ kills browser scrollbar */
}

/* =========================================================
   APP SHELL
   ========================================================= */
.ix-shell {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
}

/* TOP BAR */
.ix-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    min-width: 0;
}

.ix-menu-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

/* MENU */
.ix-topmenu {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 2px 6px;
}

.ix-topmenu-bold .dxbl-menu-item,
.ix-topmenu-bold .dxbl-menu-item * {
    font-weight: 800;
    letter-spacing: .1px;
}

/* =========================================================
   MENU SVG ICONS (reliable, theme independent)
   ========================================================= */
/* ===== Menu icon layout ===== */
.mi-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mi-ico {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

/* Hover a bit darker */
.dxbl-menu-item:hover .mi-ico {
    fill: #374151;
}
/* ===== Color palette for SVG parts (POS-friendly) ===== */
.mi-c1 {
    fill: #2563eb;
}
/* blue */
.mi-c2 {
    fill: #22c55e;
}
/* green */
.mi-c3 {
    fill: #f59e0b;
}
/* amber */

.mi-c4 {
    fill: #0ea5e9;
}
/* sky */
.mi-c5 {
    fill: #111827;
}
/* near black */
.mi-c6 {
    fill: #ffffff;
    opacity: .9;
}

.mi-c7 {
    fill: #8b5cf6;
}
/* purple */
.mi-c8 {
    stroke: #8b5cf6;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
}

.mi-c9 {
    fill: #111827;
}

.mi-c10 {
    fill: #10b981;
}
/* emerald */
.mi-c11 {
    fill: #ffffff;
    opacity: .92;
}

.mi-c12 {
    fill: #e0f2fe;
}
/* light sky */
.mi-c13 {
    fill: #cffafe;
}
/* lighter sky */

.mi-c14 {
    fill: #f97316;
}
/* orange */
.mi-c15 {
    fill: #111827;
    opacity: .15;
}

.mi-c16 {
    stroke: #ffffff;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    opacity: .95;
}

.mi-c17 {
    fill: #6366f1;
}
/* indigo */
.mi-c18 {
    fill: #ffffff;
    opacity: .92;
}

.mi-c19 {
    fill: #e0e7ff;
}
/* light indigo */

/* hover: slightly punchier */
.dxbl-menu-item:hover .mi-ico {
    filter: saturate(1.25);
}
/* =========================================================
   USER (right)
   ========================================================= */
.ix-topbar-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    margin-left: auto;
}

.ix-user {
    font-weight: 700;
    opacity: .9;
}

/* LOGOUT SVG */
.logout-svg-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #374151;
}

    .logout-svg-btn:hover {
        background: #f3f4f6;
        color: #111827;
    }

    .logout-svg-btn:active {
        transform: translateY(1px);
    }

.logout-svg-ico {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* BODY */
.ix-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 12px;
    background: #fff;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .ix-topbar {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .ix-menu-wrap {
        width: 100%;
        order: 1;
    }

    .ix-topbar-right {
        width: 100%;
        order: 2;
        justify-content: flex-end;
    }
}

@media (max-width: 420px) {
    .ix-user {
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
/* Filled blue CTA logout button (History-style) */
.logout-btn-cta {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: #0d6efd; /* same family as History */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    transition: background .15s ease, transform .08s ease;
}

    /* Hover */
    .logout-btn-cta:hover {
        background: #0b5ed7;
    }

    /* Active / pressed */
    .logout-btn-cta:active {
        transform: translateY(1px);
        background: #0a58ca;
    }

/* SVG icon */
.logout-ico {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}
.page-title {
    font-weight: 600;
    margin-bottom: 15px;
}

.menu-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
}

.menu-form {
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.form-row {
    margin-bottom: 10px;
}

.form-control {
    width: 100%;
    padding: 6px;
}

.form-actions {
    margin-top: 10px;
}

.menu-grid {
    background: #ffffff;
    padding: 10px;
    border-radius: 10px;
}
.top-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

    .top-link-btn:hover {
        background: #f1f5f9;
        border-color: #dbe3ec;
        color: #0f172a;
    }

.top-link-ico {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex-shrink: 0;
}
.home-btn-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: transparent;
    border: none;
    padding: 0 8px;
    cursor: pointer;
    color: #334155;
    height: 48px; /* match navbar height nicely */
}

    .home-btn-vertical:hover {
        color: #0f172a;
    }

.home-ico {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.home-text {
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
}
.menu-inline-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}

    .menu-inline-btn:hover {
        color: #0f172a;
    }

.menu-ico {
    width: 14px;
    height: 14px;
    fill: currentColor;
}