/* ==========================================================================
   PRODUCTION GRAPHIC DESIGN SYSTEM SPECIFICATIONS: MONOCHROME LUXURY DESIGN 
   ========================================================================== */

:root {
    --color-pure-black: #000000;
    --color-matte-black: #0a0a0a;
    --color-dark-gray: #141414;
    --color-border-charcoal: #262626;
    --color-muted-gray: #8e8e93;
    --color-light-gray-bg: #f5f5f7;
    --color-pure-white: #ffffff;
    --color-success-green: #34c759;
    --color-success-glow: rgba(52, 199, 89, 0.15);
    --font-stack-premium: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition-premium-fluid: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-micro-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

/* Base Document Structuring Configuration Engine */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-stack-premium);
    background-color: var(--color-pure-black);
    color: var(--color-pure-white);
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Master Layout Framework Container */
.app-container {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100vw;
    height: 100vh;
    max-width: 480px; /* Enterprise Mobile Target Native Viewport Containment Bound */
    margin: 0 auto;
    background-color: var(--color-matte-black);
    border-left: 1px solid var(--color-border-charcoal);
    border-right: 1px solid var(--color-border-charcoal);
}

/* Single-Page Component Transition Architecture Engine Base */
.app-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.98) translateY(8px);
    transition: var(--transition-premium-fluid);
    z-index: 1;
}

.app-page.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
    z-index: 2;
}

/* Fluid Native Scrolling Engine Matrix Viewport Customizers */
.scroll-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 140px; /* Allocates adequate visual spacing overhead above structural FAB stack UI elements */
    -webkit-overflow-scrolling: touch;
}

.scroll-container::-webkit-scrollbar {
    width: 0px; /* Removes visible scroll bars to sustain clean, minimalist layout lines */
}

/* High-End Enterprise Layout Branding Header Modules */
.premium-header {
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px 20px;
    border-bottom: 1px solid var(--color-border-charcoal);
    sticky-position: top;
    z-index: 10;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    background-color: var(--color-pure-white);
    color: var(--color-pure-black);
    font-weight: 700;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0px; /* Strict architectural geometric structures call for sharp, cornerless boxes */
}

.brand-text h1 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
}

.brand-sub {
    font-size: 9px;
    color: var(--color-muted-gray);
    letter-spacing: 1px;
    margin-top: 2px;
}

/* Live Billing Terminal Header Variant Metadata Configuration Components */
.billing-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-heading {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 4px;
}

.pill-badge {
    font-size: 9px;
    font-weight: 600;
    background: #1c1c1e;
    color: var(--color-pure-white);
    padding: 4px 8px;
    letter-spacing: 1px;
    border: 1px solid var(--color-border-charcoal);
}

.meta-right {
    text-align: right;
}

.invoice-number {
    font-size: 16px;
    font-family: monospace;
    font-weight: 700;
}

.live-clock {
    font-size: 11px;
    color: var(--color-muted-gray);
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
}

/* Premium Component Card Elements UI Framework */
.premium-card {
    background-color: var(--color-dark-gray);
    border: 1px solid var(--color-border-charcoal);
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    transition: var(--transition-premium-fluid);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-header h2 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--color-pure-white);
}

.status-badge {
    font-size: 9px;
    color: var(--color-success-green);
    letter-spacing: 0.5px;
    font-weight: 500;
}

.border-bottom {
    border-bottom: 1px solid var(--color-border-charcoal);
    padding-bottom: 12px;
}

