:root {
    --lgj-navy: #111827;
    --lgj-blue: #0f4c81;
    --lgj-red: #d62828;
    --lgj-gold: #f59e0b;
    --lgj-bg: #f4f7fb;
    --lgj-border: #e5e7eb;
}

* {
    letter-spacing: 0;
}

body {
    min-height: 100vh;
    background: var(--lgj-bg);
    color: #1f2937;
}

.login-screen {
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(15, 76, 129, 0.86)),
        url("https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
}

.login-card {
    max-width: 1040px;
    width: 100%;
}

.login-brand {
    min-height: 620px;
    padding: 56px;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(15, 76, 129, 0.92));
    color: #fff;
}

.place-items-center {
    place-items: center;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 270px;
    background: var(--lgj-navy);
    color: #fff;
    padding: 18px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.brand {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 10px 8px 22px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--lgj-red), var(--lgj-gold));
    border-radius: 8px;
    font-weight: 800;
}

.brand small {
    display: block;
    color: #cbd5e1;
}

.sidebar .nav-link,
.mobile-nav .nav-link {
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    padding: 10px 12px;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.11);
    color: #fff;
}

.mobile-nav .nav-link {
    color: #1f2937;
}

.mobile-nav .nav-link.active {
    background: #eef2ff;
    color: var(--lgj-blue);
}

.app-main {
    flex: 1;
    min-width: 0;
}

.topbar {
    min-height: 72px;
    padding: 0 12px;
}

.avatar-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: var(--lgj-blue);
    color: #fff;
    font-weight: 700;
}

.stat-card {
    border: 1px solid var(--lgj-border);
    border-radius: 8px;
    background: #fff;
    padding: 18px;
    min-height: 128px;
}

.stat-card .icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #eff6ff;
    color: var(--lgj-blue);
}

.panel {
    background: #fff;
    border: 1px solid var(--lgj-border);
    border-radius: 8px;
}

.panel-header {
    padding: 16px 18px;
    border-bottom: 1px solid var(--lgj-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.panel-body {
    padding: 18px;
}

.table > :not(caption) > * > * {
    vertical-align: middle;
}

.product-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    background: #e5e7eb;
}

.receipt {
    max-width: 760px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--lgj-border);
    border-radius: 8px;
    padding: 28px;
}

.receipt-logo {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    background: var(--lgj-navy);
    color: #fff;
    border-radius: 8px;
    font-weight: 800;
}

.pos-cart {
    position: sticky;
    top: 88px;
}

.form-label {
    font-weight: 600;
}

.required::after {
    content: " *";
    color: var(--lgj-red);
}

@media print {
    .sidebar,
    .topbar,
    .no-print,
    .offcanvas {
        display: none !important;
    }

    .app-shell,
    .app-main,
    main.container-fluid {
        display: block;
        padding: 0 !important;
        margin: 0 !important;
        background: #fff;
    }

    .receipt,
    .panel {
        border: none;
        box-shadow: none;
    }
}

@media (max-width: 991.98px) {
    .pos-cart {
        position: static;
    }
}
