/* Mobile-first shop UI — Nayarieba Trading brand theme */
:root {
    --shop-brand: #1E5A9A;
    --shop-brand-dark: #0F2F52;
    --shop-brand-light: #2F74C0;
    --shop-gold: #C8960C;
    --shop-paper: #EFE6D6;
    --shop-card: #F7F1E6;
    --shop-sand: #F3E6C8;
    --shop-brand-text: #F6EFE2;
    --shop-brand-muted: rgba(246, 239, 226, 0.82);
    --shop-ink: #2B2B2B;
    --shop-bottom-nav-h: 4.25rem;
    --shop-touch-min: 2.75rem;
}

body {
    font-family: 'Inter', 'Noto Sans Ethiopic', system-ui, sans-serif;
    background: var(--shop-paper);
    color: #2A261F;
}

html[lang="am"] body {
    font-family: 'Noto Sans Ethiopic', 'Inter', system-ui, sans-serif;
}

/* Top bar is deep blue and gold. The wordmark sits on a sand plate. */
.shop-navbar {
    background: var(--shop-brand-dark) !important;
    border-bottom: 2px solid var(--shop-gold);
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
}

.shop-navbar .navbar-brand {
    display: flex;
    align-items: center;
    margin-right: 0.75rem;
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
    max-width: none;
}

.logo-plate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--shop-sand);
    border-radius: 0.55rem;
    padding: 0.05rem 0.3rem 0.08rem;
    border-bottom: 2px solid var(--shop-gold);
    line-height: 0;
}

.shop-navbar .shop-logo {
    height: 3.15rem;
    width: auto;
    max-width: min(34vw, 7rem);
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    background: transparent;
    mix-blend-mode: multiply;
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .shop-navbar .shop-logo {
        height: 2.45rem;
        max-width: min(46vw, 5.75rem);
    }
}

.shop-navbar .nav-link {
    color: var(--shop-brand-muted) !important;
    font-weight: 600;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem !important;
}

.shop-navbar .nav-link:hover,
.shop-navbar .nav-link:focus {
    color: var(--shop-brand-text) !important;
    background: rgba(200, 150, 12, 0.22);
}

.shop-navbar .nav-link.active {
    color: #12263F !important;
    background: var(--shop-gold);
}

.shop-navbar .navbar-toggler {
    border-color: rgba(246, 239, 226, 0.55);
}

.shop-navbar .navbar-toggler-icon {
    filter: none;
}

.shop-navbar .user-greeting {
    color: var(--shop-brand-muted) !important;
}

.shop-navbar .btn-nav-logout {
    color: var(--shop-gold);
    border-color: var(--shop-gold);
    background: transparent;
}

.shop-navbar .btn-nav-logout:hover,
.shop-navbar .btn-nav-logout:focus {
    background: var(--shop-gold);
    color: #12263F;
    border-color: var(--shop-gold);
}

.account-menu-button {
    white-space: nowrap;
}

.perm-children {
    margin: 0.15rem 0 0.35rem 1.35rem;
}

.account-menu .dropdown-menu {
    min-width: 12.5rem;
    background: var(--shop-card);
    border: 1px solid #E0D2B4;
    border-radius: 0.75rem;
    padding: 0.35rem;
}

.account-menu .dropdown-item {
    font-weight: 600;
    color: #2A261F;
    border-radius: 0.45rem;
}

.account-menu .dropdown-item:hover,
.account-menu .dropdown-item:focus,
.account-menu .dropdown-item.active {
    background: rgba(30, 90, 154, 0.12);
    color: var(--shop-brand-dark);
}

.account-menu button.dropdown-item {
    width: 100%;
    text-align: start;
}

.shop-navbar .navbar-lang-form .form-select {
    background-color: var(--shop-sand);
    border-color: var(--shop-gold);
    color: #2A261F;
}

.shop-navbar .cart-badge {
    background: var(--shop-gold) !important;
    color: #12263F !important;
}

.card {
    background-color: var(--shop-card);
    border-color: #E4D8C4;
}