/* Micro-Engineered Dense Form Controls and Inputs Grid Architecture */
.grid-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.full-width {
    grid-column: span 2;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 10px;
    font-weight: 500;
    color: var(--color-muted-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input {
    background-color: var(--color-pure-black);
    border: 1px solid var(--color-border-charcoal);
    color: var(--color-pure-white);
    padding: 12px;
    font-family: var(--font-stack-premium);
    font-size: 14px;
    outline: none;
    transition: var(--transition-premium-fluid);
}

.input-group input:focus {
    border-color: var(--color-pure-white);
}

/* High Contrast Premium Transaction Action Elements Framework Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    font-family: var(--font-stack-premium);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition-premium-fluid);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--color-pure-white);
    color: var(--color-pure-black);
}

.btn-primary:active {
    background-color: var(--color-muted-gray);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-pure-white);
    border: 1px solid var(--color-border-charcoal);
}

.btn-secondary:active {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--color-muted-gray);
}

/* Micro-Interactions: Premium Ripple Feedback Core Execution CSS Engine Layer */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Tabular Responsive Data Matrices Framework Structure Layout viewports */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.premium-table th {
    color: var(--color-muted-gray);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 8px;
    border-bottom: 1px solid var(--color-border-charcoal);
}

.premium-table td {
    padding: 14px 8px;
    border-bottom: 1px solid rgba(38, 38, 38, 0.5);
    vertical-align: middle;
}

.row-delete-btn {
    background: transparent;
    border: none;
    color: var(--color-muted-gray);
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    transition: var(--transition-premium-fluid);
}

.row-delete-btn:hover, .row-delete-btn:active {
    color: var(--color-pure-white);
}

/* Dynamic Live Search and Inventory Filter Overlay Wrappers */
.search-wrapper input {
    background-color: var(--color-pure-black);
    border: 1px solid var(--color-border-charcoal);
    color: var(--color-pure-white);
    padding: 6px 10px;
    font-size: 11px;
    font-family: var(--font-stack-premium);
    outline: none;
}

.search-wrapper input:focus {
    border-color: var(--color-muted-gray);
}

/* Core System Empty Data States Illustration Styling Rules Architecture */
.empty-state-container {
    padding: 40px 20px;
    text-align: center;
    color: var(--color-muted-gray);
}

.empty-state-container h3 {
    color: var(--color-pure-white);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.empty-state-container p {
    font-size: 11px;
    line-height: 1.5;
    max-width: 260px;
    margin: 0 auto 16px auto;
}

.hidden {
    display: none !important;
}

/* Manual Line Entry Input System Overrides Widget Box UI layout styles */
.manual-override-box {
    display: flex;
    gap: 8px;
    max-width: 280px;
    margin: 16px auto 0 auto;
}

.manual-override-box input {
    flex: 1;
    background-color: var(--color-pure-black);
    border: 1px solid var(--color-border-charcoal);
    color: var(--color-pure-white);
    padding: 8px 12px;
    font-family: var(--font-stack-premium);
    font-size: 12px;
    outline: none;
}

.manual-override-box button {
    padding: 8px 16px;
    font-size: 11px;
}

/* Dynamic Live Quantity Ledger Counter Interactivity Component Engine UI */
.quantity-control-cluster {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #1c1c1e;
    padding: 4px 8px;
    border: 1px solid var(--color-border-charcoal);
    width: max-content;
    margin: 0 auto;
}

.qty-adjust-btn {
    background: transparent;
    border: none;
    color: var(--color-pure-white);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-display-value {
    font-size: 13px;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
}

/* Fixed Persistent Bottom Financial Ledger Computation Matrix Control Dock */
.sticky-financial-footer {
    position: absolute;
    bottom: 84px; /* Suspended safely right over top standard system platform execution nav blocks */
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--color-border-charcoal);
    padding: 16px 20px;
    z-index: 5;
}

.financial-breakdown {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.fin-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fin-row .label {
    font-size: 10px;
    color: var(--color-muted-gray);
    letter-spacing: 0.5px;
}

.fin-row .value {
    font-size: 13px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.financial-breakdown .total-row {
    border-top: 1px dashed var(--color-border-charcoal);
    margin-top: 4px;
    padding-top: 8px;
}

.total-row .label {
    font-size: 11px;
    color: var(--color-pure-white);
    font-weight: 600;
    letter-spacing: 1px;
}

.total-row .value {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-pure-white);
}

.action-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 12px;
}

/* Structural Global Native Navigation System Core Bar Layout Frame styling elements */
.system-bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 84px;
    background-color: var(--color-pure-black);
    border-top: 1px solid var(--color-border-charcoal);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: var(--safe-area-bottom);
    z-index: 20;
}

.nav-item {
    background: transparent;
    border: none;
    color: var(--color-muted-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    width: 80px;
    height: 100%;
    transition: var(--transition-premium-fluid);
}

.nav-item-spacer {
    width: 72px; /* Generates a structured layout safety channel for floating operational execution units */
    pointer-events: none;
}

.nav-item.active {
    color: var(--color-pure-white);
}

.nav-icon {
    width: 20px;
    height: 20px;
}

.nav-item span {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Premium Fintech Styled Floating Circular Scanning Module Hub Frame */
.scanner-fab-anchor {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
}

.scanner-fab-button {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.fab-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--color-pure-white);
    opacity: 0.15;
    animation: fab-pulsate 2.5s infinite ease-out;
    z-index: 1;
}

@keyframes fab-pulsate {
    0% { transform: scale(1); opacity: 0.25; }
    50% { transform: scale(1.15); opacity: 0.08; }
    100% { transform: scale(1.3); opacity: 0; }
}

.fab-glass-body {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: var(--transition-micro-bounce);
    color: var(--color-pure-white);
}

.scanner-fab-button:active .fab-glass-body {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-pure-white);
}

.scan-svg {
    width: 26px;
    height: 26px;
}

/* Optical Image Capture Live Hardware Stream Modal Platform Overlay Window */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-premium-fluid);
    z-index: 100;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-window {
    width: 90%;
    max-width: 400px;
    background-color: var(--color-matte-black);
    border: 1px solid var(--color-border-charcoal);
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: var(--transition-premium-fluid);
}

.modal-overlay.active .modal-window {
    transform: scale(1);
}

.modal-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--color-border-charcoal);
}

