@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@400;500;600;700;800&display=swap');

:root {
    --kc-dark: #111827;
    --kc-deep: #0f172a;
    --kc-accent: #f59e0b;
    --kc-soft: #f8fafc;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, .12), transparent 320px),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    color: #111827;
    font-family: "Noto Kufi Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}

.app-navbar {
    position: relative;
    background: linear-gradient(115deg, #0b1324 0%, #16233b 58%, #1d3048 100%);
    --bs-navbar-padding-y: .8rem;
    min-height: 76px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .18) !important;
    z-index: 1030;
}

.app-navbar::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, transparent, var(--kc-accent), transparent);
    opacity: .85;
}

.kc-navbar-simple {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.kc-navbar-brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    margin: 0;
    font-weight: 800;
    color: #fff;
    letter-spacing: .01em;
}

.kc-navbar-brand:hover,
.kc-navbar-brand:focus {
    color: #fff;
}

.kc-navbar-brand i {
    flex: 0 0 auto;
    font-size: 1.4rem;
}

.navbar-brand-text {
    max-width: min(34vw, 320px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kc-navbar-actions {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .75rem;
}

.kc-company-form {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .45rem;
}

.kc-company-current {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: .65rem;
    color: #fbbf24;
    background: rgba(255, 255, 255, .07);
}

.main-shell {
    min-height: calc(100vh - 56px);
}

.company-switch {
    width: clamp(180px, 24vw, 340px);
    height: 36px;
    min-width: 0;
    padding-right: 2.25rem;
    padding-left: .8rem;
    color: #172033;
    font-size: .83rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: .65rem;
    background-color: #f8fafc;
    box-shadow: 0 3px 10px rgba(2, 8, 23, .12);
}

.company-switch:hover {
    background-color: #fff;
}

.company-switch:focus,
.kc-user-profile-link:focus-visible,
.kc-logout-link:focus-visible {
    outline: 3px solid rgba(251, 191, 36, .42);
    outline-offset: 2px;
}

.kc-user-pill {
    min-width: 0;
    max-width: 270px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: 0 .65rem 0 .8rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: .65rem;
    background: rgba(255, 255, 255, .07);
    box-shadow: 0 3px 10px rgba(2, 8, 23, .1);
}

.kc-user-pill i,
.kc-user-profile-link i {
    flex: 0 0 auto;
}

.kc-user-pill span,
.kc-user-profile-link span {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kc-user-profile-link {
    min-width: 0;
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #fff;
    text-decoration: none;
}

.kc-user-profile-link:hover,
.kc-user-profile-link:focus {
    color: #fff;
}

.kc-user-profile-link i {
    color: #fbbf24;
    font-size: 1.05rem;
}

.kc-logout-link {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fda4af;
    text-decoration: none;
    border-radius: .5rem;
}

.kc-logout-link:hover,
.kc-logout-link:focus {
    color: #fff;
    background: rgba(239, 68, 68, .35);
}

.kc-card {
    border: 0;
    border-radius: 1.2rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}

.kc-metric {
    border-radius: 1.2rem;
    border: 1px solid rgba(15, 23, 42, .06);
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.kc-metric .icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, .14);
    color: #92400e;
}

.top-products-card {
    overflow: hidden;
    border: 1px solid #2c3740;
    border-radius: 1.1rem;
    color: #f8fafc;
    background: linear-gradient(145deg, #11191f, #0d1419);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .16);
}

.top-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem .8rem;
    border-bottom: 1px solid #2c3740;
}

.top-products-header a {
    color: #facc15;
    font-weight: 700;
    text-decoration: none;
}

.top-products-header a:hover,
.top-products-header a:focus {
    color: #fde68a;
    text-decoration: underline;
}

.top-products-table {
    --bs-table-bg: transparent;
    --bs-table-color: #e5e7eb;
    --bs-table-border-color: #263139;
}

.top-products-table th,
.top-products-table td {
    padding: .72rem 1.25rem;
    white-space: nowrap;
}

.top-products-table thead th {
    color: #cbd5e1;
    font-weight: 600;
}

.top-products-table tbody tr:last-child td {
    border-bottom: 0;
}

.top-products-rank {
    width: 4rem;
    color: #f8fafc;
    text-align: center;
}

.top-product-name {
    display: flex;
    align-items: center;
    gap: .8rem;
    min-width: 14rem;
}

.top-product-name img,
.top-product-placeholder {
    width: 2.2rem;
    height: 2.2rem;
    flex: 0 0 2.2rem;
    border-radius: .45rem;
    object-fit: contain;
    background: #f8fafc;
}

.top-product-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.1rem;
}

.low-stock-card {
    min-height: 250px;
}

.low-stock-table .top-product-name {
    min-width: 16rem;
}

.low-stock-critical {
    color: #f87171 !important;
}

.low-stock-warning {
    color: #facc15 !important;
}

.dashboard-donut-card {
    min-height: 300px;
    padding: 1.15rem 1.25rem;
    border: 1px solid #2c3740;
    border-radius: 1.1rem;
    color: #f8fafc;
    background: linear-gradient(145deg, #11191f, #0d1419);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .16);
}

.dashboard-donut-layout {
    min-height: 245px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1.4rem, 5vw, 3.5rem);
    padding-top: 1rem;
}

.dashboard-donut {
    width: 11rem;
    height: 11rem;
    flex: 0 0 11rem;
    position: relative;
    border-radius: 50%;
}

.dashboard-donut::before {
    content: "";
    position: absolute;
    inset: 24%;
    border-radius: 50%;
    background: #10181e;
}

.dashboard-donut-center {
    position: absolute;
    inset: 24%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.dashboard-donut-center strong {
    font-size: 1.7rem;
    line-height: 1.1;
}

.dashboard-donut-center span {
    color: #cbd5e1;
    font-size: .9rem;
}

.dashboard-donut-legend {
    min-width: 12rem;
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

.dashboard-donut-legend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #e5e7eb;
}

.dashboard-donut-legend-row span {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}

.dashboard-donut-legend-row i {
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
    display: inline-block;
    border-radius: 50%;
}

.dashboard-donut-legend-row b {
    color: #f8fafc;
}

@media (max-width: 576px) {
    .dashboard-donut-layout {
        gap: 1rem;
    }

    .dashboard-donut {
        width: 8.5rem;
        height: 8.5rem;
        flex-basis: 8.5rem;
    }

    .dashboard-donut-legend {
        min-width: 0;
        flex: 1 1 auto;
        gap: .65rem;
        font-size: .85rem;
    }
}

.sales-services-chart {
    overflow: hidden;
    border: 1px solid #2c3740;
    border-radius: 1.1rem;
    color: #f8fafc;
    background: linear-gradient(145deg, #11191f, #0d1419);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .16);
}

.sales-services-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem .8rem;
}

.sales-services-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    color: #e5e7eb;
    font-size: .9rem;
}

.sales-services-legend span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.sales-legend-swatch,
.services-legend-swatch {
    width: 1.8rem;
    height: 1rem;
    display: inline-block;
    border-radius: .2rem;
}

.sales-legend-swatch {
    background: #fbbf24;
}

.services-legend-swatch {
    background: #9ca3af;
}

.sales-services-plot {
    position: relative;
    height: 300px;
    margin: 0 1rem .8rem;
    padding: 1rem 4.8rem 2.7rem 1rem;
    border-bottom: 1px solid #475569;
}

.sales-services-axis {
    position: absolute;
    top: 1rem;
    bottom: 2.7rem;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #d1d5db;
    font-size: .78rem;
}

.sales-services-bars {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: stretch;
    background: repeating-linear-gradient(
        to bottom,
        rgba(148, 163, 184, .18) 0 1px,
        transparent 1px calc(25% - 1px),
        rgba(148, 163, 184, .18) calc(25% - 1px) 25%
    );
}

.sales-services-day {
    min-width: 0;
    flex: 1 1 0;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sales-bar-wrap {
    width: min(3rem, 62%);
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.sales-bar {
    width: 100%;
    border-radius: .3rem .3rem 0 0;
    background: linear-gradient(180deg, #fcd34d, #fbbf24);
    box-shadow: 0 0 14px rgba(251, 191, 36, .22);
}

.sales-services-date {
    position: absolute;
    right: 50%;
    bottom: -2.1rem;
    transform: translateX(50%);
    color: #e5e7eb;
    font-size: .82rem;
    white-space: nowrap;
}

.services-line {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.services-line polyline {
    fill: none;
    stroke: #f3f4f6;
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
}

.services-line-point {
    position: absolute;
    z-index: 3;
    right: 50%;
    width: .5rem;
    height: .5rem;
    border: 1px solid #6b7280;
    border-radius: 50%;
    background: #f3f4f6;
    transform: translate(50%, 50%);
    pointer-events: none;
}

@media (max-width: 576px) {
    .sales-services-chart-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .sales-services-plot {
        height: 250px;
        margin-inline: .5rem;
        padding-right: 3.8rem;
    }

    .sales-services-date {
        font-size: .7rem;
    }
}

.odoo-launcher {
    padding: 1.35rem;
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 14px 35px rgba(15, 23, 42, .07);
    backdrop-filter: blur(10px);
}

.odoo-launcher-sections {
    display: grid;
    gap: 1rem;
}

.odoo-app-section {
    padding: 1rem;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 1rem;
    background: rgba(248, 250, 252, .9);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.odoo-app-section + .odoo-app-section {
    margin-top: 0;
}

.odoo-app-section-title {
    margin-bottom: 1rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    color: #334155;
    font-weight: 800;
    font-size: .95rem;
}

.odoo-app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 1.05rem .85rem;
}

.odoo-app-tile {
    min-width: 0;
    min-height: 138px;
    padding: .9rem .6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .7rem;
    color: #1f2937;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 1rem;
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.odoo-app-tile:hover,
.odoo-app-tile:focus-visible {
    color: #111827;
    background: #fff;
    border-color: rgba(15, 23, 42, .06);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .1);
    transform: translateY(-4px);
    outline: 0;
}

.odoo-app-icon {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 84px;
    border-radius: 22px;
    color: #fff;
    font-size: 2.35rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 8px 16px rgba(15,23,42,.16);
}

.odoo-app-copy {
    min-width: 0;
    display: grid;
    gap: .15rem;
}

.odoo-app-copy strong,
.odoo-app-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
}

.odoo-app-copy strong { font-size: .92rem; }
.odoo-app-copy small { color: #6b7280; font-size: .76rem; }
.odoo-app-purple { background: linear-gradient(145deg, #875a7b, #6f4566); }
.odoo-app-blue { background: linear-gradient(145deg, #3b82f6, #2563eb); }
.odoo-app-teal { background: linear-gradient(145deg, #14b8a6, #0f766e); }
.odoo-app-orange { background: linear-gradient(145deg, #f59e0b, #d97706); }
.odoo-app-indigo { background: linear-gradient(145deg, #6366f1, #4338ca); }
.odoo-app-red { background: linear-gradient(145deg, #ef4444, #b91c1c); }
.odoo-app-cyan { background: linear-gradient(145deg, #06b6d4, #0e7490); }
.odoo-app-green { background: linear-gradient(145deg, #22c55e, #15803d); }
.odoo-app-navy { background: linear-gradient(145deg, #334155, #0f172a); }
.odoo-app-gold { background: linear-gradient(145deg, #eab308, #a16207); }
.odoo-app-slate { background: linear-gradient(145deg, #64748b, #334155); }
.odoo-app-pink { background: linear-gradient(145deg, #ec4899, #be185d); }

.dashboard-quick-actions {
    padding: 1rem;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.dashboard-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: .75rem;
}

.dashboard-quick-button {
    min-width: 0;
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem;
    color: #172033;
    text-decoration: none;
    border: 1px solid rgba(15, 23, 42, .07);
    border-radius: .75rem;
    background: #f8fafc;
    transition: transform .16s ease, border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.dashboard-quick-button:hover,
.dashboard-quick-button:focus-visible {
    color: #0f172a;
    border-color: rgba(37, 99, 235, .18);
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .09);
    transform: translateY(-2px);
    outline: 0;
}

.dashboard-quick-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    border-radius: .75rem;
    color: #fff;
    font-size: 1.35rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 7px 14px rgba(15,23,42,.14);
}

.dashboard-quick-copy {
    min-width: 0;
    display: grid;
    gap: .1rem;
}

.dashboard-quick-copy strong,
.dashboard-quick-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-quick-copy strong {
    font-size: .9rem;
    font-weight: 800;
}

.dashboard-quick-copy small {
    color: #64748b;
    font-size: .76rem;
}

.table thead th {
    background: #f3f4f6;
    color: #374151;
    white-space: nowrap;
}

.badge-soft {
    background: #fef3c7;
    color: #92400e;
}

.pos-screen {
    min-height: calc(100vh - 112px);
    display: grid;
    gap: 1rem;
    padding-top: 72px;
    padding-bottom: 150px;
}

.pos-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 72px;
    padding: .75rem 1rem;
    color: #fff;
    background: linear-gradient(135deg, #111827, #334155);
    border-radius: 0;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .16);
}

.pos-topbar h1,
.pos-section-title h2,
.pos-cart-head h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
}

.pos-muted {
    color: #64748b;
    font-size: .9rem;
}

.pos-topbar .pos-muted {
    color: rgba(255, 255, 255, .72);
}

.pos-topbar-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.pos-touch-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border-radius: .6rem;
}

.pos-layout {
    min-height: calc(100vh - 120px);
    display: block;
    padding-left: 436px;
    padding-bottom: 1rem;
}

.pos-products-panel,
.pos-cart-panel,
.pos-recent,
.pos-empty-state {
    min-width: 0;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: .8rem;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.pos-products-panel {
    min-height: calc(100vh - 120px);
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    padding: .85rem;
}

.pos-searchbar {
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: 0 1rem;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: .7rem;
    background: #f8fafc;
}

.pos-searchbar i {
    color: #64748b;
    font-size: 1.15rem;
}

.pos-searchbar input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 1.05rem;
}

.pos-category-bar {
    min-width: 0;
    display: flex;
    gap: .5rem;
    margin-top: .75rem;
    overflow-x: auto;
    padding: .1rem .05rem .25rem;
    scrollbar-width: thin;
}

.pos-category-chip {
    min-height: 44px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: 0 .9rem;
    color: #334155;
    font-weight: 800;
    white-space: nowrap;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: .65rem;
    background: #fff;
    touch-action: manipulation;
}

.pos-category-chip span {
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 .35rem;
    color: #64748b;
    font-size: .78rem;
    border-radius: 999px;
    background: #f1f5f9;
}

.pos-category-chip.active {
    color: #fff;
    border-color: #111827;
    background: #111827;
}

.pos-category-chip.active span {
    color: #111827;
    background: #fbbf24;
}

.pos-product-grid {
    min-height: 0;
    margin-top: .85rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
    grid-auto-rows: minmax(268px, auto);
    gap: .75rem;
    overflow: auto;
    padding: .1rem .1rem .4rem;
}

.pos-product-tile {
    min-width: 0;
    padding: .85rem;
    display: grid;
    grid-template-rows: auto 126px auto auto;
    gap: .45rem;
    text-align: center;
    color: #111827;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: .75rem;
    background: linear-gradient(180deg, #fff, #f8fafc);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
    touch-action: manipulation;
}

.pos-product-tile:hover,
.pos-product-tile:focus {
    border-color: rgba(245, 158, 11, .55);
    box-shadow: 0 12px 24px rgba(15, 23, 42, .12);
    outline: 0;
}

.pos-product-name {
    min-width: 0;
    min-height: 64px;
    font-weight: 800;
    line-height: 1.35;
    text-align: start;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.pos-product-image {
    width: 100%;
    height: 126px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: .65rem;
    background: #f8fafc;
}

.pos-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pos-product-image i {
    color: #94a3b8;
    font-size: 2rem;
}

.pos-product-barcode {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    color: #64748b;
    font-size: .85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pos-product-price {
    color: #0f766e;
    font-weight: 900;
    font-size: 1.02rem;
}

.pos-product-code,
.pos-product-meta {
    display: none;
}

.pos-cart-panel {
    position: fixed;
    top: 88px;
    bottom: 150px;
    left: 1rem;
    z-index: 1020;
    width: min(420px, calc(100vw - 2rem));
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    overflow: hidden;
}

.pos-cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .9rem;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.pos-cart-head span {
    color: #64748b;
    font-size: .86rem;
}

.pos-customer-row {
    padding: .9rem;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.pos-cart-items {
    min-height: 0;
    overflow: auto;
    padding: .75rem;
    overscroll-behavior: contain;
}

.pos-cart-empty {
    min-height: 190px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: .7rem;
    color: #94a3b8;
    text-align: center;
}

.pos-cart-empty i {
    font-size: 2rem;
}

.pos-cart-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .75rem;
    padding: .8rem 2.6rem .8rem .8rem;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: .75rem;
    background: #fff;
}

.pos-cart-item + .pos-cart-item {
    margin-top: .65rem;
}

.pos-cart-main {
    min-width: 0;
    display: grid;
    gap: .2rem;
}

.pos-cart-main strong,
.pos-cart-main small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pos-cart-main small {
    color: #64748b;
}

.pos-cart-controls {
    display: inline-grid;
    grid-template-columns: 44px 76px 44px;
    align-items: center;
    gap: .3rem;
}

.pos-cart-controls-single {
    grid-template-columns: minmax(96px, 132px);
    justify-content: end;
}

.pos-qty-btn,
.pos-remove-btn {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: .6rem;
    background: #f8fafc;
    color: #111827;
}

.pos-qty-input,
.pos-discount-control input {
    min-height: 44px;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: .6rem;
    text-align: center;
}

.pos-discount-control {
    display: flex;
    align-items: center;
    gap: .45rem;
    grid-column: 1 / -1;
}

.pos-discount-control label {
    color: #64748b;
    font-size: .82rem;
}

.pos-discount-control input {
    width: 120px;
}

.pos-line-total {
    grid-column: 1 / -1;
    color: #0f766e;
    font-size: 1.05rem;
    font-weight: 800;
}

.pos-remove-btn {
    position: absolute;
    top: .75rem;
    right: .75rem;
    min-width: 36px;
    min-height: 36px;
    color: #dc2626;
}

.pos-checkout {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    width: 100%;
    max-height: 150px;
    overflow: auto;
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(220px, 1fr) minmax(150px, 190px) minmax(180px, 240px) minmax(170px, 210px);
    align-items: end;
    gap: .8rem;
    padding: .85rem 1rem;
    border: 1px solid rgba(15, 23, 42, .08);
    border-top: 1px solid rgba(15, 23, 42, .08);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    background: #f8fafc;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .12);
}

.pos-pay-row {
    display: grid;
    gap: .35rem;
}

.pos-pay-row label {
    color: #475569;
    font-weight: 700;
}

.pos-total-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .85rem 1rem;
    color: #fff;
    border-radius: .75rem;
    background: #111827;
}

.pos-total-box span {
    color: rgba(255, 255, 255, .7);
}

.pos-total-box strong {
    font-size: clamp(1.0rem, 3vw, 1rem);
}

.pos-pay-button {
    min-height: 50px;
    min-width: 50px;
    font-size: 1.0rem;
    font-weight: 600;
    border-radius: .75rem;
}

.pos-footer textarea {
    min-height: 58px;
    max-height: 78px;
    resize: none;
}

.service-touch-layout {
    padding-top: 76px;
}

.service-picker-panel {
    position: fixed;
    top: 168px;
    right: 1rem;
    bottom: 150px;
    left: 436px;
    z-index: 1015;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    overflow: hidden;
}

.service-mode-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
}

.service-picker-panel > .service-mode-tabs {
    display: none;
}

.pos-topbar-actions .service-mode-tabs {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(380px, 36vw);
    transform: translate(-50%, -50%);
}

.service-mode-tab {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: .7rem;
    background: #f8fafc;
    color: #334155;
    padding: .45rem .75rem;
    font-size: .95rem;
    font-weight: 800;
    touch-action: manipulation;
}

.service-mode-tab.active {
    border-color: rgba(15, 118, 110, .45);
    background: #0f766e;
    color: #fff;
}

.service-searchbar {
    position: fixed;
    top: 88px;
    right: 1rem;
    left: 436px;
    z-index: 1025;
    min-height: 64px;
    margin-top: 0;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}

.service-tile-grid {
    flex: 1 1 0;
    min-height: 0;
    height: auto;
    margin-top: 0;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    grid-auto-rows: minmax(158px, auto);
    align-content: start;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.service-touch-tile {
    grid-template-rows: auto 1fr auto auto;
}

.service-touch-tile[data-kind="product"] {
    min-height: 268px;
    grid-template-rows: minmax(54px, auto) 126px auto auto;
    align-content: start;
}

.service-tile-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .65rem;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 1.1rem;
}

.service-order-panel {
    top: 88px;
    bottom: 150px;
    grid-template-rows: auto auto minmax(220px, 1fr) auto;
}

.service-touch-details {
    display: grid;
    gap: .75rem;
    padding: .9rem;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    background: #fff;
}

.service-detail-grid,
.service-extra-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.service-touch-details .form-label {
    margin-bottom: .25rem;
    color: #475569;
    font-weight: 800;
}

.service-big-input {
    min-height: 58px;
    font-size: 1.08rem;
}

.service-more-toggle {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: .7rem;
    background: #f8fafc;
    color: #334155;
    font-weight: 800;
}

.service-extra-grid {
    margin-top: .75rem;
}

.product-combobox {
    position: relative;
    min-width: 320px;
}

.product-dropdown-toggle {
    min-height: 38px;
}

.product-dropdown-menu {
    max-height: 360px;
    overflow: hidden;
}

.product-dropdown-results {
    max-height: 292px;
    overflow: auto;
}

.inventory-adjustment-table-wrap {
    overflow: visible;
}

#requestItemsTable,
#requestItemsTable tbody,
#requestItemsTable tr,
#requestItemsTable td {
    overflow: visible;
}

.purchase-request-table-wrap {
    overflow: visible;
}

.purchase-invoice-table-wrap {
    overflow: visible;
}

.purchase-invoice-dark-theme {
    color-scheme: dark;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, .12), transparent 360px),
        linear-gradient(180deg, #050816 0%, #0b1020 48%, #111827 100%);
    color: #e5e7eb;
}

.purchase-invoice-dark-theme .main-shell {
    background: transparent;
}

.purchase-invoice-dark-theme h1,
.purchase-invoice-dark-theme h2,
.purchase-invoice-dark-theme .form-label,
.purchase-invoice-dark-theme strong,
.purchase-invoice-dark-theme .fw-bold {
    color: #f8fafc;
}

.purchase-invoice-dark-theme .text-muted,
.purchase-invoice-dark-theme .form-text,
.purchase-invoice-dark-theme .small.text-muted {
    color: #94a3b8 !important;
}

.purchase-invoice-dark-theme .card,
.purchase-invoice-dark-theme .modal-content {
    background: rgba(15, 23, 42, .96) !important;
    color: #e5e7eb !important;
    border: 1px solid rgba(148, 163, 184, .22) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .32) !important;
}

.purchase-invoice-dark-theme .card-header,
.purchase-invoice-dark-theme .card-body,
.purchase-invoice-dark-theme .card-footer,
.purchase-invoice-dark-theme .modal-header,
.purchase-invoice-dark-theme .modal-body,
.purchase-invoice-dark-theme .modal-footer,
.purchase-invoice-dark-theme .bg-white,
.purchase-invoice-dark-theme .bg-light {
    background: transparent !important;
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, .2);
}

.purchase-invoice-dark-theme .border {
    border-color: rgba(148, 163, 184, .24) !important;
}

.purchase-invoice-dark-theme .form-control,
.purchase-invoice-dark-theme .form-select,
.purchase-invoice-dark-theme .product-dropdown-toggle {
    background-color: #111827;
    color: #f8fafc;
    border-color: rgba(148, 163, 184, .34);
}

.purchase-invoice-dark-theme .form-select,
.purchase-invoice-dark-theme .product-dropdown-toggle {
    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23e5e7eb' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.purchase-invoice-dark-theme .form-control::placeholder {
    color: #64748b;
}

.purchase-invoice-dark-theme .form-control:focus,
.purchase-invoice-dark-theme .form-select:focus,
.purchase-invoice-dark-theme .product-dropdown-toggle:focus {
    background-color: #0f172a;
    color: #fff;
    border-color: #f59e0b;
    box-shadow: 0 0 0 .25rem rgba(245, 158, 11, .2);
}

.purchase-invoice-dark-theme .input-group .btn {
    border-color: rgba(148, 163, 184, .34);
}

.purchase-invoice-dark-theme .table {
    --bs-table-bg: rgba(15, 23, 42, .78);
    --bs-table-color: #e5e7eb;
    --bs-table-border-color: rgba(148, 163, 184, .22);
    --bs-table-striped-bg: rgba(30, 41, 59, .82);
    --bs-table-hover-bg: rgba(51, 65, 85, .62);
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, .22);
}

.purchase-invoice-dark-theme .table thead th,
.purchase-invoice-dark-theme .table-light th {
    background: #0b1220 !important;
    color: #f8fafc !important;
    border-color: rgba(148, 163, 184, .24) !important;
}

.purchase-invoice-dark-theme .table tbody td {
    border-color: rgba(148, 163, 184, .2);
}

.purchase-invoice-dark-theme #itemsTable tbody td,
.purchase-invoice-dark-theme #itemsTable tfoot th,
.purchase-invoice-dark-theme #purchaseReturnItemsTable tbody td,
.purchase-invoice-dark-theme #purchaseReturnItemsTable tfoot th {
    background: rgba(15, 23, 42, .88);
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, .22);
}

.purchase-invoice-dark-theme .table-danger {
    --bs-table-bg: rgba(127, 29, 29, .48);
    --bs-table-color: #fee2e2;
    --bs-table-border-color: rgba(248, 113, 113, .24);
    --bs-table-hover-bg: rgba(153, 27, 27, .56);
}

.purchase-invoice-dark-theme .table-warning {
    --bs-table-bg: rgba(120, 53, 15, .42);
    --bs-table-color: #ffedd5;
    --bs-table-border-color: rgba(251, 191, 36, .24);
    --bs-table-hover-bg: rgba(146, 64, 14, .5);
}

.purchase-invoice-dark-theme .table-info {
    --bs-table-bg: rgba(8, 47, 73, .44);
    --bs-table-color: #e0f2fe;
    --bs-table-border-color: rgba(56, 189, 248, .24);
    --bs-table-hover-bg: rgba(7, 89, 133, .5);
}

.purchase-invoice-dark-theme #itemsTable tfoot,
.purchase-invoice-dark-theme #itemsTable tfoot th,
.purchase-invoice-dark-theme #purchaseReturnItemsTable tfoot,
.purchase-invoice-dark-theme #purchaseReturnItemsTable tfoot th {
    --bs-table-bg: #111827;
    --bs-table-color: #f8fafc;
}

.purchase-invoice-dark-theme .line-total,
.purchase-invoice-dark-theme #grandTotal {
    color: #fbbf24;
}

.purchase-invoice-dark-theme a:not(.btn) {
    color: #93c5fd;
}

.purchase-invoice-dark-theme a:not(.btn):hover {
    color: #bfdbfe;
}

.purchase-invoice-dark-theme .dropdown-menu {
    background: #0f172a;
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, .24);
    box-shadow: 0 20px 48px rgba(0, 0, 0, .38);
}

.purchase-invoice-dark-theme .dropdown-item,
.purchase-invoice-dark-theme .dropdown-item-text {
    color: #e5e7eb;
}

.purchase-invoice-dark-theme .dropdown-item:hover,
.purchase-invoice-dark-theme .dropdown-item:focus {
    background: rgba(245, 158, 11, .14);
    color: #fff;
}

.purchase-invoice-dark-theme .btn-outline-secondary,
.purchase-invoice-dark-theme .btn-outline-primary,
.purchase-invoice-dark-theme .btn-outline-danger {
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, .38);
}

.purchase-invoice-dark-theme .btn-outline-secondary:hover,
.purchase-invoice-dark-theme .btn-outline-primary:hover {
    background: rgba(245, 158, 11, .16);
    color: #fff;
    border-color: #f59e0b;
}

.purchase-invoice-dark-theme .btn-light {
    background: #1f2937;
    color: #f8fafc;
    border-color: rgba(148, 163, 184, .28);
}

.purchase-invoice-dark-theme .alert-warning {
    background: rgba(245, 158, 11, .14);
    color: #fde68a;
    border-color: rgba(245, 158, 11, .28);
}

.purchase-invoice-dark-theme .alert-success {
    background: rgba(22, 163, 74, .14);
    color: #bbf7d0;
    border-color: rgba(74, 222, 128, .28);
}

.purchase-invoice-dark-theme .alert-info {
    background: rgba(14, 165, 233, .14);
    color: #bae6fd;
    border-color: rgba(56, 189, 248, .28);
}

.purchase-invoice-dark-theme .alert-danger {
    background: rgba(220, 38, 38, .16);
    color: #fecaca;
    border-color: rgba(248, 113, 113, .32);
}

.purchase-invoice-dark-theme .alert-light {
    background: rgba(30, 41, 59, .72);
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, .24) !important;
}

.purchase-invoice-dark-theme .modal-header .btn-close {
    filter: invert(1) grayscale(1) brightness(1.7);
}

.sales-invoice-dark-theme .product-dropdown-menu {
    background: #0f172a;
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, .24);
    box-shadow: 0 20px 48px rgba(0, 0, 0, .38);
}

.sales-invoice-dark-theme .product-dropdown-item {
    color: #e5e7eb;
}

.sales-invoice-dark-theme .product-dropdown-item:hover,
.sales-invoice-dark-theme .product-dropdown-item:focus {
    background: rgba(245, 158, 11, .14);
    color: #fff;
}

.sales-invoice-dark-theme .product-dropdown-empty {
    color: #94a3b8;
}

.pos-dark-theme .pos-session-money-grid > div {
    background: rgba(15, 23, 42, .72);
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, .24);
}

.pos-dark-theme #closeDifferenceDisplay.bg-light {
    background: #111827 !important;
    color: #f8fafc;
}

.pos-dark-theme .border-bottom,
.pos-dark-theme .border-top {
    border-color: rgba(148, 163, 184, .24) !important;
}

.inventory-dark-theme .metric-card,
.inventory-dark-theme .text-body {
    color: #e5e7eb !important;
}

.inventory-dark-theme .border-dark,
.inventory-dark-theme .border-info,
.inventory-dark-theme .border-danger,
.inventory-dark-theme .border-warning {
    border-color: rgba(148, 163, 184, .32) !important;
}

.inventory-dark-theme img.bg-white,
.inventory-dark-theme .bg-white img {
    background-color: #fff !important;
}

.pos-register-dark-theme .pos-screen {
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, .12), transparent 360px),
        linear-gradient(180deg, #050816 0%, #0b1020 48%, #111827 100%);
}

.pos-register-dark-theme .pos-products-panel,
.pos-register-dark-theme .pos-cart-panel,
.pos-register-dark-theme .pos-empty-state {
    background: rgba(15, 23, 42, .96);
    border-color: rgba(148, 163, 184, .22);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .32);
}

.pos-register-dark-theme .pos-searchbar {
    background: #111827;
    border-color: rgba(148, 163, 184, .28);
}

.pos-register-dark-theme .pos-searchbar i,
.pos-register-dark-theme .pos-product-barcode,
.pos-register-dark-theme .pos-cart-head span,
.pos-register-dark-theme .pos-cart-main small,
.pos-register-dark-theme .pos-discount-control label,
.pos-register-dark-theme .pos-pay-row label {
    color: #94a3b8;
}

.pos-register-dark-theme .pos-searchbar input {
    color: #f8fafc;
}

.pos-register-dark-theme .pos-searchbar input::placeholder {
    color: #64748b;
}

.pos-register-dark-theme .pos-category-chip {
    background: #111827;
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, .26);
}

.pos-register-dark-theme .pos-category-chip span {
    background: rgba(148, 163, 184, .18);
    color: #cbd5e1;
}

.pos-register-dark-theme .pos-category-chip.active {
    background: #f59e0b;
    color: #111827;
    border-color: #fbbf24;
}

.pos-register-dark-theme .pos-category-chip.active span {
    background: #111827;
    color: #fbbf24;
}

.pos-register-dark-theme .pos-product-tile,
.pos-register-dark-theme .pos-cart-item {
    background: linear-gradient(180deg, #111827, #0f172a);
    color: #f8fafc;
    border-color: rgba(148, 163, 184, .24);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}

.pos-register-dark-theme .pos-product-tile:hover,
.pos-register-dark-theme .pos-product-tile:focus {
    border-color: rgba(245, 158, 11, .7);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .34);
}

.pos-register-dark-theme .pos-product-image {
    background: #0b1220;
    border-color: rgba(148, 163, 184, .2);
}

.pos-register-dark-theme .pos-product-price,
.pos-register-dark-theme .pos-line-total {
    color: #fbbf24;
}

.pos-register-dark-theme .pos-cart-head,
.pos-register-dark-theme .pos-customer-row {
    border-color: rgba(148, 163, 184, .2);
}

.pos-register-dark-theme .pos-qty-btn,
.pos-register-dark-theme .pos-remove-btn,
.pos-register-dark-theme .pos-qty-input,
.pos-register-dark-theme .pos-discount-control input {
    background: #111827;
    color: #f8fafc;
    border-color: rgba(148, 163, 184, .28);
}

.pos-register-dark-theme .pos-remove-btn {
    color: #fca5a5;
}

.pos-register-dark-theme .pos-checkout {
    background: #0b1220;
    border-color: rgba(148, 163, 184, .24);
    box-shadow: 0 -18px 44px rgba(0, 0, 0, .34);
}

.pos-register-dark-theme .pos-total-box {
    background: linear-gradient(135deg, #111827, #1f2937);
    border: 1px solid rgba(245, 158, 11, .34);
}

.pos-register-dark-theme .pos-empty-state {
    color: #cbd5e1;
}

.pos-register-dark-theme .pos-empty-state i,
.pos-register-dark-theme .pos-empty-state h2 {
    color: #f8fafc;
}

@media print {
    .pos-dark-theme .pos-cash-receipt,
    .pos-dark-theme .pos-cash-receipt .table {
        color-scheme: light;
        background: #fff !important;
        color: #111 !important;
    }
}

.sales-invoice-table-wrap {
    overflow-x: auto;
}

.sales-invoice-items-table {
    width: 100%;
    min-width: 980px;
    table-layout: fixed;
}

.sales-invoice-col-product {
    width: 34%;
}

.sales-invoice-col-quantity {
    width: 9%;
}

.sales-invoice-col-unit {
    width: 11%;
}

.sales-invoice-col-price {
    width: 11%;
}

.sales-invoice-col-total {
    width: 15%;
}

.sales-invoice-col-discount {
    width: 16%;
}

.sales-invoice-col-actions {
    width: 4%;
}

.sales-invoice-items-table .form-control,
.sales-invoice-items-table .form-select {
    width: 100%;
    min-width: 0;
}

.sales-invoice-items-table .discount-type {
    flex: 0 0 64px;
}

.sales-invoice-items-table .input-group {
    width: 100%;
    min-width: 0;
}

.sales-invoice-items-table .input-group > .form-control {
    flex: 1 1 auto;
    width: 1%;
}

#adjustmentLines,
#adjustmentLines tbody,
#adjustmentLines tr,
#adjustmentLines td {
    overflow: visible;
}

#requestItemsTable .product-dropdown-menu,
#itemsTable .product-dropdown-menu,
#adjustmentLines .product-dropdown-menu {
    z-index: 1080;
}

#adjustmentLines .qty-input,
#adjustmentLines .cost-input,
#adjustmentLines .line-value {
    direction: ltr;
    text-align: left;
    font-variant-numeric: tabular-nums;
}

.barcode-scanner-frame {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: .5rem;
    background: #111827;
}

.barcode-scanner-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.barcode-scanner-reader {
    width: 100%;
    height: 100%;
}

.barcode-scanner-reader video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.barcode-scanner-reader > div {
    width: 100% !important;
    height: 100%;
    border: 0 !important;
}

.barcode-scanner-guide {
    position: absolute;
    inset: 32% 10%;
    border: 2px solid rgba(255, 255, 255, .92);
    border-radius: .35rem;
    box-shadow: 0 0 0 999px rgba(17, 24, 39, .24);
    pointer-events: none;
}

.service-notes-field {
    grid-column: 1 / -1;
}

.service-cart-item {
    border-color: rgba(15, 118, 110, .14);
}

.pos-recent {
    padding: .9rem;
}

.pos-section-title {
    margin-bottom: .75rem;
}

.pos-recent-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .6rem;
}

.pos-recent-item {
    min-width: 0;
    display: grid;
    gap: .25rem;
    padding: .75rem;
    color: #111827;
    text-decoration: none;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: .65rem;
    background: #fff;
}

.pos-recent-item:hover,
.pos-recent-item:focus {
    border-color: rgba(245, 158, 11, .45);
}

.pos-empty-state {
    min-height: 420px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: .75rem;
    padding: 2rem;
    text-align: center;
}

.pos-empty-state i {
    color: #f59e0b;
    font-size: 3rem;
}

.pos-empty-state h2 {
    margin: 0;
    font-weight: 800;
}

.pos-empty-state p {
    margin: 0;
    color: #64748b;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    width: 100%;
    max-width: 430px;
    border: 0;
    border-radius: 1.5rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .15);
}

.account-code {
    font-family: Consolas, monospace;
    direction: ltr;
    display: inline-block;
}

.level-1 { padding-right: .25rem; }
.level-2 { padding-right: 1.25rem; }
.level-3 { padding-right: 2.25rem; }
.level-4 { padding-right: 3.25rem; }
.level-5 { padding-right: 4.25rem; }

@media (max-width: 767.98px) {
    .kc-navbar-simple {
        flex-wrap: wrap;
        gap: .65rem;
    }

    .kc-navbar-actions {
        width: 100%;
        justify-content: space-between;
        gap: .6rem;
    }

    .kc-company-form {
        flex: 1 1 auto;
    }

    .company-switch {
        width: 100%;
    }

    .kc-user-pill {
        flex: 0 1 42%;
        justify-content: center;
    }

    .pos-layout {
        grid-template-columns: 1fr;
        padding-left: 0;
        padding-bottom: 230px;
    }

    .service-touch-layout {
        grid-template-columns: 1fr;
        padding-top: 76px;
    }

    .service-searchbar {
        right: 1rem;
        left: 1rem;
    }

    .service-picker-panel {
        position: static;
        min-height: 520px;
    }

    .pos-products-panel {
        min-height: 520px;
    }

    .pos-cart-panel {
        position: static;
        width: auto;
        min-height: 620px;
    }

    .pos-checkout {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 230px;
        overflow: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: end;
    }
}

@media (max-width: 575.98px) {
    .app-navbar {
        --bs-navbar-padding-y: .5rem;
    }

    .navbar-brand-text {
        max-width: calc(100vw - 6.5rem);
        font-size: .95rem;
    }

    .kc-navbar-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .kc-company-form,
    .kc-user-pill {
        width: 100%;
        max-width: none;
    }

    .kc-user-pill {
        justify-content: flex-start;
    }

    .pos-screen {
        gap: .75rem;
        padding-bottom: 315px;
    }

    .pos-topbar {
        align-items: center;
        flex-direction: row;
        border-radius: 0;
    }

    .pos-topbar-actions .btn {
        width: auto;
    }

    .pos-topbar-actions .service-mode-tabs {
        position: static;
        width: min(260px, 52vw);
        transform: none;
    }

    .pos-products-panel,
    .pos-cart-panel,
    .pos-recent,
    .pos-empty-state {
        border-radius: .65rem;
    }

    .pos-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: minmax(252px, auto);
        gap: .55rem;
    }

    .pos-layout {
        padding-bottom: 315px;
    }

    .pos-checkout {
        max-height: 315px;
        grid-template-columns: 1fr;
        gap: .55rem;
        padding: .65rem .75rem;
    }

    .pos-pay-button {
        min-height: 54px;
    }

    .service-tile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: minmax(236px, auto);
    }

    .service-detail-grid,
    .service-extra-grid {
        grid-template-columns: 1fr;
    }

    .pos-product-tile {
        padding: .7rem;
        grid-template-rows: auto 108px auto auto;
    }

    .service-touch-tile[data-kind="product"] {
        min-height: 236px;
        grid-template-rows: minmax(46px, auto) 108px auto auto;
    }

    .pos-product-image {
        height: 108px;
    }

    .pos-cart-item {
        grid-template-columns: 1fr;
        padding: .75rem 2.5rem .75rem .75rem;
    }

    .pos-cart-controls {
        width: 100%;
        grid-template-columns: 48px minmax(0, 1fr) 48px;
    }

    .pos-cart-controls-single {
        grid-template-columns: minmax(0, 1fr);
    }

    .pos-discount-control input {
        flex: 1 1 auto;
        width: auto;
    }

    .pos-recent-list {
        grid-template-columns: 1fr;
    }

    .odoo-launcher {
        padding: 1rem .75rem;
    }

    .odoo-app-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .6rem .35rem;
    }

    .odoo-app-tile {
        padding: .65rem .2rem;
    }

    .odoo-app-icon {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
        border-radius: 15px;
        font-size: 1.55rem;
    }

    .odoo-app-copy small {
        display: none;
    }

    .odoo-app-copy strong {
        font-size: .78rem;
    }
}

/* =========================================================
   Vehicle Service Dark Theme
   ========================================================= */

.service-dark-theme {
    color-scheme: dark;
}

.service-dark-theme .main-shell,
.service-dark-theme.service-pos-v2-page {
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, .10), transparent 360px),
        linear-gradient(180deg, #050816 0%, #0b1020 48%, #111827 100%);
}

