h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

:root {
    --ink: #18212f;
    --muted: #657084;
    --line: #d9e1ea;
    --surface: #ffffff;
    --soft: #f4f7fb;
    --accent: #0f7b75;
    --accent-strong: #09615c;
    --gold: #d49b2a;
    --coral: #d85f4a;
    --sidebar: #102331;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--soft);
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.eyebrow {
    margin: 0 0 0.45rem;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.login-layout {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background:
        linear-gradient(135deg, rgba(15, 123, 117, 0.08), transparent 34%),
        linear-gradient(315deg, rgba(216, 95, 74, 0.07), transparent 30%),
        var(--soft);
}

.login-panel {
    width: min(100%, 440px);
}

.login-card {
    padding: clamp(1.4rem, 4vw, 2.15rem);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 22px 70px rgba(24, 33, 47, 0.12);
}

.login-logo {
    width: 4rem;
    height: 4rem;
    display: grid;
    place-items: center;
    margin-bottom: 1.35rem;
    border-radius: 8px;
    background: var(--sidebar);
    color: #ffffff;
    font-weight: 900;
}

.login-heading {
    margin-bottom: 1.5rem;
}

.login-heading h1 {
    margin: 0;
    font-size: 2rem;
}

.login-heading p:last-child {
    margin: 0.55rem 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.login-form {
    display: grid;
    gap: 1rem;
}

.field-group {
    display: grid;
    gap: 0.45rem;
}

.field-group label {
    font-size: 0.9rem;
    font-weight: 800;
}

.form-input {
    width: 100%;
    min-height: 3.15rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
    color: var(--ink);
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.form-input:focus {
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(15, 123, 117, 0.12);
}

.password-field {
    position: relative;
}

.password-field .form-input {
    padding-right: 5.6rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.45rem;
    min-height: 2.25rem;
    padding: 0 0.7rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--accent-strong);
    font-weight: 900;
    transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus-visible {
    border-color: var(--accent);
}

.login-alert {
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(216, 95, 74, 0.35);
    border-radius: 8px;
    background: rgba(216, 95, 74, 0.1);
    color: #9a3d2f;
    font-weight: 700;
}

.login-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    font-size: 0.92rem;
    font-weight: 800;
}

.login-links a {
    color: #0f8f8b;
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

.primary-action {
    min-height: 3.2rem;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 900;
    transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.primary-action:hover,
.primary-action:focus-visible {
    background: var(--accent-strong);
    box-shadow: 0 12px 28px rgba(15, 123, 117, 0.25);
    transform: translateY(-1px);
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    background: var(--soft);
}

.app-sidebar {
    padding: 1rem;
    background: var(--sidebar);
    color: #f7fbfc;
}

.sidebar-backdrop,
.mobile-menu-button {
    display: none;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.brand-mark,
.nav-icon,
.app-icon,
.avatar {
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-weight: 900;
}

.brand-mark {
    width: 3rem;
    height: 3rem;
    background: #f7fbfc;
    color: var(--accent-strong);
}

.sidebar-brand strong,
.sidebar-brand span {
    display: block;
}

.sidebar-brand span {
    color: #a9c2cc;
    font-size: 0.85rem;
}

.sidebar-nav {
    display: grid;
    gap: 0.25rem;
}

.nav-section {
    margin: 1.1rem 0 0.35rem;
    padding: 0 0.75rem;
    color: #8dd8ce;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.nav-link {
    min-height: 2.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    color: #dce9ee;
    text-decoration: none;
    font-weight: 800;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.11);
    color: #ffffff;
}

.nav-icon {
    width: 2rem;
    height: 2rem;
    background: rgba(255, 255, 255, 0.1);
    color: #8dd8ce;
    font-size: 0.72rem;
}

.app-main {
    min-width: 0;
}

.topbar {
    min-height: 4.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem clamp(1rem, 3vw, 2rem);
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

.topbar strong {
    display: block;
}

.topbar-title {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-chip span {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
}

.avatar {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(15, 123, 117, 0.12);
    color: var(--accent-strong);
}

.icon-button {
    min-height: 2.35rem;
    padding: 0 0.8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    font-weight: 800;
}

.content-area {
    padding: clamp(1rem, 3vw, 2rem);
}

.page-title-row,
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.page-title-row {
    margin-bottom: 1.35rem;
}

.page-title-row h1,
.section-heading h2 {
    margin: 0;
}

.page-title-row h1 {
    font-size: clamp(1.85rem, 4vw, 3rem);
}

.role-badge,
.status-pill {
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    background: rgba(15, 123, 117, 0.12);
    color: var(--accent-strong);
    font-weight: 900;
}

.dashboard-grid {
    display: grid;
    gap: 1rem;
}

.metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-tile,
.dashboard-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.dashboard-tile {
    min-height: 8rem;
    padding: 1.1rem;
}

.dashboard-tile span {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 800;
}

.dashboard-tile strong {
    display: block;
    margin-top: 0.85rem;
    font-size: 1.85rem;
}

.dashboard-tile.warning strong {
    color: var(--coral);
}

.dashboard-sections {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
    gap: 1rem;
    margin-top: 1rem;
}

.dashboard-card {
    padding: 1.1rem;
}

.app-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.app-card {
    min-height: 10rem;
    display: grid;
    align-content: start;
    gap: 0.55rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
    color: var(--ink);
    text-align: left;
}

.app-card:hover,
.app-card:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(24, 33, 47, 0.1);
}

.app-icon {
    width: 2.6rem;
    height: 2.6rem;
    background: rgba(15, 123, 117, 0.12);
    color: var(--accent-strong);
    font-size: 0.8rem;
}

.app-card strong {
    font-size: 1.05rem;
}

.app-card small {
    color: var(--muted);
    line-height: 1.4;
}

.ticket-preview {
    margin-top: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.sale-row,
.sale-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
}

.sale-row {
    border-bottom: 1px solid var(--line);
}

.sale-total {
    background: var(--sidebar);
    color: #ffffff;
}

.sale-total strong {
    font-size: 1.35rem;
}

.page-stack {
    display: grid;
    gap: 1rem;
}

.compact-action {
    min-height: 2.75rem;
    padding: 0 1rem;
}

.secondary-action {
    min-height: 2.55rem;
    padding: 0 0.85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    font-weight: 900;
}

.secondary-action:hover,
.secondary-action:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(15, 123, 117, 0.11);
}

.danger-action {
    color: #9a3d2f;
    border-color: rgba(216, 95, 74, 0.35);
}

.danger-action:hover,
.danger-action:focus-visible {
    border-color: var(--coral);
    box-shadow: 0 0 0 4px rgba(216, 95, 74, 0.12);
}

.list-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto auto;
    align-items: end;
    gap: 1rem;
}

.search-field {
    max-width: 520px;
}

.list-summary {
    min-width: 8rem;
    padding: 0.8rem 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.list-summary span,
.table-note {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.list-summary strong {
    display: block;
    margin-top: 0.25rem;
    font-size: 1.3rem;
}

.list-summary.warning strong {
    color: var(--coral);
}

.table-card {
    padding: 0;
    overflow: hidden;
}

.responsive-table {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}

.data-table th,
.data-table td {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    background: #edf5f4;
    color: var(--accent-strong);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.data-table tbody tr:hover {
    background: #fbfdff;
}

.number-cell {
    text-align: right !important;
    white-space: nowrap;
}

.actions-cell {
    text-align: right !important;
    white-space: nowrap;
}

.select-cell {
    width: 3rem;
    text-align: center !important;
}

.select-cell input {
    width: 1rem;
    height: 1rem;
}

.product-thumb {
    width: 2.8rem;
    height: 2.8rem;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #edf5f4;
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 900;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-preview {
    width: 7rem;
    height: 7rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.product-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inline-input-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
}

.icon-text-action {
    min-height: 2.85rem;
    padding: 0 0.85rem;
    border: 1px solid rgba(15, 123, 117, 0.25);
    border-radius: 8px;
    background: rgba(15, 123, 117, 0.1);
    color: var(--accent-strong);
    font-weight: 900;
}

.icon-text-action:hover,
.icon-text-action:focus-visible {
    border-color: var(--accent);
    background: rgba(15, 123, 117, 0.16);
}

.file-action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.65rem;
}

.file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.field-hint {
    display: block;
    margin-top: 0.5rem;
    color: var(--muted);
    font-weight: 800;
}

.table-note {
    margin-top: 0.25rem;
    color: var(--coral);
}

.table-count {
    align-self: center;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
}

.table-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-top: 1px solid var(--line);
    background: #fbfdff;
}

.table-pagination span {
    min-width: 8rem;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 900;
    text-align: center;
}

.status-pill.muted {
    background: #edf1f5;
    color: var(--muted);
}

.status-pill.danger {
    background: rgba(216, 95, 74, 0.12);
    color: #9a3d2f;
}

.offline-session-badge {
    width: fit-content;
    margin-top: 0.2rem;
    padding: 0.18rem 0.45rem;
    border-radius: 6px;
    background: rgba(216, 95, 74, 0.12);
    color: #9a3d2f;
    font-size: 0.7rem !important;
    font-weight: 900 !important;
}

.empty-state {
    padding: 2rem;
    color: var(--muted);
    font-weight: 800;
    text-align: center;
}

.form-page {
    max-width: 980px;
}

.product-form-card {
    padding: 1.25rem;
}

.entity-form {
    display: grid;
    gap: 1rem;
}

.form-divider {
    height: 1px;
    margin: 1.25rem 0;
    background: var(--line);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.full-field {
    grid-column: 1 / -1;
}

.check-field {
    min-height: 3.15rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
    font-weight: 900;
}

.check-field input {
    width: 1.1rem;
    height: 1.1rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.success-alert {
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(15, 123, 117, 0.3);
    border-radius: 8px;
    background: rgba(15, 123, 117, 0.1);
    color: var(--accent-strong);
    font-weight: 800;
}

.cash-cut-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cash-close-heading {
    margin-bottom: 1rem;
}

.readonly-amount {
    min-height: 3.15rem;
    display: flex;
    align-items: center;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
    font-weight: 900;
}

.difference-cell {
    font-weight: 900;
}

.stock-toolbar {
    grid-template-columns: minmax(240px, 1fr) auto auto auto;
}

.stock-section-heading {
    padding: 1.1rem 1.1rem 0;
}

.sale-page {
    max-width: 1280px;
}

.sale-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.48fr);
    gap: 1rem;
    align-items: start;
}

.sale-ticket-panel {
    padding: 1.1rem;
}

.sale-total-badge {
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background: rgba(15, 123, 117, 0.12);
    color: var(--accent-strong);
}

.sale-lines {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
}

.sale-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.sale-line span {
    display: block;
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.sale-line-actions {
    display: grid;
    justify-items: end;
    gap: 0.5rem;
    white-space: nowrap;
}

.sale-ticket-total {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background: var(--sidebar);
    color: #ffffff;
}

.sale-ticket-total strong {
    font-size: 1.45rem;
}

.payment-summary {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto;
    gap: 0.85rem;
    align-items: end;
    margin-top: 1rem;
}

.payment-change {
    min-width: 140px;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fbfdff;
    text-align: right;
}

.payment-change span,
.payment-change strong {
    display: block;
}

.payment-change span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
}

.payment-change strong {
    margin-top: 0.2rem;
    color: var(--accent-strong);
    font-size: 1.35rem;
}

.product-suggestions {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.35rem;
}

.product-suggestion {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    text-align: left;
}

.product-suggestion-main {
    display: flex !important;
    align-items: center;
    gap: 0.75rem !important;
    min-width: 0;
}

.product-suggestion-price {
    display: grid;
    justify-items: end;
    gap: 0.2rem;
    white-space: nowrap;
}

.product-suggestion:hover,
.product-suggestion:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(15, 123, 117, 0.1);
}

.product-suggestion span {
    display: grid;
    gap: 0.2rem;
}

.product-suggestion > span:last-child {
    justify-items: end;
    white-space: nowrap;
}

.product-suggestion small {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.floating-panel-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(9, 24, 38, 0.48);
}

.floating-panel {
    width: min(100%, 460px);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    box-shadow: 0 24px 80px rgba(9, 24, 38, 0.28);
}

.weight-capture-panel {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid rgba(15, 123, 117, 0.35);
    border-radius: 8px;
    background: #ffffff;
}

.weight-capture-panel h2 {
    margin: 0.15rem 0;
    font-size: 1.1rem;
}

.weight-capture-panel span {
    color: var(--muted);
    font-weight: 800;
}

.weight-capture-grid {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 1rem;
    align-items: end;
}

.weight-preview {
    min-width: 150px;
    padding: 0.8rem;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--line);
    text-align: right;
}

.weight-preview span,
.weight-preview strong {
    display: block;
}

.weight-preview strong {
    margin-top: 0.2rem;
    color: var(--ink);
    font-size: 1.25rem;
}

.payment-capture-panel {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid rgba(15, 123, 117, 0.35);
    border-radius: 8px;
    background: #ffffff;
}

.payment-total {
    display: block;
    margin-top: 0.35rem;
    color: var(--accent-strong);
    font-size: 2rem;
    line-height: 1;
}

.modal-payment-summary {
    grid-template-columns: minmax(0, 1fr) minmax(9rem, auto);
}

.ticket-print-page {
    align-items: center;
}

.print-ticket {
    width: min(100%, var(--ticket-width));
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: #111111;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.78rem;
}

.print-ticket-header,
.print-ticket-footer {
    display: grid;
    gap: 0.2rem;
    text-align: center;
}

.print-ticket-header h2 {
    margin: 0;
    font-size: 1rem;
}

.print-logo {
    width: 2.4rem;
    height: 2.4rem;
    display: grid;
    place-items: center;
    margin: 0 auto 0.2rem;
    border: 1px solid #111111;
    font-weight: 900;
}

.print-ticket-meta,
.print-ticket-line,
.print-ticket-total {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.15rem 0.5rem;
}

.print-ticket-meta,
.print-ticket-lines,
.print-ticket-total,
.print-ticket-footer {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px dashed #111111;
}

.print-ticket-line {
    margin-bottom: 0.45rem;
}

.print-ticket-line span,
.print-ticket-line small {
    grid-column: 1 / -1;
}

.print-ticket-line strong,
.print-ticket-total strong {
    text-align: right;
}

.print-ticket-total {
    font-size: 0.95rem;
    font-weight: 900;
}

.labels-print-page {
    align-items: center;
}

.label-options {
    width: min(100%, 620px);
}

.labels-sheet {
    width: min(100%, 840px);
    display: grid;
    gap: 0.45rem;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    align-items: start;
}

.labels-sheet.medium {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.product-label {
    min-height: 4.7rem;
    display: grid;
    gap: 0.15rem;
    padding: 0.35rem 0.45rem;
    border: 1px dashed #111111;
    background: #ffffff;
    color: #111111;
    font-family: "Segoe UI", Arial, sans-serif;
    text-align: center;
}

.labels-sheet.medium .product-label {
    min-height: 6rem;
    padding: 0.5rem 0.65rem;
}

.product-label strong {
    min-height: 1.1rem;
    overflow: hidden;
    font-size: 0.75rem;
    line-height: 1.15;
}

.labels-sheet.medium .product-label strong {
    font-size: 0.9rem;
}

.product-label span {
    font-size: 1rem;
    font-weight: 900;
}

.labels-sheet.medium .product-label span {
    font-size: 1.25rem;
}

.product-label small {
    overflow-wrap: anywhere;
    font-size: 0.62rem;
    font-weight: 800;
}

.label-barcode {
    width: 100%;
    height: 2rem;
    fill: #111111;
}

.labels-sheet.medium .label-barcode {
    height: 2.6rem;
}

@media print {
    body {
        background: #ffffff;
    }

    .no-print,
    .app-sidebar,
    .topbar,
    #blazor-error-ui {
        display: none !important;
    }

    .app-shell,
    .app-main,
    .content-area,
    .ticket-print-page,
    .labels-print-page {
        min-height: 0;
        display: block;
        padding: 0;
        background: #ffffff;
    }

    .print-ticket {
        width: var(--ticket-width);
        padding: 0;
        border: 0;
        border-radius: 0;
    }

    .labels-sheet,
    .labels-sheet.medium {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
    }

    .product-label {
        break-inside: avoid;
        page-break-inside: avoid;
        border: 1px dashed #111111;
        border-radius: 0;
    }
}

@media (max-width: 1080px) {
    .metrics-grid,
    .app-card-grid,
    .list-toolbar,
    .stock-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cash-cut-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-sections {
        grid-template-columns: 1fr;
    }

    .sale-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 1002;
        width: min(82vw, 280px);
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 180ms ease;
        box-shadow: 18px 0 40px rgba(16, 35, 49, 0.28);
    }

    .app-shell.menu-open .app-sidebar {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1001;
        display: block;
        border: 0;
        background: rgba(16, 35, 49, 0.45);
    }

    .mobile-menu-button {
        min-height: 2.45rem;
        display: inline-flex;
        align-items: center;
        padding: 0 0.8rem;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #ffffff;
        color: var(--ink);
        font-weight: 900;
    }

    .topbar,
    .page-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .topbar-title {
        width: 100%;
    }

    .metrics-grid,
    .app-card-grid,
    .list-toolbar,
    .stock-toolbar,
    .cash-cut-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .sale-line {
        flex-direction: column;
    }

    .sale-line-actions {
        justify-items: start;
    }

    .product-suggestion {
        flex-direction: column;
    }

    .product-suggestion span:last-child {
        justify-items: start;
    }
}
