:root {
    --app-ink: #111827;
    --app-muted: #667085;
    --app-line: #d8e0e8;
    --app-bg: #f3f6f9;
    --app-brand: #14532d;
    --app-accent: #0f766e;
    --app-brand-dark: color-mix(in srgb, var(--app-brand) 72%, #000);
    --app-soft: color-mix(in srgb, var(--app-brand) 7%, #fff);
    --app-soft-strong: color-mix(in srgb, var(--app-brand) 15%, #fff);
    --app-nav-bg: var(--app-brand-dark);
    --bs-primary: var(--app-brand);
    --bs-link-color: var(--app-brand);
    --bs-link-hover-color: var(--app-brand-dark);
    --app-shadow: 0 8px 22px rgba(16, 24, 40, 0.055);
    --app-shadow-strong: 0 18px 44px rgba(16, 24, 40, 0.12);
}

body {
    background:
        radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--app-brand) 5%, transparent), transparent 28%),
        linear-gradient(180deg, #f8fafc, var(--app-bg));
    color: var(--app-ink);
    font-size: 15px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

main.container-fluid {
    max-width: 1880px;
}

.app-navbar {
    background: var(--app-nav-bg);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--app-brand-dark) 14%, transparent);
    min-height: 62px;
}

.app-navbar .container-fluid {
    gap: 8px;
}

.navbar-collapse {
    align-items: center;
}

.app-brand-block {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-right: 22px;
    padding-right: 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.24);
    font-size: 0.98rem;
    letter-spacing: 0;
    max-width: 380px;
    white-space: normal;
    line-height: 1.15;
    opacity: 0.96;
}


.business-identity {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.business-logo-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-width: 40px;
    max-width: 120px;
    padding: 3px;
    border-radius: 8px;
    background: #fff;
    flex: 0 0 auto;
}

.business-logo-img {
    max-height: 34px;
    max-width: 114px;
    display: block;
    object-fit: contain;
}

.business-monogram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: 0.02em;
    flex: 0 0 auto;
}

.navbar-user-name {
    color: rgba(255, 255, 255, 0.72);
}

.business-name {
    color: #fff;
    font-weight: 750;
    line-height: 1.12;
}

.nav-glyph {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    margin-right: 7px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
}

.ui-icon {
    width: 1em;
    height: 1em;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.navbar-dark .navbar-nav .nav-link.dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: 0.12em;
}

.navbar-dark .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

.navbar-dark .btn-outline-light:hover {
    background: #fff;
    color: var(--app-brand);
}

.navbar-user {
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}



.navbar-nav {
    gap: 4px;
}

.navbar-dark .navbar-nav .nav-link {
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 650;
    padding: 8px 11px;
    transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.navbar-dark .navbar-nav .nav-link:hover {
    transform: translateY(-1px);
}

.navbar-dark .navbar-nav .nav-link.active .nav-glyph {
    background: rgba(255, 255, 255, 0.22);
}

.dropdown-menu {
    border-radius: 8px;
    border-color: var(--app-line);
    box-shadow: var(--app-shadow-strong);
    padding: 8px;
    margin-top: 9px;
}

.dropdown-item {
    border-radius: 7px;
    font-weight: 600;
    padding: 8px 10px;
}

.menu-rich {
    min-width: 270px;
}

.menu-option {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 10px;
}

.menu-option-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--app-soft);
    color: var(--app-brand);
    transition: background-color 0.14s ease, color 0.14s ease;
}

.menu-option-icon .ui-icon {
    width: 18px;
    height: 18px;
}

.menu-option-label {
    display: block;
    line-height: 1.2;
}

.menu-option-hint,
.quick-hint {
    display: block;
    margin-top: 2px;
    color: var(--app-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.menu-option:hover .menu-option-icon,
.menu-option:focus .menu-option-icon {
    background: var(--app-brand);
    color: #fff;
}

.navbar-user .ui-icon,
.dashboard-hero-action .ui-icon {
    width: 1.1em;
    height: 1.1em;
}

.dropdown-item:hover {
    background: var(--app-soft);
    color: var(--app-brand);
}

.page-title {
    font-weight: 800;
    letter-spacing: 0;
}

.stat-card,
.panel,
.table-panel {
    background: #fff;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    box-shadow: var(--app-shadow);
    transition: box-shadow 0.16s ease, border-color 0.16s ease;
}

.stat-card:hover,
.panel:hover,
.table-panel:hover {
    border-color: #cdd8e3;
}

.is-focused-within {
    border-color: color-mix(in srgb, var(--app-brand) 36%, transparent) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--app-brand) 8%, transparent), var(--app-shadow) !important;
}

