:root {
    color-scheme: light;
    --bg: #f3f4f6;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --ok-bg: #ecfdf5;
    --ok-border: #10b981;
    --error-bg: #fef2f2;
    --error-border: #ef4444;
}

html, body {
    margin: 0;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

.layout-shell,
.home-shell {
    min-height: 100vh;
}

.home-shell {
    max-width: 640px;
    margin: 0 auto;
    padding: 1rem 1rem 2rem;
}

.home-header {
    margin-bottom: 1rem;
}

.phase-label {
    display: inline-block;
    margin: 0 0 0.5rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.home-header h1 {
    margin: 0;
    font-size: 1.75rem;
}

.subtitle {
    margin: 0.35rem 0 0;
    color: var(--muted);
}

.card {
    background: var(--card);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.card h2 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
}

.config-list {
    margin: 0;
}

.config-list div {
    display: grid;
    grid-template-columns: 9rem 1fr;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.config-list div:last-child {
    border-bottom: none;
}

.config-list dt {
    margin: 0;
    color: var(--muted);
    font-size: 0.875rem;
}

.config-list dd {
    margin: 0;
    font-size: 0.875rem;
}

.hint {
    color: var(--muted);
    font-size: 0.875rem;
}

.btn-primary {
    appearance: none;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: wait;
}

.status-ok,
.status-error {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
}

.status-ok {
    background: var(--ok-bg);
    border: 1px solid var(--ok-border);
}

.status-error {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
}

pre {
    margin: 0.5rem 0 0;
    padding: 0.5rem;
    overflow-x: auto;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.04);
    font-size: 0.75rem;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.85em;
}

#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;
}

.loading-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--muted);
}

.spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid #e5e7eb;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.login-page {
    min-height: 100vh;
    background: var(--bg);
}

.login-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.login-body {
    max-width: 28rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.login-logo {
    display: block;
    max-width: min(100%, 220px);
    max-height: 96px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.login-company-name {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text, #111827);
    line-height: 1.3;
}

.field-stack {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.field-stack input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    padding: 0.75rem;
    font-size: 0.95rem;
}

.field-stack input:first-child {
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}

.password-field {
    position: relative;
}

.password-field input {
    border-radius: 0 0 8px 8px;
    padding-right: 3rem;
}

.eye-button {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #4b5563;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
}

.eye-button .app-icon {
    width: 1.3rem;
    height: 1.3rem;
}

.login-button {
    width: 100%;
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.75rem;
}

.alert-error {
    padding: 0.75rem;
    border-radius: 8px;
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: #991b1b;
    font-size: 0.875rem;
}

.language-selector {
    position: relative;
}

.language-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.language-code {
    font-weight: 600;
}

.language-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
}

.language-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    z-index: 40;
    min-width: 12rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.language-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    background: white;
    padding: 0.65rem 0.85rem;
    text-align: left;
    cursor: pointer;
}

.language-item.active {
    background: #eff6ff;
    color: #1d4ed8;
}

.language-item .check {
    margin-left: auto;
}

.mobile-shell {
    display: flex;
    flex-direction: column;
    height: calc(var(--vh, 1vh) * 100);
    min-height: calc(var(--vh, 1vh) * 100);
    background: var(--bg);
}

.mobile-header {
    flex-shrink: 0;
    background: #d97444;
    color: white;
    padding: 0.5rem 0.75rem 0.75rem;
}

.mobile-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.brand-logo {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    background: #2563eb;
    display: grid;
    place-items: center;
    font-weight: 700;
    flex-shrink: 0;
}

.brand-logo-image {
    background: #fff;
    object-fit: contain;
    padding: 0.15rem;
    box-sizing: border-box;
}

.brand-text {
    min-width: 0;
}

.company-line,
.welcome-line {
    font-size: 0.8rem;
    line-height: 1.25;
}

.company-line {
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 0.35rem;
}

