* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--app-bg, #f4f4f5);
    color: var(--app-text, #09090b);
    font-family: "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input {
    font: inherit;
}

textarea,
select {
    font: inherit;
}

.app-shell {
    min-height: 100vh;
}

.mobile-menu-toggle {
    display: none;
}

.mobile-menu-backdrop,
.mobile-menu-close,
.mobile-menu-button {
    display: none;
}

.main-heading {
    align-items: center;
    display: flex;
    gap: 12px;
    min-width: 0;
}

.sidebar {
    background: var(--app-menu, #fff);
    border-bottom: 1px solid #e4e4e7;
}

.brand {
    align-items: center;
    border-bottom: 1px solid #e4e4e7;
    display: flex;
    gap: 12px;
    min-height: 80px;
    padding: 0 24px;
}

.brand-mark {
    align-items: center;
    background: var(--app-primary, #09090b);
    border-radius: 8px;
    color: #fff;
    display: grid;
    flex: 0 0 52px;
    font-size: 14px;
    font-weight: 700;
    height: 52px;
    justify-items: center;
    width: 52px;
}

.brand-mark.large {
    font-size: 24px;
    height: 72px;
    width: 72px;
}

.brand-logo {
    border-radius: 8px;
    flex: 0 0 54px;
    height: 54px;
    object-fit: contain;
    width: 54px;
}

.brand-logo-wide {
    display: block;
    height: 54px;
    max-width: 220px;
    object-fit: contain;
    width: 100%;
}

.brand-title,
.user-name {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-subtitle,
.user-email,
.card-text,
.eyebrow {
    color: var(--app-secondary, #71717a);
    margin: 0;
}

.brand-subtitle,
.user-email,
.eyebrow {
    font-size: 12px;
}

.nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 16px;
}

.nav-item {
    align-items: center;
    border-radius: 8px;
    color: #52525b;
    display: flex;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 600;
    gap: 12px;
    padding: 10px 12px;
}

.nav-item.active {
    background: var(--app-primary, #09090b);
    color: #fff;
}

.nav-group {
    display: block;
    flex: 0 0 auto;
    min-width: 0;
}

.nav-group summary {
    cursor: pointer;
    list-style: none;
}

.nav-group summary::-webkit-details-marker {
    display: none;
}

.nav-toggle {
    width: 100%;
}

.nav-chevron {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 900;
    height: auto;
    justify-content: center;
    line-height: 1;
    margin-left: auto;
    transition: transform 0.16s ease;
    width: auto;
}

.nav-group[open] .nav-chevron {
    transform: rotate(180deg);
}

.nav-submenu {
    display: grid;
    gap: 4px;
    grid-template-columns: 1fr;
    margin-top: 4px;
    min-width: 0;
    padding: 4px 0 0 32px;
    width: 100%;
}

.nav-subitem {
    border: 0;
    border-radius: 8px;
    color: #52525b;
    font-size: 13px;
    font-weight: 600;
    min-height: 0;
    padding: 8px 10px;
}

.nav-subitem.active {
    background: #f4f4f5;
    color: var(--app-primary, #09090b);
}

.nav-item.disabled {
    color: #a1a1aa;
}

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

.sidebar-footer {
    border-top: 1px solid #e4e4e7;
    display: none;
    margin-top: auto;
    padding: 16px;
}

.user-panel {
    background: #fafafa;
    border-radius: 8px;
    padding: 12px;
}

.main-header {
    background: #fff;
    border-bottom: 1px solid #e4e4e7;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    min-height: 80px;
    padding: 16px 20px;
}

.eyebrow {
    font-weight: 700;
    text-transform: uppercase;
}

.page-title {
    font-size: 28px;
    line-height: 1.15;
    margin: 4px 0 0;
}

.content {
    padding: 24px 20px;
}

.grid {
    display: grid;
    gap: 16px;
}

.card {
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
    padding: 20px;
}

.card-label {
    color: #71717a;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.card-title {
    font-size: 22px;
    line-height: 1.2;
    margin: 8px 0 4px;
}

.card-text {
    font-size: 14px;
}

.section-row {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: space-between;
}

.status {
    background: #ecfdf5;
    border-radius: 8px;
    color: #047857;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 12px;
    width: fit-content;
}

.button {
    align-items: center;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    padding: 10px 12px;
}

.button.full {
    width: 100%;
}

.button.primary {
    background: var(--app-buttons, #09090b);
    border-color: var(--app-buttons, #09090b);
    color: #fff;
}

.button.secondary {
    background: #fff;
    color: #3f3f46;
}

.button.danger {
    background: #fff;
    border-color: #fecaca;
    color: #b91c1c;
}

.button.small {
    font-size: 13px;
    padding: 7px 10px;
}

.toolbar {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.search-form {
    display: grid;
    gap: 10px;
}

.form-grid {
    display: grid;
    gap: 16px;
}

.form-grid.two {
    grid-template-columns: 1fr;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.textarea {
    min-height: 110px;
    resize: vertical;
}

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

.data-table {
    border-collapse: collapse;
    min-width: 760px;
    width: 100%;
}

.data-table th,
.data-table td {
    border-bottom: 1px solid #e4e4e7;
    padding: 14px 12px;
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    color: #71717a;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.data-table td {
    font-size: 14px;
}

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

.flash {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #047857;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    padding: 12px 14px;
}

.alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c;
    font-size: 14px;
    margin-bottom: 16px;
    padding: 12px 14px;
}

.muted-empty {
    color: #71717a;
    padding: 28px 12px;
    text-align: center;
}

.badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 9px;
}

.badge.ok {
    background: #ecfdf5;
    color: #047857;
}

.badge.off {
    background: #f4f4f5;
    color: #52525b;
}

.badge.warn {
    background: #fef3c7;
    color: #92400e;
    margin-left: 6px;
}

.badge.info {
    background: #eff6ff;
    color: #1d4ed8;
}

.stock-low-row {
    background: #fffbeb;
}

.price-tier-panel {
    background: #fafafa;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    display: grid;
    gap: 16px;
    margin-top: 18px;
    padding: 16px;
}

.tier-table-wrap {
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
}

.price-tier-table {
    min-width: 540px;
}

.price-tier-table td {
    vertical-align: top;
}

.tier-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.pagination {
    margin-top: 0;
}

.cb-pagination {
    align-items: center;
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    border-top: 1px solid #e4e4e7;
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: space-between;
    margin: 0 -20px -20px;
    padding: 16px 20px;
}

.cb-pagination-summary {
    align-items: center;
    color: #52525b;
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
    gap: 6px;
}

.cb-pagination-summary strong {
    color: #09090b;
    font-size: 16px;
}

.cb-pagination-kicker {
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
    border-radius: 999px;
    color: #71717a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    padding: 4px 9px;
    text-transform: uppercase;
}

.cb-pagination-controls {
    align-items: center;
    display: flex;
    gap: 8px;
    max-width: 100%;
}

.cb-page-list {
    align-items: center;
    display: flex;
    gap: 6px;
    max-width: 100%;
    overflow-x: auto;
    padding: 2px;
    scrollbar-width: thin;
}

.cb-page-btn,
.cb-page-number,
.cb-page-ellipsis {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 800;
    height: 38px;
    justify-content: center;
    min-width: 38px;
}

.cb-page-btn,
.cb-page-number {
    background: #fff;
    border: 1px solid #d4d4d8;
    color: #27272a;
}

.cb-page-btn svg {
    height: 18px;
    width: 18px;
}

.cb-page-btn:hover,
.cb-page-number:hover {
    border-color: var(--app-primary, #09090b);
    box-shadow: 0 6px 18px rgb(9 9 11 / 0.08);
}

.cb-page-number.is-active {
    background: var(--app-primary, #09090b);
    border-color: var(--app-primary, #09090b);
    color: #fff;
}

.cb-page-btn.is-disabled {
    background: #f4f4f5;
    color: #a1a1aa;
    cursor: not-allowed;
}

.cb-page-ellipsis {
    color: #a1a1aa;
    min-width: 28px;
}

.stock-warning-card {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgb(245 158 11 / 0.12);
}

.dashboard-metric-card,
.dashboard-panel,
.dashboard-stock-card {
    min-width: 0;
}

.movement-type {
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 9px;
}

.movement-type.entrada {
    background: #ecfdf5;
    color: #047857;
}

.movement-type.salida {
    background: #fef2f2;
    color: #b91c1c;
}

.movement-type.ajuste {
    background: #eff6ff;
    color: #1d4ed8;
}

.inventory-list-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.inventory-list-main strong {
    overflow: hidden;
    text-overflow: ellipsis;
}

.inventory-list-mobile-meta,
.inventory-list-mobile-reason {
    color: #71717a;
    display: none;
    font-size: 12px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pos-shell {
    align-items: start;
    display: grid;
    gap: 18px;
}

.pos-search {
    display: grid;
    gap: 10px;
}

.pos-products {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    margin-top: 18px;
}

.pos-product-card {
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
    overflow: hidden;
}

.pos-product-card.is-empty {
    opacity: 0.62;
}

.pos-product-image {
    background: #f4f4f5;
    height: 128px;
    object-fit: cover;
    width: 100%;
}

.pos-product-image.placeholder {
    align-items: center;
    color: #71717a;
    display: grid;
    font-weight: 700;
    justify-items: center;
}

.pos-product-body {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.pos-product-body h2 {
    font-size: 16px;
    line-height: 1.2;
    margin: 0;
}

.pos-product-body p {
    color: #71717a;
    font-size: 13px;
    margin: 0;
}

.pos-add-form {
    display: grid;
    gap: 8px;
    grid-template-columns: 76px 1fr;
}

.pos-cart {
    position: sticky;
    top: 16px;
}

.pos-cart-items {
    display: grid;
    gap: 12px;
    margin: 16px 0;
}

.pos-cart-item {
    border-bottom: 1px solid #e4e4e7;
    display: grid;
    gap: 10px;
    padding-bottom: 12px;
}

.pos-cart-qty {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr auto;
}

.pos-cart-line {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.pos-total {
    border-top: 1px solid #e4e4e7;
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    padding-top: 16px;
}

.pos-total div {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.pos-total span {
    color: #71717a;
}

.pos-total strong {
    font-size: 24px;
}

.flash.compact,
.alert.compact {
    margin-bottom: 12px;
}

.pos-terminal {
    --pos-green: #169447;
    --pos-green-dark: #137a3d;
    --pos-green-soft: #dcfce7;
    display: grid;
    gap: 14px;
}

.pos-terminal.cashier-mode {
    background: var(--app-bg, #f4f4f5);
    inset: 0;
    overflow: auto;
    padding: 16px;
    position: fixed;
    z-index: 60;
}

.pos-terminal-grid {
    align-items: start;
    display: grid;
    gap: 18px;
}

.pos-workspace {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.pos-mode-bar {
    align-items: center;
    background: rgb(255 255 255 / 0.96);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 26px rgb(15 23 42 / 0.05);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 14px 16px;
}

.pos-brand-row {
    align-items: center;
    display: flex;
    gap: 12px;
    min-width: 0;
}

.pos-brand-badge {
    align-items: center;
    background: var(--pos-green);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 42px;
    font-size: 14px;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.pos-mode-bar strong {
    display: block;
    font-size: 20px;
    line-height: 1.1;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pos-mode-btn {
    border-color: #d1d5db;
    min-height: 48px;
    padding-left: 18px;
    padding-right: 18px;
    white-space: nowrap;
}

.pos-command-bar {
    background: #fff;
    border: 1px solid #dfe3ea;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgb(15 23 42 / 0.06);
    display: grid;
    gap: 10px;
    padding: 10px;
}

.pos-input-wrap {
    position: relative;
}

.pos-input-wrap .field-label {
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.pos-input-icon {
    color: #64748b;
    align-items: center;
    display: flex;
    height: 24px;
    justify-content: center;
    left: 22px;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    z-index: 1;
}

.pos-input-icon .nav-icon {
    display: block;
    flex: 0 0 24px;
    height: 24px;
    width: 24px;
}

.pos-search-input {
    border: 0;
    border-radius: 10px;
    color: #0f172a;
    font-size: 18px;
    min-height: 58px;
    padding-left: 62px;
}

.input.pos-search-input {
    padding-left: 62px;
}

.pos-search-input:focus {
    border-color: transparent;
    box-shadow: 0 0 0 3px rgb(22 148 71 / 0.14);
}

.pos-category-strip {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
    overflow: visible;
}

.pos-category-strip.is-loading {
    opacity: 0.7;
}

.pos-category-btn {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #111827;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    min-height: 66px;
    padding: 12px 14px;
}

.pos-category-btn.visual {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #111827;
    display: grid;
    min-height: 70px;
    min-width: 0;
    overflow: hidden;
    place-content: center start;
    position: relative;
    text-shadow: none;
}

.pos-category-btn.visual::after {
    border: 0;
    border-radius: 10px;
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.pos-category-btn.visual.active::after {
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.38);
}

.pos-category-btn span,
.pos-category-btn .pos-category-count {
    color: #71717a;
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-top: 2px;
}

.pos-category-btn.visual span,
.pos-category-btn.visual .pos-category-count {
    color: #64748b;
}

.pos-category-btn .pos-category-name {
    color: inherit;
    font-size: 15px;
    line-height: 1.05;
    margin: 0;
    overflow-wrap: anywhere;
}

.pos-category-btn.active {
    background: linear-gradient(135deg, var(--pos-green), var(--pos-green-dark));
    border-color: var(--pos-green);
    color: #fff;
    box-shadow: 0 12px 28px rgb(22 148 71 / 0.22);
}

.pos-category-btn.active span {
    color: rgb(255 255 255 / 0.76);
}

.pos-category-btn.visual.active {
    background: linear-gradient(135deg, var(--pos-green), var(--pos-green-dark));
    transform: translateY(-1px);
}

.pos-fast-section {
    display: grid;
    gap: 12px;
}

.pos-section-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.pos-section-heading h2 {
    font-size: 22px;
    margin: 0;
}

.pos-section-heading span {
    color: #71717a;
    font-size: 13px;
    font-weight: 700;
}

.pos-fast-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
}

.pos-fast-chip,
.pos-touch-product {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgb(15 23 42 / 0.04);
    color: #09090b;
    cursor: pointer;
    display: grid;
    overflow: hidden;
    padding: 12px;
    text-align: left;
}

.pos-fast-chip {
    gap: 10px;
    grid-template-columns: 74px minmax(0, 1fr);
    min-height: 108px;
}

.pos-fast-chip:hover,
.pos-touch-product:hover {
    border-color: rgb(22 148 71 / 0.45);
    box-shadow: 0 18px 36px rgb(15 23 42 / 0.08);
    transform: translateY(-1px);
}

.pos-fast-chip:disabled,
.pos-touch-product:disabled {
    cursor: not-allowed;
    opacity: 0.52;
    transform: none;
}

.pos-chip-body {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.pos-chip-media {
    align-items: center;
    aspect-ratio: 1;
    background: #f4f4f5;
    border-radius: 8px;
    color: #71717a;
    display: grid;
    font-weight: 900;
    justify-items: center;
    overflow: hidden;
    width: 74px;
}

.pos-chip-media img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.pos-chip-body > span,
.pos-product-name {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.pos-chip-body strong,
.pos-product-foot strong {
    font-size: 20px;
}

.pos-chip-body em,
.pos-product-code,
.pos-product-foot span {
    color: #71717a;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.pos-product-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(186px, 1fr));
}

.pos-touch-product {
    gap: 10px;
    grid-template-columns: 68px minmax(0, 1fr);
    min-height: 132px;
    padding: 14px;
}

.pos-product-media {
    align-self: start;
    background: #f8fafc;
    border-radius: 10px;
    display: block;
    height: 78px;
    overflow: hidden;
    width: 68px;
}

.pos-product-media img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.pos-product-placeholder {
    align-items: center;
    background:
        linear-gradient(135deg, rgb(244 244 245 / 0.96), rgb(228 228 231 / 0.96));
    color: #71717a;
    display: grid;
    font-size: 24px;
    font-weight: 900;
    height: 100%;
    justify-items: center;
    letter-spacing: 0;
    width: 100%;
}

.pos-product-info {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 0;
}

.pos-touch-product .pos-product-name {
    align-self: start;
    display: -webkit-box;
    font-size: 13px;
    line-height: 1.16;
    min-height: 45px;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.pos-product-foot {
    align-items: end;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin-top: auto;
    min-width: 0;
}

.pos-product-foot strong {
    font-size: 21px;
    line-height: 1;
    white-space: nowrap;
}

.pos-product-foot .stock-pill {
    flex: 0 0 auto;
}

.stock-ok {
    border-color: #e2e8f0;
}

.stock-low {
    border-color: #fde68a;
}

.stock-critical {
    border-color: #fecaca;
}

.pos-load-more {
    min-height: 52px;
}

.pos-cart-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgb(15 23 42 / 0.08);
    display: grid;
    gap: 14px;
    padding: 18px;
}

.pos-cart-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.pos-cart-header h2 {
    font-size: 24px;
    margin: 4px 0 0;
}

.pos-cart-header > strong {
    color: var(--pos-green);
    font-size: 32px;
}

.pos-cart-list {
    display: grid;
    gap: 10px;
    max-height: 52vh;
    overflow-y: auto;
    padding-right: 2px;
}

.pos-cart-row {
    border: 0;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
    display: grid;
    gap: 10px;
    padding: 12px 0;
}

.pos-cart-main {
    display: grid;
    gap: 3px;
}

.pos-cart-main strong {
    font-size: 15px;
    line-height: 1.18;
}

.pos-cart-main span {
    color: #71717a;
    font-size: 13px;
}

.pos-price-tier-badge,
.pos-next-tier {
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 8px;
    width: fit-content;
}

.pos-price-tier-badge {
    background: #dcfce7;
    color: #047857;
}

.pos-next-tier {
    background: #eff6ff;
    color: #1d4ed8;
}

.stock-pill {
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    padding: 4px 8px;
    width: fit-content;
}

.stock-pill.ok {
    background: #dcfce7;
    color: #166534;
}

.stock-pill.low {
    background: #fef3c7;
    color: #92400e;
}

.stock-pill.critical {
    background: #fee2e2;
    color: #b91c1c;
}

.pos-qty-control {
    display: grid;
    grid-template-columns: 40px 48px 40px;
    justify-content: start;
}

.pos-qty-control button,
.pos-qty-control input {
    background: #fff;
    border: 1px solid #dbe2ea;
    font-size: 16px;
    font-weight: 800;
    min-height: 38px;
    text-align: center;
}

.pos-qty-control button:first-child {
    border-radius: 8px 0 0 8px;
}

.pos-qty-control button:last-child {
    border-radius: 0 8px 8px 0;
}

.pos-qty-control input {
    border-left: 0;
    border-right: 0;
    min-width: 0;
}

.pos-cart-subtotal,
.pos-totals div {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.pos-remove {
    background: transparent;
    border: 0;
    color: #b91c1c;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 0;
}

.pos-totals {
    border-top: 1px solid #e4e4e7;
    display: grid;
    gap: 8px;
    padding-top: 12px;
}

.pos-totals span {
    color: #71717a;
    font-weight: 700;
}

.pos-totals strong {
    font-size: 24px;
}

.pos-charge-btn {
    background: linear-gradient(135deg, var(--pos-green), var(--pos-green-dark));
    border-color: var(--pos-green);
    border-radius: 10px;
    box-shadow: 0 12px 24px rgb(22 148 71 / 0.24);
    font-size: 17px;
    min-height: 60px;
}

.pos-empty-state {
    background: #fff;
    border: 1px dashed #d4d4d8;
    border-radius: 8px;
    color: #71717a;
    font-weight: 700;
    padding: 24px;
    text-align: center;
}

.pos-modal-backdrop {
    align-items: center;
    background: rgb(9 9 11 / 0.58);
    display: grid;
    inset: 0;
    padding: 20px;
    position: fixed;
    z-index: 40;
}

.pos-modal-backdrop[hidden] {
    display: none !important;
}

.pos-charge-modal {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgb(0 0 0 / 0.28);
    margin: 0 auto;
    max-width: 520px;
    padding: 20px;
    width: min(100%, 520px);
}

.pos-payment-input {
    font-size: 24px;
    font-weight: 800;
    min-height: 58px;
}

.pos-change-box {
    align-items: center;
    background: #f4f4f5;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    padding: 16px;
}

.pos-change-box span {
    color: #52525b;
    font-weight: 800;
}

.pos-change-box strong {
    font-size: 30px;
}

.pos-modal-actions {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
}

.receipt-body {
    background: #fff;
}

.receipt {
    margin: 0 auto;
    max-width: 420px;
    padding: 24px;
}

.receipt-header {
    border-bottom: 1px dashed #a1a1aa;
    padding-bottom: 14px;
    text-align: center;
}

.receipt-header h1 {
    font-size: 20px;
    margin: 0 0 6px;
}

.receipt-header p,
.receipt-meta p {
    color: #3f3f46;
    font-size: 13px;
    margin: 3px 0;
}

.receipt-meta {
    border-bottom: 1px dashed #a1a1aa;
    padding: 14px 0;
}

.receipt-table {
    border-collapse: collapse;
    margin-top: 14px;
    width: 100%;
}

.receipt-table th,
.receipt-table td {
    border-bottom: 1px solid #e4e4e7;
    font-size: 13px;
    padding: 8px 4px;
    text-align: left;
}

.receipt-table th:nth-child(n+2),
.receipt-table td:nth-child(n+2) {
    text-align: right;
}

.receipt-total {
    align-items: center;
    display: flex;
    font-size: 20px;
    justify-content: space-between;
    padding: 18px 0;
}

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

.cash-summary {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin: 18px 0;
}

.cash-card {
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
    padding: 16px;
}

.cash-card p {
    color: #71717a;
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 8px;
}

.cash-card strong {
    font-size: 24px;
}

.cash-card.is-main {
    border-color: var(--app-primary, #09090b);
}

.appearance-grid {
    display: grid;
    gap: 18px;
}

.appearance-logo {
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    display: block;
    height: 72px;
    margin-top: 10px;
    object-fit: contain;
    width: 120px;
}

.appearance-favicon {
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    display: block;
    height: 42px;
    margin-top: 10px;
    object-fit: contain;
    width: 42px;
}

.color-control {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: 54px 1fr;
}

.color-input {
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    cursor: pointer;
    height: 42px;
    padding: 3px;
    width: 54px;
}

.appearance-preview {
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    display: grid;
    gap: 16px;
    grid-template-columns: 120px 1fr;
    margin-top: 18px;
    overflow: hidden;
}

.appearance-preview-menu {
    align-items: center;
    background: var(--app-menu, #fff);
    color: var(--app-primary, #09090b);
    display: grid;
    font-weight: 700;
    justify-items: center;
    min-height: 120px;
}

.appearance-preview > div:last-child {
    padding: 18px;
}

.super-admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.access-grid {
    align-items: start;
    display: grid;
    gap: 18px;
}

.access-user-list,
.access-module-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.access-user,
.access-module {
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    color: #09090b;
    cursor: pointer;
    padding: 12px;
    text-align: left;
}

.access-user {
    display: grid;
    gap: 4px;
}

.access-user.active,
.access-module.enabled {
    border-color: var(--app-primary, #09090b);
    box-shadow: 0 0 0 3px rgb(9 9 11 / 0.08);
}

.access-user span,
.access-module em {
    color: #71717a;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

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

.access-module > span:first-child {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.access-module.disabled {
    background: #fafafa;
}

.theme-dark {
    --app-bg: #111113;
    --app-text: #f4f4f5;
}

.theme-dark .card,
.theme-dark .main-header,
.theme-dark .login-card,
.theme-dark .pos-product-card,
.theme-dark .pos-mode-bar,
.theme-dark .pos-command-bar,
.theme-dark .pos-fast-chip,
.theme-dark .pos-touch-product,
.theme-dark .pos-product-media,
.theme-dark .pos-product-placeholder,
.theme-dark .pos-chip-media,
.theme-dark .pos-cart-panel,
.theme-dark .pos-cart-row,
.theme-dark .pos-empty-state,
.theme-dark .pos-charge-modal,
.theme-dark .pos-change-box,
.theme-dark .cash-card,
.theme-dark .sidebar,
.theme-dark .user-panel {
    background: #18181b;
    border-color: #3f3f46;
    color: #f4f4f5;
}

.theme-dark .input,
.theme-dark .button.secondary,
.theme-dark .pos-category-btn,
.theme-dark .pos-qty-control button,
.theme-dark .pos-qty-control input {
    background: #111113;
    border-color: #3f3f46;
    color: #f4f4f5;
}

.theme-dark .data-table th,
.theme-dark .data-table td,
.theme-dark .brand,
.theme-dark .main-header,
.theme-dark .sidebar-footer {
    border-color: #3f3f46;
}

.theme-dark .nav-item {
    color: #d4d4d8;
}

.theme-dark .nav-subitem {
    color: #d4d4d8;
}

.theme-dark .nav-subitem.active {
    background: #27272a;
    color: #fff;
}

.cash-grid {
    display: grid;
    gap: 18px;
}

.report-filter {
    align-items: end;
    display: grid;
    gap: 10px;
}

.audit-filter {
    align-items: end;
    display: grid;
    gap: 10px;
}

.report-summary {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin: 18px 0;
}

.report-grid {
    display: grid;
    gap: 18px;
}

.report-filter-card,
.report-panel,
.report-stock-panel,
.report-summary-card {
    min-width: 0;
}

.audit-filter-card,
.audit-list-card {
    min-width: 0;
}

.super-dashboard-card,
.super-dashboard-metric,
.super-company-card,
.email-compose-card,
.email-preview-card,
.email-log-card {
    min-width: 0;
}

.email-preview-frame {
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    margin-top: 16px;
    overflow: hidden;
}

.email-preview-frame iframe {
    border: 0;
    height: 620px;
    width: 100%;
}

.cash-difference {
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 9px;
}

.cash-difference.neutral {
    background: #f4f4f5;
    color: #52525b;
}

.cash-difference.positive {
    background: #ecfdf5;
    color: #047857;
}

.cash-difference.negative {
    background: #fef2f2;
    color: #b91c1c;
}

.product-thumb {
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    height: 48px;
    object-fit: cover;
    width: 48px;
}

.product-list-main {
    align-items: center;
    display: flex;
    gap: 10px;
    min-width: 0;
}

.product-list-text {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.product-list-text strong {
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-list-mobile-meta {
    color: #71717a;
    display: none;
    font-size: 12px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-thumb {
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    height: 120px;
    object-fit: cover;
    width: 220px;
}

.category-thumb.small {
    height: 48px;
    width: 76px;
}

.product-placeholder {
    align-items: center;
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    color: #71717a;
    display: grid;
    font-size: 12px;
    font-weight: 700;
    height: 48px;
    justify-items: center;
    width: 48px;
}

.product-detail {
    align-items: start;
    display: grid;
    gap: 24px;
}

.product-image-large {
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    max-height: 360px;
    object-fit: cover;
    width: 100%;
}

.pagination {
    margin-top: 16px;
}

.pagination nav > div:first-child {
    display: none;
}

.pagination svg {
    height: 18px;
    width: 18px;
}

.login-page {
    display: grid;
    min-height: 100vh;
    padding: 40px 20px;
    place-items: center;
}

.controlbox-login {
    background:
        linear-gradient(180deg, rgb(255 255 255 / 0.94), rgb(239 246 255 / 0.88)),
        radial-gradient(circle at 12% 10%, rgb(37 99 235 / 0.12), transparent 28%),
        radial-gradient(circle at 92% 88%, rgb(0 122 255 / 0.18), transparent 34%);
    gap: 24px;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    position: relative;
}

.controlbox-login::after {
    background: linear-gradient(110deg, transparent, rgb(37 99 235 / 0.12));
    bottom: -120px;
    content: "";
    height: 260px;
    left: -10%;
    position: absolute;
    transform: rotate(-5deg);
    width: 120%;
}

.login-hero-panel,
.controlbox-login-card {
    position: relative;
    z-index: 1;
}

.login-hero-panel {
    align-items: center;
    border-radius: 8px;
    display: grid;
    justify-items: center;
    max-width: 940px;
    min-height: 360px;
    overflow: hidden;
    padding: 42px;
    position: relative;
    text-align: center;
    width: 100%;
}

.login-hero-panel.has-hero-bg {
    background:
        linear-gradient(90deg, rgb(255 255 255 / 0.96) 0%, rgb(255 255 255 / 0.86) 42%, rgb(255 255 255 / 0.18) 100%),
        var(--login-hero-bg);
    background-position: center;
    background-size: cover;
    box-shadow: 0 24px 80px rgb(15 23 42 / 0.10);
}

.login-hero-panel.has-hero-bg::after {
    background:
        linear-gradient(180deg, transparent 55%, rgb(219 234 254 / 0.56)),
        radial-gradient(circle at 18% 24%, rgb(37 99 235 / 0.10), transparent 30%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.login-hero-panel > * {
    position: relative;
    z-index: 1;
}

.login-hero-panel h1 {
    color: #0f172a;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.05;
    margin: 24px 0 10px;
    max-width: 620px;
}

.login-hero-panel p {
    color: #475569;
    font-size: 18px;
    margin: 0;
}

.login-hero-image {
    border-radius: 8px;
    box-shadow: 0 24px 80px rgb(15 23 42 / 0.12);
    max-height: min(58vh, 620px);
    object-fit: contain;
    width: min(100%, 1180px);
}

.login-hero-logo {
    display: block;
    filter: drop-shadow(0 18px 34px rgb(15 23 42 / 0.10));
    max-width: min(100%, 430px);
}

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

.login-brand-symbol {
    border-radius: 8px;
    height: 68px;
    object-fit: contain;
    width: 68px;
}

.login-card {
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
    max-width: 448px;
    padding: 24px;
    width: 100%;
}

.controlbox-login-card {
    border-color: rgb(37 99 235 / 0.16);
    box-shadow: 0 24px 80px rgb(15 23 42 / 0.14);
}

.login-title {
    font-size: 28px;
    margin: 0 0 4px;
}

.form {
    display: grid;
    gap: 16px;
}

.field-label {
    color: #3f3f46;
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.input {
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    outline: none;
    padding: 10px 12px;
    width: 100%;
}

.input:focus {
    border-color: #09090b;
    box-shadow: 0 0 0 3px rgb(9 9 11 / 0.1);
}

.checkbox {
    align-items: center;
    color: #52525b;
    display: flex;
    font-size: 14px;
    gap: 8px;
}

.error {
    color: #dc2626;
    font-size: 14px;
    margin: 6px 0 0;
}

.mobile-only {
    display: block;
}

.sr-only {
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

@media (min-width: 768px) {
    .grid.three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .toolbar {
        align-items: center;
        flex-direction: row;
    }

    .search-form {
        align-items: end;
        display: flex;
    }

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

    .product-detail {
        grid-template-columns: 340px 1fr;
    }

    .section-row {
        align-items: center;
        flex-direction: row;
    }

    .cb-pagination {
        flex-direction: row;
    }

    .cb-pagination-summary {
        white-space: nowrap;
    }

    .pos-search {
        align-items: end;
        grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto auto;
    }

    .pos-command-bar {
        grid-template-columns: minmax(220px, 1fr) minmax(220px, 0.75fr);
    }

    .pos-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    }

    .pos-touch-product {
        grid-template-columns: 82px minmax(0, 1fr);
        min-height: 148px;
    }

    .pos-cart-row {
        grid-template-columns: minmax(0, 1fr) 148px;
    }

    .pos-cart-subtotal {
        grid-column: 1 / -1;
    }

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

    .report-filter {
        grid-template-columns: minmax(160px, 220px) minmax(160px, 220px) auto auto;
    }

    .audit-filter {
        grid-template-columns: repeat(5, minmax(130px, 1fr)) auto auto;
    }

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

    .appearance-grid {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    }

    .access-grid {
        grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
    }
}

@media (min-width: 1024px) {
    .controlbox-login {
        grid-template-columns: minmax(0, 1.45fr) minmax(380px, 460px);
        padding: 48px;
    }

    .pos-shell {
        grid-template-columns: minmax(0, 1fr) 380px;
    }

    .pos-terminal-grid {
        grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
    }

    .pos-terminal.cashier-mode .pos-terminal-grid {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    }

    .pos-terminal.cashier-mode .pos-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .pos-terminal.cashier-mode .pos-touch-product {
        grid-template-columns: 86px minmax(0, 1fr);
        min-height: 152px;
    }

    .pos-cart-panel {
        position: sticky;
        top: 16px;
    }

    .app-shell {
        display: grid;
        grid-template-columns: 280px 1fr;
    }

    .sidebar {
        border-bottom: 0;
        border-right: 1px solid #e4e4e7;
        min-height: 100vh;
    }

    .sidebar-inner {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .nav {
        display: block;
        overflow: visible;
    }

    .nav-item + .nav-item,
    .nav-item + .nav-group,
    .nav-group + .nav-item,
    .nav-group + .nav-group {
        margin-top: 4px;
    }

    .sidebar-footer {
        display: block;
    }

    .main-header {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        padding-left: 32px;
        padding-right: 32px;
    }

    .content {
        padding-left: 32px;
        padding-right: 32px;
    }

    .mobile-only {
        display: none;
    }
}

@media (max-width: 767px) {
    body {
        overflow-x: hidden;
    }

    .app-shell {
        display: block;
    }

    .mobile-menu-button {
        display: inline-flex;
        flex: 0 0 44px;
        height: 44px;
        padding: 0;
        width: 44px;
    }

    .mobile-menu-close {
        align-items: center;
        border: 1px solid #e4e4e7;
        border-radius: 8px;
        cursor: pointer;
        display: inline-flex;
        flex: 0 0 42px;
        height: 42px;
        justify-content: center;
        margin-left: auto;
        width: 42px;
    }

    .mobile-menu-backdrop {
        background: rgb(9 9 11 / 0.48);
        display: block;
        inset: 0;
        opacity: 0;
        pointer-events: none;
        position: fixed;
        transition: opacity 160ms ease;
        z-index: 80;
    }

    .mobile-menu-toggle:checked ~ .mobile-menu-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar {
        border-bottom: 0;
        border-right: 1px solid #e4e4e7;
        bottom: 0;
        box-shadow: 22px 0 60px rgb(15 23 42 / 0.22);
        left: 0;
        max-width: 86vw;
        overflow-y: auto;
        position: fixed;
        top: 0;
        transform: translateX(-105%);
        transition: transform 180ms ease;
        width: 320px;
        z-index: 90;
    }

    .mobile-menu-toggle:checked ~ .sidebar {
        transform: translateX(0);
    }

    .sidebar-inner {
        display: flex;
        flex-direction: column;
        min-height: 100%;
    }

    .brand {
        min-height: 68px;
        padding: 0 16px;
    }

    .brand-title {
        max-width: 190px;
    }

    .nav {
        display: grid;
        gap: 6px;
        overflow: visible;
        padding: 12px;
    }

    .nav-item {
        border: 1px solid #e4e4e7;
        border-radius: 8px;
        flex: none;
        font-size: 13px;
        min-height: 44px;
        padding: 9px 10px;
        width: 100%;
    }

    .nav-item.active {
        border-color: var(--app-primary, #09090b);
    }

    .main-header {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        min-height: auto;
        padding: 14px 16px;
    }

    .main-heading {
        flex: 1;
    }

    .main-heading > div {
        min-width: 0;
    }

    .sidebar-footer {
        display: block;
        padding: 12px;
    }

    .page-title {
        font-size: 24px;
    }

    .content {
        padding: 16px 12px 22px;
    }

    .card {
        padding: 14px;
    }

    .toolbar {
        gap: 10px;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .button {
        min-height: 44px;
    }

    .button.small {
        min-height: 38px;
    }

    .table-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        min-width: 0;
        width: 100%;
    }

    .table-actions .button,
    .table-actions form,
    .table-actions form .button {
        width: 100%;
    }

    .table-wrap {
        overflow-x: visible;
    }

    .data-table {
        border-collapse: separate;
        border-spacing: 0 10px;
        min-width: 0;
        width: 100%;
    }

    .data-table thead {
        display: none;
    }

    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
    }

    .data-table tr {
        background: #fff;
        border: 1px solid #e4e4e7;
        border-radius: 8px;
        box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
        overflow: hidden;
    }

    .theme-dark .data-table tr {
        background: #18181b;
        border-color: #3f3f46;
    }

    .theme-dark .data-table td {
        border-color: #3f3f46;
    }

    .data-table tr.stock-low-row {
        background: #fffbeb;
        border-color: #fde68a;
    }

    .data-table th,
    .data-table td {
        border-bottom: 1px solid #f4f4f5;
        padding: 11px 12px;
        width: 100%;
    }

    .data-table td:last-child {
        border-bottom: 0;
    }

    .data-table td:empty {
        display: none;
    }

    .data-table td .badge,
    .data-table td .movement-type,
    .data-table td .cash-difference {
        margin-top: 4px;
    }

    .credit-mobile-table {
        border-spacing: 0 6px;
    }

    .credit-mobile-table tr {
        align-items: center;
        display: grid;
        gap: 4px 8px;
        grid-template-columns: minmax(0, 1fr) auto auto;
        min-height: 44px;
        padding: 8px 10px;
    }

    .credit-mobile-table td {
        border-bottom: 0;
        min-width: 0;
        padding: 0;
        width: auto;
    }

    .credit-mobile-table td strong {
        display: block;
        font-size: 13px;
        line-height: 1.15;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .credit-mobile-table td span:not(.badge) {
        color: #71717a;
        display: block;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.15;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .credit-mobile-table .badge {
        font-size: 10px;
        margin: 0;
        padding: 3px 6px;
        white-space: nowrap;
    }

    .credit-customers-table td:nth-child(1),
    .credit-debt-table td:nth-child(1),
    .credit-sales-table td:nth-child(2),
    .credit-payments-table td:nth-child(2) {
        grid-column: 1;
        grid-row: 1;
    }

    .credit-customers-table td:nth-child(2),
    .credit-customers-table td:nth-child(4),
    .credit-debt-table td:nth-child(2),
    .credit-debt-table td:nth-child(3),
    .credit-sales-table td:nth-child(1),
    .credit-sales-table td:nth-child(3),
    .credit-sales-table td:nth-child(4),
    .credit-sales-table td:nth-child(5),
    .credit-sales-table td:nth-child(7),
    .credit-payments-table td:nth-child(3),
    .credit-payments-table td:nth-child(5) {
        display: none;
    }

    .credit-customers-table td:nth-child(3),
    .credit-debt-table td:nth-child(4),
    .credit-sales-table td:nth-child(6),
    .credit-payments-table td:nth-child(4) {
        font-size: 13px;
        font-weight: 900;
        grid-column: 2;
        grid-row: 1;
        text-align: right;
        white-space: nowrap;
    }

    .credit-customers-table td:nth-child(3) span:not(.badge) {
        display: none;
    }

    .credit-customers-table td:nth-child(3) .badge {
        display: none;
    }

    .credit-sales-table td:nth-child(8),
    .credit-payments-table td:nth-child(1) {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        white-space: nowrap;
    }

    .credit-payments-table td:nth-child(1) {
        color: #71717a;
        font-size: 11px;
        font-weight: 800;
    }

    .credit-customers-table td:nth-child(5) {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }

    .credit-customers-table .table-actions {
        display: flex;
        flex-wrap: nowrap;
        gap: 4px;
        justify-content: flex-end;
        width: auto;
    }

    .credit-customers-table .table-actions form {
        display: none;
    }

    .credit-customers-table .table-actions .button {
        font-size: 10px;
        min-height: 28px;
        padding: 4px 5px;
        white-space: nowrap;
        width: auto;
    }

    .product-thumb,
    .product-placeholder {
        height: 58px;
        width: 58px;
    }

    .category-thumb {
        height: 92px;
        width: 100%;
    }

    .category-thumb.small {
        height: 58px;
        width: 92px;
    }

    .report-filter,
    .audit-filter {
        grid-template-columns: 1fr;
    }

    .cash-summary {
        grid-template-columns: 1fr;
    }

    .audit-filter-card,
    .audit-list-card {
        padding: 12px;
    }

    .super-dashboard-summary {
        gap: 10px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 12px 0;
    }

    .super-dashboard-metric {
        min-height: 76px;
        padding: 11px;
    }

    .super-dashboard-main-metric {
        grid-column: 1 / -1;
    }

    .super-dashboard-metric p {
        font-size: 12px;
        line-height: 1.1;
        margin-bottom: 5px;
    }

    .super-dashboard-metric strong {
        display: block;
        font-size: 18px;
        line-height: 1.1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .super-dashboard-card,
    .super-company-card {
        padding: 12px;
    }

    .super-dashboard-card .section-row {
        gap: 10px;
    }

    .super-dashboard-card .card-title,
    .super-company-card .card-title {
        font-size: 16px !important;
        margin: 0 0 3px;
    }

    .super-dashboard-card .card-text {
        font-size: 12px;
    }

    .super-dashboard-table,
    .super-company-table,
    .email-log-table {
        border-spacing: 0 8px;
    }

    .super-dashboard-table tr {
        display: grid;
        gap: 4px 8px;
        grid-template-columns: minmax(0, 1fr) auto auto;
        padding: 10px;
    }

    .super-dashboard-table td {
        border-bottom: 0;
        padding: 0;
    }

    .super-dashboard-table td:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    .super-dashboard-table td:nth-child(1) strong {
        display: block;
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .super-dashboard-table td:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }

    .super-dashboard-table td:nth-child(3),
    .super-dashboard-table td:nth-child(4) {
        align-self: center;
        font-size: 13px;
        font-weight: 900;
        white-space: nowrap;
    }

    .super-dashboard-table td:nth-child(3)::before {
        color: #71717a;
        content: "Usuarios ";
        font-size: 11px;
        font-weight: 700;
    }

    .super-dashboard-table td:nth-child(4)::before {
        color: #71717a;
        content: "Ventas ";
        font-size: 11px;
        font-weight: 700;
    }

    .super-dashboard-table td:nth-child(5) {
        grid-column: 2 / span 2;
        grid-row: 2;
        text-align: right;
    }

    .super-dashboard-table td:nth-child(6) {
        grid-column: 1 / -1;
        margin-top: 6px;
    }

    .super-dashboard-table td:nth-child(6),
    .super-dashboard-table td:nth-child(6) .button {
        text-align: center;
        width: 100%;
    }

    .super-company-toolbar {
        gap: 10px;
        margin-bottom: 12px;
    }

    .super-company-toolbar .search-form {
        gap: 8px;
    }

    .super-company-toolbar .button {
        min-height: 40px;
    }

    .super-company-table tr {
        display: grid;
        gap: 4px 8px;
        grid-template-columns: minmax(0, 1fr) auto auto;
        padding: 10px;
    }

    .super-company-table td {
        border-bottom: 0;
        padding: 0;
    }

    .super-company-table td:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    .super-company-table td:nth-child(1) strong {
        display: block;
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .super-company-table td:nth-child(1) .card-text {
        display: block;
        font-size: 11px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .super-company-table td:nth-child(2) {
        color: #71717a;
        font-size: 12px;
        font-weight: 700;
        grid-column: 1;
        grid-row: 2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .super-company-table td:nth-child(2) .card-text,
    .super-company-table td:nth-child(3) {
        display: none;
    }

    .super-company-table td:nth-child(4),
    .super-company-table td:nth-child(5) {
        align-self: center;
        font-size: 13px;
        font-weight: 900;
        white-space: nowrap;
    }

    .super-company-table td:nth-child(4)::before {
        color: #71717a;
        content: "U ";
        font-size: 11px;
        font-weight: 700;
    }

    .super-company-table td:nth-child(5)::before {
        color: #71717a;
        content: "V ";
        font-size: 11px;
        font-weight: 700;
    }

    .super-company-table td:nth-child(6) {
        grid-column: 2 / span 2;
        grid-row: 2;
        text-align: right;
    }

    .super-company-table td:nth-child(7) {
        grid-column: 1 / -1;
        margin-top: 7px;
    }

    .super-company-table .table-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .super-company-table .button.small {
        font-size: 12px;
        min-height: 34px;
        padding: 6px 7px;
    }

    .email-center-grid {
        gap: 12px;
    }

    .email-compose-card,
    .email-preview-card,
    .email-log-card {
        padding: 12px;
    }

    .email-compose-card .section-row {
        gap: 8px;
    }

    .email-compose-card .card-title,
    .email-preview-card .card-title,
    .email-log-card .card-title {
        font-size: 16px !important;
        margin: 0 0 3px;
    }

    .email-compose-card .card-text,
    .email-preview-card .card-text {
        font-size: 12px;
    }

    .email-compose-card .form {
        gap: 10px;
        margin-top: 12px !important;
    }

    .email-compose-card .grid.two {
        gap: 10px;
        grid-template-columns: 1fr;
    }

    .email-compose-card .field-label {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .email-compose-card textarea.input {
        min-height: 94px;
    }

    .email-preview-frame {
        margin-top: 10px;
    }

    .email-preview-frame iframe {
        height: 360px;
    }

    .email-log-card {
        margin-top: 12px !important;
    }

    .email-log-table tr {
        display: grid;
        gap: 3px 8px;
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 10px;
    }

    .email-log-table td {
        border-bottom: 0;
        padding: 0;
    }

    .email-log-table td:nth-child(1) {
        color: #71717a;
        font-size: 12px;
        font-weight: 700;
        grid-column: 1;
        grid-row: 2;
    }

    .email-log-table td:nth-child(2) {
        font-size: 14px;
        font-weight: 900;
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .email-log-table td:nth-child(3) {
        color: #71717a;
        font-size: 12px;
        font-weight: 700;
        grid-column: 1;
        grid-row: 3;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .email-log-table td:nth-child(4) {
        display: none;
    }

    .email-log-table td:nth-child(5) {
        grid-column: 2;
        grid-row: 1 / span 3;
        text-align: right;
    }

    .email-log-table .status {
        font-size: 11px;
        margin-top: 0;
        padding: 4px 7px !important;
    }

    .audit-filter-card {
        margin-bottom: 12px;
    }

    .audit-filter {
        gap: 8px;
    }

    .audit-filter .button {
        min-height: 40px;
    }

    .audit-list-card {
        margin-top: 12px !important;
    }

    .audit-mobile-list {
        border-spacing: 0 8px;
    }

    .audit-mobile-list tr {
        display: grid;
        gap: 4px 8px;
        grid-template-columns: minmax(0, 1fr) auto auto;
        padding: 10px;
    }

    .audit-mobile-list td {
        border-bottom: 0;
        padding: 0;
    }

    .audit-mobile-list td:nth-child(1) {
        color: #71717a;
        font-size: 12px;
        font-weight: 700;
        grid-column: 1;
        grid-row: 2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .audit-mobile-list td:nth-child(1)::before {
        content: "Fecha ";
    }

    .audit-mobile-list td:nth-child(2) {
        color: #71717a;
        font-size: 12px;
        font-weight: 700;
        grid-column: 1;
        grid-row: 3;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .audit-mobile-list td:nth-child(2)::before {
        content: "Usuario ";
    }

    .audit-mobile-list td:nth-child(3) {
        align-self: start;
        grid-column: 2;
        grid-row: 1;
    }

    .audit-mobile-list td:nth-child(4) {
        align-self: start;
        grid-column: 3;
        grid-row: 1;
    }

    .audit-mobile-list td:nth-child(5) {
        font-size: 14px;
        font-weight: 800;
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .audit-mobile-list td:nth-child(6) {
        color: #71717a;
        font-size: 12px;
        font-weight: 700;
        grid-column: 2 / span 2;
        grid-row: 2 / span 2;
        text-align: right;
        white-space: nowrap;
    }

    .audit-mobile-list td:nth-child(6)::before {
        content: "IP ";
    }

    .audit-mobile-list .badge {
        font-size: 11px;
        margin-top: 0;
        padding: 3px 7px;
    }

    .report-filter-card,
    .report-panel,
    .report-stock-panel {
        padding: 12px;
    }

    .report-filter-card {
        margin-bottom: 12px;
    }

    .report-filter {
        gap: 8px;
    }

    .report-filter .button {
        min-height: 40px;
    }

    .report-summary {
        gap: 10px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 12px 0;
    }

    .report-summary-card {
        min-height: 86px;
        padding: 12px;
    }

    .report-summary-card p {
        font-size: 12px;
        line-height: 1.15;
        margin-bottom: 6px;
    }

    .report-summary-card strong {
        display: block;
        font-size: 18px;
        line-height: 1.12;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .report-grid-compact {
        gap: 12px;
    }

    .report-panel,
    .report-stock-panel {
        margin-top: 12px !important;
    }

    .report-panel .card-title,
    .report-stock-panel .card-title {
        font-size: 16px !important;
        margin: 0 0 10px;
    }

    .report-mobile-table tr {
        display: grid;
        gap: 2px 8px;
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 10px;
    }

    .report-mobile-table td {
        border-bottom: 0;
        padding: 0;
    }

    .report-mobile-table td:first-child {
        grid-column: 1;
        min-width: 0;
    }

    .report-mobile-table td:first-child strong {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .report-mobile-table td:nth-child(2) {
        color: #71717a;
        font-size: 12px;
        font-weight: 700;
        grid-column: 1;
        grid-row: 2;
    }

    .report-mobile-table td:nth-child(3) {
        align-self: center;
        font-size: 15px;
        font-weight: 900;
        grid-column: 2;
        grid-row: 1 / span 2;
        text-align: right;
        white-space: nowrap;
    }

    .report-stock-table tr {
        display: grid;
        gap: 4px 8px;
        grid-template-columns: minmax(0, 1fr) auto auto;
        padding: 10px;
    }

    .report-stock-table td {
        border-bottom: 0;
        padding: 0;
    }

    .report-stock-table td:first-child {
        align-self: center;
        grid-column: 1;
        min-width: 0;
    }

    .report-stock-table td:first-child strong {
        display: block;
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .report-stock-table td:nth-child(2),
    .report-stock-table td:nth-child(3) {
        align-self: center;
        font-size: 13px;
        font-weight: 900;
        white-space: nowrap;
    }

    .report-stock-table td:nth-child(2)::before {
        color: #71717a;
        content: "Stock ";
        font-size: 11px;
        font-weight: 700;
    }

    .report-stock-table td:nth-child(3)::before {
        color: #71717a;
        content: "Min ";
        font-size: 11px;
        font-weight: 700;
    }

    .report-sales-table tr {
        display: grid;
        gap: 2px 8px;
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 10px;
    }

    .report-sales-table td {
        border-bottom: 0;
        padding: 0;
    }

    .report-sales-table td:nth-child(1) {
        color: #71717a;
        font-size: 12px;
        font-weight: 700;
        grid-column: 1;
        grid-row: 2;
    }

    .report-sales-table td:nth-child(2) {
        font-size: 14px;
        font-weight: 800;
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .report-sales-table td:nth-child(3) {
        color: #71717a;
        font-size: 12px;
        font-weight: 700;
        grid-column: 1;
        grid-row: 3;
    }

    .report-sales-table td:nth-child(4) {
        align-self: center;
        font-size: 15px;
        font-weight: 900;
        grid-column: 2;
        grid-row: 1 / span 3;
        text-align: right;
        white-space: nowrap;
    }

    .appearance-preview {
        grid-template-columns: 1fr;
    }

    .appearance-preview-menu {
        min-height: 80px;
    }

    .price-tier-panel {
        padding: 12px;
    }

    .tier-table-wrap {
        overflow-x: visible;
    }

    .price-tier-table {
        min-width: 0;
    }

    .price-tier-table tr {
        display: grid;
        gap: 10px;
        padding: 12px;
    }

    .price-tier-table td {
        border-bottom: 0;
        padding: 0;
    }

    .pos-terminal {
        gap: 12px;
    }

    .pos-terminal.cashier-mode {
        padding: 10px;
    }

    .pos-terminal-grid {
        gap: 12px;
    }

    .pos-command-bar {
        padding: 12px;
    }

    .pos-category-strip {
        gap: 8px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pos-category-btn.visual {
        min-height: 60px;
        padding: 9px 10px;
    }

    .pos-fast-grid,
    .pos-product-grid {
        gap: 10px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pos-fast-chip {
        gap: 8px;
        grid-template-columns: 54px minmax(0, 1fr);
        min-height: 92px;
        padding: 9px;
    }

    .pos-chip-media {
        width: 54px;
    }

    .pos-chip-body > span,
    .pos-product-name {
        font-size: 13px;
    }

    .pos-chip-body strong,
    .pos-product-foot strong {
        font-size: 17px;
    }

    .pos-touch-product {
        grid-template-columns: 56px minmax(0, 1fr);
        min-height: 112px;
        padding: 10px;
    }

    .pos-product-info {
        gap: 8px;
        padding: 0;
    }

    .pos-product-media {
        height: 64px;
        width: 56px;
    }

    .pos-touch-product .pos-product-name {
        font-size: 12px;
        min-height: 42px;
    }

    .pos-product-foot {
        align-items: end;
        flex-direction: row;
    }

    .pos-cart-panel {
        box-shadow: 0 6px 20px rgb(15 23 42 / 0.08);
        padding: 12px;
    }

    .pos-cart-list {
        max-height: none;
    }

    .pos-cart-header > strong {
        font-size: 22px;
    }

    .pos-cart-header h2 {
        font-size: 18px;
    }

    .pos-qty-control {
        grid-template-columns: 42px 1fr 42px;
    }

    .pos-qty-control button,
    .pos-qty-control input {
        min-height: 42px;
    }

    .cb-pagination {
        align-items: stretch;
        margin: 0 -14px -14px;
        padding: 14px;
    }

    .cb-pagination-controls {
        justify-content: space-between;
    }

    .cb-page-list {
        flex: 1;
    }

    .login-page {
        align-content: start;
        min-height: 100svh;
        padding: 12px;
        place-items: stretch;
    }

    .controlbox-login {
        gap: 12px;
        grid-auto-rows: auto;
        overflow-y: auto;
    }

    .controlbox-login::after {
        bottom: -170px;
        height: 230px;
    }

    .login-hero-panel {
        min-height: 118px;
        padding: 0;
    }

    .login-hero-panel.has-hero-bg {
        background:
            linear-gradient(180deg, rgb(255 255 255 / 0.02), rgb(255 255 255 / 0.18)),
            var(--login-hero-bg);
        background-position: center;
        background-size: cover;
        box-shadow: 0 10px 28px rgb(15 23 42 / 0.08);
    }

    .login-hero-panel.has-hero-bg::after {
        background: linear-gradient(180deg, transparent 48%, rgb(219 234 254 / 0.42));
    }

    .login-hero-panel h1 {
        font-size: 26px;
        margin: 12px 0 6px;
    }

    .login-hero-panel p {
        font-size: 14px;
    }

    .login-card {
        max-width: none;
        padding: 16px;
    }

    .controlbox-login-card {
        box-shadow: 0 18px 54px rgb(15 23 42 / 0.12);
    }

    .login-brand {
        gap: 10px;
        margin-bottom: 14px;
    }

    .login-brand-symbol,
    .brand-mark {
        height: 52px;
        width: 52px;
    }

    .brand-logo {
        flex-basis: 52px;
        height: 52px;
        width: 52px;
    }

    .brand-logo-wide {
        height: 46px;
        max-width: 190px;
    }

    .login-title {
        font-size: 23px;
    }

    .input {
        font-size: 16px;
        min-height: 48px;
    }

    .login-card .form {
        gap: 13px;
    }

    .login-card .button.full {
        min-height: 52px;
    }

    .login-card .card-text {
        font-size: 13px;
    }

    .pos-mode-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .pos-mode-btn {
        width: 100%;
    }

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

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

    .dashboard-metric-card {
        min-height: 104px;
        padding: 12px;
    }

    .dashboard-company-card {
        grid-column: 1 / -1;
        min-height: 88px;
    }

    .dashboard-metric-card .card-label {
        font-size: 12px;
        line-height: 1.15;
    }

    .dashboard-metric-card .card-title {
        font-size: 18px;
        line-height: 1.12;
        margin: 7px 0 3px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dashboard-metric-card .card-text {
        font-size: 12px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dashboard-report-grid {
        gap: 12px;
        margin-top: 14px !important;
    }

    .dashboard-panel,
    .dashboard-stock-card {
        padding: 12px;
    }

    .dashboard-panel .section-row,
    .dashboard-stock-card .section-row {
        gap: 10px;
    }

    .dashboard-panel .card-title,
    .dashboard-stock-card .card-title {
        font-size: 16px !important;
        margin: 0 0 3px;
    }

    .dashboard-panel .card-text,
    .dashboard-stock-card .card-text {
        font-size: 12px;
    }

    .dashboard-panel .button,
    .dashboard-stock-card .button {
        min-height: 38px;
    }

    .dashboard-mobile-table tr {
        display: grid;
        gap: 2px 8px;
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 10px;
    }

    .dashboard-mobile-table td {
        border-bottom: 0;
        padding: 0;
    }

    .dashboard-mobile-table td:first-child {
        grid-column: 1;
        min-width: 0;
    }

    .dashboard-mobile-table td:first-child strong {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dashboard-mobile-table td:nth-child(2) {
        color: #71717a;
        font-size: 12px;
        font-weight: 700;
        grid-column: 1;
        grid-row: 2;
    }

    .dashboard-mobile-table td:nth-child(3) {
        align-self: center;
        font-size: 15px;
        font-weight: 900;
        grid-column: 2;
        grid-row: 1 / span 2;
        text-align: right;
        white-space: nowrap;
    }

    .dashboard-stock-card {
        margin-top: 14px !important;
    }

    .dashboard-stock-table {
        border-spacing: 0 8px;
    }

    .dashboard-stock-table tr {
        display: grid;
        gap: 4px 8px;
        grid-template-columns: minmax(0, 1fr) auto auto;
        padding: 10px;
    }

    .dashboard-stock-table td {
        border-bottom: 0;
        padding: 0;
    }

    .dashboard-stock-table td:nth-child(1) {
        align-self: center;
        grid-column: 1;
        min-width: 0;
    }

    .dashboard-stock-table td:nth-child(1) strong {
        display: block;
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dashboard-stock-table td:nth-child(2),
    .dashboard-stock-table td:nth-child(3) {
        align-self: center;
        font-size: 13px;
        font-weight: 900;
        white-space: nowrap;
    }

    .dashboard-stock-table td:nth-child(2)::before {
        color: #71717a;
        content: "Stock ";
        font-size: 11px;
        font-weight: 700;
    }

    .dashboard-stock-table td:nth-child(3)::before {
        color: #71717a;
        content: "Min ";
        font-size: 11px;
        font-weight: 700;
    }

    .dashboard-stock-table td:nth-child(4) {
        grid-column: 1 / -1;
        margin-top: 4px;
    }

    .dashboard-stock-table .button.small {
        font-size: 12px;
        min-height: 34px;
        padding: 6px 8px;
        width: 100%;
    }

    .inventory-list-card {
        margin-bottom: 28px;
        padding-bottom: 16px;
    }

    .inventory-mobile-list {
        border-spacing: 0 8px;
    }

    .inventory-mobile-list tr {
        display: grid;
        gap: 8px;
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 10px;
    }

    .inventory-mobile-list td {
        border-bottom: 0;
        padding: 0;
    }

    .inventory-mobile-list td:nth-child(1),
    .inventory-mobile-list td:nth-child(5),
    .inventory-mobile-list td:nth-child(6),
    .inventory-mobile-list td:nth-child(7),
    .inventory-mobile-list td:nth-child(8) {
        display: none;
    }

    .inventory-mobile-list td:nth-child(2) {
        grid-column: 1;
        min-width: 0;
    }

    .inventory-mobile-list td:nth-child(3) {
        grid-column: 1;
    }

    .inventory-mobile-list td:nth-child(4) {
        align-self: center;
        font-size: 18px;
        font-weight: 900;
        grid-column: 2;
        grid-row: 1 / span 2;
        min-width: 48px;
        text-align: right;
    }

    .inventory-mobile-list .inventory-list-main strong {
        display: block;
        font-size: 14px;
        line-height: 1.15;
        white-space: nowrap;
    }

    .inventory-mobile-list .inventory-list-mobile-meta,
    .inventory-mobile-list .inventory-list-mobile-reason {
        display: block;
        max-width: 64vw;
    }

    .inventory-mobile-list .movement-type {
        font-size: 11px;
        padding: 4px 8px;
    }

    .products-list-card {
        margin-bottom: 28px;
        padding-bottom: 16px;
    }

    .products-mobile-list {
        border-spacing: 0 8px;
    }

    .products-mobile-list tr {
        display: grid;
        gap: 0;
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 10px;
    }

    .products-mobile-list td {
        border-bottom: 0;
        padding: 0;
    }

    .products-mobile-list td:nth-child(1) {
        grid-column: 1;
        min-width: 0;
    }

    .products-mobile-list td:nth-child(2),
    .products-mobile-list td:nth-child(3),
    .products-mobile-list td:nth-child(6) {
        display: none;
    }

    .products-mobile-list td:nth-child(4) {
        align-self: center;
        font-size: 17px;
        font-weight: 900;
        grid-column: 2;
        grid-row: 1;
        padding-left: 8px;
        white-space: nowrap;
    }

    .products-mobile-list td:nth-child(5) {
        color: #71717a;
        font-size: 12px;
        font-weight: 700;
        grid-column: 1 / -1;
        margin: 7px 0 0 46px;
    }

    .products-mobile-list td:nth-child(7) {
        grid-column: 1 / -1;
        margin-top: 9px;
    }

    .products-mobile-list .product-thumb,
    .products-mobile-list .product-placeholder {
        border-radius: 7px;
        flex: 0 0 38px;
        height: 38px;
        width: 38px;
    }

    .products-mobile-list .product-placeholder {
        font-size: 10px;
    }

    .products-mobile-list .product-list-main {
        gap: 8px;
    }

    .products-mobile-list .product-list-text strong {
        display: block;
        font-size: 14px;
        line-height: 1.15;
        max-width: 100%;
        white-space: nowrap;
    }

    .products-mobile-list .product-list-mobile-meta {
        display: block;
        max-width: 46vw;
    }

    .products-mobile-list .badge.warn {
        margin-left: 4px;
        padding: 3px 7px;
    }

    .products-mobile-list .table-actions {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .products-mobile-list .button.small {
        font-size: 12px;
        min-height: 36px;
        padding: 6px 7px;
    }

    .pagination {
        margin-bottom: 18px;
        padding-bottom: 4px;
    }

    .pos-terminal {
        padding-bottom: 176px;
    }

    .pos-terminal.cashier-mode {
        padding-bottom: 188px;
    }

    .pos-terminal-grid {
        display: block;
    }

    .pos-workspace {
        gap: 12px;
    }

    .pos-cart-panel {
        border-radius: 8px 8px 0 0;
        border-width: 1px 0 0;
        bottom: 0;
        box-shadow: 0 -14px 34px rgb(15 23 42 / 0.16);
        gap: 10px;
        left: 0;
        max-height: 52svh;
        overflow-y: auto;
        padding: 12px;
        position: fixed;
        right: 0;
        top: auto;
        z-index: 35;
    }

    .pos-cart-header h2 {
        font-size: 16px;
        margin-top: 2px;
    }

    .pos-cart-header > strong {
        font-size: 20px;
    }

    .pos-cart-list {
        max-height: 24svh;
    }

    .pos-cart-list:has(.pos-empty-state:not([hidden])) {
        display: none;
    }

    .pos-totals {
        gap: 4px;
        padding-top: 8px;
    }

    .pos-totals div:first-child {
        display: none;
    }

    .pos-totals strong {
        font-size: 20px;
    }

    .pos-charge-btn {
        font-size: 15px;
        min-height: 48px;
    }
}

@media print {
    .receipt-actions {
        display: none;
    }

    .receipt {
        max-width: none;
        padding: 0;
    }
}

/* Company dashboard */
.cb-dashboard {
    display: grid;
    gap: 18px;
}

.cb-dashboard-hero {
    align-items: center;
    background:
        radial-gradient(circle at 86% 16%, rgb(34 197 94 / 0.20), transparent 30%),
        linear-gradient(135deg, #071016, #102018);
    border: 1px solid rgb(255 255 255 / 0.08);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgb(15 23 42 / 0.10);
    color: #fff;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    overflow: hidden;
    padding: 22px;
    position: relative;
}

.cb-dashboard-hero::after {
    background: linear-gradient(90deg, transparent, rgb(34 197 94 / 0.16));
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.cb-dashboard-hero > * {
    position: relative;
    z-index: 1;
}

.cb-dashboard-hero .card-label {
    color: #86efac;
    text-transform: uppercase;
}

.cb-dashboard-hero h2 {
    font-size: 30px;
    line-height: 1.1;
    margin: 6px 0;
}

.cb-dashboard-hero p {
    color: rgb(255 255 255 / 0.76);
    margin: 0;
}

.cb-dashboard-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cb-dashboard-hero .button.primary {
    background: #16a34a;
    border-color: #16a34a;
}

.cb-dashboard-hero .button.secondary {
    background: rgb(255 255 255 / 0.10);
    border-color: rgb(255 255 255 / 0.18);
    color: #fff;
}

.cb-dashboard-metrics {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cb-dashboard-metric {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgb(15 23 42 / 0.06);
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 16px;
}

.cb-dashboard-icon {
    align-items: center;
    background: #dcfce7;
    border-radius: 8px;
    color: #15803d;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.cb-dashboard-metric p {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    margin: 4px 0 0;
}

.cb-dashboard-metric strong {
    color: #0f172a;
    display: block;
    font-size: 26px;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cb-dashboard-metric em {
    color: #16a34a;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.cb-dashboard-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.cb-dashboard-chart-card,
.cb-dashboard-list-card {
    border-color: #e5e7eb;
    box-shadow: 0 12px 30px rgb(15 23 42 / 0.05);
}

.cb-dashboard-chart-card .card-title,
.cb-dashboard-list-card .card-title {
    font-size: 18px;
    margin: 0 0 4px;
}

.cb-dashboard-chip {
    background: #ecfdf5;
    border-radius: 999px;
    color: #15803d;
    font-size: 12px;
    font-weight: 900;
    padding: 6px 10px;
}

.cb-line-chart {
    height: 220px;
    margin-top: 18px;
}

.cb-line-chart svg {
    height: 100%;
    overflow: visible;
    width: 100%;
}

.cb-line-chart path {
    stroke: #e5e7eb;
    stroke-width: 0.8;
}

.cb-line-chart .cb-chart-axis {
    stroke: #cbd5e1;
    stroke-width: 1;
}

.cb-line-chart .cb-chart-line {
    fill: none;
    stroke: #2563eb;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
}

.cb-chart-labels {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    margin-top: 10px;
}

.cb-chart-labels span {
    display: grid;
    gap: 2px;
    min-width: 0;
    text-align: center;
}

.cb-chart-labels em {
    color: #64748b;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.cb-chart-labels strong {
    color: #0f172a;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cb-category-bars {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
}

.cb-category-bar {
    display: grid;
    gap: 8px;
}

.cb-category-bar span {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.cb-category-bar strong {
    color: #0f172a;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cb-category-bar em {
    color: #64748b;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.cb-category-bar div {
    background: #eef2f7;
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.cb-category-bar i {
    background: linear-gradient(90deg, #16a34a, #2563eb);
    border-radius: inherit;
    display: block;
    height: 100%;
}

.cb-dashboard-list {
    display: grid;
    gap: 7px;
    margin-top: 14px;
    max-height: 304px;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
}

.cb-dashboard-list-row {
    align-items: center;
    border: 1px solid #eef2f7;
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: 32px minmax(0, 1fr) auto auto;
    min-height: 50px;
    padding: 9px 10px;
}

.cb-dashboard-list-row > span {
    align-items: center;
    background: #eff6ff;
    border-radius: 999px;
    color: #2563eb;
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.cb-dashboard-list-row.warning > span {
    background: #fef3c7;
    color: #b45309;
}

.cb-dashboard-list-row strong {
    color: #0f172a;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cb-dashboard-list-row em {
    color: #64748b;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.cb-dashboard-list-row b {
    color: #0f172a;
    font-size: 14px;
    white-space: nowrap;
}

.cb-dashboard-sales-list {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 16px;
}

.cb-dashboard-sales-list div {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 8px;
    display: grid;
    gap: 4px;
    padding: 12px;
}

.cb-dashboard-sales-list span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.cb-dashboard-sales-list strong {
    color: #0f172a;
    font-size: 14px;
}

.cb-dashboard-sales-list b {
    color: #15803d;
    font-size: 18px;
}

.theme-dark .cb-dashboard-metric,
.theme-dark .cb-dashboard-chart-card,
.theme-dark .cb-dashboard-list-card,
.theme-dark .cb-dashboard-sales-list div {
    background: #18181b;
    border-color: #3f3f46;
}

.theme-dark .cb-dashboard-metric strong,
.theme-dark .cb-category-bar strong,
.theme-dark .cb-dashboard-list-row strong,
.theme-dark .cb-dashboard-list-row b,
.theme-dark .cb-chart-labels strong,
.theme-dark .cb-dashboard-sales-list strong {
    color: #f4f4f5;
}

@media (max-width: 1023px) {
    .cb-dashboard-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cb-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .cb-dashboard {
        gap: 12px;
    }

    .cb-dashboard-hero {
        align-items: stretch;
        flex-direction: column;
        padding: 16px;
    }

    .cb-dashboard-hero h2 {
        font-size: 22px;
    }

    .cb-dashboard-hero-actions .button {
        flex: 1;
    }

    .cb-dashboard-metrics {
        gap: 10px;
    }

    .cb-dashboard-metric {
        padding: 12px;
    }

    .cb-dashboard-metric strong {
        font-size: 20px;
    }

    .cb-line-chart {
        height: 170px;
    }

    .cb-chart-labels strong {
        display: none;
    }

    .cb-category-bars {
        max-height: 190px;
        padding-right: 4px;
    }

    .cb-dashboard-list {
        max-height: 226px;
        padding-right: 4px;
    }

    .cb-dashboard-list-row {
        grid-template-columns: 28px minmax(0, 1fr) auto;
        min-height: 46px;
        padding: 8px;
    }

    .cb-dashboard-list-row b,
    .cb-dashboard-list-row .button {
        grid-column: 2 / -1;
        justify-self: stretch;
    }
}

/* POS cart compact override */
.pos-cart-panel {
    gap: 12px;
}

.pos-cart-header h2 {
    font-size: 22px;
}

.pos-cart-header > strong {
    font-size: 34px;
    line-height: 1;
}

.pos-cart-list {
    gap: 0;
}

.pos-cart-row {
    gap: 8px 12px;
    grid-template-columns: minmax(0, 1fr) 118px;
    padding: 12px 0;
}

.pos-cart-main {
    gap: 4px;
    min-width: 0;
}

.pos-cart-main strong {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pos-cart-main span {
    font-size: 12px;
}

.pos-price-tier-badge,
.pos-next-tier {
    font-size: 11px;
    line-height: 1.15;
    padding: 5px 8px;
}

.stock-pill {
    font-size: 11px;
}

.pos-qty-control {
    align-self: start;
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: 36px 42px 36px;
    justify-content: end;
}

.pos-qty-control button,
.pos-qty-control input {
    font-size: 15px;
    min-height: 36px;
}

.pos-cart-subtotal {
    grid-column: 1 / -1;
    padding-top: 2px;
}

.pos-cart-subtotal strong {
    font-size: 16px;
}

.pos-remove {
    font-size: 12px;
}

.pos-totals {
    gap: 6px;
}

.pos-totals span {
    font-size: 14px;
}

.pos-totals strong {
    line-height: 1;
}

.pos-charge-btn {
    min-height: 56px;
}

@media (max-width: 767px) {
    .pos-cart-row {
        grid-template-columns: minmax(0, 1fr) 110px;
        padding: 10px 0;
    }

    .pos-cart-header h2 {
        font-size: 16px;
    }

    .pos-cart-header > strong {
        font-size: 24px;
    }

    .pos-qty-control {
        grid-template-columns: 34px 40px 34px;
    }

    .pos-qty-control button,
    .pos-qty-control input {
        min-height: 34px;
    }
}

/* POS cart ticket layout */
.pos-cart-panel {
    gap: 14px;
}

.pos-cart-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
}

.pos-cart-header h2 {
    font-size: 18px;
    line-height: 1.05;
    margin: 2px 0 0;
}

.pos-cart-header > strong {
    color: #15803d;
    font-size: 30px;
    font-weight: 900;
}

.pos-cart-list {
    gap: 0;
    max-height: min(48vh, 520px);
    overflow-y: auto;
    padding-right: 4px;
}

.pos-cart-row {
    align-items: center;
    border: 0;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
    box-shadow: none;
    display: grid;
    gap: 8px 12px;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    padding: 14px 0;
}

.pos-cart-media {
    align-items: center;
    align-self: start;
    background: #f4f4f5;
    border-radius: 8px;
    color: #a1a1aa;
    display: grid;
    font-size: 18px;
    font-weight: 900;
    height: 54px;
    justify-items: center;
    overflow: hidden;
    width: 54px;
}

.pos-cart-media img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.pos-cart-main {
    align-self: start;
    gap: 4px;
}

.pos-cart-main strong {
    font-size: 14px;
    line-height: 1.15;
    white-space: normal;
}

.pos-cart-main span {
    color: #71717a;
    font-size: 12px;
}

.pos-cart-main .stock-pill {
    margin-top: 0;
}

.pos-price-tier-badge,
.pos-next-tier {
    max-width: 100%;
}

.pos-qty-control {
    align-self: start;
    grid-column: 3;
    grid-row: 1;
    grid-template-columns: 36px 42px 36px;
}

.pos-qty-control button,
.pos-qty-control input {
    background: #fff;
    font-size: 14px;
    min-height: 38px;
}

.pos-cart-subtotal {
    align-items: end;
    display: grid;
    gap: 6px;
    grid-column: 3;
    grid-row: 2;
    justify-items: end;
    padding: 0;
}

.pos-cart-subtotal strong {
    font-size: 18px;
    line-height: 1;
}

.pos-remove {
    color: #dc2626;
    font-size: 12px;
    padding: 0;
}

.pos-totals {
    border-top: 0;
    gap: 8px;
    padding-top: 0;
}

.pos-totals div {
    display: grid;
    grid-template-columns: 1fr auto;
}

.pos-totals span {
    color: #71717a;
    font-size: 13px;
    font-weight: 800;
}

.pos-totals strong {
    font-size: 18px;
    font-weight: 900;
}

.pos-totals div:last-child {
    border-top: 1px solid #e5e7eb;
    margin-top: 4px;
    padding-top: 12px;
}

.pos-totals div:last-child span,
.pos-totals div:last-child strong {
    color: #09090b;
    font-size: 20px;
}

.pos-charge-btn {
    background: #15803d;
    border-color: #15803d;
    font-size: 16px;
    min-height: 52px;
}

/* POS cart receipt refinement */
.pos-cart-row {
    grid-template-columns: 50px minmax(0, 1fr) auto;
    gap: 8px 12px;
}

.pos-cart-media {
    grid-column: 1;
    grid-row: 1 / span 3;
    height: 50px;
    width: 50px;
}

.pos-cart-main {
    grid-column: 2 / -1;
    grid-row: 1;
}

.pos-cart-main strong {
    display: block;
    font-size: 14px;
    line-height: 1.16;
    max-width: 100%;
    white-space: normal;
}

.pos-cart-controls {
    align-items: center;
    display: flex;
    gap: 8px;
    grid-column: 2;
    grid-row: 3;
}

.pos-remove-icon {
    align-items: center;
    background: #fff;
    border: 1px solid #fee2e2;
    border-radius: 7px;
    color: #dc2626;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 32px;
    height: 32px;
    justify-content: center;
    padding: 0;
    width: 32px;
}

.pos-remove-icon .nav-icon {
    height: 16px;
    width: 16px;
}

.pos-cart-controls .pos-qty-control {
    align-self: auto;
    display: grid;
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: 32px 38px 32px;
}

.pos-cart-controls .pos-qty-control button,
.pos-cart-controls .pos-qty-control input {
    font-size: 13px;
    min-height: 32px;
}

.pos-cart-line-total {
    align-self: center;
    grid-column: 3;
    grid-row: 3;
    justify-self: end;
    min-width: 72px;
    text-align: right;
}

.pos-cart-line-total strong {
    display: block;
    font-size: 16px;
    line-height: 1;
    white-space: nowrap;
}

.pos-clear-cart {
    border-color: #e5e7eb;
    color: #dc2626;
    font-size: 12px;
    min-height: 38px;
}

.pos-clear-cart .nav-icon {
    height: 15px;
    width: 15px;
}

.pos-cart-row .pos-next-tier,
.pos-cart-row .pos-price-tier-badge {
    border-radius: 8px;
    display: block;
    font-size: 12px;
    grid-column: 2 / -1;
    grid-row: 2;
    line-height: 1.2;
    max-width: min(100%, 320px);
    padding: 6px 10px;
    width: fit-content;
}

.pos-cart-row .stock-pill {
    width: fit-content;
}

.pos-totals div:last-child span,
.pos-totals div:last-child strong {
    color: #15803d;
}

@media (max-width: 767px) {
    .pos-cart-list {
        max-height: 28svh;
    }

    .pos-cart-row {
        grid-template-columns: 42px minmax(0, 1fr) auto;
        gap: 7px 9px;
    }

    .pos-cart-media {
        grid-row: 1 / span 4;
        height: 42px;
        width: 42px;
    }

    .pos-cart-header > strong {
        font-size: 22px;
    }

    .pos-qty-control {
        grid-template-columns: 32px 38px 32px;
    }

    .pos-qty-control button,
    .pos-qty-control input {
        min-height: 34px;
    }

    .pos-cart-subtotal strong {
        font-size: 16px;
    }

    .pos-cart-controls {
        grid-column: 2;
        grid-row: 3;
    }

    .pos-cart-line-total {
        grid-column: 3;
        grid-row: 3;
        min-width: 58px;
    }

    .pos-cart-line-total strong {
        font-size: 15px;
    }

    .pos-cart-main {
        grid-column: 2 / -1;
    }

    .pos-cart-main strong {
        font-size: 13px;
    }

    .pos-cart-row .pos-next-tier,
    .pos-cart-row .pos-price-tier-badge {
        grid-column: 2 / -1;
        max-width: 100%;
    }
}

/* ControlBox login v2 */
.cb-login-v2 {
    background: #f6f7f8;
    gap: 0;
    grid-template-columns: minmax(0, 1.45fr) minmax(420px, 0.85fr);
    height: 100vh;
    min-height: 0;
    overflow: hidden;
    padding: 20px;
}

.cb-login-v2::after {
    display: none;
}

.cb-login-hero,
.cb-login-v2 .controlbox-login-card {
    height: calc(100vh - 40px);
    min-height: 0;
}

.cb-login-hero {
    align-content: space-between;
    align-items: stretch;
    background:
        linear-gradient(90deg, rgb(5 9 14 / 0.94), rgb(5 10 14 / 0.74) 42%, rgb(13 129 77 / 0.58)),
        var(--login-hero-bg, linear-gradient(135deg, #071016, #0f7d4b));
    background-position: center;
    background-size: cover;
    border-radius: 8px 0 0 8px;
    box-shadow: 0 24px 70px rgb(15 23 42 / 0.13);
    color: #fff;
    display: grid;
    justify-items: stretch;
    max-width: none;
    min-height: 0;
    padding: clamp(34px, 4vw, 64px);
    text-align: left;
}

.cb-login-hero.has-hero-bg {
    background:
        linear-gradient(90deg, rgb(5 9 14 / 0.94), rgb(5 10 14 / 0.74) 42%, rgb(13 129 77 / 0.58)),
        var(--login-hero-bg);
    background-position: center;
    background-size: cover;
    box-shadow: 0 24px 70px rgb(15 23 42 / 0.13);
}

.cb-login-hero.has-hero-bg::after {
    background:
        radial-gradient(circle at 82% 18%, rgb(34 197 94 / 0.34), transparent 28%),
        linear-gradient(180deg, transparent 62%, rgb(3 7 10 / 0.76));
}

.cb-login-hero.has-composed-bg {
    background-color: #050a0d;
    background-image: var(--login-hero-bg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.cb-login-hero.has-composed-bg::after {
    background: linear-gradient(90deg, rgb(3 7 10 / 0.04), transparent 48%, rgb(7 102 64 / 0.08));
}

.cb-login-hero.has-composed-bg .cb-login-hero-copy,
.cb-login-hero.has-composed-bg .cb-login-features,
.cb-login-hero.has-composed-bg .cb-login-secure {
    opacity: 0;
    pointer-events: none;
}

.cb-login-hero-copy {
    max-width: 520px;
    position: relative;
    z-index: 1;
}

.cb-login-wordmark {
    display: block;
    filter: brightness(0) invert(1) drop-shadow(0 12px 28px rgb(0 0 0 / 0.2));
    height: auto;
    margin-bottom: 34px;
    max-width: 310px;
}

.cb-login-hero-copy h1 {
    color: #fff;
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1.12;
    margin: 0 0 20px;
}

.cb-login-hero-copy h1 span {
    color: #22c55e;
}

.cb-login-hero-copy p {
    color: rgb(255 255 255 / 0.82);
    font-size: 20px;
    line-height: 1.45;
    max-width: 520px;
}

.cb-login-features {
    align-items: stretch;
    align-self: end;
    backdrop-filter: blur(18px);
    background: rgb(8 13 18 / 0.55);
    border: 1px solid rgb(255 255 255 / 0.14);
    border-radius: 8px;
    display: grid;
    gap: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 34px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.cb-login-features span {
    border-right: 1px solid rgb(255 255 255 / 0.12);
    display: grid;
    gap: 3px;
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 18px;
}

.cb-login-features span:last-child {
    border-right: 0;
}

.cb-login-features .nav-icon {
    color: #22c55e;
    grid-row: 1 / span 2;
    height: 26px;
    width: 26px;
}

.cb-login-features strong {
    font-size: 14px;
    line-height: 1.1;
}

.cb-login-features em {
    color: rgb(255 255 255 / 0.72);
    font-size: 13px;
    font-style: normal;
}

.cb-login-secure {
    align-items: center;
    color: rgb(255 255 255 / 0.78);
    display: flex;
    font-size: 14px;
    gap: 10px;
    margin: 18px 0 0;
    position: relative;
    z-index: 1;
}

.cb-login-secure .nav-icon {
    color: #86efac;
    height: 20px;
    width: 20px;
}

.cb-login-v2 .controlbox-login-card {
    align-self: stretch;
    border: 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 24px 70px rgb(15 23 42 / 0.13);
    display: grid;
    margin: 0;
    max-width: none;
    place-content: center;
    padding: clamp(24px, 4vw, 58px);
}

.cb-login-v2 .form {
    gap: 18px;
    width: min(100%, 440px);
}

.cb-login-card-brand {
    display: grid;
    justify-items: center;
    margin-bottom: 26px;
    text-align: center;
}

.cb-login-card-brand .login-brand-symbol {
    height: 96px;
    margin-bottom: 12px;
    width: 96px;
}

.cb-login-card-brand .login-title {
    font-size: 32px;
    letter-spacing: 0;
    margin: 0 0 10px;
}

.cb-login-card-brand .card-text {
    font-size: 17px;
}

.cb-login-v2 .field-label {
    color: #111827;
    font-size: 14px;
    margin-bottom: 8px;
}

.login-input-shell {
    align-items: center;
    background: #fff;
    border: 1px solid #d7dde7;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    min-height: 54px;
    padding: 0 16px;
}

.login-input-shell:focus-within {
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgb(34 197 94 / 0.14);
}

.login-input-shell .nav-icon {
    color: #64748b;
    height: 22px;
    width: 22px;
}

.login-input-shell .input {
    border: 0;
    box-shadow: none;
    min-height: 52px;
    padding: 0;
}

.login-input-shell .input:focus {
    border: 0;
    box-shadow: none;
}

.login-password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: #0f172a;
    cursor: pointer;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    padding: 0;
    width: 36px;
}

.cb-login-v2 .checkbox {
    color: #475569;
    font-size: 15px;
}

.cb-login-v2 .checkbox input {
    accent-color: #16a34a;
    height: 18px;
    width: 18px;
}

.login-forgot-link {
    color: #16a34a;
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.cb-login-v2 .button.primary.full {
    background: #16a34a;
    border-color: #16a34a;
    box-shadow: 0 16px 34px rgb(22 163 74 / 0.20);
    font-size: 20px;
    min-height: 58px;
}

.cb-login-footer {
    border-top: 1px solid #e5e7eb;
    color: #64748b;
    font-size: 14px;
    margin: 34px auto 0;
    padding-top: 20px;
    text-align: center;
    width: min(100%, 440px);
}

@media (max-width: 1023px) {
    .cb-login-v2 {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
        overflow: auto;
        padding: 12px;
    }

    .cb-login-hero {
        border-radius: 8px 8px 0 0;
        height: 420px;
        min-height: 420px;
    }

    .cb-login-v2 .controlbox-login-card {
        border-radius: 0 0 8px 8px;
        height: auto;
        min-height: auto;
    }
}

@media (max-width: 767px) {
    .cb-login-v2 {
        height: 100svh;
        min-height: 100svh;
        overflow: hidden;
        padding: 0;
    }

    .cb-login-hero {
        border-radius: 0;
        height: 32svh;
        min-height: 190px;
        padding: 24px;
    }

    .cb-login-hero.has-composed-bg {
        background-position: center;
    }

    .cb-login-wordmark {
        margin-bottom: 18px;
        max-width: 210px;
    }

    .cb-login-hero-copy h1 {
        font-size: 28px;
    }

    .cb-login-hero-copy p {
        font-size: 15px;
    }

    .cb-login-features,
    .cb-login-secure {
        display: none;
    }

    .cb-login-v2 .controlbox-login-card {
        border-radius: 0;
        height: 68svh;
        min-height: 0;
        overflow: hidden;
        padding: 18px 16px 16px;
        place-content: start center;
    }

    .cb-login-card-brand {
        margin-bottom: 16px;
    }

    .cb-login-card-brand .login-brand-symbol {
        height: 54px;
        margin-bottom: 8px;
        width: 54px;
    }

    .cb-login-card-brand .login-title {
        font-size: 26px;
        margin-bottom: 6px;
    }

    .cb-login-card-brand .card-text {
        font-size: 15px;
    }

    .cb-login-v2 .form {
        gap: 12px;
    }

    .cb-login-v2 .field-label {
        margin-bottom: 6px;
    }

    .login-input-shell {
        min-height: 50px;
    }

    .login-input-shell .input {
        min-height: 48px;
    }

    .cb-login-v2 .checkbox,
    .login-forgot-link {
        font-size: 14px;
    }

    .cb-login-v2 .button.primary.full {
        font-size: 18px;
        min-height: 54px;
    }

    .cb-login-footer {
        display: none;
    }
}
