/* ============================================================
   POS LOGIN
   ============================================================ */

:root {
    --pos-navy: #0d1b2f;
    --pos-navy-light: #14243b;
    --pos-blue: #1769ff;
    --pos-blue-light: #eaf2ff;
    --pos-bg: #f4f5f7;
    --pos-white: #ffffff;
    --pos-border: #d9e0e8;
    --pos-text: #1f2937;
    --pos-muted: #7b8794;
    --pos-danger: #ef4444;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    background: #e9ebee;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    color: var(--pos-text);
}

/* ============================================================
   MAIN POS LOGIN
   ============================================================ */

#calculator-section {
    min-height: 100vh;
    width: 100%;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(
            circle at top left,
            rgba(23, 105, 255, 0.06),
            transparent 35%
        ),
        #e9ebee;
}

.pos-login-wrapper {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: 245px 1fr;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    background: var(--pos-white);
    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.15),
        0 4px 12px rgba(15, 23, 42, 0.06);
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.pos-sidebar {
    position: relative;
    min-height: 650px;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    background: var(--pos-navy);
    color: #fff;
    overflow: hidden;
}

.pos-sidebar::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: var(--pos-blue);
}

html[dir="rtl"] .pos-sidebar::after {
    right: auto;
    left: 0;
}

.pos-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pos-brand-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pos-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #173154;
    border: 1px solid rgba(255,255,255,0.12);
    color: #4d8dff;
    font-size: 17px;
}

.pos-brand-name {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
}

.language-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.05);
}

.language-switcher button {
    border: 0;
    background: transparent;
    color: #c7d2e3;
    font-weight: 600;
    padding: 0;
}

.language-switcher .dropdown-menu {
    min-width: 100px;
    padding: 6px;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.language-switcher .dropdown-item {
    border-radius: 7px;
    font-size: 12px;
    padding: 7px 10px;
}

.language-switcher .dropdown-item:hover {
    background: var(--pos-blue-light);
}

.sidebar-bottom {
    margin-top: auto;
}

.sidebar-divider {
    height: 1px;
    width: 100%;
    margin-bottom: 28px;
    background: rgba(255,255,255,0.12);
}

.sidebar-info {
    margin-bottom: 20px;
}

.sidebar-info-label {
    margin-bottom: 7px;
    color: #8fa0b7;
    font-size: 8px;
    line-height: 1;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.sidebar-info-value {
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

/* ============================================================
   CONTENT
   ============================================================ */

.pos-content {
    min-width: 0;
    background: #f7f7f6;
    display: flex;
    flex-direction: column;
}

.pos-content-top {
    padding: 34px 48px 28px;
    background: #f7f7f6;
}

.login-heading {
    margin: 0 !important;
    padding: 0 !important;
    text-align: left;
}

.login-heading .screen-fits {
    width: 100%;
    justify-content: flex-end !important;
    gap: 12px !important;
}

.login-heading h2:first-child {
    display: none;
}

.login-heading p {
    display: none;
}

.screen-fits h4 {
    margin: 0 !important;
}

#fullscreen-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pos-border);
    border-radius: 9px;
    background: #fff;
    color: #667085;
    cursor: pointer;
    transition: all .2s ease;
}

#fullscreen-btn:hover {
    color: var(--pos-blue);
    border-color: #a9c6ff;
    background: var(--pos-blue-light);
}

#sound-play-header {
    margin: 0 !important;
}

#page-header-notifications-dropdown {
    position: relative;
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pos-border);
    background: #fff;
    color: #667085;
}

#page-header-notifications-dropdown:hover {
    color: var(--pos-blue);
}

#page-header-notifications-dropdown .bi-bell {
    font-size: 16px !important;
}

.topbar-badge {
    top: 0 !important;
    right: 0 !important;
    font-size: 8px !important;
    min-width: 16px;
    min-height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   LOGIN FORM AREA
   ============================================================ */

.login-main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 8px 48px 42px;
}

.login-form-area {
    width: min(700px, 100%);
}

.login-title-row {
    margin-bottom: 25px;
}

.login-title {
    margin: 0;
    color: #1d2939;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.login-subtitle {
    margin: 5px 0 0;
    color: var(--pos-muted);
    font-size: 12px;
}

/* ============================================================
   FORM FIELDS
   ============================================================ */

.pos-field {
    margin-bottom: 18px;
}

.pos-field-label {
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #344054;
    font-size: 11px;
    font-weight: 700;
}