.filter-panel {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: linear-gradient(180deg, #fbfdff, #f8fafc);
}

.filter-panel .form-label {
    margin-bottom: 5px;
    color: #475467;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.dashboard-shell {
    min-height: calc(100vh - 92px);
}

.dashboard-main-grid {
    align-items: start;
}

.dashboard-side {
    position: sticky;
    top: 86px;
}

.dashboard-side .panel {
    background: linear-gradient(180deg, #fff, #fbfcfd);
}

.dashboard-hero-action {
    min-width: 142px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.stat-card {
    padding: 14px 16px 15px;
    min-height: 94px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card-primary {
    background: linear-gradient(135deg, var(--app-soft), var(--app-soft) 72%);
    border-color: color-mix(in srgb, var(--app-brand) 24%, transparent);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--app-brand) 8%, transparent);
}

.stat-card-primary .stat-value {
    color: var(--app-brand-dark);
}

.stat-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.stat-icon,
.quick-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--app-soft);
    color: var(--app-brand);
    font-size: 18px;
    flex: 0 0 auto;
}

.nav-glyph .ui-icon {
    width: 13px;
    height: 13px;
    stroke-width: 2.4;
}

.stat-icon .ui-icon,
.quick-icon .ui-icon {
    width: 20px;
    height: 20px;
}

.stat-label {
    color: var(--app-muted);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
}

.btn-primary {
    background: var(--app-brand);
    border-color: var(--app-brand);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--app-brand) 16%, transparent);
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus-visible {
    background: var(--app-brand-dark) !important;
    border-color: var(--app-brand-dark) !important;
    transform: translateY(-1px);
}

.btn-outline-primary {
    --bs-btn-color: var(--app-brand);
    --bs-btn-border-color: var(--app-brand);
    --bs-btn-hover-bg: var(--app-brand);
    --bs-btn-hover-border-color: var(--app-brand);
    --bs-btn-active-bg: var(--app-brand-dark);
    --bs-btn-active-border-color: var(--app-brand-dark);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
}

.text-bg-primary {
    background-color: var(--app-brand) !important;
}

.form-check-input:checked {
    background-color: var(--app-brand);
    border-color: var(--app-brand);
}

.text-brand {
    color: var(--app-brand) !important;
}

.btn,
.form-control,
.form-select {
    border-radius: 8px;
}

.btn {
    font-weight: 700;
    transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease, border-color 0.14s ease;
}

.btn:focus,
.form-control:focus,
.form-select:focus {
    border-color: color-mix(in srgb, var(--app-brand) 42%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--app-brand) 10%, transparent);
}

.is-pressed {
    transform: scale(0.985) !important;
}

.quick-action {
    min-height: 84px;
    justify-content: flex-start;
    font-weight: 700;
    background: linear-gradient(180deg, #fff, #fbfcfd);
    border: 1px solid var(--app-line);
    border-radius: 8px;
    color: var(--app-ink);
    padding: 14px;
    gap: 12px;
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(16, 24, 40, 0.035);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.quick-action:hover .quick-icon {
    background: var(--app-soft-strong);
}

.quick-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.09);
    border-color: color-mix(in srgb, var(--app-brand) 22%, transparent);
    color: var(--app-brand);
}

.quick-action span:last-child {
    line-height: 1.2;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--app-soft), #f8fbff 55%, var(--app-soft));
    padding: 24px;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.login-logo {
    max-width: 72px;
    max-height: 64px;
    object-fit: contain;
}

.login-monogram {
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--app-brand);
    color: #fff;
    font-size: 20px;
    font-weight: 900;
}

.login-card {
    width: min(430px, 100%);
    background: #fff;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    border-top: 4px solid var(--app-brand);
    box-shadow: 0 24px 60px rgba(16, 24, 40, 0.12);
    padding: 32px;
}

.table th {
    color: #475467;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0;
    white-space: nowrap;
}

.table td {
    border-color: #edf1f5;
}

.table > :not(caption) > * > * {
    padding: 0.78rem 0.5rem;
}

.table-hover tbody tr {
    transition: background-color 0.12s ease;
}

.table-hover tbody tr:hover {
    background: var(--app-soft);
}

.receipt-number {
    font-weight: 800;
    color: var(--app-brand);
    text-decoration: none;
}

.status-badge {
    border-radius: 999px;
    font-size: 12px;
    padding: 6px 9px;
    font-weight: 700;
}