.service-dark-theme .list-group-item,
.service-dark-theme .dropdown-menu,
.service-dark-theme .accordion-item,
.service-dark-theme .offcanvas {
    background-color: rgba(15, 23, 42, .96);
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, .22);
}

.service-dark-theme .list-group-item-action:hover,
.service-dark-theme .list-group-item-action:focus {
    background-color: rgba(245, 158, 11, .14);
    color: #fff;
}

.service-dark-theme .input-group-text,
.service-dark-theme .form-check-input:not(:checked) {
    background-color: #111827;
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, .34);
}

.service-dark-theme .form-control:disabled,
.service-dark-theme .form-select:disabled,
.service-dark-theme .form-control[readonly] {
    background-color: rgba(30, 41, 59, .78);
    color: #94a3b8;
    border-color: rgba(148, 163, 184, .22);
    opacity: 1;
}

.service-dark-theme .text-dark,
.service-dark-theme .text-body {
    color: #e5e7eb !important;
}

.service-dark-theme .text-bg-light,
.service-dark-theme .badge.bg-light {
    background-color: rgba(30, 41, 59, .94) !important;
    color: #e5e7eb !important;
    border: 1px solid rgba(148, 163, 184, .24);
}

.service-dark-theme .text-bg-secondary,
.service-dark-theme .badge.bg-secondary {
    background-color: rgba(71, 85, 105, .88) !important;
    color: #f8fafc !important;
}

