:root {
    --sp-primary: #0f766e;
    --sp-primary-dark: #115e59;
    --sp-primary-soft: #ccfbf1;
    --sp-accent: #f59e0b;
    --sp-ink: #0f172a;
    --sp-muted: #64748b;
    --sp-bg: #f4f7f9;
    --sp-card: #ffffff;
    --sp-border: #e2e8f0;
    --sp-sidebar: #0b1220;
    --sp-sidebar-soft: #111c2e;
    --sp-danger: #dc2626;
    --sp-success: #16a34a;
    --sp-radius: 14px;
    --sp-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    --sp-sidebar-width: 258px;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--sp-bg);
    color: #1e293b;
    font-family:
        "Segoe UI",
        system-ui,
        -apple-system,
        "Helvetica Neue",
        Arial,
        sans-serif;
    font-size: 0.925rem;
    min-height: 100vh;
}

a {
    text-decoration: none;
}

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

.sidebar {
    width: var(--sp-sidebar-width);
    /* background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%); */
    /* color: #cbd5e1; */
    background: #ed7895;
    color: #ffffff;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    padding: 1.15rem 1.25rem;
    color: #fff;
    /* border-bottom: 1px solid rgba(148, 163, 184, 0.12); */
    border-bottom: 1px solid #f7a5b8;
}

.sidebar-brand .logo {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--sp-primary), #22c55e);
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 6px 16px rgba(15, 118, 110, 0.45);
}

.sidebar-brand strong {
    font-size: 1.08rem;
    letter-spacing: 0.2px;
}
.sidebar-brand small {
    display: block;
    /* color: #94a3b8; */
    color: #ffffff;
    font-size: 0.7rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.sidebar-scroll {
    overflow-y: auto;
    padding: 0.85rem 0.7rem 1.5rem;
    flex: 1;
}
.sidebar-scroll::-webkit-scrollbar {
    width: 5px;
}
.sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 10px;
}

.nav-label {
    /* color: #64748b; */
    color: #243a5a;
    font-size: 0.67rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem 0.75rem 0.4rem;
    font-weight: 700;
}

.sidebar .nav-link {
    /* color: #cbd5e1; */
    color: #ffffff;
    border-radius: 10px;
    padding: 0.58rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 500;
    margin-bottom: 2px;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.sidebar .nav-link i {
    width: 20px;
    font-size: 1.05rem;
    text-align: center;
    /* color: #94a3b8; */
    color: #ffffff;
}
.sidebar .nav-link:hover {
    /* background: rgba(148, 163, 184, 0.1); */
    background: #ffd1df;
    color: #000;
}
.sidebar .nav-link:hover i {
    color: #000;
}
.sidebar .nav-link.active {
    /* background: linear-gradient(
        90deg,
        rgba(15, 118, 110, 0.95),
        rgba(13, 148, 136, 0.65)
    );
    color: #fff;
    box-shadow: 0 6px 18px rgba(15, 118, 110, 0.25); */
    color: #fff;
    background: #f489a5;
}
.sidebar .nav-link.active i {
    color: #fff;
}
.sidebar .nav-link .badge {
    margin-left: auto;
    font-size: 0.65rem;
}

.sidebar-footer {
    padding: 0.85rem 1rem;
    /* border-top: 1px solid rgba(148, 163, 184, 0.12); */
    border-top: 1px solid #f7a5b8;
    font-size: 0.75rem;
    /* color: #64748b; */
    color: #fff;
}

.main-area {
    margin-left: var(--sp-sidebar-width);
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--sp-border);
    padding: 0.65rem 1.35rem;
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 64px;
}

.topbar .page-title {
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--sp-ink);
    line-height: 1.2;
}
.topbar .page-crumb {
    font-size: 0.74rem;
    color: var(--sp-muted);
}

.branch-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid var(--sp-border);
    background: #fff;
    border-radius: 50px;
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    color: #334155;
    font-weight: 600;
}

.icon-btn {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 11px;
    border: 1px solid var(--sp-border);
    background: #fff;
    color: #475569;
    position: relative;
    transition: all 0.15s ease;
}

