* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #1b2230;
}

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

.shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: #101828;
    color: #fff;
    padding: 24px;
}

.brand {
    display: grid;
    gap: 4px;
    margin-bottom: 32px;
}

.brand span {
    color: #98a2b3;
    font-size: 13px;
}

.menu {
    display: grid;
    gap: 10px;
}

.menu a {
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}

.menu a:hover {
    background: rgba(255, 255, 255, 0.10);
}

.content {
    padding: 24px;
}

.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.topbar h1 {
    margin: 0 0 8px;
}

.topbar p {
    margin: 0;
    color: #667085;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3538cd;
    font-size: 13px;
    font-weight: 700;
}

.grid {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

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

.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
}

.stat span {
    display: block;
    color: #667085;
    margin-bottom: 8px;
}

.stat strong {
    font-size: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

label {
    display: grid;
    gap: 6px;
    font-size: 14px;
}

input,
textarea,
select,
button {
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
}

textarea {
    resize: vertical;
    min-height: 88px;
    font-family: inherit;
}

button {
    background: #0f766e;
    color: #fff;
    border: 0;
    cursor: pointer;
}

button:hover {
    background: #115e59;
}

.button-secondary {
    background: #fff;
    color: #344054;
    border: 1px solid #d0d5dd;
}

.button-secondary:hover {
    background: #f8fafc;
}

.inline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 14px;
}

.button-danger {
    background: #b42318;
}

.button-danger:hover {
    background: #912018;
}

.wide-button {
    width: 100%;
}

.small-button {
    padding: 8px 10px;
    font-size: 12px;
}

.link-button {
    display: inline-block;
    background: #155eef;
    color: #fff;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    font-size: 14px;
}

.link-button:hover {
    background: #004eea;
}

.compact-link {
    padding: 8px 12px;
    font-size: 13px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

.table-responsive {
    overflow-x: auto;
}

th,
td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid #eaecf0;
    font-size: 14px;
}

.checklist,
.steps {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 8px;
}

.action-stack {
    display: grid;
    gap: 10px;
}

.muted-text {
    color: #667085;
    font-size: 12px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-pill.success {
    background: #dcfae6;
    color: #067647;
}

.status-pill.neutral {
    background: #f2f4f7;
    color: #344054;
}

.toolbar-inline {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.toolbar-inline label {
    width: min(420px, 100%);
}

.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.panel-heading h2,
.panel-heading h3 {
    margin: 0 0 6px;
}

.panel-heading p {
    margin: 0;
    color: #667085;
    font-size: 14px;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button-row form {
    margin: 0;
}

.product-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.product-guide-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid #eaecf0;
    border-radius: 14px;
    background: #f8fafc;
}

.product-guide-card strong {
    font-size: 15px;
}

.product-guide-card span {
    color: #667085;
    font-size: 13px;
    line-height: 1.5;
}

.product-highlight {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding: 16px;
    border-radius: 14px;
    background: #eff8ff;
    border: 1px solid #d1e9ff;
}

.product-highlight p {
    margin: 0;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.table-actions form {
    margin: 0;
}

.taxonomy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.taxonomy-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid #eaecf0;
    border-radius: 14px;
    background: #f8fafc;
}

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

.taxonomy-heading strong {
    font-size: 15px;
}

.taxonomy-heading span {
    color: #667085;
    font-size: 12px;
}

.taxonomy-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.taxonomy-list {
    display: grid;
    gap: 8px;
}

.taxonomy-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e4e7ec;
}

.taxonomy-item form {
    margin: 0;
}

.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(21, 94, 239, 0.18), transparent 30%),
        linear-gradient(135deg, #0f172a, #111827 55%, #1d2939);
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: min(480px, 100%);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 32px 80px rgba(2, 6, 23, 0.28);
}

.auth-brand h1 {
    margin-bottom: 10px;
}

.auth-brand p {
    margin-top: 0;
    color: #667085;
}

.auth-badge {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #027a48;
    font-size: 12px;
    font-weight: 700;
}

.auth-form {
    display: grid;
    gap: 14px;
    margin: 18px 0 24px;
}