.service-dark-theme .btn-outline-dark {
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, .38);
}

.service-dark-theme .btn-outline-dark:hover,
.service-dark-theme .btn-outline-dark:focus {
    background-color: rgba(245, 158, 11, .16);
    color: #fff;
    border-color: #f59e0b;
}

.service-dark-theme .page-link {
    background-color: #111827;
    color: #93c5fd;
    border-color: rgba(148, 163, 184, .24);
}

.service-dark-theme .page-item.active .page-link {
    background-color: #f59e0b;
    color: #111827;
    border-color: #f59e0b;
}

.service-dark-theme hr,
.service-dark-theme .border-top,
.service-dark-theme .border-bottom,
.service-dark-theme .modal-header,
.service-dark-theme .modal-footer {
    border-color: rgba(148, 163, 184, .24) !important;
}

.service-dark-theme .kc-popup-modal-card {
    background: linear-gradient(145deg, #0f172a 0%, #111827 100%) !important;
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, .24);
}

.service-dark-theme .kc-popup-title {
    color: #f8fafc !important;
}

.service-dark-theme .kc-popup-message {
    color: #cbd5e1 !important;
}

.service-dark-theme .service-combine-total-card,
.service-dark-theme .service-v2-payment-config-warning,
.service-dark-theme .service-extra-section,
.service-dark-theme .service-extra-content {
    background: rgba(15, 23, 42, .96) !important;
    color: #e5e7eb !important;
    border-color: rgba(148, 163, 184, .22) !important;
}