.icon-button {
    border: none;
    background: rgba(0, 0, 0, 0.12);
    color: #fff;
    border-radius: 8px;
    width: 2.4rem;
    height: 2.4rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.app-icon {
    width: 1.35rem;
    height: 1.35rem;
    display: block;
    flex-shrink: 0;
}

.app-icon-sm {
    width: 1.15rem;
    height: 1.15rem;
}

.app-icon-lg {
    width: 1.5rem;
    height: 1.5rem;
}

.btn-primary .app-icon,
.btn-danger .app-icon,
.btn-secondary .app-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.btn-with-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.search-bar {
    display: flex;
    align-items: center;
    margin-top: 0.65rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 0.65rem 0.25rem;
    font-size: 0.9rem;
}

.search-icon {
    border: none;
    background: transparent;
    padding: 0.55rem 0.7rem;
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-icon .app-icon {
    width: 1.35rem;
    height: 1.35rem;
}

.mobile-content {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
}

.mobile-nav {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.25rem;
    padding: 0.5rem;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    border: none;
    background: transparent;
    color: #4b5563;
    font-size: 0.7rem;
    padding: 0.4rem 0.35rem;
    cursor: pointer;
}

.nav-item .app-icon {
    width: 1.45rem;
    height: 1.45rem;
}

.nav-item.active {
    color: #d97444;
    font-weight: 600;
}

.phase-panel {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
}

.phase-panel h2 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.session-list {
    margin: 1rem 0 0;
}

.session-list div {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.875rem;
}

.session-list dt {
    margin: 0;
    color: var(--muted);
}

.session-list dd {
    margin: 0;
}

.catalog-page {
    min-height: 100%;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.category-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    text-align: left;
}

.category-image {
    aspect-ratio: 1;
    background: #f3f4f6;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-title {
    padding: 0.65rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.list-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.list-header h2 {
    flex: 1;
    margin: 0;
    font-size: 1rem;
}

.back-button,
.checkout-button,
.add-button,
.btn-secondary,
.btn-danger {
    border: none;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
}

.back-button,
.add-button {
    background: #fff;
    border: 1px solid #d1d5db;
}

.checkout-button {
    background: #d97444;
    color: white;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-row {
    display: flex;
    gap: 0.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.5rem;
}

.product-row-main {
    display: flex;
    gap: 0.65rem;
    flex: 1;
    cursor: pointer;
}

.product-thumb {
    width: 4rem;
    height: 4rem;
    background: #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    display: grid;
    place-items: center;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-code {
    font-size: 0.75rem;
    color: var(--muted);
}

.product-name {
    font-size: 0.875rem;
    font-weight: 600;
}

.product-price {
    color: #d97444;
    font-weight: 700;
}

.product-line-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.product-line-meta span {
    line-height: 1.3;
}

.order-line-net {
    margin-top: 0.35rem;
}

.order-line-net-value {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.order-line-net-value {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.mobile-content:has(.cart-page) {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 0;
}

.cart-page {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.cart-page .list-header {
    flex-shrink: 0;
}

.cart-page-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.cart-scroll-area {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 0.5rem;
}

.cart-total-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding: 0.85rem 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.cart-total-bar--pinned {
    flex-shrink: 0;
    margin: 0;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

.cart-total-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.cart-total-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #d97444;
}

.cart-item-list {
    padding-bottom: 0.25rem;
}

.add-button {
    width: 2.25rem;
    align-self: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.empty-state {
    padding: 2rem 1rem;
    text-align: center;
}

.loading-screen.compact {
    min-height: 12rem;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: grid;
    place-items: center;
    padding: 1rem;
    z-index: 100;
}

.modal-card {
    width: min(100%, 28rem);
    max-height: 90vh;
    overflow: auto;
    background: white;
    border-radius: 12px;
}

.modal-header,
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-footer {
    border-bottom: none;
    border-top: 1px solid #e5e7eb;
    justify-content: flex-end;
}

.modal-body {
    padding: 1rem;
}

.modal-product {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.qty-row.total {
    border-top: 1px solid #e5e7eb;
    padding-top: 0.65rem;
    font-weight: 600;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.qty-controls input {
    width: 4rem;
    text-align: center;
}

.qty-controls.readonly input {
    width: 100%;
    max-width: 8rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.45rem 0.5rem;
    color: #111827;
}

.checkout-form label {
    display: block;
    margin-top: 0.65rem;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.checkout-form textarea,
.checkout-form input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.5rem;
}

.checkout-summary {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 0.875rem;
}

.btn-secondary {
    background: #e5e7eb;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.icon-button.light {
    background: transparent;
    color: #374151;
    border: none;
}

.qty-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    min-width: 2rem;
    min-height: 2rem;
}

.qty-controls button .app-icon {
    width: 1.1rem;
    height: 1.1rem;
}

.back-button,
.add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #374151;
}

.back-button .app-icon {
    width: 1.35rem;
    height: 1.35rem;
}

.add-button .app-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.sales-order-icon {
    display: inline-flex;
    color: #d97444;
}

.sales-order-icon .app-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    padding: 0.75rem 0 1rem;
}

.modal-error {
    padding: 0 0 0.75rem;
    margin: 0;
}

.sticky-error {
    position: sticky;
    top: 0;
    z-index: 2;
}

.order-history-page .list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.order-period-filter {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.order-period-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.order-period-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.order-period-fields label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.order-period-fields input[type="date"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.5rem 0.55rem;
    font-size: 0.875rem;
    color: #111827;
    background: #fff;
}

.order-date-filter .order-period-fields {
    grid-template-columns: 1fr;
}

.order-history-list {
    display: grid;
    gap: 0.75rem;
    padding: 0 0 1rem;
}

.sales-order-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.sales-order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(90deg, #fff7ed, #ffedd5);
    border-bottom: 1px solid #fed7aa;
}

.sales-order-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex: 1;
}

.sales-order-card-title h3 {
    margin: 0;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.sales-order-doc-date {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: #6b7280;
    white-space: nowrap;
}

.status-badge {
    flex-shrink: 0;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-preparing { background: #fef3c7; color: #92400e; }
.status-picking { background: #dbeafe; color: #1e40af; }
.status-prepare-deliver { background: #e0e7ff; color: #3730a3; }
.status-delivering { background: #ede9fe; color: #5b21b6; }
.status-received { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.status-default { background: #f3f4f6; color: #374151; }

.sales-order-card-body {
    padding: 1rem;
}

.sales-order-meta {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 0.15rem;
}

.meta-value {
    font-size: 0.9rem;
    font-weight: 600;
}

.sales-order-amount {
    margin: 0.75rem 0 1rem;
    padding: 0.85rem;
    text-align: center;
    background: linear-gradient(90deg, #ecfdf5, #d1fae5);
    border: 2px solid #86efac;
    border-radius: 10px;
}

.sales-order-amount .amount-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
}

.sales-order-details-btn {
    flex: 1;
}

.sales-order-return-btn {
    flex: 1;
}

.sales-order-actions {
    display: flex;
    gap: 0.5rem;
}

.sales-order-actions .btn-with-icon {
    justify-content: center;
}

.product-list-page .list-header {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 0.35rem;
}

.clear-cart-button {
    font-size: 1.1rem;
}

.login-qr-actions {
    display: grid;
    gap: 0.5rem;
}

.qr-scanner-modal {
    max-width: 420px;
}

.qr-scanner-body {
    display: grid;
    gap: 0.75rem;
}

.qr-video {
    width: 100%;
    border-radius: 10px;
    background: #111827;
    min-height: 220px;
}

.qr-hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.875rem;
    text-align: center;
}

.qr-upload-button {
    position: relative;
    text-align: center;
    cursor: pointer;
}

.qr-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.qr-generator-page {
    max-width: 480px;
    margin: 0 auto;
    padding: 1rem;
}

.qr-generator-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
}

.qr-generator-card label {
    font-size: 0.875rem;
    font-weight: 600;
}

.qr-generator-card input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.55rem;
}

.qr-result {
    display: grid;
    gap: 0.75rem;
    justify-items: center;
    margin-top: 0.5rem;
}

.qr-image {
    width: 256px;
    height: 256px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.checkout-success-highlight {
    background: #ecfdf5;
    border: 2px solid #86efac;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 0.75rem;
}

.checkout-doc-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
}

.checkout-success-footer {
    display: grid;
    gap: 0.5rem;
}

.printable-order-hidden {
    display: none;
}

.printable-order-inner {
    padding: 40px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #000;
    background: white;
}

.print-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 3px solid #f97316;
    padding-bottom: 20px;
}

.print-header h1 {
    margin: 0;
    font-size: 28px;
}

.print-columns {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.print-column {
    flex: 1;
}

.print-column h2,
.print-section-title {
    font-size: 14px;
    color: #f97316;
    border-bottom: 2px solid #fed7aa;
    padding-bottom: 5px;
}

.print-meta-table,
.print-items-table,
.print-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 11px;
}

.print-meta-table th,
.print-meta-table td,
.print-items-table th,
.print-items-table td,
.print-summary-table th,
.print-summary-table td {
    border: 1px solid #d1d5db;
    padding: 8px;
}

.print-items-table thead {
    background: #f97316;
    color: white;
}

.print-subtext {
    font-size: 10px;
    color: #6b7280;
}

.print-footer {
    margin-top: 20px;
    font-size: 11px;
    color: #6b7280;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