.pos-summary {
    position: sticky;
    top: 86px;
}

.pos-total-panel {
    background: linear-gradient(150deg, var(--app-brand-dark), var(--app-brand) 72%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 20px 44px color-mix(in srgb, var(--app-brand-dark) 22%, transparent);
    padding: 20px !important;
}

.pos-total-label {
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.pos-total-value {
    font-size: clamp(36px, 4.5vw, 52px);
    font-weight: 900;
    line-height: 1;
}

.pos-total-panel .summary-row {
    border-color: rgba(255, 255, 255, 0.18) !important;
}

.mixed-payment-status {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--app-muted);
    font-size: 14px;
}

.pos-total-panel .mixed-payment-status {
    color: rgba(255, 255, 255, 0.82);
}

.payment-step {
    padding-top: 4px;
}

.payment-disabled {
    opacity: 0.72;
}

.payment-help {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 700;
}

.payment-step .form-select,
.payment-step .form-control {
    border-color: rgba(255, 255, 255, 0.24);
}

.mixed-payment-box {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.payment-incomplete {
    border-color: rgba(248, 113, 113, 0.9) !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.payment-balanced {
    border-color: color-mix(in srgb, var(--app-brand) 35%, transparent) !important;
}

.sale-warning {
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff1f2;
    color: #991b1b;
    font-weight: 700;
}

.quick-form-error {
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff1f2;
    color: #991b1b;
    font-weight: 700;
}

.modal-content {
    border: 1px solid var(--app-line);
    border-radius: 8px;
    box-shadow: var(--app-shadow-strong);
}

.selection-hint {
    margin-top: 6px;
    color: var(--app-muted);
    font-size: 12px;
    font-weight: 700;
}

.selection-hint.has-selection {
    color: var(--app-muted);
}

.selection-hint button {
    border: 0;
    background: transparent;
    color: var(--app-brand);
    font-weight: 800;
    padding: 0;
}

.selection-hint button:hover {
    text-decoration: underline;
}

.autocomplete-wrap {
    position: relative;
}

.autocomplete-results {
    position: absolute;
    z-index: 1050;
    top: calc(100% + 4px);
    left: calc(var(--bs-gutter-x) * 0.5);
    right: calc(var(--bs-gutter-x) * 0.5);
    max-height: 320px;
    overflow: auto;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    box-shadow: var(--app-shadow-strong);
}

.autocomplete-item {
    width: 100%;
    display: block;
    border: 0;
    border-radius: 7px;
    background: transparent;
    padding: 10px;
    text-align: left;
}

.autocomplete-item:hover,
.autocomplete-item.is-active {
    background: var(--app-soft);
}

.autocomplete-item strong,
.autocomplete-item span {
    display: block;
}

.autocomplete-item span {
    margin-top: 2px;
    color: var(--app-muted);
    font-size: 12px;
}

.selected-pill {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--app-muted);
    font-weight: 700;
}

.selected-pill.has-selection {
    background: var(--app-soft);
    border-color: color-mix(in srgb, var(--app-brand) 24%, transparent);
    color: var(--app-brand);
}

.new-entity-button {
    white-space: nowrap;
}

.quick-create-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.quick-create-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.quick-create-inline button {
    border: 0;
    background: transparent;
    color: var(--app-brand);
    font-weight: 800;
    padding: 0;
}

.quick-create-inline button:hover {
    text-decoration: underline;
}

.inline-action {
    border: 0;
    background: transparent;
    color: var(--app-brand);
    font-weight: 800;
    padding: 0;
}

.inline-action:hover {
    text-decoration: underline;
}

.line-action-btn {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 0.94rem;
}

.catalog-browser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.catalog-browser-card {
    min-height: 104px;
    padding: 14px;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: linear-gradient(180deg, #fff, #fbfcfd);
    text-align: left;
    transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.catalog-browser-card:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--app-brand) 28%, transparent);
    box-shadow: 0 12px 26px rgba(16, 24, 40, 0.08);
}

.catalog-browser-card .catalog-type {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 4px 7px;
    border-radius: 999px;
    background: var(--app-soft);
    color: var(--app-brand);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.catalog-browser-card strong,
.catalog-browser-card small {
    display: block;
}

.catalog-browser-card small {
    margin-top: 8px;
    color: var(--app-muted);
}

.pos-toolbar .form-control,
.pos-toolbar .form-select,
.pos-toolbar .btn {
    min-height: 46px;
}

.section-kicker {
    color: var(--app-brand);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.sale-capture-panel {
    border-color: color-mix(in srgb, var(--app-brand) 20%, transparent);
    background: linear-gradient(180deg, #ffffff, var(--app-soft));
    box-shadow: 0 12px 30px color-mix(in srgb, var(--app-brand) 7%, transparent);
}

.sale-detail-panel {
    border-color: color-mix(in srgb, var(--app-accent) 22%, transparent);
    box-shadow: 0 16px 38px rgba(16, 24, 40, 0.08);
}

.sale-detail-panel .empty-lines {
    background: linear-gradient(180deg, var(--app-soft), #f8fafc);
    border-color: color-mix(in srgb, var(--app-accent) 20%, transparent);
}

.form-label {
    color: #475467;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.quick-sale-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.quick-sale-tile {
    min-height: 78px;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: linear-gradient(180deg, #fff, #fbfcfd);
    color: var(--app-ink);
    padding: 12px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.035);
    transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.quick-sale-tile:focus-visible,
.quick-action:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--app-brand) 16%, transparent);
    outline-offset: 2px;
}

.quick-sale-tile:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--app-brand) 28%, transparent);
    box-shadow: 0 12px 26px rgba(16, 24, 40, 0.08);
}

