:root {
    --color-primary: #0057d9;
    --color-primary-hover: #0047b3;
    --color-primary-soft: #eaf2ff;
    --color-brand: #d72638;
    --color-brand-soft: #fff0f2;
    --color-success: #16a34a;
    --color-success-soft: #ecfdf3;
    --color-warning: #f59e0b;
    --color-warning-soft: #fffbeb;
    --color-error: #dc2626;
    --color-error-soft: #fef2f2;
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-surface-muted: #f1f5f9;
    --color-text: #111827;
    --color-muted: #64748b;
    --color-border: #e2e8f0;
    --color-border-strong: #cbd5e1;
    --color-navy: #0f1f3d;
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-5: 2.5rem;
    --space-6: 3rem;
    --radius-sm: 0.75rem;
    --radius-md: 1rem;
    --radius-lg: 1.25rem;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
    --focus-ring: 0 0 0 3px rgba(0, 87, 217, 0.2);
    --content-width: 1440px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--color-bg);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 10% 0%, rgba(0, 87, 217, 0.06), transparent 28rem),
        var(--color-bg);
    color: var(--color-text);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: var(--color-primary);
}

a:hover {
    color: var(--color-primary-hover);
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid rgba(0, 87, 217, 0.32);
    outline-offset: 2px;
}

.container,
.container-xl {
    width: min(100%, var(--content-width));
    min-width: 0;
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 2rem);
}

.page-main {
    margin: var(--space-4) auto var(--space-6);
}

.app-page {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.app-page > main {
    flex: 1;
}

.topbar,
.app-navbar {
    position: sticky;
    z-index: 1020;
    top: 0;
    min-height: 72px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(90deg, rgba(215, 38, 56, 0.9) 0 5px, transparent 5px),
        linear-gradient(115deg, #0b1934, #102b58);
    box-shadow: 0 8px 28px rgba(15, 31, 61, 0.16);
    color: #ffffff;
}

.topbar-inner {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
}

.topbar h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 700;
    letter-spacing: -0.015em;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.app-brand img {
    width: auto;
    height: 2.25rem;
    object-fit: contain;
}

.status-bar,
.topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.app-footer {
    margin-top: auto;
    border-top: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    color: var(--color-muted);
    font-size: 0.875rem;
    text-align: center;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.page-heading h1 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 750;
    letter-spacing: -0.035em;
}

.page-heading p {
    max-width: 52rem;
    margin: 0.4rem 0 0;
    color: var(--color-muted);
}

.eyebrow {
    margin-bottom: 0.35rem;
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    box-shadow: var(--shadow-md);
}

section.card,
.custom-card {
    margin-bottom: var(--space-3);
    padding: clamp(1.25rem, 3vw, 2rem);
}

.card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 750;
    letter-spacing: -0.015em;
}

.card-header,
.card-footer {
    border-color: var(--color-border);
    background: #ffffff;
}

.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.section-header p {
    margin: 0.35rem 0 0;
}

.btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: #334155;
    padding: 0.55rem 0.95rem;
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    transition:
        transform 150ms ease,
        border-color 150ms ease,
        background-color 150ms ease,
        color 150ms ease,
        box-shadow 150ms ease;
}

.btn:hover {
    border-color: #94a3b8;
    background: var(--color-surface-muted);
    color: var(--color-text);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled,
.btn.disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.btn.primary,
.btn-primary {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 87, 217, 0.2);
}

.btn.primary:hover,
.btn-primary:hover {
    border-color: var(--color-primary-hover);
    background: var(--color-primary-hover);
    color: #ffffff;
}

.btn-danger,
.btn.btn-delete {
    border-color: var(--color-error);
    background: var(--color-error);
    color: #ffffff;
}

.btn-success,
.btn.btn-print {
    border-color: var(--color-success);
    background: var(--color-success);
    color: #ffffff;
}

.btn.btn-use {
    border-color: #0284c7;
    background: #0284c7;
    color: #ffffff;
}

.btn-outline-primary {
    border-color: rgba(0, 87, 217, 0.45);
    color: var(--color-primary);
}

.btn-outline-primary:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-soft);
    color: var(--color-primary-hover);
}