.icon-btn:hover {
    background: var(--sp-primary-soft);
    border-color: #99f6e4;
    color: var(--sp-primary-dark);
}
.icon-btn .dot {
    position: absolute;
    top: 7px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    border: 2px solid #fff;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: 0;
    background: transparent;
    padding: 0.2rem 0.35rem;
    border-radius: 10px;
}
.user-chip:hover {
    background: #f1f5f9;
}
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    display: grid;
    place-items: center;
    background: var(--sp-primary-soft);
    color: var(--sp-primary-dark);
    font-weight: 700;
    font-size: 0.8rem;
}

.content {
    padding: 1.35rem;
    flex: 1;
}
.content-inner {
    max-width: 1500px;
    margin: 0 auto;
}

.sidebar-backdrop {
    display: none;
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    body.sidebar-open .sidebar {
        transform: translateX(0);
    }
    body.sidebar-open .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.5);
        z-index: 1035;
    }
    .main-area {
        margin-left: 0;
    }
    .content {
        padding: 1rem;
    }
    .topbar {
        padding: 0.6rem 0.9rem;
    }
}

/* Cards & tables */
.card {
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    box-shadow: var(--sp-shadow);
    background: var(--sp-card);
}
.card-header {
    background: transparent;
    border-bottom: 1px solid var(--sp-border);
    padding: 1rem 1.15rem;
    font-weight: 700;
    color: var(--sp-ink);
}
.card-footer {
    background: transparent;
    border-top: 1px solid var(--sp-border);
}
.card-body {
    padding: 1.15rem;
}

.stat-card {
    position: relative;
    overflow: hidden;
}
.stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
}
.stat-card .stat-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--sp-ink);
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.stat-card .stat-label {
    color: var(--sp-muted);
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.stat-card .stat-hint {
    font-size: 0.74rem;
    color: var(--sp-muted);
}

.bg-soft-primary {
    background: #e0f2fe;
    color: #0369a1;
}
.bg-soft-success {
    background: #dcfce7;
    color: #15803d;
}
.bg-soft-warning {
    background: #fef3c7;
    color: #b45309;
}
.bg-soft-danger {
    background: #fee2e2;
    color: #b91c1c;
}
.bg-soft-info {
    background: #cffafe;
    color: #0e7490;
}
.bg-soft-purple {
    background: #ede9fe;
    color: #6d28d9;
}
.bg-soft-secondary {
    background: #f1f5f9;
    color: #475569;
}

.table {
    --bs-table-bg: transparent;
    margin-bottom: 0;
    font-size: 0.86rem;
}
.table > thead th {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    border-bottom: 1px solid var(--sp-border);
    padding: 0.65rem 0.75rem;
    white-space: nowrap;
}
.table > tbody > tr > td {
    padding: 0.7rem 0.75rem;
    vertical-align: middle;
    border-color: #eef2f6;
}
.table tbody tr:hover {
    background: #f8fbfb;
}
.table .product-cell {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 190px;
}
.table .product-thumb {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    object-fit: cover;
    background: #f1f5f9;
    display: grid;
    place-items: center;
    color: #94a3b8;
}

.badge {
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.36em 0.6em;
    border-radius: 7px;
}
.badge-soft-success {
    background: #dcfce7;
    color: #15803d;
}
.badge-soft-warning {
    background: #fef3c7;
    color: #b45309;
}
.badge-soft-danger {
    background: #fee2e2;
    color: #b91c1c;
}
.badge-soft-info {
    background: #cffafe;
    color: #0e7490;
}
.badge-soft-secondary {
    background: #f1f5f9;
    color: #475569;
}
.badge-soft-primary {
    background: #ccfbf1;
    color: #0f766e;
}

.btn {
    border-radius: 9px;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.48rem 0.85rem;
}
.btn-sm {
    border-radius: 8px;
    font-size: 0.78rem;
    padding: 0.32rem 0.6rem;
}
.btn-primary {
    --bs-btn-bg: var(--sp-primary);
    --bs-btn-border-color: var(--sp-primary);
    --bs-btn-hover-bg: var(--sp-primary-dark);
    --bs-btn-hover-border-color: var(--sp-primary-dark);
    --bs-btn-active-bg: var(--sp-primary-dark);
}
.btn-outline-primary {
    --bs-btn-color: var(--sp-primary);
    --bs-btn-border-color: #5eead4;
    --bs-btn-hover-bg: var(--sp-primary);
    --bs-btn-hover-border-color: var(--sp-primary);
}
.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-grid;
    place-items: center;
}