.quick-sale-service {
    background: linear-gradient(180deg, var(--app-soft), #fff);
}

.quick-sale-name {
    display: block;
    font-weight: 800;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-sale-meta {
    display: block;
    color: var(--app-muted);
    font-size: 12px;
    margin-top: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pos-table th,
.pos-table td {
    padding-top: 8px;
    padding-bottom: 8px;
}

.pos-table .form-control {
    min-height: 36px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.empty-lines {
    border: 1px dashed var(--app-line);
    border-radius: 8px;
    padding: 28px 18px;
    color: var(--app-muted);
    background: #fbfcfd;
    text-align: center;
}

.line-added {
    animation: line-in 0.2s ease;
}

@keyframes line-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.receipt {
    background: #fff;
    color: #111;
    max-width: 860px;
    margin: 0 auto;
    padding: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(16, 24, 40, 0.08);
    font-size: 14px;
}

.receipt-title {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 1px;
}

.receipt-business {
    font-size: 20px;
    font-weight: 800;
}

.receipt-meta {
    color: #4b5563;
    line-height: 1.45;
}

.receipt-total-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
}

.receipt-grand-total {
    font-size: 22px;
    font-weight: 900;
}

.receipt-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--app-brand);
}

.receipt-brand {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.receipt-logo {
    max-width: 90px;
    max-height: 80px;
    object-fit: contain;
}

.receipt-doc {
    text-align: right;
}

.receipt-title {
    color: var(--app-brand);
}

.receipt-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 4px 16px;
    margin-bottom: 14px;
}

.receipt-totals {
    display: flex;
    justify-content: flex-end;
}

.receipt-totals .receipt-total-box {
    width: min(340px, 100%);
}

.receipt-annulled {
    margin-top: 14px;
    padding: 8px;
    border: 2px solid #b91c1c;
    color: #b91c1c;
    font-weight: 900;
    text-align: center;
}

.receipt-footer {
    margin-top: 22px;
    padding-top: 12px;
    border-top: 1px dashed #d1d5db;
    text-align: center;
    color: #4b5563;
    font-size: 13px;
}

.receipt-legal {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Formato ticket (impresora termica 80mm) */
.receipt-ticket .receipt {
    max-width: 330px;
    padding: 16px;
    font-size: 12px;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.receipt-ticket .receipt-head,
.receipt-ticket .receipt-brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.receipt-ticket .receipt-head {
    border-bottom: 1px dashed #111;
}

.receipt-ticket .receipt-doc {
    text-align: center;
}

.receipt-ticket .receipt-title,
.receipt-ticket .receipt-business {
    font-size: 15px;
    color: #111;
}

.receipt-ticket .receipt-info {
    grid-template-columns: 1fr;
}

.receipt-ticket .receipt-lines th:nth-child(3),
.receipt-ticket .receipt-lines td:nth-child(3) {
    display: none;
}

.receipt-ticket .receipt-lines > :not(caption) > * > * {
    padding: 3px 2px;
    font-size: 12px;
}

.receipt-ticket .receipt-total-box {
    width: 100%;
    background: none;
    border: 0;
    padding: 0;
}

.receipt-ticket .receipt-grand-total {
    font-size: 16px;
}

.app-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1080;
    background: #17202a;
    color: #fff;
    border-radius: 8px;
    padding: 12px 14px;
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.2);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.app-confirm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: grid;
    place-items: center;
    background: rgba(17, 24, 39, 0.28);
    opacity: 0;
    transition: opacity 0.16s ease;
}

.app-confirm-backdrop.is-visible {
    opacity: 1;
}

.app-confirm {
    width: min(380px, calc(100vw - 32px));
    background: #fff;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    box-shadow: var(--app-shadow-strong);
    padding: 18px;
    transform: translateY(8px);
    transition: transform 0.16s ease;
}

.app-confirm-backdrop.is-visible .app-confirm {
    transform: translateY(0);
}

.app-confirm-title {
    font-weight: 800;
    margin-bottom: 6px;
}

.app-confirm-body {
    color: var(--app-muted);
    margin-bottom: 18px;
}

.app-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.app-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.is-submitting {
    pointer-events: none;
    opacity: 0.78;
}

/* Cierre diario */
.title-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--app-soft);
    color: var(--app-brand);
}