.btn-link {
    min-width: 40px;
    min-height: 40px;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.topbar .btn,
.app-navbar .btn {
    min-height: 38px;
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    box-shadow: none;
}

.topbar .btn:hover,
.app-navbar .btn:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.topbar .btn.primary,
.app-navbar .btn-primary,
.app-navbar .btn-light {
    border-color: #ffffff;
    background: #ffffff;
    color: var(--color-navy);
}

label,
.form-label {
    color: #334155;
    font-size: 0.875rem;
    font-weight: 650;
}

input[type="text"],
input[type="password"],
input[type="file"],
input[type="date"],
input[type="datetime-local"],
input[type="search"],
select,
textarea,
.form-control,
.form-select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    background-color: #ffffff;
    color: var(--color-text);
    padding: 0.625rem 0.8rem;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    transition:
        border-color 150ms ease,
        box-shadow 150ms ease,
        background-color 150ms ease;
}

input[type="file"] {
    padding: 0.45rem;
}

input::placeholder,
textarea::placeholder {
    color: #94a3b8;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus,
.form-select:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: var(--focus-ring);
}

.input-group-text {
    border-color: var(--color-border-strong);
    background: var(--color-surface-muted);
    color: #475569;
    font-weight: 650;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: var(--space-2);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
}

.hint,
.form-text,
.text-muted {
    color: var(--color-muted) !important;
}

.hint {
    margin: 0.25rem 0 var(--space-2);
    font-size: 0.9rem;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-top: var(--space-2);
}

.toolbar-compact {
    margin-top: 0;
}

.feedback,
.alert {
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.9rem;
    font-size: 0.9rem;
}

.feedback:empty {
    display: none;
}

.feedback.ok,
.alert-success {
    border-color: #bbf7d0;
    background: var(--color-success-soft);
    color: #166534;
}

.feedback.warn,
.alert-warning {
    border-color: #fde68a;
    background: var(--color-warning-soft);
    color: #92400e;
}

.feedback.error,
.alert-danger {
    border-color: #fecaca;
    background: var(--color-error-soft);
    color: #991b1b;
}

.feedback.info,
.alert-info {
    border-color: #bfdbfe;
    background: var(--color-primary-soft);
    color: #1e40af;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.stat-card {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-1);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1rem 1.1rem;
}

.stat-label {
    color: var(--color-muted);
    font-size: 0.8rem;
    font-weight: 650;
    letter-spacing: 0.02em;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.stat-total {
    border-color: #bfdbfe;
    background: var(--color-primary-soft);
    color: #1d4ed8;
}

.stat-scanned {
    border-color: #bbf7d0;
    background: var(--color-success-soft);
    color: #166534;
}

.stat-pending {
    border-color: #fde68a;
    background: var(--color-warning-soft);
    color: #92400e;
}

.table-wrapper,
.table-responsive {
    width: 100%;
    overflow: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #ffffff;
}

table,
.table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    color: var(--color-text);
    font-size: 0.9rem;
}

th,
td,
.table > :not(caption) > * > * {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
    background: transparent;
    padding: 0.8rem 0.9rem;
    text-align: left;
    vertical-align: middle;
}

th,
.table thead th {
    position: sticky;
    z-index: 2;
    top: 0;
    background: #f8fafc;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr {
    transition: background-color 120ms ease;
}

tbody tr:nth-child(even) {
    background: #fbfdff;
}

tbody tr:hover {
    background: #f0f6ff;
}

.sortable {
    cursor: pointer;
    user-select: none;
}

.badge,
.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 750;
    line-height: 1.2;
}

.badge.online,
.status-pill.picked,
.status-pill.scanned {
    border-color: #bbf7d0;
    background: var(--color-success-soft);
    color: #166534;
}

.badge.offline,
.status-pill.problem {
    border-color: #fecaca;
    background: var(--color-error-soft);
    color: #991b1b;
}

.status-pill.pending {
    border-color: #fde68a;
    background: var(--color-warning-soft);
    color: #92400e;
}

.pending-list {
    max-height: 240px;
    overflow-y: auto;
    margin-top: var(--space-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    padding: 1rem;
}

.pending-list h3 {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
}

.pending-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pending-list li {
    border-bottom: 1px solid var(--color-border);
    padding: 0.55rem 0;
}

.pending-list li:last-child {
    border-bottom: 0;
}

#barcode-input,
#bagging-input {
    min-height: 54px;
    border-width: 2px;
    border-color: var(--color-primary);
    background: #f8fbff;
    font-size: 1.05rem;
    font-weight: 650;
}