.service-dark-theme .service-extra-header,
.service-dark-theme .service-extra-footer,
.service-dark-theme .service-extra-section-title {
    background: rgba(11, 18, 32, .92) !important;
    color: #f8fafc !important;
    border-color: rgba(148, 163, 184, .22) !important;
}

.service-dark-theme .service-extra-subtitle,
.service-dark-theme .service-extra-footer-hint,
.service-dark-theme .service-combine-total-card span {
    color: #94a3b8 !important;
}

/* =========================================================
   Accounting Dark Theme
   ========================================================= */

.accounting-dark-theme {
    color-scheme: dark;
}

.accounting-dark-theme .main-shell {
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, .10), transparent 360px),
        linear-gradient(180deg, #050816 0%, #0b1020 48%, #111827 100%);
}

.accounting-dark-theme .input-group-text,
.accounting-dark-theme .list-group-item,
.accounting-dark-theme .dropdown-menu {
    background-color: rgba(15, 23, 42, .96);
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, .22);
}

.accounting-dark-theme .kc-metric {
    background:
        linear-gradient(145deg, rgba(15, 23, 42, .98), rgba(17, 24, 39, .96)) !important;
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, .24);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .32);
}

.accounting-dark-theme .kc-metric .text-muted,
.accounting-dark-theme .kc-metric span {
    color: #94a3b8 !important;
}

.accounting-dark-theme .kc-metric .fw-bold,
.accounting-dark-theme .kc-metric strong:not(.text-success):not(.text-danger) {
    color: #f8fafc !important;
}

.accounting-dark-theme .kc-metric .text-success {
    color: #34d399 !important;
}

.accounting-dark-theme .kc-metric .text-danger {
    color: #fb7185 !important;
}

.accounting-dark-theme .form-control:disabled,
.accounting-dark-theme .form-select:disabled,
.accounting-dark-theme .form-control[readonly] {
    background-color: rgba(30, 41, 59, .78);
    color: #94a3b8;
    border-color: rgba(148, 163, 184, .22);
    opacity: 1;
}

.accounting-dark-theme .text-dark,
.accounting-dark-theme .text-body {
    color: #e5e7eb !important;
}

.accounting-dark-theme .btn-outline-dark,
.accounting-dark-theme .btn-outline-success,
.accounting-dark-theme .btn-outline-secondary {
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, .38);
}

.accounting-dark-theme .btn-outline-dark:hover,
.accounting-dark-theme .btn-outline-success:hover,
.accounting-dark-theme .btn-outline-secondary:hover,
.accounting-dark-theme .btn-outline-dark:focus,
.accounting-dark-theme .btn-outline-success:focus,
.accounting-dark-theme .btn-outline-secondary:focus {
    background-color: rgba(245, 158, 11, .16);
    color: #fff;
    border-color: #f59e0b;
}

.accounting-dark-theme hr,
.accounting-dark-theme .border-top,
.accounting-dark-theme .border-bottom,
.accounting-dark-theme .modal-header,
.accounting-dark-theme .modal-footer {
    border-color: rgba(148, 163, 184, .24) !important;
}

/* =========================================================
   Main Dashboard Dark Theme
   ========================================================= */

.dashboard-dark-theme {
    color-scheme: dark;
}

.dashboard-dark-theme .main-shell {
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, .10), transparent 380px),
        radial-gradient(circle at bottom left, rgba(37, 99, 235, .10), transparent 360px),
        linear-gradient(180deg, #050816 0%, #0b1020 48%, #111827 100%);
}

.dashboard-dark-theme .kc-metric {
    background:
        linear-gradient(145deg, rgba(15, 23, 42, .98), rgba(17, 24, 39, .96)) !important;
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, .24);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .32) !important;
}

.dashboard-dark-theme .kc-metric.text-white,
.dashboard-dark-theme .kc-metric.text-dark {
    color: #f8fafc !important;
}

.dashboard-dark-theme .kc-metric .text-muted,
.dashboard-dark-theme .kc-metric span:not(.icon) {
    color: #94a3b8 !important;
}

.dashboard-dark-theme .kc-metric .fw-bold,
.dashboard-dark-theme .kc-metric strong,
.dashboard-dark-theme .kc-metric .h4,
.dashboard-dark-theme .kc-metric .h5 {
    color: #f8fafc !important;
}

.dashboard-dark-theme .kc-metric .text-success {
    color: #34d399 !important;
}

.dashboard-dark-theme .kc-metric .text-danger {
    color: #fb7185 !important;
}

.dashboard-dark-theme .kc-metric .icon {
    background: rgba(255, 255, 255, .12) !important;
    color: #f8fafc !important;
}

.dashboard-dark-theme .dashboard-quick-actions,
.dashboard-dark-theme .odoo-launcher,
.dashboard-dark-theme .odoo-app-section,
.dashboard-dark-theme .dashboard-quick-button,
.dashboard-dark-theme .border.bg-light,
.dashboard-dark-theme .bg-light {
    background: rgba(15, 23, 42, .88) !important;
    color: #e5e7eb !important;
    border-color: rgba(148, 163, 184, .24) !important;
}

.dashboard-dark-theme .odoo-app-section {
    box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}

.dashboard-dark-theme .odoo-app-section-title {
    color: #f8fafc;
    border-bottom-color: rgba(148, 163, 184, .22);
}

.dashboard-dark-theme .dashboard-quick-button:hover,
.dashboard-dark-theme .dashboard-quick-button:focus-visible {
    background: rgba(245, 158, 11, .14) !important;
    color: #fff !important;
    border-color: rgba(245, 158, 11, .45) !important;
}