.form-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.35rem;
}
.form-control,
.form-select {
    border-color: #dbe3ea;
    border-radius: 9px;
    padding: 0.5rem 0.7rem;
    font-size: 0.86rem;
}
.form-control:focus,
.form-select:focus {
    border-color: #5eead4;
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.1);
}
.form-text {
    font-size: 0.73rem;
}
.input-group-text {
    background: #f8fafc;
    border-color: #dbe3ea;
    color: #64748b;
    font-size: 0.82rem;
}
.required::after {
    content: " *";
    color: #dc2626;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
    flex-wrap: wrap;
}
.page-header h1 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--sp-ink);
    margin: 0;
    letter-spacing: -0.02em;
}
.page-header p {
    margin: 0.28rem 0 0;
    color: var(--sp-muted);
    font-size: 0.82rem;
}
.page-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar {
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    padding: 0.8rem;
    margin-bottom: 1rem;
    box-shadow: var(--sp-shadow);
}
.filter-bar .form-control,
.filter-bar .form-select {
    min-height: 36px;
}
.filter-bar .form-label {
    margin-bottom: 0.25rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--sp-muted);
}
.empty-state i {
    font-size: 2.4rem;
    color: #cbd5e1;
    display: block;
    margin-bottom: 0.7rem;
}
.empty-state h6 {
    color: #334155;
    font-weight: 700;
}

.nav-tabs .nav-link {
    border: 0;
    color: #64748b;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.6rem 0.85rem;
    border-bottom: 2px solid transparent;
    border-radius: 0;
}
.nav-tabs .nav-link.active {
    color: var(--sp-primary);
    background: transparent;
    border-bottom-color: var(--sp-primary);
}

.dropdown-menu {
    border: 1px solid var(--sp-border);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    font-size: 0.85rem;
    padding: 0.4rem;
}
.dropdown-item {
    border-radius: 8px;
    padding: 0.48rem 0.65rem;
}
.dropdown-item:hover {
    background: #f1f5f9;
}

.pagination {
    margin-bottom: 0;
}
.page-link {
    color: var(--sp-primary);
    border-color: var(--sp-border);
    font-size: 0.8rem;
}
.active > .page-link,
.page-link.active {
    background: var(--sp-primary);
    border-color: var(--sp-primary);
}

.alert {
    border: 0;
    border-radius: 11px;
    font-size: 0.85rem;
}
.alert-success {
    background: #ecfdf5;
    color: #065f46;
}
.alert-danger {
    background: #fef2f2;
    color: #991b1b;
}
.alert-warning {
    background: #fffbeb;
    color: #92400e;
}
.alert-info {
    background: #ecfeff;
    color: #155e75;
}

.progress {
    height: 6px;
    background: #eef2f6;
    border-radius: 10px;
}
.progress-bar {
    border-radius: 10px;
}

.nav-pills .nav-link {
    color: #475569;
    font-weight: 600;
    font-size: 0.82rem;
    border-radius: 8px;
    padding: 0.45rem 0.8rem;
}
.nav-pills .nav-link.active {
    background: var(--sp-primary);
    color: #fff;
}

.section-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    font-weight: 700;
}

.mini-table td,
.mini-table th {
    padding: 0.48rem 0.55rem;
    font-size: 0.8rem;
}

