/*
 * ============================================================
 * POS LITE 2026
 * FILE        : app.css
 * VERSION     : 2.0.0
 * MODULE      : Main Application UI
 * ============================================================
 */


/* ============================================================
   ROOT
   ============================================================ */

:root {

    --pos-sidebar-width: 250px;

    --pos-topbar-height: 64px;

    --pos-bg: #f5f7fb;

    --pos-white: #ffffff;

    --pos-border: #e5e7eb;

    --pos-text: #212529;

    --pos-muted: #6c757d;

    --pos-sidebar: #1f2937;

    --pos-sidebar-hover: #374151;

    --pos-primary: #0d6efd;

}


/* ============================================================
   GLOBAL
   ============================================================ */

* {
    box-sizing: border-box;
}


html,
body {
    min-height: 100%;
}


body {

    margin: 0;

    padding: 0;

    background: var(--pos-bg);

    color: var(--pos-text);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 14px;

}


/* ============================================================
   SIDEBAR
   ============================================================ */

.pos-sidebar {

    position: fixed;

    top: 0;

    left: 0;

    bottom: 0;

    width: var(--pos-sidebar-width);

    height: 100vh;

    background: var(--pos-sidebar);

    z-index: 1050;

    overflow-y: auto;

    overflow-x: hidden;

    box-shadow:
        2px 0 10px
        rgba(0, 0, 0, .08);

    transition:
        transform .25s ease;

}


/* scrollbar */

.pos-sidebar::-webkit-scrollbar {
    width: 5px;
}


.pos-sidebar::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 10px;
}


/* ============================================================
   BRAND
   ============================================================ */

.pos-brand {

    width: 100%;

    height: var(--pos-topbar-height);

    display: flex;

    align-items: center;

    padding: 0 20px;

    color: #fff !important;

    background: #111827;

    text-decoration: none !important;

    font-size: 18px;

    font-weight: 700;

    white-space: nowrap;

    border-bottom:
        1px solid
        rgba(255,255,255,.08);

}


.pos-brand:hover {

    color: #fff !important;

    background: #111827;

}


/* ============================================================
   MENU TITLE
   ============================================================ */

.pos-menu-title {

    padding:

        18px
        20px
        7px;

    color: #9ca3af;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: .7px;

    text-transform: uppercase;

}


/* ============================================================
   NAV
   ============================================================ */

.pos-sidebar .nav {

    margin: 0;

    padding: 0 10px;

}


.pos-sidebar .nav-link {

    min-height: 42px;

    margin-bottom: 2px;

    padding:

        10px
        12px;

    display: flex;

    align-items: center;

    gap: 11px;

    color: #d1d5db;

    border-radius: 7px;

    text-decoration: none;

    font-size: 14px;

    font-weight: 500;

    transition:
        background .15s ease,
        color .15s ease;

}


.pos-sidebar .nav-link span:first-child {

    width: 22px;

    min-width: 22px;

    text-align: center;

    font-size: 16px;

}


.pos-sidebar .nav-link:hover {

    color: #fff;

    background:
        var(--pos-sidebar-hover);

}


.pos-sidebar .nav-link.active {

    color: #fff;

    background:
        var(--pos-primary);

}


/* ============================================================
   MAIN AREA
   ============================================================ */

.pos-main {

    min-height: 100vh;

    margin-left:
        var(--pos-sidebar-width);

}


/* ============================================================
   TOPBAR
   ============================================================ */

.pos-topbar {

    position: sticky;

    top: 0;

    z-index: 1000;

    width: 100%;

    min-height:
        var(--pos-topbar-height);

    padding:
        0 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: #fff;

    border-bottom:
        1px solid
        var(--pos-border);

    box-shadow:
        0 1px 5px
        rgba(0, 0, 0, .03);

}


/* ============================================================
   CONTENT
   ============================================================ */

.pos-content {

    width: 100%;

    padding: 24px;

}


/* ============================================================
   DASHBOARD
   ============================================================ */

.dashboard-card {

    background:
        var(--pos-white);

    border:
        1px solid
        var(--pos-border);

    border-radius: 10px;

    box-shadow:
        0 2px 8px
        rgba(0, 0, 0, .04);

    transition:
        transform .15s ease,
        box-shadow .15s ease;

}


.dashboard-card:hover {

    box-shadow:
        0 5px 18px
        rgba(0, 0, 0, .07);

}


.dashboard-value {

    margin-top: 3px;

    color: #111827;

    font-size: 27px;

    line-height: 1.2;

    font-weight: 700;

}


/* ============================================================
   DASHBOARD HEADINGS
   ============================================================ */

.pos-content h1,
.pos-content h2,
.pos-content h3,
.pos-content h4,
.pos-content h5 {

    color: #111827;

}


.pos-content .text-muted {

    color:
        var(--pos-muted) !important;

}


/* ============================================================
   QUICK ACTION BUTTONS
   ============================================================ */

.pos-content .btn {

    border-radius: 7px;

}


.pos-content .btn.py-3 {

    min-height: 90px;

}


/* ============================================================
   BADGES
   ============================================================ */

.badge {

    font-weight: 500;

}


/* ============================================================
   MOBILE OVERLAY
   ============================================================ */

.pos-sidebar-overlay {

    display: none;

    position: fixed;

    inset: 0;

    background:
        rgba(0,0,0,.45);

    z-index: 1040;

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 991.98px) {


    .pos-sidebar {

        transform:
            translateX(-100%);

    }


    .pos-sidebar.show {

        transform:
            translateX(0);

    }


    .pos-main {

        margin-left: 0;

    }


    .pos-content {

        padding: 18px;

    }


    .pos-topbar {

        padding:
            0 15px;

    }


    .pos-sidebar-overlay.show {

        display: block;

    }

}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 575.98px) {


    .pos-content {

        padding: 14px;

    }


    .dashboard-value {

        font-size: 23px;

    }


    .pos-topbar {

        min-height: 58px;

    }

}