.dashboard-dark-theme .odoo-app-tile:hover,
.dashboard-dark-theme .odoo-app-tile:focus-visible {
    color: #111827 !important;
}

.dashboard-dark-theme .odoo-app-tile:hover .odoo-app-copy strong,
.dashboard-dark-theme .odoo-app-tile:focus-visible .odoo-app-copy strong {
    color: #111827 !important;
}

.dashboard-dark-theme .odoo-app-tile:hover .odoo-app-copy small,
.dashboard-dark-theme .odoo-app-tile:focus-visible .odoo-app-copy small {
    color: #475569 !important;
}

.dashboard-dark-theme .dashboard-quick-copy small,
.dashboard-dark-theme .text-muted {
    color: #94a3b8 !important;
}

.dashboard-dark-theme .dashboard-quick-copy strong,
.dashboard-dark-theme .text-dark,
.dashboard-dark-theme .text-body {
    color: #f8fafc !important;
}

.dashboard-dark-theme .btn-outline-dark,
.dashboard-dark-theme .btn-outline-secondary,
.dashboard-dark-theme .btn-outline-primary,
.dashboard-dark-theme .btn-outline-success {
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, .38);
}

.dashboard-dark-theme .btn-outline-dark:hover,
.dashboard-dark-theme .btn-outline-secondary:hover,
.dashboard-dark-theme .btn-outline-primary:hover,
.dashboard-dark-theme .btn-outline-success:hover,
.dashboard-dark-theme .btn-outline-dark:focus,
.dashboard-dark-theme .btn-outline-secondary:focus,
.dashboard-dark-theme .btn-outline-primary:focus,
.dashboard-dark-theme .btn-outline-success:focus {
    background-color: rgba(245, 158, 11, .16);
    color: #fff;
    border-color: #f59e0b;
}

.dashboard-dark-theme .badge.text-bg-light {
    background-color: rgba(30, 41, 59, .94) !important;
    color: #e5e7eb !important;
    border: 1px solid rgba(148, 163, 184, .24);
}

.dashboard-dark-theme hr,
.dashboard-dark-theme .border,
.dashboard-dark-theme .border-top,
.dashboard-dark-theme .border-bottom {
    border-color: rgba(148, 163, 184, .24) !important;
}

.dashboard-agency-theme {
    --agency-red: #dd0b13;
    --agency-red-light: #ff9297;
    --agency-border: rgba(255, 123, 130, .34);
    background: #1c0c11;
}

.dashboard-agency-theme .app-navbar {
    background: linear-gradient(115deg, #37080e, #a00012 58%, #65000d);
    border-bottom-color: var(--agency-red);
}

.dashboard-agency-theme .kc-company-current {
    color: #fff;
    border-color: var(--agency-border);
}

.dashboard-agency-theme .main-shell {
    background:
        radial-gradient(circle at top right, rgba(221, 11, 19, .19), transparent 480px),
        linear-gradient(180deg, #1c0c11, #120c11 55%, #171014);
}

.dashboard-agency-theme .dashboard-heading {
    padding: 1rem 1.25rem;
    border: 1px solid var(--agency-border);
    border-inline-start: .25rem solid var(--agency-red);
    border-radius: .85rem;
    background: linear-gradient(110deg, #391015, #241015);
}

.dashboard-agency-theme .dashboard-company-badge {
    background: var(--agency-red);
    color: #fff;
    white-space: normal;
    line-height: 1.5;
}

.dashboard-agency-theme :is(.dashboard-quick-actions, .dashboard-quick-button, .odoo-launcher, .odoo-app-section) {
    background: #251519 !important;
    border-color: var(--agency-border) !important;
}

.dashboard-agency-theme .kc-metric {
    background: linear-gradient(145deg, #2a151b, #1e151a) !important;
}

.dashboard-agency-theme .dashboard-quick-button:is(:hover, :focus-visible) {
    background: #481b22 !important;
    border-color: var(--agency-red-light) !important;
}

.dashboard-agency-theme :is(.btn-outline-dark, .btn-outline-secondary, .btn-outline-primary, .btn-outline-success):is(:hover, :focus) {
    background-color: #481b22;
    border-color: var(--agency-red-light);
}

.dashboard-agency-theme :is(.company-switch, .kc-user-profile-link, .kc-logout-link):focus-visible {
    outline-color: var(--agency-red-light);
}

/* Service order POS shell */
.service-touch-screen {
    --service-pos-gap: 1rem;
    --service-cart-width: clamp(360px, 28vw, 460px);
    --service-tile-height: 312px;
    --service-product-image-height: 136px;
    height: 100dvh;
    min-height: 680px;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    padding: 0;
    background: #eef2f6;
}

.service-touch-screen .pos-topbar {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    min-height: 76px;
    padding: .85rem 1.25rem;
    background: #111827;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .18);
}

.service-touch-screen .pos-topbar h1 {
    font-size: clamp(1.15rem, 1.5vw, 1.5rem);
}

.service-touch-screen .pos-topbar-actions {
    flex: 1 1 auto;
    justify-content: flex-end;
}

.service-touch-screen .pos-topbar-actions .service-mode-tabs {
    position: static;
    width: min(430px, 42vw);
    margin-inline: auto;
    transform: none;
}

.service-touch-screen .alert {
    margin: .75rem var(--service-pos-gap) 0;
}

.service-touch-layout {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-columns: var(--service-cart-width) minmax(0, 1fr);
    grid-template-areas: "cart catalog";
    gap: var(--service-pos-gap);
    direction: ltr;
    padding: var(--service-pos-gap);
    padding-top: var(--service-pos-gap);
    padding-bottom: var(--service-pos-gap);
    overflow: hidden;
}

.service-picker-panel,
.service-order-panel {
    position: static;
    inset: auto;
    direction: rtl;
    width: auto;
    min-width: 0;
    min-height: 0;
    height: 100%;
    border-radius: .9rem;
    background: #fff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, .08);
}

.service-picker-panel {
    grid-area: catalog;
    display: flex;
    flex-direction: column;
    gap: .8rem;
    overflow: hidden;
    padding: 1rem;
}

.service-order-panel {
    grid-area: cart;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    overflow: hidden;
}

.service-searchbar {
    position: static;
    inset: auto;
    min-height: 62px;
    margin: 0;
    border-radius: .9rem;
    background: #f8fafc;
    box-shadow: none;
}

.service-picker-panel > .service-mode-tabs {
    display: none;
}

.service-tile-grid {
    flex: 1 1 0;
    min-height: 0;
    height: auto;
    grid-template-columns: repeat(auto-fill, minmax(clamp(160px, 13vw, 220px), 1fr));
    grid-auto-rows: var(--service-tile-height);
    gap: .8rem;
    align-content: start;
    overflow: auto;
    padding: .15rem .15rem .65rem;
    scrollbar-width: thin;
}

.service-touch-tile {
    box-sizing: border-box;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border-radius: .85rem;
    border-color: rgba(15, 23, 42, .1);
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}

.service-touch-tile[data-kind="product"] {
    grid-template-rows: minmax(44px, auto) var(--service-product-image-height) auto auto;
}

.service-touch-tile[data-kind="product"] .pos-product-image {
    height: var(--service-product-image-height);
}

.service-touch-tile .pos-product-price {
    align-self: end;
    padding: .35rem .55rem;
    color: #0f766e;
    font-size: 1rem;
    line-height: 1.1;
    border-radius: .55rem;
    background: rgba(15, 118, 110, .09);
}

.service-touch-tile .pos-product-name {
    min-height: 0;
    font-size: .95rem;
}

.service-touch-details {
    padding: .85rem;
}

.service-detail-grid {
    grid-template-columns: 1fr;
}

.service-big-input,
.service-more-toggle,
.service-touch-screen .form-select-lg,
.service-touch-screen .form-control-lg {
    min-height: 48px;
    font-size: .98rem;
}

.service-order-panel .pos-cart-head {
    min-height: 72px;
    padding: .85rem;
}

.service-order-panel .pos-cart-items {
    padding: .75rem;
}

.service-order-panel .pos-checkout {
    position: static;
    width: auto;
    max-height: none;
    grid-template-columns: 1fr;
    gap: .7rem;
    padding: .85rem;
    border-radius: 0;
    box-shadow: 0 -10px 24px rgba(15, 23, 42, .08);
}

.service-order-panel .pos-total-box {
    min-height: 54px;
}

.service-order-panel .pos-pay-button {
    min-height: 56px;
}

@media (min-width: 1600px) {
    .service-touch-screen {
        --service-cart-width: clamp(420px, 26vw, 520px);
        --service-pos-gap: 1.25rem;
        --service-tile-height: 342px;
        --service-product-image-height: 160px;
    }

    .service-tile-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 1199.98px) {
    .service-touch-screen {
        --service-cart-width: clamp(330px, 34vw, 400px);
        --service-tile-height: 292px;
        --service-product-image-height: 124px;
    }

    .service-tile-grid {
        grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    }
}

@media (max-width: 991.98px) {
    .service-touch-screen {
        height: auto;
        min-height: 100dvh;
        overflow: visible;
    }

    .service-touch-screen .pos-topbar {
        position: sticky;
        top: 0;
        z-index: 1040;
        flex-wrap: wrap;
    }

    .service-touch-screen .pos-topbar > div:first-child {
        min-width: 0;
        flex: 1 1 260px;
    }

    .service-touch-screen .pos-topbar-actions {
        flex: 1 1 100%;
        justify-content: space-between;
    }

    .service-touch-screen .pos-topbar-actions .service-mode-tabs {
        width: min(420px, calc(100vw - 8rem));
        margin-inline: 0;
    }

    .service-touch-layout {
        height: auto;
        min-height: 0;
        grid-template-columns: 1fr;
        grid-template-areas:
            "catalog"
            "cart";
        overflow: visible;
    }

    .service-picker-panel {
        min-height: min(620px, calc(100dvh - 150px));
        height: min(620px, calc(100dvh - 150px));
    }

    .service-order-panel {
        height: auto;
        min-height: 560px;
    }

    .service-order-panel .pos-cart-items {
        max-height: 420px;
    }

    .service-order-panel .pos-checkout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-order-panel .pos-pay-button,
    .service-order-panel .pos-total-box {
        grid-column: span 1;
    }
}

@media (max-width: 575.98px) {
    .service-touch-screen {
        background: #f4f6f8;
        --service-tile-height: 252px;
        --service-product-image-height: 108px;
    }

    .service-touch-screen .pos-topbar {
        gap: .7rem;
        padding: .7rem .75rem;
    }

    .service-touch-screen .pos-muted {
        display: none;
    }

    .service-touch-screen .pos-topbar-actions {
        gap: .55rem;
    }

    .service-touch-screen .pos-topbar-actions .service-mode-tabs {
        order: 2;
        width: 100%;
        grid-column: 1 / -1;
    }

    .service-touch-screen .pos-topbar-actions .pos-touch-btn {
        order: 1;
        min-width: 72px;
    }

    .service-touch-layout {
        gap: .75rem;
        padding: .75rem;
    }

    .service-picker-panel {
        min-height: min(560px, calc(100dvh - 154px));
        height: min(560px, calc(100dvh - 154px));
        padding: .75rem;
        border-radius: .75rem;
    }

    .service-searchbar {
        min-height: 54px;
        padding: 0 .85rem;
    }

    .service-tile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .55rem;
    }

    .service-touch-tile {
        padding: .65rem;
    }

    .service-touch-tile .pos-product-name {
        font-size: .82rem;
        line-height: 1.3;
        -webkit-line-clamp: 2;
    }

    .service-touch-tile .pos-product-price,
    .pos-product-barcode {
        font-size: .78rem;
    }

    .service-order-panel {
        min-height: 520px;
        border-radius: .75rem;
    }

    .service-order-panel .pos-checkout {
        grid-template-columns: 1fr;
    }

    .service-extra-grid {
        grid-template-columns: 1fr;
    }
}


/* ========================================================================== 
   SERVICE POS V2 - Right catalog / Left order layout
   ========================================================================== */

/* POS V2 page chrome ------------------------------------------------------ */
body.service-pos-v2-page {
    min-height: 100dvh;
    overflow: hidden;
}

body.service-pos-v2-page .app-navbar {
    display: none !important;
}

body.service-pos-v2-page .main-shell {
    min-height: 100dvh !important;
}

.service-pos-v2 {
    --pos-v2-gap: 14px;
    --pos-v2-order-width: clamp(390px, 31vw, 500px);
    --pos-v2-border: rgba(15, 23, 42, .10);
    --pos-v2-muted: #64748b;
    --pos-v2-surface: #ffffff;
    --pos-v2-soft: #f8fafc;
    --pos-v2-dark: #0f172a;
    --pos-v2-success: #0f766e;
    height: 100dvh;
    min-height: 680px;
    overflow: hidden;
    padding: 0;
    background: #eef2f6;
}

.service-pos-v2 .service-pos-v2-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1055;
    min-height: 68px;
    padding: .7rem 1rem;
    flex: 0 0 68px;
    background: #0f172a;
    border-radius: 0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .18);
}

.service-pos-v2 .service-pos-v2-topbar h1 {
    font-size: 1.2rem;
}

.service-pos-v2 .service-pos-v2-topbar-field {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.service-pos-v2 .service-pos-v2-topbar-field .form-select {
    min-width: 190px;
}

.service-pos-v2 .service-pos-v2-draft-select {
    min-width: 240px;
}

.service-pos-v2 .service-pos-v2-topbar-nav {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.service-pos-v2 .service-pos-v2-receipt-select {
    min-width: 280px;
    max-width: min(420px, 34vw);
}

.service-pos-v2 .service-pos-v2-layout {
    flex: 1 1 auto;
    min-height: 0;
    height: calc(100dvh - 68px);
    display: grid;
    grid-template-columns: var(--pos-v2-order-width) minmax(0, 1fr);
    grid-template-areas: "order catalog";
    gap: var(--pos-v2-gap);
    direction: ltr;
    margin-top: 68px;
    padding: var(--pos-v2-gap);
    overflow: hidden;
}

.service-pos-v2 .service-pos-v2-catalog,
.service-pos-v2 .service-pos-v2-order {
    position: static;
    inset: auto;
    width: auto;
    height: 100%;
    min-height: 0;
    direction: rtl;
    border: 1px solid var(--pos-v2-border);
    border-radius: 16px;
    background: var(--pos-v2-surface);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .07);
}

.service-pos-v2 .service-pos-v2-catalog {
    grid-area: catalog;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 12px;
    overflow: hidden;
    padding: 14px;
}

.service-pos-v2 .service-pos-v2-search {
    position: static;
    inset: auto;
    min-height: 56px;
    margin: 0;
    border-radius: 12px;
    background: #f8fafc;
    box-shadow: none;
}

.service-pos-v2 .service-pos-v2-search input {
    color-scheme: light;
    color: #111827;
}

.service-pos-v2 .service-pos-v2-search input::placeholder {
    color: #475569;
    opacity: 1;
}

.service-search-hint {
    direction: ltr;
    padding: .2rem .45rem;
    color: #64748b;
    font-size: .72rem;
    font-weight: 700;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #fff;
}

.service-catalog-heading {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 2px;
}

.service-catalog-heading h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 900;
}

.service-catalog-heading span {
    color: var(--pos-v2-muted);
    font-size: .78rem;
}

.service-catalog-heading > div {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.service-catalog-note {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-pos-v2 .service-pos-v2-grid {
    min-height: 0;
    height: auto;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    grid-auto-rows: 236px;
    gap: 10px;
    align-content: start;
    overflow: auto;
    padding: 2px 2px 8px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.service-pos-v2 .service-tile-v2 {
    position: relative;
    height: 236px;
    min-height: 0;
    padding: 10px;
    display: grid;
    grid-template-rows: 116px minmax(42px, auto) auto auto;
    gap: 6px;
    overflow: hidden;
    text-align: center;
    border: 1px solid var(--pos-v2-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .05);
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.service-pos-v2 .service-tile-v2:hover,
.service-pos-v2 .service-tile-v2:focus-visible {
    border-color: rgba(15, 118, 110, .5);
    box-shadow: 0 9px 20px rgba(15, 23, 42, .10);
    transform: translateY(-2px);
    outline: none;
}

.service-pos-v2 .service-tile-v2[data-kind="service"] {
    grid-template-rows: 86px minmax(44px, auto) auto auto;
    align-content: center;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
}

.service-pos-v2 .service-tile-v2 .pos-product-image {
    width: 100%;
    height: 116px;
    border-radius: 9px;
    background: #f8fafc;
}

.service-pos-v2 .service-tile-v2 .pos-product-image img {
    object-fit: contain;
    background: #fff;
}

.service-pos-v2 .service-tile-v2 .pos-product-name {
    min-height: 0;
    margin: 0;
    font-size: .88rem;
    line-height: 1.3;
    text-align: center;
    -webkit-line-clamp: 2;
}

.service-v2-icon {
    width: 70px;
    height: 70px;
    place-self: center;
    display: grid;
    place-items: center;
    color: #0f766e;
    font-size: 1.8rem;
    border-radius: 18px;
    background: #ccfbf1;
}

.service-v2-code,
.service-v2-stock {
    min-width: 0;
    overflow: hidden;
    color: var(--pos-v2-muted);
    font-size: .72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-pos-v2 .service-tile-v2 .pos-product-price {
    align-self: end;
    padding: 0;
    color: #0f766e;
    font-size: .9rem;
    font-weight: 900;
    background: transparent;
}

.service-category-footer {
    position: sticky;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    min-width: 0;
    display: grid;
    gap: 7px;
    margin: 0 -14px -14px;
    padding: 10px 14px 12px;
    border-top: 1px solid var(--pos-v2-border);
    background: #fff;
    box-shadow: 0 -8px 20px rgba(15, 23, 42, .08);
}

.service-category-footer-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #334155;
    font-size: .8rem;
    font-weight: 900;
}

.service-pos-v2 .service-v2-category-bar {
    min-width: 0;
    margin: 0;
    padding: 1px 0 4px;
    gap: 7px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}

.service-pos-v2 .service-v2-category-bar .pos-category-chip {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: .8rem;
}

.service-pos-v2 .service-pos-v2-order {
    grid-area: order;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    overflow: hidden;
}

.service-pos-v2 .service-v2-cart-head {
    min-height: 58px;
    padding: 10px 12px;
}

.service-pos-v2 .service-v2-cart-head h2 {
    font-size: 1.05rem;
}

.service-pos-v2 .service-v2-cart-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex: 0 0 auto;
}

.service-v2-order-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--pos-v2-border);
    background: #fbfdff;
}

.service-v2-order-info .form-label {
    margin-bottom: 3px;
    color: #475569;
    font-size: .73rem;
    font-weight: 800;
}

.service-pos-v2 .service-v2-order-info .service-big-input {
    min-height: 42px;
    height: 42px;
    font-size: .83rem;
}

.service-v2-more {
    grid-column: 1 / -1;
    min-height: 38px;
    font-size: .78rem;
}

.service-v2-order-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px 64px 92px;
    gap: 8px;
    padding: 7px 14px;
    color: #64748b;
    font-size: .7rem;
    font-weight: 800;
    border-bottom: 1px solid var(--pos-v2-border);
    background: #f8fafc;
}

.service-v2-order-columns span:nth-child(2),
.service-v2-order-columns span:nth-child(3),
.service-v2-order-columns span:nth-child(4) {
    text-align: center;
}

.service-pos-v2 .service-v2-cart-items {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 8px 10px 12px;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.service-pos-v2 .service-v2-cart-items .pos-cart-empty {
    min-height: 160px;
}

.service-pos-v2 .service-v2-cart-items .pos-cart-empty strong {
    color: #64748b;
}

.service-pos-v2 .service-cart-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px 64px 92px;
    align-items: start;
    gap: 8px;
    min-height: 70px;
    padding: 8px 38px 8px 8px;
    border: 0;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 0;
    background: #fff;
}

.service-pos-v2 .service-cart-item + .service-cart-item {
    margin-top: 0;
}

.service-pos-v2 .service-v2-cart-main {
    min-width: 0;
    gap: 2px;
}

.service-pos-v2 .service-v2-cart-main strong {
    overflow: visible;
    font-size: .82rem;
    line-height: 1.35;
    text-overflow: clip;
    white-space: normal;
}

.service-pos-v2 .service-v2-cart-main small {
    overflow: visible;
    font-size: .7rem;
    text-overflow: clip;
    white-space: normal;
}

.service-pos-v2 .service-v2-qty-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
}