.text-money {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.text-qty {
    font-variant-numeric: tabular-nums;
}

.dot-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* Auth */
.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    background: #fff;
}
/* .auth-hero { background: radial-gradient(1200px 600px at 10% 10%, rgba(45, 212, 191, .35), transparent 60%), linear-gradient(140deg, #0b1220 0%, #0f172a 55%, #134e4a 100%); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; } */
.auth-hero {
    background:
        radial-gradient(
            1200px 600px at 10% 10%,
            rgba(255, 255, 255, 0.25),
            transparent 60%
        ),
        linear-gradient(45deg, #f7a5b8 0%, #f489a5 55%, #ed7895 100%);
    color: #fff;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.auth-hero .brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
}
.auth-hero .brand .logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #14b8a6, #22c55e);
    display: grid;
    place-items: center;
}
.auth-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    max-width: 520px;
}
.auth-hero p {
    color: #94a3b8;
    max-width: 520px;
}
.auth-hero .feature-list {
    display: grid;
    gap: 0.75rem;
}
.auth-hero .feature-list div {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    color: #cbd5e1;
    font-size: 0.88rem;
}
.auth-hero .feature-list i {
    color: #2dd4bf;
}
.auth-form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.auth-form {
    width: 100%;
    max-width: 400px;
}
.auth-form h2 {
    font-weight: 800;
    color: var(--sp-ink);
    letter-spacing: -0.02em;
}
.auth-form .form-control {
    padding: 0.65rem 0.8rem;
}
.auth-form .btn {
    padding: 0.65rem 1rem;
}
@media (max-width: 991.98px) {
    .auth-page {
        grid-template-columns: 1fr;
    }
    .auth-hero {
        display: none;
    }
}