.scanner-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
    align-items: start;
    gap: var(--space-3);
}

.scanner-layout > .card {
    margin-bottom: 0;
}

.scan-modal {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(9, 20, 42, 0.76);
    padding: 1rem;
    backdrop-filter: blur(8px);
}

.scan-modal-content {
    width: min(100%, 620px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    background: #0f1f3d;
    box-shadow: var(--shadow-lg);
    color: #ffffff;
    padding: clamp(1.5rem, 5vw, 2.5rem);
}

.scan-modal-content h2 {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
}

.scan-modal-content .hint {
    color: #cbd5e1 !important;
}

.scan-modal-counter {
    margin: 1.5rem 0 0.5rem;
    color: #bfdbfe;
    font-size: 1.05rem;
}

.scan-modal-counter span {
    font-size: 2rem;
    font-weight: 800;
}

#dropzone {
    min-height: 72px;
    border: 2px dashed #93b9ef !important;
    border-radius: var(--radius-md) !important;
    background: #f8fbff !important;
    transition: border-color 150ms ease, background-color 150ms ease;
}

#dropzone:hover,
#dropzone:focus-within {
    border-color: var(--color-primary) !important;
    background: var(--color-primary-soft) !important;
}

.modal-content {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--color-border) !important;
    background: #f8fbff !important;
}

.usage-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.usage-item {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    padding: 0.9rem;
}

.usage-label,
.usage-item small {
    color: var(--color-muted);
    font-size: 0.75rem;
}

.usage-item strong {
    color: var(--color-navy);
    font-size: 1.25rem;
}

.usage-cost {
    border-color: #bfdbfe;
    background: var(--color-primary-soft);
}

.auth-page {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 10%, rgba(0, 87, 217, 0.2), transparent 30rem),
        linear-gradient(145deg, #edf5ff, #f8fafc 55%, #fff1f2);
}

.auth-shell {
    display: grid;
    width: calc(100vw - 2rem);
    max-width: 980px;
    min-width: 0;
    min-height: 560px;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-lg);
}

.auth-shell > *,
.auth-visual > *,
.auth-panel > * {
    min-width: 0;
}

.auth-visual h1,
.auth-visual p,
.auth-panel h2,
.auth-panel p {
    overflow-wrap: anywhere;
}

.auth-visual {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(150deg, rgba(215, 38, 56, 0.15), transparent 38%),
        linear-gradient(150deg, #0f1f3d, #0057d9);
    color: #ffffff;
    padding: clamp(2rem, 5vw, 3.5rem);
}

.auth-visual p {
    max-width: 28rem;
    color: #dbeafe;
}

.auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 3.5rem);
}

.auth-logo {
    width: auto;
    height: 3rem;
    object-fit: contain;
}

.utility-nav {
    margin-bottom: var(--space-4);
}

.utility-page .page-shell {
    padding-block: 0 var(--space-6);
}

.utility-page .main-card {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

.overlay {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(9, 20, 42, 0.78);
    padding: 1rem;
    backdrop-filter: blur(8px);
}

.spinner-card {
    min-width: min(100%, 300px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    background: #0f1f3d;
    box-shadow: var(--shadow-lg);
    color: #ffffff;
    padding: 2rem;
    text-align: center;
}

.loader-dots {
    display: inline-flex;
    gap: 0.45rem;
    margin-top: 1rem;
}

.loader-dots span {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    animation: loader-pulse 1.2s infinite ease-in-out;
    background: #60a5fa;
}

.loader-dots span:nth-child(2) {
    animation-delay: 150ms;
}

.loader-dots span:nth-child(3) {
    animation-delay: 300ms;
}

@keyframes loader-pulse {
    0%,
    100% {
        opacity: 0.45;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-5px);
    }
}

.offline-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 1rem;
}

.offline-card {
    width: calc(100vw - 2rem);
    max-width: 620px;
    min-width: 0;
    padding: clamp(2rem, 7vw, 4rem);
    text-align: center;
}

.offline-icon {
    display: inline-grid;
    width: 72px;
    height: 72px;
    margin-bottom: 1rem;
    place-items: center;
    border-radius: 50%;
    background: var(--color-warning-soft);
    color: #b45309;
    font-size: 2rem;
}