/* Brand buttons */
.btn-shop-primary {
    background: var(--shop-brand);
    border-color: var(--shop-brand);
    color: var(--shop-brand-text);
}

.btn-shop-primary:hover,
.btn-shop-primary:focus {
    background: var(--shop-brand-dark);
    border-color: var(--shop-brand-dark);
    color: var(--shop-brand-text);
}

.btn-primary {
    background-color: var(--shop-brand);
    border-color: var(--shop-brand);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--shop-brand-dark);
    border-color: var(--shop-brand-dark);
}

.btn-success {
    background-color: #1a7f37;
    border-color: #1a7f37;
}

html {
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: auto;
}

body {
    padding-bottom: env(safe-area-inset-bottom, 0);
    overflow-x: hidden;
    overflow-y: visible;
    min-height: 100%;
    position: static;
    -webkit-overflow-scrolling: touch;
    touch-action: auto;
    overscroll-behavior-y: auto;
}

body.has-mobile-nav {
    padding-bottom: 0;
}

main.container-app {
    padding-top: 1rem;
    padding-bottom: 2rem;
    max-width: 100%;
    overflow: visible;
    min-height: 0;
}

.mobile-scroll-spacer {
    display: none;
    width: 100%;
    flex-shrink: 0;
    pointer-events: none;
}

/* Reusable mobile / desktop visibility (lg breakpoint) */
.shop-mobile-only {
    display: block;
}

.shop-desktop-only {
    display: none;
}

@media (min-width: 992px) {
    .shop-mobile-only {
        display: none !important;
    }

    .shop-desktop-only {
        display: block !important;
    }
}