.service-pos-v2 .service-v2-price-control {
    display: grid;
    margin: 0;
}

.service-pos-v2 .service-v2-price-input {
    width: 100%;
    min-width: 0;
    height: 34px;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 7px;
    background: #f8fafc;
    color: #0f172a;
    font-size: .78rem;
    font-weight: 800;
    text-align: center;
}

.service-pos-v2 .service-v2-qty-controls .pos-qty-btn,
.service-pos-v2 .service-v2-qty-controls .pos-qty-input {
    min-width: 0;
    min-height: 34px;
    height: 34px;
    padding: 0;
    border-radius: 7px;
    font-size: .78rem;
}

.service-pos-v2 .service-v2-line-total {
    grid-column: auto;
    align-self: center;
    color: #0f766e;
    font-size: .82rem;
    text-align: center;
    white-space: nowrap;
}

.service-pos-v2 .service-v2-remove {
    top: 50%;
    right: 4px;
    min-width: 28px;
    min-height: 28px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    transform: translateY(-50%);
}

.service-pos-v2 .service-v2-checkout {
    position: static;
    inset: auto;
    width: auto;
    max-height: none;
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 8px;
    overflow: visible;
    padding: 10px 12px 12px;
    border: 0;
    border-top: 1px solid var(--pos-v2-border);
    background: #fff;
    box-shadow: none;
}

/* Fixed bottom payment area. The cart above is the only scrolling region. */
.service-pos-v2 .service-v2-payment-dock {
    position: sticky;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 35;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 9px 12px 12px;
    border-top: 1px solid var(--pos-v2-border);
    background: #fff;
    box-shadow: 0 -10px 24px rgba(15, 23, 42, .10);
}

.service-v2-summary-row {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #475569;
    font-size: .86rem;
}

.service-v2-summary-row strong {
    color: #0f172a;
    font-size: .92rem;
}

.service-v2-discount-block {
    display: grid;
    gap: 6px;
    padding: 8px 0;
    border-top: 1px dashed #dbe3ec;
    border-bottom: 1px dashed #dbe3ec;
}

.service-v2-discount-block .input-group > .form-select {
    max-width: 116px;
}

.service-v2-discount-block .form-select,
.service-v2-discount-block .form-control,
.service-v2-payment-row .form-select {
    min-height: 40px;
    font-size: .83rem;
}

.service-pos-v2 .service-v2-grand-total {
    order: 99;
    min-height: 62px;
    margin: 0;
    padding: 11px 13px;
    border-radius: 11px;
    background: #0f172a;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .18);
}

.service-pos-v2 .service-v2-grand-total strong {
    font-size: 1.25rem;
}

.service-v2-payment-row {
    gap: 4px;
}

.service-v2-payment-row label {
    font-size: .78rem;
}

.service-pos-v2 .service-v2-pay-button {
    min-height: 48px;
    border-radius: 10px;
    font-size: .92rem;
    font-weight: 900;
}

@media (min-width: 1500px) {
    .service-pos-v2 {
        --pos-v2-order-width: clamp(430px, 29vw, 540px);
    }

    .service-pos-v2 .service-pos-v2-grid {
        grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
        grid-auto-rows: 246px;
    }

    .service-pos-v2 .service-tile-v2 {
        height: 246px;
        grid-template-rows: 124px minmax(44px, auto) auto auto;
    }
}

@media (max-width: 1199.98px) and (min-width: 992px) {
    .service-pos-v2 {
        --pos-v2-order-width: clamp(350px, 36vw, 410px);
    }

    .service-pos-v2 .service-pos-v2-grid {
        grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
        grid-auto-rows: 218px;
    }

    .service-pos-v2 .service-tile-v2 {
        height: 218px;
        grid-template-rows: 102px minmax(40px, auto) auto auto;
    }

    .service-pos-v2 .service-tile-v2 .pos-product-image {
        height: 102px;
    }

    .service-v2-order-columns,
    .service-pos-v2 .service-cart-item {
        grid-template-columns: minmax(0, 1fr) 76px 56px 82px;
    }
}

@media (max-width: 991.98px) {
    body.service-pos-v2-page {
        overflow: auto;
    }

    .service-pos-v2 {
        height: auto;
        min-height: 100dvh;
        overflow: visible;
    }

    .service-pos-v2 .service-pos-v2-topbar {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1055;
    }

    .service-pos-v2 .service-pos-v2-layout {
        height: auto;
        min-height: 0;
        grid-template-columns: 1fr;
        grid-template-areas:
            "catalog"
            "order";
        overflow: visible;
    }

    .service-pos-v2 .service-pos-v2-catalog,
    .service-pos-v2 .service-pos-v2-order {
        height: auto;
    }

    .service-pos-v2 .service-pos-v2-catalog {
        min-height: 650px;
        height: min(760px, calc(100dvh - 96px));
    }

    .service-pos-v2 .service-pos-v2-order {
        min-height: 680px;
        height: min(760px, calc(100dvh - 96px));
        overflow: hidden;
    }

    .service-pos-v2 .service-v2-cart-items {
        min-height: 0;
        max-height: none;
        overflow-y: auto;
    }
}

