:root {
    --bg: #eef2f5;
    --panel: #ffffff;
    --panel-soft: #f7f9fb;
    --line: #d9e0e8;
    --text: #264057;
    --muted: #6c7b88;
    --accent: #19b4be;
    --accent-dark: #14959e;
    --green: #1ebc54;
    --orange: #ef8354;
    --gold: #f4b942;
    --shadow: 0 18px 40px rgba(31, 55, 86, 0.12);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --sidebar-width: 108px;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; background: var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; }
.hidden { display: none !important; }
.eyebrow { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
    background: radial-gradient(circle at top left, rgba(25,180,190,.22), transparent 32%), radial-gradient(circle at bottom right, rgba(239,131,84,.18), transparent 24%), linear-gradient(135deg, #f7fafc, #e9eef4);
}
.login-card {
    width: min(960px, 100%);
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 28px;
    padding: 36px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 32px;
    box-shadow: var(--shadow);
}
.login-brand { display: flex; gap: 22px; align-items: flex-start; }
.brand-mark {
    width: 82px; height: 82px; display: grid; place-items: center; border-radius: 24px;
    background: linear-gradient(135deg, var(--accent), #67d4d8); color: white; font-weight: 700; font-size: 28px;
    box-shadow: 0 16px 32px rgba(25,180,190,.25);
}
.brand-mark.small { width: 60px; height: 60px; font-size: 22px; border-radius: 28px; }
.login-brand h1 { margin: 0 0 10px; font-size: 42px; }
.login-brand p:last-child { margin: 0; color: var(--muted); line-height: 1.6; }
.login-form {
    padding: 26px; background: var(--panel-soft); border-radius: 24px; border: 1px solid var(--line); display: grid; gap: 16px;
}
.login-form label, .customer-grid label { display: grid; gap: 8px; }
.login-form input, .customer-grid input, .customer-grid select, .customer-grid textarea, .toolbar .search-input, .meta-card select, #orderFilter, #salesReportFilter, #deliveryReportFilter, .admin-form input, .admin-form select, .invoice-field input, .invoice-field select {
    width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: white; color: var(--text);
}
.primary-btn, .soft-btn, .soft-inline-btn, .icon-btn, .table-chip, .logout-btn { border: 0; cursor: pointer; }
.primary-btn { padding: 15px 18px; border-radius: 14px; color: white; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); font-weight: 600; }
.soft-inline-btn {
    padding: 11px 16px;
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    border: 1px solid var(--line);
    font-weight: 600;
    box-shadow: 0 8px 16px rgba(31,55,86,.05);
}
.soft-inline-btn.whatsapp {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border-color: transparent;
}
.soft-inline-btn.website {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #fff;
    border-color: transparent;
}
.login-hint, .error-text { margin: 0; font-size: 13px; }
.error-text { color: #c23616; min-height: 18px; }

.app-shell { display: grid; grid-template-columns: var(--sidebar-width) 1fr; min-height: 100vh; position: relative; }
.app-notice-bar { position: fixed; top: 18px; left: calc(var(--sidebar-width) + 26px); right: 26px; z-index: 9999; padding: 14px 18px; border-radius: 28px; color: #fff; font-weight: 700; box-shadow: 0 18px 40px rgba(31,55,86,.28); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); pointer-events: none; }
.notice-saved { background: linear-gradient(135deg, #1ebc54, #189a45); }
.notice-edited { background: linear-gradient(135deg, #f4b942, #d89517); }
.notice-deleted { background: linear-gradient(135deg, #df4d4d, #bb3434); }
.notice-warning { background: linear-gradient(135deg, #c96a12, #9f4e08); }
.notice-error { background: linear-gradient(135deg, #c23616, #96281b); }
.sidebar {
    background: white; border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.sidebar-nav { display: grid; gap: 12px; width: 100%; }
.nav-link, .logout-btn {
    display: grid; justify-items: center; gap: 8px; padding: 14px 8px; border-radius: 28px; background: transparent; color: var(--muted);
}
.nav-link.active { background: linear-gradient(180deg, var(--accent), #1699a1); color: white; box-shadow: 0 14px 28px rgba(25,180,190,.24); }
.nav-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.18); font-size: 12px; font-weight: 700; }
.workspace { padding: 18px 22px 22px; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.topbar h2 { margin: 0; font-size: 34px; }
.topbar-actions { display: flex; gap: 12px; align-items: center; }
.demo-support-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: -6px 0 18px;
    padding: 12px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(127, 29, 29, 0.92));
    color: #fff;
    border: 1px solid rgba(248, 113, 113, 0.35);
    box-shadow: 0 14px 28px rgba(31, 41, 55, 0.16);
}
.demo-support-copy {
    display: grid;
    gap: 4px;
}
.demo-support-copy strong {
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.demo-support-copy span {
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
}
.demo-support-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.demo-support-actions .soft-inline-btn {
    min-width: 120px;
}
.status-chip, .user-chip, .table-chip {
    padding: 12px 16px; border-radius: 12px; background: white; border: 1px solid var(--line); box-shadow: 0 8px 16px rgba(31,55,86,.05);
}
.user-chip { min-width: 170px; background: linear-gradient(135deg, #12b2bb, #2497d5); color: white; font-weight: 600; text-align: center; }
.table-chip { min-width: 120px; background: var(--green); color: white; font-weight: 700; }
.status-dot { width: 10px; height: 10px; display: inline-block; border-radius: 28px; margin-right: 8px; background: var(--green); }
.view-section { display: none; }
.view-section.active { display: block; }
.content-grid { display: grid; grid-template-columns: minmax(0,1fr) 460px; gap: 18px; align-items: start; }
.catalog-panel, .reports-grid { display: grid; gap: 18px; }
.reports-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.panel { background: var(--panel); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow); }
.section-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; }
.section-header.tight { align-items: flex-start; }
.section-header h3 { margin: 0; font-size: 20px; }
.result-count { color: var(--muted); font-size: 14px; }
.category-strip { display: flex; gap: 14px; overflow: auto; padding-bottom: 4px; }
.category-pill {
    min-width: 92px; padding: 16px 12px; border-radius: 28px; border: 1px solid var(--line); background: white; display: grid; place-items: center; gap: 6px; color: var(--text); cursor: pointer;
}
.category-pill.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px rgba(25,180,190,.3); }
.category-pill .icon-circle { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; color: white; font-size: 13px; font-weight: 700; }
.order-meta { display: grid; grid-template-columns: 1.2fr .9fr .9fr .9fr; gap: 14px; margin-bottom: 16px; }
.meta-card { padding: 14px; border-radius: 18px; background: var(--panel-soft); border: 1px solid var(--line); }
.meta-card label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.segmented { display: flex; background: white; border: 1px solid var(--line); padding: 4px; border-radius: 14px; }
.segment { flex: 1; border: 0; background: transparent; border-radius: 10px; padding: 10px 8px; cursor: pointer; color: var(--muted); }
.segment.active { background: var(--accent); color: white; }
.customer-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.customer-grid .full-width { grid-column: 1 / -1; }
.customer-mode-note { padding: 12px 14px; border-radius: 14px; background: #eef6ff; color: #1e3a5f; font-size: 12px; line-height: 1.6; border: 1px solid #d6e7fb; }
.customer-admin-grid { display: grid; grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 18px; }
.compact-customer-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.customer-ledger-panel { min-height: 100%; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 14px; }
.product-card { border: 1px solid var(--line); border-radius: 16px; background: white; overflow: hidden; display: grid; transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(31,55,86,.08); }
.product-hero { height: 118px; display: flex; align-items: flex-end; justify-content: space-between; padding: 16px; color: white; background: linear-gradient(135deg, #f4b942, #ef8354); }
.product-hero.special { background: linear-gradient(135deg, #5ed0d6, #19b4be); }
.product-hero.burger { background: linear-gradient(135deg, #68b684, #3fa34d); }
.product-hero.shawarma { background: linear-gradient(135deg, #7b8794, #4f5d75); }
.product-hero.deals { background: linear-gradient(135deg, #1ebc54, #38d39f); }
.product-emoji { font-size: 34px; }
.stock-badge { padding: 6px 10px; border-radius: 28px; background: rgba(255,255,255,.18); font-size: 12px; font-weight: 700; }
.product-body { padding: 14px; display: grid; gap: 10px; }
.product-title { margin: 0; font-size: 18px; }
.price-line { color: var(--accent-dark); font-weight: 700; }
.size-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.size-chip { padding: 7px 10px; border-radius: 10px; background: var(--panel-soft); border: 1px solid var(--line); cursor: pointer; }
.size-chip:hover { border-color: var(--accent); }
.cart-card { position: sticky; top: 18px; }
.cart-items { display: grid; gap: 12px; max-height: calc(100vh - 360px); overflow: auto; margin-bottom: 14px; }
.cart-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px; background: var(--panel-soft); border-radius: 28px; }
.cart-thumb { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 28px; color: white; font-size: 24px; }
.cart-meta h4, .receipt h3 { margin: 0; }
.cart-meta p, .receipt p { margin: 4px 0 0; color: var(--muted); }
.cart-qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty-btn { width: 28px; height: 28px; border: 0; border-radius: 8px; background: white; cursor: pointer; }
.remove-inline { margin-top: 8px; border: 0; background: transparent; color: #c23616; cursor: pointer; }
.totals { display: grid; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.totals div { display: flex; justify-content: space-between; align-items: center; }
.cart-actions, .summary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.summary-grid { grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); margin-bottom: 16px; }
.summary-card, .soft-btn { border-radius: 28px; padding: 16px; background: var(--panel-soft); border: 1px solid var(--line); }
.summary-card strong { display: block; margin-top: 8px; font-size: 22px; }
.pay-btn { margin-top: 14px; width: 100%; border: 0; border-radius: 28px; padding: 18px 20px; background: linear-gradient(135deg, var(--accent), #17a7d8); color: white; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.pay-btn small, .pay-btn strong { display: block; }
.table-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 14px; }
.table-card { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: var(--panel-soft); }
.table-card button { width: 100%; padding: 12px 14px; border-radius: 12px; border: 0; background: var(--green); color: white; cursor: pointer; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.table-action { padding: 8px 12px; border-radius: 10px; border: 0; cursor: pointer; margin-right: 6px; margin-bottom: 6px; }
.table-action.edit { background: #e8f4ff; color: #0b5cab; }
.table-action.delete { background: #fde9e4; color: #c23616; }
.admin-form { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.admin-form button { padding: 14px 18px; border-radius: 12px; border: 0; background: var(--accent); color: white; cursor: pointer; }
.empty-state { padding: 28px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 18px; }
.receipt-shell { position: fixed; inset: 0; pointer-events: none; z-index: -1; }
.receipt {
    position: absolute;
    left: -10000px;
    top: 0;
    width: 72mm;
    margin: 0 auto;
    padding: 0 1.1mm 1.6mm;
    background: #ffffff;
    color: #000000;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 10.3px;
    line-height: 1.12;
    font-weight: 500;
}
.receipt > :first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.receipt-logo {
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.receipt h3 {
    margin: 0 0 .18mm;
    text-align: center;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 12.8px;
    font-weight: 900;
    letter-spacing: 0;
    color: #000000;
    line-height: 1.02;
}
.receipt-muted {
    margin: 0 0 .12mm;
    text-align: center;
    color: #000000;
    font-size: 9.6px;
    font-weight: 700;
    line-height: 1.04;
}
.receipt-divider {
    border-top: 1px solid #7d8793;
    margin: .7mm 0 .5mm;
}
.receipt-row {
    display: grid;
    grid-template-columns: minmax(18mm, 22mm) minmax(0, 1fr);
    gap: .7mm;
    align-items: flex-start;
    margin: .22mm 0;
    color: #000000;
}
.receipt-row span:first-child {
    font-weight: 600;
}
.receipt-row span:last-child {
    text-align: right;
    overflow-wrap: anywhere;
    font-weight: 500;
    min-width: 0;
}
.receipt-row.wide {
    grid-template-columns: 1fr;
    gap: .4mm;
}
.receipt-row.wide span:last-child {
    max-width: none;
    text-align: left;
}
.receipt-items-head,
.receipt-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1mm;
    align-items: start;
}
.receipt-items-head {
    display: none;
    margin-bottom: .3mm;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000000;
}
.receipt-item {
    margin: .35mm 0;
}
.receipt-item-name {
    font-weight: 500;
    color: #000000;
    line-height: 1.08;
}
.receipt-item-meta {
    font-size: 8.3px;
    color: #4d5866;
    font-weight: 500;
    margin-top: .08mm;
    line-height: 1.05;
}
.receipt-item-total,
.receipt-row.total span:last-child {
    white-space: nowrap;
    text-align: right;
    font-weight: 500;
}
.receipt-row.total {
    font-size: 11.1px;
    font-weight: 700;
    margin-top: .55mm;
}
.receipt-row.total span:last-child {
    font-size: 11.1px;
}
.receipt-note {
    margin: .8mm 0 0;
    text-align: left;
    font-size: 9.6px;
    font-weight: 500;
    color: #000000;
}
.receipt-logo img {
    max-width: 12mm;
    max-height: 6.2mm;
    display: block;
    margin: 0 auto;
    padding-top: 0;
    object-fit: contain;
    filter: grayscale(1) contrast(1.05);
}
.category-dashboard {
    display: grid;
    grid-template-columns: repeat(var(--category-columns, 4), minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: hidden;
    padding-bottom: 0;
    align-items: stretch;
}

.hero-panel {
    background: linear-gradient(180deg, rgba(25,180,190,.08), rgba(255,255,255,.96));
}

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 164px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,.05);
    color: white;
    cursor: pointer;
    box-shadow: 0 20px 34px rgba(31,55,86,.12);
}

.category-card.active {
    outline: 3px solid rgba(255,255,255,.9);
    box-shadow: 0 24px 40px rgba(31,55,86,.18);
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.38));
}

.category-card > * {
    position: relative;
    z-index: 1;
}

.category-card .big-icon {
    font-size: 38px;
    margin-bottom: 16px;
}

.category-card h4 {
    margin: 0 0 8px;
    font-size: 24px;
}

.category-card p {
    margin: 0;
    color: rgba(255,255,255,.86);
}

.admin-layout {
    display: grid;
    gap: 18px;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.admin-action-card {
    position: relative;
    overflow: hidden;
    padding: 16px;
    min-height: 148px;
    border-radius: 28px;
    color: white;
    border: 0;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 20px 40px rgba(31,55,86,.12);
}

.admin-action-card .big-icon {
    width: 38px;
    height: 38px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.18);
    color: #fff;
    margin-bottom: 12px;
}

.admin-action-card .big-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.admin-action-card h4 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.25;
}

.admin-action-card p {
    margin: 0 0 12px;
    color: rgba(255,255,255,.88);
    line-height: 1.4;
    font-size: 13px;
}

.admin-action-card strong {
    font-size: 24px;
}
.admin-panel {
    display: none;
}

.admin-panel.active {
    display: block;
}

.manage-layout {
    display: grid;
    grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.mini-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.mini-filter-btn {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: white;
    cursor: pointer;
    font-weight: 600;
}

.mini-filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.management-toolbar {
    margin-bottom: 16px;
}

.form-section-title {
    margin: 0 0 12px;
    font-size: 16px;
}

.product-form,
.delivery-form,
.settings-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-form .wide,
.delivery-form .wide,
.settings-form .wide,
.admin-form .wide {
    grid-column: 1 / -1;
}

.form-panel {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
}

.form-panel h4 {
    margin: 0 0 12px;
}

.table-compact th,
.table-compact td {
    padding: 10px 8px;
    font-size: 13px;
}

.product-detail-list {
    display: grid;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}

@media (max-width: 1280px) {
    .manage-layout {
        grid-template-columns: 1fr;
    }
}



.invoice-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}
.invoice-chip {
    padding: 12px;
    border-radius: 14px;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    display: grid;
    gap: 6px;
}
.invoice-chip span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
}
.invoice-chip strong {
    font-size: 14px;
    color: var(--text);
    word-break: break-word;
}
.invoice-chip.wide {
    grid-column: 1 / -1;
}
.invoice-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}
.invoice-field {
    display: grid;
    gap: 8px;
}
.invoice-field span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
}
.checkbox-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
}
.checkbox-field input {
    width: 18px;
    height: 18px;
}
.pay-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
}
@media (max-width: 1100px) {
    .invoice-summary,
    .invoice-controls {
        grid-template-columns: 1fr;
    }
}
/* POS terminal redesign */
.app-shell {
    background: #f3f5f7;
    grid-template-columns: 96px 1fr;
}

.sidebar {
    padding: 14px 10px 16px;
    gap: 14px;
    box-shadow: inset -1px 0 0 #e3e8ed;
}

.sidebar-brand {
    width: 100%;
    display: grid;
    place-items: center;
}

.brand-mark.small {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    font-size: 18px;
    box-shadow: 0 10px 22px rgba(25,180,190,.2);
}

.sidebar-nav {
    gap: 10px;
}

.nav-link,
.logout-btn {
    padding: 10px 6px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.nav-link .nav-icon {
    width: 38px;
    height: 38px;
    border-radius: 18px;
    background: #f2f5f7;
    color: #5d6871;
    font-size: 11px;
}

.nav-link.active {
    background: linear-gradient(180deg, #19b4be, #149aa4);
}

.nav-link.active .nav-icon {
    background: rgba(255,255,255,.2);
    color: #ffffff;
}

.logout-btn {
    margin-top: auto;
}

.workspace {
    padding: 10px 16px 16px;
}

.topbar {
    margin-bottom: 12px;
}

.topbar h2 {
    font-size: 28px;
}

.topbar-actions {
    gap: 10px;
}

.status-chip,
.user-chip,
.table-chip {
    min-height: 38px;
    border-radius: 10px;
    box-shadow: none;
}

.status-chip {
    min-width: 46px;
    justify-content: center;
}

.status-chip span:last-child {
    display: none;
}

.status-dot {
    width: 14px;
    height: 14px;
    margin: 0;
    box-shadow: 0 0 0 5px #eaf8ee;
}

.user-chip {
    min-width: 176px;
    padding-inline: 18px;
}

.table-chip {
    min-width: 138px;
}

.content-grid {
    grid-template-columns: minmax(0, 1fr) 438px;
    gap: 14px;
}

.panel {
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 10px 24px rgba(31,55,86,.08);
}

.category-panel,
.products-panel {
    background: #ffffff;
}

.hero-panel {
    background: #ffffff;
}

.section-header {
    margin-bottom: 12px;
}

.section-header h3 {
    font-size: 18px;
}

.category-dashboard {
    grid-template-columns: repeat(var(--category-columns, 4), minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: hidden;
    padding-bottom: 0;
}

.category-card {
    min-height: 0;
    padding: 10px 6px;
    border-radius: 14px;
    border: 1px solid #dfe5ea;
    background: #ffffff;
    color: #324654;
    box-shadow: none;
    display: grid;
    justify-items: center;
    gap: 8px;
}

.category-card::after {
    display: none;
}

.category-card.active {
    outline: 0;
    border-color: #19b4be;
    box-shadow: inset 0 0 0 1px rgba(25,180,190,.25);
}

.category-card-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
}

.category-card-label {
    max-width: 100%;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    line-height: 1.1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-dashboard.is-dense .category-card {
    padding: 8px 4px;
    border-radius: 12px;
}

.category-dashboard.is-dense .category-card-icon {
    width: 26px;
    height: 26px;
    font-size: 9px;
    border-radius: 9px;
}

.category-dashboard.is-dense .category-card-label {
    font-size: 11px;
}

.category-dashboard.is-super-dense .category-card {
    padding: 7px 3px;
}

.category-dashboard.is-super-dense .category-card-icon {
    width: 24px;
    height: 24px;
    font-size: 8px;
}

.category-dashboard.is-super-dense .category-card-label {
    font-size: 10px;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #335069;
    margin: 6px 0 12px;
}

.checkbox-inline input {
    width: 16px;
    height: 16px;
}

.products-header {
    margin-bottom: 10px;
}

.catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px) auto auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.barcode-search-shell {
    min-width: 0;
}

.search-shell {
    position: relative;
    display: block;
}

.search-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dbe2e8;
    border-radius: 12px;
    background: #ffffff;
    color: #33414d;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    display: grid;
    gap: 6px;
    padding: 8px;
    border: 1px solid #dbe2e8;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
    z-index: 20;
    max-height: 260px;
    overflow: auto;
}

.search-suggestion-item {
    border: 0;
    border-radius: 10px;
    background: #f8fbfe;
    color: #13253e;
    padding: 10px 12px;
    cursor: pointer;
    text-align: left;
    display: grid;
    gap: 3px;
}

.search-suggestion-item strong {
    font-size: 13px;
    font-weight: 800;
}

.search-suggestion-item span {
    font-size: 11px;
    color: #64748b;
}

.search-suggestion-item:hover {
    background: #eef7fb;
}

.tool-btn {
    height: 42px;
    border: 1px solid #dbe2e8;
    border-radius: 12px;
    background: #ffffff;
    color: #68757f;
    cursor: pointer;
    font-weight: 700;
}

.result-count {
    justify-self: end;
    font-size: 14px;
}

.orders-search-bar {
    margin: 0 0 12px;
}

.compact-order-meta {
    grid-template-columns: 1.2fr .7fr .8fr;
    gap: 10px;
    margin-bottom: 10px;
}

.meta-card {
    padding: 12px;
    border-radius: 14px;
    background: #fafbfc;
    border: 1px solid #e1e7ec;
}

.meta-card label {
    margin-bottom: 8px;
    font-size: 10px;
}

.segmented {
    padding: 3px;
    border-radius: 12px;
}

.segment {
    padding: 8px 6px;
    font-size: 12px;
}

.compact-customer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.compact-customer-grid label span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
}

.compact-customer-grid textarea {
    min-height: 58px;
}

.product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.compact-card {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    border-radius: 12px;
    border: 1px solid #dfe5ea;
    background: #ffffff;
    overflow: hidden;
    box-shadow: none;
    cursor: pointer;
}

.compact-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(31,55,86,.08);
}

.product-thumb {
    width: 100%;
    height: 118px;
    min-height: 118px;
    background: linear-gradient(135deg, #f8fafb, #eef3f7);
    border-bottom: 1px solid #e6ebef;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f0a44b, #f5c16c);
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .06em;
}

.compact-body {
    padding: 8px 8px 9px;
    gap: 6px;
    min-height: 0;
    align-content: start;
}

.product-title {
    font-size: 12px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.compact-price {
    font-size: 12px;
    color: #14959e;
}

.stock-line {
    font-size: 11px;
    font-weight: 600;
}

.stock-line.in-stock {
    color: #16a34a;
}

.stock-line.out-stock {
    color: #c23616;
}

.size-chip {
    width: 100%;
    padding: 5px 6px;
    border-radius: 8px;
    font-size: 10px;
    text-align: center;
    background: #ffffff;
}

.product-status-lines {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
}

.product-status-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 6px 7px;
    border: 1px solid #e2e8ee;
    border-radius: 9px;
    background: #f8fafc;
}

.product-status-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6a7680;
}

.product-status-value {
    font-size: 11px;
    font-weight: 800;
    color: #17324d;
    line-height: 1.25;
}

.add-inline {
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    max-width: none;
    font-weight: 800;
    margin-top: 2px;
}

.order-trace-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 14px;
}

.order-trace-meta div {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-soft);
    display: grid;
    gap: 4px;
}

.order-trace-meta span {
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.order-trace-meta strong {
    font-size: 14px;
    color: var(--text);
    word-break: break-word;
}

.cart-card {
    top: 10px;
    padding: 0;
    overflow: visible;
    border-radius: 18px;
}

.cart-card .section-header {
    padding: 14px 16px 12px;
    margin-bottom: 0;
    border-bottom: 1px solid #e4e8ec;
}

.cart-actions-inline {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.icon-btn {
    min-width: 38px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #dfe5ea;
    border-radius: 10px;
    background: #ffffff;
    color: #66727c;
}

.cart-mode-inline {
    justify-content: flex-end;
}

.return-mode-btn,
.exchange-mode-btn {
    color: #7c5a00;
    border-color: #e8c768;
    background: linear-gradient(135deg, #f4c542, #d4a60d);
    font-weight: 800;
}

.return-mode-btn.is-active,
.exchange-mode-btn.is-active {
    color: #fffdf4;
    border-color: #a86b00;
    background: linear-gradient(135deg, #b78608, #8b6400);
    box-shadow: 0 10px 18px rgba(168, 107, 0, 0.22);
}

.invoice-summary {
    margin: 0;
    padding: 12px 16px 2px;
    display: block;
}

.invoice-meta {
    display: grid;
    gap: 8px;
}

.invoice-meta-row {
    display: grid;
    grid-template-columns: minmax(82px, 92px) minmax(0, 1fr);
    align-items: flex-start;
    gap: 8px;
    padding: 0;
    color: #60707d;
    font-size: 13px;
}

.invoice-meta-row span {
    color: #6a7781;
    font-weight: 700;
}

.invoice-meta-row strong {
    color: #2f3f4c;
    font-size: 13px;
    text-align: right;
    justify-self: end;
    min-width: 0;
    word-break: break-word;
}

.invoice-meta-row.wide {
    display: grid;
    gap: 4px;
}

.invoice-meta-row.wide strong {
    text-align: left;
}

.cart-items {
    gap: 8px;
    max-height: calc(100vh - 470px);
    overflow: auto;
    margin: 0;
    padding: 12px 16px 14px;
}

.compact-cart-item {
    grid-template-columns: 24px 48px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 14px;
    background: #f8fafb;
    border: 1px solid #e8edf1;
}

.cart-edge-btn {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: transparent;
    color: #6a7680;
}

.compact-thumb {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    background: #d8e0e6;
    border: 1px solid #e0e6eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.compact-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compact-cart-meta h4 {
    font-size: 14px;
    line-height: 1.25;
}

.compact-cart-meta p {
    font-size: 12px;
    color: #6d7984;
}

.cart-total-side {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.cart-total-side strong {
    font-size: 13px;
    color: #364955;
}

.cart-inline-actions {
    display: flex;
    gap: 6px;
}

.compact-remove {
    margin: 0;
    color: #75808a;
}

.invoice-controls {
    padding: 0 16px 14px;
    margin-bottom: 0;
}

.invoice-field {
    gap: 6px;
}

.invoice-field span {
    font-size: 10px;
}

.totals {
    gap: 8px;
    padding: 14px 16px;
    border-top: 1px solid #e4e8ec;
    border-bottom: 0;
}

.totals div {
    font-size: 14px;
}

.totals div span {
    color: #61707c;
}

.totals div:last-child {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px dashed #d4dbe1;
    font-size: 17px;
}

.cart-actions {
    margin: 0;
    padding: 0 16px 14px;
    gap: 8px;
}

.soft-btn {
    padding: 14px 12px;
    border-radius: 10px;
    background: #f0ecec;
    border-color: #e4dddd;
    font-weight: 600;
    color: #4f5e69;
}

.pay-btn {
    width: calc(100% - 32px);
    margin: 0 16px 16px;
    border-radius: 10px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #18b4be, #16a2b8);
}

.pay-btn small {
    font-size: 13px;
    opacity: .92;
}

.pay-btn strong,
#payTotal {
    font-size: 18px;
}

@media (max-width: 1400px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
    }
}

@media (max-width: 1180px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .cart-card {
        position: static;
    }
}

@media (max-width: 900px) {
    .catalog-toolbar {
        grid-template-columns: 1fr;
    }

    .catalog-toolbar .result-count {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .compact-order-meta,
    .compact-customer-grid,
    .customer-admin-grid,
    .compact-customer-form {
        grid-template-columns: 1fr;
    }
}


.view-section[data-view-panel="pos"].active {
    height: calc(100vh - 96px);
    overflow: hidden;
}

.view-section[data-view-panel="pos"] .content-grid {
    height: 100%;
    align-items: stretch;
}

.catalog-panel {
    height: 100%;
    overflow: auto;
    padding-right: 4px;
}

.cart-panel {
    height: 100%;
    overflow: hidden;
}

.cart-card {
    position: sticky;
    top: 0;
    height: 100%;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
}

.cart-items {
    min-height: 0;
}

.size-product-card {
    grid-template-columns: 1fr;
    grid-template-rows: 96px auto;
    min-height: 0;
}

.size-product-thumb {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid #e6ebef;
}

.size-product-body {
    min-height: 0;
}

.size-product-card .size-chips.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
}

@media (max-width: 1180px) {
    .view-section[data-view-panel="pos"].active {
        height: auto;
        overflow: visible;
    }

    .catalog-panel,
    .cart-panel,
    .view-section[data-view-panel="pos"] .content-grid {
        height: auto;
        overflow: visible;
    }

    .cart-card {
        height: auto;
    }
}


/* POS viewport and cart fit */
.app-shell {
    height: 100vh;
    overflow: hidden;
}

.workspace {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.view-section.active {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.view-section[data-view-panel="pos"].active {
    overflow: hidden;
}

.view-section[data-view-panel="pos"] .content-grid {
    height: 100%;
    min-height: 0;
}

.catalog-panel,
.cart-panel {
    min-height: 0;
}

.cart-card {
    max-height: 100%;
    min-height: 0;
}

.cart-card .section-header {
    padding: 10px 12px 8px;
}

.invoice-summary {
    padding: 8px 12px 0;
}

.invoice-meta {
    gap: 5px;
}

.invoice-meta-row {
    font-size: 12px;
}

.invoice-meta-row strong {
    font-size: 12px;
}

.invoice-controls {
    padding: 0 12px 10px;
    gap: 8px;
}

.invoice-field span {
    font-size: 9px;
}

.invoice-field input,
.invoice-field select {
    padding: 10px 12px;
}

.cart-items {
    padding: 8px 12px 10px;
}

.compact-cart-item {
    padding: 7px 8px;
    gap: 8px;
}

.compact-cart-meta h4 {
    font-size: 13px;
}

.compact-cart-meta p {
    font-size: 11px;
}

.totals {
    gap: 6px;
    padding: 10px 12px;
}

.totals div {
    font-size: 13px;
}

.totals div:last-child {
    font-size: 16px;
}

.cart-actions {
    padding: 0 12px 10px;
    gap: 6px;
}

.soft-btn {
    padding: 12px 8px;
    font-size: 12px;
}

.pay-btn {
    margin: 0 12px 12px;
    padding: 14px 16px;
}

.pay-btn small {
    font-size: 12px;
}

.pay-btn strong,
#payTotal {
    font-size: 17px;
}

@media (max-width: 1180px) {
    .workspace {
        height: auto;
        overflow: visible;
        display: block;
    }

    .view-section.active {
        overflow: visible;
    }

    .app-shell {
        height: auto;
        overflow: visible;
    }
}

.cart-card {
    grid-template-rows: auto auto minmax(0, 1fr) auto auto auto auto;
}

.cart-items {
    overflow: auto;
}

.pay-btn {
    position: sticky;
    bottom: 0;
    z-index: 2;
}

.settings-form {
    gap: 14px;
}

.settings-form .field-stack {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
}

.settings-form .field-stack span {
    font-weight: 700;
    color: var(--text);
}

.settings-section p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.settings-logo-row {
    align-items: center;
}
:root {
    --sidebar-width: 92px;
}

.sidebar {
    padding: 10px 8px 12px;
    gap: 10px;
}

.sidebar-brand {
    width: 100%;
}

.brand-mark.small {
    width: 56px;
    height: 56px;
    font-size: 18px;
    border-radius: 18px;
}

.sidebar-nav {
    gap: 6px;
}

.nav-link,
.logout-btn {
    padding: 7px 4px;
    gap: 5px;
    border-radius: 18px;
    font-size: 11px;
}

.nav-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 10px;
}
.file-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.preview-thumb {
    width: 72px;
    height: 56px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #ffffff;
}

.preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.preview-thumb span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.settings-logo-row .preview-thumb {
    width: 112px;
    height: 72px;
}
.delivery-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.delivery-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #f7f9fb;
    object-fit: cover;
    display: block;
    overflow: hidden;
}

span.delivery-avatar {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.brand-mark.has-logo {
    padding: 6px;
    background: #ffffff;
    border: 1px solid rgba(19, 37, 62, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7);
}

.brand-mark.has-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: inherit;
}

.report-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.delivery-rule {
    display: grid;
    gap: 4px;
}

.delivery-rule strong {
    font-size: 13px;
    color: var(--text);
}

.delivery-rule span {
    font-size: 11px;
    color: var(--muted);
}

.table-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.table-card {
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    box-shadow: 0 12px 30px rgba(15, 35, 95, 0.08);
}

.table-card h3 {
    margin: 10px 0 6px;
    font-size: 20px;
    color: var(--text);
}

.table-card p {
    margin: 0 0 14px;
    color: var(--muted);
    min-height: 34px;
}

.table-card.status-available {
    border-color: #bfe6d2;
    background: linear-gradient(180deg, #ffffff, #effaf3);
}

.table-card.status-occupied {
    border-color: #ffd2c4;
    background: linear-gradient(180deg, #ffffff, #fff3ee);
}

.table-card.status-reserved {
    border-color: #d8cdfa;
    background: linear-gradient(180deg, #ffffff, #f6f1ff);
}

.table-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 94px;
    padding: 7px 12px;
    border-radius: 18px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.table-status.available {
    background: #dff7e8;
    color: #157347;
}

.table-status.occupied {
    background: #ffe3da;
    color: #c2410c;
}

.table-status.reserved {
    background: #ebe3ff;
    color: #6d28d9;
}

.table-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.table-open-btn {
    grid-column: 1 / -1;
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 0;
    background: linear-gradient(135deg, #14b8a6, #0891b2);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.table-actions .soft-inline-btn {
    width: 100%;
    padding: 11px 10px;
    border-radius: 12px;
    border: 0;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.table-actions .occupy-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.table-actions .reserve-btn {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.table-actions .free-btn {
    background: linear-gradient(135deg, #22c55e, #15803d);
}

.reports-layout {
    display: grid;
    gap: 18px;
}

.reports-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.report-card {
    border: 1px solid rgba(19, 37, 62, 0.10);
    border-radius: 20px;
    padding: 20px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: 0 18px 40px rgba(15, 35, 95, 0.08);
    display: grid;
    gap: 10px;
    text-align: left;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.report-card::after {
    content: "";
    position: absolute;
    inset: auto -40px -40px auto;
    width: 120px;
    height: 120px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--report-accent) 18%, white);
}

.report-card-eyebrow {
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 800;
}

.report-card h4 {
    margin: 0;
    font-size: 22px;
    color: var(--text);
}

.report-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    min-height: 64px;
}

.report-card strong {
    color: var(--report-accent);
    font-size: 18px;
}

.report-workspace-header {
    align-items: flex-start;
    gap: 18px;
}

.section-copy {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.report-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.report-toolbar select,
.report-toolbar input {
    min-width: 150px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #ffffff;
}

.report-toolbar input:disabled {
    background: #f3f6fb;
    color: #8a98ac;
}

.report-toolbar-field {
    min-width: 220px;
}

.report-toolbar-field select {
    width: 100%;
}

.report-summary-card {
    background: linear-gradient(180deg, #ffffff, #f7fbff);
}

@media (max-width: 1180px) {
    .report-workspace-header {
        flex-direction: column;
    }

    .report-toolbar {
        justify-content: flex-start;
    }
}

.table-meta-stack {
    display: grid;
    gap: 10px;
    margin: 0 0 14px;
}

.table-meta-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: var(--muted);
}

.table-meta-line strong {
    color: var(--text);
    font-size: 13px;
}

.table-assign-field {
    display: grid;
    gap: 6px;
}

.table-assign-field span {
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 800;
}

.table-assign-field select {
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #ffffff;
    font-weight: 600;
    color: var(--text);
}



/* cart fit final cleanup */
.view-section[data-view-panel="pos"].active { min-height: 0; }
.view-section[data-view-panel="pos"] .content-grid { height: 100%; min-height: 0; align-items: stretch; }
.cart-panel { height: 100%; min-height: 0; display: flex; }
.cart-card { position: sticky; top: 0; width: 100%; height: 100%; max-height: 100%; min-height: 0; display: flex; flex-direction: column; overflow: visible; gap: 0; }
.cart-card .section-header, .invoice-summary, .invoice-controls, .totals, .cart-actions, .pay-btn { flex: 0 0 auto; }
.invoice-summary { padding: 6px 12px 0; }
.cart-items { flex: 0 1 92px; max-height: 92px; min-height: 52px; overflow: auto; margin: 0; padding: 8px 12px 10px; }
.cart-items .empty-state { min-height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 18px 12px; }
.invoice-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 12px 8px; margin-bottom: 0; }
.invoice-controls .invoice-field:last-child { grid-column: 1 / -1; }
.invoice-field { min-width: 0; }
.invoice-field input, .invoice-field select { width: 100%; }
.totals { gap: 5px; padding: 8px 12px; }
.cart-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0 12px 8px; }
.soft-btn { min-height: 38px; }
.pay-btn { position: static !important; width: auto; margin: 0 12px 12px; padding: 10px 12px; min-height: 50px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pay-btn > span:first-child { min-width: 0; }
#payTotal { white-space: nowrap; }
.pay-btn.is-busy, .icon-btn:disabled, .soft-btn:disabled, .invoice-field input:disabled, .invoice-field select:disabled { opacity: .65; cursor: not-allowed; }
@media (max-width: 1180px) {
  .cart-panel { display: block; height: auto; }
  .cart-card { position: static; height: auto; max-height: none; }
  .cart-items { max-height: 280px; }
}

.table-waiter-line {
    margin: -2px 0 8px;
    font-size: 12px;
    font-weight: 700;
    color: #315f8a;
}

.table-pay-btn {
    grid-column: 1 / -1;
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 0;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.table-pay-btn span {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .02em;
}

.table-add-btn {
    padding: 11px 16px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}


/* cart ultra compact */
.cart-card .section-header { padding: 8px 10px 6px; }
.cart-card .section-header h3 { font-size: 15px; }
.cart-actions-inline { gap: 6px; }
.icon-btn { min-width: 40px; height: 34px; padding: 0 10px; font-size: 13px; }
.cart-mode-inline { justify-content: flex-end; }
.invoice-summary { padding: 4px 10px 0; }
.invoice-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 10px; }
.invoice-meta-row { grid-template-columns: minmax(74px, 84px) minmax(0, 1fr); gap: 6px; font-size: 11px; }
.invoice-meta-row span { font-size: 11px; line-height: 1.2; }
.invoice-meta-row strong { font-size: 11px; line-height: 1.2; justify-self: end; }
.invoice-meta-row.wide { grid-column: 1 / -1; }
.invoice-controls { padding: 0 10px 8px; gap: 6px; }
.invoice-field { gap: 4px; }
.invoice-field span { font-size: 8px; }
.invoice-field input, .invoice-field select { padding: 8px 10px; font-size: 13px; border-radius: 12px; }
.cart-items { min-height: 58px; padding: 6px 10px 8px; gap: 6px; }
.compact-cart-item { grid-template-columns: 20px 40px minmax(0, 1fr) auto; padding: 6px 6px; gap: 6px; }
.qty-btn { width: 24px; height: 24px; font-size: 13px; }
.compact-thumb { width: 40px; height: 40px; border-radius: 10px; }
.compact-cart-meta h4 { font-size: 12px; line-height: 1.2; }
.compact-cart-meta p { font-size: 10px; margin-top: 2px; }
.cart-line-mode-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    margin-bottom: 4px;
    padding: 0 7px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.cart-line-mode-badge.return {
    background: #fef3c7;
    color: #92400e;
}

.cart-line-mode-badge.sale {
    background: #dbeafe;
    color: #1d4ed8;
}

.cart-total-negative {
    color: #b45309;
}
.cart-edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
.cart-edit-field { display: grid; gap: 2px; }
.cart-edit-field span { font-size: 9px; color: #6b7280; text-transform: uppercase; letter-spacing: .04em; }
.cart-edit-input { width: 100%; min-width: 0; border: 1px solid #d7e0ea; border-radius: 8px; padding: 5px 7px; background: #fff; font-size: 11px; color: #13253e; }
.cart-edit-input[readonly],
.cart-edit-input:disabled { background: #eef2f6; color: #64748b; cursor: not-allowed; }
.cart-total-side { gap: 4px; }
.cart-total-side strong { font-size: 12px; }
.cart-inline-actions { gap: 4px; }
.totals { gap: 4px; padding: 8px 10px; }
.totals div { font-size: 12px; }
.totals div:last-child { margin-top: 4px; padding-top: 6px; font-size: 15px; }
.cart-actions { padding: 0 10px 8px; gap: 5px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.soft-btn { min-height: 34px; padding: 8px 6px; font-size: 11px; border-radius: 10px; }
.pay-btn { width: auto; margin: 0 10px 10px; padding: 10px 12px; border-radius: 12px; min-height: 48px; }
.pay-btn-wide { grid-column: 1 / -1; }
.pay-btn small { font-size: 11px; }
.pay-btn strong, #payTotal { font-size: 15px; }
.cart-source-dock {
    position: relative;
    align-self: center;
    margin: -2px 0 10px;
    z-index: 25;
}

.cart-source-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: linear-gradient(180deg, #f8fafc, #e2e8f0);
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.cart-source-popover {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    width: min(340px, calc(100vw - 48px));
    max-height: 320px;
    overflow: auto;
    padding: 10px;
    border: 1px solid #dbe4ee;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.cart-source-popover::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-right: 1px solid #dbe4ee;
    border-bottom: 1px solid #dbe4ee;
    transform: translateX(-50%) rotate(45deg);
}

.cart-source-dock:hover .cart-source-popover,
.cart-source-dock:focus-within .cart-source-popover {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(-2px);
}

.cart-source-item {
    display: grid;
    gap: 8px;
    padding: 10px 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.cart-source-item + .cart-source-item {
    margin-top: 8px;
}

.cart-source-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.cart-source-head strong {
    font-size: 13px;
    color: #0f172a;
}

.cart-source-head span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #475569;
    text-align: right;
}

.cart-source-item p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.cart-source-grid {
    display: grid;
    grid-template-columns: minmax(72px, 82px) minmax(0, 1fr);
    gap: 4px 10px;
    align-items: start;
}

.cart-source-grid span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #64748b;
}

.cart-source-grid strong {
    font-size: 12px;
    color: #0f172a;
    word-break: break-word;
}

.cart-source-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: #0f6bcb;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.purchase-trace-meta strong {
    line-height: 1.4;
}




.logout-btn {
    margin-top: 0;
}

.sidebar-nav .logout-btn {
    background: transparent;
}

.backup-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.backup-admin-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: 0 16px 36px rgba(15, 35, 95, 0.08);
    display: grid;
    gap: 12px;
}

.backup-admin-card h4 {
    margin: 0;
    font-size: 22px;
    color: var(--text);
}

.backup-admin-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.backup-admin-card .primary-btn,
.backup-admin-card .soft-inline-btn {
    justify-self: start;
}

.payroll-card {
    display: grid;
    gap: 12px;
}

.payroll-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.payroll-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.payroll-summary-box {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-soft);
    display: grid;
    gap: 5px;
}

.payroll-summary-box.full {
    grid-column: 1 / -1;
}

.payroll-summary-box span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}

.payroll-summary-box strong {
    font-size: 18px;
    color: var(--text);
}

.payroll-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
}

.payroll-actions-grid .wide {
    grid-column: 1 / -1;
}

.payroll-action-btn {
    min-height: 38px;
}

.table-profile-cell {
    display: grid;
    gap: 8px;
    justify-items: start;
    min-width: 128px;
}

.table-profile-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
}

.table-profile-actions .table-action {
    padding: 6px 8px;
    font-size: 11px;
}

.payroll-admin-layout {
    display: grid;
    gap: 18px;
}

.payroll-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
}

.payroll-toolbar .compact {
    min-width: 220px;
}

.payroll-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.payroll-absent-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
}

.payroll-absent-toggle input {
    width: 16px;
    height: 16px;
}

.form-mode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.form-mode-header h4 {
    margin: 0 0 4px;
}

.form-mode-header p {
    margin: 0;
    color: var(--muted);
}

.form-mode-switch {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.form-mode-switch span {
    padding: 6px 12px;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

.form-mode-switch span.active {
    background: var(--panel-soft);
    color: var(--text);
}

.app-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
}
.app-modal.hidden {
    display: none;
}
.app-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 23, 38, 0.48);
}
.app-modal__card {
    position: relative;
    width: min(920px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    overflow: auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 32px 70px rgba(18, 41, 76, 0.22);
}
.app-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}
.app-modal__header h3 {
    margin: 4px 0 6px;
    font-size: 24px;
    color: #13253e;
}
.app-modal__header p {
    margin: 0;
    color: #5b6b83;
}
.ledger-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.field-help {
    grid-column: 1 / -1;
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.finance-modal-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}
.finance-ledger-preview {
    margin-top: 14px;
    background: #f7fbff;
    border: 1px solid #d9e4f2;
    border-radius: 18px;
    padding: 14px;
}
.finance-ledger-preview h4 {
    margin: 0 0 12px;
    color: #13253e;
}
.finance-ledger-table td,
.finance-ledger-table th {
    font-size: 12px;
}









.stock-alert-btn {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fff;
    border-color: #b91c1c;
    font-weight: 800;
}

.expiry-alert-btn {
    background: linear-gradient(135deg, #f97316, #c2410c);
    color: #fff;
    border-color: #c2410c;
    font-weight: 800;
}

.stock-alert-btn.hidden,
.expiry-alert-btn.hidden {
    display: none;
}

.stock-admin-layout {
    display: grid;
    gap: 14px;
}

.inventory-row-low td {
    background: rgba(239, 68, 68, 0.08);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 18px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
}

.status-pill.ok {
    background: rgba(16, 185, 129, 0.16);
    color: #047857;
}

.status-pill.danger {
    background: rgba(239, 68, 68, 0.16);
    color: #b91c1c;
}

.color-chip {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    margin-right: 8px;
    vertical-align: middle;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.inventory-row-builder {
    grid-template-columns: minmax(0, 1.2fr) 120px minmax(0, .85fr) minmax(0, .85fr) auto;
    gap: 8px;
}

.bom-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, .75fr) auto;
    gap: 10px;
    align-items: center;
}

.bom-row-remove {
    min-width: 88px;
}

.bom-panel {
    display: grid;
    gap: 12px;
}

.bom-rows {
    display: grid;
    gap: 10px;
}

.bom-form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.bom-form-actions .primary-btn,
.bom-form-actions .inline-btn,
.bom-form-actions .soft-inline-btn {
    min-height: 38px;
}

.bom-detail-card {
    width: min(620px, calc(100vw - 48px));
}

.bom-detail-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.bom-detail-list {
    display: grid;
    gap: 10px;
}

.bom-detail-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fbff;
}

.bom-detail-item strong,
.bom-detail-item p {
    margin: 0;
}

.bom-detail-item p {
    color: var(--muted);
    margin-top: 4px;
}

.bom-detail-values {
    text-align: right;
    display: grid;
    gap: 4px;
    white-space: nowrap;
}

.table-action.view {
    background: #e8fdf9;
    color: #0f766e;
}

.inventory-note {
    color: var(--muted);
    font-size: 12px;
}

.product-stock-helper {
    margin-top: -8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #eef6ff;
    color: #1e3a5f;
    font-size: 12px;
    line-height: 1.5;
}

.input-readonly {
    background: #eef2f6 !important;
    color: #64748b;
    cursor: not-allowed;
}

input.field-error,
select.field-error,
textarea.field-error,
button.field-error,
label.field-error,
.field-stack.field-error,
.invoice-field.field-error,
.deal-row.field-error,
.file-row.field-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.16) !important;
}

.stock-hub-layout {
    display: grid;
    gap: 14px;
}

.stock-hub-head h4 {
    margin: 2px 0 6px;
    font-size: 24px;
    color: var(--text);
}

.stock-hub-head p {
    margin: 0;
    color: var(--muted);
}

.stock-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.stock-hub-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(140deg, #ffffff, #f7fbff);
    padding: 14px;
    text-align: left;
    display: grid;
    gap: 6px;
    cursor: pointer;
    position: relative;
}

.stock-hub-card strong {
    color: var(--text);
    font-size: 14px;
}

.stock-hub-card span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.stock-hub-card em {
    position: absolute;
    top: 10px;
    right: 10px;
    min-width: 24px;
    height: 24px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #12253e;
    color: #fff;
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
}

.stock-hub-foot {
    display: flex;
    justify-content: flex-end;
}

.stock-hub-card.tone-products { background: linear-gradient(140deg, #fff3e8, #fde7d7); border-color: #f9c59d; }
.stock-hub-card.tone-raw { background: linear-gradient(140deg, #ffe8e8, #ffd9d9); border-color: #f3aaaa; }
.stock-hub-card.tone-bom { background: linear-gradient(140deg, #f2ebff, #e7dcff); border-color: #c8b2ff; }
.stock-hub-card.tone-stock { background: linear-gradient(140deg, #ffe9f5, #ffd8ea); border-color: #f5b2d4; }
.stock-hub-card.tone-suppliers { background: linear-gradient(140deg, #eaf7ff, #d8efff); border-color: #a8d7f5; }
.stock-hub-card.tone-purchases { background: linear-gradient(140deg, #eafdf3, #d8f9e7); border-color: #a7e9c8; }

.stock-hub-card.tone-products em { background: #b45309; }
.stock-hub-card.tone-raw em { background: #b91c1c; }
.stock-hub-card.tone-bom em { background: #6d28d9; }
.stock-hub-card.tone-stock em { background: #be185d; }
.stock-hub-card.tone-suppliers em { background: #0c4a6e; }
.stock-hub-card.tone-purchases em { background: #047857; }






.expense-manager-layout {
    align-items: start;
}

.expense-history-card,
.expense-form-panel {
    height: 100%;
}

.expense-toolbar {
    display: grid;
    gap: 10px;
    margin: 14px 0 12px;
}

.expense-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.expense-toolbar-row select,
.expense-toolbar-row input {
    min-width: 126px;
}

.expense-toolbar-actions {
    justify-content: flex-start;
}

.toolbar-action {
    padding: 12px 16px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.toolbar-action.refresh { background: linear-gradient(135deg, #64748b, #475569); }
.toolbar-action.pdf { background: linear-gradient(135deg, #f97316, #ea580c); }
.toolbar-action.excel { background: linear-gradient(135deg, #22c55e, #16a34a); }

.expense-form-panel {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: white;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
    gap: 12px;
}

.expense-form-panel .form-panel,
.expense-form-panel .field-stack,
.expense-form-panel button,
.expense-form-panel input,
.expense-form-panel select,
.expense-form-panel textarea {
    grid-column: 1 / -1;
}

.expense-form-panel button[type="submit"] {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
}

.expense-form-panel .soft-inline-btn {
    background: #eef4ff;
    color: #274c77;
}


.expense-manager-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr);
    gap: 0;
}

.expense-history-column {
    padding-right: 18px;
    border-right: 4px solid #13253e;
}

.expense-form-column {
    padding-left: 18px;
}

.expense-history-card {
    padding-right: 8px;
}

.expense-form-panel {
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
    display: grid;
    gap: 12px;
}

.expense-form-panel .form-panel {
    background: #f8fbff;
}

@media (max-width: 1280px) {
    .expense-manager-layout {
        grid-template-columns: 1fr;
    }

    .expense-history-column {
        padding-right: 0;
        border-right: 0;
        border-bottom: 4px solid #13253e;
        padding-bottom: 16px;
        margin-bottom: 16px;
    }

    .expense-form-column {
        padding-left: 0;
    }
}

.expense-history-column {
    padding-right: 22px;
    border-right: 4px solid #13253e;
}

.expense-form-column {
    padding-left: 22px;
}

.expense-history-card,
.expense-form-panel {
    min-height: 100%;
}

.expense-form-header {
    padding: 14px 16px;
    margin-bottom: 10px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, #f7fbff, #eef5ff);
}

.expense-form-header h4 {
    margin: 0 0 4px;
}

.expense-form-header p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.expense-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.expense-form-grid .wide {
    grid-column: 1 / -1;
}

.expense-form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.expense-form-actions button {
    min-width: 160px;
}

.expense-form-panel textarea {
    min-height: 110px;
    resize: vertical;
}

@media (max-width: 1280px) {
    .expense-history-column {
        padding-right: 0;
        border-right: 0;
        border-bottom: 4px solid #13253e;
        padding-bottom: 16px;
        margin-bottom: 16px;
    }

    .expense-form-column {
        padding-left: 0;
    }

    .expense-form-grid {
        grid-template-columns: 1fr;
    }

    .expense-form-actions {
        justify-content: stretch;
        flex-direction: column;
        align-items: stretch;
    }

    .expense-form-actions button {
        width: 100%;
    }
}

.profit-loss-layout {
    gap: 16px;
}

.profit-loss-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: white;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
    display: grid;
    gap: 14px;
}

.profit-loss-toolbar {
    margin-bottom: 2px;
}

.profit-loss-statement-card {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #ffffff;
}

.profit-loss-table {
    width: 100%;
    border-collapse: collapse;
}

.profit-loss-table thead th {
    font-size: 11px;
    color: #5b6b83;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.profit-loss-table th,
.profit-loss-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e3ecf7;
    vertical-align: top;
}

.profit-loss-label {
    font-weight: 700;
    color: var(--text);
}

.profit-loss-note {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.profit-loss-row .negative {
    color: #c23616;
    font-weight: 700;
}

.profit-loss-row .positive {
    color: #188a4c;
    font-weight: 700;
}

.profit-loss-breakdown {
    margin-top: 18px;
}
.parent-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: #274c77;
    font-size: 12px;
    font-weight: 700;
}





.balance-sheet-layout {
    gap: 16px;
}

.balance-sheet-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
    display: grid;
    gap: 14px;
}

.balance-sheet-toolbar {
    margin-bottom: 2px;
}

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

.balance-sheet-column {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fbfdff, #f6f9ff);
    border-radius: 18px;
    padding: 16px;
    display: grid;
    gap: 12px;
}

.balance-sheet-column-head {
    font-size: 15px;
    font-weight: 800;
    color: #13253e;
    letter-spacing: 0.02em;
    padding-bottom: 8px;
    border-bottom: 1px solid #d9e4f2;
}

.balance-sheet-subhead {
    margin-top: 6px;
}

.balance-sheet-table {
    width: 100%;
    border-collapse: collapse;
}

.balance-sheet-table thead th {
    font-size: 11px;
    color: #5b6b83;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 10px 8px;
    border-bottom: 1px solid #d9e4f2;
    text-align: left;
}

.balance-sheet-table td {
    padding: 9px 8px;
    border-bottom: 1px solid #e6eef8;
    vertical-align: top;
}

.balance-sheet-name {
    font-weight: 600;
    color: #13253e;
}

.balance-sheet-row.root-row .balance-sheet-name {
    font-weight: 700;
}

.balance-sheet-total-row,
.balance-sheet-grand-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    padding-top: 10px;
    border-top: 1px solid #d9e4f2;
}

.balance-sheet-grand-total {
    font-size: 14px;
}

.balance-sheet-footnote {
    color: var(--muted);
    font-size: 12px;
    text-align: right;
}

.balance-sheet-empty-cell {
    color: var(--muted);
    padding: 16px 10px;
    text-align: center;
}

@media (max-width: 1280px) {
    .balance-sheet-sheet {
        grid-template-columns: 1fr;
    }
}
.balance-sheet-row .negative {
    color: #dc2626;
    font-weight: 700;
}

.balance-sheet-row .positive {
    color: #13253e;
}
.trial-balance-layout {
    gap: 16px;
}

.trial-balance-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
    display: grid;
    gap: 14px;
}

.trial-balance-toolbar {
    margin-bottom: 2px;
}

.trial-balance-statement-card {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fbfdff, #f7faff);
    display: grid;
    gap: 14px;
}

.trial-balance-table {
    width: 100%;
    border-collapse: collapse;
}

.trial-balance-table thead th {
    font-size: 11px;
    color: #5b6b83;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 10px 8px;
    border-bottom: 1px solid #d9e4f2;
    text-align: left;
}

.trial-balance-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #e6eef8;
    vertical-align: top;
}

.trial-balance-row.debit-row .positive {
    color: #12804c;
    font-weight: 700;
}

.trial-balance-row.credit-row .negative {
    color: #c2410c;
    font-weight: 700;
}

.trial-balance-sr {
    width: 70px;
    color: #5b6b83;
}

.trial-balance-name {
    font-weight: 700;
    color: #13253e;
}

.trial-balance-code {
    margin-top: 3px;
    font-size: 12px;
    color: var(--muted);
}

.trial-balance-total-row td {
    font-weight: 800;
    background: #eef4ff;
}

.trial-balance-footnote {
    text-align: right;
    color: var(--muted);
    font-size: 12px;
}

.empty-inline {
    color: var(--muted);
    font-size: 12px;
}


.journal-entry-layout {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr) !important;
    align-items: start;
}

.journal-entry-form-panel {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.journal-composer-shell {
    display: grid;
    gap: 18px;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid #d7e4f4;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.journal-composer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.journal-kicker {
    margin: 0 0 6px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #5b6b83;
}

.journal-composer-header h4 {
    margin: 0 0 6px;
    font-size: 28px;
    line-height: 1.1;
    color: #13253e;
}

.journal-composer-header p {
    margin: 0;
    color: #5b6b83;
    font-size: 14px;
}

.journal-balance-chip {
    min-width: 170px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid #d8e4f2;
    background: #f5f9ff;
    display: grid;
    gap: 4px;
    text-align: right;
}

.journal-balance-chip span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.journal-balance-chip strong {
    font-size: 20px;
    color: #13253e;
}

.journal-balance-chip.balanced {
    background: linear-gradient(180deg, #f2fff7, #e7f8ee);
    border-color: #bfe3cb;
}

.journal-balance-chip.balanced strong {
    color: #12804c;
}

.journal-balance-chip.unbalanced {
    background: linear-gradient(180deg, #fff7f2, #ffefe7);
    border-color: #f2cfbf;
}

.journal-balance-chip.unbalanced strong {
    color: #c2410c;
}

.journal-meta-grid {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 16px;
}

.journal-meta-note textarea {
    min-height: 104px;
    resize: vertical;
}

.journal-lines-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid #dbe7f5;
    background: #ffffff;
}

.journal-lines-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.journal-lines-card-head h5 {
    margin: 0 0 4px;
    font-size: 18px;
    color: #13253e;
}

.journal-lines-card-head p {
    margin: 0;
    font-size: 13px;
    color: #6b7a90;
}

.journal-entry-lines {
    display: grid;
    gap: 12px;
}

.journal-entry-line {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1.7fr) minmax(0, 0.9fr) minmax(0, 0.95fr) auto;
    gap: 12px;
    align-items: end;
    padding: 14px;
    border: 1px solid #d9e5f3;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f9fbff);
}

.journal-entry-line-index {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1ea6d6, #2f65f5);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 15px;
}

.journal-entry-line-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.journal-entry-line-field span {
    font-size: 11px;
    font-weight: 700;
    color: #607089;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.journal-entry-line select,
.journal-entry-line input,
.journal-entry-line button {
    width: 100%;
    min-width: 0;
}

.journal-entry-line button {
    min-width: 100px;
}

.journal-footer-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 170px)) 1fr;
    gap: 14px;
    align-items: stretch;
}

.journal-footer-stat {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid #d9e5f3;
    background: #ffffff;
}

.journal-footer-stat span {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #607089;
}

.journal-footer-stat strong {
    font-size: 22px;
    color: #13253e;
}

.journal-footer-actions {
    display: flex;
    gap: 12px;
    align-items: stretch;
    justify-content: flex-end;
}

.journal-footer-actions button {
    min-width: 190px;
}

@media (max-width: 1280px) {
    .journal-entry-layout {
        grid-template-columns: 1fr !important;
    }

    .journal-composer-header,
    .journal-lines-card-head,
    .journal-footer-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .journal-meta-grid,
    .journal-footer-bar,
    .journal-entry-line {
        grid-template-columns: 1fr;
    }

    .journal-entry-line-index {
        width: 38px;
        height: 38px;
    }
}


.journal-entry-form-panel .journal-composer-shell,
.journal-entry-form-panel .journal-meta-grid,
.journal-entry-form-panel .journal-lines-card,
.journal-entry-form-panel .journal-lines-card-head,
.journal-entry-form-panel .journal-entry-lines,
.journal-entry-form-panel .journal-entry-line,
.journal-entry-form-panel .journal-footer-bar,
.journal-entry-form-panel .journal-footer-actions {
    grid-column: 1 / -1;
}

.journal-entry-form-panel .journal-meta-grid > *,
.journal-entry-form-panel .journal-lines-card-head > *,
.journal-entry-form-panel .journal-entry-line > *,
.journal-entry-form-panel .journal-footer-bar > * {
    grid-column: auto !important;
}

.journal-meta-grid {
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    align-items: start;
}

.journal-meta-date {
    max-width: 260px;
}

.journal-meta-note {
    grid-column: 2 / 3 !important;
    width: 100%;
}

.journal-meta-note textarea {
    width: 100%;
    min-height: 146px;
    padding: 16px 18px;
    line-height: 1.5;
    border-radius: 16px;
    resize: vertical;
}

.journal-lines-card {
    padding: 20px;
}

.journal-entry-lines {
    width: 100%;
}

.journal-entry-line {
    grid-template-columns: 50px minmax(0, 2.2fr) minmax(130px, 1fr) minmax(130px, 1fr) 120px !important;
    width: 100%;
}

.journal-entry-line-account select {
    min-width: 0;
}

.journal-entry-line-amount input,
.journal-entry-line-side select {
    min-width: 130px;
}

.journal-line-remove {
    min-width: 120px;
    justify-self: stretch;
}

@media (max-width: 1280px) {
    .journal-meta-grid {
        grid-template-columns: 1fr;
    }

    .journal-meta-date,
    .journal-meta-note {
        max-width: none;
        grid-column: 1 / -1 !important;
    }
}

.journal-entry-layout {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr) !important;
    align-items: start;
}

.journal-entry-form-panel {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.journal-sheet {
    display: grid;
    gap: 24px;
    padding: 30px 34px;
    border: 1px solid #d5dde8;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #fdfefe 100%);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.journal-sheet-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.journal-sheet-title-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #13253e;
}

.journal-sheet-title-icon svg {
    width: 34px;
    height: 34px;
}

.journal-sheet-title h4 {
    margin: 0;
    font-size: 32px;
    line-height: 1.12;
    font-weight: 800;
    color: #13253e;
}

.journal-sheet-divider {
    height: 1px;
    background: #d9e0e8;
}

.journal-sheet-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.journal-sheet-field {
    display: grid;
    gap: 12px;
}

.journal-sheet-field span {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.journal-sheet-field input,
.journal-sheet-field textarea {
    width: 100%;
    min-width: 0;
    border-radius: 22px;
    border: 2px solid #b7c2cf;
    background: #ffffff;
    color: #111827;
    font-size: 20px;
    line-height: 1.4;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.journal-sheet-field input {
    min-height: 84px;
    padding: 0 24px;
}

.journal-sheet-field textarea {
    min-height: 154px;
    padding: 22px 24px;
    resize: vertical;
}

.journal-ledger-card {
    display: grid;
    gap: 0;
    border: 1px solid #d5dde8;
    border-radius: 26px;
    background: #ffffff;
    overflow: hidden;
}

.journal-ledger-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 24px 24px 18px;
}

.journal-ledger-head h5 {
    margin: 0 0 4px;
    font-size: 28px;
    line-height: 1.1;
    color: #13253e;
}

.journal-ledger-head p {
    margin: 0;
    font-size: 17px;
    color: #374151;
}

.journal-add-entry-btn {
    min-width: 220px;
    min-height: 58px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #1d9fb0, #39b7c5);
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(29, 159, 176, 0.22);
}

.journal-ledger-table {
    border-top: 1px solid #d9e0e8;
}

.journal-ledger-table-head,
.journal-grid-row,
.journal-ledger-table-foot {
    display: grid;
    grid-template-columns: 84px minmax(0, 2.2fr) minmax(220px, 1fr) 190px 120px;
    align-items: center;
}

.journal-ledger-table-head {
    min-height: 74px;
    padding: 0 18px;
    background: #f8fbff;
    border-bottom: 1px solid #d9e0e8;
}

.journal-ledger-table-head span {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.journal-ledger-table-body {
    display: grid;
}

.journal-grid-row {
    padding: 14px 18px;
    gap: 14px;
    border-bottom: 1px solid #e3e8ef;
    background: #ffffff;
}

.journal-grid-cell {
    min-width: 0;
}

.journal-grid-cell.index {
    display: flex;
    justify-content: center;
}

.journal-index-pill {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #8db1ce, #6e94b7);
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
}

.journal-grid-cell select,
.journal-grid-cell input {
    width: 100%;
    min-width: 0;
    min-height: 62px;
    border-radius: 18px;
    border: 2px solid #b7c2cf;
    background: #ffffff;
    color: #111827;
    font-size: 18px;
    padding: 0 20px;
}

.journal-money-input {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: stretch;
    border: 2px solid #b7c2cf;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
}

.journal-money-input span {
    display: grid;
    place-items: center;
    background: #f8fbff;
    color: #13253e;
    font-size: 18px;
    font-weight: 700;
    border-right: 1px solid #d6deea;
}

.journal-money-input input {
    border: 0;
    border-radius: 0;
    min-height: 58px;
}

.journal-icon-btn {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    border: 0;
    background: transparent;
    color: #111827;
    display: grid;
    place-items: center;
    justify-self: center;
}

.journal-icon-btn svg {
    width: 30px;
    height: 30px;
}

.journal-ledger-table-foot {
    padding: 18px 18px 20px;
    gap: 14px;
    background: #fbfdff;
}

.journal-ledger-foot-spacer {
    grid-column: 1 / 3;
}

.journal-ledger-foot-summary,
.journal-ledger-foot-status {
    font-size: 17px;
    font-weight: 700;
    color: #13253e;
}

.journal-ledger-foot-summary strong,
.journal-ledger-foot-status strong {
    font-size: 18px;
}

.journal-ledger-foot-status {
    text-align: right;
}

.journal-ledger-foot-status.balanced {
    color: #0f8d55;
}

.journal-ledger-foot-status.unbalanced {
    color: #c2410c;
}

.journal-sheet-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

.journal-cancel-btn,
.journal-post-btn {
    min-width: 230px;
    min-height: 64px;
    border: 0;
    border-radius: 18px;
    font-size: 20px;
    font-weight: 700;
}

.journal-cancel-btn {
    background: linear-gradient(180deg, #99a4b2, #7f8a98);
    color: #ffffff;
}

.journal-post-btn {
    background: linear-gradient(135deg, #2f65f5, #208cd8);
    color: #ffffff;
}

@media (max-width: 1500px) {
    .journal-ledger-table-head,
    .journal-grid-row,
    .journal-ledger-table-foot {
        grid-template-columns: 72px minmax(0, 2fr) minmax(190px, 0.95fr) 160px 90px;
    }
}

@media (max-width: 1280px) {
    .journal-entry-layout {
        grid-template-columns: 1fr !important;
    }

    .journal-sheet-meta {
        grid-template-columns: 1fr;
    }

    .journal-ledger-head,
    .journal-sheet-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .journal-ledger-table-head,
    .journal-grid-row,
    .journal-ledger-table-foot {
        grid-template-columns: 1fr;
    }

    .journal-ledger-foot-spacer {
        display: none;
    }

    .journal-ledger-foot-status {
        text-align: left;
    }
}

.journal-entry-form-panel {
    display: block !important;
    width: 100%;
    max-width: 100%;
    padding: 0 !important;
    margin: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.journal-entry-form-panel .journal-sheet,
.journal-entry-form-panel .journal-sheet * {
    box-sizing: border-box;
}

.journal-entry-form-panel .journal-sheet input,
.journal-entry-form-panel .journal-sheet select,
.journal-entry-form-panel .journal-sheet textarea,
.journal-entry-form-panel .journal-sheet button,
.journal-entry-form-panel .journal-sheet label,
.journal-entry-form-panel .journal-sheet div,
.journal-entry-form-panel .journal-sheet span {
    grid-column: auto !important;
}

.journal-entry-form-panel .journal-sheet {
    width: 100%;
}

.journal-entry-form-panel .journal-sheet-meta > * {
    min-width: 0;
}

.journal-entry-form-panel .journal-ledger-table {
    width: 100%;
    overflow: hidden;
}

.journal-entry-form-panel .journal-ledger-table-body {
    width: 100%;
}

.journal-entry-form-panel .journal-grid-cell.action {
    display: flex;
    justify-content: center;
}

.journal-entry-layout {
    grid-template-columns: minmax(320px, 0.58fr) minmax(0, 1.42fr) !important;
}

.journal-sheet {
    gap: 18px;
    padding: 24px 26px;
    border-radius: 24px;
}

.journal-sheet-title {
    gap: 12px;
}

.journal-sheet-title-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.journal-sheet-title-icon svg {
    width: 28px;
    height: 28px;
}

.journal-sheet-title h4 {
    font-size: 24px;
}

.journal-sheet-meta {
    gap: 20px;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.journal-sheet-field span {
    font-size: 14px;
}

.journal-sheet-field input,
.journal-sheet-field textarea {
    font-size: 15px;
    border-radius: 18px;
}

.journal-sheet-field input {
    min-height: 58px;
    padding: 0 18px;
}

.journal-sheet-field textarea {
    min-height: 102px;
    padding: 16px 18px;
}

.journal-ledger-card {
    border-radius: 22px;
}

.journal-ledger-head {
    padding: 18px 20px 14px;
}

.journal-ledger-head h5 {
    font-size: 22px;
}

.journal-ledger-head p {
    font-size: 14px;
}

.journal-add-entry-btn {
    min-width: 166px;
    min-height: 54px;
    border-radius: 16px;
    font-size: 15px;
}

.journal-ledger-table-head,
.journal-grid-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1.75fr) minmax(132px, 0.9fr) 112px 68px !important;
    gap: 12px;
}

.journal-ledger-table-head {
    min-height: 58px;
    padding: 0 16px;
}

.journal-ledger-table-head span {
    font-size: 12px;
    letter-spacing: 0;
}

.journal-grid-row {
    padding: 14px 16px;
}

.journal-index-pill {
    width: 42px;
    height: 42px;
    font-size: 18px;
}

.journal-grid-cell select,
.journal-grid-cell input {
    min-height: 52px;
    padding: 0 14px;
    font-size: 14px;
    border-radius: 16px;
}

.journal-money-input {
    grid-template-columns: 52px minmax(0, 1fr);
    border-radius: 16px;
}

.journal-money-input span {
    font-size: 13px;
}

.journal-money-input input {
    min-height: 48px;
    padding: 0 12px;
}

.journal-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

.journal-icon-btn svg {
    width: 22px;
    height: 22px;
}

.journal-ledger-table-foot {
    display: grid !important;
    grid-template-columns: 1fr auto auto auto !important;
    gap: 16px;
    align-items: center;
    padding: 14px 16px 16px;
}

.journal-ledger-foot-spacer {
    display: block;
    grid-column: auto;
}

.journal-ledger-foot-summary,
.journal-ledger-foot-status {
    font-size: 13px;
}

.journal-ledger-foot-summary strong,
.journal-ledger-foot-status strong {
    font-size: 14px;
}

.journal-sheet-actions {
    gap: 12px;
}

.journal-cancel-btn,
.journal-post-btn {
    min-width: 180px;
    min-height: 54px;
    border-radius: 16px;
    font-size: 16px;
}

@media (max-width: 1480px) {
    .journal-entry-layout {
        grid-template-columns: minmax(300px, 0.62fr) minmax(0, 1.38fr) !important;
    }
}

@media (max-width: 1280px) {
    .journal-entry-layout {
        grid-template-columns: 1fr !important;
    }

    .journal-sheet-meta {
        grid-template-columns: 1fr;
    }

    .journal-ledger-head,
    .journal-sheet-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

.journal-entry-layout .expense-history-column {
    padding-right: 18px;
    border-right: 2px solid #d9e3ef;
}

.journal-entry-layout .expense-form-column {
    padding-left: 18px;
}

#journalEntryTableWrap {
    overflow-x: auto;
}

#journalEntryTableWrap .data-table {
    width: 100%;
    min-width: 760px;
}

#journalEntryTableWrap .data-table th,
#journalEntryTableWrap .data-table td {
    padding: 12px 10px;
    font-size: 13px;
}

#journalEntryTableWrap .data-table th:nth-child(1),
#journalEntryTableWrap .data-table td:nth-child(1) {
    min-width: 86px;
}

#journalEntryTableWrap .data-table th:nth-child(2),
#journalEntryTableWrap .data-table td:nth-child(2) {
    min-width: 136px;
}

#journalEntryTableWrap .data-table th:nth-child(3),
#journalEntryTableWrap .data-table td:nth-child(3) {
    min-width: 170px;
}

#journalEntryTableWrap .data-table th:nth-child(4),
#journalEntryTableWrap .data-table td:nth-child(4),
#journalEntryTableWrap .data-table th:nth-child(5),
#journalEntryTableWrap .data-table td:nth-child(5) {
    min-width: 88px;
}

#journalEntryTableWrap .data-table th:nth-child(6),
#journalEntryTableWrap .data-table td:nth-child(6) {
    min-width: 134px;
}

.journal-line-summary {
    display: grid;
    gap: 2px;
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.35;
}

.journal-line-summary:last-child {
    margin-bottom: 0;
}

.journal-line-summary span {
    color: #334155;
}

.journal-line-summary strong {
    color: #13253e;
    font-size: 12px;
}

.journal-history-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

.journal-history-actions .table-action {
    margin: 0;
    width: 100%;
    min-width: 0;
    white-space: nowrap;
}

@media (max-width: 1280px) {
    .journal-entry-layout .expense-history-column {
        padding-right: 0;
        border-right: 0;
        border-bottom: 2px solid #d9e3ef;
        padding-bottom: 16px;
        margin-bottom: 16px;
    }

    .journal-entry-layout .expense-form-column {
        padding-left: 0;
    }
}

.expense-form-panel {
    grid-template-columns: 1fr !important;
}

.expense-form-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
}

.expense-form-grid .wide {
    grid-column: 1 / -1;
}

.expense-form-panel .field-stack {
    display: grid;
    gap: 8px;
}

.expense-form-panel .field-stack span {
    font-size: 14px;
    font-weight: 700;
    color: #13253e;
}

.expense-form-panel .field-stack input,
.expense-form-panel .field-stack select,
.expense-form-panel .field-stack textarea {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    border-radius: 18px;
    border: 1px solid #cfdae8;
    background: #ffffff;
    font-size: 14px;
    padding: 0 16px;
}

.expense-form-panel .field-stack textarea {
    min-height: 108px;
    padding: 14px 16px;
    resize: vertical;
}

.profit-loss-table {
    table-layout: fixed;
}

.profit-loss-table th:first-child,
.profit-loss-table td:first-child {
    width: calc(100% - 190px);
}

.profit-loss-table th:last-child,
.profit-loss-table td:last-child {
    width: 190px;
}

.profit-loss-table th:last-child,
.profit-loss-table td:last-child {
    text-align: right;
}

.profit-loss-table td {
    vertical-align: middle;
}

.profit-loss-label {
    display: block;
    margin-bottom: 4px;
}

.profit-loss-note {
    line-height: 1.35;
}

.profit-loss-row td:last-child {
    font-weight: 800;
    white-space: nowrap;
}

.profit-loss-table thead th:first-child {
    text-align: left;
    padding-left: 10px;
}

.profit-loss-table thead th:last-child {
    text-align: right;
    padding-right: 42px;
}

.profit-loss-table tbody td:last-child,
.profit-loss-table .text-right {
    text-align: right;
    padding-right: 42px;
}

.cart-actions-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 12px 12px;
    margin: 0;
}

.cart-action-btn,
.cart-actions-grid .soft-btn,
.cart-actions-grid .pay-btn {
    width: 100%;
    min-height: 48px;
    margin: 0 !important;
    border: 0;
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

#discountBtn {
    background: linear-gradient(135deg, #64748b, #475569);
    color: #ffffff;
}

#holdBtn {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
}

#shareReceiptBtn {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #ffffff;
}

#payBtn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    min-height: 48px;
    padding: 10px 12px;
    justify-content: space-between;
    gap: 10px;
}

#payBtn small {
    font-size: 11px;
    font-weight: 800;
    opacity: 0.95;
}

#payBtn strong,
#payTotal {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.15;
}

#payBtn > span:first-child {
    display: grid;
    gap: 1px;
    text-align: left;
}

.pay-btn-wide {
    grid-column: 1 / -1;
}

#payBtn > span:last-child {
    white-space: nowrap;
}

.sidebar-nav .logout-btn {
    width: 62px;
    height: 62px;
    padding: 0;
    margin: 6px auto 0;
    border-radius: 16px;
    background: linear-gradient(180deg, #ef4444, #b91c1c) !important;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    box-shadow: 0 10px 20px rgba(185, 28, 28, 0.24);
}

.sidebar-nav .logout-btn .nav-icon {
    width: 28px;
    height: 28px;
    border-radius: 12px;
    background: rgba(255,255,255,0.16);
    color: #ffffff;
    font-size: 9px;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.sidebar-nav .logout-btn .logout-icon {
    padding: 0;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16);
}

.sidebar-nav .logout-btn span:last-child {
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
}

.sidebar {
    min-height: 100vh;
    padding: 10px 6px 10px !important;
    gap: 10px !important;
}

.sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible !important;
    padding-right: 0;
    gap: 6px !important;
}

.sidebar-nav .nav-link {
    padding: 6px 2px !important;
    gap: 4px !important;
    border-radius: 16px !important;
    font-size: 10px !important;
}

.sidebar-nav .nav-link .nav-icon {
    width: 30px !important;
    height: 30px !important;
    font-size: 9px !important;
}

.brand-mark.small {
    width: 54px !important;
    height: 54px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
}

.app-shell {
    grid-template-columns: 82px 1fr !important;
}

.login-brand {
    align-items: flex-start;
}

.login-brand-mark {
    width: 82px !important;
    height: 82px !important;
    border-radius: 50% !important;
    overflow: hidden;
    border: 1px solid #d9e0e8;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(31, 55, 86, 0.10);
}

.login-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.login-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.login-support-copy {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.login-link-btn {
    min-width: 168px;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(31, 55, 86, 0.12);
}

.login-link-btn.whatsapp {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.login-link-btn.website {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
}

.login-shell {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.login-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 163, 82, 0.22), transparent 22%),
        radial-gradient(circle at 86% 20%, rgba(25, 180, 190, 0.20), transparent 24%),
        radial-gradient(circle at 72% 86%, rgba(239, 131, 84, 0.14), transparent 26%),
        linear-gradient(135deg, #f7fafc, #e9eef4);
    z-index: -3;
}

.login-food-collage {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -2;
}

.login-food-card {
    position: absolute;
    border-radius: 28px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.20);
    border: 1px solid rgba(255, 255, 255, 0.55);
    overflow: hidden;
}

.login-food-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 19, 29, 0.10), rgba(12, 19, 29, 0.24));
}

.login-food-card.pizza {
    width: 300px;
    height: 220px;
    left: 26px;
    top: 44px;
    transform: rotate(-10deg);
    background-image: url("../assets/login/Pizza.jpg");
}

.login-food-card.burger {
    width: 360px;
    height: 250px;
    right: 38px;
    top: 54px;
    transform: rotate(8deg);
    background-image: url("../assets/login/burger.jpg");
}

.login-food-card.shawarma {
    width: 290px;
    height: 215px;
    left: 62px;
    bottom: 54px;
    transform: rotate(6deg);
    background-image: url("../assets/login/Sharwarma.jpeg");
}

.login-food-card.roll {
    width: 250px;
    height: 190px;
    right: 110px;
    bottom: 72px;
    transform: rotate(-8deg);
    background-image: url("../assets/login/Roll Paratha.jpg");
}

.login-food-card.karahi {
    width: 250px;
    height: 185px;
    left: 340px;
    bottom: 120px;
    transform: rotate(-4deg);
    background-image: url("../assets/login/Karahi.jpg");
}

.login-card {
    position: relative;
    z-index: 2;
    backdrop-filter: blur(12px);
}

@media (max-width: 1220px) {
    .login-food-card.karahi,
    .login-food-card.roll {
        display: none;
    }
}

@media (max-width: 980px) {
    .login-food-collage {
        display: none;
    }
}

/* Login background collage overrides */
.login-shell {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 8% 12%, rgba(255, 170, 84, 0.26), transparent 20%),
        radial-gradient(circle at 84% 12%, rgba(25, 180, 190, 0.22), transparent 22%),
        radial-gradient(circle at 84% 88%, rgba(239, 131, 84, 0.16), transparent 24%),
        linear-gradient(135deg, #f7f8fb 0%, #edf2f8 46%, #e4ebf3 100%);
}

.login-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.82) 22%, rgba(255, 255, 255, 0.42) 48%, rgba(255, 255, 255, 0.18) 100%);
    z-index: -3;
}

.login-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(247, 249, 252, 0.96) 0%, rgba(247, 249, 252, 0.90) 28%, rgba(247, 249, 252, 0.54) 54%, rgba(247, 249, 252, 0.30) 100%);
    z-index: -1;
    pointer-events: none;
}

.login-food-collage {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    filter: saturate(1.08);
}

.login-food-card {
    position: absolute;
    border-radius: 34px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.20);
    border: 1px solid rgba(255, 255, 255, 0.72);
    overflow: hidden;
    opacity: 0.96;
}

.login-food-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(12, 19, 29, 0.06), rgba(12, 19, 29, 0.18)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
}

.login-food-card.pizza {
    width: 330px;
    height: 250px;
    left: 34px;
    top: 54px;
    transform: rotate(-11deg);
    background-image: url("../assets/login/Pizza.jpg");
}

.login-food-card.burger {
    width: 380px;
    height: 265px;
    right: 34px;
    top: 44px;
    transform: rotate(8deg);
    background-image: url("../assets/login/burger.jpg");
}

.login-food-card.shawarma {
    width: 300px;
    height: 220px;
    left: 76px;
    bottom: 66px;
    transform: rotate(6deg);
    background-image: url("../assets/login/Sharwarma.jpeg");
}

.login-food-card.roll {
    width: 250px;
    height: 192px;
    right: 148px;
    bottom: 56px;
    transform: rotate(-7deg);
    background-image: url("../assets/login/Roll Paratha.jpg");
}

.login-food-card.karahi {
    width: 280px;
    height: 206px;
    left: 340px;
    bottom: 108px;
    transform: rotate(-3deg);
    background-image: url("../assets/login/Karahi.jpg");
}

.login-card {
    position: relative;
    z-index: 2;
    width: min(980px, 100%);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 24px 60px rgba(31, 55, 86, 0.16);
    backdrop-filter: blur(16px);
}

@media (max-width: 1220px) {
    .login-food-card.karahi,
    .login-food-card.roll {
        display: none;
    }
}

@media (max-width: 980px) {
    .login-food-collage {
        display: none;
    }
}
/* Login image visibility tuning */
.login-shell::after {
    background: linear-gradient(90deg, rgba(247, 249, 252, 0.80) 0%, rgba(247, 249, 252, 0.72) 26%, rgba(247, 249, 252, 0.44) 52%, rgba(247, 249, 252, 0.22) 100%);
}

.login-food-card::after {
    background:
        linear-gradient(180deg, rgba(12, 19, 29, 0.03), rgba(12, 19, 29, 0.12)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.login-food-card.pizza {
    width: 360px;
    height: 270px;
    left: 28px;
    top: 34px;
    background-position: center center;
    opacity: 1;
}

.login-food-card.shawarma {
    width: 318px;
    height: 235px;
    left: 58px;
    bottom: 44px;
    background-position: center center;
    opacity: 1;
}

.login-food-card.karahi {
    width: 300px;
    height: 220px;
    left: 360px;
    bottom: 92px;
    background-position: center center;
    opacity: 1;
}
/* Login image visibility tuning 2 */
.login-shell::after {
    background: linear-gradient(90deg, rgba(247, 249, 252, 0.64) 0%, rgba(247, 249, 252, 0.56) 24%, rgba(247, 249, 252, 0.30) 48%, rgba(247, 249, 252, 0.16) 100%);
}

.login-food-card.pizza::after,
.login-food-card.shawarma::after,
.login-food-card.karahi::after {
    background:
        linear-gradient(180deg, rgba(12, 19, 29, 0.01), rgba(12, 19, 29, 0.06)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0));
}

.login-food-card.pizza {
    width: 388px;
    height: 286px;
    left: 18px;
    top: 20px;
    transform: rotate(-9deg);
    filter: saturate(1.08) contrast(1.03);
}

.login-food-card.shawarma {
    width: 336px;
    height: 248px;
    left: 42px;
    bottom: 28px;
    transform: rotate(4deg);
    filter: saturate(1.08) contrast(1.03);
}

.login-food-card.karahi {
    width: 318px;
    height: 232px;
    left: 372px;
    bottom: 84px;
    transform: rotate(-2deg);
    filter: saturate(1.1) contrast(1.04);
}
.activation-card {
    grid-template-columns: 1.05fr .95fr;
}

.activation-brand {
    align-items: flex-start;
}

.activation-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: white;
    color: var(--text);
    resize: vertical;
    min-height: 118px;
}

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

.activation-copy-btn {
    min-width: 96px;
    background: linear-gradient(135deg, #5f6d84, #48576d);
}

.activation-status {
    margin: 0;
    min-height: 18px;
    color: #1c8f41;
    font-size: 13px;
    font-weight: 600;
}

/* Terra POS Pro login branding */
.login-shell {
    background:
        radial-gradient(circle at 10% 12%, rgba(37, 99, 235, 0.22), transparent 20%),
        radial-gradient(circle at 82% 16%, rgba(16, 185, 129, 0.18), transparent 22%),
        radial-gradient(circle at 78% 82%, rgba(249, 115, 22, 0.16), transparent 24%),
        linear-gradient(135deg, #f8fafc 0%, #edf4fb 48%, #e5edf6 100%);
}

.login-food-card {
    display: flex;
    align-items: flex-end;
    padding: 24px;
    background-size: cover !important;
    background-position: center !important;
}

.login-food-card::before {
    content: "";
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #fff;
    background: rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
}

.login-food-card.pizza {
    background-image:
        linear-gradient(180deg, rgba(9, 19, 35, 0.05), rgba(9, 19, 35, 0.52)),
        url("../assets/login/logo.png") !important;
}

.login-food-card.pizza::before {
    content: "PRODUCTS";
}

.login-food-card.burger {
    background-image:
        linear-gradient(180deg, rgba(9, 19, 35, 0.05), rgba(9, 19, 35, 0.52)),
        url("../assets/login/logo.png") !important;
}

.login-food-card.burger::before {
    content: "INVENTORY";
}

.login-food-card.shawarma {
    background-image:
        linear-gradient(180deg, rgba(9, 19, 35, 0.05), rgba(9, 19, 35, 0.52)),
        url("../assets/login/logo.png") !important;
}

.login-food-card.shawarma::before {
    content: "SALES";
}

.login-food-card.roll {
    background-image:
        linear-gradient(180deg, rgba(9, 19, 35, 0.05), rgba(9, 19, 35, 0.52)),
        url("../assets/login/logo.png") !important;
}

.login-food-card.roll::before {
    content: "CUSTOMERS";
}

.login-food-card.karahi {
    background-image:
        linear-gradient(180deg, rgba(9, 19, 35, 0.05), rgba(9, 19, 35, 0.52)),
        url("../assets/login/logo.png") !important;
}

.login-food-card.karahi::before {
    content: "TERRA POS PRO";
}

.barcode-label-grid {
    align-items: start;
}

.barcode-preview-panel {
    min-height: 100%;
}

.barcode-label-preview {
    display: grid;
    place-items: center;
    min-height: 280px;
}

.barcode-label-card {
    width: min(100%, 360px);
    padding: 22px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #d6e2ef;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.barcode-label-card.wide {
    width: min(100%, 420px);
}

.barcode-label-card.narrow {
    width: min(100%, 300px);
}

.barcode-label-card.compact {
    width: min(100%, 320px);
    padding: 10px 12px 9px;
    border-radius: 14px;
}

.barcode-label-name {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 800;
    color: #10233d;
    text-align: center;
}

.barcode-label-price {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #0f766e;
    text-align: center;
}

.barcode-svg-wrap {
    padding: 10px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.barcode-svg-wrap svg {
    display: block;
    width: 100%;
    height: auto;
}

.barcode-label-card.compact .barcode-label-name {
    margin-bottom: 3px;
    font-size: 12px;
    line-height: 1.25;
}

.barcode-label-card.compact .barcode-label-price {
    margin-bottom: 6px;
    font-size: 11px;
}

.barcode-label-card.compact .barcode-svg-wrap {
    padding: 4px 3px 2px;
    border-radius: 10px;
}

.barcode-label-card.compact .barcode-svg-wrap svg {
    min-height: 46px;
}

.barcode-label-code {
    margin-top: 4px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #27364a;
    letter-spacing: 0.08em;
}

.barcode-label-card.compact .barcode-label-meta {
    margin-top: 5px;
    font-size: 11px;
}

.barcode-label-meta {
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #526174;
}

@media (max-width: 1180px) {
    .catalog-toolbar {
        grid-template-columns: 1fr;
    }
}