.auth-hint {
    background: #f8fafc;
    border: 1px solid #eaecf0;
    border-radius: 16px;
    padding: 16px;
    color: #475467;
}

.auth-hint p {
    margin: 6px 0;
}

.alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin: 18px 0;
    font-size: 14px;
}

.alert.error {
    background: #fef3f2;
    color: #b42318;
    border: 1px solid #fecdca;
}

.alert.warning {
    background: #fffaeb;
    color: #b54708;
    border: 1px solid #fedf89;
}

.pdv-shell {
    margin-bottom: 20px;
}

.pdv-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.9fr);
    gap: 20px;
}

.pdv-main,
.pdv-summary {
    display: grid;
    gap: 18px;
}

.pdv-toolbar,
.pdv-entry,
.pdv-customer,
.pdv-shortcuts,
.pdv-hero-metrics {
    display: grid;
    gap: 14px;
}

.pdv-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.pdv-toolbar h2,
.pdv-summary h2 {
    margin: 0 0 8px;
}

.pdv-toolbar p {
    margin: 0;
    color: #667085;
}

.pdv-kpis {
    display: grid;
    gap: 8px;
    color: #475467;
    font-size: 13px;
}

.pdv-hero-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pdv-metric-card {
    display: grid;
    gap: 6px;
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f172a, #1d2939);
    color: #fff;
}

.pdv-metric-card span,
.pdv-metric-card small {
    color: rgba(255, 255, 255, 0.78);
}

.pdv-metric-card strong {
    font-size: 28px;
    line-height: 1;
}

.pdv-entry-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.8fr);
    gap: 16px;
}

.pdv-scan-panel {
    padding: 18px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e4e7ec;
}

.pdv-tip-panel {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 18px;
    border-radius: 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.pdv-entry {
    grid-template-columns: 2fr 120px 1.4fr auto;
    align-items: end;
}

.pdv-customer {
    grid-template-columns: 1.2fr 1fr 180px;
}

.pdv-footer {
    display: grid;
    gap: 16px;
}

.pdv-shortcuts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pdv-note {
    margin: 0;
    color: #667085;
    font-size: 13px;
}

.summary-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eaecf0;
}

.summary-line.total {
    font-size: 18px;
}

.summary-line.total strong {
    font-size: 30px;
    color: #155eef;
}

.pdv-payment-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pdv-payment-chips span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3538cd;
    font-size: 13px;
    font-weight: 700;
}

.pdv-received-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pdv-hold-box {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e4e7ec;
}

.pdv-hold-box h3 {
    margin: 0;
}

.hold-list {
    display: grid;
    gap: 10px;
}

.hold-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e4e7ec;
}

.hold-card strong {
    display: block;
    margin-bottom: 4px;
}

.hold-card span,
.hold-card p {
    margin: 0;
    color: #667085;
    font-size: 13px;
}

.hold-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qty-control {
    display: inline-grid;
    grid-template-columns: auto 72px auto;
    gap: 6px;
    align-items: center;
}

.qty-control input {
    padding: 8px 10px;
    text-align: center;
}

.pdv-checklist h3 {
    margin-bottom: 10px;
}

.empty-state {
    text-align: center;
    color: #667085;
}

.mono-cell {
    white-space: nowrap;
    font-weight: 700;
    color: #0b4f8c;
}

.pdv-scale-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.62);
}

.pdv-scale-overlay[hidden] {
    display: none !important;
}

.pdv-scale-dialog {
    width: min(460px, 100%);
    display: grid;
    gap: 14px;
    padding: 24px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.35);
}

.pdv-scale-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pdv-scale-dialog-head strong {
    font-size: 22px;
}

.pdv-scale-dialog-text {
    margin: 0;
    color: #475467;
    font-size: 14px;
}

.pdv-scale-dialog-form {
    display: grid;
    gap: 14px;
}

.pdv-scale-dialog-form input {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.04em;
}

.pos-body {
    margin: 0;
    min-height: 100vh;
    background: #dfe5ee;
    color: #172334;
}