@media (max-width: 575.98px) {
    .service-pos-v2 .service-pos-v2-topbar {
        min-height: 60px;
        padding: .6rem .7rem;
    }

    .service-pos-v2 .service-pos-v2-topbar .pos-muted {
        display: none;
    }

    .service-pos-v2 .service-pos-v2-layout {
        gap: 8px;
        padding: 8px;
    }

    .service-pos-v2 .service-pos-v2-catalog {
        min-height: 600px;
        height: min(700px, calc(100dvh - 78px));
        padding: 9px;
        border-radius: 12px;
    }

    .service-pos-v2 .service-category-footer {
        margin: 0 -9px -9px;
        padding: 9px 9px 10px;
    }

    .service-pos-v2 .service-pos-v2-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 206px;
        gap: 7px;
    }

    .service-pos-v2 .service-tile-v2,
    .service-pos-v2 .service-tile-v2[data-kind="service"] {
        height: 206px;
        padding: 7px;
        grid-template-rows: 88px minmax(38px, auto) auto auto;
    }

    .service-pos-v2 .service-tile-v2 .pos-product-image {
        height: 88px;
    }

    .service-pos-v2 .service-tile-v2 .pos-product-name {
        font-size: .76rem;
    }

    .service-v2-icon {
        width: 58px;
        height: 58px;
        font-size: 1.45rem;
    }

    .service-search-hint,
    .service-catalog-note {
        display: none;
    }

    .service-v2-order-info {
        grid-template-columns: 1fr;
    }

    .service-v2-more {
        grid-column: 1;
    }

    .service-v2-order-columns {
        display: none;
    }

    .service-pos-v2 .service-cart-item {
        grid-template-columns: minmax(0, 1fr) 92px 64px;
        gap: 6px;
        padding: 9px 34px 9px 8px;
    }

    .service-pos-v2 .service-v2-line-total {
        grid-column: 1 / -1;
        justify-self: end;
        font-size: .85rem;
    }

    .service-pos-v2 .service-v2-checkout {
        padding: 8px 10px;
    }

    .service-pos-v2 .service-v2-payment-dock {
        gap: 6px;
        padding: 8px 10px 10px;
    }

    .service-pos-v2 .service-v2-grand-total {
        min-height: 58px;
    }
}

/* =========================================================
   POS V2 - Four payment action buttons + Combine modal
   ========================================================= */

.service-pos-v2 .service-v2-payment-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    color: #64748b;
    font-size: .74rem;
    font-weight: 800;
    text-align: center;
}

.service-pos-v2 .service-v2-payment-actions {
    order: 20;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.service-pos-v2 .service-v2-payment-caption {
    order: 10;
}

.service-pos-v2 .service-v2-payment-action {
    min-width: 0;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    padding: 7px 10px;
    text-align: start;
    border: 1px solid transparent;
    border-radius: 11px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, .08);
    transition: transform .15s ease, box-shadow .15s ease;
    touch-action: manipulation;
}

.service-pos-v2 .service-v2-payment-action:not(:disabled):hover,
.service-pos-v2 .service-v2-payment-action:not(:disabled):focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 9px 20px rgba(15, 23, 42, .14);
    outline: 0;
}

.service-pos-v2 .service-v2-payment-action:disabled {
    cursor: not-allowed;
    color: #475569;
    background: #f1f5f9;
    border-color: #cbd5e1;
    box-shadow: none;
}

.service-pos-v2 .service-v2-payment-action > i {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-size: 1.05rem;
    background: rgba(255, 255, 255, .72);
}

.service-pos-v2 .service-v2-payment-action > span {
    min-width: 0;
    display: grid;
    gap: 0;
}

.service-pos-v2 .service-v2-payment-action strong {
    color: inherit;
    overflow: hidden;
    font-size: .86rem;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-pos-v2 .service-v2-payment-action small {
    margin-top: 2px;
    overflow: hidden;
    font-size: .65rem;
    line-height: 1.1;
    opacity: .78;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-pos-v2 .service-v2-payment-cash {
    color: #065f46;
    border-color: #a7f3d0;
    background: linear-gradient(180deg, #ecfdf5, #d1fae5);
}

.service-pos-v2 .service-v2-payment-credit {
    color: #92400e;
    border-color: #fde68a;
    background: linear-gradient(180deg, #fffbeb, #fef3c7);
}

.service-pos-v2 .service-v2-payment-master {
    color: #1e40af;
    border-color: #bfdbfe;
    background: linear-gradient(180deg, #eff6ff, #dbeafe);
}

.service-pos-v2 .service-v2-payment-combine {
    color: #6b21a8;
    border-color: #e9d5ff;
    background: linear-gradient(180deg, #faf5ff, #f3e8ff);
}

.service-pos-v2 .service-v2-payment-config-warning {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 7px 9px;
    color: #9a3412;
    font-size: .68rem;
    font-weight: 700;
    border: 1px solid #fed7aa;
    border-radius: 9px;
    background: #fff7ed;
}

/* Combine payment modal */
.service-combine-payment-modal {
    direction: rtl;
}

.service-combine-payment-modal .modal-dialog,
.service-combine-payment-modal .modal-content,
.service-combine-payment-modal .modal-header,
.service-combine-payment-modal .modal-body,
.service-combine-payment-modal .modal-footer {
    direction: rtl;
    text-align: right;
}

.service-combine-payment-modal .modal-header,
.service-combine-payment-modal .modal-footer {
    flex-direction: row;
}

.service-combine-total-card {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    padding: 14px 16px;
    color: #fff;
    border-radius: 14px;
    background: #0f172a;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .16);
}

.service-combine-total-card span {
    color: rgba(255, 255, 255, .78);
    font-weight: 800;
}

.service-combine-total-card strong {
    direction: ltr;
    font-size: 1.45rem;
    white-space: nowrap;
}

.service-combine-customer-status {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 11px;
    color: #64748b;
    font-size: .78rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.service-combine-customer-status.is-selected {
    color: #065f46;
    border-color: #a7f3d0;
    background: #ecfdf5;
}

.service-combine-methods {
    display: grid;
    gap: 10px;
}

.service-combine-method-row {
    display: grid;
    grid-template-columns: minmax(120px, .72fr) minmax(130px, .8fr) minmax(210px, 1.45fr);
    align-items: end;
    gap: 10px;
    padding: 11px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.service-combine-method-row .form-label {
    margin-bottom: 4px;
    color: #475569;
    font-size: .72rem;
    font-weight: 800;
}

.service-combine-method-row .form-control,
.service-combine-method-row .form-select {
    min-height: 42px;
    font-size: .82rem;
}

.service-combine-method-title {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 9px;
    align-self: end;
}

.service-combine-method-title > i {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-size: 1.15rem;
}

.service-combine-method-title > span {
    min-width: 0;
    display: grid;
}

.service-combine-method-title strong {
    font-size: .9rem;
}

.service-combine-method-title small {
    color: #64748b;
    font-size: .7rem;
}

.service-combine-cash-row .service-combine-method-title > i {
    color: #047857;
    background: #d1fae5;
}

.service-combine-master-row .service-combine-method-title > i {
    color: #1d4ed8;
    background: #dbeafe;
}

.service-combine-credit-row .service-combine-method-title > i {
    color: #b45309;
    background: #fef3c7;
}

.service-combine-example {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 12px;
    padding: 9px 11px;
    color: #475569;
    font-size: .75rem;
    border-radius: 10px;
    background: #f8fafc;
}

.service-combine-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.service-combine-summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 48px;
    padding: 9px 11px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

.service-combine-summary span {
    color: #64748b;
    font-size: .75rem;
    font-weight: 800;
}

.service-combine-summary strong {
    direction: ltr;
    font-size: .9rem;
    white-space: nowrap;
}

.service-combine-footer {
    gap: 8px;
}

.service-combine-footer .btn {
    min-height: 44px;
    border-radius: 9px;
    font-weight: 800;
}

@media (max-width: 767.98px) {
    .service-combine-method-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .service-combine-method-title {
        align-self: stretch;
    }
}

@media (max-width: 575.98px) {
    .service-pos-v2 .service-v2-payment-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .service-pos-v2 .service-v2-payment-action {
        min-height: 52px;
        padding: 6px 8px;
        gap: 6px;
    }

    .service-pos-v2 .service-v2-payment-action > i {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
        font-size: .95rem;
    }

    .service-pos-v2 .service-v2-payment-action strong {
        font-size: .78rem;
    }

    .service-pos-v2 .service-v2-payment-action small {
        font-size: .59rem;
    }

    .service-combine-summary {
        grid-template-columns: 1fr;
    }

    .service-combine-footer {
        display: grid;
        grid-template-columns: 1fr;
    }

    .service-combine-footer .btn {
        width: 100%;
    }
}


/* =========================================================
   Navbar Logo
   ========================================================= */

.kc-navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.kc-navbar-logo {
    width: auto;
    height: 38px;
    max-width: 70px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.navbar-brand-text {
    display: inline-block;
    line-height: 1.2;
}

/* Tablet */
@media (max-width: 991.98px) {

    .kc-navbar-logo {
        height: 34px;
        max-width: 60px;
    }
}

/* Mobile */
@media (max-width: 575.98px) {

    .kc-navbar-brand {
        gap: 7px;
    }

    .kc-navbar-logo {
        height: 30px;
        max-width: 50px;
    }

    .navbar-brand-text {
        font-size: 0.95rem;
    }
}



/* =========================================================
   SERVICE POS - ADDITIONAL INFORMATION MODAL
   RTL / Arabic / 3 Columns
========================================================= */

#serviceExtraDetailsModal {
    direction: rtl;
    text-align: right;
}

#serviceExtraDetailsModal .service-extra-dialog {
    width: min(96vw, 1500px);
    max-width: min(96vw, 1500px);
    margin: 1rem auto;
}

#serviceExtraDetailsModal .service-extra-content {
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #f7f9fc;
    box-shadow:
        0 25px 80px rgba(15, 23, 42, 0.22),
        0 6px 20px rgba(15, 23, 42, 0.08);
}

/* =========================================================
   Header
========================================================= */

#serviceExtraDetailsModal .service-extra-header {
    min-height: 76px;
    padding: 14px 22px;
    border: 0;
    border-bottom: 1px solid #e7ebf1;
    background: #ffffff;
}

#serviceExtraDetailsModal .service-extra-header-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;
    background: rgba(13, 110, 253, 0.10);
    color: #0d6efd;
    font-size: 1.4rem;
}

#serviceExtraDetailsModal .service-extra-header .modal-title {
    margin: 0;
    color: #172033;
    font-size: 1.15rem;
    font-weight: 800;
}

#serviceExtraDetailsModal .service-extra-subtitle {
    margin-top: 3px;
    color: #7b8495;
    font-size: 0.79rem;
}

/* Bootstrap RTL close button fix */
#serviceExtraDetailsModal .modal-header .btn-close {
    margin: 0 auto 0 0;
}

/* =========================================================
   Body
========================================================= */

#serviceExtraDetailsModal .service-extra-body {
    padding: 16px;
    overflow: visible;
}

/*
|--------------------------------------------------------------------------
| THREE MAIN COLUMNS
|--------------------------------------------------------------------------
*/

#serviceExtraDetailsModal .service-extra-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

/* =========================================================
   Sections / Cards
========================================================= */

#serviceExtraDetailsModal .service-extra-section {
    min-width: 0;
    padding: 14px;

    border: 1px solid #e3e8ef;
    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 3px 12px rgba(15, 23, 42, 0.035);
}

#serviceExtraDetailsModal .service-extra-section-title {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 13px;
    padding-bottom: 11px;

    border-bottom: 1px solid #edf0f4;
}

#serviceExtraDetailsModal .service-extra-section-title .section-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    color: #0d6efd;
    background: #eef5ff;

    font-size: 1.05rem;
}

#serviceExtraDetailsModal .service-extra-section-title strong {
    display: block;

    color: #172033;
    font-size: 0.95rem;
    font-weight: 800;
}

#serviceExtraDetailsModal .service-extra-section-title small {
    display: block;

    margin-top: 1px;

    color: #8a93a3;
    font-size: 0.70rem;
}

/* =========================================================
   Fields
========================================================= */

#serviceExtraDetailsModal .service-extra-fields {
    display: grid;
    gap: 10px;
}

#serviceExtraDetailsModal .service-extra-field {
    min-width: 0;
}

#serviceExtraDetailsModal .service-two-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