.docs-page {
    background: var(--color-bg);
}

.docs-shell {
    width: calc(100vw - 2rem);
    max-width: 960px;
    margin: 2rem auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-md);
    padding: clamp(1.5rem, 5vw, 3rem);
}

.docs-shell h1 {
    margin-top: 0;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    letter-spacing: -0.04em;
}

.docs-shell h2 {
    margin: 2.5rem 0 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-navy);
    font-size: 1.25rem;
}

.docs-shell li + li {
    margin-top: 0.5rem;
}

.screenshot-placeholder {
    margin: 1rem 0;
    border: 1px dashed #93b9ef;
    border-radius: var(--radius-md);
    background: #f8fbff;
    color: var(--color-muted);
    padding: 1.25rem;
    text-align: center;
}

.print-header {
    width: min(100%, var(--content-width));
    margin: 0 auto 1.5rem;
    border-bottom: 2px solid var(--color-border);
    padding: 1rem clamp(1rem, 3vw, 2rem);
}

.print-header-inner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.print-logo {
    width: auto;
    max-width: 140px;
    height: 42px;
}

.print-header-text {
    display: flex;
    flex-direction: column;
}

.print-company-name {
    font-weight: 750;
}

.print-company-motto {
    color: var(--color-muted);
    font-size: 0.8rem;
    font-style: italic;
}

.print-toolbar {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--color-border);
    background: rgba(248, 250, 252, 0.94);
    padding: 0.75rem clamp(1rem, 3vw, 2rem);
    backdrop-filter: blur(8px);
}

.print-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 2rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface-muted);
    padding: 1rem;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .scanner-layout {
        grid-template-columns: 1fr;
    }

    .topbar-inner {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 0.85rem;
    }

    .status-bar,
    .topbar-actions {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.15rem;
    }

    .app-navbar .container-xl {
        align-items: flex-start !important;
        flex-direction: column;
        padding-block: 0.8rem;
    }

    .app-navbar .navbar-actions {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.2rem;
    }
}

@media (max-width: 768px) {
    .page-main {
        margin-block: var(--space-3);
    }

    .page-heading,
    .section-header {
        align-items: stretch;
        flex-direction: column;
    }

    .form-grid,
    .print-meta {
        grid-template-columns: 1fr;
    }

    .stats {
        gap: 0.65rem;
    }

    .stat-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .toolbar .btn {
        flex: 1 1 auto;
    }

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

    .auth-visual {
        min-height: 220px;
    }

    th,
    td,
    .table > :not(caption) > * > * {
        padding: 0.7rem;
    }
}

@media (max-width: 480px) {
    .container,
    .container-xl {
        padding-inline: 0.85rem;
    }

    section.card,
    .custom-card {
        padding: 1rem;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .toolbar .btn {
        width: 100%;
    }

    .status-bar .btn {
        flex: 0 0 auto;
        width: auto;
    }

    .auth-shell {
        width: calc(100vw - 1rem);
    }

    .auth-panel,
    .auth-visual {
        padding: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@page {
    size: A4;
    margin: 10mm;
}

@media print {
    body {
        min-height: auto;
        background: #ffffff !important;
        color: #000000;
        font-size: 10pt;
    }

    .no-print,
    .topbar,
    .app-navbar,
    .app-footer,
    .status-bar,
    .toolbar,
    #bagging-search {
        display: none !important;
    }

    .container,
    .container-xl {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .card,
    section.card {
        border: 0;
        box-shadow: none;
        padding: 0;
    }

    .page-main {
        margin: 0;
    }

    .table-wrapper,
    .table-responsive {
        overflow: visible;
        border-radius: 0;
    }

    table,
    .table {
        font-size: 8pt;
    }

    th,
    td,
    .table > :not(caption) > * > * {
        border: 1px solid #9ca3af;
        padding: 3px 5px;
    }

    th,
    .table thead th {
        position: static;
        background: #f3f4f6 !important;
        color: #000000;
    }

    tr {
        break-inside: avoid;
    }

    .print-header {
        padding: 0 0 8px;
        margin-bottom: 10px;
    }

    .print-meta {
        border: 0;
        padding: 0;
    }
}
