/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Font Families */
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --font-secondary: 'Outfit', sans-serif;
    --font-mono: 'Courier New', Courier, monospace;

    /* Theme Transition */
    --transition-speed: 0.3s;
    --border-radius-sm: 8px;
    --border-radius-md: 14px;
    --border-radius-lg: 24px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);

    /* Light Theme Tokens */
    --bg-app: #f4f6fa;
    --bg-sidebar: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #f8fafc;
    --border-color: #e2e8f0;
    
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-white: #ffffff;
    
    --primary: #4f46e5;
    --primary-light: #e0e7ff;
    --primary-dark: #3730a3;
    
    --success: #10b981;
    --success-light: #d1fae5;
    --success-dark: #065f46;
    
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --warning-dark: #92400e;
    
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --danger-dark: #991b1b;
}

.dark-theme {
    /* Dark Theme Tokens */
    --bg-app: #0f172a;
    --bg-sidebar: #1e293b;
    --bg-card: #1e293b;
    --bg-input: #0f172a;
    --border-color: #334155;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --primary: #6366f1;
    --primary-light: #312e81;
    --primary-dark: #4338ca;
    
    --success: #10b981;
    --success-light: #064e3b;
    --success-dark: #d1fae5;
    
    --warning: #fbbf24;
    --warning-light: #78350f;
    --warning-dark: #fef3c7;
    
    --danger: #f87171;
    --danger-light: #7f1d1d;
    --danger-dark: #fee2e2;
}

/* ==========================================================================
   RESET & BASICS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
}

body {
    background-color: var(--bg-app);
    color: var(--text-main);
    overflow-x: hidden;
    height: 100vh;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

a {
    text-decoration: none;
    color: inherit;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

button {
    cursor: pointer;
}

ul {
    list-style: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Utilities */
.d-none { display: none !important; }
.text-center { text-align: center; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.pb-3 { padding-bottom: 1rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 1rem; }
.pt-4 { padding-top: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.font-bold { font-weight: 700; }
.border-top { border-top: 1px solid var(--border-color); }
.text-muted { color: var(--text-muted) !important; }

/* ==========================================================================
   APP LAYOUT & NAVIGATION
   ========================================================================== */
.app-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 100;
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.sidebar-header {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-secondary);
    font-size: 24px;
    font-weight: 800;
}

.logo-icon {
    color: var(--primary);
    stroke-width: 2.5px;
}

.accent-text {
    color: var(--primary);
}

.badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-success {
    background-color: var(--success-light);
    color: var(--success-dark);
}

.sidebar-nav {
    flex: 1;
    padding: 24px 16px;
    overflow-y: auto;
}

.sidebar-nav ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    color: var(--text-muted);
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.nav-item i {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
}

.nav-item:hover {
    background-color: var(--bg-app);
    color: var(--text-main);
}

.nav-item.active {
    background-color: var(--primary);
    color: var(--text-white);
}

.sidebar-footer {
    padding: 20px 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.merchant-mini-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
}

.merchant-mini-profile .avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.merchant-mini-profile .info h4 {
    font-size: 14px;
    font-weight: 600;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.merchant-mini-profile .info p {
    font-size: 12px;
    color: var(--text-muted);
}

.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--bg-app);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: var(--border-radius-sm);
    color: var(--text-main);
    width: 100%;
    font-weight: 500;
    transition: background-color 0.2s;
}

.theme-toggle-btn:hover {
    background-color: var(--border-color);
}

/* Main Content Area Styling */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.top-navbar {
    background-color: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-color);
    padding: 18px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.top-navbar h1 {
    font-family: var(--font-secondary);
    font-size: 22px;
    font-weight: 700;
}

.top-navbar .subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    background-color: var(--bg-app);
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.current-date-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.current-date-badge i {
    width: 16px;
    height: 16px;
}

.page-container {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

.app-page {
    display: none;
}

.app-page.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   BUTTONS, CARDS & GENERAL UI
   ========================================================================= */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.card-title-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.card-title-badge i {
    color: var(--primary);
    width: 20px;
    height: 20px;
}

.card-title-badge h3 {
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-secondary);
}

.card-subtitle-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-white);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-main);
}
.btn-outline:hover {
    background-color: var(--bg-app);
}