.title-icon .ui-icon {
    width: 21px;
    height: 21px;
}

.closing-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.closing-badge {
    background: #fef3c7;
    color: #92400e;
    font-weight: 800;
}

.closing-badge-done {
    background: var(--app-soft-strong);
    color: var(--app-brand-dark);
}

.closing-done {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid color-mix(in srgb, var(--app-brand) 25%, transparent);
    border-radius: 8px;
    background: var(--app-soft);
    color: var(--app-brand-dark);
}

.closing-done-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--app-brand);
    color: #fff;
}

.closing-done-icon .ui-icon {
    width: 20px;
    height: 20px;
}

/* Configuracion */
.logo-field {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.logo-field-preview {
    width: 72px;
    height: 72px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px dashed var(--app-line);
    border-radius: 10px;
    background: var(--app-soft);
    color: var(--app-brand);
    font-weight: 900;
    font-size: 20px;
    overflow: hidden;
}

.logo-field-preview img {
    max-width: 64px;
    max-height: 64px;
    object-fit: contain;
}

.color-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.color-swatch {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: var(--swatch);
    box-shadow: 0 0 0 1px var(--app-line);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.color-swatch:hover {
    transform: scale(1.08);
}

.color-swatch.is-active {
    box-shadow: 0 0 0 2px var(--swatch);
}

.color-custom {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 4px;
    border: 1px solid var(--app-line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.color-custom input {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    cursor: pointer;
}

.settings-preview-wrap {
    position: sticky;
    top: 86px;
}

.theme-preview {
    border: 1px solid var(--app-line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--app-shadow);
}

.theme-preview-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--app-nav-bg);
    color: #fff;
}

.theme-preview-logo {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 900;
    font-size: 13px;
    overflow: hidden;
}

.theme-preview-logo img {
    max-width: 30px;
    max-height: 30px;
    object-fit: contain;
    background: #fff;
}

.theme-preview-body {
    display: grid;
    gap: 14px;
    padding: 16px;
    background: var(--app-bg);
}

.theme-preview-total {
    padding: 14px 16px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(150deg, var(--app-brand-dark), var(--app-brand) 72%);
}

.theme-preview-total small {
    opacity: 0.75;
    font-weight: 800;
    text-transform: uppercase;
}

.theme-preview-total div {
    font-size: 28px;
    font-weight: 900;
}

.theme-preview-chip {
    align-self: center;
    background: var(--app-soft);
    color: var(--app-accent);
}

@media (max-width: 991.98px) {
    .app-brand-block {
        border-right: 0;
        margin-right: 0;
        padding-right: 0;
        max-width: min(420px, calc(100% - 68px));
    }

    .business-name {
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .navbar-nav {
        padding-top: 12px;
    }

    .pos-summary {
        position: static;
    }

    .dashboard-side,
    .settings-preview-wrap {
        position: static;
    }

    .navbar-user {
        border-left: 0;
        padding-left: 0;
        padding-top: 12px;
    }

    .quick-sale-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 14px;
    }

    main.container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }

    .quick-action {
        min-height: 76px;
        padding: 12px;
    }

    .quick-sale-grid {
        grid-template-columns: 1fr;
    }

    .receipt {
        padding: 18px;
    }
}

@media print {
    @page {
        margin: 6mm;
    }

    body {
        background: #fff;
    }

    body.receipt-ticket {
        width: 76mm;
    }

    .receipt-ticket .receipt {
        max-width: none;
    }

    .no-print,
    .app-navbar {
        display: none !important;
    }

    main {
        padding: 0 !important;
    }

    .receipt {
        border: 0;
        max-width: none;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
    }
}