.pos-field-meta {
    color: #98a2b3;
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pos-field-box {
    min-height: 48px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 13px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.pos-field-box:focus-within {
    border-color: #8eb5ff;
    box-shadow: 0 0 0 3px rgba(23,105,255,0.08);
}

.pos-field-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667085;
    font-size: 15px;
}

.pos-field-box select {
    width: 100%;
    height: 44px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #344054;
    font-size: 12px;
    cursor: pointer;
}

.pos-field-box select option {
    color: #1d2939;
}

/* ============================================================
   EXISTING USER LIST
   Keep .select-user and .item classes for JS compatibility.
   ============================================================ */

.select-user {
    width: 100%;
}

.select-user > h6 {
    display: none;
}

.select-user ul {
    display: none;
}

/* Hidden compatibility list.
   The visible dropdown uses the same data-userid values. */
.select-user .user-options {
    display: none;
}

/* ============================================================
   PIN CARD
   ============================================================ */

.calculator-table {
    width: 100%;
    padding: 20px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    box-shadow:
        0 4px 14px rgba(15, 23, 42, 0.04);
}


.pin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.pin-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: #253247;
    font-size: 12px;
    font-weight: 700;
}

.pin-title i {
    color: var(--pos-blue);
    font-size: 14px;
}

.pin-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.pin-dot {
    width: 9px;
    height: 9px;
    border: 1px solid #9aa7b8;
    border-radius: 50%;
    background: transparent;
    transition: all .15s ease;
}

.pin-dot.active {
    border-color: var(--pos-blue);
    background: var(--pos-blue);
}

.calculator-table .display {
    width: 100%;
    height: 46px;
    margin-bottom: 10px;
    padding: 0 14px;
    border: 1px solid #d7dee7;
    border-radius: 7px;
    background: #fdfdfd;
    color: #344054;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 6px;
    box-shadow: none;
}

.calculator-table .display::placeholder {
    color: #a6afbb;
    letter-spacing: 5px;
}

.calculator-table table.table {
    width: 100% !important;
    margin: 0 !important;

    table-layout: fixed !important;

    border-collapse: separate !important;
    border-spacing: 5px !important;
}

.calculator-table table td {
    height: 50px;
    padding: 0 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px;
    background: #fff;
    color: #344054;
    text-align: center;
    vertical-align: middle;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    transition:
        background .15s ease,
        border-color .15s ease,
        transform .08s ease;
}

.calculator-table table td:hover {
    border-color: #8eb5ff !important;
    background: #f5f8ff;
}

.calculator-table table td:active {
    transform: scale(.98);
    background: #edf3ff;
}

.calculator-table table td.cal-action {
    color: #667085;
}

/* ============================================================
   SUBMIT
   ============================================================ */

.login-submit-row {
    margin-top: 18px;
}

.submit.btn {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 7px;
    background: #aeb9c8;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    box-shadow: none;
    transition: all .2s ease;
}

.submit.btn:hover,
.submit.btn:focus {
    background: var(--pos-blue);
    color: #fff;
}

.submit.btn.active {
    background: var(--pos-blue);
}

.login-hint {
    margin-top: 9px;
    color: #98a2b3;
    text-align: center;
    font-size: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================================================
   ALERT
   ============================================================ */

.pos-login-alert {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 7px;
    font-size: 11px;
}

/* ============================================================
   LANGUAGE RTL
   ============================================================ */

html[dir="rtl"] .login-heading {
    text-align: right;
}

html[dir="rtl"] .login-title-row,
html[dir="rtl"] .pos-field-label {
    text-align: right;
}

html[dir="rtl"] .calculator-table .display {
    direction: ltr;
}

/* ============================================================
   OLD ORDER SECTION
   Keep it available but don't allow it to affect this screen.
   ============================================================ */

.order-section {
    display: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
    #calculator-section {
        padding: 10px;
    }

    .pos-login-wrapper {
        grid-template-columns: 190px 1fr;
        min-height: 600px;
        max-height: none;
    }

    .pos-sidebar {
        min-height: 600px;
    }

    .pos-content-top {
        padding: 25px 30px 20px;
    }

    .login-main {
        padding: 5px 30px 30px;
    }
}

@media (max-width: 700px) {
    #calculator-section {
        padding: 0;
        align-items: stretch;
    }

    .pos-login-wrapper {
        width: 100%;
        min-height: 100vh;
        max-height: none;
        border-radius: 0;
        grid-template-columns: 1fr;
    }

    .pos-sidebar {
        min-height: auto;
        padding: 15px 18px;
    }

    .sidebar-bottom {
        display: none;
    }

    .pos-brand {
        margin-bottom: 0;
    }

    .pos-content {
        min-height: auto;
    }

    .pos-content-top {
        padding: 20px;
    }

    .login-main {
        padding: 0 20px 25px;
    }

    .login-title {
        font-size: 19px;
    }

    .calculator-table {
        padding: 15px;
    }
}

@media (max-height: 720px) and (min-width: 701px) {
    .pos-login-wrapper {
        min-height: 590px;
    }

    .pos-sidebar {
        min-height: 590px;
    }

    .pos-content-top {
        padding-top: 22px;
        padding-bottom: 15px;
    }

    .login-main {
        padding-top: 0;
        padding-bottom: 20px;
    }

    .pos-field {
        margin-bottom: 12px;
    }

    .calculator-table {
        padding: 14px;
    }

    .calculator-table table td {
        height: 42px;
    }
}