.pos-shell {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 100vh;
}

.pos-sidebar {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 24px;
    padding: 18px 14px;
    background: linear-gradient(180deg, #032043 0%, #012b63 100%);
    color: #fff;
    box-shadow: 18px 0 42px rgba(2, 32, 67, 0.18);
}

.pos-brand {
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
}

.pos-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}

.pos-brand strong,
.pos-brand span {
    display: block;
}

.pos-brand span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.72);
}

.pos-menu {
    display: grid;
    gap: 10px;
    align-content: start;
}

.pos-menu a,
.pos-menu-ghost {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 12px 8px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: #fff;
    font: inherit;
    transition: background 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.pos-menu a span,
.pos-menu-ghost span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.10);
    font-size: 12px;
    font-weight: 700;
}

.pos-menu a strong,
.pos-menu-ghost strong {
    font-size: 11px;
    font-weight: 600;
}

.pos-menu a.active,
.pos-menu a:hover,
.pos-menu-ghost:hover {
    background: rgba(255, 255, 255, 0.10);
    transform: translateY(-1px);
}

.pos-menu-ghost {
    opacity: 0.78;
}

.pos-sidebar-footer {
    display: grid;
    gap: 12px;
}

.pos-user-mini {
    display: grid;
    gap: 4px;
    text-align: center;
}

.pos-user-mini small {
    color: rgba(255, 255, 255, 0.65);
}

.pos-main-content {
    padding: 22px;
    overflow-x: auto;
}

.pdv-screen {
    margin-bottom: 18px;
}

.pdv-terminal {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) 280px;
    gap: 16px;
    min-height: calc(100vh - 36px);
    align-items: start;
}

.pdv-workspace,
.pdv-right-panel {
    display: grid;
    gap: 14px;
}

.pdv-workspace {
    background: #f5f7fb;
    border: 1px solid #ced6e1;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.pdv-right-panel {
    align-content: start;
    background: #eef2f7;
    border: 1px solid #ced6e1;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    position: sticky;
    top: 18px;
}

.pdv-screen-header {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.pdv-window-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #d7dde6;
    border-radius: 10px;
    background: #ffffff;
}

.pdv-window-dots {
    display: flex;
    gap: 6px;
}

.pdv-window-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #c7d0dd;
}

.pdv-window-dots span:first-child {
    background: #f26b3a;
}

.pdv-window-dots span:nth-child(2) {
    background: #ffcc4d;
}

.pdv-window-dots span:nth-child(3) {
    background: #3fb950;
}

.pdv-window-title {
    font-size: 13px;
    font-weight: 700;
    color: #344054;
}

.pdv-window-meta {
    font-size: 12px;
    font-weight: 700;
    color: #0b4f8c;
}

.pdv-status-card,
.pdv-identity-card,
.pdv-cart-panel,
.pdv-payments-box,
.pdv-shortcuts-box,
.pdv-total-box {
    background: #fff;
    border: 1px solid #d7dde6;
    border-radius: 10px;
}

.pdv-status-card {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
}

.pdv-status-card span {
    font-size: 11px;
    color: #667085;
    text-transform: uppercase;
}

.pdv-status-card strong {
    font-size: 20px;
    color: #032c64;
}

.pdv-status-card i {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 8px;
    border-radius: 999px;
    background: #16a34a;
}

.pdv-scan-band {
    display: grid;
    gap: 10px;
}

.pdv-command-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pdv-mini-action {
    padding: 10px 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #cfd8e3;
    color: #0b4f8c;
    font-size: 13px;
    font-weight: 700;
}

.pdv-mini-action:hover {
    background: #eef4ff;
}

.pdv-band-label {
    font-size: 12px;
    font-weight: 700;
    color: #344054;
    text-transform: uppercase;
}

.pdv-band-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    background: #fff;
    border: 2px solid #0b4f8c;
    border-radius: 10px;
}

.pdv-band-input input {
    border: 0;
    padding: 4px 0;
    font-size: 16px;
    font-weight: 600;
    outline: none;
}