/* POS */
body.pos-body {
    background: #eef2f6;
    overflow: hidden;
}
.pos-shell {
    height: 100vh;
    display: flex;
    flex-direction: column;
}
.pos-topbar {
    /* background: #0b1220; */
    background: #f489a5;
    color: #fff;
    padding: 0.55rem 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex: 0 0 auto;
}
.pos-topbar .brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
}
.pos-topbar .brand .logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, #14b8a6, #22c55e);
    display: grid;
    place-items: center;
}
.pos-main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 430px;
    min-height: 0;
}
.pos-products {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0.85rem;
}
.pos-search {
    position: relative;
}
.pos-search .form-control {
    height: 50px;
    font-size: 1rem;
    padding-left: 2.8rem;
    border-radius: 12px;
}
.pos-search > i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.15rem;
    color: #94a3b8;
}
.pos-results {
    flex: 1;
    overflow-y: auto;
    padding: 0.15rem;
}
.pos-product-card {
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: 12px;
    padding: 0.65rem;
    display: flex;
    gap: 0.65rem;
    align-items: center;
    width: 100%;
    text-align: left;
    transition: all 0.12s ease;
}
.pos-product-card:hover {
    border-color: #5eead4;
    box-shadow: 0 8px 22px rgba(15, 118, 110, 0.12);
    transform: translateY(-1px);
}
.pos-product-card .thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f0fdfa;
    color: #0f766e;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    flex: 0 0 auto;
}
.pos-product-card .name {
    font-weight: 700;
    font-size: 0.83rem;
    color: #1e293b;
    line-height: 1.25;
}
.pos-product-card .meta {
    font-size: 0.72rem;
    color: #64748b;
}
.pos-product-card .price {
    font-weight: 800;
    color: var(--sp-primary-dark);
    font-size: 0.86rem;
    white-space: nowrap;
}
.pos-cart {
    background: #fff;
    border-left: 1px solid var(--sp-border);
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.pos-cart-head {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--sp-border);
}
.pos-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 0.55rem 0.75rem;
}
.pos-cart-item {
    border-bottom: 1px solid #f1f5f9;
    padding: 0.6rem 0;
}
.pos-cart-item .name {
    font-weight: 700;
    font-size: 0.82rem;
    line-height: 1.25;
}
.pos-cart-item .meta {
    font-size: 0.7rem;
    color: #64748b;
}
.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dbe3ea;
    border-radius: 8px;
    overflow: hidden;
}
.qty-control button {
    border: 0;
    background: #f8fafc;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    color: #475569;
    font-size: 0.75rem;
}
.qty-control button:hover {
    background: #e2e8f0;
}
.qty-control input {
    width: 44px;
    border: 0;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0;
    height: 25px;
}
.qty-control input:focus {
    outline: none;
}
.pos-totals {
    border-top: 1px solid var(--sp-border);
    padding: 0.85rem 1rem;
    background: #fbfdfd;
}
.pos-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    margin-bottom: 0.3rem;
    color: #475569;
}
.pos-total-row.grand {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--sp-ink);
    margin-top: 0.45rem;
    padding-top: 0.55rem;
    border-top: 1px dashed #cbd5e1;
}
.pos-actions {
    padding: 0.75rem 1rem 1rem;
    display: grid;
    gap: 0.5rem;
}
.pos-empty {
    color: #94a3b8;
    text-align: center;
    padding: 2.5rem 1rem;
}
.pos-empty i {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 0.5rem;
}
.pos-payment-panel {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.pos-payment-card {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 620px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
}
.pos-held-list {
    max-height: 180px;
    overflow-y: auto;
}
@media (max-width: 1199.98px) {
    .pos-main {
        grid-template-columns: 1fr 380px;
    }
}
@media (max-width: 991.98px) {
    body.pos-body {
        overflow: auto;
    }
    .pos-shell {
        height: auto;
        min-height: 100vh;
    }
    .pos-main {
        grid-template-columns: 1fr;
    }
    .pos-products {
        min-height: 60vh;
    }
    .pos-cart {
        border-left: 0;
        border-top: 1px solid var(--sp-border);
    }
}

/* Receipts & print */
.receipt-paper {
    background: #fff;
    color: #111;
    font-family: "Courier New", monospace;
    width: 80mm;
    margin: 0 auto;
    padding: 6mm 4mm;
    font-size: 11px;
    line-height: 1.35;
}
.receipt-paper.size-58 {
    width: 58mm;
    font-size: 9.5px;
    padding: 4mm 3mm;
}
.receipt-paper.size-a4 {
    width: 100%;
    max-width: 210mm;
    font-family: "Segoe UI", sans-serif;
    font-size: 12px;
    padding: 14mm;
}
.receipt-paper h5 {
    font-weight: 800;
    margin: 0.15rem 0;
}
.receipt-paper .divider {
    border-top: 1px dashed #64748b;
    margin: 0.45rem 0;
}
.receipt-paper table {
    width: 100%;
}
.receipt-paper td,
.receipt-paper th {
    padding: 0.12rem 0;
    vertical-align: top;
}
.receipt-logo {
    max-height: 48px;
    max-width: 140px;
    object-fit: contain;
}

.print-toolbar {
    background: #fff;
    border-bottom: 1px solid var(--sp-border);
    padding: 0.7rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

@media print {
    body {
        background: #fff !important;
    }
    .no-print,
    .sidebar,
    .topbar,
    .pos-topbar,
    .print-toolbar {
        display: none !important;
    }
    .main-area {
        margin-left: 0 !important;
    }
    .content {
        padding: 0 !important;
    }
    .receipt-paper {
        box-shadow: none !important;
        width: 80mm;
    }
    .card {
        box-shadow: none !important;
        border: 0 !important;
    }
    .print-page {
        padding: 0 !important;
    }
}

/* Misc */
.cursor-pointer {
    cursor: pointer;
}
.fs-7 {
    font-size: 0.78rem;
}
.fs-8 {
    font-size: 0.72rem;
}
.avatar-lg {
    width: 64px;
    height: 64px;
    font-size: 1.3rem;
}
.avatar-sm {
    width: 30px;
    height: 30px;
    font-size: 0.72rem;
}
.hover-lift {
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}
.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}
.border-dashed {
    border-style: dashed !important;
}
.bg-soft {
    background: #f8fafc;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.table-responsive {
    scrollbar-width: thin;
}
.sticky-actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid var(--sp-border);
    padding: 0.8rem 1.15rem;
    z-index: 5;
}