#serviceExtraDetailsModal .service-full-field {
    grid-column: 1 / -1;
}

#serviceExtraDetailsModal .form-label {
    margin-bottom: 4px;

    color: #4b5565;

    font-size: 0.78rem;
    font-weight: 700;
}

#serviceExtraDetailsModal .form-control,
#serviceExtraDetailsModal .form-select {
    min-height: 42px;
    padding-top: 7px;
    padding-bottom: 7px;

    border: 1px solid #dce2ea;
    border-radius: 9px;

    background-color: #fff;

    color: #172033;

    font-size: 0.87rem;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
}

#serviceExtraDetailsModal .form-control:hover,
#serviceExtraDetailsModal .form-select:hover {
    border-color: #bbc5d2;
}

#serviceExtraDetailsModal .form-control:focus,
#serviceExtraDetailsModal .form-select:focus {
    border-color: rgba(13, 110, 253, 0.65);

    box-shadow:
        0 0 0 3px rgba(13, 110, 253, 0.10);

    background-color: #fff;
}

#serviceExtraDetailsModal .form-control[readonly] {
    color: #667085;
    background: #f4f6f8;
}

#serviceExtraDetailsModal .form-text {
    margin-top: 4px;
    color: #8a93a3;
    font-size: 0.68rem;
    line-height: 1.35;
}

/* =========================================================
   Input Groups
========================================================= */

#serviceExtraDetailsModal .service-input-group {
    direction: rtl;
}

#serviceExtraDetailsModal .service-input-group .input-group-text {
    min-width: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-color: #dce2ea;

    color: #607087;
    background: #f4f7fa;

    font-size: 0.78rem;
    font-weight: 700;
}

/* =========================================================
   Add customer
========================================================= */

#serviceExtraDetailsModal .service-add-customer-btn {
    min-height: 40px;

    border-radius: 9px;

    font-size: 0.82rem;
    font-weight: 700;
}

#serviceExtraDetailsModal .quick-customer-box {
    padding: 10px;

    border: 1px dashed rgba(13, 110, 253, 0.35);
    border-radius: 11px;

    background: #f7fbff;
}

#serviceExtraDetailsModal .quick-customer-message {
    display: flex;
    align-items: flex-start;
    gap: 7px;

    margin-bottom: 9px;

    color: #3d5d7d;

    font-size: 0.70rem;
    line-height: 1.5;
}

#serviceExtraDetailsModal .quick-customer-message i {
    margin-top: 2px;
    color: #0d6efd;
}

#serviceExtraDetailsModal .quick-customer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

/* =========================================================
   Notes
========================================================= */

#serviceExtraDetailsModal .service-notes {
    min-height: 84px;
    max-height: 84px;
    resize: none;
}

/* =========================================================
   Footer
========================================================= */

#serviceExtraDetailsModal .service-extra-footer {
    min-height: 64px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 18px;

    border: 0;
    border-top: 1px solid #e7ebf1;

    background: #ffffff;
}

#serviceExtraDetailsModal .service-extra-footer-hint {
    display: flex;
    align-items: center;
    gap: 7px;

    color: #7a8493;

    font-size: 0.75rem;
}

#serviceExtraDetailsModal .service-extra-footer-hint i {
    color: #198754;
}

#serviceExtraDetailsModal .service-extra-done-btn {
    min-width: 130px;
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    border: 0;
    border-radius: 10px;

    font-size: 0.88rem;
    font-weight: 800;

    box-shadow:
        0 5px 14px rgba(13, 110, 253, 0.20);
}

/* =========================================================
   Arabic / RTL
========================================================= */

#serviceExtraDetailsModal input,
#serviceExtraDetailsModal textarea,
#serviceExtraDetailsModal select,
#serviceExtraDetailsModal label {
    text-align: right;
}

#serviceExtraDetailsModal select.form-select {
    background-position: left 0.75rem center;
    padding-left: 2.25rem;
    padding-right: 0.75rem;
}

/* Numbers are easier to read in LTR */
#serviceExtraDetailsModal input[type="number"],
#serviceExtraDetailsModal input[type="date"] {
    direction: ltr;
    text-align: right;
}

/* =========================================================
   Desktop Height Optimization
========================================================= */

@media (min-width: 1200px) {

    #serviceExtraDetailsModal .modal-dialog {
        max-height: calc(100vh - 20px);
    }

    #serviceExtraDetailsModal .service-extra-content {
        max-height: calc(100vh - 20px);
    }

    #serviceExtraDetailsModal .service-extra-body {
        flex: 1 1 auto;
    }
}

/* =========================================================
   Medium Screens
========================================================= */

@media (max-width: 1199.98px) {

    #serviceExtraDetailsModal .service-extra-columns {
        grid-template-columns: repeat(3, minmax(250px, 1fr));
        gap: 10px;
    }

    #serviceExtraDetailsModal .service-extra-section {
        padding: 11px;
    }

    #serviceExtraDetailsModal .form-control,
    #serviceExtraDetailsModal .form-select {
        min-height: 39px;
        font-size: 0.82rem;
    }

    #serviceExtraDetailsModal .service-extra-section-title {
        margin-bottom: 9px;
        padding-bottom: 8px;
    }

    #serviceExtraDetailsModal .service-extra-fields {
        gap: 7px;
    }
}

/* =========================================================
   Tablet
========================================================= */

@media (max-width: 991.98px) {

    #serviceExtraDetailsModal .service-extra-dialog {
        width: 96vw;
        max-width: 96vw;
    }

    #serviceExtraDetailsModal .service-extra-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /*
     On tablet scrolling may become necessary because screen height
     is considerably smaller.
    */
    #serviceExtraDetailsModal .service-extra-body {
        max-height: calc(100vh - 150px);
        overflow-y: auto;
    }
}

/* =========================================================
   Mobile
========================================================= */

@media (max-width: 767.98px) {

    #serviceExtraDetailsModal .service-extra-dialog {
        width: calc(100vw - 12px);
        max-width: calc(100vw - 12px);
        margin: 6px auto;
    }

    #serviceExtraDetailsModal .service-extra-columns {
        grid-template-columns: 1fr;
    }

    #serviceExtraDetailsModal .service-two-fields,
    #serviceExtraDetailsModal .quick-customer-grid {
        grid-template-columns: 1fr;
    }

    #serviceExtraDetailsModal .service-extra-header {
        padding: 10px 12px;
    }

    #serviceExtraDetailsModal .service-extra-body {
        padding: 9px;
    }

    #serviceExtraDetailsModal .service-extra-footer {
        padding: 8px 10px;
    }

    #serviceExtraDetailsModal .service-extra-footer-hint {
        display: none;
    }

    #serviceExtraDetailsModal .service-extra-done-btn {
        width: 100%;
    }
}

.service-pos-v2-brand h1 a {
    color: inherit; /* Keeps the color matching your original h1 styling */
    text-decoration: none; /* Removes the default underline */
}

.service-pos-v2-brand h1 a:hover {
    color: inherit; /* Keeps the color consistent when hovered */
}

/* =========================================================
   Global Application Popup Modal
   Used by company switching, service orders, and other pages.
   ========================================================= */

#appPopupModal {
    --kc-popup-dark: #0f172a;
    --kc-popup-gold: #f59e0b;
    --kc-popup-success: #16a34a;
    --kc-popup-danger: #dc2626;
    --kc-popup-warning: #d97706;
    --kc-popup-info: #2563eb;
}

#appPopupModal .modal-dialog {
    max-width: 500px;
}

#appPopupModal .kc-popup-modal-card {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 28px 70px rgba(15, 23, 42, .28);
}

#appPopupModal .kc-popup-modal-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    content: "";
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--kc-popup-gold) 50%,
        transparent 100%
    );
}

#appPopupModal .modal-body {
    padding: 2.25rem 2rem 2rem;
    text-align: center;
}

#appPopupModal .kc-popup-icon {
    width: 86px;
    height: 86px;
    margin: 0 auto 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 3rem;
    animation: kcAppPopupIconIn .28s ease-out both;
}

#appPopupModal .kc-popup-icon.is-success {
    color: var(--kc-popup-success);
    background: rgba(22, 163, 74, .10);
    box-shadow: 0 0 0 10px rgba(22, 163, 74, .05);
}

#appPopupModal .kc-popup-icon.is-danger {
    color: var(--kc-popup-danger);
    background: rgba(220, 38, 38, .10);
    box-shadow: 0 0 0 10px rgba(220, 38, 38, .05);
}

#appPopupModal .kc-popup-icon.is-warning {
    color: var(--kc-popup-warning);
    background: rgba(217, 119, 6, .11);
    box-shadow: 0 0 0 10px rgba(217, 119, 6, .05);
}

#appPopupModal .kc-popup-icon.is-info {
    color: var(--kc-popup-info);
    background: rgba(37, 99, 235, .10);
    box-shadow: 0 0 0 10px rgba(37, 99, 235, .05);
}

#appPopupModal .kc-popup-title {
    margin: 0 0 .75rem;
    color: var(--kc-popup-dark);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.6;
}

#appPopupModal .kc-popup-message {
    margin: 0 auto 1.5rem;
    max-width: 390px;
    color: #64748b;
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.9;
    white-space: pre-line;
}

#appPopupModal .kc-popup-button {
    min-width: 155px;
    min-height: 46px;
    padding: .65rem 1.5rem;
    color: #fff;
    font-weight: 800;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .18);
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

#appPopupModal .kc-popup-button:hover,
#appPopupModal .kc-popup-button:focus {
    color: #fff;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .24);
    transform: translateY(-1px);
}

#appPopupModal .kc-popup-button:focus-visible {
    outline: 3px solid rgba(245, 158, 11, .38);
    outline-offset: 3px;
}

@keyframes kcAppPopupIconIn {
    from {
        opacity: 0;
        transform: scale(.65);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 575.98px) {
    #appPopupModal .modal-dialog {
        margin: 1rem;
    }

    #appPopupModal .modal-body {
        padding: 2rem 1.25rem 1.5rem;
    }

    #appPopupModal .kc-popup-icon {
        width: 76px;
        height: 76px;
        font-size: 2.6rem;
    }

    #appPopupModal .kc-popup-button {
        width: 100%;
    }
}

 /* Inventory Adjustment - Filter Block */
body.purchase-invoice-dark-theme .adjustment-filter-card,
body.inventory-dark-theme .adjustment-filter-card {
    background:
        linear-gradient(
            135deg,
            #6f4e0f 0%,
            #b8860b 18%,
            #d4af37 42%,
            #f3d675 58%,
            #c99a18 78%,
            #7a5510 100%
        ) !important;

    border: 1px solid #e0bd55 !important;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;

    color: #111 !important;
}

body.purchase-invoice-dark-theme .adjustment-filter-card > .card-header,
body.purchase-invoice-dark-theme .adjustment-filter-card > .card-body,
body.inventory-dark-theme .adjustment-filter-card > .card-header,
body.inventory-dark-theme .adjustment-filter-card > .card-body {
    background: transparent !important;
    color: #111 !important;
}

.adjustment-filter-card .form-label,
.adjustment-filter-card h2,
.adjustment-filter-card i {
    color: #111 !important;
    font-weight: 700;
}

.adjustment-filter-card .form-control,
.adjustment-filter-card .form-select {
    background-color: rgba(255, 255, 255, 0.92) !important;
    color: #111 !important;
    border: 1px solid rgba(90, 60, 0, 0.35) !important;
}

.adjustment-filter-card .form-control:focus,
.adjustment-filter-card .form-select:focus {
    background-color: #fff !important;
    color: #111 !important;
    border-color: #6f4e0f !important;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.28) !important;
}

.purchase-invoice-dark-theme #sourceDocumentSearchPanel {
    background-color: #0f172a !important;
    color: #f8fafc;
    border-color: #475569 !important;
    color-scheme: dark;
}

.purchase-invoice-dark-theme #sourceDocumentSearchPanel .btn {
    background-color: #1e293b !important;
    color: #f8fafc !important;
    border-color: #475569 !important;
}

.purchase-invoice-dark-theme #sourceDocumentSearchPanel .btn:hover,
.purchase-invoice-dark-theme #sourceDocumentSearchPanel .btn:focus-visible {
    background-color: #334155 !important;
    color: #fff !important;
    border-color: #f59e0b !important;
}

.purchase-invoice-dark-theme #sourceDocumentSearchPanel .btn-primary {
    background-color: #1d4ed8 !important;
    color: #fff !important;
    border-color: #60a5fa !important;
}

.purchase-invoice-dark-theme #sourceDocumentSearchPanel .form-control::placeholder {
    color: #cbd5e1;
    opacity: 1;
}

.adjustment-filter-card .form-control::placeholder {
    color: #6c6250 !important;
}