.pdv-barcode-mark {
    font-size: 18px;
    letter-spacing: 1px;
    color: #111827;
}

.pdv-band-tools {
    display: grid;
    grid-template-columns: 110px 220px minmax(320px, 1fr) 150px;
    gap: 12px;
    align-items: end;
}

.pdv-band-tools label {
    font-size: 12px;
    font-weight: 700;
    color: #475467;
    text-transform: uppercase;
}

.pdv-tool-field {
    display: grid;
    gap: 6px;
}

.pdv-band-tools input,
.pdv-band-tools select,
.pdv-tool-submit {
    min-height: 50px;
    border-radius: 14px;
}

.pdv-band-tools input,
.pdv-band-tools select {
    width: 100%;
    padding: 0 14px;
    border: 1px solid #cfd8e3;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.pdv-tool-field-qty input {
    text-align: center;
    font-weight: 700;
}

.pdv-tool-field-price input {
    font-weight: 600;
}

.pdv-tool-field-product select {
    font-weight: 600;
}

.pdv-tool-submit {
    width: 100%;
    align-self: end;
    font-weight: 700;
}

.pdv-inline-entry-card {
    display: grid;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #f6cbb5;
    border-radius: 12px;
    background: #fff6f1;
    box-shadow: inset 0 0 0 1px rgba(246, 107, 58, 0.08);
}

.pdv-inline-entry-card[hidden] {
    display: none !important;
}

.pdv-inline-entry-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
}

.pdv-inline-entry-head strong {
    display: block;
    font-size: 18px;
    color: #8f2d0b;
}

.pdv-inline-entry-head p {
    margin: 4px 0 0;
    color: #7a5145;
    font-size: 13px;
}

.pdv-inline-entry-body {
    display: grid;
    grid-template-columns: minmax(220px, 320px) auto;
    gap: 12px;
    align-items: end;
}

.pdv-inline-entry-body input {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.03em;
}

.pdv-top-identity-row {
    display: grid;
    grid-template-columns: 1.25fr 1fr 0.8fr;
    gap: 14px;
}

.pdv-identity-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    min-height: 138px;
}

.pdv-identity-card span {
    font-size: 11px;
    color: #667085;
    text-transform: uppercase;
}

.pdv-identity-card strong {
    color: #0b4f8c;
    font-size: 18px;
}

.pdv-identity-card p,
.pdv-identity-card small {
    margin: 0;
    color: #475467;
}

.pdv-identity-card #selected-item-hint {
    margin: 0;
    font-size: 12px;
    color: #0b4f8c;
    font-weight: 700;
}

.pdv-identity-card.accent {
    background: #fff6f1;
    border-color: #f6cbb5;
}

.pdv-identity-card.slim {
    background: #f9fafb;
}

.pdv-bottom-shortcuts-row {
    display: flex;
    justify-content: center;
}

.pdv-shortcuts-inline {
    width: min(100%, 920px);
    padding: 16px 18px;
}

.pdv-shortcuts-inline h3 {
    margin-bottom: 14px;
    text-align: center;
}

.pdv-inline-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.pdv-inline-metrics div {
    padding: 10px;
    border-radius: 10px;
    background: #eef4ff;
    text-align: center;
}

.pdv-inline-metrics small {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
}

.pdv-inline-metrics strong {
    font-size: 18px;
}

.pdv-cart-panel {
    display: grid;
    min-height: 420px;
    overflow: hidden;
}

.pdv-cart-head,
.pdv-cart-footer {
    display: grid;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #032c64;
    color: #fff;
}

.pdv-cart-head {
    grid-template-columns: minmax(0, 1.5fr) 180px 160px 140px 110px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.pdv-cart-table {
    background: #fff;
    overflow: auto;
}

.pdv-cart-table table {
    width: 100%;
}

.pdv-cart-table td {
    padding: 12px 14px;
    vertical-align: middle;
}

.pdv-cart-table tr {
    cursor: pointer;
}

.pdv-cart-table tr.selected-row {
    background: #e7f0ff;
}

.pdv-cart-footer {
    grid-template-columns: minmax(0, 1fr) auto;
    background: #f7f9fc;
    color: #172334;
    border-top: 1px solid #d7dde6;
}

.pdv-cart-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
}