.btn-danger-outline {
    background-color: transparent;
    border-color: var(--danger);
    color: var(--danger);
}
.btn-danger-outline:hover {
    background-color: var(--danger-light);
}

.btn-block {
    width: 100%;
}

.status-indicator-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-indicator-badge.success {
    background-color: var(--success-light);
    color: var(--success-dark);
}

.dot-blink {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: blink 1.2s infinite;
}

.bg-success { background-color: var(--success); }

@keyframes blink {
    0% { opacity: 0.2; }
    50% { opacity: 1; }
    100% { opacity: 0.2; }
}

/* ==========================================================================
   FORM CONTROLS
   ========================================================================== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-group label .required {
    color: var(--danger);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-input);
    color: var(--text-main);
    transition: all 0.2s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-divider {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin: 24px 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--border-color);
}

.field-info {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Input Prefix Wrapper */
.input-prefix-wrapper {
    display: flex;
    position: relative;
}

.input-prefix-wrapper .prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: var(--text-muted);
    pointer-events: none;
}

.input-prefix-wrapper input {
    padding-left: 42px;
}

/* Input Action Wrapper */
.input-action-wrapper {
    display: flex;
    position: relative;
}

.input-action-wrapper input {
    padding-right: 48px;
}

.btn-icon-action {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    transition: background-color 0.2s, color 0.2s;
}

.btn-icon-action:hover {
    background-color: var(--border-color);
    color: var(--text-main);
}

/* Input Source Toggle */
.input-source-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 4px;
    margin-bottom: 20px;
}

.source-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s;
}

.source-tab i {
    width: 16px;
    height: 16px;
}