/* Global mobile scroll — all app pages */
@media (max-width: 991.98px) {
    html {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: scroll !important;
        -webkit-overflow-scrolling: touch;
        scroll-padding-bottom: calc(var(--shop-bottom-nav-h) + 1.5rem + env(safe-area-inset-bottom, 0));
    }

    body {
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        position: static !important;
        touch-action: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: env(safe-area-inset-bottom, 0) !important;
    }

    body.has-mobile-nav {
        padding-bottom: env(safe-area-inset-bottom, 0) !important;
    }

    main.container-app {
        display: block !important;
        height: auto !important;
        overflow: visible !important;
        padding-bottom: 2rem;
    }

    .mobile-scroll-spacer {
        display: block;
        min-height: calc(var(--shop-bottom-nav-h) + 2rem + env(safe-area-inset-bottom, 0));
    }

    .container-app.container-fluid,
    .container-app.container-lg {
        padding-left: max(0.75rem, env(safe-area-inset-left, 0));
        padding-right: max(0.75rem, env(safe-area-inset-right, 0));
        overflow-x: hidden;
        min-width: 0;
    }

    .container-app .row {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        height: auto !important;
        overflow: visible !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0;
        --bs-gutter-x: 0;
        min-width: 0;
    }

    .container-app .row > [class*="col-"] {
        flex: 0 0 auto !important;
        flex-shrink: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        overflow: visible !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .container-app .row.g-3 > [class*="col-"],
    .container-app .row.g-md-4 > [class*="col-"] {
        margin-bottom: 0.75rem;
    }

    .container-app .row.g-3 > [class*="col-"]:last-child,
    .container-app .row.g-md-4 > [class*="col-"]:last-child {
        margin-bottom: 0;
    }

    .container-app .card,
    .container-app .card-body,
    .container-app .card-header,
    .container-app .card-footer,
    .container-app .list-group,
    .container-app .mobile-card-list {
        height: auto !important;
        max-height: none !important;
        max-width: 100%;
        min-width: 0;
        overflow: visible !important;
    }

    .container-app form,
    .container-app .form-control,
    .container-app .form-select,
    .container-app textarea,
    .container-app .eth-date-field {
        max-width: 100%;
        min-width: 0;
    }

    .container-app form > .btn {
        width: 100%;
    }

    .container-app .table-responsive {
        height: auto !important;
        max-height: none !important;
        max-width: 100%;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
    }

    .container-app .card.h-100,
    .container-app .h-100 {
        height: auto !important;
    }

    .shop-navbar.sticky-top {
        position: sticky;
        top: 0;
        z-index: 1020;
    }
}

@media (max-width: 575.98px) {
    main.container-app {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Touch-friendly controls */
.btn,
.form-control,
.form-select {
    min-height: var(--shop-touch-min);
}

.btn-sm {
    min-height: 2.25rem;
}

.form-control-sm {
    min-height: 2.25rem;
}

.phone-flag-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.phone-flag-select {
    flex: 0 0 46%;
    max-width: 16rem;
}

.phone-flag-input {
    flex: 1 1 auto;
    min-width: 0;
}

/* Page headers stack on phone */
.page-header {
    gap: 0.75rem;
}

@media (max-width: 575.98px) {
    .page-header {
        flex-direction: column;
        align-items: stretch !important;
    }

    .page-header .page-actions {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .page-header .page-actions .btn {
        width: 100%;
    }
}

/* Navbar: language full width when collapsed */
@media (max-width: 767.98px) {
    .navbar-collapse {
        padding-bottom: 0.75rem;
    }

    .mobile-nav-links {
        width: 100%;
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .mobile-nav-links .nav-link {
        padding: 0.65rem 0.25rem;
        font-size: 1rem;
        font-weight: 600;
    }

    .navbar-lang-form {
        width: 100%;
        margin-top: 0.5rem;
        padding-top: 0;
        border-top: none;
    }

    .navbar-lang-form .form-select {
        width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar-lang-form {
        width: auto;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }
}

@media (max-width: 991.98px) {
    .navbar-lang-form .form-select {
        min-width: 8rem;
    }
}

/* Fixed bottom nav (phones only) */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 767.98px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1030;
        height: var(--shop-bottom-nav-h);
        padding-bottom: env(safe-area-inset-bottom, 0);
        background: var(--shop-brand);
        border-top: 2px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 -4px 16px rgba(198, 38, 37, 0.35);
    }

    .mobile-bottom-nav a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.15rem;
        padding: 0.35rem 0.15rem;
        font-size: 0.6rem;
        font-weight: 600;
        text-decoration: none;
        color: var(--shop-brand-muted);
        min-height: var(--shop-bottom-nav-h);
        text-align: center;
        line-height: 1.15;
        overflow: hidden;
        border-radius: 0.35rem;
        margin: 0.15rem 0.1rem;
    }

    .mobile-bottom-nav a span:last-child {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding: 0 2px;
    }

    .mobile-bottom-nav a.active {
        color: #12263F;
        background: var(--shop-gold);
    }

    .mobile-bottom-nav .nav-icon {
        font-size: 1.25rem;
        line-height: 1;
    }

    .mobile-bottom-nav .nav-badge {
        position: absolute;
        top: 0.35rem;
        margin-left: 1.25rem;
        font-size: 0.6rem;
    }
}

/* POS checkout — cart mobile vs desktop layouts */
.pos-cart-mobile {
    display: none;
}

.pos-cart-desktop {
    display: block;
}

@media (max-width: 991.98px) {
    .pos-cart-mobile {
        display: block !important;
    }

    .pos-cart-desktop {
        display: none !important;
    }

    .pos-checkout-layout .pos-cart-column {
        order: 1 !important;
    }

    .pos-checkout-layout .pos-add-column {
        order: 2 !important;
        padding-bottom: 0.5rem;
    }

    .pos-cart-card {
        margin-bottom: 0.75rem;
    }

    .pos-add-column .card:last-child {
        margin-bottom: 1rem;
    }

    body.pos-checkout-page main.container-app {
        padding-bottom: 2.5rem;
    }

    .pos-cart-actions .btn {
        min-height: 3rem;
    }

    .pos-checkout-jump {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .pos-checkout-jump .btn {
        flex: 1 1 auto;
        min-height: 2.5rem;
    }

    #pos-cart-section,
    #add-to-cart-section,
    #customer-section {
        scroll-margin-top: 4.5rem;
        scroll-margin-bottom: 1rem;
    }
}

/* Report buttons full width on small screens */
@media (max-width: 991.98px) {
    .btn-report {
        width: 100%;
    }

    .reports-actions {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Form action rows */
.form-actions {
    gap: 0.5rem;
}

@media (max-width: 575.98px) {
    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}

/* Mobile product / cart cards */
.mobile-card-list .list-group-item {
    padding: 0.875rem 1rem;
}

.mobile-card-list .card-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.mobile-card-list .card-meta {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Word break for long Amharic / barcodes */
.text-break-word {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.table-responsive {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.report-recent-sales-card {
    max-width: 100%;
    min-width: 0;
}

.sale-payment-type .js-payment-type-label {
    cursor: pointer;
}

/* Form pages — extra bottom space above mobile nav */
@media (max-width: 991.98px) {
    .form-page-card {
        margin-bottom: 0.5rem;
    }
}

/* POS product name search */
.product-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1040;
    max-height: min(16rem, 40vh);
    overflow-y: auto;
    margin-top: 0.25rem;
    border-radius: 0.375rem;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 991.98px) {
    body.pos-checkout-page .product-search-results {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        max-height: none;
        margin-top: 0.5rem;
    }
}

.product-search-results .list-group-item {
    border-left: none;
    border-right: none;
    padding: 0.75rem 1rem;
    text-align: left;
}

.product-search-results .product-search-item.active,
.product-search-results .product-search-item:hover {
    background: rgba(30, 90, 154, 0.12);
}

/* Login page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--shop-paper);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 575.98px) {
    .login-page {
        align-items: flex-start;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

.login-card {
    background: var(--shop-card);
    border: 1px solid #E0D2B4;
    border-top: 4px solid var(--shop-gold);
}

.dashboard-panel-logo {
    width: min(100%, 9.5rem);
    height: auto;
    object-fit: contain;
    border-radius: 0;
    align-self: flex-start;
    mix-blend-mode: multiply;
}

.login-logo {
    width: min(100%, 14rem);
    height: auto;
    object-fit: contain;
    border-radius: 0;
    margin-bottom: 0.25rem;
    mix-blend-mode: multiply;
}

.report-tabs .nav-link {
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-weight: 600;
    color: #495057;
    background: #f1f3f5;
}

.report-tabs .nav-link.active {
    background: var(--shop-brand);
    color: #fff;
}

.report-customer-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.report-avatar {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: #e7f1ff;
    color: #0d6efd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.report-customer-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.report-amount {
    flex-shrink: 0;
}

.report-totals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-top: 2px solid #212529;
    background: #fff;
}

.report-period-bar .btn {
    border-radius: 999px;
}

.report-period-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.report-customer-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-downloads-toggle summary {
    list-style: none;
}

.report-downloads-toggle summary::-webkit-details-marker {
    display: none;
}

@media (max-width: 767.98px) {
    body.reports-page main.container-app {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        padding-bottom: calc(var(--shop-bottom-nav-h) + 4.75rem);
    }

    .report-stat-extra {
        display: block;
    }

    .report-period-scroll {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.25rem;
        margin-inline: -0.15rem;
    }

    .report-period-scroll .btn {
        flex: 0 0 auto;
        font-size: 0.75rem;
        padding: 0.3rem 0.7rem;
    }

    .report-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.35rem;
        width: 100%;
    }

    .report-tabs .nav-link {
        padding: 0.3rem 0.7rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .report-tab-count {
        opacity: 0.8;
    }

    .report-contact-desktop {
        display: none;
    }

    .report-currency {
        display: none;
    }

    .report-avatar {
        width: 2.1rem;
        height: 2.1rem;
        font-size: 0.9rem;
    }

    .report-customer-row {
        gap: 0.6rem;
    }

    .report-amount {
        min-width: 5.5rem;
        font-size: 0.95rem;
    }

    .report-totals {
        position: sticky;
        bottom: calc(var(--shop-bottom-nav-h) + env(safe-area-inset-bottom, 0));
        z-index: 20;
        box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.08);
        padding: 0.65rem 0.75rem;
        font-size: 0.85rem;
    }

    .report-totals .fw-bold {
        font-size: 0.95rem;
    }

    .report-ledger-card {
        margin-bottom: 0.5rem;
    }

    .report-hero-value {
        font-size: 1.65rem;
    }

    .report-section-head h2 {
        font-size: 1.2rem;
    }

    .report-kpi-value {
        font-size: 1.05rem;
    }

    .report-section-nav .report-tabs {
        margin-bottom: 0.15rem;
    }
}

.report-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--shop-brand);
    margin: 0;
}

.report-section-head {
    margin-bottom: 1rem;
}

.report-section-head h2 {
    font-size: 1.45rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    margin: 0 0 0.35rem;
}

.report-section-head p {
    color: #5c636a;
    margin: 0;
    max-width: 42rem;
    line-height: 1.45;
}

.report-section-nav {
    position: sticky;
    top: 0;
    z-index: 15;
    background: #f8f9fa;
    padding: 0.35rem 0 0.5rem;
    margin-inline: -0.15rem;
}

.report-hero {
    border-radius: 1rem;
    padding: 1.15rem 1.2rem;
    color: #fff;
    box-shadow: 0 10px 28px rgba(33, 37, 41, 0.12);
}

.report-hero-up {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
}

.report-hero-down {
    background: linear-gradient(135deg, #1E5A9A 0%, #0F2F52 100%);
}

.report-hero-flat {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
}

.report-hero-kicker {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
    font-weight: 700;
}

.report-hero-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0.2rem 0 0.35rem;
}

.report-hero-value span {
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.85;
}

.report-hero-text {
    font-size: 0.95rem;
    opacity: 0.95;
    max-width: 38rem;
}

.report-kpi {
    background: #fff;
    border: 1px solid #eceff1;
    border-radius: 0.9rem;
    padding: 0.85rem 0.95rem;
    height: 100%;
    box-shadow: 0 6px 16px rgba(33, 37, 41, 0.05);
    border-top: 3px solid #ced4da;
}

.report-kpi-in {
    border-top-color: #198754;
}

.report-kpi-out,
.report-kpi-pay {
    border-top-color: #1E5A9A;
}

.report-kpi-due {
    border-top-color: #fd7e14;
}

.report-kpi-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #6c757d;
    letter-spacing: 0.01em;
}

.report-kpi-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #212529;
    line-height: 1.25;
    margin: 0.15rem 0;
}

.report-kpi-hint {
    font-size: 0.75rem;
    color: #868e96;
}

.report-panel {
    border: 0;
    border-radius: 0.95rem;
}

.report-panel-title {
    font-size: 1rem;
    font-weight: 750;
    margin-bottom: 0.85rem;
}

.report-flow-row {
    margin-bottom: 0.75rem;
}

.report-flow-row:last-child {
    margin-bottom: 0;
}

.report-flow-row span {
    font-size: 0.9rem;
}

.report-bar {
    height: 0.42rem;
    background: #eef1f4;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 0.3rem;
}

.report-bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    min-width: 0;
}

.report-bar-fill.is-in {
    background: #198754;
}

.report-bar-fill.is-out {
    background: #1E5A9A;
}

.report-bar-fill.is-brand {
    background: var(--shop-brand);
}

.report-insight-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.55rem;
}

.report-insight {
    padding: 0.7rem 0.85rem;
    border-radius: 0.7rem;
    font-size: 0.95rem;
    line-height: 1.4;
    background: #f1f3f5;
    border-left: 4px solid #868e96;
}

.report-insight.is-good {
    background: #e8f6ee;
    border-left-color: #198754;
}

.report-insight.is-warn {
    background: #fff4e6;
    border-left-color: #fd7e14;
}

.report-insight.is-info {
    background: #eef4ff;
    border-left-color: #0d6efd;
}

.report-mix-track {
    display: flex;
    height: 0.85rem;
    border-radius: 999px;
    overflow: hidden;
    background: #e9ecef;
}

.report-mix-track .is-cash {
    background: #198754;
}

.report-mix-track .is-credit {
    background: #fd7e14;
}

.report-mix-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 0.7rem;
    font-size: 0.85rem;
    color: #495057;
}

.report-dot {
    display: inline-block;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    margin-right: 0.25rem;
    vertical-align: middle;
}

.report-dot.is-cash {
    background: #198754;
}

.report-dot.is-credit {
    background: #fd7e14;
}

.report-jump {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    background: #fff;
    border: 1px solid #eceff1;
    border-radius: 0.9rem;
    padding: 0.95rem 1rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 16px rgba(33, 37, 41, 0.05);
    min-height: 6.2rem;
}

.report-jump:hover,
.report-jump:focus {
    color: inherit;
    border-color: #f1b0af;
}

.report-jump-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--shop-brand);
}

.report-jump strong {
    font-size: 1.15rem;
}

.report-jump span:last-child {
    color: #6c757d;
    font-size: 0.85rem;
}

.bank-method ul,
.cash-direction ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.bank-method ul {
    grid-template-columns: 1fr 1fr;
}

.bank-method li,
.cash-direction li {
    margin: 0;
}

.bank-method label,
.cash-direction label {
    display: block;
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    padding: 0.7rem 0.85rem;
    background: #fff;
    cursor: pointer;
}

.bank-method input,
.cash-direction input {
    margin-right: 0.45rem;
}

.eth-date-field {
    position: relative;
    width: 100%;
    z-index: 1;
}

.eth-date-field.is-open {
    z-index: 30;
}

.eth-date-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    text-align: start;
    background: #fff;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.eth-date-trigger-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eth-date-trigger-icon {
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1;
}

.eth-date-popover {
    display: none;
    position: fixed;
    z-index: 2000;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 1rem;
    box-shadow: 0 16px 40px rgba(33, 37, 41, 0.18);
    padding: 0.75rem;
}

.eth-date-popover.is-open {
    display: block;
}

.eth-date-popover-head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
}

.eth-date-head-fields {
    display: flex;
    gap: 0.35rem;
    flex: 1;
    min-width: 0;
}

.eth-date-head-fields .form-select {
    width: auto;
    min-width: 0;
    flex: 1;
    padding-left: 0.4rem;
    padding-right: 1.4rem;
}

.eth-date-nav {
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #dee2e6;
    border-radius: 0.6rem;
    background: #fff;
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.eth-date-weekdays,
.eth-date-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.15rem;
    text-align: center;
}

.eth-date-weekdays {
    margin-bottom: 0.25rem;
    color: #6c757d;
    font-size: 0.72rem;
    font-weight: 700;
}

.eth-date-day {
    min-height: 2.15rem;
    border: 0;
    border-radius: 0.55rem;
    background: transparent;
    font-weight: 700;
}

.eth-date-day:disabled {
    visibility: hidden;
}

.eth-date-day.is-today {
    box-shadow: inset 0 0 0 1.5px #1E5A9A;
}

.eth-date-day.is-selected,
.eth-date-day.is-selected.is-today {
    background: #1E5A9A;
    color: #fff;
    box-shadow: none;
}

.eth-date-popover-foot {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.eth-date-today {
    border: 0;
    background: transparent;
    color: #1E5A9A;
    font-weight: 700;
    padding: 0.25rem 0.35rem;
}

.customer-search-bar {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eceff1;
    background: #f8f9fa;
}

.customer-search-bar .form-control,
.customer-search-card .form-control {
    min-width: 0;
}

.customer-search-card {
    position: sticky;
    top: 3.6rem;
    z-index: 20;
}

@media (max-width: 991.98px) {
    .customer-search-card {
        top: 3.25rem;
    }

    #pos-customer-select {
        min-height: 12rem;
    }
}

.sale-item-line {
    line-height: 1.35;
    white-space: normal;
}

.sale-item-line + .sale-item-line {
    margin-top: 0.15rem;
}