.pdv-cart-stats strong {
    margin-left: 6px;
    color: #032c64;
}

.pdv-cart-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pdv-total-box {
    padding: 18px 16px;
    background: #032c64;
    color: #fff;
}

.pdv-total-box span {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.76);
}

.pdv-total-box strong {
    display: block;
    margin: 10px 0 14px;
    font-size: 52px;
    line-height: 1;
}

.pdv-total-sub {
    display: grid;
    gap: 10px;
}

.pdv-total-sub div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.pdv-total-sub small {
    color: rgba(255, 255, 255, 0.72);
}

.pdv-payments-box,
.pdv-shortcuts-box {
    padding: 14px;
}

.pdv-register-box {
    display: grid;
    gap: 14px;
    padding: 14px;
    background: #fff;
    border: 1px solid #d7dde6;
    border-radius: 10px;
}

.pdv-register-head,
.pdv-register-last-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.pdv-register-head h3,
.pdv-register-methods > strong,
.pdv-register-last strong {
    margin: 0;
}

.pdv-register-head p,
.pdv-register-note {
    margin: 4px 0 0;
    color: #667085;
    font-size: 13px;
}

.pdv-register-chip,
.pdv-diff-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.pdv-register-chip {
    background: #eef2ff;
    color: #3538cd;
}

.pdv-diff-chip.neutral {
    background: #ecfdf3;
    color: #027a48;
}

.pdv-diff-chip.positive {
    background: #eff8ff;
    color: #175cd3;
}

.pdv-diff-chip.negative {
    background: #fef3f2;
    color: #b42318;
}

.pdv-register-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.pdv-register-metrics article {
    display: grid;
    gap: 6px;
    padding: 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #d7dde6;
}

.pdv-register-metrics span {
    font-size: 12px;
    color: #667085;
    text-transform: uppercase;
}

.pdv-register-metrics strong {
    font-size: 18px;
    color: #032c64;
}

.pdv-register-breakdown,
.pdv-register-methods,
.pdv-register-last {
    display: grid;
    gap: 10px;
}

.pdv-register-methods {
    padding: 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #d7dde6;
}

.pdv-register-last {
    padding-top: 12px;
    border-top: 1px dashed #d0d5dd;
}

.pdv-payments-box h3,
.pdv-shortcuts-box h3 {
    margin: 0 0 12px;
    color: #344054;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.4px;
}

.pdv-payment-list {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.pdv-split-payment-box {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #d7dde6;
}

.pdv-split-payment-head,
.pdv-split-payment-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: #344054;
}

.pdv-split-payment-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.payment-breakdown-list {
    display: grid;
    gap: 8px;
}

.payment-line-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #d7dde6;
}

.payment-line-card strong,
.payment-line-card span {
    display: block;
}

.payment-line-card span {
    margin-top: 4px;
    font-size: 12px;
    color: #667085;
}

.pdv-payment-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #d0d5dd;
    color: #344054;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.pdv-payment-option::after {
    content: '>';
    font-weight: 700;
}

.pdv-payment-option.active {
    background: #0b4f8c;
    color: #fff;
    border-color: #0b4f8c;
    box-shadow: 0 8px 24px rgba(11, 79, 140, 0.24);
}

.pdv-payment-option:hover {
    transform: translateY(-1px);
}

.pdv-hidden-field {
    display: none;
}

.pdv-shortcut-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.pdv-shortcut {
    display: grid;
    gap: 4px;
    min-height: 96px;
    align-content: center;
    justify-items: center;
    border-radius: 10px;
    color: #fff;
    border: 0;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
    transition: transform 0.18s ease, filter 0.18s ease;
}

.pdv-shortcut span {
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
}

.pdv-shortcut small {
    color: rgba(255, 255, 255, 0.86);
}

.pdv-shortcut.blue {
    background: #0b4f8c;
}

.pdv-shortcut.orange {
    background: #f26b3a;
}