.source-tab.active {
    background-color: var(--bg-card);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Drag and Drop Zone */
.drag-drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 32px 20px;
    text-align: center;
    background-color: var(--bg-input);
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.drag-drop-zone:hover, .drag-drop-zone.dragover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.upload-icon {
    width: 42px;
    height: 42px;
    color: var(--text-muted);
    margin-bottom: 12px;
    stroke-width: 1.5px;
}

.drag-drop-zone:hover .upload-icon {
    color: var(--primary);
}

.upload-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.upload-info {
    font-size: 11px;
    color: var(--text-muted);
}

.feedback-message {
    font-size: 12px;
    margin-top: 8px;
    font-weight: 600;
}
.feedback-message.success { color: var(--success); }
.feedback-message.error { color: var(--danger); }

/* Bill Summary Preview inside form */
.bill-summary-preview {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

.preview-item.total {
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
    margin-top: 4px;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
}

/* ==========================================================================
   DASHBOARD PAGES SPECIFICS (STATS & CHARTS)
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    width: 26px;
    height: 26px;
    stroke-width: 2px;
}

.stat-icon.revenue { background-color: var(--primary-light); color: var(--primary); }
.stat-icon.success { background-color: var(--success-light); color: var(--success); }
.stat-icon.pending { background-color: var(--warning-light); color: var(--warning); }
.stat-icon.average { background-color: #f1f5f9; color: #334155; }
.dark-theme .stat-icon.average { background-color: #334155; color: #e2e8f0; }

.stat-details {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-value {
    font-family: var(--font-secondary);
    font-size: 22px;
    font-weight: 800;
    margin: 4px 0 2px 0;
}

.stat-trend {
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-trend i {
    width: 12px;
    height: 12px;
}

.trend-up { color: var(--success); }
.trend-down { color: var(--danger); }

.charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.chart-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

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

.card-header-flex h3 {
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 700;
}

.chart-actions {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.legend-dot.bg-primary { background-color: var(--primary); }

.chart-container {
    position: relative;
    height: 280px;
    width: 100%;
}

/* Table Design */
.table-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    padding: 8px 0 0 0;
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.table-card .card-header-flex {
    padding: 16px 24px;
    margin-bottom: 8px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table th {
    background-color: var(--bg-app);
    padding: 12px 24px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-speed);
}

.table td {
    padding: 16px 24px;
    font-size: 13.5px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover td {
    background-color: var(--bg-input);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.status-badge.success { background-color: var(--success-light); color: var(--success-dark); }
.status-badge.pending { background-color: var(--warning-light); color: var(--warning-dark); }
.status-badge.failed { background-color: var(--danger-light); color: var(--danger-dark); }

.wallet-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.wallet-icon-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.wallet-dot-gopay { background-color: #00a5cf; }
.wallet-dot-dana { background-color: #108ee9; }
.wallet-dot-ovo { background-color: #4f2d7f; }
.wallet-dot-shopeepay { background-color: #ee4d2d; }
.wallet-dot-linkaja { background-color: #e60012; }
.wallet-dot-mbanking { background-color: #1e3a8a; }
.wallet-dot-none { background-color: var(--text-muted); }

/* Action Links inside Tables */
.action-buttons-flex {
    display: flex;
    gap: 8px;
}

.btn-table-action {
    background: transparent;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s;
}

.btn-table-action:hover {
    background-color: var(--border-color);
    color: var(--text-main);
}
.btn-table-action.success-action:hover {
    background-color: var(--success-light);
    color: var(--success-dark);
}
.btn-table-action.danger-action:hover {
    background-color: var(--danger-light);
    color: var(--danger-dark);
}

.btn-table-action i {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   QRIS GENERATOR LAYOUT
   ========================================================================== */
.generator-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: start;
}

.qris-preview-column {
    position: sticky;
    top: 32px;
}

.qris-frame-outer-card {
    display: flex;
    flex-direction: column;
}

/* High Fidelity standard merchant QRIS plate template styling */
.qris-plate-container {
    background-color: #ffffff;
    border: 3px solid #e2e8f0;
    border-radius: var(--border-radius-md);
    padding: 20px;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
    color: #1a202c; /* Force standard text dark style on visual plate, regardless of dark mode */
}

.qris-plate-header {
    background-color: #ef4444; /* Standard Red */
    border-radius: 8px 8px 0 0;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -20px -20px 14px -20px;
}

.qris-logo-main {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
}

.qris-logo-main .qris-q {
    color: #f59e0b; /* Orange Yellow */
}
.qris-logo-main .qris-is {
    color: #ffffff;
}

.qris-support-logos {
    text-align: right;
}

.bi-text {
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.gpn-logo {
    display: inline-block;
    background-color: #ffffff;
    color: #1e3a8a;
    font-weight: 800;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 3px;
    margin-top: 2px;
}

.qris-plate-merchant-info {
    text-align: center;
    margin-bottom: 14px;
}

.qris-merchant-name {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    color: #0f172a;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qris-nmid {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    font-family: var(--font-mono);
}

.qris-acquirer-label {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    margin-top: 2px;
}

/* Center QR code frame with target alignments */
.qris-qr-code-wrapper {
    background-color: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 16px;
    margin: 0 auto 16px auto;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.qr-corner-border {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 3px solid #ef4444;
}

.qr-corner-border.top-left { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.qr-corner-border.top-right { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.qr-corner-border.bottom-left { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.qr-corner-border.bottom-right { bottom: 8px; right: 8px; border-left: none; border-top: none; }

.qr-placeholder-inner {
    text-align: center;
    color: #94a3b8;
    padding: 20px;
}

.qr-placeholder-inner .placeholder-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    stroke-width: 1px;
}

.qr-placeholder-inner p {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

#qris-qrcode-target {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#qris-qrcode-target img {
    max-width: 200px !important;
    max-height: 200px !important;
}

/* Nominal Overlay Display */
.qris-plate-nominal-display {
    background-color: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    margin-bottom: 14px;
}

.qris-plate-nominal-display .nominal-title {
    font-size: 9px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.5px;
}

.qris-plate-nominal-display .nominal-value {
    font-size: 20px;
    font-weight: 800;
    color: #ef4444;
    font-family: var(--font-secondary);
}

.qris-plate-nominal-display .invoice-title {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    margin-top: 2px;
    font-family: var(--font-mono);
}

.qris-plate-footer {
    border-top: 1.5px solid #cbd5e1;
    padding-top: 10px;
}

.qris-plate-footer .footer-msg {
    font-size: 8px;
    color: #64748b;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.footer-icons-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.footer-icons-row .wallet-badge {
    background-color: #f1f5f9;
    color: #475569;
    font-size: 8px;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: 700;
    border: 1px solid #cbd5e1;
}

/* ==========================================================================
   SMARTPHONE SIMULATOR CONTAINER
   ========================================================================== */
.simulator-intro-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: start;
}

.intro-card {
    height: 100%;
}

.intro-description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.active-qris-status-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background-color: var(--warning-light);
    border: 1px solid var(--warning);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    margin-top: 24px;
}

.active-qris-status-box.active-qris {
    background-color: var(--success-light);
    border-color: var(--success);
}

.active-qris-status-box i {
    width: 24px;
    height: 24px;
}

.active-qris-status-box .warning-icon { color: var(--warning-dark); }
.active-qris-status-box .success-icon { color: var(--success-dark); }

.active-qris-status-box .status-msg {
    flex: 1;
}

.active-qris-status-box .status-msg h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.active-qris-status-box .status-msg p {
    font-size: 12.5px;
    line-height: 1.4;
    margin-bottom: 8px;
}

/* Smartphone hardware framing */
.phone-mockup-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.smartphone-device {
    width: 320px;
    height: 640px;
    background-color: #1e293b;
    border: 10px solid #0f172a;
    border-radius: 36px;
    box-shadow: var(--shadow-lg), 0 0 0 4px #334155;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.smartphone-device .notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 20px;
    background-color: #0f172a;
    border-radius: 0 0 16px 16px;
    z-index: 1000;
}

.smartphone-device .phone-screen {
    flex: 1;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #1e293b;
}

/* Phone screen content styles */
.phone-app-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 28px 16px 16px 16px; /* Extra padding top for notch */
    background-color: #f8fafc;
    overflow-y: auto;
}

.phone-app-screen.wallet-theme-gopay { --phone-accent: #00a5cf; --phone-accent-light: #e0f2fe; }
.phone-app-screen.wallet-theme-dana { --phone-accent: #108ee9; --phone-accent-light: #e0f2fe; }
.phone-app-screen.wallet-theme-ovo { --phone-accent: #4f2d7f; --phone-accent-light: #f3e8ff; }
.phone-app-screen.wallet-theme-shopeepay { --phone-accent: #ee4d2d; --phone-accent-light: #ffeaeb; }
.phone-app-screen.wallet-theme-linkaja { --phone-accent: #e60012; --phone-accent-light: #ffe4e6; }
.phone-app-screen.wallet-theme-mbanking { --phone-accent: #1e3a8a; --phone-accent-light: #dbeafe; }

.phone-header-title {
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    font-family: var(--font-secondary);
}

.phone-wallet-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.phone-wallet-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: transform 0.1s, border-color 0.2s;
}

.phone-wallet-item:hover {
    border-color: var(--primary);
    transform: scale(1.02);
}

.phone-wallet-details {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phone-wallet-logo-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.phone-wallet-logo-box.gopay { background-color: #00a5cf; }
.phone-wallet-logo-box.dana { background-color: #108ee9; }
.phone-wallet-logo-box.ovo { background-color: #4f2d7f; }
.phone-wallet-logo-box.shopeepay { background-color: #ee4d2d; }
.phone-wallet-logo-box.linkaja { background-color: #e60012; }
.phone-wallet-logo-box.mbanking { background-color: #1e3a8a; }

.phone-wallet-name {
    font-size: 13.5px;
    font-weight: 700;
}

.phone-wallet-balance {
    font-size: 10px;
    color: #64748b;
    margin-top: 1px;
}

.phone-wallet-item i {
    color: #cbd5e1;
    width: 16px;
    height: 16px;
}

/* Screen 2: Pay Invoice Review */
.phone-invoice-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.phone-invoice-header {
    text-align: center;
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.phone-invoice-merchant {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
}

.phone-invoice-city {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

.phone-invoice-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12.5px;
}

.phone-invoice-item {
    display: flex;
    justify-content: space-between;
}

.phone-invoice-item span:first-child {
    color: #64748b;
}

.phone-invoice-item.total {
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
    margin-top: 4px;
    font-size: 14.5px;
    font-weight: 800;
    color: var(--phone-accent, var(--primary));
}

.phone-button {
    background-color: var(--phone-accent, var(--primary));
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    width: 100%;
    margin-top: auto;
    transition: opacity 0.2s;
}

.phone-button:active {
    opacity: 0.8;
}

.phone-btn-secondary {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #64748b;
    margin-top: 8px;
}

/* Screen 3: Enter PIN keyboard screen */
.pin-entry-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding-top: 20px;
}

.pin-display-row {
    display: flex;
    gap: 16px;
    margin: 20px 0 30px 0;
}

.pin-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    transition: background-color 0.15s;
}

.pin-dot.filled {
    background-color: var(--phone-accent, var(--primary));
    border-color: var(--phone-accent, var(--primary));
}

.phone-pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    width: 100%;
    max-width: 240px;
    margin-top: auto;
    margin-bottom: 20px;
}

.keypad-key {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    margin: 0 auto;
    transition: background-color 0.1s;
    user-select: none;
}

.keypad-key:active {
    background-color: #e2e8f0;
}

.keypad-key.empty {
    border: none;
    background: transparent;
    cursor: default;
}
.keypad-key.empty:active { background: transparent; }

.keypad-key.backspace {
    border: none;
    background: transparent;
    color: #ef4444;
}

.keypad-key.backspace i {
    width: 24px;
    height: 24px;
}

/* Screen 4: Success confirmation screen */
.phone-success-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 20px;
}

.success-check-animation {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: #d1fae5;
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    animation: scalePop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-check-animation i {
    width: 36px;
    height: 36px;
    stroke-width: 3px;
}

@keyframes scalePop {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.success-title {
    font-family: var(--font-secondary);
    font-size: 18px;
    font-weight: 800;
    color: #065f46;
    margin-bottom: 8px;
}

.success-subtitle {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 24px;
    max-width: 200px;
}

.phone-success-details {
    background-color: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 14px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 11.5px;
    text-align: left;
    margin-bottom: 30px;
}

.phone-success-details-item {
    display: flex;
    justify-content: space-between;
}
.phone-success-details-item span:first-child { color: #64748b; }
.phone-success-details-item span:last-child { font-weight: 700; }

.phone-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #cbd5e1;
    border-top: 4px solid var(--phone-accent, var(--primary));
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   FLOATING DIALOGS & OVERLAYS
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInBg 0.2s ease;
}

@keyframes fadeInBg {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content-phone-wrapper {
    position: relative;
    animation: scaleUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal-btn {
    position: absolute;
    top: -14px;
    right: -42px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ef4444;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: background-color 0.2s;
    z-index: 2000;
}

.close-modal-btn:hover {
    background-color: #dc2626;
}

/* Toasts notification system */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.toast {
    background-color: var(--bg-card);
    border-left: 5px solid var(--primary);
    border-radius: var(--border-radius-sm);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 300px;
    max-width: 450px;
    animation: slideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: all 0.3s;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast.toast-success { border-left-color: var(--success); }
.toast.toast-warning { border-left-color: var(--warning); }
.toast.toast-danger { border-left-color: var(--danger); }

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.toast-success .toast-icon { color: var(--success); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-danger .toast-icon { color: var(--danger); }

.toast-message {
    flex: 1;
}

.toast-message h4 {
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 2px;
}

.toast-message p {
    font-size: 12px;
    color: var(--text-muted);
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

/* ==========================================================================
   SETTINGS PREFERENCE TOGGLE SWITCHES
   ========================================================================== */
.settings-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: start;
}

.settings-toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.settings-toggle-item:last-of-type {
    border-bottom: none;
}

.toggle-text {
    flex: 1;
    padding-right: 20px;
}

.toggle-text h4 {
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 4px;
}

.toggle-text p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.toggle-inputs-group {
    display: flex;
    gap: 8px;
}

.compact-select {
    padding: 6px 10px !important;
    font-size: 12px !important;
    width: 120px !important;
}

.compact-input {
    padding: 6px 10px !important;
    font-size: 12px !important;
    width: 80px !important;
}

/* CSS Toggle Switch Slider */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.system-about-box {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about-item {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.about-item span:first-child { color: var(--text-muted); font-weight: 500; }
.about-item span:last-child { font-weight: 700; }

/* Filter Card Layout */
.filter-card .filter-controls-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.search-input-wrapper {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

.search-input-wrapper input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-input);
    border-radius: var(--border-radius-sm);
    color: var(--text-main);
}

.filter-dropdowns {
    display: flex;
    gap: 14px;
    align-items: flex-end;
    flex-wrap: wrap;
}

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

.dropdown-group label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.dropdown-group select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-input);
    color: var(--text-main);
    border-radius: var(--border-radius-sm);
    min-width: 130px;
}

.date-picker-group .date-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.date-picker-group .date-inputs input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-input);
    color: var(--text-main);
    border-radius: var(--border-radius-sm);
    font-size: 12.5px;
}

.date-picker-group .date-inputs span {
    font-size: 12px;
    color: var(--text-muted);
}

.filter-card .filter-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.stats-summary-pill {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 12.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
}

.stats-summary-pill .divider {
    color: var(--border-color);
}

.buttons-group {
    display: flex;
    gap: 10px;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS & MEDIA QUERIES
   ========================================================================== */
.navbar-left {
    display: flex;
    align-items: center;
}

.hamburger-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    margin-right: 12px;
    transition: background-color var(--transition-speed);
}
.hamburger-menu-btn:hover {
    background-color: var(--border-color);
}
.hamburger-menu-btn i {
    width: 24px;
    height: 24px;
}

.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.sidebar-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .hamburger-menu-btn {
        display: inline-flex;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
        box-shadow: var(--shadow-lg);
    }
    .sidebar.sidebar-open {
        transform: translateX(0);
    }

    .top-navbar {
        padding: 12px 16px;
    }
    .top-navbar h1 {
        font-size: 18px;
    }
    .top-navbar .subtitle {
        font-size: 11px;
    }
    .navbar-right {
        gap: 12px;
    }
    .current-date-badge {
        display: none;
    }
    .connection-status {
        padding: 4px 8px;
        font-size: 11px;
    }

    .page-container {
        padding: 16px;
    }

    /* Grid layout overrides */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }
    .stat-card {
        padding: 14px;
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
    }
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    .stat-icon i {
        width: 20px;
        height: 20px;
    }
    .stat-value {
        font-size: 18px;
    }
    .stat-trend {
        font-size: 10px;
    }

    .charts-row {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 20px;
    }
    .chart-container {
        height: 240px;
    }

    .generator-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .qris-preview-column {
        position: static;
    }
    .form-row-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .simulator-intro-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .smartphone-device {
        margin: 0 auto;
        height: 580px;
    }

    .settings-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .settings-toggle-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .toggle-text {
        padding-right: 0;
    }

    /* Transactions Filter responsiveness */
    .filter-card .filter-controls-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .filter-dropdowns {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .dropdown-group select {
        width: 100%;
    }
    .date-picker-group .date-inputs {
        width: 100%;
    }
    .date-picker-group .date-inputs input {
        flex: 1;
    }
    .filter-card .filter-actions-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .stats-summary-pill {
        justify-content: center;
    }
    .buttons-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .buttons-group .btn {
        width: 100%;
    }

    /* Modals adjustment */
    .close-modal-btn {
        top: -45px;
        right: 50%;
        transform: translateX(50%);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .navbar-right {
        display: none;
    }
    .qris-plate-container {
        padding: 10px;
    }
    .qris-qr-code-wrapper {
        width: 220px;
        height: 220px;
        padding: 8px;
    }
    #qris-qrcode-target img {
        max-width: 180px !important;
        max-height: 180px !important;
    }
}

/* ==========================================================================
   MEDIA PRINT: THERMAL RECEIPT PRINT STYLES
   ========================================================================== */
.thermal-receipt-print-wrapper {
    display: none;
}

@media print {
    body * {
        visibility: hidden;
    }
    
    .thermal-receipt-print-wrapper, 
    .thermal-receipt-print-wrapper * {
        visibility: visible;
    }
    
    .thermal-receipt-print-wrapper {
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        width: 80mm; /* Standard thermal width */
        font-family: var(--font-mono);
        color: #000000;
        padding: 5px;
        background-color: #ffffff;
    }
    
    .receipt-header {
        text-align: center;
        margin-bottom: 10px;
        border-bottom: 1px dashed #000000;
        padding-bottom: 8px;
    }
    
    .receipt-title {
        font-size: 16px;
        font-weight: 800;
        text-transform: uppercase;
        margin-bottom: 2px;
    }
    
    .receipt-info {
        font-size: 10px;
        line-height: 1.3;
    }
    
    .receipt-body {
        font-size: 11px;
        margin-bottom: 10px;
        border-bottom: 1px dashed #000000;
        padding-bottom: 8px;
    }
    
    .receipt-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 4px;
    }
    
    .receipt-row.total {
        font-size: 13px;
        font-weight: 800;
        border-top: 1px dashed #000000;
        padding-top: 6px;
        margin-top: 4px;
    }
    
    .receipt-footer {
        text-align: center;
        font-size: 10px;
        margin-top: 10px;
        line-height: 1.3;
    }
}
