.action-menu { position: relative; }
.action-menu summary { list-style: none; cursor: pointer; }
.action-menu-list { position: absolute; z-index: 20; inset-inline-end: 0; top: calc(100% + 4px); min-width: 130px; padding: 6px; background: #fff; border: 1px solid #dfe3e8; border-radius: 6px; box-shadow: 0 8px 24px rgba(16,24,40,.14); }
.action-menu-list button { display: block; width: 100%; padding: 8px 10px; border: 0; background: transparent; text-align: right; cursor: pointer; }
.action-menu-list button:hover { background: #f3f5f7; }
.action-menu-list button.danger { color: #b42318; }
.toggle-label { display: flex; align-items: center; gap: 8px; }
.toggle-label input { width: 18px; height: 18px; }
@font-face {
    font-family: "IRANSansXFaNum";
    src: url("../fonts/Woff2/IRANSansXFaNum-Regular.woff2") format("woff2"),
         url("../fonts/Woff/IRANSansXFaNum-Regular.woff") format("woff");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "IRANSansXFaNum";
    src: url("../fonts/Woff2/IRANSansXFaNum-Medium.woff2") format("woff2"),
         url("../fonts/Woff/IRANSansXFaNum-Medium.woff") format("woff");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "IRANSansXFaNum";
    src: url("../fonts/Woff2/IRANSansXFaNum-Bold.woff2") format("woff2"),
         url("../fonts/Woff/IRANSansXFaNum-Bold.woff") format("woff");
    font-style: normal;
    font-weight: 700 900;
    font-display: swap;
}

html, body {
    font-family: "IRANSansXFaNum", Tahoma, sans-serif;
    direction: rtl;
    margin: 0;
    background:
        radial-gradient(circle at top right, rgba(109, 40, 217, 0.22), transparent 32%),
        radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.16), transparent 30%),
        #07111f;
    color: #e5eefb;
}

body {
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select {
    font: inherit;
    min-height: 44px;
}

.app-shell {
    display: grid;
    grid-template-columns: 290px 1fr;
    min-height: 100vh;
}

.sidebar-shell {
    padding: 24px;
    background: rgba(7, 17, 31, 0.88);
    border-left: 1px solid rgba(148, 163, 184, 0.14);
    backdrop-filter: blur(18px);
}

.brand-panel {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.brand-badge, .hero-badge, .otp-preview {
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    color: #fff;
    font-weight: 700;
}

.brand-badge {
    width: 56px;
    height: 56px;
    font-size: 1.2rem;
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 800;
}

.brand-subtitle, .eyebrow, .section-kicker, small {
    color: #94a3b8;
}

.sidebar-nav {
    display: grid;
    gap: 12px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.12);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-item:hover, .nav-item.active {
    transform: translateX(-2px);
    background: rgba(30, 41, 59, 0.92);
    border-color: rgba(96, 165, 250, 0.4);
}

.nav-item span {
    font-weight: 700;
}

.nav-item small {
    font-size: 0.82rem;
}

.nav-item.highlighted {
    background: linear-gradient(135deg, rgba(14,165,233,0.22), rgba(139,92,246,0.22));
}

.sidebar-footer {
    margin-top: 18px;
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.65);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-dot.online { background: #22c55e; }
.status-dot.offline { background: #f59e0b; }

.main-shell {
    padding: 28px;
}

.topbar, .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.topbar h1, .section-header h2, .hero-card h2 {
    margin: 8px 0 0;
}

.topbar-actions, .hero-actions, .auth-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pill-link, .primary-button, .secondary-button {
    border: none;
    border-radius: 999px;
    padding: 12px 20px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.pill-link, .secondary-button {
    background: rgba(15, 23, 42, 0.75);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.pill-link.outline, .secondary-button {
    background: transparent;
}

.primary-button {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    color: white;
    box-shadow: 0 16px 30px rgba(14, 165, 233, 0.22);
}

.pill-link:hover, .primary-button:hover, .secondary-button:hover {
    transform: translateY(-1px);
}

.content-panel {
    margin-top: 24px;
}

.glass-card, .hero-card, .info-card, .panel-card, .stat-card, .notification-card, .auth-side-card {
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.35);
}

.hero-grid, .auth-layout, .two-column-grid, .report-grid {
    display: grid;
    gap: 20px;
}

.hero-grid, .auth-layout {
    grid-template-columns: 1.5fr 1fr;
}

.hero-card, .info-card, .panel-card, .auth-panel, .auth-side-card {
    padding: 28px;
}

.hero-badge, .otp-preview {
    width: fit-content;
    padding: 10px 16px;
    margin-bottom: 16px;
}

.hero-card h2 {
    font-size: clamp(1.7rem, 3vw, 2.8rem);
    line-height: 1.35;
}

.hero-notice {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(14, 165, 233, 0.14);
    color: #c9f2ff;
}

.mini-grid, .stat-grid, .notification-grid {
    display: grid;
    gap: 14px;
}

.mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.mini-grid div, .summary-stack div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.72);
}

.mini-grid span, .summary-stack span, .stacked-stat small, .list-row small, .transaction-item small {
    display: block;
    color: #94a3b8;
    margin-bottom: 6px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.feature-card {
    padding: 20px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 18px 0 24px;
}

.stat-card {
    padding: 22px;
}

.stat-card.accent {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.28), rgba(6, 182, 212, 0.18));
}

.outbox-status-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin:18px 0 24px; }
.outbox-status-card { display:flex; align-items:center; gap:14px; padding:20px; border:1px solid rgba(148,163,184,.15); border-radius:22px; background:linear-gradient(145deg,rgba(15,23,42,.9),rgba(30,41,59,.66)); box-shadow:0 12px 28px rgba(2,6,23,.18); transition:transform .2s ease, border-color .2s ease; }
.outbox-status-card:hover { transform:translateY(-3px); border-color:rgba(125,211,252,.4); }
.outbox-status-icon { width:46px; height:46px; display:grid; place-items:center; border-radius:16px; font-size:1.35rem; font-weight:800; background:rgba(148,163,184,.16); color:#e2e8f0; }
.outbox-status-card div { display:grid; gap:4px; }
.outbox-status-card small { color:#cbd5e1; }
.outbox-status-card strong { font-size:1.65rem; line-height:1.1; }
.outbox-status-card em { color:#94a3b8; font-size:.78rem; font-style:normal; }
.outbox-status-card.pending .outbox-status-icon { background:rgba(245,158,11,.18); color:#fbbf24; }
.outbox-status-card.sent .outbox-status-icon { background:rgba(34,197,94,.18); color:#86efac; }
.outbox-status-card.failed .outbox-status-icon { background:rgba(239,68,68,.18); color:#fca5a5; }
.outbox-status-card.total .outbox-status-icon { background:rgba(56,189,248,.18); color:#7dd3fc; }
.outbox-message-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.outbox-message-card { padding:18px; border:1px solid rgba(148,163,184,.13); border-radius:18px; background:rgba(15,23,42,.55); }
.outbox-message-head,.outbox-message-footer,.outbox-message-meta { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.outbox-recipient { display:flex; align-items:center; gap:10px; min-width:0; }
.outbox-recipient div { display:grid; gap:3px; min-width:0; }
.outbox-recipient small,.outbox-message-footer small { color:#94a3b8; overflow-wrap:anywhere; }
.outbox-channel-icon { width:36px; height:36px; display:grid; place-items:center; border-radius:12px; background:rgba(56,189,248,.16); color:#7dd3fc; font-weight:800; }
.outbox-payload { min-height:48px; margin:18px 0; color:#e2e8f0; line-height:1.8; white-space:pre-wrap; overflow-wrap:anywhere; }
.outbox-message-meta { justify-content:flex-start; flex-wrap:wrap; padding:10px 0; border-top:1px solid rgba(148,163,184,.1); border-bottom:1px solid rgba(148,163,184,.1); color:#94a3b8; font-size:.82rem; }
.outbox-message-meta b { color:#cbd5e1; }
.outbox-message-footer { align-items:flex-start; margin-top:12px; }
.outbox-error { color:#fca5a5 !important; text-align:left; }
@media(max-width:900px){.outbox-status-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.outbox-message-grid{grid-template-columns:1fr;}}
@media(max-width:600px){.outbox-status-grid{grid-template-columns:1fr;}.outbox-message-head,.outbox-message-footer{align-items:flex-start; flex-direction:column;}}

.two-column-grid, .report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.summary-stack, .transaction-list, .notification-grid {
    display: grid;
    gap: 12px;
}

.list-row, .transaction-item, .notification-card {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.list-row.compact {
    padding: 10px 0;
}

.align-end {
    text-align: end;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.form-grid.single {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
    display: grid;
    gap: 8px;
    color: #dbeafe;
}

input, select, .search-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.8);
    color: #eef6ff;
    box-sizing: border-box;
}

.searchable-select { position: relative; width: 100%; }
.searchable-select-trigger { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; min-height: 44px; border-radius: 14px; border: 1px solid rgba(148, 163, 184, 0.18); background: rgba(15, 23, 42, 0.8); color: #eef6ff; cursor: pointer; text-align: right; }
.select-chevron { color: #94a3b8; }
.searchable-select-menu { position: absolute; inset-inline: 0; top: calc(100% + 6px); z-index: 50; padding: 8px; border: 1px solid rgba(148, 163, 184, 0.25); border-radius: 14px; background: #111d31; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.searchable-select-search { margin-bottom: 6px; }
.searchable-select-option { display: block; width: 100%; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; color: #eef6ff; text-align: right; cursor: pointer; }
.searchable-select-option:hover { background: rgba(96, 165, 250, .18); }
.placeholder-option { color: #94a3b8; }
.searchable-select-empty { padding: 10px; color: #94a3b8; text-align: center; }
.pagination-bar { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:16px; padding-top:14px; border-top:1px solid #e5e7eb; color:#64748b; }
.pagination-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.pagination-actions label { display:flex; align-items:center; gap:6px; font-size:.85rem; font-weight:600; }
.pagination-actions select { min-height:38px; padding:6px 10px; }
@media(max-width:600px){.pagination-bar{align-items:stretch; flex-direction:column}.pagination-actions{justify-content:space-between}.pagination-actions label{width:100%; justify-content:space-between}}

.table-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.responsive-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    text-align: right;
}

.badge, .status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    background: rgba(148, 163, 184, 0.16);
}

.badge.green { background: rgba(34, 197, 94, 0.16); color: #86efac; }
.badge.orange { background: rgba(245, 158, 11, 0.16); color: #fdba74; }
.badge.red { background: rgba(239, 68, 68, 0.16); color: #fca5a5; }
.badge.gray { background: rgba(148, 163, 184, 0.16); color: #cbd5e1; }

.tx-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.tx-icon.pay { background: rgba(34, 197, 94, 0.16); color: #86efac; }
.tx-icon.debt { background: rgba(245, 158, 11, 0.16); color: #fdba74; }

.section-kicker {
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.auth-layout {
    align-items: start;
}

.otp-preview {
    font-size: 1.6rem;
    letter-spacing: 0.25rem;
}

.alert-box {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 16px;
}

.alert-box.success { background: rgba(34, 197, 94, 0.14); color: #86efac; }
.alert-box.error { background: rgba(239, 68, 68, 0.14); color: #fca5a5; }

.full {
    width: 100%;
}

.loading-state, .empty-state {
    margin-top: 16px;
    padding: 18px;
    border-radius: 16px;
    text-align: center;
    color: #94a3b8;
    background: rgba(30, 41, 59, 0.5);
    border: 1px dashed rgba(148, 163, 184, 0.2);
}

.toolbar-group, .action-cell, .card-actions, .notification-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.persian-date-picker, .persian-time-picker {
    display: flex;
    align-items: center;
    gap: 6px;
}

.persian-date-picker > select {
    min-width: 0;
    padding-inline: 8px;
}

.persian-date-picker > select:first-child { flex: 0 1 92px; }
.persian-date-picker > select:nth-child(2) { flex: 1 1 110px; }
.persian-date-picker > select:nth-child(3) { flex: 0 1 72px; }
.persian-time-picker { direction: ltr; }
.persian-time-picker select { width: 68px; padding-inline: 6px; }
.date-filter { align-items: end; }

.notification-top {
    justify-content: space-between;
    width: 100%;
}

.small-button {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(30, 41, 59, 0.82);
    color: #e2e8f0;
    cursor: pointer;
}

.small-button.danger {
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.25);
}

.vertical-card {
    display: grid;
    align-items: stretch;
    gap: 12px;
    padding: 20px;
}

.vertical-card p {
    margin: 0;
}

.text-warning {
    color: #fdba74;
}

button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 1100px) {
    .app-shell, .hero-grid, .auth-layout, .two-column-grid, .report-grid, .feature-grid, .stat-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-shell {
        border-left: 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    }
}

@media (max-width: 720px) {
    .main-shell, .sidebar-shell {
        padding: 18px;
    }

    .form-grid, .form-grid.single, .mini-grid, .two-column-grid, .report-grid, .feature-grid, .stat-grid {
        grid-template-columns: 1fr;
    }

    .topbar, .section-header, .table-toolbar, .list-row, .transaction-item, .notification-card {
        flex-direction: column;
        align-items: stretch;
    }

    .align-end {
        text-align: start;
    }

    .main-shell, .sidebar-shell { padding: 14px; }
    .hero-card, .info-card, .panel-card, .auth-panel, .auth-side-card { padding: 18px; border-radius: 18px; }
    .section-header { gap: 12px; }
    .section-header .secondary-button, .primary-button, .secondary-button { width: 100%; }
    .toolbar-group, .date-filter { display: grid; width: 100%; grid-template-columns: 1fr; }
    .small-button { min-height: 44px; }
    .action-cell, .card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .action-cell .small-button, .card-actions .small-button { width: 100%; }
    .responsive-table table, .responsive-table tbody, .responsive-table tr, .responsive-table td { display: block; }
    .responsive-table thead { display: none; }
    .responsive-table tr { padding: 14px; margin-bottom: 12px; border: 1px solid rgba(148, 163, 184, 0.14); border-radius: 16px; }
    .responsive-table td { padding: 8px 0; border: 0; }
    .transaction-item { padding: 16px; border: 1px solid rgba(148, 163, 184, 0.14); border-radius: 16px; }
    .persian-date-picker { flex-wrap: wrap; }
    .persian-date-picker > select { flex: 1 1 28% !important; }
    .persian-time-picker { width: 100%; }
    .persian-time-picker select { flex: 1; }
}

/* Simple, touch-first application shell */
html, body {
    background: #f6f7f9;
    color: #172033;
}

body.drawer-open { overflow: hidden; }

.app-shell {
    display: block;
    min-height: 100vh;
}

.sidebar-shell {
    position: fixed;
    z-index: 1001;
    inset: 0 0 0 auto;
    width: min(86vw, 320px);
    box-sizing: border-box;
    padding: 20px;
    overflow-y: auto;
    background: #fff;
    color: #172033;
    border: 0;
    border-left: 1px solid #e5e7eb;
    box-shadow: -16px 0 40px rgba(15, 23, 42, 0.16);
    transform: translateX(105%);
    transition: transform 180ms ease;
}

.drawer-open .sidebar-shell { transform: translateX(0); }

.drawer-backdrop {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }

.brand-panel { margin-bottom: 18px; }
.brand-badge { width: 46px; height: 46px; border-radius: 14px; }
.brand-subtitle, .eyebrow, .section-kicker, small { color: #64748b; }

.drawer-close {
    margin-right: auto;
    width: 44px;
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    background: #f1f5f9;
    color: #334155;
    font-size: 1.7rem;
    cursor: pointer;
}

.sidebar-nav { gap: 8px; }
.nav-item {
    padding: 12px 14px;
    border-radius: 12px;
    color: #334155;
    background: transparent;
    border: 1px solid transparent;
}
.nav-item:hover, .nav-item.active {
    transform: none;
    color: #0f766e;
    background: #ecfdf5;
    border-color: #a7f3d0;
}
.nav-item.highlighted { background: #f8fafc; }
.sidebar-footer { background: #f8fafc; }

.main-shell {
    width: min(100%, 1440px);
    margin: 0 auto;
    padding: 0 24px 32px;
    box-sizing: border-box;
}

.topbar {
    position: sticky;
    z-index: 50;
    top: 0;
    min-height: 72px;
    padding: 10px 0;
    background: rgba(246, 247, 249, 0.94);
    border-bottom: 1px solid #e5e7eb;
    backdrop-filter: blur(10px);
}

.menu-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 16px;
    border: 0;
    border-radius: 14px;
    background: #0f766e;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}
.menu-icon { font-size: 1.35rem; line-height: 1; }
.topbar-title { display: grid; gap: 3px; text-align: left; }
.content-panel { margin-top: 22px; }

.glass-card, .hero-card, .info-card, .panel-card, .stat-card, .notification-card, .auth-side-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.panel-card { margin-bottom: 18px; }
.panel-card h3 { margin-top: 0; }
.stat-card { padding: 20px; }
.stat-card span { display: block; margin-bottom: 10px; color: #64748b; }
.stat-card strong { display: block; font-size: clamp(1.25rem, 2vw, 1.75rem); color: #172033; }
.stat-card.accent { background: #0f766e; border-color: #0f766e; }
.stat-card.accent span, .stat-card.accent strong, .stat-card.accent small { color: #fff; }
.debt-stat { border-right: 4px solid #f59e0b; }
.payment-stat { border-right: 4px solid #10b981; }

input, select, .search-input {
    min-height: 50px;
    color: #172033;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
}
input:focus, select:focus { outline: 3px solid rgba(15, 118, 110, 0.16); border-color: #0f766e; }
label { color: #334155; font-weight: 700; }
.customer-form { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }

.primary-button { background: #0f766e; box-shadow: none; }
.secondary-button, .pill-link { color: #334155; border-color: #cbd5e1; background: #fff; }
.small-button { color: #334155; background: #f8fafc; border-color: #cbd5e1; }
.alert-box.success { background: #ecfdf5; color: #047857; }
.alert-box.error { background: #fef2f2; color: #b91c1c; }
.loading-state, .empty-state { color: #64748b; background: #f8fafc; }
.badge.green { background: #dcfce7; color: #166534; }
.badge.orange { background: #ffedd5; color: #9a3412; }
.badge.red { background: #fee2e2; color: #991b1b; }
.badge.gray { background: #f1f5f9; color: #475569; }
.text-warning { color: #b45309; }

.dashboard-charts {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}
.chart-card { margin: 0; }
.chart-heading h3, .customer-chart h3 { margin-bottom: 4px; }
.bar-chart { display: grid; gap: 22px; margin-top: 28px; }
.bar-row { display: grid; grid-template-columns: 62px minmax(100px, 1fr) 110px; align-items: center; gap: 12px; }
.bar-row > strong { direction: ltr; text-align: right; }
.bar-track { height: 18px; overflow: hidden; background: #eef2f7; border-radius: 999px; }
.bar { height: 100%; min-width: 6px; border-radius: 999px; transition: width 300ms ease; }
.debt-bar { background: #f59e0b; }
.payment-bar { background: #10b981; }
.customer-chart { display: flex; align-items: center; gap: 24px; }
.customer-chart p { color: #64748b; line-height: 1.8; }
.donut-chart {
    --active-percent: 0;
    flex: 0 0 138px;
    width: 138px;
    height: 138px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(#0f766e calc(var(--active-percent) * 1%), #e2e8f0 0);
}
.donut-chart::before { content: ""; grid-area: 1 / 1; width: 100px; height: 100px; border-radius: 50%; background: #fff; }
.donut-chart > div { z-index: 1; grid-area: 1 / 1; display: grid; text-align: center; }
.donut-chart strong { font-size: 1.4rem; }

@media (max-width: 900px) {
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-charts, .two-column-grid, .customer-form { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .main-shell { padding: 0 12px 24px; }
    .topbar { min-height: 64px; }
    .topbar-title small { display: none; }
    .content-panel { margin-top: 14px; }
    .section-header { align-items: stretch; }
    .section-header h2 { font-size: 1.35rem; }
    .hero-card, .info-card, .panel-card, .auth-panel, .auth-side-card { padding: 16px; border-radius: 14px; }
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
    .stat-card { padding: 14px; border-radius: 14px; }
    .stat-card strong { font-size: 1.05rem; overflow-wrap: anywhere; }
    .stat-card span { font-size: 0.88rem; }
    .dashboard-charts { gap: 12px; }
    .bar-row { grid-template-columns: 52px minmax(70px, 1fr); gap: 8px; }
    .bar-row > strong { grid-column: 2; font-size: 0.9rem; }
    .customer-chart { flex-direction: column; text-align: center; }
    .donut-chart { flex-basis: 120px; width: 120px; height: 120px; }
    .donut-chart::before { width: 86px; height: 86px; }
    .form-grid, .customer-form { gap: 12px; }
    .toolbar-group { display: grid; grid-template-columns: 1fr; }
    .responsive-table tr { background: #fff; }
    .action-cell { grid-template-columns: 1fr 1fr; }
    .action-cell .danger:last-child { grid-column: 1 / -1; }
}/* Responsive overrides: desktop sidebar, mobile drawer. */
:root{color:#172033;background:#f6f8fa}html,body{margin:0;min-height:100%;background:#f6f8fa;color:#172033}*,*:before,*:after{box-sizing:border-box}.app-shell{display:block;min-height:100vh}.main-shell{min-width:0;width:auto;margin:0;padding:0 28px 40px}.sidebar-shell{background:#fff;color:#172033;border-left:1px solid #e5e7eb}.brand-panel{padding:22px 20px 18px}.brand-badge{width:44px;height:44px;border-radius:12px;background:#087f5b}.brand-subtitle,.topbar-title small,.nav-item small,.sidebar-footer small{color:#6b7280}.sidebar-nav{gap:5px;padding:4px 14px 18px}.nav-item{padding:11px 14px;border:0;border-radius:10px;background:transparent;color:#374151}.nav-item:hover,.nav-item.active{transform:none;color:#087f5b;background:#e9f7f1;border:0}.nav-item.highlighted{margin-top:8px;background:#f3f4f6}.sidebar-footer{margin-top:8px;padding:12px;background:#fff;border-top:1px solid #e5e7eb}.drawer-close{display:none}.drawer-backdrop{display:none}.topbar{position:static;min-height:72px;padding:0;background:transparent;border-bottom:1px solid #e5e7eb;backdrop-filter:none}.menu-button{display:none}.content-panel{margin-top:0;padding-top:24px}.glass-card,.hero-card,.info-card,.panel-card,.stat-card,.notification-card,.auth-side-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 4px 14px rgba(15,23,42,.045)}.panel-card{padding:22px}.stat-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.stat-card{padding:20px;min-width:0}.stat-card strong{font-size:1.35rem;overflow-wrap:anywhere}.stat-card.accent{background:#087f5b;border-color:#087f5b}.debt-stat{border-right:4px solid #f59e0b}.payment-stat{border-right:4px solid #16a34a}.dashboard-charts{grid-template-columns:1.3fr 1fr}.two-column-grid,.dashboard-charts{gap:18px}.customer-form{grid-template-columns:repeat(3,minmax(0,1fr)) auto}input,select,.search-input{min-height:48px;background:#fff;color:#172033;border:1px solid #d1d5db;border-radius:10px}label{color:#374151}.primary-button{background:#087f5b;box-shadow:none}.secondary-button,.small-button{background:#fff;color:#374151;border-color:#d1d5db}.alert-box.success{background:#dcfce7;color:#166534}.alert-box.error{background:#fee2e2;color:#991b1b}.loading-state,.empty-state{background:#f9fafb;color:#6b7280}.badge.green{background:#dcfce7;color:#166534}.badge.gray{background:#f3f4f6;color:#4b5563}.bar-track{background:#eef2f2}.debt-bar{background:#f59e0b}.payment-bar{background:#16a34a}.donut-chart{background:conic-gradient(#087f5b calc(var(--active-percent)*1%),#e5e7eb 0)}.donut-chart:before{background:#fff}
@media(min-width:901px){.app-shell{display:grid;grid-template-columns:260px minmax(0,1fr);direction:ltr}.sidebar-shell,.main-shell{direction:rtl}.sidebar-shell{position:static;min-height:100vh;transform:none;box-shadow:none}}
@media(max-width:900px){.main-shell{padding:0 18px 30px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-charts,.two-column-grid,.hero-grid,.auth-layout,.report-grid,.customer-form{grid-template-columns:1fr}}
@media(max-width:600px){.main-shell{padding:0 12px 24px}.topbar{min-height:62px}.menu-button{display:inline-flex;align-items:center;gap:8px}.topbar-title small{display:none}.content-panel{padding-top:16px}.sidebar-shell{position:fixed;z-index:1001;inset:0 0 0 auto;width:min(86vw,320px);min-height:100vh;overflow-y:auto;transform:translateX(105%);transition:transform .2s ease;box-shadow:-14px 0 35px rgba(15,23,42,.18)}.drawer-open .sidebar-shell{transform:translateX(0)}.drawer-open .drawer-backdrop{display:block;position:fixed;z-index:1000;inset:0;width:100%;height:100%;border:0;background:rgba(15,23,42,.45)}.drawer-close{display:block;margin-right:auto;width:40px;height:40px;border:0;border-radius:9px;background:#f3f4f6;font-size:1.5rem}.section-header,.table-toolbar{align-items:stretch;flex-direction:column;gap:10px}.section-header .secondary-button,.toolbar-group,.toolbar-group .search-input{width:100%}.stat-grid{grid-template-columns:1fr 1fr;gap:10px}.stat-card{padding:14px}.stat-card strong{font-size:1.05rem}.panel-card{padding:16px}.bar-row{grid-template-columns:50px 1fr}.bar-row strong{grid-column:2;text-align:right}.customer-chart{flex-direction:column;text-align:center}.responsive-table table,.responsive-table tbody,.responsive-table tr,.responsive-table td{display:block}.responsive-table thead{display:none}.responsive-table tr{margin-bottom:12px;padding:12px;border:1px solid #e5e7eb;border-radius:10px;background:#fff}.responsive-table td{padding:7px 0;border:0}.action-cell{display:grid;grid-template-columns:1fr 1fr}.action-cell .danger:last-child{grid-column:1/-1}}

#blazor-error-ui {
    display: none;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2000;
    padding: 12px 20px;
    background: #fff3cd;
    color: #664d03;
    border-top: 1px solid #ffecb5;
    box-shadow: 0 -2px 12px rgba(15, 23, 42, .12);
}

#blazor-error-ui .reload { margin-right: 12px; color: #075985; }
#blazor-error-ui .dismiss { position: absolute; left: 16px; cursor: pointer; }
.app-connection-error { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 12px 14px; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; border-radius: 8px; }
@media(max-width:600px){.app-connection-error{align-items:stretch;flex-direction:column}.app-connection-error .small-button{width:100%}}

/* Final application shell rules: a reserved desktop column and an overlay mobile drawer. */
.logout-button {
    min-height: 42px;
    padding: 0 16px;
    margin-inline-start: auto;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    color: #475569;
    background: #fff;
    cursor: pointer;
}

/* Current store selector in the application header. */
.topbar-heading { position: relative; display: grid; justify-items: end; gap: 8px; margin-inline-start: auto; }
.topbar-title { text-align: right; }
.topbar-title strong { color: #172033; font-size: 1rem; }
.store-switcher { position: relative; width: min(100%, 330px); }
.store-switcher-trigger {
    display: grid;
    grid-template-columns: 34px minmax(120px, 1fr) auto 18px;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 48px;
    padding: 6px 9px;
    border: 1px solid #dbe4ea;
    border-radius: 8px;
    color: #172033;
    text-align: right;
    background: #fff;
    box-shadow: 0 3px 10px rgba(15, 23, 42, .045);
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.store-switcher-trigger:hover, .store-switcher-trigger[aria-expanded="true"] { border-color: #5eead4; box-shadow: 0 5px 16px rgba(15, 118, 110, .10); }
.store-switcher-mark, .store-option-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 7px;
    color: #fff;
    background: #087f5b;
    font-weight: 900;
}
.store-switcher-copy { display: grid; gap: 1px; min-width: 0; }
.store-switcher-copy small { color: #64748b; font-size: .68rem; }
.store-switcher-copy strong { overflow: hidden; font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.store-switcher-status { padding: 3px 7px; border-radius: 999px; font-size: .65rem; font-weight: 800; white-space: nowrap; }
.store-switcher-status.active { color: #166534; background: #dcfce7; }
.store-switcher-status.inactive { color: #475569; background: #f1f5f9; }
.store-switcher-chevron { color: #64748b; font-size: 1.05rem; transition: transform .18s ease; }
.store-switcher-chevron.open { transform: rotate(180deg); }
.store-switcher-menu {
    position: absolute;
    z-index: 100;
    top: calc(100% + 7px);
    right: 0;
    width: 100%;
    overflow: hidden;
    border: 1px solid #dbe4ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
}
.store-switcher-menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border-bottom: 1px solid #eef2f6; }
.store-switcher-menu-heading strong { color: #172033; font-size: .82rem; }
.store-switcher-menu-heading small { font-size: .7rem; }
.store-switcher-option {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border: 0;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    text-align: right;
    background: #fff;
    cursor: pointer;
}
.store-switcher-option:hover { background: #f0fdfa; }
.store-switcher-option.selected { background: #ecfdf5; }
.store-switcher-option > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.store-switcher-option strong { overflow: hidden; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.store-switcher-option small { font-size: .68rem; }
.store-option-mark { color: #087f5b; background: #ccfbf1; }
.store-option-check { color: #087f5b; font-weight: 900; text-align: center; }
.store-switcher-manage, .store-switcher-empty { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 8px 12px; color: #087f5b; background: #f8fafc; font-size: .76rem; font-weight: 800; }
.store-switcher-empty { color: #64748b; background: #fff; }

.sidebar-store-switcher {
    position: relative;
    z-index: 20;
    margin: 0 0 13px;
    padding: 9px;
    border: 1px solid #dbe4ea;
    border-radius: 10px;
    background: #f8fafc;
}
.sidebar-store-caption { display: flex; align-items: center; gap: 7px; margin: 0 3px 7px; color: #64748b; font-size: .68rem; font-weight: 800; }
.sidebar-store-pulse { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px #d1fae5; }
.sidebar-store-switcher .store-switcher-trigger {
    grid-template-columns: 34px minmax(0, 1fr) auto 14px;
    gap: 7px;
    min-height: 46px;
    padding: 5px 7px;
    box-shadow: none;
}
.sidebar-store-switcher .store-switcher-copy strong { max-width: 92px; }
.sidebar-store-switcher .store-switcher-status { padding-inline: 5px; }
.sidebar-store-switcher .store-switcher-menu { top: calc(100% + 6px); width: calc(100% + 2px); right: -1px; }

@media (min-width: 901px) {
    .app-shell {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 260px;
        grid-template-areas: "content sidebar";
        direction: rtl;
        width: 100%;
    }

    .sidebar-shell {
        grid-area: sidebar;
        position: sticky;
        inset: auto;
        top: 0;
        width: 260px;
        height: 100vh;
        min-height: 0;
        transform: none;
        box-shadow: none;
        overflow-y: auto;
    }

    .main-shell {
        grid-area: content;
        min-width: 0;
        max-width: 100%;
        margin: 0;
    }
}

@media (max-width: 900px) {
    .menu-button { display: inline-flex; }
    .drawer-close { display: block; }
    .sidebar-shell {
        position: fixed;
        z-index: 1001;
        inset: 0 0 0 auto;
        width: min(86vw, 320px);
        height: 100dvh;
        min-height: 100vh;
        transform: translateX(105%);
        transition: transform 180ms ease;
        box-shadow: -14px 0 35px rgba(15, 23, 42, 0.18);
    }
    .drawer-open .sidebar-shell { transform: translateX(0); }
    .drawer-open .drawer-backdrop {
        display: block;
        position: fixed;
        z-index: 1000;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
        background: rgba(15, 23, 42, 0.45);
    }
    .topbar-heading { width: min(100%, 330px); }
}

@media (max-width: 600px) {
    .topbar { align-items: center; flex-direction: row; }
    .topbar-heading { width: min(100% - 84px, 300px); }
    .topbar-title { display: none; }
    .store-switcher { width: 100%; }
    .store-switcher-trigger { grid-template-columns: 32px minmax(80px, 1fr) 16px; min-height: 44px; }
    .store-switcher-mark { width: 32px; height: 32px; }
    .store-switcher-status { display: none; }
    .sidebar-store-switcher .store-switcher-trigger { grid-template-columns: 34px minmax(0, 1fr) 14px; }
    .sidebar-store-switcher .store-switcher-copy strong { max-width: none; }
}

/* Focused OTP login experience. */
.auth-page-shell {
    min-height: 100vh;
    min-height: 100dvh;
}

.login-scene {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 28px 18px;
    overflow: hidden;
    background: linear-gradient(145deg, #f0fdfa 0%, #f8fafc 48%, #ecfeff 100%);
}

.login-decoration {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(2px);
    opacity: .7;
}
.decoration-one { width: 360px; height: 360px; top: -170px; right: -100px; background: rgba(13, 148, 136, .16); }
.decoration-two { width: 300px; height: 300px; bottom: -150px; left: -80px; background: rgba(14, 165, 233, .12); }

.login-card {
    width: min(100%, 430px);
    padding: 38px;
    border: 1px solid rgba(203, 213, 225, .85);
    border-radius: 24px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .10);
    backdrop-filter: blur(16px);
}

.login-brand {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #0f766e, #0891b2);
    box-shadow: 0 12px 28px rgba(15, 118, 110, .22);
    font-size: 1.4rem;
    font-weight: 900;
}

.login-heading { text-align: center; margin-bottom: 28px; }
.login-heading > span { color: #0f766e; font-size: .9rem; font-weight: 800; }
.login-heading h1 { margin: 8px 0 10px; color: #172033; font-size: clamp(1.55rem, 4vw, 1.9rem); }
.login-heading p { margin: 0; color: #64748b; line-height: 1.8; }

.login-field { display: grid; gap: 9px; margin-bottom: 18px; }
.login-field > span { color: #334155; font-size: .92rem; }
.input-with-icon { position: relative; }
.input-with-icon input { padding-left: 56px; direction: ltr; text-align: left; letter-spacing: .08em; }
.field-icon {
    position: absolute;
    z-index: 1;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    padding-right: 12px;
    border-right: 1px solid #e2e8f0;
    color: #0f766e;
    font-weight: 800;
}
.otp-input { direction: ltr; text-align: center; letter-spacing: .65em; font-size: 1.35rem; font-weight: 800; }

.test-otp-box {
    display: grid;
    gap: 4px;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px dashed #5eead4;
    border-radius: 14px;
    text-align: center;
    color: #115e59;
    background: #f0fdfa;
}
.test-otp-box strong { direction: ltr; font-size: 1.65rem; letter-spacing: .35em; }
.test-otp-box small { color: #64748b; }

.login-submit {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: #0f766e;
    box-shadow: 0 12px 24px rgba(15, 118, 110, .18);
    font-weight: 800;
    cursor: pointer;
}
.login-submit:hover { background: #115e59; }
.login-secondary-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.login-secondary-actions button { min-height: 38px; padding: 0; border: 0; color: #0f766e; background: transparent; cursor: pointer; }
.login-message { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; font-size: .9rem; }
.login-message.error { color: #b91c1c; background: #fef2f2; }
.login-message.success { color: #166534; background: #f0fdf4; }
.login-security { display: flex; justify-content: center; gap: 7px; margin-top: 24px; color: #94a3b8; font-size: .82rem; }
.login-security span { color: #10b981; }

@media (max-width: 520px) {
    .login-scene { align-items: center; padding: 16px; }
    .login-card { padding: 28px 20px; border-radius: 20px; }
    .login-secondary-actions { flex-direction: column; align-items: center; gap: 4px; }
}

/* Dashboard customer lookup and polished transaction activity. */
.sidebar-footer {
    display: grid;
    gap: 12px;
    align-items: stretch;
}

.signed-in-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.signed-in-user div { display: grid; gap: 3px; }

.sidebar-logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #b91c1c;
    background: #fff7f7;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
}

.sidebar-logout-button:hover { background: #fee2e2; border-color: #fca5a5; }

/* Static public landing page. */
.landing-page {
    --lp-ink: #14261f;
    --lp-muted: #687a71;
    --lp-green: #087f5b;
    --lp-line: #dde6e1;
    min-height: 100vh;
    overflow: hidden;
    background: #fbfcfb;
    color: var(--lp-ink);
}
.landing-page *, .landing-page *::before, .landing-page *::after { box-sizing: border-box; }
.landing-page a { text-decoration: none; }
.landing-header, .landing-hero, .landing-value-strip, .landing-features, .landing-workflow, .landing-final-cta, .landing-footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.landing-header { min-height: 82px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; border-bottom: 1px solid var(--lp-line); }
.landing-brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; color: var(--lp-ink); }
.landing-brand-mark { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 8px; background: var(--lp-green); color: #fff; font-size: 1.15rem; font-weight: 900; }
.landing-brand > span:last-child { display: grid; gap: 1px; }.landing-brand strong { font-size: .96rem; font-weight: 900; }.landing-brand small { color: #798880; font-size: .65rem; }
.landing-nav { display: flex; gap: 36px; }.landing-nav a { color: #4c5f56; font-size: .82rem; font-weight: 700; }.landing-nav a:hover { color: var(--lp-green); }
.landing-login-link { justify-self: end; display: inline-flex; align-items: center; gap: 10px; min-height: 43px; padding: 0 18px; border: 1px solid #cbd8d1; border-radius: 7px; color: var(--lp-ink); font-size: .78rem; font-weight: 800; }.landing-login-link:hover { color: var(--lp-green); border-color: var(--lp-green); }

.landing-hero { min-height: calc(100vh - 82px); max-height: 820px; display: grid; grid-template-columns: minmax(340px,.88fr) minmax(570px,1.32fr); align-items: center; gap: 56px; padding: 54px 0 74px; }
.landing-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 19px; color: var(--lp-green); font-size: .74rem; font-weight: 800; }.landing-kicker span { width: 7px; height: 7px; border-radius: 50%; background: var(--lp-green); box-shadow: 0 0 0 4px #dff2e9; }
.landing-hero h1 { margin: 0; color: var(--lp-ink); font-size: clamp(2.55rem,4.1vw,4.45rem); line-height: 1.32; font-weight: 500; letter-spacing: 0; }.landing-hero h1 strong { color: var(--lp-green); font-weight: 900; }
.landing-hero-copy > p { max-width: 570px; margin: 24px 0 29px; color: var(--lp-muted); font-size: .98rem; line-height: 2.05; }
.landing-hero-actions { display: flex; align-items: center; gap: 25px; }.landing-primary-action { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 53px; padding: 0 25px; border-radius: 7px; background: var(--lp-green); box-shadow: 0 9px 22px rgba(8,127,91,.2); color: #fff; font-size: .88rem; font-weight: 800; }.landing-primary-action:hover { background: #056346; color: #fff; transform: translateY(-2px); }.landing-text-action { padding-bottom: 3px; border-bottom: 1px solid #91a39a; color: #43584e; font-size: .78rem; font-weight: 800; }
.landing-trust-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 29px; color: #687a71; font-size: .7rem; font-weight: 700; }.landing-trust-row span { display: inline-flex; align-items: center; gap: 6px; }.landing-trust-row i { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #e1f2e9; color: var(--lp-green); font-size: .58rem; font-style: normal; }

.landing-product-visual { overflow: hidden; min-width: 0; border: 1px solid #d5e1db; border-radius: 8px; background: #fff; box-shadow: 0 30px 65px rgba(24,50,40,.14); transform: perspective(1300px) rotateY(2deg); }
.landing-window-bar { min-height: 45px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; border-bottom: 1px solid #e7ece9; color: #839087; font-size: .57rem; }.landing-window-brand { display: flex; align-items: center; gap: 7px; color: #4d6258; font-weight: 800; }.landing-window-brand i { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 5px; background: var(--lp-green); color: #fff; font-style: normal; }
.landing-dashboard-preview { min-height: 378px; display: grid; grid-template-columns: 105px 1fr; }.landing-preview-sidebar { display: grid; align-content: start; gap: 8px; padding: 24px 10px; border-left: 1px solid #edf1ef; background: #f8faf9; }.landing-preview-sidebar span { min-height: 31px; display: flex; align-items: center; padding: 0 9px; border-radius: 5px; color: #849087; font-size: .55rem; font-weight: 700; }.landing-preview-sidebar .active { background: #e4f1eb; color: var(--lp-green); }
.landing-preview-main { min-width: 0; padding: 22px 23px; }.landing-preview-heading { display: flex; align-items: center; justify-content: space-between; }.landing-preview-heading > div { display: grid; gap: 3px; }.landing-preview-heading small { color: #909b95; font-size: .55rem; }.landing-preview-heading strong { color: #263b32; font-size: .82rem; }.landing-live { display: flex; align-items: center; gap: 5px; color: #6d7f76; font-size: .5rem; }.landing-live i { width: 6px; height: 6px; border-radius: 50%; background: #25a878; }
.landing-preview-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-top: 17px; }.landing-preview-stats article { min-width: 0; padding: 12px 11px 10px; border: 1px solid #e7ece9; border-radius: 6px; }.landing-preview-stats small, .landing-preview-stats strong, .landing-preview-stats em { display: block; }.landing-preview-stats small { margin: 8px 0 3px; color: #839087; font-size: .48rem; }.landing-preview-stats strong { color: #243a30; font-size: .72rem; white-space: nowrap; }.landing-preview-stats em { color: #8b9992; font-size: .45rem; font-style: normal; }
.preview-stat-icon { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 5px; font-size: .7rem; }.preview-stat-icon.green { background: #e0f3e9; color: #087f5b; }.preview-stat-icon.amber { background: #fff2d6; color: #c47a0b; }.preview-stat-icon.blue { background: #e5efff; color: #3671c9; }
.landing-preview-bottom { display: grid; grid-template-columns: .95fr 1.2fr; gap: 10px; margin-top: 11px; }.landing-preview-bottom > article { min-width: 0; height: 164px; padding: 12px; border: 1px solid #e7ece9; border-radius: 6px; }.landing-chart-preview > div:first-child { display: flex; justify-content: space-between; font-size: .53rem; }.landing-chart-preview > div:first-child span { color: #15966e; }.landing-bars { height: 94px; display: flex; align-items: end; justify-content: space-around; gap: 5px; padding: 10px 5px 0; border-bottom: 1px solid #e8eeeb; background: repeating-linear-gradient(to top,transparent 0,transparent 28px,#f1f4f2 29px); }.landing-bars i { width: 11px; border-radius: 3px 3px 0 0; background: #45ab85; }.landing-chart-days { display: flex; justify-content: space-around; padding-top: 5px; color: #96a199; font-size: .43rem; }
.landing-activity-preview > strong { display: block; margin-bottom: 8px; font-size: .55rem; }.landing-activity-preview > div { display: grid; grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; gap: 6px; min-height: 39px; border-top: 1px solid #f0f3f1; }.landing-activity-preview i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: .48rem; font-style: normal; }.landing-activity-preview i.paid { background: #def3e9; color: #07815b; }.landing-activity-preview i.debt { background: #fff0d3; color: #b87308; }.landing-activity-preview span { min-width: 0; overflow: hidden; color: #42564d; font-size: .44rem; white-space: nowrap; text-overflow: ellipsis; }.landing-activity-preview span small { display: block; color: #98a29d; font-size: .38rem; }.landing-activity-preview b { font-size: .42rem; }

.landing-value-strip { display: grid; grid-template-columns: repeat(3,1fr); padding: 27px 0; border-block: 1px solid var(--lp-line); }.landing-value-strip div { display: grid; gap: 5px; padding: 0 42px; border-left: 1px solid var(--lp-line); text-align: center; }.landing-value-strip div:last-child { border-left: 0; }.landing-value-strip strong { color: #294338; font-size: .85rem; }.landing-value-strip span { color: #7b8b83; font-size: .68rem; }
.landing-features { padding: 105px 0 112px; }.landing-section-heading { max-width: 665px; margin: 0 auto 48px; text-align: center; }.landing-section-heading > span, .landing-workflow-copy > span, .landing-final-cta > div > span { color: var(--lp-green); font-size: .72rem; font-weight: 900; }.landing-section-heading h2, .landing-workflow h2, .landing-final-cta h2 { margin: 12px 0 14px; color: var(--lp-ink); font-size: 2rem; line-height: 1.55; font-weight: 900; letter-spacing: 0; }.landing-section-heading p, .landing-workflow-copy > p { margin: 0; color: var(--lp-muted); font-size: .84rem; line-height: 2; }
.landing-feature-grid { display: grid; grid-template-columns: repeat(4,1fr); border-block: 1px solid var(--lp-line); }.landing-feature-grid article { min-width: 0; padding: 30px 26px 27px; border-left: 1px solid var(--lp-line); }.landing-feature-grid article:last-child { border-left: 0; }.landing-feature-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 7px; font-size: 1.1rem; }.landing-feature-icon.customer { background: #e1f2ea; color: #087f5b; }.landing-feature-icon.transaction { background: #fff0d4; color: #b97308; }.landing-feature-icon.report { background: #e6effd; color: #356bb5; }.landing-feature-icon.message { background: #f0e9f8; color: #7950a5; }.landing-feature-grid h3 { margin: 20px 0 10px; color: #253d32; font-size: .95rem; font-weight: 900; }.landing-feature-grid p { min-height: 88px; margin: 0 0 14px; color: #718078; font-size: .72rem; line-height: 1.95; }.landing-feature-grid article > span { color: #4e655a; font-size: .61rem; font-weight: 800; }

.landing-workflow { display: grid; grid-template-columns: 1fr .8fr; align-items: center; gap: 110px; padding: 96px 88px; border-radius: 8px; background: #eef4f1; }.landing-workflow-copy ol { display: grid; margin: 29px 0 0; padding: 0; list-style: none; }.landing-workflow-copy li { position: relative; display: flex; gap: 14px; min-height: 72px; }.landing-workflow-copy li:not(:last-child)::after { content: ""; position: absolute; top: 35px; right: 16px; bottom: 0; width: 1px; background: #bdcec5; }.landing-workflow-copy li > i { z-index: 1; display: grid; place-items: center; flex: 0 0 33px; height: 33px; border: 1px solid #abc4b7; border-radius: 50%; background: #f8fbf9; color: var(--lp-green); font-size: .7rem; font-style: normal; font-weight: 900; }.landing-workflow-copy li span { display: grid; align-content: start; gap: 4px; padding-top: 4px; }.landing-workflow-copy li strong { font-size: .8rem; }.landing-workflow-copy li small { color: #78877f; font-size: .68rem; }
.landing-phone-visual { display: grid; place-items: center; }.landing-phone-frame { width: 260px; min-height: 460px; padding: 9px 15px 18px; border: 7px solid #243b31; border-radius: 34px; background: #fbfcfb; box-shadow: 0 25px 45px rgba(22,48,37,.18); transform: rotate(-2deg); }.landing-phone-top { height: 26px; display: flex; justify-content: space-between; align-items: center; font-size: .48rem; }.landing-phone-top i { width: 58px; height: 16px; border-radius: 12px; background: #243b31; }.landing-phone-brand { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 7px; padding: 10px 2px 13px; border-bottom: 1px solid #e7ece9; }.landing-phone-brand > i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--lp-green); color: #fff; font-size: .65rem; font-style: normal; }.landing-phone-brand span { display: grid; font-size: .58rem; font-weight: 900; }.landing-phone-brand small { color: #8b9791; font-size: .4rem; }
.landing-phone-balance { margin-top: 14px; padding: 16px; border-radius: 7px; background: var(--lp-green); color: #fff; }.landing-phone-balance small, .landing-phone-balance strong, .landing-phone-balance span { display: block; }.landing-phone-balance small { color: #cfe9df; font-size: .46rem; }.landing-phone-balance strong { margin: 8px 0; font-size: .93rem; }.landing-phone-balance em { font-size: .45rem; font-style: normal; }.landing-phone-balance span { font-size: .42rem; }.landing-phone-shortcuts { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin: 12px 0 16px; }.landing-phone-shortcuts span { display: grid; place-items: center; gap: 4px; min-height: 57px; border: 1px solid #e1e8e4; border-radius: 6px; color: #576b61; font-size: .46rem; }.landing-phone-shortcuts i { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #e5f2ec; color: var(--lp-green); font-style: normal; }.landing-phone-list > strong { display: block; margin-bottom: 7px; font-size: .56rem; }.landing-phone-list > div { display: grid; grid-template-columns: 27px 1fr auto; align-items: center; gap: 7px; min-height: 47px; border-top: 1px solid #e8edea; }.landing-phone-list > div > i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #edf2ef; font-size: .5rem; font-style: normal; }.landing-phone-list span { display: grid; font-size: .48rem; }.landing-phone-list small { color: #929d97; font-size: .39rem; }.landing-phone-list b { color: #a26b17; font-size: .44rem; }.landing-phone-list b.green { color: var(--lp-green); }

.landing-final-cta { display: flex; align-items: center; justify-content: space-between; gap: 50px; margin-top: 105px; margin-bottom: 78px; padding: 46px 55px; border-radius: 8px; background: #163c30; color: #fff; }.landing-final-cta h2 { margin: 7px 0 4px; color: #fff; font-size: 1.55rem; }.landing-final-cta p { margin: 0; color: #c3d7ce; font-size: .75rem; }.landing-final-cta > div > span { color: #77c8a8; }.landing-final-cta > a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 25px; min-height: 50px; padding: 0 23px; border-radius: 7px; background: #fff; color: #174333; font-size: .8rem; font-weight: 900; }
.landing-footer { min-height: 98px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-top: 1px solid var(--lp-line); }.landing-footer p { margin: 0; color: #7b8a82; font-size: .65rem; }.landing-footer > a { justify-self: end; color: #4b6056; font-size: .7rem; font-weight: 800; }

@media (max-width: 1050px) {
    .landing-hero { grid-template-columns: .85fr 1.15fr; gap: 30px; }.landing-dashboard-preview { grid-template-columns: 82px 1fr; }.landing-preview-main { padding: 17px 15px; }.landing-preview-bottom { grid-template-columns: 1fr; }.landing-activity-preview { display: none; }.landing-feature-grid { grid-template-columns: 1fr 1fr; }.landing-feature-grid article:nth-child(2) { border-left: 0; }.landing-feature-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--lp-line); }.landing-workflow { gap: 55px; padding-inline: 55px; }
}
@media (max-width: 760px) {
    .landing-header, .landing-hero, .landing-value-strip, .landing-features, .landing-workflow, .landing-final-cta, .landing-footer { width: min(calc(100% - 28px),620px); }.landing-header { min-height: 70px; grid-template-columns: 1fr auto; }.landing-nav { display: none; }.landing-login-link { min-height: 40px; padding-inline: 13px; }
    .landing-hero { min-height: auto; max-height: none; grid-template-columns: 1fr; gap: 44px; padding: 55px 0 65px; }.landing-hero h1 { font-size: 2.65rem; }.landing-product-visual { transform: none; }.landing-dashboard-preview { min-height: 330px; grid-template-columns: 1fr; }.landing-preview-sidebar { display: none; }
    .landing-value-strip { grid-template-columns: 1fr; padding: 9px 0; }.landing-value-strip div { padding: 17px 10px; border-left: 0; border-bottom: 1px solid var(--lp-line); }.landing-value-strip div:last-child { border-bottom: 0; }
    .landing-features { padding: 78px 0; }.landing-section-heading { text-align: right; }.landing-section-heading h2, .landing-workflow h2 { font-size: 1.6rem; }.landing-feature-grid { grid-template-columns: 1fr; }.landing-feature-grid article, .landing-feature-grid article:nth-child(2) { border-left: 0; border-bottom: 1px solid var(--lp-line); }.landing-feature-grid article:last-child { border-bottom: 0; }.landing-feature-grid p { min-height: 0; }
    .landing-workflow { grid-template-columns: 1fr; gap: 40px; padding: 55px 25px; }.landing-phone-frame { width: 245px; }.landing-final-cta { align-items: flex-start; flex-direction: column; margin-top: 75px; padding: 35px 27px; }.landing-final-cta > a { width: 100%; justify-content: center; }.landing-footer { grid-template-columns: 1fr auto; }.landing-footer p { display: none; }
}
@media (max-width: 430px) {
    .landing-brand small { display: none; }.landing-brand-mark { width: 38px; height: 38px; }.landing-login-link { font-size: .7rem; }.landing-login-link span { display: none; }.landing-hero h1 { font-size: 2.15rem; }.landing-hero-actions { align-items: stretch; flex-direction: column; gap: 15px; }.landing-primary-action { width: 100%; }.landing-text-action { align-self: center; }.landing-trust-row { justify-content: center; gap: 12px; }.landing-preview-stats { grid-template-columns: 1fr 1fr; }.landing-preview-stats article:last-child { display: none; }.landing-preview-main { padding: 14px 11px; }
}
@media (prefers-reduced-motion: reduce) { .landing-page *, .landing-page *::before, .landing-page *::after { transition: none !important; } }

.customer-lookup-card { position: relative; z-index: 4; margin-bottom: 18px; overflow: visible; }
.product-lookup-card {
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: auto minmax(240px, 380px);
    align-items: center;
    gap: 18px;
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid #dbe4ea;
    border-radius: 8px;
    background: #fff;
}
.product-lookup-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.product-lookup-title > div { display: grid; gap: 2px; }
.product-lookup-title strong { color: #172033; font-size: .92rem; }
.product-lookup-title small { color: #64748b; font-size: .76rem; }
.product-lookup-icon, .product-cube {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: #0369a1;
    background: #e0f2fe;
    font-weight: 900;
}
.product-search-wrap { position: relative; }
.product-search-wrap > input { min-height: 42px; padding: 9px 40px; border-color: #cbd5e1; color: #172033; background: #f8fafc; }
.product-search-icon { position: absolute; z-index: 2; top: 50%; right: 13px; transform: translateY(-50%); color: #0369a1; font-size: 1.25rem; }
.product-search-clear { position: absolute; z-index: 2; top: 50%; left: 6px; width: 30px; min-height: 30px; transform: translateY(-50%); border: 0; border-radius: 7px; color: #64748b; background: #e2e8f0; font-size: 1.1rem; cursor: pointer; }
.product-search-dropdown { position: absolute; z-index: 30; top: calc(100% + 7px); inset-inline: 0; overflow: hidden; border: 1px solid #dbe4ea; border-radius: 8px; background: #fff; box-shadow: 0 16px 36px rgba(15,23,42,.16); }
.product-search-state { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 74px; padding: 14px; color: #64748b; font-size: .86rem; }
.product-search-option { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border: 0; border-bottom: 1px solid #eef2f6; color: #172033; text-align: right; background: #fff; cursor: pointer; }
.product-search-option:last-child { border-bottom: 0; }
.product-search-option:hover { background: #f0f9ff; }
.product-search-option > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.product-search-option small { color: #64748b; font-size: .76rem; }
.product-stock-dot { width: 9px; height: 9px; border-radius: 50%; }
.product-stock-dot.available { background: #16a34a; box-shadow: 0 0 0 3px #dcfce7; }
.product-stock-dot.unavailable { background: #94a3b8; box-shadow: 0 0 0 3px #f1f5f9; }
.selected-product-detail { padding: 12px; }
.selected-product-heading { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 10px; }
.selected-product-heading > div { display: grid; gap: 3px; color: #172033; }
.selected-product-heading small { color: #64748b; font-size: .74rem; }
.selected-product-price { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 11px; padding: 10px 12px; border-radius: 7px; color: #075985; background: #f0f9ff; }
.selected-product-price span { font-size: .78rem; }
.selected-product-price strong { font-size: 1rem; }
.product-search-again { width: 100%; margin-top: 9px; padding: 7px; border: 0; color: #0369a1; background: transparent; font-size: .8rem; font-weight: 700; cursor: pointer; }
.customer-lookup-heading, .customer-account-summary, .recent-list-heading, .customer-recent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.customer-lookup-heading h3 { margin: 5px 0 7px; }
.customer-lookup-heading p { margin: 0; color: #64748b; line-height: 1.7; }
.quick-action-button { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.quick-action-button span { font-size: 1.2rem; }

.customer-search-wrap { position: relative; margin-top: 20px; }
.customer-search-input { padding-inline: 48px 46px; font-weight: 600; }
.customer-search-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 17px;
    transform: translateY(-50%);
    color: #0f766e;
    font-size: 1.55rem;
    line-height: 1;
}
.search-clear-button {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 9px;
    width: 34px;
    min-height: 34px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 9px;
    color: #64748b;
    background: #f1f5f9;
    font-size: 1.25rem;
    cursor: pointer;
}
.customer-search-results {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    overflow: hidden;
    border: 1px solid #dbe4ea;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .14);
}
.customer-search-result {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 14px;
    border: 0;
    border-bottom: 1px solid #eef2f6;
    color: #172033;
    text-align: right;
    background: #fff;
    cursor: pointer;
}
.customer-search-result:last-child { border-bottom: 0; }
.customer-search-result:hover { background: #f0fdfa; }
.customer-search-result > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.customer-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #0f766e;
    background: #ccfbf1;
    font-weight: 900;
}
.customer-avatar.large { width: 52px; height: 52px; border-radius: 15px; font-size: 1.05rem; }
.search-result-balance { padding: 6px 9px; border-radius: 999px; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.search-result-balance.has-debt { color: #9a3412; background: #ffedd5; }
.search-result-balance.settled { color: #166534; background: #dcfce7; }
.search-no-result { padding: 18px; color: #64748b; text-align: center; }

.customer-detail-loading { display: flex; justify-content: center; align-items: center; gap: 9px; padding: 24px 0 5px; color: #64748b; }
.mini-spinner { width: 18px; height: 18px; border: 2px solid #cbd5e1; border-top-color: #0f766e; border-radius: 50%; animation: dashboard-spin .7s linear infinite; }
@keyframes dashboard-spin { to { transform: rotate(360deg); } }

/* Initial shell shown only while the Blazor runtime is starting. */
#app:has(.boot-loader) {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #f6f8fa;
}

.boot-loader {
    width: min(280px, 100%);
    display: grid;
    justify-items: center;
    color: #172033;
    text-align: center;
}

.boot-loader-brand {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 8px;
    background: #087f5b;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(8, 127, 91, .18);
}

.boot-loader-title {
    font-size: 1rem;
    font-weight: 700;
}

.boot-loader-track {
    width: 168px;
    height: 3px;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 2px;
    background: #dfe7e4;
}

.boot-loader-track span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: #087f5b;
    animation: boot-loader-slide 1.1s ease-in-out infinite alternate;
}

.boot-loader-caption {
    margin-top: 10px;
    color: #6b7280;
    font-size: .78rem;
}

@keyframes boot-loader-slide {
    from { transform: translateX(70%); }
    to { transform: translateX(-70%); }
}

@media (prefers-reduced-motion: reduce) {
    .boot-loader-track span {
        width: 100%;
        animation: none;
    }
}
.selected-customer-panel { margin-top: 20px; padding-top: 20px; border-top: 1px solid #e5e7eb; }
.selected-customer-identity { display: flex; align-items: center; gap: 12px; }
.selected-customer-identity div { display: grid; gap: 5px; }
.selected-customer-identity strong { font-size: 1.05rem; }
.customer-balance-box { min-width: 180px; padding: 12px 16px; border-radius: 12px; text-align: center; }
.customer-balance-box span, .customer-balance-box strong { display: block; }
.customer-balance-box span { margin-bottom: 5px; font-size: .8rem; }
.customer-balance-box.debt { color: #9a3412; background: #fff7ed; border: 1px solid #fed7aa; }
.customer-balance-box.clear { color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; }

.inline-transaction-form { margin-top: 18px; padding: 18px; border: 1px solid #99f6e4; border-radius: 14px; background: #f0fdfa; }
.inline-form-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: #115e59; }
.inline-form-heading button { width: 34px; min-height: 34px; border: 0; border-radius: 9px; color: #475569; background: #fff; font-size: 1.2rem; cursor: pointer; }
.quick-transaction-grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr auto; align-items: end; gap: 12px; }
.quick-description { min-width: 0; }
.submit-quick-transaction { white-space: nowrap; }
.inline-form-message { margin-top: 12px; padding: 10px 12px; border-radius: 9px; font-size: .88rem; }
.inline-form-message.success { color: #166534; background: #dcfce7; }
.inline-form-message.error { color: #991b1b; background: #fee2e2; }

.customer-recent-header { margin-top: 20px; padding-bottom: 10px; }
.customer-recent-header h4 { margin: 0; }
.customer-recent-transactions { display: grid; gap: 8px; }
.recent-list-heading { margin-bottom: 14px; }
.recent-list-heading h3 { margin-bottom: 3px; }
.view-all-link { padding: 7px 10px; border-radius: 8px; color: #0f766e; background: #f0fdfa; font-size: .82rem; font-weight: 800; }
.recent-transaction-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-right-width: 4px;
    border-radius: 12px;
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease;
}
.recent-transaction-row:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(15, 23, 42, .06); }
.recent-transaction-row.payment { border-right-color: #10b981; background: linear-gradient(90deg, #fff 72%, #f0fdf4 100%); }
.recent-transaction-row.debt { border-right-color: #f59e0b; background: linear-gradient(90deg, #fff 72%, #fff7ed 100%); }
.transaction-direction-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: 1.3rem; font-weight: 900; }
.payment .transaction-direction-icon { color: #047857; background: #d1fae5; }
.debt .transaction-direction-icon { color: #b45309; background: #fef3c7; }
.recent-transaction-info { display: grid; gap: 5px; min-width: 0; }
.recent-transaction-info small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-transaction-amount { display: grid; gap: 5px; text-align: left; white-space: nowrap; }
.recent-transaction-amount span { justify-self: end; padding: 3px 8px; border-radius: 999px; font-size: .74rem; font-weight: 800; }
.payment .recent-transaction-amount strong { color: #047857; }
.payment .recent-transaction-amount span { color: #166534; background: #dcfce7; }
.debt .recent-transaction-amount strong { color: #b45309; }
.debt .recent-transaction-amount span { color: #9a3412; background: #ffedd5; }
.compact-empty { margin-top: 0; padding: 13px; }

@media (max-width: 1050px) {
    .quick-transaction-grid { grid-template-columns: 1fr 1fr; }
    .submit-quick-transaction { width: 100%; }
}

@media (max-width: 600px) {
    .product-lookup-card { grid-template-columns: 1fr; gap: 12px; padding: 12px; }
    .product-search-wrap { width: 100%; }
    .customer-lookup-heading, .customer-account-summary { align-items: stretch; flex-direction: column; }
    .quick-action-button { width: 100%; justify-content: center; }
    .customer-search-result { grid-template-columns: 40px minmax(0, 1fr); }
    .search-result-balance { grid-column: 2; justify-self: start; }
    .customer-balance-box { min-width: 0; }
    .quick-transaction-grid { grid-template-columns: 1fr; }
    .recent-transaction-row { grid-template-columns: 40px minmax(0, 1fr); }
    .recent-transaction-amount { grid-column: 2; display: flex; align-items: center; justify-content: space-between; text-align: right; }
    .recent-transaction-info small { white-space: normal; }
}

/* Customer creation modal: keep it above the dashboard and search dropdown. */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.favorite-column { width: 52px; text-align: center; }
.favorite-button { width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0; border: 1px solid #d1d5db; border-radius: 9px; background: #fff; color: #94a3b8; font-size: 1.45rem; line-height: 1; cursor: pointer; transition: color .16s ease, border-color .16s ease, background .16s ease; }
.favorite-button:hover, .favorite-button.selected { color: #d97706; border-color: #fbbf24; background: #fffbeb; }
.favorite-button:disabled { cursor: wait; opacity: .55; }
.favorite-customers-section { margin: 18px 0; padding: 22px; border: 1px solid #e5e7eb; border-right: 4px solid #d97706; background: #fff; border-radius: 14px; box-shadow: 0 4px 14px rgba(15,23,42,.045); }
.favorite-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.favorite-section-heading h3 { margin: 5px 0 0; }
.favorite-customer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.favorite-customer-card { min-width: 0; padding: 16px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; display: grid; gap: 13px; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.favorite-customer-card:hover { transform: translateY(-2px); border-color: #f5cf79; box-shadow: 0 9px 22px rgba(15,23,42,.08); }
.favorite-card-top { display: flex; align-items: center; justify-content: space-between; }
.favorite-card-star { color: #d97706; font-size: 1.15rem; }
.favorite-card-identity { display: grid; gap: 4px; min-width: 0; }
.favorite-card-identity strong, .favorite-card-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.favorite-card-identity small { color: #64748b; }
.favorite-card-balance { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid #eef2f7; }
.favorite-card-balance span { color: #64748b; font-size: .78rem; }
.favorite-card-balance strong { font-size: .96rem; }
.favorite-card-balance.debt strong { color: #b45309; }
.favorite-card-balance.clear strong { color: #15803d; }
.favorite-card-action { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 9px 0 0; border: 0; border-top: 1px solid #eef2f7; background: transparent; color: #087f5b; font-weight: 800; cursor: pointer; }
.favorite-empty { min-height: 86px; display: flex; align-items: center; justify-content: center; gap: 13px; padding: 16px; border: 1px dashed #d1d5db; border-radius: 10px; background: #f9fafb; color: #64748b; }
.favorite-empty > div { display: grid; gap: 4px; }
.favorite-empty strong { color: #374151; }
.favorite-empty-star { color: #d97706; font-size: 2rem; }
@media (max-width: 1100px) { .favorite-customer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .favorite-customers-section { padding: 16px; } .favorite-section-heading { align-items: flex-start; } .favorite-customer-grid { grid-template-columns: 1fr; } .favorite-column { width: auto; text-align: right; } }
.customer-modal-backdrop {
    position: fixed;
    z-index: 3000;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    padding: 20px;
    background: rgba(15, 23, 42, .48);
    isolation: isolate;
}

.customer-modal {
    position: relative;
    z-index: 3001;
    width: min(100%, 520px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    color: #172033;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .25);
}

.customer-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.customer-modal-header h3 { margin: 5px 0 0; color: #172033; }
.customer-modal-hint { margin: 16px 0; color: #64748b; line-height: 1.8; }
.modal-close-button { width: 38px; min-height: 38px; border: 0; border-radius: 9px; color: #475569; background: #f1f5f9; font-size: 1.4rem; cursor: pointer; }
.add-customer-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.add-customer-form label { display: grid; gap: 8px; }
.add-customer-form label:last-child { grid-column: 1 / -1; }
.add-customer-form input { width: 100%; padding: 0 12px; }
.customer-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.search-no-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; color: #64748b; }
.add-customer-search-button { min-height: 38px; padding: 7px 12px; border: 0; border-radius: 9px; color: #fff; background: #087f5b; cursor: pointer; white-space: nowrap; }

@media (max-width: 600px) {
    .customer-modal-backdrop { padding: 12px; }
    .customer-modal { max-height: calc(100dvh - 24px); padding: 18px; }
    .add-customer-form { grid-template-columns: 1fr; }
    .add-customer-form label:last-child { grid-column: auto; }
    .customer-modal-actions { flex-direction: column-reverse; }
    .customer-modal-actions button, .add-customer-search-button { width: 100%; }
    .search-no-result { align-items: stretch; flex-direction: column; }
}

/* Outbox report cards aligned with the application's light visual language. */
.outbox-status-card { background:#fff; border-color:#e2e8f0; box-shadow:0 7px 22px rgba(15,23,42,.055); }
.outbox-status-card:hover { border-color:#99f6e4; box-shadow:0 12px 28px rgba(15,118,110,.1); }
.outbox-status-card small { color:#475569; }
.outbox-status-card strong { color:#172033; }
.outbox-status-card em { color:#94a3b8; }
.outbox-message-card { background:linear-gradient(145deg,#fff,#fbfdfd); border-color:#e2e8f0; box-shadow:0 5px 16px rgba(15,23,42,.04); }
.outbox-recipient strong,.outbox-payload { color:#172033; }
.outbox-message-meta { border-color:#e2e8f0; color:#64748b; }
.outbox-message-meta b { color:#334155; }
.outbox-channel-icon { background:#ecfeff; color:#0e7490; }