.pdv-shortcut:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.pdv-hold-box.compact {
    padding: 14px;
}

.pdv-hold-box.compact .hold-list {
    max-height: 200px;
    overflow: auto;
}

.pdv-history {
    margin-bottom: 0;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.pdv-history-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.pdv-history-head h2 {
    margin: 0 0 6px;
}

.pdv-history-head p {
    margin: 0;
    color: #667085;
    font-size: 13px;
}

.pdv-history-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.pdv-history-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #d0d5dd;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.pdv-history-filter:hover {
    background: #eef2ff;
    color: #3538cd;
}

.pdv-history-filter.active {
    background: #0b4f8c;
    border-color: #0b4f8c;
    color: #fff;
}

.pos-alert {
    margin-bottom: 14px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.alert.success {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}

.receipt-body {
    margin: 0;
    padding: 24px;
    background: #eef2f6;
    font-family: "Courier New", Courier, monospace;
}

.receipt-page {
    display: grid;
    justify-content: center;
    gap: 18px;
}

.receipt-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.receipt-ticket {
    width: 80mm;
    max-width: 100%;
    padding: 16px 14px;
    background: #fff;
    color: #111827;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.receipt-header,
.receipt-footer {
    display: grid;
    gap: 4px;
    text-align: center;
    font-size: 12px;
}

.receipt-header strong {
    font-size: 16px;
}

.receipt-company {
    font-weight: 700;
}

.receipt-block {
    display: grid;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px dashed #98a2b3;
}

.receipt-divider {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
}

.receipt-item {
    display: grid;
    gap: 4px;
    font-size: 12px;
}

.receipt-item b {
    text-align: right;
}

.receipt-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
}

.receipt-line.total {
    font-size: 14px;
    font-weight: 700;
}

.receipt-qr {
    display: flex;
    justify-content: center;
    padding: 4px 0;
}

.receipt-qr img {
    width: 44mm;
    max-width: 100%;
    height: auto;
    image-rendering: pixelated;
}

.receipt-key,
.receipt-note {
    display: grid;
    gap: 4px;
    text-align: center;
    font-size: 11px;
}

.receipt-key strong {
    word-break: break-all;
    font-size: 11px;
}

@media (max-width: 1000px) {
    .shell,
    .cols-2,
    .cols-3,
    .cols-4,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .topbar,
    .pdv-layout,
    .pdv-toolbar,
    .pdv-hero-metrics,
    .pdv-entry-wrap,
    .pdv-entry,
    .pdv-customer,
    .pdv-shortcuts,
    .product-guide-grid,
    .taxonomy-grid,
    .taxonomy-form {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-direction: column;
    }

    .panel-heading,
    .button-row {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 1260px) {
    .pdv-terminal,
    .pdv-screen-header,
    .pdv-top-identity-row,
    .pdv-inline-entry-body,
    .pdv-band-tools,
    .pdv-cart-head,
    .pdv-cart-footer,
    .pdv-window-bar {
        grid-template-columns: 1fr;
    }

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

    .pos-sidebar {
        grid-template-rows: auto;
    }

    .pos-menu {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .pos-sidebar-footer {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .pdv-workspace,
    .pdv-right-panel {
        padding: 14px;
    }

    .pdv-right-panel {
        position: static;
    }

    .pdv-shortcut-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pdv-register-metrics {
        grid-template-columns: 1fr;
    }

    .pdv-history-head {
        flex-direction: column;
    }

    .pdv-history-filters {
        justify-content: flex-start;
    }


    .pdv-total-box strong {
        font-size: 42px;
    }

    .pdv-command-strip,
    .pdv-received-shortcuts,
    .receipt-actions {
        flex-direction: column;
    }

    .pdv-split-payment-form {
        grid-template-columns: 1fr;
    }
}

@media print {
    .receipt-body {
        background: #fff;
        padding: 0;
    }

    .receipt-actions {
        display: none;
    }

    .receipt-ticket {
        box-shadow: none;
        border-radius: 0;
        width: 80mm;
        padding: 8px;
    }
}