.modal-top-bar h3 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--color-muted-gray);
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--color-pure-white);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

/* Precise Scanner Hardware Pipeline Camera Emulation Array Framing Viewport */
.scanner-optical-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #020202;
    overflow: hidden;
}

#scanner-hardware-stream {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Target Reticle Overlay UI and Animated Scanning Lasers */
.optical-reticle-crosshair {
    position: absolute;
    top: 15%;
    left: 15%;
    width: 70%;
    height: 70%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.5); /* Instantly cuts custom matte viewport mask passouts */
    pointer-events: none;
    z-index: 3;
}

.scanner-laser-line {
    position: absolute;
    width: 70%;
    height: 2px;
    background-color: var(--color-pure-white);
    left: 15%;
    top: 15%;
    z-index: 4;
    box-shadow: 0 0 12px var(--color-pure-white);
    animation: laser-sweep 2.2s infinite ease-in-out;
    pointer-events: none;
}

@keyframes laser-sweep {
    0% { top: 15%; opacity: 0.3; }
    50% { top: 85%; opacity: 1; mix-blend-mode: overlay; }
    100% { top: 15%; opacity: 0.3; }
}

.scanner-status-tray {
    padding: 16px;
    text-align: center;
    border-top: 1px solid var(--color-border-charcoal);
    background-color: var(--color-dark-gray);
}

#scanner-feedback-msg {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--color-muted-gray);
    transition: var(--transition-premium-fluid);
}

/* Interactive Hardware Capture Response Glow Micro-Animations */
.optical-capture-success-glow {
    animation: hardware-success-flash 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes hardware-success-flash {
    0% { box-shadow: inset 0 0 60px rgba(52, 199, 89, 0.8); border-color: var(--color-success-green); }
    100% { box-shadow: inset 0 0 0px rgba(52, 199, 89, 0); border-color: rgba(255, 255, 255, 0.25); }
}

/* ==========================================================================
   PRODUCTION HARDWARE TARGET: DISCRETE PRINT THERMAL STYLING SPECIFICATIONS
   ========================================================================== */
.thermal-receipt-element-container {
    display: none; /* Safely isolated outside structural rendering trees for typical GUI operations */
}

@media print {
    /* Kill global browser chrome architecture components universally */
    body, html, .app-container, .modal-overlay {
        background: var(--color-pure-white) !important;
        color: var(--color-pure-black) !important;
        overflow: visible !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
    }

    .app-container, .modal-overlay, .system-bottom-nav, .scanner-fab-anchor, .sticky-financial-footer, .premium-header {
        display: none !important;
    }

    /* Mount clean execution interface targets for high-precision physical print production heads */
    .thermal-receipt-element-container {
        display: block !important;
        width: 58mm; /* Standard Point-of-Sale Hardware Media Dimension Standard Profile widths */
        margin: 0 auto;
        padding: 4mm 2mm;
        font-family: 'Courier New', Courier, monospace !important;
        color: var(--color-pure-black) !important;
        background-color: var(--color-pure-white) !important;
        font-size: 12px;
        line-height: 1.4;
    }

    .thermal-receipt-element-container .receipt-center-wrapper {
        text-align: center;
        margin-bottom: 4mm;
    }

    .thermal-receipt-element-container .receipt-store-title {
        font-size: 16px;
        font-weight: 700;
        text-transform: uppercase;
        margin-bottom: 1mm;
        letter-spacing: 1px;
    }

    .thermal-receipt-element-container .receipt-meta-text {
        font-size: 11px;
        margin-bottom: 0.5mm;
    }

    .thermal-receipt-element-container .receipt-separator {
        border-top: 1px dashed var(--color-pure-black) !important;
        margin: 3mm 0;
        width: 100%;
        display: block;
    }

    .thermal-receipt-element-container .receipt-line-item-row {
        display: flex;
        justify-content: space-between;
        font-size: 11px;
        margin-bottom: 1.5mm;
    }

    .thermal-receipt-element-container .receipt-financials-aggregate-block {
        display: flex;
        flex-direction: column;
        gap: 1mm;
        align-items: flex-end;
        margin-top: 2mm;
    }

    .thermal-receipt-element-container .receipt-financials-row {
        display: flex;
        width: 100%;
        justify-content: space-between;
        font-size: 11px;
    }

    .thermal-receipt-element-container .receipt-grand-settlement {
        font-size: 14px;
        font-weight: 700;
        border-top: 1px dashed var(--color-pure-black);
        padding-top: 1.5mm;
        margin-top: 1mm;
    }
}