:root {
    color-scheme: light;
    --ink: #17231e;
    --muted: #718078;
    --line: #e6ebe7;
    --paper: #f5f7f4;
    --green: #147a55;
    --green-dark: #0d5b3e;
    --red: #bd4c42;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; }
.shell.tables-layout { height: 100dvh; min-height: 0; overflow: hidden; }
.tables-layout > .sidebar { height: 100dvh; min-height: 0; padding-bottom: 12px; }
.tables-layout > .main { height: 100dvh; overflow: hidden; }
.tables-layout > .sidebar > .nav { min-height: 0; overflow-y: auto; }
.sidebar { display: flex; min-height: 100vh; flex-direction: column; background: #162820; color: #e8f0eb; padding: 16px 17px 25px; }
.mobile-brand-datetime { display: grid; flex: 0 0 auto; gap: 0; color: #c7d4cc; font-size: 9px; line-height: 1.1; font-variant-numeric: tabular-nums; text-align: left; white-space: nowrap; }
.mobile-brand-datetime [data-clock-date] { color: #aabbb0; }
.mobile-brand-datetime [data-clock-time] { color: #fff; font-weight: 650; }
.mobile-sidebar-business-name { max-width: 100%; padding: 0; border: 0; background: transparent; color: #c7d4cc; font: inherit; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.nav-toggle { display: none; }
.brand { padding: 0 12px 4px; }
.sidebar .brand { display: flex; min-width: 0; align-items: center; gap: 8px; }
.sidebar .brand-heading { display: grid; min-width: 0; flex: 1 1 auto; justify-items: center; }
.sidebar .brand > .brand-heading > .brand-home { min-width: 0; max-width: 100%; overflow: hidden; }
.sidebar .brand .sidebar-business-name { display: block; max-width: 100%; overflow: hidden; padding: 0; border: 0; background: transparent; color: #c7d4cc; font: inherit; font-size: 10px; line-height: 1.2; text-align: center; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.sidebar .brand .sidebar-staff-username { display: block; max-width: 100%; margin-top: 2.4em; overflow: hidden; color: #c7d4cc; font-size: 10px; line-height: 1.2; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.sidebar .brand .sidebar-business-name:hover,
.sidebar .brand .mobile-sidebar-business-name:hover { color: #fff; text-decoration: underline; }
.sidebar .brand .sidebar-business-name:focus-visible,
.sidebar .brand .mobile-sidebar-business-name:focus-visible { border-radius: 3px; outline: 1px solid #d8f1e2; outline-offset: 2px; }
.sidebar .brand .mobile-brand-datetime { font-size: 9px; line-height: 1.1; }
.sidebar .brand .mobile-brand-datetime > span { font-size: inherit; line-height: inherit; }
.sidebar .brand > .mobile-brand-datetime { display: none; }
.sidebar-desktop-clock { display: flex; justify-content: center; margin-top: 8px; padding: 0; text-align: center; }
.sidebar-desktop-clock .mobile-brand-datetime { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 1.3; }
@media (min-width: 901px) {
    .sidebar > .brand-context { flex-direction: row; justify-content: center; gap: 8px; margin-right: 0; margin-left: 0; overflow: visible; text-align: center; white-space: nowrap; }
    .sidebar > .brand-context > * { flex: 0 0 auto; }
    .sidebar .brand > .brand-heading > .brand-home { display: block; width: 100%; text-align: center; }
    .sidebar .brand > .brand-heading > .brand-home strong { text-align: center; white-space: normal; overflow-wrap: anywhere; }
}
.brand-home { display: inline-block; color: inherit; }
.brand-home:focus-visible { border-radius: 3px; outline: 2px solid #d8f1e2; outline-offset: 3px; }
.brand strong { display: block; font-size: 21px; letter-spacing: .02em; }
.brand span { color: #aabbb0; font-size: 12px; }
.brand-context { display: flex; min-width: 0; align-items: center; gap: 7px; margin: 2px 12px 0; padding: 0; border: 0; background: transparent; color: #c7d4cc; font: inherit; font-size: 10px; line-height: 1.4; text-align: center; white-space: nowrap; cursor: pointer; scrollbar-width: thin; scrollbar-color: #718078 #ffffff12; }
.brand-context::-webkit-scrollbar { height: 4px; }
.brand-context::-webkit-scrollbar-thumb { border-radius: 4px; background: #718078; }
.brand-context:focus-visible { outline: 1px solid #d8f1e2; outline-offset: 2px; }
.brand-context:hover { color: #fff; background: #ffffff12; }
.brand-context > * { flex: 0 0 auto; }
.brand-context strong { color: #fff; font-size: inherit; }
.brand-context time { color: #aabbb0; font-variant-numeric: tabular-nums; }
.nav { display: flex; flex: 1; flex-direction: column; gap: 2px; margin-top: 56px; }
.nav a,
.nav .nav-logout .btn { border: 1px solid #ffffff12; border-radius: 4px; color: #c7d4cc; background: #ffffff12; }
.nav a { display: flex; min-height: 28px; align-items: center; padding: 3px 10px; font-size: 13px; line-height: 20px; }
.nav a:hover,
.nav .nav-logout .btn:hover { color: #fff; background: #ffffff20; }
.nav a.active,
.nav a.active:hover { border-color: var(--red); color: #fff; background: var(--red); }
.nav .nav-label { color: #82968a; font-size: 11px; letter-spacing: .11em; padding: 14px 12px 4px; text-transform: uppercase; }
.nav-settings-logout { display: contents; }
.nav-logout { margin-top: 0; }
.nav-settings-logout > a { width: 100%; }
.nav-logout .btn { width: 100%; min-height: 28px; justify-content: flex-start; padding: 3px 10px; font-size: 13px; line-height: 20px; }
.orders-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.orders-table th { padding: 10px 8px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 700; text-align: left; vertical-align: bottom; }
.orders-table th:nth-child(1), .orders-table td:nth-child(1),
.orders-table th:nth-child(2), .orders-table td:nth-child(2),
.orders-table th:nth-child(3), .orders-table td:nth-child(3),
.orders-table th:nth-child(6), .orders-table td:nth-child(6),
.orders-table th:nth-child(7), .orders-table td:nth-child(7) { width: 20%; }
.orders-table th:nth-child(4), .orders-table td:nth-child(4),
.orders-table th:nth-child(5), .orders-table td:nth-child(5) { display: none; }
.orders-table th:nth-child(6), .orders-table td:nth-child(6) { text-align: right; white-space: nowrap; }
.orders-table th:nth-child(7), .orders-table td:nth-child(7) { text-align: center; }
.orders-table th:nth-child(8), .orders-table td:nth-child(8) { width: 0; }
.orders-table-wrap > .orders-table > thead th:last-child,
.orders-table-wrap > .orders-table > tbody > tr[data-order-row] > td:last-child { display: none; }
.orders-desktop-heading { display: inline; }
.orders-mobile-headings { display: none; }
.orders-table tr[data-order-row] { cursor: pointer; }
.orders-table tr[data-order-row]:hover { background: #f7faf7; }
.orders-table tr[data-order-row].order-row-cancelled { background: #f8d9d6; }
.orders-table tr[data-order-row].order-row-cancelled:hover { background: #f2c5c0; }
.orders-table tr[data-order-row].order-row-approved { background: #d8efdf; }
.orders-table tr[data-order-row].order-row-approved:hover { background: #c6e6d0; }
.orders-table tr[data-order-row].order-row-pending { background: #edf5fc; }
.orders-table tr[data-order-row].order-row-pending:hover { background: #e1effa; }
.orders-table tr[data-order-row]:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.orders-table tr[data-order-row] td { padding: 6px 8px; border-bottom: 2px solid #b8c8bd; overflow-wrap: anywhere; vertical-align: middle; }
.orders-table tr[data-order-row] td.order-summary-cell { width: 20%; }
.order-creator-mobile { display: none; }
.orders-table tr[data-order-row] td[data-label="Durum"] { text-align: center; white-space: nowrap; }
.order-status-completed { display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; vertical-align: middle; }
.order-status-completed svg { display: block; width: 18px; height: 18px; }
.order-status-completed circle { fill: #4caf50; }
.order-status-completed path { fill: none; stroke: #c8f28b; stroke-linecap: square; stroke-linejoin: miter; stroke-width: 3.2; }
.order-status-cancelled { display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; color: #a43e35; vertical-align: middle; }
.order-status-cancelled svg { display: block; width: 18px; height: 18px; flex: 0 0 18px; }
.order-status-cancelled circle { fill: #bd4c42; }
.order-status-cancelled path { fill: none; stroke: #fff; stroke-linecap: round; stroke-width: 2.5; }
.orders-table tr[data-order-row] td[data-label="İşlem"] { font-size: 11px; }
.orders-table tr[data-order-row] td[data-label="İşlem"] .actions { gap: 5px; }
.orders-table tr[data-order-row] td[data-label="İşlem"] select { max-width: 100%; padding: 6px; font-size: 11px; }
.order-summary-primary { display: flex; min-width: 0; flex-direction: row; align-items: center; gap: 8px; }
.order-summary-primary > strong,
.order-summary-primary > time { flex: 0 0 auto; }
.order-summary-primary > strong { white-space: nowrap; }
.order-summary-primary > time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.order-summary-primary .badge { flex: 0 0 auto; }
.order-summary-location { min-width: 0; flex: 1 1 0; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.order-summary-amount { flex: 0 0 auto; color: var(--green-dark); font-variant-numeric: tabular-nums; white-space: nowrap; }
.orders-table tbody tr[data-order-row] .order-summary-primary .order-type-badge,
.orders-table tbody tr[data-order-row] .order-summary-location,
.orders-table tbody tr[data-order-row] .order-summary-amount { display: none; }
@media (max-width: 760px) {
    .orders-table { table-layout: fixed; }
    .orders-table thead { display: table-header-group; }
    .orders-table thead tr { display: table-row; }
    .orders-table thead th { display: none; padding: 8px 5px; font-size: 11px; }
    .orders-table thead th:nth-child(1),
    .orders-table thead th:nth-child(7) { display: table-cell; }
    .orders-desktop-heading { display: none; }
    .orders-mobile-headings { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); column-gap: 6px; }
    .orders-mobile-headings span:nth-child(2) { display: none; }
    .orders-mobile-headings span:nth-child(3) { grid-column: 3; text-align: right; }
    .orders-table thead th:nth-child(1),
    .orders-table tr[data-order-row] td:nth-child(1) { width: calc(100% - 92px); }
    .orders-table thead th:nth-child(7),
    .orders-table tr[data-order-row] td:nth-child(7) { width: 92px; }
    .orders-table thead th:nth-child(7) { text-align: center; }
    .orders-table tr[data-order-row] td:nth-child(2),
    .orders-table tr[data-order-row] td:nth-child(3),
    .orders-table tr[data-order-row] td:nth-child(4),
    .orders-table tr[data-order-row] td:nth-child(5) { display: none; }
    .orders-table tr[data-order-row] td[data-label="Tutar"] { display: none; }
    .orders-table tbody tr[data-order-row] .order-summary-location,
    .orders-table tbody tr[data-order-row] .order-summary-amount { display: block; }
    .orders-table tbody tr[data-order-row] .order-summary-location { display: none; }
    .orders-table tbody tr[data-order-row] .order-creator-mobile { display: block; color: var(--muted); }
    .orders-table tr[data-order-row] td.order-summary-cell { width: calc(100% - 92px); }
    .orders-table tr[data-order-row] td[data-label="Durum"] { width: 82px; text-align: center; }
    .order-summary-primary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; column-gap: 6px; row-gap: 2px; }
    .order-summary-primary > strong { font-size: 11px; }
    .order-summary-primary > strong { grid-column: 1; grid-row: 1; }
    .order-summary-primary > time { grid-column: 1; grid-row: 2; justify-self: start; font-size: 10px; }
    .order-summary-primary > .order-creator-mobile { grid-column: 2; grid-row: 1; align-self: center; margin: 0; text-align: center; font-size: 10px; line-height: 1.25; overflow-wrap: anywhere; }
    .orders-table tbody tr[data-order-row] .order-creator-mobile { display: none; }
    .order-summary-primary > strong.order-summary-amount { grid-column: 3; grid-row: 1 / span 2; justify-self: end; align-self: start; }
    .order-summary-primary .order-type-badge { display: block; grid-column: 3; grid-row: 2; justify-self: end; align-self: start; }
    .order-summary-location { grid-column: 2; grid-row: 2; justify-self: center; font-size: 11px; text-align: center; }
    .order-summary-amount { grid-column: 3; grid-row: 1 / span 2; justify-self: end; align-self: start; margin-left: 0; font-size: 12px; }
}
.main { min-width: 0; }
.topbar { position: relative; min-height: 74px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 32px; }
.topbar small { color: var(--muted); }
.subscription-status { position: absolute; top: 50%; left: 50%; display: grid; gap: 1px; transform: translate(-50%, -50%); text-align: center; }
.subscription-status strong { color: var(--green-dark); font-size: 13px; }
.subscription-status span { color: var(--muted); font-size: 12px; }
.subscription-status .btn { justify-self: center; margin-top: 4px; }
.orders-filter { display: grid; grid-template-columns: minmax(135px, 1.1fr) repeat(2, minmax(120px, .85fr)) repeat(3, minmax(130px, 1fr)) auto; align-items: end; gap: 12px; margin-bottom: 16px; padding: 14px; }
.orders-filter .field { display: grid; min-width: 0; gap: 5px; margin: 0; }
.orders-filter .field > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.orders-filter select, .orders-filter input { width: 100%; min-height: 40px; }
.orders-filter-actions { display: flex; align-items: center; gap: 8px; }
.orders-filter-actions .btn { min-height: 40px; white-space: nowrap; }
.orders-filter [hidden] { display: none !important; }
@media (min-width: 761px) and (max-width: 1050px) {
    .orders-filter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .orders-filter-actions { grid-column: 1 / -1; }
}
.content { max-width: 1440px; padding: 20px 32px 50px; margin: auto; }
h1 { margin: 0 0 7px; font-size: 27px; letter-spacing: -.03em; }
.content h1 { margin-bottom: 4px; color: var(--green); font-size: 12px; font-weight: 800; line-height: 1.5; letter-spacing: .12em; text-align: left; text-transform: uppercase; }
.content > .subtitle { margin-bottom: 12px; }
h2 { font-size: 18px; margin: 0 0 15px; }
.subtitle { color: var(--muted); margin: 0 0 25px; }
.grid { display: grid; gap: 17px; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 23px 0; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 20px; box-shadow: 0 3px 12px #1b3a2810; }
.stat-label { color: var(--muted); font-size: 13px; }
.stat-value { font-size: 24px; font-weight: 700; margin-top: 7px; }
.stat-value.compact { font-size: 17px; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0 10px; }
.reports-toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.reports-toolbar form,
.reports-toolbar form .btn { display: flex; width: 100%; }
.reports-toolbar form .btn { min-height: 44px; }
.reports-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reports-toolbar-actions { display: flex; align-items: center; gap: 8px; }
.reports-toolbar-actions form,
.reports-toolbar-actions form .btn { width: auto; }
.reports-toolbar-actions .reports-sales-open,
.reports-toolbar-actions form .btn { min-height: 40px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: 12px; font-weight: 650; white-space: nowrap; }
td { font-size: 14px; }
tr:last-child td { border-bottom: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.field { display: grid; align-content: start; gap: 6px; }
.field[hidden] { display: none; }
.field.full { grid-column: 1 / -1; }
.unit-field-controls { display: flex; align-items: stretch; gap: 8px; }
.stock-unit-quantity-row { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1.5fr) minmax(90px, 0.8fr); gap: 13px; }
.unit-field-controls input, .unit-field-controls select { flex: 1; width: 0; }
.unit-field-controls .btn { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 1100px) {
    #inventory .grid.two-col { grid-template-columns: 1fr; }
}
label { font-size: 13px; font-weight: 650; color: #43534a; }
input, select, textarea { border: 1px solid #d9e1db; border-radius: 8px; background: #fff; color: var(--ink); padding: 10px 11px; min-width: 0; }
.password-input-wrap { position: relative; width: 100%; }
.password-input-wrap input { width: 100%; padding-right: 44px; }
.password-visibility-toggle { position: absolute; top: 50%; right: 7px; display: grid; width: 32px; height: 32px; padding: 0; transform: translateY(-50%); place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.password-visibility-toggle:hover { background: #edf2ee; color: var(--ink); }
.password-visibility-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.password-visibility-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.password-visibility-toggle .eye-closed { display: none; }
.password-visibility-toggle[aria-pressed="true"] .eye-open { display: none; }
.password-visibility-toggle[aria-pressed="true"] .eye-closed { display: block; }
textarea { min-height: 76px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid #147a552b; border-color: var(--green); }
.btn { border: 0; border-radius: 8px; padding: 9px 13px; font-weight: 650; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #edf2ee; color: var(--ink); }
.btn:hover { filter: brightness(.97); }
.btn-primary { color: #fff; background: var(--green); }
.btn-primary:hover { background: var(--green-dark); }
.btn-danger { color: #fff; background: var(--red); }
.btn-small { padding: 6px 9px; font-size: 12px; }
.inline { display: inline; }
.muted { color: var(--muted); }
.order-detail-link { color: var(--green-dark); font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
.badge { display: inline-block; border-radius: 99px; padding: 4px 9px; background: #edf2ee; font-size: 12px; font-weight: 650; }
.badge.good { background: #e2f3e8; color: #17663d; }
.badge.warn { background: #fff2dc; color: #8a5c11; }
.badge.bad { background: #fae8e6; color: #a43e35; }
.order-type-badge.order-type-package { background: #fae8e6; color: #a43e35; }
.order-type-badge.order-type-table { background: #e3effa; color: #315d78; }
.order-type-badge.order-type-market { background: #e2f3e8; color: #17663d; }
.order-type-badge.order-type-collection { background: #efe7f8; color: #67418a; }
.notice { padding: 12px 15px; border-radius: 9px; margin-bottom: 17px; }
.notice.success { background: #e6f4ea; color: #1d6438; }
.notice.error { background: #fbe9e7; color: #963c33; }
.table-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.table-sales-actions { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.table-sales-actions > .table-card { width: 100%; }
.table-summary { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; align-items: start; gap: 10px; }
.table-summary-item { display: grid; align-self: start; min-width: 0; min-height: 48px; align-content: center; justify-items: center; gap: 3px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 2px 8px #1b3a280a; text-align: center; }
.table-summary-item span { max-width: 100%; color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.table-summary-item strong { min-width: 0; color: var(--green-dark); font-size: 17px; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.table-card { position: relative; min-width: 0; min-height: 118px; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; overflow: hidden; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tables-page-content > .table-cards > .table-card-list > .table-card:not(.market-sale-card):not(.package-order-card) { position: relative; gap: var(--table-card-gap, 12px); padding: var(--table-card-padding, 14px); }
.table-number-wrap { position: absolute; top: 5px; left: 5px; z-index: 1; min-width: 0; }
.table-number { width: var(--table-number-size, 48px); height: var(--table-number-size, 48px); display: grid; place-items: center; border: 1px solid #9db4a7; border-radius: 50%; color: var(--green-dark); background: #fff; box-shadow: 0 2px 6px #17231e30; font-size: var(--table-number-font-size, 21px); font-weight: 700; line-height: 1; white-space: nowrap; }
.table-card.table-card-compact:not(.table-card-has-total) { justify-content: flex-start; }
.table-card.available { border-color: #9fc6e2; background: #e4f2fc; }
.table-card.available .table-number { border-color: #a9cbe2; color: #315d78; }
.table-card.busy { border-color: #d8b27b; background: #f9ead5; }
.table-card.busy .table-number { border-color: #d6b68a; color: #77572d; }
.table-card.staff-table-locked { cursor: not-allowed; opacity: .65; }
.table-transfer-actions { position: absolute; right: 5px; bottom: 5px; left: 5px; z-index: 2; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.table-transfer-button { width: 28px; height: 26px; display: grid; place-items: center; padding: 3px; border: 1px solid #77572d80; border-radius: 8px; color: #60451f; background: #fffdf8; box-shadow: 0 1px 4px #17231e1a; cursor: pointer; pointer-events: auto; }
.table-transfer-button:disabled { color: #9aa59e; background: #f2f4f2; cursor: not-allowed; opacity: .75; }
.table-transfer-button:hover, .table-transfer-button:focus-visible { border-color: #60451f; color: #fff; background: #77572d; outline: 2px solid #fff; outline-offset: 1px; }
.table-transfer-button:disabled:hover { border-color: #77572d80; color: #9aa59e; background: #f2f4f2; outline: none; }
.table-transfer-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.table-transfer-dialog { width: min(520px, calc(100vw - 28px)); max-height: min(88vh, 720px); margin: auto; padding: 20px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: #fff; box-shadow: 0 22px 70px #10251b40; overflow-y: auto; }
.table-transfer-dialog::backdrop { background: #13231b88; }
.table-transfer-dialog form { display: grid; gap: 15px; }
.table-transfer-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.table-transfer-header h2 { margin: 0; font-size: 20px; }
.table-transfer-items { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.table-transfer-items legend { padding: 0 5px; color: var(--muted); font-size: 13px; font-weight: 700; }
.table-transfer-item-list { display: grid; max-height: min(42vh, 350px); gap: 8px; overflow-y: auto; }
.table-transfer-item { display: grid; grid-template-columns: 20px minmax(0, 1fr) minmax(126px, 148px); align-items: center; gap: 9px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.table-transfer-item span { min-width: 0; overflow-wrap: anywhere; }
.table-transfer-quantity-controls { display: grid; grid-template-columns: 30px minmax(48px, 1fr) 30px; align-items: center; gap: 4px; }
.table-transfer-quantity-controls input { width: 100%; min-width: 0; padding: 6px; text-align: center; }
.table-transfer-quantity-step { width: 30px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 7px; color: var(--green-dark); background: #f7faf8; font: inherit; font-size: 20px; font-weight: 700; line-height: 1; cursor: pointer; }
.table-transfer-quantity-step:hover:not(:disabled), .table-transfer-quantity-step:focus-visible { border-color: var(--green); background: #e7f3ed; outline: 2px solid #147a552b; }
.table-transfer-quantity-step:disabled { color: #9aa59e; background: #f2f4f2; cursor: not-allowed; }
.table-transfer-status { margin: 0; padding: 10px; border-radius: 8px; color: #963c33; background: #fbe9e7; font-size: 13px; }
.table-transfer-footer { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.table-pending-total { position: absolute; top: 50%; left: 50%; width: calc(100% - var(--table-card-padding, 14px) - var(--table-card-padding, 14px)); min-width: 0; margin: 0; transform: translate(-50%, -50%); color: var(--green-dark); font-size: var(--table-total-font-size, 20px); font-weight: 750; line-height: 1.2; text-align: center; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.table-card.package-order-card { grid-column: auto; min-height: 118px; justify-content: space-between; padding: 14px; border: 1px solid #a92727; color: #fff; background: #c83232; }
.table-card.market-sale-card { justify-content: center; gap: 10px; border: 1px solid #1d6849; color: #fff; background: #23865c; font: inherit; font-size: 19px; font-weight: 750; }
.table-card.market-sale-card:hover, .table-card.market-sale-card:focus-visible { border-color: #14543a; background: #1b714c; outline: 2px solid #14543a; outline-offset: 2px; }
.market-sale-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #ffffff80; border-radius: 50%; font-size: 27px; line-height: 1; }
.package-order-card-main { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; }
.package-order-create-button { padding: 0; border: 0; color: #fff; background: transparent; font: inherit; font-size: 20px; font-weight: 750; text-align: left; cursor: pointer; }
.package-order-create-button:hover, .package-order-create-button:focus-visible { color: #ffe3df; text-decoration: underline; outline: none; }
.package-orders-open-button { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #f2bcbc; border-radius: 9px; color: #fff; background: #a92727; font: inherit; font-size: 12px; font-weight: 700; line-height: 1.2; cursor: pointer; }
.package-orders-open-button:hover, .package-orders-open-button:focus-visible { border-color: #fff; background: #861e1e; outline: 2px solid #fff; outline-offset: 2px; }
.pending-package-orders-label { margin-top: 4px; color: #fff; font-size: 19px; font-weight: 800; line-height: 1.2; animation: pending-package-orders-blink 2s steps(1, end) infinite; }
@keyframes pending-package-orders-blink { 50% { visibility: hidden; } }
.package-orders-dialog { width: min(920px, calc(100vw - 28px)); max-height: min(90vh, 850px); margin: auto; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: #fff; color: var(--ink); box-shadow: 0 22px 70px #10251b40; overflow-y: auto; }
.package-orders-dialog::backdrop { background: #13231b88; }
.market-sale-dialog[open] { position: fixed; inset: 0; display: flex; flex-direction: column; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 18px clamp(14px, 3vw, 42px); border: 0; border-radius: 0; background: var(--paper); color: var(--ink); overflow: hidden; }
dialog.market-sale-dialog[open] { position: fixed !important; inset: 0 !important; top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important; display: flex !important; flex-direction: column !important; width: 100vw !important; min-width: 100vw !important; max-width: 100vw !important; height: 100vh !important; height: 100dvh !important; min-height: 100vh !important; min-height: 100dvh !important; max-height: 100vh !important; max-height: 100dvh !important; margin: 0 !important; padding: 18px clamp(14px, 3vw, 42px) !important; transform: none !important; border: 0 !important; border-radius: 0 !important; box-sizing: border-box !important; overflow: auto !important; }
.market-sale-dialog::backdrop { background: #13231bcc; }
.market-sale-close { width: auto; min-width: 82px; height: 40px; gap: 7px; padding: 0 10px; font-size: 18px; }
.market-sale-close span { font-size: 13px; font-weight: 700; }
.market-sale-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.market-sale-header h2 { margin: 2px 0 0; }
.market-sale-heading { display: grid; justify-items: start; gap: 7px; }
.market-sale-header-actions, .market-sales-header-actions { display: flex; align-items: center; gap: 8px; }
.market-sale-dialog #market-sale-form { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; padding-top: 14px; }
.market-sales-dialog[open] { position: fixed; inset: 0; display: flex; flex-direction: column; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 20px clamp(14px, 3vw, 42px); border: 0; border-radius: 0; background: var(--paper); color: var(--ink); overflow: hidden; }
dialog.market-sales-dialog[open] { position: fixed !important; inset: 0 !important; display: flex !important; flex-direction: column !important; width: 100vw !important; min-width: 100vw !important; max-width: 100vw !important; height: 100vh !important; height: 100dvh !important; min-height: 100vh !important; min-height: 100dvh !important; max-height: 100vh !important; max-height: 100dvh !important; margin: 0 !important; padding: 20px clamp(14px, 3vw, 42px) !important; border: 0 !important; border-radius: 0 !important; overflow: hidden !important; }
.market-sales-dialog::backdrop { background: #13231bcc; }
.market-sales-header { display: flex; flex: 0 0 auto; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.market-sales-header h2 { margin: 0; }
.market-sales-filters { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 14px 0; }
.market-sales-filters .field { min-width: 155px; }
.market-sales-filters .field label { font-size: 12px; font-weight: 650; }
.market-sales-filters input, .market-sales-filters select { min-height: 40px; }
.market-sales-quick-filters { display: flex; gap: 7px; }
.market-sales-apply { min-height: 40px; }
.market-sales-summary { display: grid; flex: 0 0 auto; grid-template-columns: repeat(2, minmax(0, 190px)); gap: 10px; padding-bottom: 8px; }
.market-sales-summary .card { display: grid; gap: 3px; padding: 11px 14px; }
.market-sales-summary .card span { color: var(--muted); font-size: 12px; }
.market-sales-summary .card strong { font-size: 18px; }
.market-sales-status { flex: 0 0 auto; min-height: 20px; margin: 0; color: var(--muted); font-size: 13px; }
.market-sales-table-wrap { width: 100%; min-width: 0; min-height: 0; flex: 1 1 auto; overflow-x: hidden; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.market-sales-table { width: 100%; max-width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; }
.market-sales-table th { position: sticky; top: 0; z-index: 1; background: #f7f9f7; }
.market-sales-table th, .market-sales-table td { overflow-wrap: anywhere; }
.market-sales-table { max-width: 100%; }
.market-sales-table th:nth-child(1) { width: 42%; }
.market-sales-table th:nth-child(2) { width: 35%; }
.market-sales-table th:nth-child(3) { width: 23%; }
.market-sales-table td { padding: 9px 10px; white-space: nowrap; }
.market-sales-table td.market-sales-customer, .market-sales-table td.market-sales-date { overflow: hidden; text-overflow: ellipsis; }
.market-sales-table .market-sales-amount { text-align: right; }
.market-sales-table td.market-sales-amount { font-weight: 700; white-space: nowrap; }
.market-sales-table tbody tr[data-sale-id] { cursor: pointer; }
.market-sales-table tbody tr[data-sale-id]:hover { background: #f3f8f4; }
.market-sales-table tbody tr[data-sale-id]:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.market-sale-detail-content { min-width: 0; }
.market-sale-detail-content h3 { margin: 0 0 4px; font-size: 17px; }
.market-sale-detail-summary { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.market-sale-detail-table { width: 100%; table-layout: fixed; }
.market-sale-detail-table th, .market-sale-detail-table td { padding: 8px; overflow-wrap: anywhere; }
.market-sale-detail-table th:nth-child(1) { width: 40%; }
.market-sale-detail-table th:nth-child(2) { width: 18%; }
.market-sale-detail-table th:nth-child(3), .market-sale-detail-table th:nth-child(4) { width: 21%; }
.market-sale-detail-table td:nth-child(n+2), .market-sale-detail-table th:nth-child(n+2) { text-align: right; }
.market-sales-pagination { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; }
.market-sales-pagination > div { display: flex; gap: 8px; }
.market-sale-workspace { display: grid; flex: 1 1 auto; min-height: 0; grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr); grid-template-rows: auto auto minmax(0, 1fr); grid-template-areas: "customer-label search-label" "customer search" "checkout catalog"; gap: 9px 20px; }
.market-sale-search-label { grid-area: search-label; }
.market-sale-customer-label { grid-area: customer-label; font-weight: 650; }
.market-sale-customer-label span { color: var(--muted); font-size: 11px; font-weight: 400; }
.market-sale-search-controls { grid-area: search; }
.market-sale-customer-controls { display: grid; grid-area: customer; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; }
.market-sale-customer-controls select { width: 100%; min-width: 0; min-height: 44px; }
.market-sale-add-customer { min-height: 44px; padding: 8px 10px; white-space: nowrap; }
.market-sale-current-balance { min-width: 0; margin-top: 0; padding: 7px 10px; font-size: 13px; text-align: center; overflow-wrap: anywhere; }
.market-sale-customer-controls .market-sale-current-balance { grid-column: 2; }
.application-dialog.market-sale-customer-dialog { width: min(560px, calc(100vw - 28px)); max-height: min(90dvh, 760px); }
.market-sale-customer-dialog #market-sale-customer-form > .btn { margin-top: 14px; }
.market-sale-mobile-product-controls { display: none; }
.market-sale-mobile-add { display: none; }
.market-sale-catalog { display: grid; grid-area: catalog; min-width: 0; min-height: 0; grid-template-rows: auto minmax(0, 1fr); gap: 9px; }
.market-sale-catalog-header { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; }
.market-sale-catalog-header strong { font-size: 14px; }
.market-sale-quick-empty { grid-column: 1 / -1; display: grid; align-self: stretch; place-items: center; margin: 0; padding: 18px 12px; text-align: center; }
.market-sale-quick-empty[hidden] { display: none; }
.market-sale-search-label { font-weight: 650; }
.market-sale-search-controls { position: relative; display: flex; min-width: 0; align-items: stretch; }
.market-sale-search-controls > input { width: 100%; min-height: 38px; padding: 6px 50px 6px 11px; }
.market-sale-search-controls .barcode-scan-button { display: inline-flex; width: 30px; height: 30px; }
.market-sale-categories { display: flex; min-width: 0; align-items: flex-start; gap: 8px; padding: 2px 1px 6px; overflow-x: auto; }
.market-sale-categories, .order-category-list { display: none !important; }
.market-sale-categories button { display: inline-flex; flex: 0 0 auto; min-height: 34px; height: 34px; align-items: center; justify-content: center; padding: 5px 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font: inherit; line-height: 1.2; white-space: nowrap; cursor: pointer; }
.market-sale-categories button.active { border-color: var(--green); color: #fff; background: var(--green); }
.market-sale-products { display: grid; min-width: 0; min-height: 0; grid-template-columns: repeat(var(--market-product-columns, 1), minmax(0, 1fr)); grid-template-rows: repeat(var(--market-product-rows, 1), minmax(74px, 1fr)); align-items: stretch; gap: 10px; padding: 2px; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; }
.market-sale-product { position: relative; isolation: isolate; display: flex; min-width: 0; min-height: 0; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px; overflow: hidden; border: 1px solid #dce8df; border-radius: 18px; background: linear-gradient(145deg, #fff 8%, #f5faf6 100%); color: var(--ink); font: inherit; text-align: center; cursor: pointer; box-shadow: 0 5px 15px #173c2810, inset 0 1px #ffffff; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease; }
.market-sale-product::before { position: absolute; z-index: 1; inset: 0; background: #fff9; content: ''; pointer-events: none; }
.market-sale-product[hidden] { display: none; }
.market-sale-product:hover:not(:disabled), .market-sale-product:focus-visible { border-color: var(--green); background: linear-gradient(145deg, #fff 8%, #edf7f0 100%); box-shadow: 0 10px 24px #147a5522, inset 0 1px #ffffff; outline: none; transform: translateY(-2px); }
.market-sale-product:focus-visible { outline: 3px solid #147a5540; outline-offset: 2px; }
.market-sale-product-image { position: absolute; z-index: 0; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .75; pointer-events: none; }
.market-sale-product-image[hidden] { display: none; }
.market-sale-product > strong, .market-sale-product > span, .market-sale-product > small { position: relative; z-index: 2; }
.market-sale-product strong { max-width: 100%; overflow-wrap: anywhere; font-size: clamp(20px, 1.7vw, 27px); font-weight: 800; line-height: 1.2; text-wrap: balance; text-shadow: 0 1px #fff; }
.market-sale-product > span { margin-top: 8px; color: var(--green-dark); font-size: clamp(18px, 1.35vw, 22px); font-weight: 800; }
.market-sale-product small { color: var(--muted); font-size: 12px; }
.market-sale-product:disabled { opacity: .55; cursor: not-allowed; }
.product-search-suggestions { position: absolute; z-index: 30; top: calc(100% + 5px); left: 0; right: 0; display: grid; max-height: min(55vh, 360px); padding: 5px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 12px 30px #10251b30; }
.product-search-suggestions[hidden] { display: none; }
.product-search-suggestion { display: grid; min-width: 0; gap: 2px; padding: 9px 10px; border: 0; border-radius: 7px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.product-search-suggestion:hover, .product-search-suggestion:focus-visible, .product-search-suggestion.is-active { background: #e8f4ec; outline: 2px solid #147a552b; outline-offset: -2px; }
.product-search-suggestion strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-search-suggestion span { color: var(--muted); font-size: 11px; }
.market-quick-products-dialog { width: min(760px, calc(100vw - 28px)); max-height: min(88vh, 820px); }
.market-quick-products-dialog:not([open]) { display: none !important; }
.market-quick-products-dialog[open] { display: flex; flex-direction: column; }
.market-quick-products-close-form { flex: 0 0 auto; margin: 0; }
.market-quick-products-dialog .application-dialog-header { flex: 0 0 auto; align-items: center; margin-bottom: 10px; }
.market-quick-products-dialog .application-dialog-header h2 { margin-top: 3px; }
.market-quick-products-intro, .market-stock-create-intro { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.market-quick-search-controls { position: relative; display: flex; min-width: 0; min-height: 0; flex: 1 1 auto; flex-direction: column; }
.market-quick-search-input-controls { position: relative; flex: 0 0 auto; }
.market-quick-search-input-controls > input { width: 100%; min-height: 44px; padding-right: 50px; }
.market-quick-search-input-controls .barcode-scan-button { display: inline-flex; }
.market-quick-product-results { position: static; display: block; max-height: min(52vh, 480px); min-height: 130px; margin-top: 10px; padding: 0; overflow: auto; border-color: #dbe6de; border-radius: 12px; box-shadow: 0 5px 18px #10251b0c; }
.market-quick-products-table { width: 100%; table-layout: fixed; }
.market-quick-products-table th { position: sticky; top: 0; z-index: 1; padding: 10px 12px; background: #f5f8f6; color: var(--muted); font-size: 11px; font-weight: 650; text-align: left; }
.market-quick-products-table th:last-child { width: 190px; text-align: right; }
.market-quick-products-table td { padding: 4px 8px; border-top: 1px solid #e8eee9; vertical-align: middle; }
.market-quick-product-option.is-active { background: #f0f7f2; }
.market-quick-product-details strong, .market-quick-product-details span { display: block; }
.market-quick-product-details strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-quick-product-details span { display: none; }
.market-quick-product-action-cell { text-align: right; }
.market-quick-product-action { min-width: 150px; justify-content: center; white-space: nowrap; }
.market-quick-product-action.is-quick { color: #8c3a32; background: #fff4f2; }
.market-quick-products-empty { padding: 20px 12px !important; text-align: center; }
.market-quick-product-create-cell { padding: 10px 12px !important; border-top: 1px solid #e8eee9; }
.market-quick-product-create { display: flex; width: 100%; min-height: 42px; align-items: center; justify-content: flex-start; padding: 9px 12px; border: 1px dashed #9ab9a5; border-radius: 8px; background: #f3f8f4; color: var(--green-dark); font: inherit; font-weight: 650; text-align: left; cursor: pointer; }
.market-quick-product-create:hover, .market-quick-product-create:focus-visible { background: #e8f4ec; outline: 2px solid #147a552b; outline-offset: -2px; }
.market-stock-create-dialog { width: min(620px, calc(100vw - 28px)); }
.market-stock-create-dialog .application-dialog-header { align-items: center; margin-bottom: 8px; }
.market-stock-create-dialog .application-dialog-header h2 { margin-top: 3px; }
.market-stock-create-dialog .form-grid { margin-top: 14px; }
.market-stock-create-dialog .barcode-input-controls > .barcode-scan-button { display: inline-flex; }
.market-stock-create-dialog #market-stock-create-submit { width: 100%; min-height: 46px; justify-content: center; margin-top: 18px; }
.market-sale-checkout { display: flex; grid-area: checkout; min-width: 0; min-height: 0; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 3px 12px #1b3a2810; }
.market-sale-cart-table-head, .market-sale-cart-line { display: grid; grid-template-columns: minmax(0, 1fr) 104px minmax(72px, auto) 28px; align-items: center; gap: 6px; }
.market-sale-cart-table-head { padding: 5px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 700; }
.market-sale-cart-table-head > :nth-child(2) { text-align: center; }
.market-sale-cart-table-head > :nth-child(3) { text-align: right; }
.market-sale-cart-lines { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; gap: 0; overflow-y: auto; }
.market-sale-cart-line { padding: 5px 0; border-bottom: 1px solid var(--line); }
.market-sale-cart-product { display: grid; min-width: 0; gap: 1px; }
.market-sale-cart-product strong { overflow-wrap: anywhere; }
.market-sale-cart-product small { color: var(--muted); }
.market-sale-quantity-controls { display: flex; width: 78px; height: 28px; align-items: stretch; overflow: hidden; border: 1px solid #cbd8cf; border-radius: 6px; background: #fff; }
.market-sale-remove { display: grid; width: 25px; height: 28px; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; cursor: pointer; }
.market-sale-quantity-controls input { width: 56px; min-width: 0; height: 26px; padding: 3px 2px; border: 0; border-radius: 0; text-align: center; appearance: textfield; }
.market-sale-quantity-controls input::-webkit-inner-spin-button,
.market-sale-quantity-controls input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.market-sale-quantity-steps { display: flex; width: 20px; flex: 0 0 20px; flex-direction: column; border-left: 1px solid #d9e1db; }
.market-sale-quantity-step { display: flex; min-height: 0; flex: 1 1 50%; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 0; background: #f3f7f4; color: var(--green-dark); font-size: 8px; line-height: 1; cursor: pointer; }
.market-sale-quantity-step + .market-sale-quantity-step { border-top: 1px solid #d9e1db; }
.market-sale-quantity-step:hover,
.market-sale-quantity-step:focus-visible { background: #dceee2; color: var(--green-dark); }
.market-sale-line-total { white-space: nowrap; text-align: right; font-size: 13px; }
.market-sale-remove { border: 0; color: var(--red); background: #fae8e6; font-size: 20px; }
.market-sale-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 15px; }
.market-sale-cart-trigger { cursor: default; }
.market-sale-cart-trigger:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.market-sale-cart-label { display: none; }
.market-sale-total strong { font-size: 19px; color: var(--green-dark); }
.market-sale-cart-dialog { width: min(720px, calc(100vw - 28px)); height: min(80vh, 760px); }
.market-sale-cart-dialog .application-dialog-header { align-items: center; margin-bottom: 12px; }
.market-sale-cart-dialog .application-dialog-header h2 { margin: 0; }
.market-sale-cart-dialog-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 12px; border-radius: 9px; background: #f1f6f2; }
.market-sale-cart-dialog-summary > :last-child { color: var(--green-dark); font-size: 18px; }
.market-sale-cart-dialog-lines { min-height: 0; overflow-y: auto; }
.market-sale-cart-dialog-lines .market-sale-cart-lines { max-height: 100%; }
@media (min-width: 761px) {
    .market-sale-cart-product strong { font-size: 12px; line-height: 1.25; }
    .market-sale-cart-line { padding: 3px 0; }
    .market-sale-quantity-controls { width: 78px; }
    .market-sale-quantity-controls input { width: 56px; height: 26px; padding: 3px 2px; font-size: 12px; }
    .market-sale-line-total { font-size: 11px; font-variant-numeric: tabular-nums; }
}
.market-sale-checkout .field { display: grid; gap: 6px; }
.market-sale-checkout [hidden] { display: none; }
.market-sale-error { margin: 0; padding: 10px 12px; border-radius: 8px; color: #963c33; background: #fbe9e7; }
.market-sale-error.is-success { color: #205e38; background: #e9f6ed; }
.market-sale-submit { width: 100%; min-height: 48px; justify-content: center; }
.market-sale-submit:disabled { opacity: .55; cursor: not-allowed; }
.market-sale-preview-trigger { display: none; }
.market-sale-payment-dialog { width: min(420px, calc(100vw - 28px)); }
.market-sale-payment-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 16px; padding: 12px; border-radius: 9px; background: #f1f6f2; }
.market-sale-payment-total strong { color: var(--green-dark); font-size: 20px; }
.market-sale-credit-note { margin: 8px 0 0; }
.market-sale-payment-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.market-sale-product-picker-content { min-width: 0; }
.package-orders-dialog .application-dialog-header { align-items: center; margin-bottom: 8px; }
.package-orders-dialog .application-dialog-header h2 { margin: 0; }
.package-orders-dialog > .subtitle { margin: 0 0 16px; }
.package-orders-table-wrap { width: 100%; overflow-x: auto; }
.package-orders-table { min-width: 520px; border-collapse: separate; border-spacing: 0 5px; }
.package-orders-table th { padding: 9px 10px; color: var(--muted); font-size: 12px; font-weight: 750; text-align: left; }
.package-orders-table td { padding: 9px 10px; border-top: 1px solid transparent; border-bottom: 1px solid transparent; transition: background-color .15s ease, border-color .15s ease; }
.package-orders-table td:first-child { border-left: 1px solid transparent; border-radius: 9px 0 0 9px; }
.package-orders-table td:last-child { border-right: 1px solid transparent; border-radius: 0 9px 9px 0; }
.package-orders-table td:nth-child(2) { white-space: nowrap; }
.package-orders-table tbody tr[data-package-order-row] { cursor: pointer; }
.package-orders-table tbody tr.package-order-row-iptal > td { border-color: #dc8f88; background: #f3c3bf; }
.package-orders-table tbody tr.package-order-row-iptal:hover > td { background: #eaa9a4; }
.package-orders-table tbody tr.package-order-row-onaylandi > td { border-color: #43885a; background: #83bd91; }
.package-orders-table tbody tr.package-order-row-onaylandi:hover > td { background: #70ad80; }
.package-orders-table tbody tr.package-order-row-onaylandi .badge.good { color: #0c3f23; background: #78b687; }
.package-orders-table tbody tr.package-order-row-bekliyor > td { border-color: #80aede; background: #c5dcf4; }
.package-orders-table tbody tr.package-order-row-bekliyor:hover > td { background: #accbed; }
.package-orders-table tbody tr.package-order-row-bekliyor .badge.warn { color: #183f68; background: #a9c9ed; }
.package-orders-table tbody tr.package-order-row-iptal .badge.bad { color: #70201b; background: #e8a9a4; }
.package-orders-table tbody tr[data-package-order-row]:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.package-order-status-icon { display: inline-flex; width: 20px; height: 20px; flex: 0 0 20px; align-items: center; justify-content: center; }
.package-order-status-icon svg { display: block; width: 18px; height: 18px; }
.package-order-status-cancelled svg circle,
.package-order-status-cancelled svg path,
.package-order-status-pending svg circle,
.package-order-status-pending svg path { fill: none; stroke: currentColor; stroke-width: 1.7; }
.package-order-status-cancelled { color: #84231e; }
.package-order-status-cancelled svg path { stroke-linecap: round; }
.package-order-status-completed svg circle { fill: #4caf50; }
.package-order-status-completed svg path { fill: none; stroke: #c8f28b; stroke-linecap: square; stroke-linejoin: miter; stroke-width: 3.2; }
.package-order-status-pending { color: #204c7d; }
.package-order-customer { display: block; }
.package-order-details-dialog { width: min(680px, calc(100vw - 28px)); max-height: min(82vh, 740px); margin: auto; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; color: var(--ink); box-shadow: 0 22px 70px #10251b55; overflow-y: auto; }
.package-order-details-dialog::backdrop { background: #13231b99; }
.package-order-details-dialog .application-dialog-header { align-items: flex-start; margin-bottom: 8px; }
.package-order-details-dialog .application-dialog-header h2 { margin: 0; overflow-wrap: anywhere; }
.package-order-details-heading { display: grid; min-width: 0; gap: 2px; }
.package-order-details-heading span { color: var(--muted); font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.package-order-customer-contact { display: grid; gap: 2px; margin: 0 0 8px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.package-order-customer-contact span { overflow-wrap: anywhere; }
.package-order-details-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 12px; margin-bottom: 9px; color: var(--muted); font-size: 12px; }
.package-order-details-meta strong { color: var(--ink); }
.package-order-details-dialog .table-wrap { width: 100%; max-width: 100%; min-width: 0; overflow-x: hidden; }
.package-order-details-dialog .package-order-details-table { width: 100%; min-width: 0; table-layout: fixed; }
.package-order-details-dialog .package-order-details-table th,
.package-order-details-dialog .package-order-details-table td { min-width: 0; padding: 8px 4px; overflow-wrap: anywhere; }
.package-order-details-dialog .package-order-details-table th:first-child,
.package-order-details-dialog .package-order-details-table td:first-child { width: 38%; text-align: left; }
.package-order-details-dialog .package-order-details-table th:nth-child(2),
.package-order-details-dialog .package-order-details-table td:nth-child(2) { width: 14%; text-align: left; white-space: nowrap; }
.package-order-details-dialog .package-order-details-table th:nth-child(3),
.package-order-details-dialog .package-order-details-table td:nth-child(3) { width: 24%; text-align: left; }
.package-order-details-dialog .package-order-details-table th:nth-child(4),
.package-order-details-dialog .package-order-details-table td:nth-child(4) { width: 24%; text-align: left; }
.print-preview-dialog { width: min(900px, calc(100vw - 28px)); height: min(78dvh, 760px); max-height: 78dvh; margin: auto; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #fff; color: var(--ink); box-shadow: 0 22px 70px #10251b55; overflow: hidden; }
.print-preview-dialog[open] { display: flex; flex-direction: column; }
.print-preview-dialog::backdrop { background: #13231bcc; backdrop-filter: blur(2px); }
.print-preview-dialog .application-dialog-header { position: static; flex: 0 0 auto; align-items: center; gap: 12px; margin: 0 0 10px; padding: 0 0 10px; border-bottom: 1px solid var(--line); background: #fff; }
.print-preview-dialog .application-dialog-header h2 { margin: 0; }
.print-paper-controls { display: flex; min-width: 0; align-items: center; justify-content: flex-end; margin: 0 0 0 auto; }
.print-paper-controls select { width: 132px; min-width: 0; min-height: 38px; padding: 6px 8px; font-size: 13px; }
.print-preview-dialog iframe { display: block; width: 100%; min-height: 0; flex: 1 1 auto; border: 1px solid var(--line); border-radius: 8px; background: #f3f5f3; }
.print-preview-actions { display: flex; flex: 0 0 auto; justify-content: flex-end; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.ticket-preview-embedded .no-print { display: none !important; }
.ticket-preview-embedded .package-ticket footer, .ticket-preview-embedded .kitchen-ticket footer { display: none; }
.ticket-preview-embedded[data-print-paper="pos-58"] { width: 58mm; margin: 0 auto; }
.ticket-preview-embedded[data-print-paper="pos-80"] { width: 80mm; margin: 0 auto; }
.ticket-preview-embedded[data-print-paper^="pos-"] .invoice { width: 100%; margin: 0; padding: 5px; }
.package-orders-list { display: grid; gap: 12px; }
.package-order-entry { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfb; }
.package-order-entry-header, .package-order-entry-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 12px; }
.package-order-entry-header strong { min-width: 0; overflow-wrap: anywhere; }
.package-order-entry-meta { justify-content: flex-start; margin-top: 8px; color: var(--muted); font-size: 12px; }
.package-order-item-list { margin: 10px 0; padding-left: 20px; }
.package-order-item-list li { padding: 3px 0; }
.package-order-item-list li span { margin-left: 8px; color: var(--muted); white-space: nowrap; }
.package-order-note { margin: 8px 0; font-size: 13px; overflow-wrap: anywhere; }
.package-order-entry-actions, .package-order-entry-actions form { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.package-order-entry-actions { justify-content: space-between; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.package-order-entry-actions form select { min-width: 140px; }
.package-order-entry-actions [data-package-order-status-form] { flex: 1 1 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.package-order-note-field { grid-column: 1 / -1; width: 100%; }
.package-order-note-field textarea { height: 48px; min-height: 48px; max-height: 48px; padding: 5px 8px; line-height: 18px; resize: none; overflow-y: auto; }
.customer-picker-dialog #customer-details-note { height: 48px; min-height: 48px; max-height: 48px; padding: 5px 8px; line-height: 18px; resize: none; overflow-y: auto; }
.package-ticket-page { padding: 16px; background: #f3f5f3; color: #17231e; }
.package-ticket { width: min(100%, 520px); margin: 0 auto; padding: 20px; background: #fff; box-shadow: 0 3px 12px #1b3a2810; }
.package-ticket header { display: grid; gap: 4px; padding-bottom: 10px; border-bottom: 1px dashed #777; text-align: center; }
.package-ticket header span { font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.package-ticket p { padding: 10px 0; border-bottom: 1px dashed #aaa; overflow-wrap: anywhere; }
.package-ticket table { width: 100%; }
.package-ticket th, .package-ticket td { padding: 7px 3px; border-bottom: 1px dashed #ddd; text-align: left; }
.package-ticket th:last-child, .package-ticket td:last-child { text-align: right; white-space: nowrap; }
.package-ticket footer { display: flex; gap: 8px; margin-top: 14px; }
.tables-page-content { height: 100dvh; min-height: 0; display: flex; flex-direction: column; padding: 12px 20px 0; overflow: hidden; }
.tables-page-content > .table-cards { min-height: 0; flex: 1 1 0; align-content: stretch; overflow: hidden; }
.table-card-list { display: grid; min-height: 0; grid-column: 1 / -1; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.table-card-list:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.table-card-list > .table-card { min-height: 0; }
.table-sales-actions > .table-card { min-height: 59px; padding: 6px 12px; }
.table-card.market-sale-card { gap: 7px; font-size: 16px; }
.market-sale-icon { width: 30px; height: 30px; flex: 0 0 30px; font-size: 21px; }
.table-card.package-order-card { min-height: 59px; flex-direction: row; align-items: center; padding: 6px 10px; gap: 8px; }
.package-order-card-main { min-width: 0; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
.package-order-create-button { font-size: 15px; white-space: nowrap; }
.pending-package-orders-label { margin: 0; font-size: 12px; white-space: nowrap; }
.package-orders-open-button { padding: 5px 8px; font-size: 11px; white-space: nowrap; }
.order-details-dialog[open] { position: fixed; inset: 0; width: min(760px, calc(100vw - 32px)); max-width: none; max-height: min(92dvh, 840px); margin: auto; padding: 20px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: #fff; box-shadow: 0 18px 55px #10251b55; overflow: hidden; }
.order-details-dialog::backdrop { background: #13231b66; }
.order-details-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.order-details-header h2 { margin: 0; }
.order-details-content { max-height: calc(92dvh - 96px); overflow: auto; }
.order-details-content table { width: 100%; }
.order-details-content tbody { display: block; }
.order-details-content .order-modal-row { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.order-details-content .order-summary-amount { display: none; }
.order-modal-row .order-summary-primary > .order-type-badge,
.order-modal-row .order-summary-primary > .order-summary-location { display: none; }
.order-details-content .order-modal-row td { display: grid; grid-template-columns: minmax(120px, 22%) minmax(0, 1fr); align-items: start; gap: 12px; padding: 13px 15px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.order-details-content .order-package-note-detail { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(88px, 25%) minmax(0, 1fr); gap: 8px; width: 100%; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); white-space: pre-wrap; }
.order-details-content .order-package-note-detail strong { color: var(--muted); font-size: 12px; }
.order-details-content .order-package-note-detail > span { display: -webkit-box; overflow: hidden; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.business-order-detail-field.package-note-detail > strong { display: -webkit-box; overflow: hidden; white-space: pre-wrap; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.order-details-content .order-modal-row td:last-child { border-bottom: 0; }
.order-details-content .order-modal-row td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 700; }
.order-details-content .order-modal-row td[data-label="Ürünler"] > div { display: inline-block; margin: 0 14px 4px 0; }
.order-details-content .order-modal-row td[data-label="İşlem"] .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.table-card:hover, .table-card:focus-visible { border-color: var(--green); box-shadow: 0 5px 18px #1b3a2820; transform: translateY(-2px); outline: none; }
.table-card.busy:hover, .table-card.busy:focus-visible { border-color: #c5985f; }
.table-card.available:hover, .table-card.available:focus-visible { border-color: #6daedb; }
.login-page { min-height: 100vh; display: block; padding: 42px 24px 100px; background: radial-gradient(circle at 18% 8%, #dceee0, transparent 32%), radial-gradient(circle at 88% 45%, #e7efff, transparent 32%), var(--paper); }
.portal { width: min(1120px, 100%); margin: 0 auto; }
.portal-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 0 0 30px; }
.portal-header .brand { padding: 0; border: 0; color: var(--ink); }
.portal-header .brand strong { font-size: 25px; }
.portal-header .brand span { color: var(--muted); font-size: 13px; }
.portal-badge, .eyebrow { color: var(--green); font-size: 11px; font-weight: 750; letter-spacing: .12em; }
.portal-badge { border: 1px solid #cfe1d4; border-radius: 99px; padding: 8px 12px; background: #ffffffa8; }
.portal-grid { display: grid; grid-template-columns: minmax(0, 520px); justify-content: center; }
.portal-panel { padding: 28px; border-color: #e1e9e3; }
.portal-panel h1 { margin: 7px 0; font-size: 24px; }
.portal-panel .subtitle { margin: 0 0 24px; font-size: 14px; }
.portal-panel .field { margin: 0 0 16px; }
.business-password-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 14px; margin-bottom: 16px; }
.business-password-field { min-width: 0; }
.business-password-field input { width: 100%; }
.portal-panel .business-password-row .field { margin: 0; }
.remember-login-field { display: flex; align-items: center; gap: 7px; min-height: 45px; padding-bottom: 1px; white-space: nowrap; cursor: pointer; }
.remember-login-field input { width: 16px; height: 16px; margin: 0; accent-color: var(--green); }
.portal-submit { width: 100%; margin-top: 7px; min-height: 44px; }
.application-cta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.application-cta p { margin: 0; }
.application-dialog { width: min(700px, calc(100vw - 28px)); max-height: min(90vh, 850px); padding: 25px; border: 1px solid var(--line); border-radius: 15px; background: #fff; color: var(--ink); box-shadow: 0 22px 70px #10251b40; overflow-y: auto; }
.application-dialog::backdrop { background: #13231bcc; backdrop-filter: blur(2px); }
.application-dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.application-dialog-header h2 { margin: 6px 0 0; font-size: 22px; }
.application-dialog .subtitle { margin: 12px 0 20px; }
.application-dialog .field > input, .application-dialog .field > select { width: 100%; height: 45px; }
.application-dialog-close { width: 36px; height: 36px; padding: 0; font-size: 25px; line-height: 1; }
.cash-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 18px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.cash-summary .cash-summary-row { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 84px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 3px 12px #1b3a2810; text-align: center; }
.cash-summary .cash-summary-row > span, .cash-summary .cash-summary-row > strong { display: block; width: 100%; text-align: center; }
.cash-summary-row span { color: var(--muted); font-size: 13px; line-height: 1.2; }
.cash-summary-row strong { color: var(--ink); font-size: 20px; font-weight: 700; overflow-wrap: anywhere; line-height: 1.2; }
dialog.application-dialog.day-end-details-dialog[open] {
    position: fixed;
    inset: 0;
    width: min(1000px, calc(100vw - 40px));
    max-width: min(1000px, calc(100vw - 40px));
    height: min(78dvh, 760px);
    max-height: calc(100dvh - 40px);
    margin: auto;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: 0 22px 70px #10251b40;
    overflow: hidden;
}
.day-end-details-dialog .application-dialog-header {
    position: sticky;
    top: 0;
    z-index: 1;
    align-items: center;
    padding: 14px clamp(16px, 4vw, 36px);
    border-bottom: 1px solid var(--line);
    background: #fff;
}
.day-end-details-dialog .application-dialog-header h2 { margin: 0; }
.day-end-details-dialog .application-dialog-header .subtitle { margin: 5px 0 0; }
.day-end-summary { flex: 0 0 auto; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 20px; padding: 12px clamp(16px, 4vw, 36px); border-bottom: 1px solid var(--line); background: #f8faf8; }
.day-end-summary-total { display: grid; gap: 2px; }
.day-end-summary-total span,
.day-end-summary-breakdown span { color: var(--muted); font-size: 12px; }
.day-end-summary-total strong { color: var(--green); font-size: 22px; line-height: 1.15; }
.day-end-summary-breakdown { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 16px; }
.day-end-summary-breakdown > div { display: grid; gap: 1px; }
.day-end-summary-breakdown strong { font-size: 13px; }
.day-end-summary-debt,
.day-end-summary-warning { grid-column: 1 / -1; margin: 0; font-size: 12px; }
.day-end-summary-debt { color: var(--muted); }
.day-end-summary-debt strong { color: var(--ink); }
.day-end-summary-warning { color: #a34b00; }
.day-end-payment-list {
    width: 100%;
    height: calc(100% - 82px);
    padding: 12px clamp(16px, 4vw, 36px) 28px;
    overflow-x: hidden;
    overflow-y: auto;
}
.day-end-payment-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; }
.day-end-payment-date-column { width: 30%; }
.day-end-payment-type-column { width: 38%; }
.day-end-payment-amount-column { width: 32%; }
.day-end-payment-table th,
.day-end-payment-table td { display: table-cell !important; padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.day-end-payment-table thead { position: sticky; top: 0; z-index: 1; background: #f5f8f6; }
.day-end-payment-table th { color: var(--muted); font-size: 12px; font-weight: 700; }
.day-end-payment-table .day-end-payment-amount-heading,
.day-end-payment-table .day-end-payment-amount { text-align: right; white-space: nowrap; }
.day-end-payment-row { cursor: pointer; }
.day-end-payment-row:hover { background: #f5faf6; }
.day-end-payment-row:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.day-end-payment-row time { white-space: nowrap; font-size: 13px; }
.day-end-payment-type { display: block; overflow-wrap: anywhere; font-size: 14px; font-weight: 650; }
.day-end-payment-table td.day-end-payment-amount { color: var(--ink); font-size: 15px; font-weight: 700; }
.day-end-payment-card-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
}
.day-end-payment-card-details[hidden] { display: none; }
.day-end-payment-detail-dialog { width: min(620px, calc(100vw - 32px)); }
.day-end-payment-detail-content .day-end-payment-card-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    padding-top: 4px;
}
.day-end-payment-card-details > div { display: grid; gap: 3px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfb; }
.day-end-payment-card-details span { color: var(--muted); font-size: 12px; }
.day-end-payment-card-details strong { overflow-wrap: anywhere; font-size: 14px; }
.day-end-stock-details { grid-column: 1 / -1; min-width: 0; margin-top: 4px; }
.day-end-stock-details h3 { margin: 4px 0 8px; font-size: 15px; }
.day-end-stock-table-wrap { width: 100%; overflow-x: hidden; }
.day-end-stock-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.day-end-stock-table th,
.day-end-stock-table td { padding: 8px 7px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.day-end-stock-table th { color: var(--muted); background: #f5f8f6; font-size: 12px; }
.day-end-stock-table th:first-child,
.day-end-stock-table td:first-child { width: 36%; }
.day-end-stock-table th:nth-child(2),
.day-end-stock-table td:nth-child(2) { width: 20%; }
.day-end-stock-table th:nth-child(3),
.day-end-stock-table td:nth-child(3) { width: 22%; }
.day-end-stock-table th:last-child,
.day-end-stock-table td:last-child { width: 22%; text-align: right; white-space: nowrap; }
.day-end-stock-table td { font-size: 13px; }
.day-end-no-stock { margin: 0; padding: 10px 12px; border-radius: 8px; background: #f5f8f6; color: var(--muted); font-size: 13px; }
.day-end-stock-total {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    margin-top: 10px;
    padding: 11px 12px;
    border-top: 2px solid var(--line);
    background: #f5f8f6;
}
.day-end-stock-total span { color: var(--muted); font-size: 13px; font-weight: 650; }
.day-end-stock-total strong { color: var(--ink); font-size: 18px; white-space: nowrap; }
#application-dialog { position: fixed; top: 2vh; bottom: auto; left: 0; right: 0; width: min(700px, calc(100vw - 28px)); max-height: 96vh; margin: 0 auto; padding: 16px; }
#application-dialog .application-dialog-header { gap: 10px; }
#application-dialog .application-dialog-header h2 { margin-top: 3px; font-size: 20px; }
#application-dialog .subtitle { margin: 8px 0 12px; font-size: 13px; line-height: 1.4; }
#application-dialog .form-grid { gap: 6px 10px; }
#application-dialog .field { gap: 2px; }
#application-dialog .field > input, #application-dialog .field > select { height: 36px; padding: 6px 9px; }
#application-dialog .password-input-wrap input { height: 36px; padding: 6px 42px 6px 9px; }
#application-dialog .field.full textarea { min-height: 48px; height: 48px; padding: 6px 9px; }
#application-dialog .application-address-field textarea { min-height: 56px; height: 56px; padding: 6px 9px; resize: vertical; }
#application-dialog .field small { font-size: 11px; line-height: 1.3; }
#application-dialog .portal-submit { min-height: 38px; margin-top: 8px; }
.portal-footnote { text-align: center; color: var(--muted); font-size: 13px; margin: 22px 0; }
.login-page { padding-top: 24px; padding-bottom: 44px; }
.login-page .portal-header { margin-bottom: 18px; }
.login-page .portal-panel { padding: 22px; }
.login-page .portal-panel h1 { margin: 4px 0; }
.login-page .portal-panel .subtitle { margin-bottom: 15px; }
.login-page .portal-panel .field { gap: 4px; margin-bottom: 10px; }
.login-page .portal-panel input:not([type="checkbox"]) { height: 40px; padding: 8px 10px; }
.login-page .portal-panel .password-input-wrap input { padding-right: 42px; }
.login-page .business-password-row { gap: 10px; margin-bottom: 10px; }
.login-page .remember-login-field { min-height: 40px; font-size: 12px; }
.login-page .portal-panel .portal-submit { min-height: 40px; margin-top: 2px; }
.login-page .application-cta { gap: 8px; margin-top: 12px; }
.login-page .portal-footnote { margin: 10px 0; }
.admin-access-trigger { position: fixed; z-index: 10; left: 50%; bottom: 18px; min-height: 43px; padding: 0 16px; transform: translateX(-50%); border: 1px solid #d9e1db; background: #fff; box-shadow: 0 5px 18px #1b3a2818; font-weight: 700; }
.admin-login-dialog { width: min(380px, calc(100vw - 28px)); }
.admin-login-dialog .application-dialog-header h2 { margin: 6px 0 0; font-size: 20px; }
.admin-login-panel { margin: 14px 0 0; padding: 0; border: 0; background: none; box-shadow: none; }
.admin-login-panel h2 { margin-bottom: 5px; }
.admin-login-panel .muted { margin: 0 0 15px; font-size: 13px; }
.admin-login-panel .field { margin-bottom: 12px; }
.application-list { display: grid; gap: 9px; }
.application-open-button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 15px; text-align: left; cursor: pointer; }
.application-open-button > span:first-child { display: grid; min-width: 0; gap: 2px; }
.application-open-button strong { overflow-wrap: anywhere; }
.application-open-button small { color: var(--muted); }
.application-open-button:hover { border-color: var(--green); }
.pending-application-dialog { width: min(650px, calc(100vw - 28px)); }
.pending-application-dialog .application-dialog-header { margin-bottom: 18px; }
.pending-application-dialog .application-dialog-header h2 { margin-top: 5px; }
.pending-application-details { margin-bottom: 16px; }
.toolbar-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.password-change-dialog { width: min(520px, calc(100vw - 28px)); }
.password-change-dialog .subtitle { margin: 12px 0 20px; }
.password-change-dialog .field { margin-top: 14px; }
.admin-settings-launches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; margin: 0 0 18px; }
.admin-settings-launches > .btn { width: 100%; min-height: 42px; }
.telegram-settings-launch { display: flex; width: 100%; min-height: 44px; justify-content: center; margin: -6px 0 18px; }
.telegram-settings-dialog { width: min(700px, calc(100vw - 28px)); max-height: min(90dvh, 820px); overflow-y: auto; }
.telegram-settings-dialog .application-dialog-header { align-items: center; }
.telegram-settings-dialog .application-dialog-header h2 { margin-top: 3px; }
.telegram-setup-guide { margin: 0 0 16px; padding: 14px 16px; border: 1px solid #dce9df; border-radius: 11px; background: #f7faf7; }
.telegram-setup-guide h3 { margin: 0 0 7px; font-size: 15px; }
.telegram-setup-guide ol { margin: 0; padding-left: 20px; font-size: 13px; }
.telegram-setup-guide li + li { margin-top: 5px; }
.telegram-setup-guide code { padding: 1px 4px; border-radius: 4px; background: #e9f0eb; color: var(--green-dark); }
.telegram-setup-guide p { margin: 10px 0 0; font-size: 12px; }
.telegram-settings-form { display: grid; gap: 12px; margin: 0; }
.telegram-settings-form .field { min-width: 0; gap: 5px; }
.telegram-settings-form .field > span { font-size: 13px; font-weight: 650; }
.telegram-settings-form .field input { width: 100%; min-height: 42px; }
.telegram-settings-form .checkbox-field { margin: 0; }
.telegram-clear-token { color: #a33328; }
.telegram-settings-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 4px; }
.telegram-settings-actions .btn { min-height: 42px; }
.telegram-test-status { min-height: 20px; margin: 0; color: var(--muted); font-size: 13px; }
.telegram-announcement-form { display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #e1e9e3; }
.telegram-announcement-form h3, .telegram-announcement-form p { margin: 0; }
.telegram-announcement-form .field { display: grid; gap: 5px; }
.telegram-announcement-form textarea { width: 100%; min-height: 110px; resize: vertical; }
.telegram-business-link-card { display: grid; gap: 10px; margin-top: 16px; }
.telegram-business-link-card h2, .telegram-business-link-card p { margin: 0; }
.telegram-business-link-card form { margin: 0; }
.membership-section { margin-top: 30px; }
.admin-settings-form { width: min(100%, 720px); }
.admin-site-settings-dialog { width: min(650px, calc(100vw - 28px)); }
.admin-site-settings-dialog .application-dialog-header { align-items: center; margin-bottom: 14px; }
.admin-site-settings-dialog .application-dialog-header h2 { margin-top: 3px; }
.admin-site-settings-dialog .admin-settings-form { margin: 0; }
.admin-site-contact-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.admin-site-contact-row .field { min-width: 0; margin: 0; }
.admin-site-contact-row .field > small { display: block; margin-top: 4px; }
.membership-purchase-page { width: min(100%, 980px); margin: 0 auto; }
.membership-purchase-dialog { width: min(620px, calc(100vw - 28px)); }
.membership-purchase-dialog .application-dialog-header { align-items: center; margin-bottom: 16px; }
.membership-purchase-dialog .application-dialog-header h2 { margin-top: 2px; }
.membership-admin-heading { align-items: flex-end; margin: 0 0 18px; }
.membership-admin-heading .eyebrow, .membership-payment-settings-heading .eyebrow { color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.membership-admin-heading h1 { margin-top: 3px; }
.membership-admin-heading .subtitle { margin: 0; }
.membership-businesses-open { display: none; }
.membership-businesses-dialog:not([open]) { display: contents; }
.membership-businesses-dialog:not([open]) > .membership-businesses-dialog-header { display: none; }
.membership-businesses-dialog[open] { width: min(960px, calc(100vw - 28px)); }
.membership-businesses-dialog[open] > .table-wrap { max-height: min(72vh, 680px); overflow: auto; }
.membership-payment-launch { display: flex; max-width: 980px; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 20px; padding: 16px 20px; border-color: #dce7df; }
.membership-payment-launch > div { display: flex; min-width: 0; align-items: center; gap: 13px; }
.membership-payment-launch h2 { margin: 0 0 3px; font-size: 16px; }
.membership-payment-launch .muted { margin: 0; font-size: 12px; }
.membership-payment-launch > .btn { flex: 0 0 auto; min-height: 42px; }
.membership-payment-dialog { width: min(760px, calc(100vw - 28px)); max-height: min(90dvh, 850px); padding: 22px; }
.membership-payment-dialog .application-dialog-header { align-items: center; margin-bottom: 16px; }
.membership-payment-dialog .application-dialog-header h2 { margin: 3px 0; }
.membership-payment-dialog .application-dialog-header .muted { margin: 0; font-size: 12px; }
.membership-payment-settings { max-width: 980px; margin: 0 0 20px; padding: 22px; border-color: #dce7df; box-shadow: 0 8px 24px #183b2810; }
.membership-payment-settings-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.membership-payment-settings-heading h3 { margin: 2px 0 3px; font-size: 15px; }
.membership-payment-settings-heading .muted { margin: 0; font-size: 13px; }
.membership-settings-icon { display: grid; width: 46px; height: 46px; flex: 0 0 auto; place-items: center; border-radius: 12px; color: var(--green-dark); background: #e8f4ed; }
.membership-settings-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.membership-account-list { display: grid; gap: 10px; }
.membership-account-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfb; }
.membership-account-row-heading { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: -3px; }
.membership-account-row-heading strong { color: var(--green-dark); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.membership-account-row .field { gap: 5px; }
.membership-account-row .field label { font-size: 12px; }
.membership-account-row .field input { width: 100%; min-height: 43px; }
.membership-account-remove { min-height: 32px; padding: 5px 10px; color: #9a433b; background: #faedeb; font-size: 12px; white-space: nowrap; }
.membership-account-remove:hover { background: #f5ddda; }
.membership-payment-settings-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.membership-account-add { min-height: 42px; border: 1px dashed #a9c8b7; color: var(--green-dark); background: #f4faf6; }
.membership-account-add:hover { border-color: var(--green); background: #eaf5ee; }
.membership-payment-settings-actions .btn-primary { min-height: 42px; padding-inline: 17px; }
.membership-payment-details { display: grid; gap: 8px; margin: 0 0 18px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #f8faf8; }
.membership-payment-details h3 { margin: 0; font-size: 15px; }
.membership-payment-details > .muted { margin: -5px 0 2px; font-size: 12px; }
.membership-payment-account-options { display: grid; gap: 8px; }
.membership-payment-account-option { display: grid; gap: 6px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.membership-payment-account-choice { display: flex; align-items: center; gap: 9px; min-width: 0; cursor: pointer; }
.membership-payment-account-choice input { flex: 0 0 auto; width: 18px; height: 18px; accent-color: var(--green); }
.membership-payment-account-choice > span { display: grid; min-width: 0; gap: 2px; }
.membership-payment-instruction { margin: 0; color: var(--green-dark); font-size: 13px; font-weight: 700; }
.membership-payment-copy { display: flex; width: 100%; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #d9e1db; border-radius: 8px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; }
.membership-payment-copy:hover, .membership-payment-copy:focus-visible { border-color: var(--green); outline: 2px solid #147a5520; }
.membership-payment-copy > span:first-child { display: grid; min-width: 0; gap: 2px; }
.membership-payment-copy small { color: var(--muted); font-size: 11px; }
.membership-payment-copy strong { overflow-wrap: anywhere; }
.membership-payment-copy > span:last-child { flex: 0 0 auto; color: var(--green-dark); font-size: 12px; font-weight: 700; }
.membership-payment-copy-status { min-height: 18px; margin: 0; color: var(--green-dark); font-size: 12px; }
.membership-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.membership-plan-option { display: flex; min-width: 0; align-items: flex-start; gap: 11px; padding: 16px; border-color: #d9e1db; cursor: pointer; }
.membership-plan-option.is-disabled { opacity: .55; cursor: not-allowed; }
.membership-purchase-submit:disabled { opacity: .55; cursor: not-allowed; }
.membership-plan-option:focus-within { border-color: var(--green); box-shadow: 0 0 0 2px #147a5520; }
.membership-plan-option input { width: 18px; height: 18px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--green); }
.membership-plan-copy { display: grid; min-width: 0; gap: 5px; }
.membership-plan-copy > span { color: var(--muted); font-size: 13px; }
.membership-plan-copy > b { color: var(--green-dark); font-size: 19px; }
.membership-purchase-form { display: grid; gap: 16px; }
.membership-purchase-note { margin-top: 4px; }
.membership-purchase-note textarea { min-height: 74px; }
.membership-purchase-help { margin: 0; font-size: 13px; }
.membership-purchase-submit { justify-self: start; min-height: 44px; }
.admin-password-settings { width: min(100%, 720px); margin-bottom: 18px; }
.admin-password-settings h2 { margin-bottom: 4px; }
.admin-password-settings p { margin: 0 0 12px; }
.admin-settings-utility-launches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; margin-top: 14px; }
.admin-settings-utility-launches > .btn { width: 100%; min-width: 0; min-height: 48px; margin: 0; padding: 9px 10px; text-align: center; }
.application-dialog.admin-database-dialog[open] { position: fixed; inset: 16px 0 auto; width: min(720px, calc(100vw - 32px)); max-width: min(720px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: 0 auto; padding: 22px; }
.admin-database-dialog .application-dialog-header { align-items: center; margin-bottom: 16px; }
.admin-database-dialog .application-dialog-header h2 { margin-top: 3px; }
.admin-database-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.admin-database-tool { display: grid; min-width: 0; align-content: start; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.admin-database-tool h3 { margin: 0; font-size: 16px; }
.admin-database-tool > p { margin: 0; color: var(--muted); font-size: 12px; }
.admin-database-tool form { margin: 0; }
.admin-database-tool .btn { min-height: 40px; }
.admin-database-restore-form { display: grid; gap: 8px; align-items: center; }
.admin-database-restore-form > input[type="file"] { width: 100%; min-width: 0; font-size: 12px; }
.admin-database-restore-confirmation { margin: 0; font-size: 12px; }
.admin-database-restore-form .btn { justify-self: start; }
.admin-database-reset-form { display: grid; gap: 8px; }
.admin-database-reset-form .field { margin: 0; }
.admin-database-reset-form .btn { justify-self: start; }
.email-settings-dialog { width: min(620px, calc(100vw - 28px)); }
.email-settings-dialog .application-dialog-header { align-items: center; margin-bottom: 12px; }
.email-settings-dialog .application-dialog-header h2 { margin-top: 3px; }
.email-settings-dialog #email-settings-form { display: grid; gap: 10px; margin: 0; padding: 16px; }
.email-settings-dialog #email-settings-form > h2 { margin: 0; font-size: 16px; }
.email-settings-dialog #email-settings-form > .muted { margin: -8px 0 0; font-size: 12px; }
.email-settings-dialog #email-settings-form .spaced-top { margin-top: 0; }
.email-settings-dialog #email-settings-form .checkbox-field { margin: 0; }
.email-settings-dialog #email-settings-form > .btn { justify-self: start; margin-top: 0; }
.email-settings-test-form { margin-top: 10px; }
.email-settings-test-form .btn { width: 100%; min-height: 42px; }
.business-profile-launch { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.business-profile-launch h2 { margin: 0; }
.business-profile-launch p { margin: 0; }
.cash-movement-launch { width: 100%; min-height: 44px; margin-top: 12px; }
.settings-page > h1 { margin-bottom: 6px; }
.settings-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 14px; }
.settings-action-stack { display: grid; align-content: start; gap: 11px; padding: 16px; }
.settings-action-stack .btn { width: 100%; min-height: 44px; }
.settings-page .settings-table-count { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; align-items: center; gap: 10px 12px; }
.settings-page .settings-table-count h2 { grid-column: 1 / -1; margin: 0; }
.settings-page .settings-table-count .field { display: flex; align-items: center; gap: 10px; }
.settings-page .settings-table-count label { flex: 0 0 auto; white-space: nowrap; }
.settings-page .settings-table-count input { width: 86px; }
.settings-page .settings-table-count .btn { min-height: 40px; white-space: nowrap; }
.day-end-records { width: 100%; min-width: 0; margin-top: 16px; }
.day-end-records table { width: 100%; table-layout: fixed; }
.day-end-records th, .day-end-records td { padding: 10px 8px; overflow-wrap: anywhere; }
.day-end-records th:last-child,
.day-end-records td.day-end-record-amount { width: 190px; text-align: right; white-space: nowrap; }
.day-end-records tfoot th,
.day-end-records tfoot td { border-top: 2px solid var(--line); font-weight: 750; }
.day-end-records tr.day-end-record-row { cursor: pointer; }
.day-end-records tr.day-end-record-row:hover { background: #f5f9f6; }
.day-end-records tr.day-end-record-row:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.day-end-records td a { display: block; }
.content .reports-summary-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 14px 0;
}
.reports-summary-stats > .card {
    display: flex;
    width: 100%;
    min-height: 0;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px 20px;
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    text-align: left;
}
.reports-summary-stats > .card:last-child { border-bottom: 0; }
.reports-summary-stats .stat-label { max-width: none; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.reports-summary-stats .stat-value { flex: 0 0 auto; margin: 0; font-size: 17px; line-height: 1.2; text-align: right; overflow-wrap: anywhere; }
.business-profile-dialog { width: min(760px, calc(100vw - 40px)); max-height: min(72dvh, 560px); padding: 14px; overflow-y: auto; }
.business-profile-dialog form { margin: 0; }
.business-profile-dialog .subtitle { margin: 4px 0 7px; }
.business-profile-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.business-profile-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.business-profile-fields .field { display: grid; min-width: 0; align-content: start; gap: 3px; }
.business-profile-fields .field > input { width: 100%; }
.business-profile-fields .business-profile-address { grid-column: 1 / -1; }
.business-profile-fields textarea { width: 100%; }
.business-profile-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 9px; }
.business-profile-actions > .btn { margin: 0; }
.staff-user-manager > h2 { margin-bottom: 5px; }
.staff-user-create-form { padding: 17px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfb; }
.staff-user-create-form .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.staff-permission-fieldset { min-width: 0; margin: 16px 0 0; padding: 12px 14px 14px; border: 1px solid var(--line); border-radius: 9px; }
.staff-permission-fieldset legend { padding: 0 5px; color: var(--muted); font-size: 13px; font-weight: 650; }
.staff-permission-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 9px 13px; }
.staff-permission-options label, .staff-user-active-toggle { display: flex; min-width: 0; align-items: center; gap: 8px; cursor: pointer; }
.staff-permission-options input, .staff-user-active-toggle input { width: 17px; height: 17px; flex: 0 0 auto; margin: 0; accent-color: var(--green); }
.staff-permission-options span, .staff-user-active-toggle span { overflow-wrap: anywhere; }
.staff-users-heading { margin: 16px 0 8px; font-size: 16px; }
.staff-user-list { display: grid; gap: 12px; }
.staff-user-row { display: grid; width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.staff-user-row:hover, .staff-user-row:focus-visible { border-color: var(--green); background: #fbfdfb; box-shadow: 0 3px 12px #1b3a2810; }
.staff-user-row:focus-visible { outline: 2px solid #147a552b; outline-offset: 2px; }
.staff-user-row > strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-user-row > span { white-space: nowrap; }
.staff-user-dialog { width: min(620px, calc(100vw - 28px)); }
.staff-user-dialog .staff-user-card { margin: 0; padding: 0; border: 0; }
.staff-manager-dialog { width: min(760px, calc(100vw - 28px)); max-height: min(72dvh, 620px); overflow-y: auto; }
.staff-manager-dialog .staff-user-manager { padding: 0; margin: 0; }
.staff-manager-dialog .staff-user-manager > p { margin-top: 0; }
.staff-user-actions { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto); align-items: center; gap: 10px; margin-top: 14px; }
.staff-user-actions > .btn, .staff-user-actions .btn { min-height: 38px; padding: 7px 10px; font-size: 12px; line-height: 1.2; white-space: nowrap; }
.staff-user-delete-form { display: flex; margin: 0; }
.staff-user-delete-form .btn { width: 100%; }
.staff-user-delete-form .btn { min-height: 38px; }
.staff-user-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.staff-user-card .staff-permission-fieldset { margin-top: 12px; }
.staff-user-settings-column { display: flex; min-width: 0; align-items: center; justify-content: center; gap: 8px; }
.staff-user-settings-column .staff-user-active-toggle { flex: 0 0 auto; }
.staff-password-reset { display: flex; min-width: 0; align-items: center; gap: 6px; }
.staff-password-reset .password-input-wrap { flex: 1 1 auto; min-width: 0; }
.staff-password-reset input, .staff-user-create-form .field input { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; }
.staff-no-access { max-width: 760px; margin: 10vh auto; }
.staff-no-access h1 { font-size: 22px; }
.staff-no-access p { margin: 6px 0 0; }
.team-chat-widget { position: static !important; z-index: auto !important; }
.membership-purchase-table-wrap { max-width: 100%; padding: 8px 10px; }
.content.members-page .membership-section table.membership-purchase-table { display: table; width: 100%; min-width: 0; table-layout: fixed; }
.content.members-page .membership-section .membership-purchase-table thead { position: static; display: table-header-group; width: auto; height: auto; padding: 0; margin: 0; overflow: visible; clip: auto; white-space: normal; border: 0; }
.content.members-page .membership-section .membership-purchase-table tbody { display: table-row-group; width: auto; }
.content.members-page .membership-section .membership-purchase-table tr { display: table-row; width: auto; padding: 0; border-bottom: 0; }
.content.members-page .membership-section .membership-purchase-table th,
.content.members-page .membership-section .membership-purchase-table td { display: table-cell; width: auto; padding: 10px 9px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.content.members-page .membership-section .membership-purchase-table td::before { content: none; }
.content.members-page .membership-section .membership-purchase-table th:nth-child(1),
.content.members-page .membership-section .membership-purchase-table td:nth-child(1) { width: 40%; }
.content.members-page .membership-section .membership-purchase-table th:nth-child(2),
.content.members-page .membership-section .membership-purchase-table td:nth-child(2) { width: 30%; }
.content.members-page .membership-section .membership-purchase-table th:nth-child(3),
.content.members-page .membership-section .membership-purchase-table td:nth-child(3) { width: 30%; }
.membership-purchase-table tbody tr[data-membership-request-row] { cursor: pointer; }
.membership-purchase-table tbody tr[data-membership-request-row]:hover { background: #f5f9f6; }
.membership-purchase-table tbody tr[data-membership-request-row]:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.membership-purchase-table td { overflow-wrap: anywhere; }
.membership-request-dialog { width: min(680px, calc(100vw - 32px)); max-height: min(80dvh, 680px); padding: 16px 20px; }
.membership-request-dialog .application-dialog-header { align-items: center; margin-bottom: 6px; }
.membership-request-dialog .application-dialog-header h2 { margin-top: 1px; overflow-wrap: anywhere; }
.membership-request-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin: 0; }
.membership-request-details > div { min-width: 0; padding: 3px 0; border-bottom: 1px solid var(--line); }
.membership-request-details dt { margin: 0; color: var(--muted); font-size: 11px; font-weight: 650; line-height: 1.2; }
.membership-request-details dd { margin: 0; overflow-wrap: anywhere; line-height: 1.25; }
.membership-request-details .membership-request-note { grid-column: 1 / -1; }
.membership-request-actions { display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.membership-request-actions form { margin: 0; }
.membership-request-actions form,
.membership-request-actions .btn { width: auto; }
.membership-request-actions .btn { min-height: 36px; padding-top: 6px; padding-bottom: 6px; white-space: nowrap; }
@media (max-width: 600px) {
    .membership-purchase-table-wrap { padding: 5px; }
    .membership-purchase-table th,
    .membership-purchase-table td { padding: 9px 6px !important; font-size: 12px; }
    .membership-request-dialog { width: calc(100vw - 16px); max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 12px; }
    .membership-request-dialog .application-dialog-header { margin-bottom: 5px; }
    .membership-request-dialog .application-dialog-header h2 { font-size: 17px; }
    .membership-request-details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
    .membership-request-details > div { padding: 2px 0; }
    .membership-request-details dt { font-size: 10px; }
    .membership-request-details dd { font-size: 12px; }
    .membership-request-details .membership-request-note { grid-column: 1 / -1; }
    .membership-request-actions { gap: 6px; margin-top: 7px; }
    .membership-request-actions form { min-width: 0; flex: 1 1 0; }
    .membership-request-actions .btn { width: 100%; min-height: 34px; padding: 5px 6px; font-size: 11px; white-space: normal; }
}
.team-chat-launch { position: fixed; right: 0; bottom: 60px; z-index: 2147483003; display: grid; width: 58px; height: 58px; place-items: center; padding: 0; border: 0; border-radius: 18px 0 0 18px; color: #fff; background: #315d78; box-shadow: 0 4px 22px #10251b40; cursor: pointer; }
.team-chat-launch:hover { background: #24485e; }
.team-chat-launch svg { width: 27px; height: 27px; }
.team-chat-badge { position: absolute; top: -7px; right: -7px; display: grid; min-width: 22px; height: 22px; padding: 0 5px; place-items: center; border-radius: 99px; color: #fff; background: #c83232; font-size: 12px; font-weight: 800; }
.team-chat-dialog[open] { position: fixed; inset: auto 12px 126px auto; z-index: 2147483001; display: flex; width: min(420px, calc(100vw - 28px)); height: min(570px, calc(100dvh - 150px)); max-width: none; max-height: none; flex-direction: column; gap: 10px; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: #fff; box-shadow: 0 12px 45px #10251b40; overflow: hidden; }
.team-chat-dialog::backdrop { background: transparent; }
.team-chat-header { position: relative; display: flex; flex: 0 0 auto; align-items: flex-start; justify-content: space-between; gap: 12px; padding-right: 46px; }
.team-chat-header .application-dialog-close { position: absolute; top: 0; right: 0; }
.team-chat-online { min-width: 0; max-width: 100%; margin-top: 4px; color: #315d43; font-size: 11px; line-height: 1.35; overflow: hidden; overflow-wrap: anywhere; white-space: normal; }
.team-chat-online-member { display: inline; padding: 0; border: 0; color: inherit; background: none; font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.team-chat-online-member:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 2px; }
.team-chat-messages { display: flex; min-height: 120px; flex: 1 1 auto; flex-direction: column; gap: 0; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #f8faf8; overflow-x: hidden; overflow-y: auto; }
.team-chat-message { position: relative; display: grid; width: fit-content; max-width: 100%; min-width: 0; flex: 0 1 auto; grid-template-columns: auto minmax(0, 1fr) auto; align-self: flex-start; align-items: baseline; gap: 2px 7px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 12px 12px 12px 3px; background: #fff; }
.team-chat-message.own { align-self: flex-end; grid-template-columns: minmax(0, 1fr) auto auto; border-color: #d4e9dd; border-radius: 12px 12px 3px 12px; background: #eaf6ee; }
.team-chat-message strong { min-width: 0; overflow: hidden; color: #718078; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.team-chat-message p { min-width: 0; margin: 0; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.team-chat-message time { color: #718078; font-size: 10px; white-space: nowrap; }
.team-chat-receipt { color: #718078; font-size: 12px; font-weight: 800; line-height: 1; white-space: nowrap; }
.team-chat-message.own.is-read .team-chat-receipt { color: #1683d8; }
.team-chat-reader-tooltip { position: fixed; z-index: 2147483005; max-width: min(280px, calc(100vw - 16px)); padding: 6px 9px; border: 1px solid #dce5df; border-radius: 8px; background: #fff; box-shadow: 0 4px 16px #10251b30; color: var(--ink); font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; pointer-events: none; }
.team-chat-reader-tooltip[hidden] { display: none; }
.team-chat-empty { margin: auto; color: var(--muted); font-size: 13px; text-align: center; }
.team-chat-error { flex: 0 0 auto; margin: 0; }
.team-chat-form { position: relative; display: flex; flex: 0 0 auto; align-items: flex-end; gap: 8px; margin: 0; }
.team-chat-form textarea { width: 100%; min-height: 42px; max-height: 104px; flex: 1 1 auto; resize: vertical; }
.team-chat-mentions { position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 3; display: grid; width: min(100%, 300px); max-height: 220px; overflow: auto; padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 8px 26px #10251b26; }
.team-chat-mention-option { min-width: 0; padding: 8px 10px; border: 0; border-radius: 6px; color: var(--ink); background: transparent; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.team-chat-mention-option:hover,
.team-chat-mention-option[aria-selected="true"] { background: #edf7f0; }
.team-chat-mention-all { color: var(--green-dark); font-weight: 700; }
.team-chat-widget [hidden] { display: none !important; }
.team-chat-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-heading h2 { margin-bottom: 3px; }
.section-heading p { margin: 0; }
.membership-section > .table-wrap { width: min(100%, 980px); padding: 12px; }
.package-table { width: 100%; min-width: 0; table-layout: fixed; }
.package-table th, .package-table td { padding: 7px 6px; font-size: 12px; overflow-wrap: anywhere; }
.package-table th { white-space: normal; line-height: 1.25; }
.package-table:not(.package-details-table) th:nth-child(1) { width: 68%; }
.package-table:not(.package-details-table) th:nth-child(2) { width: 32%; }
.package-table:not(.package-details-table) th:nth-child(n+3),
.package-table:not(.package-details-table) td:nth-child(n+3) { display: none; }
.package-table:not(.package-details-table) tbody tr[data-package-row] { cursor: pointer; }
.package-table:not(.package-details-table) tbody tr[data-package-row]:hover { background: #f4f8f5; }
.package-table:not(.package-details-table) tbody tr[data-package-row]:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.package-table .badge { padding: 3px 5px; font-size: 10px; line-height: 1.2; }
.package-name-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.package-name-status > strong { min-width: 0; }
.package-table .package-row-status { display: inline-flex; flex: 0 0 auto; margin: 0 auto; white-space: normal; text-align: center; }
.packages-page { padding-top: 12px; }
.packages-page > .toolbar { margin: 0 0 8px; }
.packages-page .package-create-button { margin-top: 6px; }
.packages-page .membership-section { margin-top: 12px; }
.packages-page .section-heading { margin-bottom: 8px; }
.packages-page .package-table th,
.packages-page .package-table td { padding-top: 4px; padding-bottom: 4px; }
.packages-page .membership-payment-launch { margin-top: 12px; }
.package-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.package-row-actions form { display: flex; margin: 0; }
.package-row-actions .btn-small { padding: 5px 7px; font-size: 10px; white-space: nowrap; }
.package-icon-button { display: grid; flex: 0 0 25px; width: 25px; height: 25px; padding: 0; place-items: center; border: 0; border-radius: 5px; cursor: pointer; }
.package-edit-button { background: #edf2ee; color: var(--green-dark); }
.package-edit-button:hover { background: var(--green); color: #fff; }
.package-edit-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.package-delete-button { background: #fae8e6; color: var(--red); font: 700 21px/1 system-ui, sans-serif; }
.package-delete-button:hover { background: var(--red); color: #fff; }
.package-icon-button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.package-edit-dialog { width: min(600px, calc(100vw - 28px)); }
.package-edit-dialog .application-dialog-header h2 { overflow-wrap: anywhere; }
.package-edit-dialog .package-edit-form { margin-top: 20px; padding-top: 0; border-top: 0; }
.package-details-dialog { width: min(600px, calc(100vw - 28px)); }
.package-details-dialog .application-dialog-header { align-items: center; margin-bottom: 14px; }
.package-details-dialog .application-dialog-header h2 { margin: 0; overflow-wrap: anywhere; }
.package-details-table, .package-details-table tbody { display: block; width: 100%; }
.package-details-table tr.package-modal-row { display: block; width: 100%; }
.package-details-table tr.package-modal-row td { display: grid; grid-template-columns: minmax(120px, 30%) minmax(0, 1fr); align-items: start; gap: 10px; width: 100%; padding: 11px 4px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.package-details-table tr.package-modal-row td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 700; }
.package-details-table tr.package-modal-row td[data-label="İşlem"] { display: block; }
.package-details-table tr.package-modal-row td[data-label="İşlem"]::before { display: block; margin-bottom: 8px; }
.membership-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; }
.membership-card { padding: 19px; }
.membership-card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 17px; }
.membership-card h3 { margin: 5px 0 0; font-size: 18px; }
.membership-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.membership-details div { min-width: 0; }
.membership-details span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 3px; }
.membership-details strong { display: block; overflow-wrap: anywhere; font-size: 13px; }
.membership-note { margin: 12px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.membership-actions { margin-top: 18px; }
.membership-actions form { display: inline-flex; }
.membership-row-actions { display: grid; min-width: 230px; gap: 7px; }
.membership-referral-wallet { display: grid; width: 100%; min-width: 0; grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 10px; border: 1px solid #cfe1d4; border-radius: 9px; background: #f4faf6; }
.membership-referral-wallet-balance { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: 8px; }
.membership-referral-wallet-balance span { color: var(--muted); font-size: 12px; font-weight: 700; }
.membership-referral-wallet-balance strong { color: var(--green-dark); font-size: 15px; white-space: nowrap; }
.membership-referral-wallet-form { display: grid; width: 100%; min-width: 0; grid-template-columns: minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.4fr) minmax(52px, .6fr); align-items: center; gap: 8px; }
.membership-referral-wallet-form select,
.membership-referral-wallet-form input { width: 100%; min-width: 0; min-height: 38px; height: 38px; padding: 7px 9px; font-size: 12px; }
.membership-referral-wallet-form .btn { grid-column: auto; width: 100%; min-width: 0; min-height: 38px; height: 38px; padding: 6px 8px; color: #fff !important; background: var(--green) !important; font-size: 12px; white-space: nowrap; }
.renew-membership-controls { display: grid; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: #f8fbf9; }
.renew-membership-controls form, .membership-row-secondary-actions form { display: flex; gap: 6px; align-items: center; }
.renew-membership-form select { flex: 1; max-width: 190px; padding: 7px 8px; font-size: 12px; }
.membership-row-secondary-actions { display: flex; align-items: center; gap: 6px; }
.membership-delete-button { width: 32px; min-width: 32px; height: 30px; padding: 0; font-size: 21px; line-height: 1; }
.membership-details-table tr.membership-modal-row td[data-label="İşlem"] .membership-row-actions .btn { color: #fff; background: var(--red); }
@media (min-width: 901px) {
    .content.members-page .membership-section table.membership-business-table { width: 100%; min-width: 0; table-layout: fixed; }
    .content.members-page .membership-section table.membership-business-table th:nth-child(1),
    .content.members-page .membership-section table.membership-business-table td:nth-child(1) { width: 30%; }
    .content.members-page .membership-section table.membership-business-table th:nth-child(2),
    .content.members-page .membership-section table.membership-business-table td:nth-child(2) { width: 45%; }
    .content.members-page .membership-section table.membership-business-table th:nth-child(3),
    .content.members-page .membership-section table.membership-business-table td:nth-child(3) { width: 25%; }
    .content.members-page .membership-section table.membership-business-table th:nth-child(4),
    .content.members-page .membership-section table.membership-business-table td:nth-child(4),
    .content.members-page .membership-section table.membership-business-table th:nth-child(5),
    .content.members-page .membership-section table.membership-business-table td:nth-child(5),
    .content.members-page .membership-section table.membership-business-table th:nth-child(6),
    .content.members-page .membership-section table.membership-business-table td:nth-child(6),
    .content.members-page .membership-section table.membership-business-table th:nth-child(7),
    .content.members-page .membership-section table.membership-business-table td:nth-child(7) { display: none !important; }
    .content.members-page .membership-section table.membership-business-table thead th { padding: 6px 9px; white-space: nowrap; }
    .content.members-page .membership-section table.membership-business-table tr[data-membership-row] > td {
        height: 38px;
        padding: 4px 9px;
        vertical-align: middle;
        white-space: nowrap;
        line-height: 1.2;
    }
    .content.members-page .membership-section table.membership-business-table tr[data-membership-row] > td:nth-child(1),
    .content.members-page .membership-section table.membership-business-table tr[data-membership-row] > td:nth-child(2),
    .content.members-page .membership-section table.membership-business-table tr[data-membership-row] > td:nth-child(1) *,
    .content.members-page .membership-section table.membership-business-table tr[data-membership-row] > td:nth-child(2) * { font-size: 12px !important; line-height: 1.2; }
    .membership-business-table tr[data-membership-row] > td:nth-child(1),
    .membership-business-table tr[data-membership-row] > td:nth-child(2) { overflow: hidden; text-overflow: ellipsis; }
    .membership-business-table .membership-business-meta { display: flex; min-width: 0; align-items: center; gap: 7px; overflow: hidden; }
    .membership-business-table .membership-business-heading { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .membership-business-table .membership-joined-date { flex: 0 0 auto; margin: 0; }
    .membership-business-table .membership-package-mobile { display: none; }
    .membership-business-table .membership-contact-email,
    .membership-business-table .membership-contact-phone { display: inline; }
    .membership-business-table .membership-contact-phone::before { content: " · "; color: var(--muted); }
    .membership-business-table td[data-label="İletişim"] { overflow: hidden; text-overflow: ellipsis; }
    .membership-business-table td[data-label="Aktif paket / bitiş"] { overflow: hidden; text-overflow: ellipsis; }
    .membership-business-table .membership-package-label { display: inline; }
}
.package-editor { margin-top: 22px; }
.package-create-button { display: flex; width: fit-content; min-height: 44px; margin-top: 14px; }
.package-create-dialog { width: min(560px, calc(100vw - 20px)); max-height: min(92dvh, 760px); overflow-y: auto; }
.package-create-dialog .application-dialog-header { align-items: center; margin-bottom: 14px; }
.package-create-dialog .application-dialog-header h2 { margin: 0; }
.package-editor { display: none; }
.package-create-dialog .package-editor { display: block; margin-top: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.package-create-dialog .package-editor > h2 { display: none; }
.package-form-grid .package-name-field { grid-column: 1; grid-row: 1; }
.package-form-grid .package-unlimited-field { grid-column: 2; grid-row: 1; align-self: end; margin-top: 0; min-height: 42px; }
.package-form-grid .package-price-field { grid-column: 1; grid-row: 2; }
.package-form-grid .package-duration-field { grid-column: 2; grid-row: 2; }
.package-duration-field[hidden] { display: none; }
.package-edit-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.package-status-form { margin-top: 12px; }
.category-management-list { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 7px; margin-top: 12px; }
.category-management-list h3 { margin: 0 0 2px; font-size: 15px; }
.category-management-list h3, .category-management-list > .muted { flex: 0 0 100%; }
.category-management-item { min-height: 38px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 9px; background: #f7faf8; color: var(--ink); font: inherit; font-weight: 650; cursor: pointer; }
.category-management-item:hover, .category-management-item:focus-visible { border-color: var(--green); background: #edf6f0; outline: none; }
#category-manager-dialog[open] {
    position: fixed !important;
    inset: 12px auto auto 50% !important;
    width: min(480px, calc(100vw - 28px)) !important;
    max-width: min(480px, calc(100vw - 28px)) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: min(72dvh, 540px) !important;
    margin: 0 !important;
    padding: 14px !important;
    transform: translateX(-50%) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-gutter: auto !important;
}
#category-manager-dialog[open] > .application-dialog-header {
    position: static !important;
    align-items: center !important;
    margin: 0 0 8px !important;
    padding: 0 0 8px !important;
}
#category-manager-dialog[open] > .application-dialog-header h2 { font-size: 18px !important; }
#category-manager-dialog #category-create-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 6px 8px;
    margin: 0 !important;
}
#category-manager-dialog #category-create-form .field { min-width: 0; gap: 3px; }
#category-manager-dialog #new-category-name { height: 36px; min-height: 36px; padding: 5px 8px; }
#category-manager-dialog #category-create-error { grid-column: 1 / -1; margin: 0; }
#category-manager-dialog #save-category-button { min-height: 36px; margin: 0 !important; padding: 6px 10px; white-space: nowrap; }
#category-manager-dialog .category-management-list { margin-top: 10px; }
#category-manager-dialog .category-management-list h3 { display: none; }
#category-manager-dialog .category-management-item { min-height: 32px; padding: 5px 10px; }
@media (max-width: 560px) {
    #category-manager-dialog[open] {
        inset: max(8px, env(safe-area-inset-top)) auto auto 50% !important;
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        max-height: calc(100dvh - max(16px, env(safe-area-inset-top) + 8px)) !important;
        padding: 10px !important;
    }
}
.unit-management-list { display: grid; gap: 8px; margin-top: 22px; }
.unit-management-list h3 { margin: 0 0 2px; font-size: 15px; }
.unit-management-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 5px 7px 5px 11px; border: 1px solid var(--line); border-radius: 9px; background: #f7faf8; }
.unit-delete-button { width: 32px; min-width: 32px; height: 30px; padding: 0; font-size: 21px; line-height: 1; }
.category-edit-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.category-editor { max-width: 720px; }
.category-edit-dialog { width: min(480px, calc(100vw - 28px)); }
.category-image-preview { display: block; width: min(100%, 320px); max-height: 180px; margin-top: 8px; border: 1px solid var(--line); border-radius: 9px; object-fit: cover; background: #f7faf8; }
#category-manager-dialog #category-create-form .category-image-create-field { grid-column: 1 / -1; }
#category-manager-dialog #new-category-image { width: 100%; }
.category-order-visibility-option { display: flex; align-items: center; gap: 9px; margin-top: 14px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: #f7faf8; font-size: 14px; font-weight: 600; cursor: pointer; }
.category-order-visibility-option input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--green); }
.empty-state { color: var(--muted); text-align: center; padding: 28px; }
.catalog-nav { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 10px 0; background: var(--paper); }
.catalog-nav a { padding: 8px 13px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--green-dark); font-size: 13px; font-weight: 650; }
.catalog-nav a:hover, .catalog-nav a:focus-visible { border-color: var(--green); background: #edf6f0; }
.catalog-section { scroll-margin-top: 70px; margin: 24px 0 32px; }
.catalog-section .section-heading { margin-bottom: 14px; }
.inventory-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.inventory-list-heading h2 { margin: 0; }
.inventory-search-controls { width: min(100%, 380px); }
.inventory-search-controls .barcode-scan-button { display: inline-flex; }
.inventory-stock-create-from-search { padding: 8px 12px; border: 1px solid #c8e1d0; border-radius: 8px; background: #f3f8f4; color: var(--green-dark); font: inherit; font-weight: 650; cursor: pointer; }
.inventory-stock-create-from-search:hover, .inventory-stock-create-from-search:focus-visible { background: #e8f4ec; outline: 2px solid #147a552b; outline-offset: -2px; }
.inventory-list-wrap { max-height: 270px; overflow-x: auto; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.inventory-list-wrap:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.inventory-list-wrap .inventory-table { margin: 0; }
.inventory-list-wrap .inventory-table thead th { position: sticky; top: 0; z-index: 1; background: #f5f8f6; }
.inventory-list-wrap .inventory-table tr[data-stock-row][hidden] { display: none !important; }
.inventory-table { min-width: 920px; }
.inventory-table td.actions { white-space: nowrap; }
.inventory-table td.actions form { margin-left: 4px; }
.inventory-table td.actions .btn { min-width: 76px; }
.toolbar .stock-toolbar-actions { display: grid; width: min(100%, 700px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stock-toolbar-actions .btn { min-width: 0; min-height: 42px; justify-content: center; padding: 8px 10px; text-align: center; }
@media (min-width: 561px) {
    .stock-page-toolbar { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; }
    .stock-page-toolbar .stock-toolbar-actions { width: 100%; }
}
.actions.inventory-stock-actions { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; }
.inventory-stock-actions > .btn { width: 100%; min-width: 0; min-height: 44px; justify-content: center; padding: 8px 10px; text-align: center; }
.stock-edit-dialog { width: min(800px, calc(100vw - 28px)); }
.stock-edit-dialog .form-grid { margin: 16px 0; }
.stock-edit-dialog .stock-card-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#stock-edit-dialog #stock-edit-form .stock-card-form-grid,
#stock-create-dialog #stock-create-form .stock-card-form-grid { gap: 9px; }
#stock-edit-dialog #stock-edit-form .field,
#stock-create-dialog #stock-create-form .field { gap: 4px; }
#stock-edit-dialog #stock-edit-form .stock-card-form-grid input:not([type="hidden"]),
#stock-edit-dialog #stock-edit-form .stock-card-form-grid select,
#stock-create-dialog #stock-create-form .stock-card-form-grid input:not([type="hidden"]),
#stock-create-dialog #stock-create-form .stock-card-form-grid select { height: 36px; min-height: 36px; padding: 5px 8px; }
#stock-edit-dialog #stock-edit-form .barcode-input-controls > input,
#stock-create-dialog #stock-create-form .barcode-input-controls > input { padding-right: 40px; }
#stock-edit-dialog #stock-edit-form .stock-unit-controls > select,
#stock-edit-dialog #stock-edit-form .stock-category-controls > select,
#stock-create-dialog #stock-create-form .stock-unit-controls > select,
#stock-create-dialog #stock-create-form .stock-category-controls > select { padding-right: 40px; }
#stock-edit-dialog #stock-edit-form .barcode-scan-button,
#stock-edit-dialog #stock-edit-form .stock-unit-add-button,
#stock-edit-dialog #stock-edit-form .stock-category-add-button,
#stock-create-dialog #stock-create-form .barcode-scan-button,
#stock-create-dialog #stock-create-form .stock-unit-add-button,
#stock-create-dialog #stock-create-form .stock-category-add-button { width: 28px; height: 28px; }
#stock-edit-dialog #stock-edit-form .stock-unit-add-button,
#stock-edit-dialog #stock-edit-form .stock-category-add-button,
#stock-create-dialog #stock-create-form .stock-unit-add-button,
#stock-create-dialog #stock-create-form .stock-category-add-button { right: 4px; }
#stock-create-dialog #stock-create-form .stock-category-controls > select { height: 36px; min-height: 36px; padding: 5px 40px 5px 8px; }
.stock-measurement-row { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.15fr); gap: 13px; }
#stock-create-form .stock-measurement-row,
.market-stock-create-dialog .stock-measurement-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stock-pricing-row { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.stock-create-footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 13px; margin-top: 14px; }
.stock-create-footer > .field { min-width: 0; }
.stock-create-footer > .btn { justify-self: end; min-height: 45px; max-width: 100%; }
.market-stock-create-dialog .stock-create-footer #market-stock-create-submit { width: auto; margin: 0; padding: 9px 13px; white-space: nowrap; }
.stock-related-field-controls { display: flex; min-width: 0; align-items: stretch; gap: 6px; }
.stock-related-field-controls > select { flex: 1 1 0; width: 0; min-width: 0; height: 45px; padding: 8px 9px; }
.stock-related-field-controls > .btn { flex: 0 0 auto; min-height: 45px; padding: 7px 9px; white-space: nowrap; }
.stock-category-controls { position: relative; display: flex; min-width: 0; align-items: stretch; }
.stock-category-controls > select { width: 100%; height: 45px; padding-right: 48px; }
.stock-category-add-button { position: absolute; top: 50%; right: 5px; display: inline-flex; width: 35px; height: 35px; padding: 0; transform: translateY(-50%); border: 1px solid var(--line); background: #f7faf8; color: var(--green-dark); font-size: 23px; font-weight: 500; line-height: 1; }
.stock-category-add-button:hover { background: #edf6f0; color: var(--green-dark); }
.stock-unit-controls { position: relative; display: flex; min-width: 0; align-items: stretch; }
.stock-unit-controls > select { width: 100%; height: 45px; padding-right: 48px; }
.stock-unit-add-button { position: absolute; top: 50%; right: 5px; display: inline-flex; width: 35px; height: 35px; padding: 0; transform: translateY(-50%); border: 1px solid var(--line); background: #f7faf8; color: var(--green-dark); font-size: 23px; font-weight: 500; line-height: 1; }
.stock-unit-add-button:hover { background: #edf6f0; color: var(--green-dark); }
.barcode-input-controls { position: relative; display: flex; min-width: 0; align-items: stretch; }
.barcode-input-controls > input { flex: 1 1 0; width: 0; padding-right: 48px; }
.barcode-scan-button { position: absolute; top: 50%; right: 5px; display: none; width: 35px; height: 35px; padding: 0; transform: translateY(-50%); border: 1px solid var(--line); background: #f7faf8; color: var(--green-dark); }
.barcode-scan-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.barcode-scan-button:hover { background: #edf6f0; color: var(--green-dark); }
.barcode-scanner-dialog { width: min(600px, calc(100vw - 20px)); }
.barcode-scanner-view { position: relative; overflow: hidden; border-radius: 10px; background: #111; }
.barcode-scanner-dialog video { display: block; width: 100%; max-height: min(65vh, 520px); aspect-ratio: 4 / 3; border-radius: 10px; background: #111; object-fit: cover; }
.barcode-scanner-target { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.barcode-scanner-target > span { position: relative; width: 92%; height: 46%; border: 2px solid #52e4a1; border-radius: 10px; box-shadow: 0 0 0 999px #0003; }
.barcode-scanner-target > span::after { position: absolute; top: 50%; right: 4px; left: 4px; height: 2px; background: #ff4949; box-shadow: 0 0 8px #ff4949; content: ""; animation: barcode-scan-line 1.8s ease-in-out infinite; }
@keyframes barcode-scan-line { 0%, 100% { transform: translateY(-20px); } 50% { transform: translateY(20px); } }
.barcode-scanner-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.barcode-scanner-dialog p { margin: 12px 0 0; }
.barcode-scanner-torch { flex: 0 0 auto; min-height: 38px; }
.barcode-scanner-torch[hidden] { display: none; }
@media (max-width: 600px) {
    .barcode-scanner-dialog { width: calc(100vw - 16px); max-width: none; padding: 14px; }
    .barcode-scanner-dialog video { max-height: min(62dvh, 520px); aspect-ratio: 3 / 4; }
    .barcode-scanner-controls { align-items: flex-start; }
    .barcode-scanner-controls p { flex: 1 1 auto; }
}
.stock-edit-dialog #stock-edit-form[hidden] { display: none; }
.stock-edit-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.stock-edit-delete-form { display: flex; justify-content: flex-start; margin: 0; }
.stock-edit-save-button[hidden] { display: none; }
@media (max-width: 900px) {
    .barcode-scan-button { display: inline-flex; }
}
@media (max-width: 560px) {
    .toolbar .stock-toolbar-actions { gap: 5px; }
    .stock-toolbar-actions .btn { min-height: 44px; padding: 6px 3px; font-size: 11px; line-height: 1.2; overflow-wrap: anywhere; }
    .stock-edit-actions > .stock-edit-delete-form,
    .stock-edit-actions > .stock-edit-save-button { flex: 1 1 0; }
    .stock-edit-delete-form .btn,
    .stock-edit-save-button { width: 100%; min-height: 42px; padding: 7px 5px; font-size: 12px; line-height: 1.2; }
    .barcode-input-controls > input { padding-right: 43px; }
    .barcode-scan-button { right: 4px; width: 32px; height: 32px; }
    .stock-unit-controls > select { padding-right: 43px; }
    .stock-unit-add-button { right: 4px; width: 32px; height: 32px; }
    .stock-category-controls > select { padding-right: 43px; }
    .stock-category-add-button { right: 4px; width: 32px; height: 32px; }
    .stock-measurement-row { grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, 1.1fr); gap: 6px; }
    #stock-create-form .stock-measurement-row,
    .market-stock-create-dialog .stock-measurement-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .stock-pricing-row { gap: 8px; }
    .stock-create-footer { gap: 8px; margin-top: 10px; }
    .stock-create-footer > .btn { min-height: 42px; padding: 7px 8px; font-size: 12px; white-space: normal; }
    .market-stock-create-dialog .stock-create-footer #market-stock-create-submit { width: auto; min-height: 42px; padding: 7px 8px; font-size: 12px; white-space: normal; }
    .stock-measurement-row .field > label { font-size: 11px; }
    .stock-measurement-row input,
    .stock-measurement-row select { padding-left: 7px; font-size: 12px; }
    .stock-unit-controls > select,
    .stock-category-controls > select { padding-right: 38px; }
    .stock-unit-add-button,
    .stock-category-add-button { right: 3px; width: 29px; height: 29px; }
    .stock-related-field-controls { gap: 4px; }
    .stock-related-field-controls > select { padding: 7px 5px; font-size: 12px; }
    .stock-related-field-controls > .btn { padding: 6px 6px; font-size: 11px; }
}
.inventory-list-wrap .inventory-table tr[data-stock-row]:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.stock-history-dialog { width: min(480px, calc(100vw - 28px)); }
.stock-history-list-dialog { width: min(900px, calc(100vw - 40px)); }
.stock-history-details { display: grid; gap: 0; margin: 0; }
.stock-history-details > div { display: grid; grid-template-columns: minmax(100px, 34%) minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.stock-history-details > div:last-child { border-bottom: 0; }
.stock-history-details dt { color: var(--muted); font-size: 13px; font-weight: 650; }
.stock-history-details dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.stock-history-table { width: 100%; min-width: 0; table-layout: fixed; }
.stock-history-section .table-wrap { overflow-x: hidden; }
.stock-history-table tbody tr[data-stock-history-row] { cursor: pointer; }
.stock-history-table tbody tr[data-stock-history-row]:hover { background: #f4f8f5; }
.inventory-table tbody tr[data-stock-row] { cursor: pointer; }
.inventory-table tbody tr[data-stock-row]:hover { background: #f4f8f5; }
.inventory-table tbody tr[data-stock-row]:focus-visible,
.stock-history-table tbody tr[data-stock-history-row]:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.stock-history-section .stock-history-table td { width: 50%; padding: 3px 6px; overflow: hidden; font-size: clamp(12px, 0.9vw, 14px); line-height: 1.25; white-space: nowrap; }
.stock-history-section .stock-history-table th { width: 50%; padding: 4px 6px; font-size: clamp(12px, 0.9vw, 14px); line-height: 1.25; white-space: nowrap; }
.stock-history-product { display: inline-flex; max-width: 100%; min-width: 0; align-items: baseline; gap: 3px; white-space: nowrap; }
.stock-history-product strong { min-width: 0; font-size: clamp(12px, 0.9vw, 14px); line-height: 1.3; white-space: nowrap; }
.stock-history-product small { color: var(--muted); line-height: 1.3; white-space: nowrap; }
.stock-history-movement { display: inline-flex; max-width: 100%; min-width: 0; align-items: baseline; gap: 3px; white-space: nowrap; }
.stock-history-movement small { color: var(--muted); font-size: clamp(11px, 0.82vw, 13px); line-height: 1.3; white-space: nowrap; }
@media (max-width: 900px) {
    .stock-history-section { margin: 0; }
    dialog[open]:not(.support-chat-dialog).stock-history-list-dialog {
        position: fixed;
        inset: max(10px, env(safe-area-inset-top)) 10px auto;
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        max-height: calc(100dvh - max(20px, env(safe-area-inset-top) + 10px));
        margin: 0 auto;
        padding: 12px;
        overflow-x: hidden;
        overflow-y: auto;
    }
    .stock-history-list-dialog .application-dialog-header {
        position: static;
        align-items: flex-start;
        margin: 0 0 8px;
        padding: 0 0 8px;
        border-bottom: 1px solid var(--line);
    }
    .stock-history-list-dialog .application-dialog-header h2 { margin: 0; font-size: 18px; }
    .stock-history-list-dialog .application-dialog-header .subtitle { margin: 3px 0 0; font-size: 12px; }
    .stock-history-list-dialog .stock-history-section { margin: 0; }
    .stock-history-list-dialog .stock-history-section .section-heading { display: none; }
    .stock-history-list-dialog .stock-history-section > .card { padding: 8px; }
}
@media (max-width: 560px) {
    .toolbar .stock-toolbar-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 761px) {
    .catalog-section .inventory-list-wrap {
        max-height: 240px;
        padding: 5px;
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-gutter: stable;
    }
    .catalog-section .inventory-list-wrap .inventory-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }
    .catalog-section .inventory-list-wrap .inventory-table th,
    .catalog-section .inventory-list-wrap .inventory-table td {
        padding: 3px 6px;
        font-size: 12px;
        line-height: 1.15;
    }
    .catalog-section .inventory-list-wrap .inventory-table .badge { padding: 1px 5px; font-size: 11px; line-height: 1.1; }
    .catalog-section .inventory-list-wrap .inventory-table th:nth-child(1),
    .catalog-section .inventory-list-wrap .inventory-table td:nth-child(1) { width: 54%; }
    .catalog-section .inventory-list-wrap .inventory-table th:nth-child(4),
    .catalog-section .inventory-list-wrap .inventory-table td:nth-child(4) { width: 24%; text-align: center; white-space: nowrap; }
    .catalog-section .inventory-list-wrap .inventory-table th:nth-child(7),
    .catalog-section .inventory-list-wrap .inventory-table td:nth-child(7) { width: 22%; text-align: center; }
    .catalog-section .inventory-list-wrap .inventory-table th:nth-child(4),
    .catalog-section .inventory-list-wrap .inventory-table th:nth-child(7) { text-align: center; }
    .catalog-section .inventory-list-wrap .inventory-table td:first-child strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .catalog-section .inventory-list-wrap .inventory-table td:nth-child(2),
    .catalog-section .inventory-list-wrap .inventory-table td:nth-child(3),
    .catalog-section .inventory-list-wrap .inventory-table td:nth-child(5),
    .catalog-section .inventory-list-wrap .inventory-table td:nth-child(6),
    .catalog-section .inventory-list-wrap .inventory-table th:nth-child(2),
    .catalog-section .inventory-list-wrap .inventory-table th:nth-child(3),
    .catalog-section .inventory-list-wrap .inventory-table th:nth-child(5),
    .catalog-section .inventory-list-wrap .inventory-table th:nth-child(6) { display: none; }
}
.stock-barcode-error { display: block; margin-top: 5px; color: var(--red); font-size: 12px; line-height: 1.35; }
input[data-stock-barcode-check][aria-invalid="true"] { border-color: var(--red); }
.checkbox-field { display: flex; align-items: flex-start; gap: 10px; margin-top: 15px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #f8fbf9; cursor: pointer; }
.checkbox-field input { width: 17px; height: 17px; min-width: 17px; margin: 2px 0 0; accent-color: var(--green); }
.checkbox-field span { color: #43534a; font-size: 13px; }
.stock-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.stock-card { min-width: 0; padding: 16px; }
.stock-card-top, .stock-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stock-card-top strong { min-width: 0; overflow-wrap: anywhere; }
.stock-card-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; margin: 13px 0; color: var(--muted); font-size: 12px; }
.stock-card-bottom { padding-top: 11px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 650; }
.order-product-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 145px), 1fr)); align-content: start; gap: 10px; margin: 0 0 12px; }
.order-product-card { position: relative; isolation: isolate; min-width: 0; display: grid; gap: 4px; padding: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.order-product-card::before { position: absolute; z-index: 1; inset: 0; background: #fff9; content: ''; pointer-events: none; }
.order-product-card:hover:not(:disabled) { border-color: var(--green); box-shadow: 0 3px 12px #1b3a2815; }
.order-product-card > .order-product-image { position: absolute !important; z-index: 0; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .75; pointer-events: none; }
.order-product-card > .order-product-image[hidden] { display: none !important; }
.order-product-card > strong, .order-product-card > span, .order-product-card > small { position: relative; z-index: 2; }
.order-product-card strong { overflow-wrap: anywhere; }
.order-product-card small { color: var(--muted); font-size: 12px; }
.order-product-card[hidden] { display: none; }
.order-product-card:disabled { opacity: .55; cursor: not-allowed; }
.order-product-price { color: var(--green-dark); font-weight: 700; }
.order-line-product { min-width: 0; }
.order-line-product strong { overflow-wrap: anywhere; }
.order-line-product small, .order-catalog-heading span { color: var(--muted); font-size: 12px; }
.order-line-remove { width: 30px; height: 30px; border: 0; border-radius: 6px; background: #fae8e6; color: var(--red); font-size: 21px; line-height: 1; cursor: pointer; }
.new-order-dialog { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 24px clamp(16px, 4vw, 56px); border: 0; border-radius: 0; background: var(--paper); color: var(--ink); overflow-y: auto; }
.customer-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0 0 20px; }
.customer-actions .btn { min-height: 44px; justify-content: center; padding: 8px 10px; text-align: center; }
.customers-form-grid { display: none; }
.customer-list-wrap { padding: 8px 12px; overflow: visible; }
.customer-list, .customer-list tbody { display: block; width: 100%; }
.customer-list thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.customer-list tbody { display: grid; }
.customer-list tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, .7fr) auto; align-items: center; gap: 12px; min-height: 48px; padding: 6px 8px; border-bottom: 1px solid var(--line); cursor: pointer; }
.customer-list tbody tr:last-child { border-bottom: 0; }
.customer-list tbody tr:hover { background: #f7faf7; }
.customer-list tbody tr:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.customer-list td { display: block; min-width: 0; padding: 0; border: 0; font-size: 13px; }
.customer-list td:first-child strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-list td.customer-phone { overflow: hidden; color: var(--muted); text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.customer-list td.customer-balance { justify-self: end; white-space: nowrap; }
.customer-list td.empty { grid-column: 1 / -1; text-align: center; }
.customer-credit-note { margin: 12px 0 0; font-size: 12px; }
.customer-form-dialog { position: fixed; top: 50%; left: 50%; width: min(560px, calc(100vw - 28px)); max-height: min(90vh, 760px); margin: 0; padding: 20px; transform: translate(-50%, -50%); border: 1px solid var(--line); border-radius: 15px; background: var(--paper); color: var(--ink); box-shadow: 0 22px 70px #10251b40; overflow-y: auto; }
.customer-form-dialog::backdrop { background: #13231b88; }
.customer-form-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.customer-form-dialog-header h2 { margin: 0; }
.customer-form-dialog .card { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.customer-form-dialog .card > h2 { display: none; }
.customer-contact-fields { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.customer-contact-fields .field { min-width: 0; }
.customer-contact-fields input { width: 100%; min-width: 0; padding-right: 7px; padding-left: 7px; font-size: 13px; }
.customer-contact-fields small { font-size: 11px; line-height: 1.35; }
.customer-current-balance { margin-top: 9px; padding: 11px 13px; border: 1px solid #d5e7da; border-radius: 9px; background: #f1f8f3; color: #245a38; font-size: 14px; font-weight: 750; }
.customer-current-balance.is-debt { border-color: #f1d1cc; background: #fff4f2; color: #a4382b; }
.customer-current-balance.is-credit { border-color: #cde4d2; background: #eef8f0; color: #21633a; }
.customer-current-balance[hidden] { display: none; }
.customer-detail-summary { display: grid; gap: 9px; margin: 0 0 16px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.customer-detail-line { display: grid; grid-template-columns: minmax(82px, 25%) minmax(0, 1fr); gap: 10px; font-size: 13px; }
.customer-detail-line strong { color: var(--muted); }
.customer-detail-line span { overflow-wrap: anywhere; }
.customer-detail-balance { padding-top: 9px; border-top: 1px solid var(--line); font-weight: 700; }
.customer-detail-dialog .customer-form-dialog-header { margin-bottom: 8px; }
.customer-detail-dialog.has-customer-detail[open] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "header header header" "summary summary summary" "inputs inputs inputs" "note note note" "delete activity save"; align-content: start; gap: 8px 10px; }
.customer-detail-dialog.has-customer-detail > .customer-form-dialog-header { grid-area: header; margin: 0; }
.customer-detail-dialog.has-customer-detail > .customer-detail-summary { grid-area: summary; }
.customer-detail-dialog.has-customer-detail > .customer-activity-open { grid-area: activity; }
.customer-detail-dialog.has-customer-detail > #customer-debt-form { display: contents; }
.customer-detail-dialog.has-customer-detail #customer-debt-form > .form-grid { grid-area: inputs; }
.customer-detail-dialog.has-customer-detail #customer-debt-form > .customer-credit-note { grid-area: note; margin: 0; }
.customer-detail-dialog.has-customer-detail #customer-debt-form > .btn { grid-area: save; }
.customer-detail-dialog.has-customer-detail > #customer-delete-form { display: flex; grid-area: delete; align-items: center; justify-content: stretch; align-self: center; justify-self: stretch; width: 100%; margin: 0; padding: 0; border: 0; }
.customer-detail-dialog.has-customer-detail > .customer-activity-open,
.customer-detail-dialog.has-customer-detail > #customer-delete-form > .btn,
.customer-detail-dialog.has-customer-detail #customer-debt-form > .btn { display: flex; width: 100%; min-width: 0; height: 42px; min-height: 42px; align-items: center; justify-content: center; margin: 0 !important; padding: 6px 8px; font-size: 12px; line-height: 1.2; text-align: center; white-space: normal; }
#customer-detail-dialog.customer-detail-dialog.has-customer-detail > #customer-delete-form { margin-top: 0 !important; }
#customer-detail-dialog.customer-detail-dialog.has-customer-detail #customer-debt-form > .btn { margin: 0 !important; }
.customer-detail-dialog .customer-detail-summary { gap: 4px; margin-bottom: 8px; padding: 7px 9px; }
.customer-detail-dialog .customer-detail-line { grid-template-columns: minmax(68px, 22%) minmax(0, 1fr); gap: 7px; font-size: 12px; line-height: 1.3; }
.customer-detail-dialog .customer-detail-balance { padding-top: 5px; color: #21633a; font-size: 15px; font-weight: 800; }
#customer-detail-dialog #customer-debt-form .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 9px; }
#customer-detail-dialog #customer-debt-form .field { gap: 4px; }
#customer-detail-dialog:not(.has-customer-detail) #customer-debt-form .customer-debt-customer-field { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 4px 9px; }
#customer-detail-dialog.has-customer-detail #customer-debt-form .customer-debt-customer-field { display: none; }
#customer-detail-dialog #customer-debt-form .customer-debt-customer-field > label { grid-column: 1 / -1; }
#customer-detail-dialog #customer-debt-form .customer-debt-customer-field > select,
#customer-detail-dialog #customer-debt-form .customer-debt-customer-field > .customer-current-balance { width: 100%; min-width: 0; }
#customer-detail-dialog #customer-debt-form .customer-debt-customer-field > .customer-current-balance:not([hidden]) { display: flex; min-height: 38px; align-items: center; margin-top: 0; padding: 6px 9px; }
#customer-detail-dialog #customer-debt-form .field.full { grid-column: 1 / -1; }
#customer-detail-dialog #customer-debt-form .field > select,
#customer-detail-dialog #customer-debt-form .field > input { min-height: 38px; padding: 7px 9px; }
#customer-detail-dialog #customer-debt-form .customer-current-balance { font-size: 12px; }
#customer-detail-dialog #customer-debt-form .customer-credit-note { margin-top: 7px; font-size: 11px; line-height: 1.35; }
#customer-detail-dialog #customer-debt-form > .btn { min-height: 40px; margin-top: 8px !important; }
#customer-detail-dialog #customer-delete-form { margin-top: 6px; padding-top: 0; }
.customer-form-dialog .customer-delete-form { display: flex; justify-content: flex-end; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.customer-form-dialog .customer-delete-form[hidden] { display: none; }
.customer-activity-dialog[open] { position: fixed; inset: 14px; display: flex; width: auto; max-width: none; height: calc(100dvh - 28px); max-height: none; flex-direction: column; gap: 0; margin: auto; padding: 0; overflow: hidden; border: 1px solid #dce8df; border-radius: 18px; background: #f7faf8; color: var(--ink); box-shadow: 0 24px 80px #10251b4d; }
.customer-activity-dialog::backdrop { background: #101a14a6; backdrop-filter: blur(3px); }
.customer-activity-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px 15px; border-bottom: 1px solid var(--line); background: #fff; }
.customer-activity-header h2 { margin: 0; font-size: clamp(18px, 2.4vw, 24px); }
.customer-activity-customer-name { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.customer-activity-filters { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(160px, .9fr) minmax(280px, 1.5fr) minmax(200px, 1.2fr); gap: 10px; padding: 14px 24px; border-bottom: 1px solid var(--line); background: #fff; }
.customer-activity-filters select, .customer-activity-filters input { width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1px solid #dce5df; border-radius: 9px; background: #fff; color: var(--ink); }
.customer-activity-custom-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.customer-activity-custom-range[hidden] { display: none; }
.customer-activity-status { flex: 0 0 auto; margin: 0; padding: 10px 24px 0; color: var(--muted); font-size: 12px; }
.customer-activity-table-wrap { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.customer-activity-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.customer-activity-table th, .customer-activity-table td { padding: 12px 16px; border-bottom: 1px solid #e8eee9; text-align: left; vertical-align: middle; }
.customer-activity-table thead { position: sticky; top: 0; z-index: 1; background: #f5f8f6; }
.customer-activity-table th { color: #53645a; font-size: 12px; font-weight: 750; }
.customer-activity-table th[data-column="date"], .customer-activity-table td[data-column="date"] { width: 190px; }
.customer-activity-table th[data-column="amount"], .customer-activity-table td[data-column="amount"] { width: 150px; text-align: right; white-space: nowrap; }
.customer-activity-table td[data-column="date"] { color: #53645a; font-size: 12px; font-variant-numeric: tabular-nums; }
.customer-activity-table tbody tr:hover { background: #f8fbf9; }
.customer-activity-description { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 6px 9px; padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.customer-activity-description:hover .customer-activity-title { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }
.customer-activity-title { font-weight: 700; overflow-wrap: anywhere; }
.customer-activity-summary { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.customer-activity-type { padding: 3px 8px; border-radius: 99px; background: #edf6ef; color: #286744; font-size: 11px; font-weight: 750; }
.is-cancellation .customer-activity-type { background: #fff0ee; color: #a4382b; }
.is-payment .customer-activity-type { background: #edf3ff; color: #355a9b; }
.is-debt .customer-activity-type { background: #fff4e2; color: #805207; }
.customer-activity-item.is-cancellation td[data-column="amount"] { color: #a4382b; }
.customer-activity-item.is-payment td[data-column="amount"], .customer-activity-item.is-debt td[data-column="amount"] { color: var(--green-dark); }
.customer-activity-empty { padding: 28px 18px !important; color: var(--muted); text-align: center !important; }
@media (min-width: 761px) {
    .customer-activity-table th, .customer-activity-table td { padding-top: 6px; padding-bottom: 6px; }
    .customer-activity-table td[data-column="date"] { color: #34483d; }
    .customer-activity-table td[data-column="description"] { display: flex; min-width: 0; align-items: center; gap: 12px; overflow: hidden; white-space: nowrap; }
    .customer-activity-description { min-width: 0; max-width: 65%; flex: 0 1 auto; flex-wrap: nowrap; }
    .customer-activity-title { min-width: 0; color: #17231e; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .customer-activity-summary { min-width: 0; flex: 1 1 auto; margin: 0; padding-left: 12px; border-left: 1px solid #cbd6ce; color: #405348; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .customer-activity-table td[data-column="amount"] { color: #263d31; font-weight: 700; }
    .customer-activity-item.is-cancellation td[data-column="amount"] { color: #a4382b; }
    .customer-activity-item.is-payment td[data-column="amount"],
    .customer-activity-item.is-debt td[data-column="amount"] { color: #146342; }
}
.customer-activity-detail-dialog { width: min(560px, calc(100vw - 24px)); }
.customer-activity-detail-dialog::backdrop { background: #10251b80; backdrop-filter: blur(3px); }
.customer-activity-detail-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.customer-activity-detail-header h2 { min-width: 0; margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.customer-activity-detail-content { display: grid; gap: 12px; padding: 20px; }
.customer-activity-detail-meta, .customer-activity-detail-text { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.customer-activity-detail-amount { color: var(--green-dark); font-size: 18px; }
.customer-activity-order-link { justify-self: start; color: var(--green-dark); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.new-order-dialog::backdrop { background: #13231bcc; backdrop-filter: blur(2px); }
.new-order-header { display: flex; width: 100%; align-items: flex-start; justify-content: space-between; gap: 18px; max-width: none; margin: 0 0 22px; }
.new-order-header h1 { margin-bottom: 0; font-size: 22px; line-height: 1.3; }
.new-order-header .subtitle { margin: 0; }
.new-order-form { max-width: 1280px; margin: 0 auto; padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 3px 12px #1b3a2810; }
.order-workspace { display: grid; grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr); align-items: start; gap: 22px; }
.order-details-panel { min-width: 0; }
.order-details-panel > .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.order-catalog-panel { min-width: 0; }
.order-product-search { position: relative; z-index: 2; margin-bottom: 12px; }
.order-product-search > input { width: 100%; min-height: 42px; padding-right: 50px; }
.order-product-search .order-product-scan-button { display: inline-flex; }
.order-product-cards { position: relative; }
.order-product-search-suggestions { top: calc(100% + 4px); }
.mobile-open-product-picker, .mobile-product-picker-header { display: none; }
.package-mobile-product-search { display: none; }
.order-catalog-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.order-catalog-heading h2 { margin-bottom: 10px; }
.order-category-list { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 7px; margin: 0 0 18px; padding: 0 0 16px; border-bottom: 2px solid #d5ded8; }
.order-category-button { padding: 7px 11px; border: 1px solid #116344; border-radius: 8px; background: #147a55; color: #fff; font-weight: 700; cursor: pointer; }
.order-category-button:hover { filter: brightness(.92); }
.order-category-button.active { border-color: #102f23; background: #102f23; color: #fff; box-shadow: 0 0 0 2px #b7dbc7; }
.order-catalog-layout { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; gap: 10px; overflow: hidden; }
.order-category-sidebar { display: flex; min-width: 0; flex: 0 0 auto; flex-direction: column; align-items: center; gap: 8px; }
.order-catalog-panel .order-category-list { display: flex !important; flex-direction: row; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; border: 0; }
.order-category-item { position: relative; display: flex; min-width: 0; align-items: stretch; }
.order-category-item[hidden] { display: none !important; }
.order-category-item .order-category-button { min-width: 0; padding-right: 25px; overflow-wrap: anywhere; text-align: center; white-space: nowrap; }
.order-category-item:nth-of-type(2) .order-category-button { border-color: #1d4ed8; background: #2563eb; }
.order-category-item:nth-of-type(3) .order-category-button { border-color: #6d28d9; background: #7c3aed; }
.order-category-item:nth-of-type(4) .order-category-button { border-color: #b45309; background: #c2410c; }
.order-category-item:nth-of-type(5) .order-category-button { border-color: #0f766e; background: #0f766e; }
.order-category-item:nth-of-type(6) .order-category-button { border-color: #be123c; background: #be123c; }
.order-category-item .order-category-button.active { border-color: #102f23; background: #102f23; }
.order-category-hide { position: absolute; z-index: 1; top: 4px; right: 4px; display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; padding: 0; border: 1px solid #fff; border-radius: 50%; background: #a82020; color: #fff; font-size: 13px; font-weight: 800; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px #0004; }
.order-category-hide:hover { border-color: #fff; background: #721717; color: #fff; }
.order-hidden-categories { width: 100%; max-width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: #f8fbf9; }
.order-hidden-categories[hidden] { display: none !important; }
.order-hidden-categories > strong { display: block; margin-bottom: 7px; font-size: 12px; text-align: center; }
.order-hidden-category-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; }
.order-category-restore { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.order-category-restore span { color: var(--green); font-size: 18px; font-weight: 700; }
.order-catalog-layout > .order-product-cards { min-width: 0; }
.existing-order-summary { margin: 14px 0; padding: 12px; border: 1px solid #cfe1d4; border-radius: 9px; background: #f5faf6; font-size: 13px; }
.existing-order-summary ul { margin: 8px 0 0; padding-left: 19px; color: var(--muted); }
.order-lines-wrap { max-height: 42vh; margin-top: 22px; padding-top: 14px; overflow-x: hidden; overflow-y: auto; border: 0; border-top: 2px solid #e2e9e4; border-radius: 0; }
.package-cart-summary { display: none; }
.order-cart-dialog { position: fixed; top: 50%; left: 50%; width: min(620px, calc(100vw - 28px)); max-height: min(88vh, 760px); margin: 0; padding: 20px; transform: translate(-50%, -50%); border: 1px solid var(--line); border-radius: 15px; background: #fff; color: var(--ink); box-shadow: 0 22px 70px #10251b40; overflow-y: auto; }
.order-cart-dialog::backdrop { background: #13231b88; }
.order-cart-dialog .application-dialog-header { align-items: center; }
.order-cart-dialog .application-dialog-header h2 { margin: 0; }
.order-cart-dialog-content .order-lines-wrap { max-height: min(65vh, 520px); margin-top: 0; padding-top: 10px; }
.order-lines-scroll { min-width: 0; overflow-x: auto; }
.order-lines-table { width: 100%; min-width: 380px; border-collapse: collapse; table-layout: fixed; }
.order-lines-table th, .order-lines-table td { padding: 7px 6px; font-size: 12px; }
.order-lines-table th { border-bottom: 2px solid #d8e1db; color: var(--muted); font-weight: 700; white-space: nowrap; }
.order-lines-table tbody tr { border-bottom: 1px solid #e5ebe7; background: transparent; }
.order-lines-table tbody tr:last-child { border-bottom: 0; }
.order-lines-table tbody td { border: 0; background: transparent; }
.order-lines-table th:nth-child(1), .order-lines-table th:nth-child(3), .order-lines-table th:nth-child(4), .order-lines-table th:nth-child(5) { text-align: center; }
.order-lines-table th:nth-child(1) { width: 30px; }
.order-lines-table th:nth-child(3) { width: 112px; }
.order-lines-table th:nth-child(4) { width: 78px; }
.order-lines-table th:nth-child(5) { width: 28px; }
.order-lines-table td:nth-child(1), .order-lines-table td:nth-child(3), .order-lines-table td:nth-child(4), .order-lines-table td:nth-child(5) { text-align: center; }
.order-lines-table td:nth-child(2) { overflow-wrap: anywhere; }
.order-line-quantity-control { display: inline-flex; width: 78px; height: 30px; align-items: stretch; overflow: hidden; border: 1px solid #cbd8cf; border-radius: 6px; background: #fff; }
.order-lines-table .order-line-quantity { width: 56px; max-width: 56px; min-width: 0; height: 28px; padding: 3px 2px; border: 0; border-radius: 0; text-align: center; appearance: textfield; }
.order-lines-table .order-line-quantity::-webkit-inner-spin-button,
.order-lines-table .order-line-quantity::-webkit-outer-spin-button { margin: 0; appearance: none; }
.order-line-quantity-steps { display: flex; width: 20px; flex: 0 0 20px; flex-direction: column; border-left: 1px solid #d9e1db; }
.order-lines-table .order-line-quantity-step { display: flex; min-height: 0; flex: 1 1 50%; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 0; background: #f3f7f4; color: var(--green-dark); font-size: 8px; line-height: 1; cursor: pointer; }
.order-lines-table .order-line-quantity-step + .order-line-quantity-step { border-top: 1px solid #d9e1db; }
.order-lines-table .order-line-quantity-step:hover,
.order-lines-table .order-line-quantity-step:focus-visible { background: #dceee2; color: var(--green-dark); }
.order-lines-table .order-line-total { font-weight: 650; white-space: nowrap; }
.order-lines-table .sent-order-line { color: var(--muted); background: transparent; }
.order-lines-table .order-line-product { display: grid; gap: 2px; }
.order-lines-table .order-line-remove { width: 24px; height: 28px; padding: 0; border-radius: 0; background: transparent; }
.order-lines-table .order-line-remove:hover { background: transparent; color: var(--red); }
.order-lines-table input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--green); }
.order-cart-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 8px; padding-top: 10px; }
.order-cart-actions .btn { width: 100%; min-width: 0; max-width: none; min-height: 40px; height: auto; padding: 8px 10px; white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
.order-cart-actions .btn[hidden] { display: none; }
.draft-save-status { margin: 8px 0 0; color: var(--green-dark); font-size: 12px; }
.draft-save-status.error { color: var(--red); }
.order-action-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 8px; }
.order-action-row .btn { min-height: 42px; height: 42px; margin: 0; }
.order-action-row .btn[hidden] { display: none; }
.order-submit-group { position: relative; display: grid; align-content: start; gap: 6px; grid-column: 1; grid-row: 1; min-width: 0; }
.order-submit-group #order-submit-button { width: 100%; }
.order-submit-group #order-cancel-button { width: 100%; min-width: 0; }
#order-submit-button { justify-self: start; max-width: 100%; }
#clear-table-button { grid-column: 2; grid-row: 1; justify-self: center; max-width: 100%; white-space: normal; text-align: center; }
#open-payment-dialog { grid-column: 3; grid-row: 1; justify-self: end; max-width: 100%; }
.package-order-context .order-action-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.package-order-context .order-action-row .btn {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    height: 38px;
    padding: 6px 8px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
}
.package-order-context .order-submit-group { width: 100%; grid-column: auto; grid-row: auto; }
.package-order-context .order-submit-group #order-submit-button { width: 100%; }
.package-order-context .order-lines-table { width: 100%; min-width: 0; }
.package-order-context .order-lines-table th:nth-child(1),
.package-order-context .order-lines-table td:nth-child(1) { width: 26px; }
.package-order-context .order-lines-table th:nth-child(3),
.package-order-context .order-lines-table td:nth-child(3) { width: 76px; }
.package-order-context .order-lines-table th:nth-child(4),
.package-order-context .order-lines-table td:nth-child(4) { width: 100px; }
.package-order-context .order-lines-table th:nth-child(5),
.package-order-context .order-lines-table td:nth-child(5) { width: 24px; }
.package-order-context .order-line-quantity-control { width: 58px; height: 28px; border: 0; overflow: visible; background: transparent; }
.package-order-context .order-lines-table .order-line-quantity { width: 58px; max-width: 58px; height: 28px; padding: 3px; border: 1px solid #d9e1db; border-radius: 8px; text-align: center; font-size: 12px; }
.package-order-context .order-lines-table th:nth-child(4),
.package-order-context .order-lines-table td:nth-child(4) { text-align: right; white-space: nowrap; }
.package-order-context .order-lines-table .order-line-total { padding-right: 6px; font-size: 11px; font-variant-numeric: tabular-nums; }
@media (min-width: 901px) {
    dialog.new-order-dialog[open] {
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    .new-order-dialog[open] > .new-order-header {
        width: 100%;
        max-width: none;
        flex: 0 0 auto;
        margin: 0 auto 14px;
    }
    .new-order-dialog[open] > .new-order-form {
        display: flex;
        width: 100%;
        max-width: none;
        min-height: 0;
        flex: 1 1 auto;
        flex-direction: column;
        margin: 0 auto;
        padding: 16px;
        overflow: hidden;
    }
    .new-order-dialog[open] .order-workspace {
        min-height: 0;
        flex: 1 1 auto;
        grid-template-columns: minmax(340px, .8fr) minmax(0, 1.2fr);
        align-items: stretch;
        gap: 18px;
    }
    .new-order-dialog[open] .order-details-panel {
        display: flex;
        min-height: 0;
        flex-direction: column;
        overflow: hidden;
    }
    .new-order-dialog[open] .order-details-panel > .form-grid,
    .new-order-dialog[open] .existing-order-summary,
    .new-order-dialog[open] .draft-save-status,
    .new-order-dialog[open] .order-action-row {
        flex: 0 0 auto;
    }
    .new-order-dialog[open] .order-lines-wrap {
        min-height: 0;
        max-height: none;
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        margin-top: 12px;
        padding-top: 8px;
        overflow: hidden;
        overscroll-behavior: contain;
    }
    .new-order-dialog[open] .order-lines-scroll {
        min-height: 0;
        max-height: 214px;
        flex: 0 1 214px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .new-order-dialog[open] .order-lines-table th {
        position: sticky;
        top: 0;
        z-index: 1;
        background: #fff;
    }
    .new-order-dialog[open] .order-cart-actions {
        flex: 0 0 auto;
        justify-content: flex-end;
        margin-top: 14px;
        padding-top: 0;
    }
    .new-order-dialog[open] .order-action-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 14px;
    }
    .new-order-dialog[open] .order-action-row .btn {
        width: 100%;
        min-width: 0;
        justify-self: stretch;
        grid-column: auto;
        grid-row: auto;
        white-space: nowrap;
    }
    .new-order-dialog[open] .order-catalog-panel {
        display: flex;
        min-height: 0;
        flex-direction: column;
        overflow: hidden;
    }
    .new-order-dialog[open] .order-product-search,
    .new-order-dialog[open] .order-category-list {
        flex: 0 0 auto;
    }
    .new-order-dialog[open] .order-product-cards {
        min-height: 0;
        flex: 1 1 auto;
        align-content: start;
        margin: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .new-order-dialog.existing-table-order .order-cart-actions .btn,
    .new-order-dialog.existing-table-order .order-action-row .btn {
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: 40px;
        white-space: normal;
    }
    .new-order-dialog.existing-table-order .order-cart-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .new-order-dialog.existing-table-order .order-action-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .new-order-dialog.existing-table-order #order-submit-button,
    .new-order-dialog.existing-table-order #open-payment-dialog {
        grid-column: auto;
        grid-row: auto;
    }
    .new-order-dialog[open] .order-lines-table .order-line-product {
        display: flex;
        min-width: 0;
        align-items: baseline;
        gap: 8px;
    }
    .new-order-dialog[open] .order-lines-table .order-line-product strong {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .new-order-dialog[open] .order-lines-table .order-line-product small {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}
html body #membership-purchase-dialog[open] {
    position: fixed !important;
    inset: 50% auto auto 50% !important;
    width: min(560px, calc(100vw - 28px)) !important;
    max-width: min(560px, calc(100vw - 28px)) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: min(88dvh, 700px) !important;
    margin: 0 !important;
    padding: 14px !important;
    transform: translate(-50%, -50%) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-gutter: auto !important;
}
html body #membership-purchase-dialog[open] > .application-dialog-header {
    position: static !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 0 8px !important;
    padding: 0 0 8px !important;
}
html body #membership-purchase-dialog[open] > .application-dialog-header h2 { font-size: 18px !important; }
#membership-purchase-dialog > .subtitle { margin: 0 0 8px; font-size: 12px; line-height: 1.35; }
#membership-purchase-dialog > .notice { margin: 0 0 8px; padding: 8px 10px; font-size: 12px; }
#membership-purchase-dialog .membership-payment-details { gap: 6px; margin-bottom: 8px; padding: 8px; }
#membership-purchase-dialog .membership-payment-details > .muted { margin: 0; line-height: 1.3; }
#membership-purchase-dialog .membership-payment-account-option { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; padding: 6px; }
#membership-purchase-dialog .membership-payment-account-choice,
#membership-purchase-dialog .membership-payment-instruction { grid-column: 1 / -1; }
#membership-purchase-dialog .membership-payment-copy { min-width: 0; gap: 5px; padding: 6px; font-size: 11px; }
#membership-purchase-dialog .membership-payment-copy > span:last-child { font-size: 10px; }
#membership-purchase-dialog .membership-payment-copy-status { min-height: 0; }
#membership-purchase-dialog .membership-purchase-form { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; }
#membership-purchase-dialog .referral-credit-balance,
#membership-purchase-dialog .membership-plan-grid,
#membership-purchase-dialog .membership-purchase-note { grid-column: 1 / -1; }
#membership-purchase-dialog .referral-credit-balance { padding: 6px 9px; font-size: 12px; }
#membership-purchase-dialog .membership-plan-grid { grid-template-columns: minmax(0, 1fr); gap: 5px; }
#membership-purchase-dialog .membership-plan-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 9px;
}
#membership-purchase-dialog .membership-plan-option input { width: 16px; height: 16px; margin: 0; }
#membership-purchase-dialog .membership-plan-copy {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1px 8px;
}
#membership-purchase-dialog .membership-plan-copy > strong,
#membership-purchase-dialog .membership-plan-copy > span { min-width: 0; overflow-wrap: anywhere; }
#membership-purchase-dialog .membership-plan-copy > strong { font-size: 13px; line-height: 1.25; }
#membership-purchase-dialog .membership-plan-copy > span { font-size: 11px; line-height: 1.25; }
#membership-purchase-dialog .membership-plan-copy > b { grid-column: 2; grid-row: 1; font-size: 14px; white-space: nowrap; }
#membership-purchase-dialog .membership-credit-preview { grid-column: 1 / -1; font-size: 10px; line-height: 1.2; }
#membership-purchase-dialog .membership-purchase-note { display: grid; gap: 3px; margin: 0; }
#membership-purchase-dialog .membership-purchase-note label { font-size: 11px; line-height: 1.25; }
#membership-purchase-dialog .membership-purchase-note textarea {
    width: 100%;
    height: 42px;
    min-height: 42px;
    padding: 6px 8px;
    font-size: 12px;
    line-height: 1.3;
}
#membership-purchase-dialog .membership-purchase-help { align-self: center; font-size: 11px; line-height: 1.3; }
#membership-purchase-dialog .membership-purchase-submit { min-height: 36px; align-self: center; padding: 7px 10px; font-size: 12px; }
@media (max-width: 560px) {
    html body #membership-purchase-dialog[open] {
        inset: max(8px, env(safe-area-inset-top)) 10px auto !important;
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        max-height: calc(100dvh - max(16px, env(safe-area-inset-top) + 8px)) !important;
        margin: 0 auto !important;
        padding: 10px !important;
        transform: none !important;
    }
}
@media (min-width: 761px) {
    .new-order-dialog[open] .order-lines-wrap {
        display: flex;
        height: 272px;
        min-height: 272px;
        max-height: 272px;
        flex: 0 0 272px;
        flex-direction: column;
        margin-top: 12px;
        padding-top: 8px;
        overflow: hidden;
    }
    .new-order-dialog[open] .order-lines-scroll {
        height: 220px;
        min-height: 220px;
        max-height: 220px;
        flex: 0 0 220px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
    }
    .new-order-dialog[open] .order-lines-table th {
        position: sticky;
        top: 0;
        z-index: 1;
        background: #fff;
    }
    .new-order-dialog[open] .order-lines-table tbody tr {
        height: 34px;
    }
    .new-order-dialog[open] .order-lines-table tbody td {
        height: 34px;
        padding: 2px 5px;
        overflow: hidden;
        vertical-align: middle;
    }
    .new-order-dialog[open] .order-lines-table .order-line-quantity-control {
        height: 28px;
    }
    .new-order-dialog[open] .order-lines-table .order-line-quantity {
        height: 26px;
    }
    .new-order-dialog[open] .order-lines-table .order-line-product {
        display: flex;
        min-width: 0;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
    }
    .new-order-dialog[open] .order-lines-table .order-line-product strong,
    .new-order-dialog[open] .order-lines-table .order-line-product small {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .new-order-dialog[open] .order-cart-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        position: static;
        flex: 0 0 auto;
        align-items: stretch;
        gap: 8px;
        margin-top: 8px;
        padding-bottom: 0;
        padding-top: 0;
    }
    .new-order-dialog[open] .order-cart-actions .btn {
        width: 100%;
        min-width: 0;
        max-width: none;
        height: auto;
        min-height: 40px;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .new-order-dialog[open] .order-cart-actions #update-existing-order {
        width: 100%;
        min-width: 0;
    }
    .new-order-dialog.table-order-context[open] .order-action-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 14px;
    }
    .new-order-dialog.table-order-context[open] .order-action-row .btn {
        width: 100%;
        min-width: 0;
        justify-self: stretch;
        grid-column: auto;
        grid-row: auto;
        white-space: nowrap;
    }
}
dialog.new-order-dialog[open] {
    position: fixed !important;
    inset: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding: 18px clamp(16px, 3vw, 40px) !important;
    transform: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}
@media (max-width: 760px) {
    .staff-user-create-form .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .staff-user-create-form .form-grid > .field:first-child { grid-column: 1 / -1; }
    .market-sale-cart-trigger { cursor: pointer; }
    dialog.new-order-dialog.mobile-order-layout[open] {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }
    .new-order-dialog.mobile-order-layout[open] > .new-order-header {
        padding-right: 12px;
        padding-left: 12px;
    }
    .new-order-dialog.mobile-order-layout[open] > .new-order-form {
        width: 100%;
        min-width: 0;
        max-width: none;
        margin-right: 0;
        margin-left: 0;
        padding-right: 12px;
        padding-left: 12px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
    }
    dialog.new-order-dialog[open] {
        padding: 16px 12px !important;
    }
}
.customer-order-field { grid-column: span 2; }
.customer-order-controls { display: flex; gap: 8px; }
.customer-order-controls .customer-picker-trigger { flex: 1; min-width: 0; justify-content: space-between; padding: 10px 12px; border: 1px solid #d9e1db; background: #fff; text-align: left; }
.customer-picker-trigger span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-order-controls .btn { flex: 0 0 auto; white-space: nowrap; }
.customer-picker-dialog { position: fixed; top: 50%; left: 50%; width: min(560px, calc(100vw - 28px)); max-height: min(82dvh, 620px); margin: 0; padding: 20px; transform: translate(-50%, -50%); border: 1px solid var(--line); border-radius: 15px; background: #fff; color: var(--ink); box-shadow: 0 22px 70px #10251b40; overflow-y: auto; }
.customer-picker-dialog::backdrop { background: #13231b88; }
dialog.customer-picker-dialog[open]:not(.support-chat-dialog) > .application-dialog-header { position: static; top: auto; z-index: auto; align-items: center; margin: 0 0 12px; padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.customer-picker-dialog .application-dialog-header h2 { margin: 0; }
.customer-picker-dialog #package-customer-details { display: grid; gap: 9px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.customer-picker-dialog #package-customer-details[hidden] { display: none; }
.customer-picker-dialog > .field,
.customer-picker-dialog #package-customer-details .field { gap: 3px; }
.customer-picker-dialog #package-customer-details .form-grid { gap: 5px 9px; }
.customer-picker-dialog #package-customer-details input,
.customer-picker-dialog #package-customer-details textarea { min-height: 36px; padding: 6px 9px; }
.customer-picker-dialog #package-customer-details textarea { min-height: 42px; }
.customer-picker-dialog #package-customer-details label { font-size: 13px; line-height: 1.25; }
.customer-picker-actions { display: flex; justify-content: stretch; flex-wrap: nowrap; gap: 9px; margin-top: 14px; }
.customer-picker-actions .btn { width: auto; min-width: 0; min-height: 40px; flex: 1 1 0; padding: 8px 10px; color: #fff; background: var(--green); text-align: center; }
.customer-picker-actions .btn:hover { background: var(--green-dark); }
.order-customer-dialog { position: fixed; top: 50%; left: 50%; width: min(620px, calc(100vw - 28px)); max-height: min(90vh, 760px); margin: 0; padding: 24px; transform: translate(-50%, -50%); border: 1px solid var(--line); border-radius: 15px; background: #fff; color: var(--ink); box-shadow: 0 22px 70px #10251b40; overflow-y: auto; }
.order-customer-dialog::backdrop { background: #13231b88; }
.order-customer-dialog .application-dialog-header { align-items: center; }
.order-customer-dialog .subtitle { margin: 8px 0 16px; }
.order-customer-dialog textarea { min-height: 70px; }
.payment-customer-field { margin-top: 14px; }
.kitchen-ticket-page { page: print-pos-80; padding: 12px; background: #fff; color: #000; }
.kitchen-ticket { width: min(100%, 340px); margin: 0 auto; padding: 10px; font: 14px/1.35 Arial, sans-serif; }
.kitchen-ticket header { display: grid; gap: 4px; padding-bottom: 10px; border-bottom: 1px dashed #000; text-align: center; }
.kitchen-ticket header span { font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.kitchen-ticket p { padding: 10px 0; border-bottom: 1px dashed #000; }
.kitchen-ticket table { width: 100%; }
.kitchen-ticket th, .kitchen-ticket td { padding: 8px 3px; border-bottom: 1px dashed #777; color: #000; font-size: 14px; }
.kitchen-ticket th:last-child, .kitchen-ticket td:last-child { width: 55px; text-align: right; }
.kitchen-ticket .ticket-change-label { display: inline-block; margin-bottom: 3px; }
.kitchen-ticket td small { font-size: 12px; }
.kitchen-ticket footer { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.package-status { display: flex; gap: 5px; margin-top: 7px; }
.empty { color: var(--muted); text-align: center; padding: 25px 10px; }
.footer-note { color: var(--muted); font-size: 12px; margin-top: 18px; }
.spaced { margin-top: 18px; }
.spaced-top { margin-top: 12px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.invoice { max-width: 760px; margin: 20px auto; padding-top: 14px; }
.invoice-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.invoice-business { min-width: 0; }
.invoice-head h1 { margin-bottom: 3px; overflow-wrap: anywhere; }
.invoice-business-contact { color: var(--muted); font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.invoice > .divider { margin: 6px 0 8px; }
.invoice > .invoice-meta { margin: 6px 0 10px; line-height: 1.35; }
.invoice tfoot th { color: var(--ink); font-size: 15px; }
@media (max-width: 900px) {
    .table-card-list > .table-card .table-number-wrap { top: 3px; left: 3px; }
    .table-card-list > .table-card .table-number { box-shadow: 0 1px 4px #17231e24; }
    .table-card-list > .table-card .table-pending-total {
        top: 50%;
        right: 5px;
        left: auto;
        width: calc(100% - var(--table-number-size, 23px) - 18px);
        transform: translateY(-50%);
        font-weight: 700;
        line-height: 1.1;
        text-align: center;
        overflow-wrap: anywhere;
    }
    .table-card-list > .table-card .table-transfer-actions { right: 3px; bottom: 3px; left: 3px; }
    .table-card-list > .table-card .table-transfer-button { width: 23px; height: 22px; padding: 2px; border-radius: 6px; }
    .table-card-list > .table-card .table-transfer-button svg { width: 13px; height: 13px; }
    .shell { display: block; min-height: 100vh; }
    .shell.tables-layout { height: auto; min-height: 100dvh; overflow: visible; }
    .tables-layout > .sidebar { height: auto; min-height: 0; padding-bottom: 0; }
    .tables-layout > .main { height: auto; overflow: visible; }
    .tables-layout > .sidebar > .nav { overflow: visible; }
    .sidebar { position: fixed; top: 0; right: 0; left: 0; z-index: 2147483010; min-width: 0; min-height: 0; padding: 2px 10px 0; box-shadow: 0 8px 22px #10251b40; }
    .sidebar.menu-open { max-height: 100dvh; overflow-y: auto; }
    .main { padding-top: calc(var(--mobile-sidebar-height, 132px) + 10px); }
    .sidebar .brand { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 30px; align-items: center; gap: 6px; min-width: 0; min-height: 40px; padding: 0 0 0 2px; }
    .sidebar .brand > .brand-heading { grid-column: 1; grid-row: 1; min-width: 0; max-width: none; overflow: hidden; justify-items: start; }
    .brand > .brand-heading > .brand-home strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .sidebar .brand > .mobile-brand-datetime { position: static; grid-column: 2; grid-row: 1; display: flex; width: 100%; min-width: 0; align-items: center; justify-content: center; gap: 2px; transform: none; font-size: 11px; line-height: 1.2; }
    .brand > .mobile-brand-datetime > span { flex: 0 1 auto; min-width: 0; }
    .brand > .mobile-brand-datetime [data-clock-date] { display: none; }
    .brand > .mobile-brand-datetime [data-clock-time] { order: 1; flex: 0 0 auto; font-size: 13px; }
    .brand > .mobile-brand-datetime .mobile-sidebar-business-name { order: 3; flex: 1 1 auto; min-width: 0; margin: 0 4px; padding: 1px 5px; overflow: hidden; border: 1px solid #aabbb0; border-radius: 2px; background: transparent; color: #c7d4cc; font-size: inherit; line-height: inherit; text-align: center; text-overflow: ellipsis; }
    .brand > .brand-heading .sidebar-business-name { display: none; }
    .brand > .brand-heading .sidebar-staff-username { display: none; }
    .sidebar-desktop-clock { display: none; }
    .brand-context { display: none; gap: 6px; margin: 0 2px; padding: 0; font-size: 10px; line-height: 1.2; scrollbar-width: none; }
    .brand-context::-webkit-scrollbar { display: none; }
    .nav-toggle { grid-column: 3; grid-row: 1; justify-self: end; width: 30px; min-width: 30px; min-height: 30px; display: flex; align-items: center; justify-content: center; gap: 0; margin: 0; padding: 5px; border: 1px solid #ffffff24; border-radius: 8px; background: #ffffff12; color: #fff; font-weight: 650; text-align: left; cursor: pointer; }
    .nav-toggle:hover, .nav-toggle:focus-visible { background: #ffffff20; }
    .nav-toggle-icon { width: 17px; min-width: 17px; display: grid; gap: 4px; flex: 0 0 17px; }
    .nav-toggle-icon span { height: 2px; border-radius: 2px; background: currentColor; }
    .nav { display: none; flex: none; flex-direction: initial; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 34px; gap: 2px; margin-top: 4px; overflow: visible; }
    .sidebar.menu-open .nav { display: grid; }
    .sidebar.menu-open .nav > .brand-context { display: flex; grid-column: 1 / -1; min-height: 28px; align-items: center; padding: 5px 8px; border-bottom: 1px solid #ffffff24; color: #c7d4cc; }
    .nav .nav-label { display: none; }
    .nav a { display: flex; min-width: 0; height: 32px; min-height: 32px; align-items: center; justify-content: center; padding: 3px 6px; border: 1px solid #ffffff12; border-radius: 4px; text-align: center; white-space: normal; overflow-wrap: anywhere; }
    .nav-settings-logout { display: contents; }
    .nav-settings-logout > a { width: 100%; flex: none; }
    .nav-logout { display: block; width: 100%; min-width: 0; height: 32px; margin: 0; padding: 0; border: 0; }
    .nav .nav-logout .btn { display: flex; width: 100%; height: 32px; min-height: 32px; justify-content: center; padding: 3px 6px; border: 1px solid #ffffff12; border-radius: 4px; font-size: 12px; }
    .login-page { min-height: 100dvh; padding: 12px 14px 58px; }
    .login-page .portal-header { gap: 8px; margin-bottom: 10px; }
    .login-page .portal-header .brand { display: flex; min-width: 0; align-items: center; padding: 0; }
    .login-page .portal-header .brand strong { font-size: 21px; }
    .login-page .portal-header .brand span { font-size: 11px; }
    .login-page .portal-badge { padding: 6px 8px; font-size: 9px; }
    .login-page .portal-panel { padding: 16px; border-radius: 11px; }
    .login-page .portal-panel h1 { margin: 2px 0; font-size: 21px; }
    .login-page .portal-panel .subtitle { margin-bottom: 10px; font-size: 12px; line-height: 1.35; }
    .login-page .portal-panel .field { gap: 2px; margin-bottom: 7px; }
    .login-page .portal-panel label { font-size: 12px; }
    .login-page .portal-panel input:not([type="checkbox"]) { height: 36px; padding: 6px 9px; font-size: 14px; }
    .login-page .portal-panel .password-input-wrap input { padding-right: 40px; }
    .login-page .password-visibility-toggle { width: 29px; height: 29px; }
    .login-page .password-visibility-toggle svg { width: 17px; height: 17px; }
    .login-page .business-password-row { gap: 8px; margin-bottom: 7px; }
    .login-page .remember-login-field { min-height: 36px; gap: 5px; font-size: 11px; }
    .login-page .portal-panel .portal-submit { min-height: 38px; font-size: 13px; }
    .login-page .application-cta { gap: 6px 8px; margin-top: 9px; }
    .login-page .application-cta p { font-size: 12px; }
    .login-page .application-cta .btn { min-height: 36px; padding: 7px 10px; font-size: 12px; }
    .login-page .portal-footnote { margin: 7px 0; font-size: 11px; }
    .content { padding: 0 17px 38px; }
    .admin-settings-utility-launches { gap: 8px; }
    .admin-settings-utility-launches > .btn { min-height: 48px; padding: 8px 6px; font-size: 13px; line-height: 1.25; }
    .application-dialog.admin-database-dialog[open] { inset: 8px 0 auto; width: calc(100vw - 16px); max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 14px; }
    .admin-database-dialog .application-dialog-header { margin-bottom: 12px; }
    .admin-database-tool { padding: 12px; }
    .admin-database-tool .btn { width: 100%; }
    .admin-database-restore-form .btn,
    .admin-database-reset-form .btn { justify-self: stretch; }
    .email-settings-dialog { max-height: 92dvh; padding: 14px; border-radius: 12px; }
    .email-settings-dialog .application-dialog-header { margin-bottom: 10px; }
    .email-settings-dialog .application-dialog-header h2 { font-size: 18px; }
    .email-settings-dialog #email-settings-form { gap: 9px; padding: 12px; }
    .email-settings-dialog #email-settings-form .field { gap: 4px; }
    .email-settings-dialog #email-settings-form .field input { min-height: 40px; padding: 8px 9px; font-size: 13px; }
    .email-settings-dialog #email-settings-form > .btn { width: 100%; }
    .admin-settings-launches { gap: 8px; margin-bottom: 14px; }
    .admin-settings-launches > .btn { min-height: 44px; padding: 8px 6px; font-size: 13px; }
    .telegram-settings-launch { min-height: 44px; margin-top: -4px; margin-bottom: 14px; }
    .telegram-settings-dialog { max-height: 92dvh; padding: 14px; border-radius: 12px; }
    .telegram-settings-dialog .application-dialog-header { margin-bottom: 10px; }
    .telegram-settings-dialog .application-dialog-header h2 { font-size: 18px; }
    .telegram-setup-guide { padding: 11px; }
    .telegram-setup-guide ol { font-size: 12px; }
    .telegram-settings-actions { display: grid; grid-template-columns: 1fr; }
    .telegram-settings-actions .btn { width: 100%; }
    .telegram-announcement-form > .btn, .telegram-business-link-card .btn { width: 100%; }
    .admin-site-settings-dialog { max-height: 92dvh; padding: 14px; border-radius: 12px; }
    .admin-site-settings-dialog .application-dialog-header { margin-bottom: 10px; }
    .admin-site-settings-dialog .application-dialog-header h2 { font-size: 18px; }
    .admin-site-settings-dialog .admin-settings-form { padding: 12px; }
    .admin-site-settings-dialog .admin-settings-form .spaced-top { margin-top: 10px; }
    .tables-page-content { height: calc(100dvh - var(--mobile-sidebar-height, 132px) - 10px); padding: 0 17px; }
    .orders-page-content > .toolbar:first-child { margin-top: 0; }
    .tables-page-content > .table-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr)); }
    .table-sales-actions { gap: 10px; }
    .table-sales-actions > .table-card { min-height: 46px; }
    .table-summary { gap: 7px; }
    .table-summary-item { min-height: 44px; padding: 5px 6px; }
    .table-summary-item span { font-size: 11px; }
    .table-summary-item strong { font-size: 14px; }
    .topbar { padding: 0 18px; }
    .subscription-status { position: static; transform: none; margin: 0 auto; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .membership-table, .membership-table thead, .membership-table tbody, .membership-table tr, .membership-table td { display: block; width: 100%; }
    .membership-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
    .membership-table tbody tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
    .membership-table tbody tr:last-child { border-bottom: 0; }
    .membership-table td { display: grid; grid-template-columns: minmax(88px, 30%) minmax(0, 1fr); gap: 10px; padding: 8px 6px; border: 0; overflow-wrap: anywhere; }
    .membership-table td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 650; text-align: left; }
    .membership-table td[data-label="İşlem"] { display: block; }
    .membership-table td[data-label="İşlem"]::before { display: block; margin-bottom: 6px; }
    .membership-table td.empty { display: block; text-align: center; }
    .membership-table td.empty::before { content: none; }
}
.content.members-page { padding-top: 20px; }
.content.members-page > .toolbar { margin: 8px 0 10px; }
.content.members-page > .grid.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0 17px; }
.content.members-page > .grid.stats .card { padding: 12px 14px; text-align: center; }
.content.members-page > .grid.stats .stat-label { font-size: 12px; line-height: 1.3; }
.content.members-page > .grid.stats .stat-value { margin-top: 3px; font-size: 21px; }
.content.members-page .membership-section { margin-top: 18px; }
.content.members-page .section-heading { margin-bottom: 8px; }
.content.members-page .section-heading h2 { margin-bottom: 0; }
.content.members-page .membership-section > .table-wrap { padding: 8px 10px; }
.content.members-page .membership-table tr[data-membership-row] { min-height: 44px; padding-right: 8px; padding-left: 8px; }
.content.members-page .membership-table tr[data-membership-row] td { padding-top: 5px; padding-bottom: 5px; }
.content.members-page .empty-state { padding: 16px; }
.content.dashboard-page { padding-top: 20px; }
.content.dashboard-page > h1 { margin-bottom: 3px; }
.content.dashboard-page > .subtitle { margin-bottom: 14px; }
.dashboard-summary-strip { display: grid; width: min(100%, 1180px); grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 0; margin: 14px auto 16px; padding: 8px 18px; }
.dashboard-summary-item { display: flex; min-width: 0; min-height: 34px; align-items: center; justify-content: flex-start; gap: 8px; padding: 4px 8px; text-align: left; }
.dashboard-summary-item + .dashboard-summary-item { border-top: 1px solid var(--line); }
.dashboard-summary-item > * { text-align: left; font-size: 14px; }
.dashboard-summary-item .stat-label { font-size: 14px; line-height: 1.25; }
.dashboard-summary-value { display: inline-flex; min-width: 0; align-items: baseline; justify-content: flex-start; gap: 5px; font-size: 14px; font-weight: 750; line-height: 1.2; white-space: nowrap; }
.dashboard-summary-collection .dashboard-summary-value { color: #147a55; }
.dashboard-summary-orders .dashboard-summary-value { color: #a75b13; }
.dashboard-summary-payments .dashboard-summary-value { gap: 4px; color: #147a55; }
.dashboard-summary-payments .dashboard-summary-value span:last-child { color: #315d78; }
.dashboard-summary-debt .dashboard-summary-value { color: #8b3b78; }
.dashboard-summary-separator { color: var(--muted) !important; }
.dashboard-summary-detail { color: var(--muted); font-size: 14px; line-height: 1.2; white-space: nowrap; }
.dashboard-operation-label { display: block; }
.dashboard-operation-detail { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.25; }
.dashboard-order-filter-status { margin: -4px 0 8px; color: #a33b2b; font-size: 13px; }
.content.dashboard-page > .grid.dashboard-orders > .dashboard-orders-card > .dashboard-orders-title { width: 100%; margin: 0 0 6px; text-align: center; }
.content.dashboard-page > .grid.two-col { gap: 12px; }
.content.dashboard-page > .grid.two-col > .card { min-width: 0; padding: 14px; }
.content.dashboard-page > .grid.two-col > .card h2 { margin-bottom: 9px; }
.content.dashboard-page > .grid.two-col > .card .toolbar { gap: 8px; margin: 0 0 8px; }
.content.dashboard-page > .grid.two-col > .card .toolbar h2 { margin: 0; }
.content.dashboard-page > .grid.two-col table th,
.content.dashboard-page > .grid.two-col table td { padding: 7px 8px; }
.content.dashboard-page > .grid.dashboard-orders { grid-template-columns: minmax(0, 1fr); }
.dashboard-orders-card { min-width: 0; }
.dashboard-orders-card > .table-wrap { overflow-y: auto; overscroll-behavior: contain; }
.dashboard-orders-table thead th { position: sticky; top: 0; z-index: 1; background: #fff; }
.dashboard-order-filters { display: grid; grid-template-columns: auto repeat(4, minmax(120px, 1fr)); align-items: end; gap: 9px; margin-bottom: 14px; }
.dashboard-order-filter-period { display: flex; gap: 4px; }
.dashboard-order-filter-period .btn { min-height: 38px; padding: 6px 10px; white-space: nowrap; }
.dashboard-order-filter-period .btn { color: #fff; background: var(--green); }
.dashboard-order-filter-period .btn.is-active { color: #fff; background: var(--green); }
.dashboard-orders-table th, .dashboard-orders-table td { padding-top: 2px; padding-bottom: 2px; line-height: 1.05; }
.dashboard-orders-table .dashboard-operation-label,
.dashboard-orders-table .dashboard-operation-detail { line-height: 1.05; }
.dashboard-orders-table .dashboard-operation-detail { margin-top: 0; font-size: 10px; }
.dashboard-orders-table td .badge { padding: 3px 7px; font-size: 11px; line-height: 1; }
.dashboard-order-filter-field { display: grid; min-width: 0; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 650; }
.dashboard-order-filter-field input, .dashboard-order-filter-field select { width: 100%; min-height: 38px; padding: 6px 8px; font-size: 13px; }
.dashboard-orders-table tr[data-dashboard-order-row] { cursor: pointer; }
.dashboard-orders-table tr[data-dashboard-order-row]:hover { background: #f7faf7; }
.dashboard-orders-table tr[data-dashboard-order-row]:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.dashboard-orders-table tr.dashboard-order-detail-row[hidden] { display: none; }
.business-order-notifications { position: fixed; inset: 18px 18px auto auto; z-index: 1000; pointer-events: none; }
.business-order-dialog { width: min(620px, calc(100vw - 28px)); max-width: 620px; max-height: min(84vh, 760px); padding: 0; overflow: auto; border: 1px solid #d5e6da; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 24px 80px #10251b4d; pointer-events: auto; }
.business-order-dialog::backdrop { background: #101a14a6; backdrop-filter: blur(3px); }
.business-order-dialog[open] { animation: business-order-dialog-in .2s ease-out; }
.business-order-dialog.is-cancelled { border-color: #efc9c4; }
.business-order-dialog.is-cancelled { width: min(760px, calc(100vw - 20px)); max-width: 760px; max-height: min(78vh, 600px); }
.business-order-dialog.is-cancelled .business-order-dialog-header { background: linear-gradient(135deg, #fff0ee, #fff); border-bottom-color: #f1d2cc; }
.business-order-dialog.is-cancelled .business-order-dialog-kicker,
.business-order-dialog.is-cancelled .business-order-dialog-header h2 { color: #b42318; }
.business-order-dialog-header { position: relative; display: flex; justify-content: space-between; gap: 20px; padding: 24px 26px 18px; background: linear-gradient(135deg, #eff9f1, #fff); border-bottom: 1px solid #e6eee8; }
.business-order-dialog-header h2 { margin: 4px 0 6px; font-size: clamp(16px, 3.5vw, 24px); overflow-wrap: anywhere; }
.business-order-dialog-header p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.business-order-dialog-kicker { color: var(--green-dark); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.business-order-dialog-close { flex: 0 0 36px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: #fff; color: var(--ink); font-size: 24px; cursor: pointer; box-shadow: 0 2px 8px #10251b14; }
.business-order-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 18px 26px; }
.business-order-detail-field { display: grid; min-width: 0; gap: 4px; padding: 10px 12px; border: 1px solid #e8eee9; border-radius: 10px; background: #fbfdfb; }
.business-order-detail-field span { color: var(--muted); font-size: 11px; }
.business-order-detail-field strong { overflow-wrap: anywhere; font-size: 13px; }
.business-order-items { padding: 0 26px 16px; }
.business-order-items h3 { margin: 4px 0 10px; font-size: 15px; }
.business-order-item-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid #e8eee9; }
.business-order-item-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 2px; border-bottom: 1px solid #e8eee9; font-size: 13px; }
.business-order-item-list li span { overflow-wrap: anywhere; }
.business-order-item-list li strong { flex: 0 0 auto; }
.business-order-items-empty { margin: 0; color: var(--muted); font-size: 13px; }
.business-order-dialog-total { margin: 0 26px; padding: 15px 0; border-top: 2px solid #e6eee8; color: var(--green-dark); font-size: 18px; font-weight: 800; text-align: right; }
.business-order-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 0 26px 24px; }
.business-order-dialog.is-cancelled .business-order-dialog-header { gap: 10px; padding: 12px 16px 10px; }
.business-order-dialog.is-cancelled .business-order-dialog-header h2 { margin: 2px 0 3px; font-size: clamp(15px, 2.5vw, 20px); }
.business-order-dialog.is-cancelled .business-order-dialog-header p { font-size: 12px; line-height: 1.3; }
.business-order-dialog.is-cancelled .business-order-detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 10px 16px; }
.business-order-dialog.is-cancelled .business-order-detail-field { gap: 2px; padding: 6px 8px; }
.business-order-dialog.is-cancelled .business-order-detail-field strong { font-size: 12px; line-height: 1.25; }
.business-order-dialog.is-cancelled .business-order-items { padding: 0 16px 8px; }
.business-order-dialog.is-cancelled .business-order-items h3 { margin: 2px 0 5px; font-size: 14px; }
.business-order-dialog.is-cancelled .business-order-item-list { max-height: 112px; overflow-y: auto; }
.business-order-dialog.is-cancelled .business-order-item-list li { gap: 10px; padding: 6px 2px; font-size: 12px; }
.business-order-dialog.is-cancelled .business-order-items-empty { font-size: 12px; }
.business-order-dialog.is-cancelled .business-order-dialog-total { margin: 0 16px; padding: 8px 0; font-size: 16px; }
.business-order-dialog.is-cancelled .business-order-dialog-actions { gap: 8px; padding: 0 16px 12px; }
.business-order-dialog.is-cancelled .business-order-dialog-actions .btn { min-height: 36px; padding: 7px 12px; }
@keyframes business-order-dialog-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.reports-daily-sales-table tr[data-report-sale-row] { cursor: pointer; }
.reports-daily-sales-table tr[data-report-sale-row]:hover { background: #f7faf7; }
.reports-daily-sales-table tr[data-report-sale-row]:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.table-wrap tr.report-sale-detail-row[hidden] { display: none; }
.reports-daily-sales { min-width: 0; overflow: hidden; }
.reports-daily-sales-table { width: 100%; table-layout: fixed; }
.reports-daily-sales-table th:first-child,
.reports-daily-sales-table td:first-child { width: 16%; }
.reports-daily-sales-table th:nth-child(2),
.reports-daily-sales-table td:nth-child(2) { width: 12%; }
.reports-daily-sales-table th:nth-child(3),
.reports-daily-sales-table td:nth-child(3) { width: 10%; }
.reports-daily-sales-table th:nth-child(4),
.reports-daily-sales-table td:nth-child(4) { width: 29%; }
.reports-daily-sales-table th:nth-child(5),
.reports-daily-sales-table td:nth-child(5) { width: 15%; }
.reports-daily-sales-table th:last-child,
.reports-daily-sales-total { width: 18%; text-align: right; white-space: nowrap; }
.reports-daily-sales-table tfoot th,
.reports-daily-sales-table tfoot td { border-top: 2px solid var(--line); font-weight: 750; }
.reports-daily-sales-table td { overflow-wrap: anywhere; }
.reports-daily-sales-table td:first-child time { white-space: nowrap; }
.staff-sales-report { min-width: 0; }
.staff-sales-report-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.staff-sales-report-heading h2 { margin: 0; }
.staff-sales-report-heading .muted { margin: 4px 0 0; }
.staff-sales-period-filter { display: grid; flex: 0 0 150px; gap: 4px; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.staff-sales-period-filter label { color: var(--muted); font-size: 11px; font-weight: 650; }
.staff-sales-period-filter select { min-width: 0; min-height: 38px; padding: 6px 9px; }
.staff-sales-period-label { margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.staff-sales-table-wrap { width: 100%; overflow-x: auto; }
.staff-sales-table { width: 100%; min-width: 0; border-collapse: collapse; table-layout: fixed; }
.staff-sales-table th, .staff-sales-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.staff-sales-table th:last-child, .staff-sales-table td:last-child { width: 35%; text-align: right; }
.staff-sales-table tfoot th, .staff-sales-table tfoot td { border-top: 2px solid var(--line); font-weight: 750; }
.staff-sales-table tfoot td { color: var(--green-dark); font-variant-numeric: tabular-nums; white-space: nowrap; }
.staff-sales-table tbody tr.staff-sales-row { cursor: pointer; }
.staff-sales-table tbody tr.staff-sales-row:hover { background: #f3f8f4; }
.staff-sales-table tbody tr.staff-sales-row:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.staff-sales-table td.staff-sales-revenue { color: var(--green-dark); font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.staff-sales-detail-dialog::backdrop { background: #10251b99; }
.staff-sales-detail-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.staff-sales-detail-header h2 { min-width: 0; margin: 0; font-size: 19px; overflow-wrap: anywhere; }
.staff-sales-detail-content { min-width: 0; max-height: min(60dvh, 500px); overflow: auto; }
.staff-sales-detail-total { margin: 0 0 10px; color: var(--green-dark); font-weight: 700; }
.staff-sales-detail-table-wrap { width: 100%; overflow-x: auto; }
.staff-sales-detail-table { width: 100%; min-width: 520px; border-collapse: collapse; }
.staff-sales-detail-table th, .staff-sales-detail-table td { padding: 8px 7px; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; overflow-wrap: anywhere; }
.staff-sales-detail-table th:last-child, .staff-sales-detail-table td:last-child { text-align: right; white-space: nowrap; }
.staff-sales-detail-table td:last-child { color: var(--green-dark); font-weight: 700; }
.staff-sales-detail-table td:nth-child(1), .staff-sales-detail-table td:nth-child(2) { white-space: nowrap; }
.report-sales-dialog::backdrop { background: #10251bba; }
.report-sales-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 14px; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.report-sales-header h2 { margin: 3px 0 0; font-size: 22px; }
.report-sales-header .eyebrow { font-size: 10px; }
.report-sales-filters { display: grid; flex: 0 0 auto; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 10px; padding: 14px 0; }
.report-sales-filters .field { min-width: 0; gap: 4px; }
.report-sales-filters .field label { font-size: 12px; }
.report-sales-filters .field > input,
.report-sales-filters .field > select { width: 100%; min-width: 0; min-height: 40px; padding: 7px 9px; font-size: 13px; }
.report-sales-filter-actions { display: flex; grid-column: 1 / -1; justify-content: flex-end; gap: 8px; }
.report-sales-filter-actions .btn { min-height: 38px; padding: 7px 12px; font-size: 13px; }
.report-sales-summary { display: grid; flex: 0 0 auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.report-sales-summary > div { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; border: 1px solid #dfe9e2; border-radius: 10px; background: #f5f9f6; }
.report-sales-summary span { color: var(--muted); font-size: 12px; }
.report-sales-summary strong { color: var(--green-dark); font-size: 17px; font-variant-numeric: tabular-nums; }
.report-sales-list { min-width: 0; min-height: 0; flex: 1 1 auto; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.report-sales-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; }
.report-sales-table th { position: sticky; top: 0; z-index: 1; background: #f4f8f5; }
.report-sales-table th,
.report-sales-table td { padding: 5px 8px; overflow-wrap: anywhere; }
.report-sales-table th { padding-top: 7px; padding-bottom: 7px; }
.report-sales-table th:nth-child(1) { width: 36%; }
.report-sales-table th:nth-child(2) { width: 28%; text-align: center; }
.report-sales-table th:nth-child(3) { width: 36%; text-align: right; }
.report-sales-table tbody tr.report-sales-row { cursor: pointer; }
.report-sales-table tbody tr.report-sales-row:hover { background: #f3f8f4; }
.report-sales-table tbody tr.report-sales-row:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.report-sales-table tbody tr.report-sales-row td:nth-child(2) { text-align: center; }
.report-sales-table tbody tr.report-sales-row td:nth-child(3) { text-align: right; }
.report-sales-table td.report-sales-amount { color: var(--green-dark); font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.report-sales-empty { padding: 30px 12px !important; color: var(--muted); text-align: center; }
.report-sales-error { margin: 8px 0; padding: 10px 12px; border: 1px solid #efcdc8; border-radius: 8px; background: #fff4f2; color: #963c33; font-size: 13px; }
.report-sale-detail-dialog::backdrop { background: #10251b99; }
dialog.report-sale-detail-dialog[open] {
    position: fixed !important;
    inset: 50% auto auto 50% !important;
    display: block !important;
    width: min(500px, calc(100vw - 32px)) !important;
    max-width: 500px !important;
    max-height: min(82dvh, 680px) !important;
    margin: 0 !important;
    padding: 13px !important;
    transform: translate(-50%, -50%) !important;
    border: 1px solid var(--line) !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
    color: var(--ink) !important;
    background: #fff !important;
    box-shadow: 0 18px 55px #10251b55 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}
.report-sale-detail-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.report-sale-detail-header h2 { margin: 2px 0 0; font-size: 18px; }
.report-sale-detail-header .eyebrow { color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.report-sale-detail-content { min-width: 0; padding-top: 8px; }
.report-sale-detail-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 7px; margin: 0; font-size: 12px; }
.report-sale-detail-meta > div { min-width: 0; padding: 4px 6px; border-radius: 6px; background: #f6f8f6; }
.report-sale-detail-meta dt { color: var(--muted); font-size: 10px; line-height: 1.2; }
.report-sale-detail-meta dd { min-width: 0; margin: 2px 0 0; overflow-wrap: anywhere; line-height: 1.25; }
.report-sale-detail-total { margin: 7px 0; padding: 7px 9px; border-radius: 7px; background: #f3f8f4; color: var(--green-dark); font-size: 14px; font-weight: 750; text-align: right; }
.report-sale-detail-content h3 { margin: 8px 0 3px; font-size: 13px; }
.report-sale-detail-items { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.report-sale-detail-items li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 6px; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.3; }
.report-sale-detail-items li span { min-width: 0; overflow-wrap: anywhere; }
.report-sale-detail-items li strong { flex: 0 0 auto; color: var(--green-dark); font-variant-numeric: tabular-nums; }
.report-sale-detail-empty { color: var(--muted); font-size: 13px; }
.dashboard-order-dialog[open] { position: fixed; inset: 0; width: min(700px, calc(100vw - 32px)); max-width: none; max-height: min(90dvh, 800px); margin: auto; padding: 20px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: #fff; box-shadow: 0 18px 55px #10251b55; overflow: hidden; }
.dashboard-order-dialog::backdrop { background: #13231b88; }
.dashboard-order-dialog-header { position: sticky; top: -20px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -20px -20px 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.dashboard-order-dialog-header h2 { margin: 0; }
.dashboard-order-dialog-content { max-height: calc(90dvh - 90px); overflow: auto; }
.dashboard-order-details { padding: 0; }
.dashboard-order-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px; color: var(--muted); font-size: 13px; }
.dashboard-order-meta strong, .dashboard-order-note strong { color: var(--ink); }
.dashboard-order-note { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: #fff; white-space: pre-wrap; overflow-wrap: anywhere; }
.dashboard-order-actions { display: flex; justify-content: flex-end; margin-top: 14px; }
.dashboard-order-items { min-width: 440px; background: #fff; }
.dashboard-order-items th, .dashboard-order-items td { padding: 8px 10px; }
.dashboard-order-items th:last-child, .dashboard-order-items td:last-child { text-align: right; white-space: nowrap; }
.dashboard-order-items tfoot th { border-top: 1px solid var(--line); }
@media (max-width: 900px) {
    .dashboard-order-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dashboard-order-filter-period { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .business-order-notifications { inset: 10px 10px auto; }
    .business-order-dialog-header { padding: 20px 18px 15px; }
    .business-order-detail-grid { padding: 14px 18px; }
    .business-order-items { padding: 0 18px 14px; }
    .business-order-dialog-total { margin: 0 18px; }
    .business-order-dialog-actions { padding: 0 18px 20px; }
    .business-order-cancellation-actions { display: grid; grid-template-columns: 1fr; }
    .business-order-cancellation-actions .btn { justify-content: center; }
    .reports-daily-sales { padding: 12px; }
    .reports-daily-sales-table th,
    .reports-daily-sales-table td { padding: 9px 5px; font-size: 12px; }
    .reports-daily-sales-table th:first-child,
    .reports-daily-sales-table td:first-child { width: 34%; }
    .reports-daily-sales-table th:nth-child(2),
    .reports-daily-sales-table td:nth-child(2) { width: 15%; }
    .reports-daily-sales-table th:nth-child(5),
    .reports-daily-sales-table td:nth-child(5) { width: 20%; }
    .reports-daily-sales-table th:last-child,
    .reports-daily-sales-table td:last-child { width: 31%; }
    .reports-daily-sales-table .reports-daily-sales-order-column,
    .reports-daily-sales-table .reports-daily-sales-target-column { display: none; }
    .reports-daily-sales-table td:first-child time { font-size: 11px; }
    .reports-daily-sales-table .badge { padding: 3px 5px; font-size: 10px; }
}
@media (max-width: 480px) {
    .business-order-detail-grid { grid-template-columns: 1fr; }
    .business-order-dialog.is-cancelled .business-order-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; padding: 8px 10px; }
    .business-order-dialog.is-cancelled .business-order-dialog-header { padding: 10px 10px 8px; }
    .business-order-dialog.is-cancelled .business-order-items { padding-right: 10px; padding-left: 10px; }
    .business-order-dialog.is-cancelled .business-order-dialog-total { margin-right: 10px; margin-left: 10px; }
    .business-order-dialog.is-cancelled .business-order-dialog-actions { flex-direction: row; padding-right: 10px; padding-left: 10px; }
    .business-order-dialog.is-cancelled .business-order-dialog-actions .btn { flex: 1 1 0; justify-content: center; padding-right: 6px; padding-left: 6px; font-size: 12px; }
    .business-order-dialog-actions { flex-direction: column-reverse; }
    .business-order-dialog-actions .btn { justify-content: center; }
}
@media (max-width: 380px) {
    .sidebar .brand { grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr) 30px; gap: 4px; padding-right: 0; padding-left: 2px; }
    .brand > .brand-heading > .brand-home strong { font-size: 13px; }
    .brand > .mobile-brand-datetime { gap: 2px; font-size: 11px; }
}
@media print {
    .kitchen-ticket-page { padding: 0; }
    .kitchen-ticket { width: 100%; max-width: none; padding: 0; }
    .package-ticket-page { padding: 0; background: #fff; }
    .package-ticket { width: 100%; max-width: none; padding: 0; box-shadow: none; }
    .kitchen-ticket table, .kitchen-ticket tr, .kitchen-ticket td, .kitchen-ticket th { break-inside: avoid; }
    body { background: #fff; }
    .invoice { width: 100%; border: 0; box-shadow: none; margin: 0; max-width: none; }
    .invoice .table-wrap { overflow: visible; }
    .no-print { display: none !important; }
}
@page print-a4 { size: A4 portrait; margin: 10mm; }
@page print-a5 { size: A5 portrait; margin: 7mm; }
@page print-pos-58 { size: 58mm auto; margin: 2mm; }
@page print-pos-80 { size: 80mm auto; margin: 3mm; }
body.invoice-page { page: print-a4; }
body.package-ticket-page, body.kitchen-ticket-page { page: print-pos-80; }
body[data-print-paper="a4"] { page: print-a4; }
body[data-print-paper="a5"] { page: print-a5; }
body[data-print-paper="pos-58"] { page: print-pos-58; }
body[data-print-paper="pos-80"] { page: print-pos-80; }
@media print {
    body { margin: 0; }
    body[data-print-paper^="pos-"] { font-size: 9px; }
    body[data-print-paper="pos-58"] { font-size: 8px; }
    body[data-print-paper^="pos-"] .invoice,
    body[data-print-paper^="pos-"] .package-ticket,
    body[data-print-paper^="pos-"] .kitchen-ticket {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
    }
    body[data-print-paper^="pos-"] .kitchen-ticket { font: inherit; line-height: 1.25; }
    body[data-print-paper^="pos-"] .invoice h1,
    body[data-print-paper^="pos-"] .package-ticket header strong,
    body[data-print-paper^="pos-"] .kitchen-ticket header strong { font-size: 1.25em; }
    body[data-print-paper^="pos-"] .package-ticket header span,
    body[data-print-paper^="pos-"] .kitchen-ticket header span { font-size: inherit; }
    body[data-print-paper^="pos-"] .invoice table,
    body[data-print-paper^="pos-"] .package-ticket table,
    body[data-print-paper^="pos-"] .kitchen-ticket table {
        width: 100%;
        table-layout: fixed;
    }
    body[data-print-paper^="pos-"] .invoice th,
    body[data-print-paper^="pos-"] .invoice td,
    body[data-print-paper^="pos-"] .package-ticket th,
    body[data-print-paper^="pos-"] .package-ticket td,
    body[data-print-paper^="pos-"] .kitchen-ticket th,
    body[data-print-paper^="pos-"] .kitchen-ticket td {
        padding: 2px 1px;
        font-size: inherit;
        overflow-wrap: anywhere;
    }
    body[data-print-paper^="pos-"] .invoice p,
    body[data-print-paper^="pos-"] .package-ticket p,
    body[data-print-paper^="pos-"] .kitchen-ticket p { padding: 4px 0; }
}
@media (max-width: 560px) {
    .reports-toolbar { align-items: flex-start; flex-direction: column; }
    .reports-toolbar-actions { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .reports-toolbar-actions > .btn,
    .reports-toolbar-actions form,
    .reports-toolbar-actions form .btn { width: 100%; min-width: 0; min-height: 40px; }
    .report-sales-header { padding-bottom: 9px; }
    .report-sales-header h2 { font-size: 19px; }
    .report-sales-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 10px 0; }
    .report-sales-filters .field > input,
    .report-sales-filters .field > select { min-height: 36px; padding: 5px 6px; font-size: 12px; }
    .report-sales-filter-actions { gap: 6px; }
    .report-sales-filter-actions .btn { min-width: 0; min-height: 36px; flex: 1 1 0; padding: 6px 5px; font-size: 11px; }
    .report-sales-summary { gap: 6px; margin-bottom: 7px; }
    .report-sales-summary > div { align-items: flex-start; flex-direction: column; gap: 2px; padding: 7px 8px; }
    .report-sales-summary span { font-size: 10px; line-height: 1.2; }
    .report-sales-summary strong { font-size: 14px; }
    .report-sales-table { display: block; }
    .report-sales-table thead { display: none; }
    .report-sales-table tbody { display: grid; gap: 2px; padding: 4px 7px; }
    .report-sales-table tbody tr.report-sales-row { display: grid; min-width: 0; grid-template-columns: minmax(0, 1.2fr) minmax(0, .7fr) minmax(0, 1fr); align-items: center; gap: 4px; padding: 4px 6px; border-bottom: 1px solid var(--line); background: #fff; }
    .report-sales-table tbody tr.report-sales-row td { display: block; min-width: 0; padding: 0; border: 0; font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
    .report-sales-table tbody tr.report-sales-row td::before { content: none; }
    .report-sales-table tbody tr.report-sales-row td:nth-child(1) { white-space: nowrap; }
    .report-sales-table tbody tr.report-sales-row td:nth-child(2) { text-align: center; }
    .report-sales-table tbody tr.report-sales-row td:nth-child(3) { color: var(--green-dark); font-size: 12px; font-weight: 750; text-align: right; }
    .report-sales-table tbody tr:not(.report-sales-row) { display: block; }
    .report-sales-empty { display: block; padding: 22px 8px !important; }
    dialog.report-sale-detail-dialog[open] {
        inset: max(10px, env(safe-area-inset-top)) 12px auto !important;
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        max-height: calc(100dvh - max(20px, env(safe-area-inset-top) + 10px)) !important;
        margin: 0 auto !important;
        padding: 14px !important;
        transform: none !important;
        border-radius: 13px !important;
    }
    dialog.report-sale-detail-dialog[open] {
        inset: max(8px, env(safe-area-inset-top)) 8px auto !important;
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        max-height: calc(100dvh - max(16px, env(safe-area-inset-top) + 8px)) !important;
        padding: 10px !important;
    }
    .staff-sales-report { padding: 11px; }
    .staff-sales-report-heading { align-items: stretch; flex-direction: column; gap: 8px; }
    .staff-sales-period-filter { grid-template-columns: auto minmax(0, 1fr); align-items: center; flex: 0 1 auto; }
    .staff-sales-period-filter select { min-height: 36px; }
    .staff-sales-table th, .staff-sales-table td { padding: 8px 6px; font-size: 12px; }
    .staff-sales-table th:last-child, .staff-sales-table td:last-child { width: 38%; }
    .staff-sales-detail-table { min-width: 0; table-layout: fixed; }
    .staff-sales-detail-table th, .staff-sales-detail-table td { padding: 7px 4px; font-size: 10px; }
    .staff-sales-detail-table th:nth-child(1), .staff-sales-detail-table td:nth-child(1) { width: 24%; }
    .staff-sales-detail-table th:nth-child(2), .staff-sales-detail-table td:nth-child(2) { width: 13%; }
    .staff-sales-detail-table th:nth-child(3), .staff-sales-detail-table td:nth-child(3) { width: 29%; }
    .staff-sales-detail-table th:nth-child(4), .staff-sales-detail-table td:nth-child(4) { width: 17%; }
    .staff-sales-detail-table th:nth-child(5), .staff-sales-detail-table td:nth-child(5) { width: 17%; }
    .content.dashboard-page { padding-top: 0; padding-bottom: 24px; }
    .content.dashboard-page > h1 { margin-bottom: 1px; }
    .content.dashboard-page > .subtitle { margin-bottom: 10px; font-size: 13px; }
    .dashboard-order-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-bottom: 10px; }
    .dashboard-order-filter-period { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dashboard-order-filter-period .btn { min-width: 0; min-height: 36px; padding: 5px 8px; font-size: 12px; }
    .dashboard-order-filter-field { gap: 3px; font-size: 10px; }
    .dashboard-order-filter-field input, .dashboard-order-filter-field select { min-height: 36px; padding: 5px 6px; font-size: 12px; }
    .dashboard-summary-strip { grid-template-columns: minmax(0, 1fr); margin: 10px auto 12px; padding: 5px 8px; border-radius: 10px; }
    .dashboard-summary-item { min-height: 31px; gap: 6px; padding: 3px 2px; }
    .dashboard-summary-item > * { font-size: 14px; }
    .dashboard-summary-item .stat-label { font-size: 14px; line-height: 1.2; }
    .dashboard-summary-value { gap: 3px; font-size: 14px; }
    .dashboard-summary-payments .dashboard-summary-value { gap: 3px; font-size: 14px; }
    .dashboard-summary-detail { font-size: 14px; white-space: nowrap; }
    .content.dashboard-page > .grid.two-col { gap: 10px; }
    .content.dashboard-page > .grid.two-col > .card { padding: 11px; border-radius: 11px; }
    .content.dashboard-page > .grid.two-col > .card h2 { margin-bottom: 7px; font-size: 16px; }
    .content.dashboard-page > .grid.two-col > .card .toolbar { margin-bottom: 6px; }
    .content.dashboard-page > .grid.two-col table th,
    .content.dashboard-page > .grid.two-col table td { padding: 6px 5px; font-size: 12px; }
    .dashboard-orders-table th, .dashboard-orders-table td { padding: 7px 5px; font-size: 12px; }
    .dashboard-orders-card > .table-wrap { height: auto !important; overflow-y: visible; overscroll-behavior-y: auto; touch-action: pan-y; }
    .dashboard-orders-table thead th { position: static; }
    .dashboard-order-dialog[open] { width: calc(100vw - 16px); max-height: 94dvh; padding: 14px; border-radius: 14px; }
    .dashboard-order-dialog-header { top: -14px; margin: -14px -14px 12px; padding: 12px 14px; }
    .dashboard-order-dialog-content { max-height: calc(94dvh - 76px); }
    .dashboard-order-meta { display: grid; gap: 5px; font-size: 12px; }
    .dashboard-order-actions .btn { width: 100%; min-height: 42px; }
    .dashboard-order-items th, .dashboard-order-items td { padding: 7px 6px; font-size: 12px; }
    .content.members-page { padding-top: 0; padding-bottom: 24px; }
    .content.members-page > .toolbar { margin: 5px 0 8px; }
    .content.members-page > .grid.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 9px 0 13px; }
    .content.members-page > .grid.stats .card { padding: 9px 8px; border-radius: 10px; }
    .content.members-page > .grid.stats .stat-label { font-size: 10px; line-height: 1.2; }
    .content.members-page > .grid.stats .stat-value { margin-top: 2px; font-size: 18px; }
    .content.members-page .membership-section { margin-top: 14px; }
    .content.members-page .section-heading { margin-bottom: 6px; }
    .content.members-page .membership-section > .table-wrap { padding: 4px 6px; }
    .content.members-page .membership-table tr[data-membership-row] { min-height: 40px; padding-right: 5px; padding-left: 5px; }
    .content.members-page .membership-table tr[data-membership-row] td { padding-top: 4px; padding-bottom: 4px; }
    .content.members-page .empty-state { padding: 12px; }
    .content > .grid.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .content > .grid.reports-summary-stats { gap: 0; margin: 10px 0 12px; }
    .reports-summary-stats > .card { min-height: 0; gap: 8px; padding: 9px 10px; }
    .reports-summary-stats .stat-label { font-size: 12px; line-height: 1.25; }
    .reports-summary-stats .stat-value { font-size: 14px; }
    .two-col, .form-grid { grid-template-columns: 1fr; }
    .staff-user-create-form .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .staff-user-create-form .form-grid > .field:first-child { grid-column: 1 / -1; }
    .membership-admin-heading { margin: 0 0 12px; }
    .membership-admin-heading h1 { margin-bottom: 3px; font-size: 22px; }
    .membership-admin-heading .subtitle { font-size: 12px; line-height: 1.4; }
    .membership-payment-launch { align-items: stretch; flex-direction: column; gap: 12px; margin-bottom: 14px; padding: 13px; }
    .membership-payment-launch > div { align-items: flex-start; gap: 10px; }
    .membership-payment-launch .membership-settings-icon { width: 38px; height: 38px; border-radius: 10px; }
    .membership-payment-launch .membership-settings-icon svg { width: 20px; height: 20px; }
    .membership-payment-launch > .btn { width: 100%; min-height: 42px; }
    .membership-payment-dialog { max-height: 92dvh; padding: 14px; border-radius: 12px; }
    .membership-payment-dialog .application-dialog-header { align-items: flex-start; gap: 10px; margin-bottom: 12px; }
    .membership-payment-dialog .application-dialog-header h2 { font-size: 18px; }
    .membership-payment-settings { max-width: none; margin: 0; padding: 12px; border-radius: 10px; box-shadow: none; }
    .membership-payment-settings-heading { margin-bottom: 12px; }
    .membership-payment-settings-heading { align-items: flex-start; gap: 10px; margin-bottom: 13px; }
    .membership-settings-icon { width: 38px; height: 38px; border-radius: 10px; }
    .membership-settings-icon svg { width: 20px; height: 20px; }
    .membership-payment-settings-heading h2 { margin: 1px 0 2px; font-size: 16px; }
    .membership-payment-settings-heading .muted { font-size: 11px; line-height: 1.35; }
    .membership-account-list { gap: 8px; }
    .membership-account-row { grid-template-columns: 1fr; gap: 8px; padding: 11px; border-radius: 10px; }
    .membership-account-row-heading { margin-bottom: 0; }
    .membership-account-row .field { gap: 3px; }
    .membership-account-row .field input { min-height: 40px; padding: 8px 9px; font-size: 13px; }
    .membership-payment-settings-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 11px; }
    .membership-payment-settings-actions .btn { width: 100%; min-height: 40px; }
    .content.members-page > .grid.stats { margin-top: 12px; }
    .package-create-button { width: 100%; min-height: 46px; }
    .package-create-dialog .package-form-grid { grid-template-columns: 1fr; }
    .package-create-dialog .package-form-grid .package-name-field,
    .package-create-dialog .package-form-grid .package-unlimited-field,
    .package-create-dialog .package-form-grid .package-price-field,
    .package-create-dialog .package-form-grid .package-duration-field { grid-column: 1; grid-row: auto; }
    .package-create-dialog .package-form-grid .package-unlimited-field { align-self: auto; }
    .membership-section > .table-wrap { width: 100%; padding: 6px 8px; overflow-x: visible; }
    .membership-table { display: block; width: 100%; table-layout: fixed; }
    .membership-table thead { display: none; }
    .membership-table tbody { display: grid; width: 100%; }
    .membership-table tr[data-membership-row] { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; width: 100%; min-height: 48px; padding: 0 8px; border-bottom: 1px solid var(--line); cursor: pointer; }
    .membership-table tr[data-membership-row]:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
    .membership-table tr[data-membership-row] td { display: block; width: auto; padding: 8px 5px; border: 0; overflow-wrap: anywhere; }
    .membership-table tr[data-membership-row] td:first-child { min-width: 0; }
    .membership-table tr[data-membership-row] td:first-child strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .membership-table tr[data-membership-row] td:first-child small { display: none; }
    .membership-table tr[data-membership-row] td:nth-child(2),
    .membership-table tr[data-membership-row] td:nth-child(3),
    .membership-table tr[data-membership-row] td:nth-child(4),
    .membership-table tr[data-membership-row] td:nth-child(5),
    .membership-table tr[data-membership-row] td:nth-child(7) { display: none; }
    .membership-table tr[data-membership-row] td:nth-child(6) { justify-self: end; white-space: nowrap; }
    .membership-table tr[data-membership-row] td:nth-child(6) .badge { padding: 4px 8px; font-size: 11px; }
    .membership-details-dialog[open] { position: fixed; inset: 0; width: calc(100vw - 20px); max-width: none; max-height: min(82dvh, 700px); margin: auto; padding: 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: #fff; box-shadow: 0 18px 55px #10251b55; overflow-y: auto; }
    .membership-details-dialog::backdrop { background: #13231b88; }
    .membership-details-header { position: sticky; top: -14px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -14px -14px 12px; padding: 14px; border-bottom: 1px solid var(--line); background: #fff; }
    .membership-details-header h2 { min-width: 0; margin: 0; font-size: 17px; overflow-wrap: anywhere; }
    .membership-details-table, .membership-details-table tbody { display: block; width: 100%; }
    .membership-details-table tr.membership-modal-row { display: block; width: 100%; border: 0; cursor: auto; }
    .membership-details-table tr.membership-modal-row td { display: grid; grid-template-columns: minmax(92px, 29%) minmax(0, 1fr); align-items: start; gap: 9px; width: 100%; padding: 11px 4px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
    .membership-details-table tr.membership-modal-row td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 700; }
    .membership-details-table tr.membership-modal-row td[data-label="İşlem"] { display: block; }
    .membership-details-table tr.membership-modal-row td[data-label="İşlem"]::before { display: block; margin-bottom: 8px; }
    .membership-details-table tr.membership-modal-row td[data-label="İşlem"] .membership-row-actions { min-width: 0; }
    .membership-details-table tr.membership-modal-row td[data-label="İşlem"] .renew-membership-form { flex-wrap: wrap; }
    .membership-details-table tr.membership-modal-row td[data-label="İşlem"] .renew-membership-form select { max-width: none; min-width: 0; }
    .membership-details-table tr.membership-modal-row td[data-label="İşlem"] .membership-row-secondary-actions { flex-wrap: wrap; }
    .customer-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .customer-form-dialog { width: calc(100vw - 20px); max-height: min(92dvh, 760px); padding: 16px; }
    .customer-form-dialog .form-grid { grid-template-columns: 1fr; }
    .customer-form-dialog .customer-contact-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .customer-form-dialog .customer-contact-fields .field { min-width: 0; }
    .customer-form-dialog .customer-contact-fields input { font-size: 12px; }
    .customer-form-dialog .field.full { grid-column: auto; }
    .customer-list-wrap { padding: 6px 8px; }
    .customer-list tbody tr { grid-template-columns: minmax(0, 1fr) minmax(64px, .65fr) auto; gap: 6px; min-height: 44px; padding: 5px 4px; }
    .customer-list td { font-size: 11px; }
    .customer-list td.customer-balance .badge { padding: 4px 6px; font-size: 10px; }
    .customer-detail-summary { gap: 8px; padding: 11px; }
    .orders-table-wrap { min-width: 0; padding: 8px; overflow-x: hidden; }
    .orders-table { table-layout: fixed; }
    .orders-table thead { display: table-header-group; }
    .orders-table thead tr { display: table-row; }
    .orders-table thead th { display: none; padding: 8px 5px; font-size: 11px; }
    .orders-table thead th:nth-child(1),
    .orders-table thead th:nth-child(7) { display: table-cell; }
    .orders-mobile-headings { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); column-gap: 6px; }
    .orders-mobile-headings span:nth-child(2) { display: none; }
    .orders-mobile-headings span:nth-child(3) { grid-column: 3; text-align: right; }
    .orders-table thead th:nth-child(1),
    .orders-table tr[data-order-row] td:nth-child(1) { width: calc(100% - 92px); }
    .orders-table thead th:nth-child(7),
    .orders-table tr[data-order-row] td:nth-child(7) { width: 92px; }
    .orders-table thead th:nth-child(7) { text-align: center; }
    .orders-table tr[data-order-row] td { padding: 9px 5px; font-size: 12px; }
    .orders-table tr[data-order-row] td.order-summary-cell { width: calc(100% - 92px); }
    .orders-table tr[data-order-row] td[data-label="Durum"] { display: table-cell !important; width: 92px; text-align: center; }
    .order-summary-primary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; column-gap: 6px; row-gap: 2px; }
    .order-summary-primary > strong { font-size: 11px; }
    .order-summary-primary > strong { grid-column: 1; grid-row: 1; }
    .order-summary-primary > time { grid-column: 1; grid-row: 2; justify-self: start; font-size: 10px; }
    .order-summary-primary > .order-creator-mobile { grid-column: 2; grid-row: 1; align-self: center; margin: 0; text-align: center; font-size: 10px; line-height: 1.25; overflow-wrap: anywhere; }
    .orders-table tbody tr[data-order-row] .order-creator-mobile { display: none; }
    .order-summary-primary > strong.order-summary-amount { grid-column: 3; grid-row: 1 / span 2; justify-self: end; align-self: start; }
    .order-summary-primary .badge { padding: 4px 6px; font-size: 10px; }
    .order-summary-primary .order-type-badge { display: block; grid-column: 3; grid-row: 2; justify-self: end; align-self: start; }
    .order-summary-location { grid-column: 2; grid-row: 2; justify-self: center; font-size: 11px; text-align: center; }
    .order-summary-amount { grid-column: 3; grid-row: 1 / span 2; justify-self: end; align-self: start; margin-left: 0; font-size: 12px; }
    .order-mobile-hint { display: none; }
    .orders-table tbody tr:not([data-order-row]) td { display: table-cell; }
    .orders-table tr.order-modal-row td { display: table-cell; }
    .orders-table-wrap > .orders-table > tbody > tr[data-order-row] > td[data-label="Sipariş türü"] { display: none !important; }
    .orders-table-wrap > .orders-table > tbody > tr[data-order-row] > td.order-summary-cell > .order-summary-primary > .order-type-badge {
        display: none !important;
    }
    .orders-table tbody tr[data-order-row] td.order-summary-cell .order-summary-primary > .order-summary-location {
        display: none !important;
    }
    .order-details-dialog[open] { inset: 0; width: calc(100vw - 16px); max-height: 94dvh; padding: 14px; border-radius: 14px; }
    .order-details-content { max-height: calc(94dvh - 78px); }
    .order-details-content .order-modal-row td { grid-template-columns: minmax(88px, 25%) minmax(0, 1fr); gap: 8px; padding: 12px 10px; font-size: 14px; line-height: 1.5; }
    .order-details-content .order-modal-row td::before { font-size: 12px; }
    .tables-page-content > .table-cards { gap: 10px; }
    .table-sales-actions { gap: 8px; }
    .table-card { min-height: 76px; padding: 9px 11px; gap: 8px; }
    .table-pending-total { font-size: 16px; }
    .table-card.package-order-card { grid-column: auto; min-height: 46px; padding: 4px 6px; gap: 5px; }
    .table-sales-actions > .table-card { min-height: 46px; padding: 4px 6px; }
    .table-card.market-sale-card { flex-direction: row; min-height: 46px; gap: 5px; padding: 4px 6px; font-size: 12px; }
    .market-sale-icon { width: 24px; height: 24px; flex: 0 0 24px; font-size: 17px; }
    .table-card.package-order-card { flex-direction: row; align-items: center; justify-content: space-between; }
    .package-order-create-button { font-size: 12px; }
    .package-order-card-main { min-width: 0; flex: 1 1 auto; flex-direction: column; align-items: flex-start; justify-content: center; flex-wrap: nowrap; gap: 1px; }
    .package-orders-open-button { padding: 4px 6px; font-size: 9px; }
    .pending-package-orders-label { flex: 0 0 auto; margin: 0; font-size: 9px; white-space: nowrap; }
    .table-summary { gap: 5px; }
    .table-summary-item { min-height: 40px; gap: 3px; padding: 4px 4px; }
    .table-summary-item span { max-width: 100%; font-size: 9px; line-height: 1.2; }
    .table-summary-item strong { font-size: 12px; line-height: 1.2; }
    .market-sale-dialog[open] { position: fixed; inset: 0; display: flex; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 12px; border: 0; border-radius: 0; overflow-x: hidden; overflow-y: auto; }
    .market-sale-dialog #market-sale-form { flex: 0 0 auto; min-height: auto; overflow: visible; }
    .market-sale-search-label, .market-sale-customer-label,
    .market-sale-search-controls, .market-sale-workspace > .market-sale-catalog { display: none; }
    .market-sale-customer-controls { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; }
    .market-sale-customer-controls select { width: 100%; min-width: 0; min-height: 44px; }
    .market-sale-customer-controls .market-sale-add-customer { min-width: 0; min-height: 44px; padding: 7px 9px; font-size: 12px; }
    .market-sale-customer-controls .market-sale-current-balance { width: auto; min-width: 0; margin: 0; padding: 6px 8px; }
    .market-sale-mobile-product-controls { display: flex; width: 100%; min-width: 0; align-items: stretch; justify-content: flex-start; gap: 8px; }
    .market-sale-mobile-product-controls .market-sale-search-label { display: none; }
    .market-sale-mobile-product-controls .market-sale-search-controls { display: flex; width: auto; min-width: 0; min-height: 38px; flex: 1 1 auto; }
    .market-sale-mobile-product-controls .market-sale-search-controls > input { width: 100%; min-width: 0; min-height: 38px; padding: 6px 40px 6px 10px; font-size: 14px; }
    .market-sale-mobile-product-controls .market-sale-search-controls .barcode-scan-button { right: 5px; width: 28px; height: 28px; }
    .market-sale-mobile-add { display: inline-flex; width: 98px; min-width: 98px; min-height: 38px; flex: 0 0 98px; align-items: center; justify-content: center; padding: 6px 9px; white-space: nowrap; }
    .market-sale-checkout { width: 100%; max-width: 100%; overflow: hidden; }
    .market-sale-cart-table-head, .market-sale-cart-line { grid-template-columns: minmax(0, 1fr) 84px minmax(58px, auto) 22px; gap: 4px; }
    .market-sale-cart-table-head { display: grid; font-size: 10px; }
    .market-sale-cart-table-head > :nth-child(2) { text-align: center; }
    .market-sale-cart-table-head > :nth-child(3) { text-align: right; }
    .market-sale-cart-line { min-width: 0; padding: 5px 0; }
    .market-sale-cart-product strong { font-size: 12px; line-height: 1.25; overflow-wrap: anywhere; }
    .market-sale-cart-product small { font-size: 10px; }
    .market-sale-quantity-controls { width: 62px; height: 26px; }
    .market-sale-quantity-controls input { width: 40px; min-width: 0; height: 24px; padding: 2px; font-size: 12px; }
    .market-sale-line-total { min-width: 0; font-size: 11px; white-space: normal; overflow-wrap: anywhere; }
    .market-sale-remove { width: 22px; height: 26px; font-size: 18px; }
    .market-sale-cart-lines { max-width: 100%; overflow-x: hidden; }
    .market-sale-checkout > .market-sale-cart-table-head,
    .market-sale-checkout > .market-sale-cart-lines { display: none; }
    .market-sale-total-label { display: none; }
    .market-sale-total.market-sale-cart-trigger { width: 100%; min-height: 48px; justify-content: space-between; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: #f7faf8; }
    .market-sale-cart-dialog[open] { position: fixed; inset: 0; display: flex; flex-direction: column; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 14px 12px; border: 0; border-radius: 0; overflow: hidden; }
    .market-sale-cart-dialog .application-dialog-header { flex: 0 0 auto; }
    .market-sale-cart-dialog-summary { flex: 0 0 auto; }
    .market-sale-cart-dialog-lines { display: flex; flex: 1 1 auto; }
    .market-sale-cart-dialog-lines > .market-sale-cart-lines { display: flex; max-height: none; min-height: 0; flex: 1 1 auto; overflow-x: hidden; overflow-y: auto; }
    .market-sale-cart-label { display: inline-flex; align-items: center; gap: 8px; color: var(--green-dark); font-weight: 700; }
    .market-sale-cart-label > span { display: inline-grid; min-width: 22px; height: 22px; place-items: center; padding: 0 5px; border-radius: 99px; background: #e2f0e7; font-size: 12px; }
    .market-sale-product-picker[open] { position: fixed; inset: 0; display: flex; flex-direction: column; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 12px; border: 0; border-radius: 0; overflow: hidden; }
    .market-sale-product-picker .application-dialog-header { flex: 0 0 auto; }
    .market-sale-product-picker-content { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; gap: 8px; padding-top: 10px; overflow: hidden; }
    .market-sale-product-picker .market-sale-search-label { display: block; flex: 0 0 auto; }
    .market-sale-product-picker .market-sale-search-controls { display: flex; min-height: 38px; flex: 0 0 auto; }
    .market-sale-product-picker .market-sale-catalog { display: grid; min-height: 0; flex: 1 1 auto; grid-template-rows: auto minmax(0, 1fr); gap: 8px; }
    .market-sale-product-picker .market-sale-catalog-header { flex: 0 0 auto; }
    .market-sale-product-picker .market-sale-catalog-header strong { font-size: 14px; }
    .market-sale-product-picker .market-sale-catalog-header .btn { min-height: 38px; font-size: 12px; }
    .market-sale-product-picker .market-sale-categories { flex: 0 0 auto; }
    .market-sale-product-picker .market-sale-products { min-height: 0; gap: 7px; }
    .market-sale-product-picker .market-sale-product { padding: 12px; font-size: 15px; }
    .market-sale-catalog-header strong { font-size: 12px; }
    .market-sale-catalog-header .btn { min-height: 36px; padding: 5px 8px; font-size: 11px; }
    .market-quick-products-dialog[open], .market-stock-create-dialog[open] { position: fixed; inset: 0; display: flex; flex-direction: column; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 14px 12px; border: 0; border-radius: 0; overflow-y: auto; }
    .market-quick-products-dialog .application-dialog-header,
    .market-stock-create-dialog .application-dialog-header { flex: 0 0 auto; }
    .market-quick-products-intro, .market-stock-create-intro { flex: 0 0 auto; margin: 6px 0 12px; font-size: 13px; }
    .market-quick-search-controls { flex: 1 1 auto; }
    .market-quick-search-input-controls > input { min-height: 44px; }
    .market-quick-product-results { min-height: 110px; max-height: none; flex: 1 1 auto; }
    .market-stock-create-dialog .stock-card-form-grid { gap: 8px; }
    .market-sale-checkout { min-height: 310px; padding: 12px; gap: 9px; }
    .market-sale-cart-lines { max-height: 32dvh; flex: 0 1 auto; }
    .mobile-open-product-picker { display: inline-flex; width: 100%; min-height: 42px; margin: 0 0 12px; }
    .order-catalog-panel { display: none; }
    .new-order-dialog.mobile-order-layout .package-mobile-product-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 8px; margin: 8px 0 12px; }
    .new-order-dialog.mobile-order-layout .package-mobile-product-search-input { min-width: 0; flex: 1 1 auto; margin: 0; }
    .new-order-dialog.mobile-order-layout .package-mobile-product-search-input > input { min-height: 42px; }
    .new-order-dialog.mobile-order-layout .package-mobile-product-search-input         .barcode-scan-button { display: inline-flex; }
    .new-order-dialog.mobile-order-layout .mobile-open-product-picker { display: inline-flex; width: auto; min-width: 88px; min-height: 42px; flex: 0 0 auto; justify-content: center; margin: 0; padding: 7px 11px; white-space: nowrap; }
    .new-order-dialog.mobile-order-layout:not(.mobile-product-picker-open) .order-catalog-panel { display: none; }
    .new-order-dialog.mobile-order-layout .order-product-cards { display: none; }
    .new-order-dialog.mobile-order-layout.mobile-product-picker-open .order-product-cards { display: grid; }
    .new-order-dialog.mobile-order-layout .mobile-product-picker-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .new-order-dialog.mobile-order-layout .mobile-close-product-picker { display: none; }
    .new-order-dialog.mobile-order-layout.mobile-product-picker-open .mobile-close-product-picker { display: inline-flex; }
    .new-order-dialog.mobile-order-layout.mobile-product-picker-open .package-mobile-product-search { display: none; }
    .new-order-dialog.mobile-order-layout .mobile-product-picker-header h2 { margin: 0; font-size: 16px; }
    .new-order-dialog.mobile-order-layout .order-product-search { flex: 0 0 auto; margin-bottom: 0; }
    .new-order-dialog.mobile-order-layout .order-product-search > input { min-height: 44px; }
    .new-order-dialog.mobile-order-layout.mobile-product-picker-open .order-product-cards { max-height: none; min-height: 0; flex: 1 1 auto; grid-template-columns: repeat(auto-fill, minmax(min(100%, 135px), 1fr)); align-content: start; gap: 7px; margin: 0; overflow-x: hidden; overflow-y: auto; }
    .new-order-dialog.mobile-order-layout .order-product-card { padding: 8px; font-size: 12px; }
    .new-order-dialog.mobile-order-layout .order-catalog-layout { min-height: 0; flex: 1 1 auto; flex-direction: column; gap: 8px; overflow: hidden; }
    .new-order-dialog.mobile-order-layout > .new-order-header { margin-bottom: 14px; }
    .new-order-dialog.mobile-order-layout > .new-order-header h1 { font-size: 20px; }
    .new-order-dialog.mobile-order-layout > .new-order-form { padding: 12px; }
    .new-order-dialog.mobile-order-layout .existing-order-summary { font-size: 12px; }
    .new-order-dialog.mobile-order-layout .order-category-sidebar { max-height: 27dvh; flex: 0 0 auto; align-items: stretch; overflow-y: auto; }
    .new-order-dialog.mobile-order-layout .order-category-list { display: flex !important; flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 6px; }
    .new-order-dialog.mobile-order-layout .order-category-item { flex: 0 1 auto; }
    .new-order-dialog.mobile-order-layout .order-category-item .order-category-button { flex: 0 1 auto; }
    .new-order-dialog.mobile-order-layout .order-category-button { min-height: 36px; padding: 6px 11px; border-radius: 999px; font-size: 12px; }
    .new-order-dialog.mobile-order-layout .order-category-item .order-category-button { padding-right: 25px; }
    .new-order-dialog.mobile-order-layout .order-category-hide { top: 4px; right: 4px; width: 18px; height: 18px; }
    .new-order-dialog.mobile-order-layout .order-hidden-categories { padding: 7px; }
    .new-order-dialog.mobile-order-layout .order-hidden-category-list { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
    .new-order-dialog.mobile-order-layout .order-lines-wrap { display: none; }
    .new-order-dialog.mobile-order-layout .package-cart-summary { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; padding: 10px 13px; border: 1px solid #cfe1d4; border-radius: 10px; background: #f5faf6; color: var(--ink); text-align: left; cursor: pointer; }
    .new-order-dialog.mobile-order-layout .package-cart-summary strong { color: var(--green-dark); white-space: nowrap; }
    .new-order-dialog.mobile-order-layout .order-cart-dialog-content .order-lines-wrap { display: block; }
    .new-order-dialog.mobile-product-picker-open .order-catalog-panel { position: fixed; inset: 0; z-index: 5; display: flex; flex-direction: column; gap: 12px; width: 100vw; height: 100dvh; max-height: 100dvh; padding: 16px 12px; background: var(--paper); overflow-y: auto; }
    .new-order-dialog.mobile-product-picker-open .mobile-product-picker-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; }
    .mobile-product-picker-header h2 { margin: 0; }
    .new-order-dialog.mobile-product-picker-open .order-category-list { flex: 0 0 auto; max-height: none; margin-bottom: 0; padding-bottom: 0; overflow: visible; }
    .new-order-dialog.mobile-product-picker-open .order-product-cards { flex: 1 1 auto; align-content: start; margin: 0; overflow-y: auto; }
    .mobile-close-product-picker { display: inline-flex; flex: 0 0 auto; align-self: flex-end; width: 38px; height: 38px; padding: 0; font-size: 24px; }
    .package-orders-open-button { padding: 6px 8px; font-size: 11px; }
    .order-lines-scroll { overflow-x: auto; }
    .order-lines-table { display: table; width: 100%; min-width: 440px; table-layout: fixed; }
    .order-lines-table thead { display: table-header-group; position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
    .order-lines-table tbody { display: table-row-group; width: auto; }
    .order-lines-table tbody tr { display: table-row; width: auto; height: 42px; padding: 0; border-bottom: 1px solid #e5ebe7; border-radius: 0; background: transparent; }
    .order-lines-table tbody tr:last-child { border-bottom: 0; }
    .order-lines-table tbody td { display: table-cell; width: auto; height: 42px; padding: 5px 4px; border: 0; text-align: left; vertical-align: middle; }
    .order-lines-table tbody td::before { content: none; }
    .order-lines-table th, .order-lines-table td { padding: 6px 3px; font-size: 11px; vertical-align: middle; }
    .new-order-dialog.mobile-order-layout .order-lines-table th { font-size: 10px; }
    .order-lines-table th:nth-child(1), .order-lines-table td:nth-child(1) { width: 30px; text-align: center; }
    .order-lines-table th:nth-child(3), .order-lines-table td:nth-child(3) { width: 112px; text-align: center; }
    .order-lines-table th:nth-child(4), .order-lines-table td:nth-child(4) { width: 78px; text-align: center; }
    .order-lines-table th:nth-child(5), .order-lines-table td:nth-child(5) { width: 28px; text-align: center; }
    .order-line-quantity-control { width: 78px; height: 28px; }
    .order-lines-table .order-line-quantity { width: 56px; max-width: 56px; height: 26px; padding: 3px 2px; font-size: 11px; }
    .order-lines-table .order-line-total { white-space: nowrap; }
    .order-lines-table .order-line-remove { width: 22px; height: 26px; font-size: 19px; }
    .new-order-dialog { padding: 16px 12px; }
    .new-order-form { padding: 15px; }
    .new-order-dialog.mobile-order-layout .order-action-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }
    .new-order-dialog.mobile-order-layout .order-action-row .btn {
        width: 100%;
        min-width: 0;
        min-height: 38px;
        height: 38px;
        padding: 6px 7px;
        font-size: 12px;
        line-height: 1.2;
        white-space: nowrap;
    }
    .new-order-dialog.mobile-order-layout #order-submit-button,
    .new-order-dialog.mobile-order-layout #clear-table-button,
    .new-order-dialog.mobile-order-layout #open-payment-dialog {
        grid-column: auto;
        grid-row: auto;
        justify-self: stretch;
        max-width: none;
        text-align: center;
    }
    .new-order-dialog.mobile-order-layout .order-submit-group { width: 100%; }
    .order-workspace, .order-details-panel > .form-grid { grid-template-columns: 1fr; }
    .customer-order-field { grid-column: auto; }
    .customer-order-controls { align-items: stretch; flex-direction: row; }
    .customer-order-controls .customer-picker-trigger { flex: 1 1 0; }
    .customer-order-controls #open-order-customer { flex: 0 0 auto; padding: 8px 9px; font-size: 12px; }
    .customer-picker-dialog { width: min(560px, calc(100vw - 24px)); max-height: min(80dvh, 560px); padding: 14px; }
    dialog.customer-picker-dialog[open]:not(.support-chat-dialog) > .application-dialog-header { margin-bottom: 9px; padding-bottom: 8px; }
    .customer-picker-dialog #package-customer-details { gap: 5px; margin-top: 6px; padding-top: 6px; }
    .customer-picker-dialog #package-customer-details .form-grid { gap: 5px; }
    .customer-picker-dialog #package-customer-details input,
    .customer-picker-dialog #package-customer-details textarea { min-height: 34px; padding: 5px 8px; }
    .customer-picker-dialog #package-customer-details textarea { min-height: 38px; }
    .customer-picker-actions { flex-direction: row; gap: 7px; margin-top: 10px; }
    .customer-picker-actions .btn { width: auto; min-height: 38px; padding: 7px 6px; font-size: 12px; }
    .order-customer-dialog { padding: 18px; }
    .order-category-list { justify-content: center; }
    .order-customer-dialog { padding: 18px; }
    .package-orders-dialog { padding: 16px; }
    .order-cart-dialog[open] { position: fixed; inset: 50% auto auto 50%; display: flex; flex-direction: column; width: calc(100vw - 24px); height: fit-content; max-width: none; max-height: min(78dvh, calc(100dvh - 32px)); margin: 0; padding: 14px 12px max(14px, env(safe-area-inset-bottom)); transform: translate(-50%, -50%); border: 0; border-radius: 16px; overflow: hidden; }
    .order-cart-dialog .application-dialog-header { flex: 0 0 auto; padding-bottom: 10px; }
    .order-cart-dialog-content { display: flex; min-height: 0; flex: 0 1 auto; flex-direction: column; overflow: hidden; }
    .order-cart-dialog-content .order-lines-wrap { min-height: 0; flex: 1 1 auto; max-height: none; overflow-x: hidden; overflow-y: auto; }
    .order-cart-dialog-content .order-lines-scroll { max-height: none; flex: 0 0 auto; overflow: visible; }
    .order-cart-dialog-content .order-lines-table { width: 100%; min-width: 0; table-layout: fixed; }
    .order-cart-dialog-content .order-lines-table th,
    .order-cart-dialog-content .order-lines-table td { padding: 6px 2px; font-size: 10px; }
    .order-cart-dialog-content .order-lines-table th:nth-child(1),
    .order-cart-dialog-content .order-lines-table td:nth-child(1) { width: 26px; }
    .order-cart-dialog-content .order-lines-table th:nth-child(3),
    .order-cart-dialog-content .order-lines-table td:nth-child(3) { width: 96px; }
    .order-cart-dialog-content .order-lines-table th:nth-child(4),
    .order-cart-dialog-content .order-lines-table td:nth-child(4) { width: 60px; }
    .order-cart-dialog-content .order-lines-table th:nth-child(5),
    .order-cart-dialog-content .order-lines-table td:nth-child(5) { width: 24px; }
    .order-cart-dialog-content .order-lines-table td:nth-child(2) { overflow-wrap: anywhere; }
    .order-cart-dialog-content .order-line-quantity-control { width: 78px; height: 28px; }
    .order-cart-dialog-content .order-lines-table .order-line-quantity { width: 56px; max-width: 56px; height: 26px; }
    .new-order-dialog.package-order-context .order-cart-dialog-content .order-lines-table { width: 100%; min-width: 0; }
    .new-order-dialog.package-order-context .order-cart-dialog-content .order-lines-table th:nth-child(1),
    .new-order-dialog.package-order-context .order-cart-dialog-content .order-lines-table td:nth-child(1) { width: 26px; }
    .new-order-dialog.package-order-context .order-cart-dialog-content .order-lines-table th:nth-child(3),
    .new-order-dialog.package-order-context .order-cart-dialog-content .order-lines-table td:nth-child(3) { width: 72px; }
    .new-order-dialog.package-order-context .order-cart-dialog-content .order-lines-table th:nth-child(4),
    .new-order-dialog.package-order-context .order-cart-dialog-content .order-lines-table td:nth-child(4) { width: 96px; text-align: right; white-space: nowrap; }
    .new-order-dialog.package-order-context .order-cart-dialog-content .order-lines-table th:nth-child(5),
    .new-order-dialog.package-order-context .order-cart-dialog-content .order-lines-table td:nth-child(5) { width: 24px; }
    .new-order-dialog.package-order-context .order-cart-dialog-content .order-line-quantity-control { width: 58px; height: 28px; border: 0; overflow: visible; background: transparent; }
    .new-order-dialog.package-order-context .order-cart-dialog-content .order-lines-table .order-line-quantity { width: 58px; max-width: 58px; height: 26px; padding: 2px; border: 1px solid #d9e1db; border-radius: 8px; text-align: center; font-size: 12px; }
    .new-order-dialog.package-order-context .order-cart-dialog-content .order-lines-table .order-line-total { padding-right: 4px; font-size: 10px; font-variant-numeric: tabular-nums; }
    .order-cart-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 0 0 auto; gap: 8px; padding-top: 10px; }
    .order-cart-actions .btn { width: 100%; min-width: 0; max-width: none; min-height: 40px; height: auto; padding: 8px 6px; white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
    .order-cart-actions .btn[hidden] { display: none; }
    .print-preview-dialog { width: calc(100vw - 20px); height: min(78dvh, 680px); max-height: 78dvh; padding: 12px; }
    .package-order-details-dialog { padding: 16px; }
    .package-order-details-dialog .application-dialog-header h2 { font-size: 17px; }
    .package-order-entry { padding: 11px; }
    .package-order-entry-actions, .package-order-entry-actions form { align-items: stretch; }
    .package-order-entry-actions form { flex: 1 1 100%; }
    .package-order-entry-actions form select { flex: 1; min-width: 0; }
    .package-order-entry-actions [data-package-order-status-form] { grid-template-columns: 1fr; }
    .package-order-note-field { grid-column: 1; }
    .package-form-grid .package-name-field, .package-form-grid .package-unlimited-field, .package-form-grid .package-price-field, .package-form-grid .package-duration-field { grid-column: 1; grid-row: auto; }
    .package-form-grid .package-unlimited-field { align-self: auto; }
    .field.full { grid-column: auto; }
    .stat-value { font-size: 21px; }
    .topbar { gap: 8px; padding: 0 10px; }
    .subscription-status strong { font-size: 11px; }
    .subscription-status span { font-size: 10px; }
    .portal-header { align-items: flex-start; }
    .portal-badge { font-size: 9px; white-space: nowrap; }
    .portal-panel { padding: 21px; }
    .application-dialog { padding: 20px; }
    .membership-purchase-dialog[open] {
        position: fixed;
        inset: 0;
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        margin: 0;
        padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
        border: 0;
        border-radius: 0;
        box-sizing: border-box;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    #application-dialog { inset: 8px; width: calc(100vw - 16px); height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); min-height: 0; padding: 12px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
    #application-dialog .application-dialog-header { align-items: center; }
    #application-dialog .application-dialog-header h2 { font-size: 18px; }
    #application-dialog .subtitle { margin: 6px 0 9px; font-size: 12px; }
    #application-dialog .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 8px; }
    #application-dialog .field.full { grid-column: 1 / -1; }
    #application-dialog .field > label { font-size: 11px; line-height: 1.25; }
    #application-dialog .field > input, #application-dialog .field > select { height: 35px; padding: 5px 7px; font-size: 13px; }
    #application-dialog .password-input-wrap input { height: 35px; padding: 5px 38px 5px 7px; font-size: 13px; }
    #application-dialog .password-visibility-toggle { right: 4px; width: 28px; height: 28px; }
    #application-dialog .field.full textarea { min-height: 54px; height: 54px; }
    #application-dialog .application-address-field textarea { min-height: 56px; height: 56px; padding: 5px 7px; font-size: 13px; }
    #application-dialog .portal-submit { width: 100%; min-height: 40px; margin-top: 8px; }
    .membership-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .membership-plan-option { gap: 7px; padding: 11px 9px; }
    .membership-plan-option input { width: 16px; height: 16px; }
    .membership-plan-copy { gap: 3px; }
    .membership-plan-copy > span { font-size: 11px; }
    .membership-plan-copy > b { font-size: 16px; }
    .membership-purchase-form { gap: 11px; }
    .membership-purchase-submit { width: 100%; min-height: 40px; }
    .membership-details { grid-template-columns: 1fr; }
    .admin-access-trigger { bottom: 12px; }
    .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nav a { height: 32px; min-height: 32px; padding: 3px 6px; font-size: 13px; }
    .catalog-nav { position: static; gap: 6px; }
    .catalog-nav a { padding: 7px 10px; font-size: 12px; }
    .stock-cards { grid-template-columns: 1fr; }
    .inventory-table { min-width: 0; }
    .catalog-section .table-wrap { overflow-x: visible; }
    .inventory-list-heading { align-items: stretch; flex-direction: column; gap: 8px; }
    .inventory-search-controls { width: 100%; }
    .catalog-section table, .catalog-section thead, .catalog-section tbody, .catalog-section tr, .catalog-section td { display: block; width: 100%; }
    .catalog-section thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
    .catalog-section tbody tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
    .catalog-section tbody tr:last-child { border-bottom: 0; }
    .catalog-section td { display: flex; justify-content: space-between; gap: 12px; padding: 7px 10px; border: 0; text-align: right; overflow-wrap: anywhere; }
    .catalog-section td::before { content: attr(data-label); flex: 0 0 38%; color: var(--muted); font-size: 12px; font-weight: 650; text-align: left; }
    .catalog-section td.actions { justify-content: flex-start; flex-wrap: wrap; }
    .catalog-section td.actions::before { content: "İşlem"; }
    .catalog-section td.empty { display: block; text-align: center; }
    .catalog-section td.empty::before { content: none; }
    .catalog-section .inventory-list-wrap { max-height: 240px; padding: 5px; overflow-x: hidden; overflow-y: auto; scrollbar-gutter: auto; }
    .catalog-section .inventory-list-wrap .inventory-table { display: table; width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; }
    .catalog-section .inventory-list-wrap .inventory-table thead { position: sticky; top: 0; z-index: 1; display: table-header-group; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; background: #f5f8f6; }
    .catalog-section .inventory-list-wrap .inventory-table thead tr { display: table-row; width: auto; padding: 0; border: 0; }
    .catalog-section .inventory-list-wrap .inventory-table tbody { display: table-row-group; width: auto; }
    .catalog-section .inventory-list-wrap .inventory-table tr[data-stock-row] { display: table-row; width: auto; padding: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #fff; }
    .catalog-section .inventory-list-wrap .inventory-table th,
    .catalog-section .inventory-list-wrap .inventory-table td { display: table-cell; min-width: 0; padding: 5px 4px; border-bottom: 1px solid var(--line); font-size: 11px; line-height: 1.25; text-align: left; overflow-wrap: anywhere; }
    .catalog-section .inventory-list-wrap .inventory-table td::before { content: none; }
    .catalog-section .inventory-list-wrap .inventory-table th:nth-child(1),
    .catalog-section .inventory-list-wrap .inventory-table td:nth-child(1) { width: 54%; }
    .catalog-section .inventory-list-wrap .inventory-table th:nth-child(4),
    .catalog-section .inventory-list-wrap .inventory-table td:nth-child(4) { width: 24%; text-align: center; white-space: nowrap; }
    .catalog-section .inventory-list-wrap .inventory-table th:nth-child(7),
    .catalog-section .inventory-list-wrap .inventory-table td:nth-child(7) { width: 22%; text-align: center; }
    .catalog-section .inventory-list-wrap .inventory-table th:nth-child(4),
    .catalog-section .inventory-list-wrap .inventory-table th:nth-child(7) { text-align: center; }
    .catalog-section .inventory-list-wrap .inventory-table td:first-child strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .catalog-section .inventory-list-wrap .inventory-table .badge { padding: 0; border-radius: 0; background: transparent; color: var(--ink); font-size: 10px; font-weight: 500; }
    .catalog-section .inventory-list-wrap .inventory-table th:nth-child(1)::after { content: "Ürün"; }
    .catalog-section .inventory-list-wrap .inventory-table th:nth-child(4)::after { content: "Miktar"; }
    .catalog-section .inventory-list-wrap .inventory-table th:nth-child(7)::after { content: "Durum"; }
    .catalog-section .inventory-list-wrap .inventory-table th:nth-child(1),
    .catalog-section .inventory-list-wrap .inventory-table th:nth-child(4),
    .catalog-section .inventory-list-wrap .inventory-table th:nth-child(7) { font-size: 0; }
    .catalog-section .inventory-list-wrap .inventory-table th:nth-child(1)::after,
    .catalog-section .inventory-list-wrap .inventory-table th:nth-child(4)::after,
    .catalog-section .inventory-list-wrap .inventory-table th:nth-child(7)::after { font-size: 10px; }
    .inventory-list-wrap .inventory-table td:nth-child(2),
    .inventory-list-wrap .inventory-table td:nth-child(3),
    .inventory-list-wrap .inventory-table td:nth-child(5),
    .inventory-list-wrap .inventory-table td:nth-child(6) { display: none; }
    .catalog-section .inventory-list-wrap .inventory-table th:nth-child(2),
    .catalog-section .inventory-list-wrap .inventory-table td:nth-child(2),
    .catalog-section .inventory-list-wrap .inventory-table th:nth-child(3),
    .catalog-section .inventory-list-wrap .inventory-table td:nth-child(3),
    .catalog-section .inventory-list-wrap .inventory-table th:nth-child(5),
    .catalog-section .inventory-list-wrap .inventory-table td:nth-child(5),
    .catalog-section .inventory-list-wrap .inventory-table th:nth-child(6),
    .catalog-section .inventory-list-wrap .inventory-table td:nth-child(6) { display: none; }
    .catalog-section .inventory-list-wrap .inventory-table td.empty { display: table-cell; padding: 10px 5px; text-align: center; }
    .stock-history-section .table-wrap { width: 100%; max-width: 100%; overflow-x: hidden; padding: 8px; }
    .stock-history-section .stock-history-table { display: table; width: 100%; min-width: 0; table-layout: fixed; }
    .stock-history-section .stock-history-table thead { position: static; display: table-header-group; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; }
    .stock-history-section .stock-history-table tbody { display: table-row-group; width: auto; }
    .stock-history-section .stock-history-table tr { display: table-row; width: auto; padding: 0; border-bottom: 0; }
    .stock-history-section .stock-history-table tr[data-stock-history-row] { display: table-row; width: auto; padding: 0; border-bottom: 0; }
    .stock-history-section .stock-history-table th { display: table-cell; width: auto; }
    .stock-history-section .stock-history-table th,
    .stock-history-section .stock-history-table td { display: table-cell; width: 50%; padding: 3px 4px; border-bottom: 1px solid var(--line); text-align: left; overflow: hidden; font-size: clamp(11px, 3vw, 13px); line-height: 1.2; white-space: nowrap; }
    .stock-history-section .stock-history-table th { display: table-cell; width: 50%; padding: 4px; border-bottom: 1px solid var(--line); text-align: left; font-size: clamp(11px, 3vw, 13px); line-height: 1.2; white-space: nowrap; }
    .stock-history-product strong { font-size: clamp(11px, 3vw, 13px); }
    .stock-history-movement small { font-size: clamp(10px, 2.7vw, 12px); }
    .stock-history-section .stock-history-table td::before { content: none; }
    .stock-history-section .stock-history-table td.empty { display: table-cell; text-align: center; }
}

.support-chat-widget [hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.support-chat-launch { position: fixed; right: 22px; bottom: 22px; z-index: 1000; display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 18px; border: 0; border-radius: 999px; color: #fff; background: var(--green); box-shadow: 0 8px 28px #10251b40; font-weight: 700; cursor: pointer; }
.support-chat-launch:hover { background: var(--green-dark); }
.support-chat-badge { display: grid; min-width: 22px; height: 22px; padding: 0 5px; place-items: center; border-radius: 99px; color: var(--green-dark); background: #fff; font-size: 12px; font-weight: 800; }
.support-chat-dialog { position: fixed; inset: auto 22px 82px auto; width: min(440px, calc(100vw - 24px)); max-width: none; max-height: min(680px, calc(100dvh - 110px)); margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: #fff; box-shadow: 0 20px 65px #10251b40; overflow: hidden; }
.support-chat-dialog::backdrop { background: #13231b55; }
.support-chat-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.support-chat-header .eyebrow { color: var(--green); font-size: 10px; font-weight: 750; letter-spacing: .1em; }
.support-chat-header h2 { margin: 2px 0 0; }
.support-chat-messages { display: flex; min-height: 160px; max-height: min(390px, 48dvh); flex-direction: column; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #f8faf8; overflow-y: auto; }
.support-chat-empty, .support-chat-thread-empty { margin: auto; color: var(--muted); font-size: 13px; text-align: center; }
.support-chat-message { display: grid; max-width: 88%; gap: 3px; align-self: flex-start; padding: 9px 11px; border-radius: 11px 11px 11px 3px; background: #eaf0ec; overflow-wrap: anywhere; }
.support-chat-message.own { align-self: flex-end; border-radius: 11px 11px 3px 11px; color: #fff; background: var(--green); }
.support-chat-message strong { font-size: 11px; opacity: .85; }
.support-chat-message p { margin: 0; white-space: pre-wrap; }
.support-chat-message time { justify-self: end; font-size: 10px; opacity: .72; }
.support-chat-form { display: flex; align-items: flex-end; gap: 8px; margin-top: 10px; }
.support-chat-form textarea { min-height: 45px; max-height: 120px; flex: 1; resize: vertical; }
.support-chat-form button { min-height: 45px; }
.support-chat-form button:disabled { opacity: .55; cursor: not-allowed; }
.support-chat-error { margin-top: 8px; padding: 8px 10px; border-radius: 8px; color: #963c33; background: #fbe9e7; font-size: 12px; }
.support-chat-hint { margin: 7px 0 0; color: var(--muted); font-size: 10px; }
.support-chat-threads { display: flex; max-height: 142px; flex-direction: column; gap: 5px; margin-bottom: 10px; overflow-y: auto; }
.support-chat-thread { position: relative; display: grid; gap: 1px; padding: 7px 38px 7px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; }
.support-chat-thread.active { border-color: var(--green); background: #eff7f2; }
.support-chat-thread strong, .support-chat-thread span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-chat-thread span { color: var(--muted); font-size: 11px; }
.support-chat-thread small { position: absolute; top: 50%; right: 9px; display: grid; min-width: 21px; height: 21px; padding: 0 4px; transform: translateY(-50%); place-items: center; border-radius: 99px; color: #fff; background: var(--green); font-size: 10px; font-weight: 750; }
.referrals-page { width: min(100%, 1120px); margin-inline: auto; }
.referrals-page .toolbar { margin-bottom: 8px; }
.referral-settings-card, .referral-share-card { display: grid; gap: 14px; margin-bottom: 16px; padding: 20px; }
.referral-settings-card .section-heading { margin: 0; }
.referral-settings-card .section-heading h2, .referral-share-card h2 { margin: 0 0 4px; font-size: 18px; }
.referral-settings-card .section-heading p, .referral-share-card p { margin: 0; }
.referral-settings-form { display: grid; width: min(100%, 760px); grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); justify-content: start; align-items: end; gap: 8px; }
.referral-settings-form > .checkbox-field { min-width: 0; height: 45px; min-height: 45px; grid-column: auto; align-self: end; align-items: center; margin: 0; padding: 6px; }
.referral-settings-form > .checkbox-field span { min-width: 0; font-size: 12px; line-height: 1.25; }
.referral-settings-form .field { display: grid; grid-template-columns: minmax(0, 1fr); align-content: end; gap: 6px; }
.referral-settings-form .field input { width: 100%; }
.referral-settings-form .field small { line-height: 1.35; }
.referral-settings-form > .btn { min-height: 45px; }
.referral-admin-stats, .referral-owner-summary { margin-bottom: 16px; }
.referral-admin-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.referral-admin-stats > .card { min-width: 0; text-align: center; }
.referral-admin-stats .stat-label { overflow: hidden; font-size: clamp(10px, 1.1vw, 13px); text-overflow: ellipsis; white-space: nowrap; }
.referral-admin-stats .stat-value { overflow: hidden; margin-top: 5px; font-size: clamp(14px, 1.8vw, 24px); line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) {
    .content > .grid.stats.referral-admin-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 12px 0; }
    .referral-admin-stats > .card { padding: 9px 6px; }
    .referral-admin-stats .stat-label { font-size: 9px; line-height: 1.2; }
    .referral-admin-stats .stat-value { margin-top: 4px; font-size: clamp(12px, 3.2vw, 16px); }
}
.referral-owner-summary { display: grid; gap: 0; padding: 7px 16px; text-align: left; }
.referral-owner-summary-row { display: flex; align-items: baseline; justify-content: flex-start; flex-wrap: wrap; gap: 6px 10px; padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; }
.referral-owner-summary-row:last-child { border-bottom: 0; }
.referral-owner-summary-row span { color: var(--muted); font-size: 13px; font-weight: 650; }
.referral-owner-summary-row strong { color: var(--green-dark); font-size: 16px; font-weight: 800; }
.referral-owner-summary-row .btn { flex: 0 0 auto; width: auto; min-width: 0; min-height: 30px; height: 30px; margin-left: auto; padding: 4px 9px; border-radius: 7px; font-size: 12px; line-height: 1.2; }

.login-page { min-height: 100vh; padding: 12px 32px 18px; background: radial-gradient(ellipse at 12% 18%, #e1eee2 0, transparent 38%), radial-gradient(ellipse at 88% 82%, #f4e9d8 0, transparent 34%), #f7f8f5; }
.login-page .portal { width: min(1160px, 100%); }
.login-page .portal-header { align-items: center; margin-bottom: clamp(8px, 1.3vh, 12px); }
.login-page .portal-header .brand { display: flex; align-items: center; gap: 12px; }
.login-page .portal-brand-icon { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid #dce8df; border-radius: 15px; color: var(--green-dark); background: #fff; box-shadow: 0 6px 18px #183a2510; font-size: 23px !important; }
.login-page .portal-header .brand > div { min-width: 0; }
.login-page .portal-header .brand strong { color: #20372a; font-size: 21px; line-height: 1.2; }
.login-page .portal-header .brand div > span { display: block; margin-top: 3px; color: #75847a; font-size: 11px; letter-spacing: .04em; }
.login-page .portal-badge { border-color: #d7e3d9; color: #496552; background: #ffffffc9; font-size: 10px; letter-spacing: .1em; }
.login-page .portal-grid { grid-template-columns: minmax(0, 1fr) minmax(350px, 430px); align-items: center; gap: clamp(32px, 7vw, 92px); }
.portal-login-column { min-width: 0; grid-column: 2; }
.login-page dialog.portal-panel[open] { position: relative; inset: auto; width: 100%; max-width: none; max-height: none; margin: 0; overflow: visible; color: var(--ink); }
.login-page dialog.portal-panel::backdrop { background: #13231bcc; backdrop-filter: blur(3px); }
.portal-story { min-width: 0; padding: 10px 0; }
.portal-story-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #63846d; font-size: 10px; letter-spacing: .15em; }
.portal-story-eyebrow::before { width: 22px; height: 1px; background: #8ca995; content: ""; }
.portal-story h1 { max-width: 620px; margin: 0 0 12px; color: #20372a; font-size: clamp(36px, 4.6vw, 56px); font-weight: 750; letter-spacing: -.055em; line-height: 1.04; }
.portal-story h1 span { color: var(--green); }
.portal-story-intro { max-width: 540px; margin: 0; color: #6d7b72; font-size: 15px; line-height: 1.6; }
.portal-highlights { display: grid; gap: 9px; margin-top: 22px; }
.portal-highlight { display: flex; align-items: center; gap: 13px; }
.portal-highlight-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid #dce8df; border-radius: 12px; color: var(--green); background: #fff; font-size: 11px; font-weight: 750; }
.portal-highlight > span:last-child { display: grid; gap: 2px; }
.portal-highlight strong { color: #314339; font-size: 13px; font-weight: 700; }
.portal-highlight small { color: #829087; font-size: 12px; }
.portal-note { display: flex; align-items: center; gap: 8px; margin-top: 20px; color: #718078; font-size: 12px; }
.portal-note span { color: #c28d47; font-size: 17px; }
.login-page .portal-panel { padding: 24px; border: 1px solid #e6ebe6; border-radius: 20px; background: #fff; box-shadow: 0 24px 70px #263b2b12, 0 3px 10px #263b2b08; }
.login-page .portal-panel h1 { margin: 9px 0 4px; color: #24372b; font-size: 27px; letter-spacing: -.03em; }
.business-login-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.business-login-dialog-header h1 { margin-top: 0 !important; }
.business-login-close { display: none; }
.portal-login-intro { margin: 0 0 23px; color: #7b8880; font-size: 13px; }
.login-page .portal-panel .field { gap: 6px; margin-bottom: 15px; }
.login-page .portal-panel label { color: #435248; font-size: 12px; font-weight: 650; }
.login-page .portal-panel input:not([type="checkbox"]) { height: 46px; border-color: #e0e7e1; border-radius: 10px; background: #fbfcfb; }
.login-page .portal-panel input:not([type="checkbox"]):focus { border-color: #77a88b; outline: 3px solid #147a551c; }
.login-page .business-password-row { gap: 12px; margin-bottom: 12px; }
.login-page .remember-login-field { color: #68766d; font-size: 11px; }
.login-page .portal-panel .portal-submit { min-height: 46px; margin-top: 5px; border-radius: 10px; font-size: 13px; font-weight: 700; }
.login-page .portal-login-column > .application-cta { justify-content: flex-end; gap: 10px; margin: 20px 0 0; padding: 17px 24px 0; border-top: 1px solid #edf0ed; }
.login-page .application-cta p { color: #758178; font-size: 12px; }
.login-page .application-cta .btn { min-height: 38px; padding: 8px 12px; border: 1px solid #d8e6dc; border-radius: 9px; color: var(--green-dark); background: #fff; font-size: 11px; font-weight: 700; }
.login-page .application-cta .btn:hover { border-color: #a9c7b2; background: #f0f7f2; }
.login-page #open-application { border: 1px solid #168eab; color: #fff; background: linear-gradient(110deg, #0d694b 0%, #13a77a 24%, #168bd2 50%, #7653c6 76%, #0d694b 100%); background-size: 250% 100%; box-shadow: 0 5px 16px #147a5540; animation: application-cta-glow 2.4s ease-in-out infinite, application-cta-shimmer 4.5s ease-in-out infinite; }
.login-page #open-application:hover { border-color: #0d5b3e; background-position: 100% 0; box-shadow: 0 7px 22px #147a5560; transform: translateY(-1px); }
.login-page #open-application:focus-visible { outline: 3px solid #147a5560; outline-offset: 3px; }
@keyframes application-cta-glow {
    0%, 100% { box-shadow: 0 4px 13px #147a5530; }
    50% { box-shadow: 0 6px 21px #147a5570; }
}
@keyframes application-cta-shimmer {
    0%, 100% { background-position: 0% 0; }
    50% { background-position: 100% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .login-page #open-application { animation: none; background-position: 50% 0; }
}
.portal-login-launch { display: none; }

@media (min-width: 901px) and (max-height: 760px) {
    .login-page .portal-panel { padding: 22px 24px; }
    .login-page .portal-panel h1 { margin-top: 6px; font-size: 25px; }
    .portal-login-intro { margin-bottom: 17px; }
    .login-page .portal-panel .field { margin-bottom: 12px; }
    .login-page .portal-panel input:not([type="checkbox"]) { height: 42px; }
    .login-page .business-password-row { gap: 8px; margin-bottom: 10px; }
    .login-page .remember-login-field { min-height: 38px; }
    .login-page .portal-panel .portal-submit { min-height: 42px; }
    .login-page .portal-login-column > .application-cta { margin-top: 15px; padding-top: 13px; }
    .portal-story h1 { font-size: clamp(34px, 4.4vw, 52px); }
    .portal-story-intro { font-size: 14px; }
    .portal-highlights { gap: 9px; margin-top: 19px; }
    .portal-note { margin-top: 16px; }
}

@media (max-width: 900px) {
    .login-page { padding: 14px 22px 78px; }
    .login-page .portal-header { margin-bottom: 16px; }
    .login-page .portal-grid { width: min(560px, 100%); grid-template-columns: minmax(0, 1fr); gap: 26px; margin: 0 auto; }
    .portal-login-column { display: contents; }
    .login-page dialog.portal-panel:not([open]) { display: none; }
    .login-page dialog.portal-panel[open]:modal { position: fixed; inset: 0; width: min(430px, calc(100vw - 32px)); max-width: calc(100vw - 32px); max-height: min(90dvh, 620px); margin: auto; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
    .business-login-close { display: grid; width: 36px; min-width: 36px; height: 36px; min-height: 36px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #f7faf7; font-size: 22px; line-height: 1; }
    .portal-login-launch { display: flex; width: min(100%, 300px); min-height: 46px; justify-content: center; margin: 18px auto 0; border-radius: 11px; font-weight: 700; }
    .portal-story { padding: 0; }
    .portal-story h1 { max-width: 540px; margin: 0 0 10px; font-size: clamp(34px, 6vw, 48px); }
    .portal-story-intro { font-size: 14px; line-height: 1.6; }
    .portal-highlights { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 19px; }
    .portal-highlight { align-items: flex-start; gap: 8px; }
    .portal-highlight-icon { width: 30px; height: 30px; flex-basis: 30px; border-radius: 9px; font-size: 9px; }
    .portal-highlight strong { font-size: 11px; line-height: 1.35; }
    .portal-highlight small { font-size: 10px; line-height: 1.4; }
    .portal-note { margin-top: 17px; font-size: 11px; }
    .login-page dialog.portal-panel { padding: 22px; border-radius: 16px; }
    .login-page .portal-login-column > .application-cta { justify-content: center; margin: 0; padding: 0; border: 0; }
}

@media (max-width: 520px) {
    .login-page { padding: 8px 16px 76px; }
    .login-page .portal-header { gap: 8px; margin-bottom: 12px; }
    .login-page .portal-header .brand { gap: 9px; }
    .login-page .portal-brand-icon { width: 39px; height: 39px; border-radius: 12px; font-size: 19px !important; }
    .login-page .portal-header .brand strong { font-size: 17px; }
    .login-page .portal-header .brand div > span { font-size: 9px; }
    .login-page .portal-badge { padding: 6px 8px; font-size: 8px; }
    .login-page .portal-grid { gap: 21px; }
    .portal-story-eyebrow { font-size: 9px; }
    .portal-story h1 { margin-top: 0; font-size: clamp(32px, 9vw, 42px); }
    .portal-story-intro { font-size: 13px; }
    .portal-highlights { grid-template-columns: minmax(0, 1fr); gap: 11px; margin-top: 17px; }
    .portal-highlight { align-items: center; }
    .portal-highlight strong { font-size: 12px; }
    .portal-highlight small { font-size: 11px; }
    .portal-note { margin-top: 14px; font-size: 10px; }
    .login-page dialog.portal-panel { padding: 21px 18px; border-radius: 16px; }
    .login-page .portal-panel h1 { font-size: 23px; }
    .portal-login-intro { margin-bottom: 17px; font-size: 12px; }
    .login-page .business-password-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .login-page .remember-login-field { min-height: 30px; }
    .login-page .portal-login-column > .application-cta { flex-wrap: wrap; }
}
.referral-withdrawal-launch { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; padding: 16px 18px; border-color: #cfe1d4; background: #f7fbf8; }
.referral-withdrawal-launch > div { min-width: 0; }
.referral-withdrawal-launch > div > strong { color: var(--green-dark); }
.referral-withdrawal-launch p { margin: 3px 0 0; font-size: 13px; }
.referral-withdrawal-launch .referral-withdrawal-pending { color: #8a5700; font-weight: 700; }
.referral-withdrawal-admin-section, .referral-withdrawal-history-card { margin-top: 16px; padding: 18px; }
.referral-withdrawal-admin-section .section-heading { align-items: flex-start; }
.referral-withdrawal-admin-section .section-heading h2, .referral-withdrawal-history-card .section-heading h2 { margin: 0; font-size: 18px; }
.referral-withdrawal-admin-section .section-heading p { margin: 4px 0 0; font-size: 13px; }
.referral-withdrawal-table th, .referral-withdrawal-table td { display: table-cell; min-width: 0; padding: 9px 7px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.referral-withdrawal-table th { color: var(--muted); font-size: 11px; white-space: normal; overflow-wrap: anywhere; }
.referral-withdrawal-table td { font-size: 12px; }
.referral-withdrawal-table td::before { content: none; }
.referral-withdrawal-table td small { display: block; margin-top: 3px; color: var(--muted); overflow-wrap: anywhere; }
.referral-withdrawal-copy { display: inline; max-width: 100%; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; overflow-wrap: anywhere; cursor: copy; }
.referral-withdrawal-copy:hover { color: var(--green-dark); text-decoration: underline; text-decoration-style: dotted; }
.referral-withdrawal-copy code { font-size: 11px; overflow-wrap: anywhere; }
.referral-withdrawal-review-form { display: grid; min-width: 0; gap: 6px; }
.referral-withdrawal-admin-note { width: 100%; min-width: 0; min-height: 34px; padding: 6px 8px; font-size: 11px; }
.referral-withdrawal-actions { display: flex; min-width: 0; flex-wrap: wrap; gap: 5px; }
.referral-withdrawal-actions .btn { min-width: 0; min-height: 32px; flex: 1 1 65px; padding: 5px 8px; }
.referral-withdrawal-list { display: grid; gap: 7px; }
.referral-withdrawal-list-item { display: flex; width: 100%; min-width: 0; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; }
.referral-withdrawal-list-item:hover, .referral-withdrawal-list-item:focus-visible { border-color: #9dc9aa; background: #f5faf6; }
.referral-withdrawal-list-item:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.referral-withdrawal-list-item.is-approved { border-color: #166534; color: #f0fdf4; background: #14532d; }
.referral-withdrawal-list-item.is-approved:hover, .referral-withdrawal-list-item.is-approved:focus-visible { border-color: #22c55e; background: #166534; }
.referral-withdrawal-list-item.is-approved .referral-withdrawal-list-business small { color: #bbf7d0; }
.referral-withdrawal-list-item.is-approved .referral-withdrawal-list-amount { color: #dcfce7; }
.referral-withdrawal-list-item.is-rejected { border-color: #7f1d1d; color: #fff1f2; background: #7f1d1d; }
.referral-withdrawal-list-item.is-rejected:hover, .referral-withdrawal-list-item.is-rejected:focus-visible { border-color: #ef4444; background: #991b1b; }
.referral-withdrawal-list-item.is-rejected .referral-withdrawal-list-business small { color: #fecaca; }
.referral-withdrawal-list-item.is-rejected .referral-withdrawal-list-amount { color: #ffe4e6; }
.referral-withdrawal-list-item.is-pending { border-color: #9a6700; color: #422006; background: #fef3c7; }
.referral-withdrawal-list-item.is-pending:hover, .referral-withdrawal-list-item.is-pending:focus-visible { border-color: #b45309; background: #fde68a; }
.referral-withdrawal-list-item.is-pending .referral-withdrawal-list-amount { color: #713f12; }
.referral-withdrawal-list-business { display: grid; min-width: 0; gap: 2px; }
.referral-withdrawal-list-business strong, .referral-withdrawal-list-business small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.referral-withdrawal-list-business small { color: var(--muted); font-size: 12px; }
.referral-withdrawal-list-amount { flex: 0 0 auto; color: var(--green-dark); white-space: nowrap; }
.referral-withdrawal-detail-dialog[open] { position: fixed; top: max(12px, env(safe-area-inset-top)); right: auto; bottom: auto; left: 50%; width: min(560px, calc(100vw - 28px)); max-width: none; max-height: min(78dvh, 640px); margin: 0; padding: 16px; transform: translateX(-50%); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: #fff; box-shadow: 0 18px 55px #10251b55; overflow-x: hidden; overflow-y: auto; }
.referral-withdrawal-detail-dialog::backdrop { background: #13231b88; }
.referral-withdrawal-detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.referral-withdrawal-detail-header h2 { margin: 4px 0 0; font-size: 19px; }
.referral-withdrawal-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.referral-withdrawal-detail-grid > div { display: grid; min-width: 0; align-content: start; gap: 3px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfb; }
.referral-withdrawal-detail-grid dt { color: var(--muted); font-size: 11px; font-weight: 700; }
.referral-withdrawal-detail-grid dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.referral-withdrawal-detail-grid [hidden], .referral-withdrawal-detail-review-form[hidden] { display: none; }
.referral-withdrawal-detail-grid .referral-withdrawal-detail-iban, .referral-withdrawal-detail-grid .referral-withdrawal-detail-note { grid-column: 1 / -1; }
.referral-withdrawal-detail-review-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.referral-withdrawal-detail-note-input { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 650; }
.referral-withdrawal-detail-note-input input { width: 100%; }
.admin-withdrawal-notification { position: fixed; bottom: max(18px, env(safe-area-inset-bottom)); left: max(18px, env(safe-area-inset-left)); z-index: 1200; display: grid; width: min(360px, calc(100vw - 36px)); grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 11px; padding: 13px 15px; border: 1px solid #14532d; border-radius: 12px; color: #fff; background: #123d2b; box-shadow: 0 12px 35px #10251b55; text-align: left; cursor: pointer; animation: referral-notification-enter .2s ease-out; }
.admin-withdrawal-notification[hidden] { display: none !important; }
.admin-withdrawal-notification:hover, .admin-withdrawal-notification:focus-visible { border-color: #4ade80; background: #14532d; }
.admin-withdrawal-notification:focus-visible { outline: 2px solid #86efac; outline-offset: 3px; }
.admin-withdrawal-notification-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; color: #123d2b; background: #bbf7d0; font-size: 21px; font-weight: 850; }
.admin-withdrawal-notification-copy { display: grid; min-width: 0; gap: 1px; }
.admin-withdrawal-notification-copy strong { font-size: 13px; }
.admin-withdrawal-notification-copy > span { overflow: hidden; color: #dcfce7; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-withdrawal-notification-copy small { color: #bbf7d0; font-size: 10px; }
@keyframes referral-notification-enter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.referral-withdrawal-dialog { width: min(520px, calc(100vw - 28px)); }
.referral-withdrawal-balance { margin: 10px 0; padding: 10px 12px; border-radius: 9px; color: var(--green-dark); background: #f1f7f3; }
.referral-withdrawal-form { display: grid; gap: 12px; }
.referral-withdrawal-form .field { display: grid; gap: 5px; margin: 0; }
.referral-withdrawal-form .field input { width: 100%; }
.referral-withdrawal-form > p { margin: 0; font-size: 12px; }
.referral-withdrawal-form > .btn { min-height: 44px; }
.referral-share-card { border-color: #dce7df; background: #fbfdfb; }
.referral-share-card .eyebrow { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.referral-link-row { display: grid; gap: 6px; }
.referral-link-row input { width: 100%; min-width: 0; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; cursor: copy; }
.referral-link-row input:focus { outline: 2px solid #147a552b; border-color: var(--green); }
.referral-copy-status { min-height: 18px; color: var(--green-dark); font-size: 12px; font-weight: 650; }
.referral-share-card .notice { margin: 0; }
.referral-credit-balance { margin: 0; padding: 11px 13px; border: 1px solid #dce7df; border-radius: 9px; color: var(--green-dark); background: #f1f7f3; }
.membership-credit-preview { color: var(--green-dark); font-size: 11px; font-weight: 650; }
.membership-plan-option.is-disabled { opacity: .55; }
.membership-payment-details[hidden] { display: none; }
.referral-compact-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 14px; }
.referral-list-trigger { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; text-align: left; cursor: pointer; }
.referral-list-trigger > span:first-child { display: grid; min-width: 0; gap: 2px; }
.referral-list-trigger strong { overflow-wrap: anywhere; font-size: 14px; }
.referral-list-trigger small { color: var(--muted); font-size: 12px; }
.referral-list-trigger > .btn { flex: 0 0 auto; white-space: nowrap; }
.referral-list-dialog { width: min(880px, calc(100vw - 28px)); max-height: min(88dvh, 780px); }
.referral-list-dialog .application-dialog-header { align-items: center; margin-bottom: 12px; }
.referral-list-dialog .application-dialog-header h2 { margin: 3px 0 0; }
.referral-list-dialog .eyebrow { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.referral-dialog-table-wrap { max-height: calc(88dvh - 115px); overflow-x: hidden; overflow-y: auto; }
.referral-list-dialog .referral-dialog-table { display: table; width: 100%; table-layout: fixed; border-collapse: collapse; }
.referral-list-dialog .referral-dialog-table thead { position: static; display: table-header-group; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; }
.referral-list-dialog .referral-dialog-table tbody { display: table-row-group; width: auto; }
.referral-list-dialog .referral-dialog-table tr { display: table-row; width: auto; padding: 0; }
.referral-list-dialog .referral-dialog-table th, .referral-list-dialog .referral-dialog-table td { display: table-cell; min-width: 0; padding: 9px 7px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.referral-list-dialog .referral-dialog-table th { color: var(--muted); font-size: 11px; }
.referral-list-dialog .referral-dialog-table td { font-size: 12px; }
.referral-list-dialog .referral-dialog-table td::before { content: none; }
.referral-list-dialog .referral-dialog-table td.empty { display: table-cell; text-align: center; }
.referral-list-dialog .referral-dialog-table td small { overflow-wrap: anywhere; }
@media (max-width: 700px) {
    #business-profile-dialog.business-profile-dialog { width: min(560px, calc(100vw - 24px)); max-height: min(76dvh, 540px); padding: 11px; }
    #business-profile-dialog .business-profile-fields { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    #business-profile-dialog .business-profile-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    #business-profile-dialog .business-profile-row .field { min-width: 0; }
    #business-profile-dialog .business-profile-row input { min-width: 0; padding-right: 7px; padding-left: 7px; font-size: 13px; }
    #business-profile-dialog .business-profile-row label { font-size: 12px; }
    .business-profile-fields .business-profile-address { grid-column: 1 / -1; }
    .referral-settings-card, .referral-share-card { gap: 11px; padding: 13px; }
    .referral-settings-form { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .referral-settings-form > .checkbox-field { height: 45px; min-height: 45px; padding: 6px; }
    .referral-settings-form > .checkbox-field span { font-size: 11px; }
    .referral-settings-form .field { gap: 6px; }
    .referral-settings-form > .btn { grid-column: 1 / -1; }
    .referral-link-row { align-items: stretch; }
    .referral-compact-lists { grid-template-columns: 1fr; gap: 7px; margin-top: 10px; }
    .referral-list-trigger { padding: 10px 11px; }
    .referral-list-trigger strong { font-size: 13px; }
    .referral-list-trigger > .btn { min-height: 34px; padding: 6px 8px; font-size: 11px; }
    .referral-list-dialog { max-height: 92dvh; padding: 12px; }
    .referral-dialog-table-wrap { max-height: calc(92dvh - 92px); }
    .referral-list-dialog .referral-dialog-table th, .referral-list-dialog .referral-dialog-table td { padding: 7px 3px; font-size: 10px; line-height: 1.35; }
    .referral-list-dialog .referral-dialog-table th { font-size: 9px; }
    .referral-list-dialog .referral-dialog-table td small { font-size: 9px; }
    .referral-withdrawal-launch { align-items: stretch; flex-direction: column; gap: 10px; padding: 12px; }
    .referral-withdrawal-launch > .btn { width: 100%; }
    .referral-withdrawal-admin-section, .referral-withdrawal-history-card { padding: 12px; }
}
@media (max-width: 600px) {
    .support-chat-launch { right: 12px; bottom: 12px; min-height: 44px; padding: 0 14px; font-size: 13px; }
    .support-chat-dialog { inset: auto 8px 66px 8px; width: auto; max-height: calc(100dvh - 82px); padding: 14px; }
    .support-chat-messages { max-height: min(48dvh, 370px); }
}
@media (max-width: 700px) {
    .referral-withdrawal-table td::before { content: attr(data-label); color: var(--muted); font-size: 10px; font-weight: 700; }
    .referral-withdrawal-table td:nth-child(1), .referral-withdrawal-table td:nth-child(4), .referral-withdrawal-table td:nth-child(5) { grid-column: 1 / -1; }
    .referral-withdrawal-table td:last-child { grid-column: 1 / -1; }
    .referral-withdrawal-table td.empty { display: block; grid-column: 1 / -1; text-align: center; }
    .referral-withdrawal-table td.empty::before { content: none; }
    .referral-withdrawal-copy { text-align: left; }
    .referral-withdrawal-copy code { white-space: normal; }
    .referral-withdrawal-review-form { grid-template-columns: minmax(0, 1fr); }
    .referral-withdrawal-admin-note { font-size: 12px; }
    .referral-withdrawal-actions .btn { flex: 1; }
    .referral-withdrawal-list-item { gap: 8px; padding: 10px 11px; }
    .referral-withdrawal-list-business small { display: none; }
    .referral-withdrawal-detail-dialog[open] { top: max(8px, env(safe-area-inset-top)); width: calc(100vw - 20px); max-height: min(78dvh, 640px); padding: 12px; }
    .referral-withdrawal-detail-grid { gap: 6px; }
    .referral-withdrawal-detail-grid > div { padding: 8px; }
}
.membership-table { display: block; width: 100%; table-layout: fixed; }
.membership-table thead { display: none; }
.membership-table tbody { display: grid; width: 100%; }
.membership-table tr[data-membership-row] { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; width: 100%; min-height: 54px; padding: 0 10px; border-bottom: 1px solid var(--line); cursor: pointer; }
.membership-table tr[data-membership-row].membership-row-active { background: #eaf6ed; }
.membership-table tr[data-membership-row].membership-row-inactive { background: #fff0ef; }
.membership-table tr[data-membership-row].membership-row-active:hover { background: #def0e2; }
.membership-table tr[data-membership-row].membership-row-inactive:hover { background: #fde4e2; }
.membership-table tr[data-membership-row]:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.membership-table tr[data-membership-row] td { display: block; width: auto; padding: 8px 5px; border: 0; overflow-wrap: anywhere; }
.membership-table tr[data-membership-row] td::before { content: none; }
.membership-table tr[data-membership-row] td[data-label="İşletme"] { min-width: 0; }
.membership-business-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 9px; }
.membership-business-heading > strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.membership-business-heading .badge { flex: 0 0 auto; padding: 3px 8px; font-size: 11px; line-height: 1.35; }
.membership-package-mobile { display: none; }
.membership-package-label { display: block; margin-bottom: 2px; color: var(--muted); font-size: 11px; font-weight: 700; }
.membership-joined-date { display: block; margin-top: 3px; }
.membership-table tr[data-membership-row] td:nth-child(2),
.membership-table tr[data-membership-row] td:nth-child(3),
.membership-table tr[data-membership-row] td:nth-child(4),
.membership-table tr[data-membership-row] td:nth-child(5),
.membership-table tr[data-membership-row] td:nth-child(6) { display: none; }
.membership-details-dialog[open] { position: fixed; inset: 0; width: min(700px, calc(100vw - 28px)); max-width: none; max-height: min(82dvh, 720px); margin: auto; padding: 12px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: #fff; box-shadow: 0 18px 55px #10251b55; overflow-y: auto; }
.membership-details-dialog::backdrop { background: #13231b88; }
.membership-details-header { position: sticky; top: -12px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -12px -12px 8px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: #fff; }
.membership-details-header h2 { min-width: 0; margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.membership-details-table, .membership-details-table tbody { display: block; width: 100%; }
.membership-details-table .membership-open-details { display: none; }
.membership-details-table tr.membership-modal-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 10px; width: 100%; border: 0; cursor: auto; }
.membership-details-table tr.membership-modal-row td { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 2px; min-width: 0; width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfb; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.membership-details-table tr.membership-modal-row td::before { content: attr(data-label); color: var(--muted); font-size: 11px; font-weight: 700; }
.membership-details-table tr.membership-modal-row td[data-label="İşlem"] { grid-column: 1 / -1; display: block; padding: 8px; }
.membership-details-table tr.membership-modal-row td[data-label="İşlem"]::before { display: block; margin-bottom: 5px; }
.membership-details-table tr.membership-modal-row td[data-label="İşlem"] .membership-row-actions { min-width: 0; }
.membership-details-table tr.membership-modal-row td[data-label="İşlem"] .membership-row-actions { gap: 6px; }
.membership-details-table tr.membership-modal-row td[data-label="İşlem"] .membership-row-actions { display: grid; }
.membership-details-table tr.membership-modal-row td[data-label="İşlem"] .renew-membership-controls { padding: 6px; }
.membership-details-table tr.membership-modal-row td[data-label="İşlem"] .renew-membership-form { display: flex; flex-wrap: nowrap; }
.membership-details-table tr.membership-modal-row td[data-label="İşlem"] .renew-membership-form select { max-width: none; min-width: 0; height: 34px; padding: 5px 7px; }
.membership-details-table tr.membership-modal-row td[data-label="İşlem"] .membership-row-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.membership-details-table tr.membership-modal-row td[data-label="İşlem"] .renew-membership-controls { grid-column: 1 / -1; }
.membership-details-table tr.membership-modal-row td[data-label="İşlem"] .email-message-trigger { grid-column: 1; grid-row: 2; min-width: 0; min-height: 36px; padding: 5px 3px; font-size: 10px; line-height: 1.2; white-space: normal; }
.membership-details-table tr.membership-modal-row td[data-label="İşlem"] .business-email-form[hidden] { display: none; }
.membership-details-table tr.membership-modal-row td[data-label="İşlem"] .membership-row-secondary-actions { display: contents; }
.membership-details-table tr.membership-modal-row td[data-label="İşlem"] .membership-row-secondary-actions > form { grid-row: 2; min-width: 0; }
.membership-details-table tr.membership-modal-row td[data-label="İşlem"] .membership-row-secondary-actions > form:nth-child(1) { grid-column: 2; }
.membership-details-table tr.membership-modal-row td[data-label="İşlem"] .membership-row-secondary-actions > form:nth-child(2) { grid-column: 3; }
.membership-details-table tr.membership-modal-row td[data-label="İşlem"] .membership-row-secondary-actions > form:nth-child(3) { grid-column: 4; }
.membership-details-table tr.membership-modal-row td[data-label="İşlem"] .membership-row-secondary-actions .btn { width: 100%; min-width: 0; min-height: 36px; padding: 5px 3px; font-size: 10px; line-height: 1.2; white-space: normal; }
.membership-table td.empty { display: block; text-align: center; }
.membership-table td.empty::before { content: none; }
.business-email-dialog { width: min(520px, calc(100vw - 28px)); max-height: min(88dvh, 680px); }
.business-email-dialog .application-dialog-header { align-items: center; margin-bottom: 16px; }
.business-email-dialog .application-dialog-header h2 { margin: 0; font-size: 19px; }
.business-email-dialog-form { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.business-email-dialog-form > .muted { margin: 0; padding: 9px 11px; border-radius: 8px; background: #f4f7f5; font-size: 13px; overflow-wrap: anywhere; }
.business-email-dialog-form .field { gap: 5px; }
.business-email-dialog-form .field.spaced-top { margin-top: 0; }
.business-email-dialog-form .field > input { height: 42px; }
.business-email-dialog-form textarea { min-height: 120px; resize: vertical; }
.business-email-dialog-form > button { justify-self: end; min-height: 40px; margin-top: 0; }

dialog[open]:not(.support-chat-dialog) {
    position: fixed;
    inset: 0;
    width: min(720px, calc(100vw - 40px));
    max-width: calc(100vw - 40px);
    max-height: min(88dvh, 860px);
    margin: auto;
    padding: 24px;
    transform: none;
    border: 1px solid #dfe7e1;
    border-radius: 18px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 24px 80px #10251b38, 0 4px 16px #10251b12;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}
dialog.customer-activity-dialog[open]:not(.support-chat-dialog) {
    position: fixed !important;
    inset: 14px !important;
    display: flex !important;
    width: calc(100vw - 28px) !important;
    max-width: none !important;
    height: calc(100dvh - 28px) !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    overflow: hidden !important;
}
dialog.customer-activity-detail-dialog[open]:not(.support-chat-dialog) {
    position: fixed !important;
    inset: max(12px, env(safe-area-inset-top)) auto auto 50% !important;
    width: min(560px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100dvh - max(12px, env(safe-area-inset-top)) - 12px) !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateX(-50%) !important;
    overflow: auto !important;
}
dialog[open]:not(.support-chat-dialog)::backdrop {
    background: #10251b80;
    backdrop-filter: blur(3px);
}
dialog[open]:not(.support-chat-dialog) > .application-dialog-header,
dialog[open]:not(.support-chat-dialog) > .order-details-header,
dialog[open]:not(.support-chat-dialog) > .dashboard-order-dialog-header,
dialog[open]:not(.support-chat-dialog) > .membership-details-header {
    position: sticky;
    top: -24px;
    z-index: 2;
    align-items: center;
    margin: -24px -24px 20px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}
dialog[open]:not(.support-chat-dialog) > .application-dialog-header h2,
dialog[open]:not(.support-chat-dialog) > .order-details-header h2,
dialog[open]:not(.support-chat-dialog) > .dashboard-order-dialog-header h2,
dialog[open]:not(.support-chat-dialog) > .membership-details-header h2 {
    margin: 0;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
dialog[open]:not(.support-chat-dialog) .application-dialog-close {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: #43534a;
    background: #f6f8f6;
    font-size: 24px;
}
dialog[open]:not(.support-chat-dialog) .application-dialog-close:hover,
dialog[open]:not(.support-chat-dialog) .application-dialog-close:focus-visible {
    color: var(--ink);
    background: #eaf0ec;
    outline: 2px solid #147a5533;
    outline-offset: 2px;
}
dialog.package-orders-dialog[open] { width: min(960px, calc(100vw - 40px)); }
dialog.print-preview-dialog[open] {
    width: min(960px, calc(100vw - 40px));
    height: min(78dvh, 760px);
    max-height: 78dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
dialog.print-preview-dialog[open] > .application-dialog-header {
    position: static;
    top: auto;
    z-index: auto;
    margin: 0 0 10px;
    padding: 0 0 10px;
}
dialog.print-preview-dialog[open] iframe { min-height: 0; }
.order-details-dialog[open]:not(.support-chat-dialog) {
    inset: 8px 0 auto;
    width: min(760px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100dvh - 16px);
    margin: 0 auto;
    padding: 10px 12px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: auto;
}
.order-details-dialog[open]:not(.support-chat-dialog) > .order-details-header {
    position: static;
    top: auto;
    z-index: auto;
    margin: 0 0 4px;
    padding: 0 0 4px;
}
.order-details-dialog .order-details-content { max-height: none; overflow: visible; }
.order-details-dialog .order-details-content table { table-layout: fixed; }
.order-details-dialog .order-details-content .order-modal-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}
.order-details-dialog .order-details-content .order-modal-row td {
    display: grid;
    grid-template-columns: minmax(0, 90px) minmax(0, 1fr);
    align-items: center;
    gap: 4px;
    min-width: 0;
    grid-column: 1 / -1;
    padding: 8px 10px;
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: break-word;
}
.order-details-dialog .order-details-content .order-modal-row td.order-summary-cell {
    grid-column: 1 / -1;
}
.order-details-dialog .order-details-content .order-modal-row td[data-label="Sipariş türü"] .order-type-badge,
.order-details-dialog .order-details-content .order-modal-row td[data-label="Durum"] .badge { white-space: nowrap; }
.order-details-dialog .order-details-content .order-modal-row td[data-label="Durum"] { grid-row: auto; }
.order-details-dialog .order-details-content .order-modal-row td[data-label="Tutar"] {
    display: flex;
    grid-row: auto;
    justify-content: space-between;
    text-align: right;
}
.order-details-dialog .order-details-content .order-modal-row td[data-label="Tutar"]::before { margin-right: auto; }
.order-details-dialog .order-details-content .order-modal-row td[data-label="İşlem"] {
    display: flex;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 10px;
}
.order-details-dialog .order-details-content .order-modal-row td[data-label="Ürünler"] {
    display: block;
    grid-column: 1 / -1;
}
.order-details-dialog .order-details-content .order-modal-row td::before { font-size: 12px; line-height: 1.3; }
.order-details-dialog .order-details-content .order-modal-row td[data-label="Ürünler"]::before {
    display: inline-block;
    width: 90px;
    vertical-align: top;
}
.order-details-dialog .order-summary-primary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 3px 8px;
}
.order-details-dialog .order-summary-primary > .order-type-badge,
.order-details-dialog .order-summary-primary > .order-summary-location,
.order-details-dialog .order-summary-primary > .order-creator-mobile { display: none; }
.order-details-dialog .order-summary-primary > strong:first-child { grid-column: 1; grid-row: 1; font-size: 14px; }
.order-details-dialog .order-summary-primary > time { grid-column: 2; grid-row: 1; justify-self: start; font-size: 11px; }
.order-details-dialog .order-summary-primary > .order-summary-amount { display: none; }
.order-details-dialog .order-details-content .order-modal-row td[data-label="Ürünler"] > div {
    display: inline;
    margin: 0;
}
.order-details-dialog .order-details-content .order-modal-row td[data-label="Ürünler"] > div + div::before {
    content: "  ·  ";
    color: var(--muted);
}
.order-details-dialog .order-details-content .order-modal-row td[data-label="İşlem"] > .btn,
.order-details-dialog .order-details-content .order-modal-row td[data-label="İşlem"] > .muted { justify-self: start; }

@media (max-width: 600px) {
    .cash-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 10px 0 12px; }
    .cash-summary .cash-summary-row { min-height: 72px; gap: 6px; padding: 9px 8px; border-radius: 10px; }
    .cash-summary-row span { font-size: 10px; line-height: 1.2; }
    .cash-summary-row strong { font-size: clamp(12px, 3.4vw, 16px); }
    .business-profile-launch { align-items: stretch; flex-direction: column; gap: 12px; }
    .business-profile-launch .btn { width: 100%; min-height: 44px; }
    .settings-page > h1 { margin-bottom: 6px; }
    .settings-columns { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .settings-action-stack { gap: 9px; padding: 13px; }
    .settings-action-stack .btn { min-height: 44px; white-space: normal; }
    .settings-page .settings-table-count { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px; }
    .settings-page .settings-table-count h2 { grid-column: 1; margin: 0; }
    .settings-page .settings-table-count .field { justify-content: space-between; }
    .settings-page .settings-table-count input { width: 100px; }
    .settings-page .settings-table-count .btn { width: 100%; min-height: 42px; }
    .day-end-records { padding: 14px; overflow-x: auto; }
    .day-end-records h2 { margin-bottom: 10px; }
    .day-end-records table { display: table; width: 100%; min-width: 0; table-layout: fixed; }
    .day-end-records thead { display: table-header-group; }
    .day-end-records tbody { display: table-row-group; width: auto; }
    .day-end-records tbody tr.day-end-record-row { display: table-row; width: auto; padding: 0; border: 0; background: transparent; }
    .day-end-records tbody tr.day-end-record-row td { display: table-cell; min-width: 0; padding: 9px 7px; border-bottom: 1px solid var(--line); font-size: 12px; overflow-wrap: anywhere; }
    .day-end-records tbody tr.day-end-record-row td::before { content: none; }
    .day-end-records th:last-child,
    .day-end-records td.day-end-record-amount { width: 120px; }
    .day-end-records tbody tr td.empty { display: table-cell; width: auto; padding: 12px 4px; text-align: center; }
    .staff-user-manager { padding: 15px; }
    .staff-user-create-form { padding: 12px; }
    .staff-user-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 10px 12px; }
    .staff-user-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 8px; }
    .staff-user-settings-column { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
    .staff-user-actions > .btn { width: 100%; grid-column: 1; grid-row: 1; }
    .staff-user-delete-form { width: 100%; grid-column: 2; grid-row: 1; justify-content: stretch; }
    .team-chat-launch { right: 0; bottom: 49px; width: 52px; height: 42px; border-radius: 14px 0 0 14px; }
    .team-chat-dialog[open] { inset: var(--team-chat-dialog-top, 0px) 12px auto; width: auto; height: var(--team-chat-dialog-height, 500px); min-height: 0; max-height: none; gap: 7px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; overscroll-behavior: contain; }
    .team-chat-form { padding-right: 58px; }
    .team-chat-form textarea { min-height: 40px; max-height: 82px; resize: none; }
    .team-chat-messages { min-height: 0; gap: 0; overscroll-behavior: contain; }
    .team-chat-form { padding-right: 58px; }
    .staff-no-access { margin: 5vh auto; }
    dialog[open]:not(.support-chat-dialog) {
        inset: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
        width: calc(100vw - 24px);
        max-width: none;
        max-height: calc(100dvh - 24px);
        margin: auto;
        padding: 18px;
        border-radius: 16px;
    }
    #business-profile-dialog.business-profile-dialog[open] {
        position: fixed !important;
        inset: max(env(safe-area-inset-top), 8px) auto auto 50% !important;
        width: min(560px, calc(100vw - 16px)) !important;
        max-width: calc(100vw - 16px) !important;
        height: auto !important;
        min-width: 0 !important;
        max-height: min(74dvh, 480px);
        margin: 0 !important;
        padding: 10px;
        transform: translateX(-50%) !important;
        border-radius: 14px;
    }
    #business-profile-dialog > .application-dialog-header {
        top: -10px;
        margin: -10px -10px 8px;
        padding: 9px 10px;
    }
    #business-profile-dialog .application-dialog-header h2 { margin: 2px 0 0; font-size: 17px; }
    #business-profile-dialog .subtitle { margin: 0 0 6px; font-size: 12px; line-height: 1.3; }
    #business-profile-dialog .business-profile-fields { gap: 4px; }
    #business-profile-dialog .business-profile-row { gap: 6px; }
    #business-profile-dialog .business-profile-fields .field { gap: 2px; }
    #business-profile-dialog .business-profile-row label { font-size: 11px; line-height: 1.25; }
    #business-profile-dialog .business-profile-row input { height: 34px; min-height: 34px; padding-top: 5px; padding-bottom: 5px; font-size: 12px; }
    #business-profile-dialog .business-profile-fields textarea { height: 42px; min-height: 42px; padding: 5px 7px; font-size: 12px; }
    #business-profile-dialog .business-profile-fields .field small { font-size: 10px; line-height: 1.2; }
    #business-profile-dialog .business-profile-actions { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 7px; margin-top: 7px; }
    #business-profile-dialog .business-profile-actions > .btn { width: 100%; min-width: 0; min-height: 34px; padding: 5px 7px; font-size: 12px; line-height: 1.2; }
    dialog.customer-detail-dialog.has-customer-detail[open]:not(.support-chat-dialog) {
        inset: max(env(safe-area-inset-top), 8px) 12px auto;
        width: auto;
        max-height: calc(100dvh - max(env(safe-area-inset-top), 8px) - 16px);
        margin: 0;
    }
    dialog.customer-activity-dialog[open]:not(.support-chat-dialog) {
        inset: max(env(safe-area-inset-top), 4px) 4px max(env(safe-area-inset-bottom), 4px) !important;
        width: calc(100vw - 8px) !important;
        height: calc(100dvh - max(env(safe-area-inset-top), 4px) - max(env(safe-area-inset-bottom), 4px)) !important;
        border-radius: 14px;
    }
    .customer-activity-header { gap: 8px; padding: 12px 12px 10px; }
    .customer-activity-header h2 { font-size: 17px; line-height: 1.25; }
    .customer-activity-customer-name { font-size: 12px; }
    .customer-activity-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 9px 10px; }
    .customer-activity-filters select, .customer-activity-filters input { min-height: 38px; padding: 6px 8px; font-size: 12px; }
    .customer-activity-filters > input[type="search"],
    .customer-activity-custom-range { grid-column: 1 / -1; }
    .customer-activity-status { padding: 7px 12px 0; font-size: 11px; }
    .customer-activity-table th, .customer-activity-table td { padding: 10px 8px; }
    .customer-activity-table th { font-size: 11px; }
    .customer-activity-table th[data-column="date"], .customer-activity-table td[data-column="date"] { width: 100px; }
    .customer-activity-table th[data-column="amount"], .customer-activity-table td[data-column="amount"] { width: 94px; }
    .customer-activity-table td[data-column="date"], .customer-activity-table td[data-column="amount"] { font-size: 11px; }
    .customer-activity-type { padding: 2px 6px; font-size: 10px; }
    .customer-activity-title { font-size: 12px; }
    .customer-activity-summary { font-size: 10px; }
    .customer-activity-detail-header { padding: 12px; }
    .customer-activity-detail-header h2 { font-size: 16px; }
    .customer-activity-detail-content { gap: 10px; padding: 14px 12px; }
    .customer-detail-dialog.has-customer-detail[open] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px 5px; }
    .customer-detail-dialog.has-customer-detail > #customer-delete-form > .btn,
    .customer-detail-dialog.has-customer-detail > .customer-activity-open,
    .customer-detail-dialog.has-customer-detail #customer-debt-form > .btn { height: 44px; min-height: 44px; padding: 4px; font-size: 10px; line-height: 1.15; overflow-wrap: anywhere; }
    dialog[open]:not(.support-chat-dialog) > .application-dialog-header,
    dialog[open]:not(.support-chat-dialog) > .order-details-header,
    dialog[open]:not(.support-chat-dialog) > .dashboard-order-dialog-header,
    dialog[open]:not(.support-chat-dialog) > .membership-details-header {
        top: -18px;
        margin: -18px -18px 16px;
        padding: 13px 18px;
    }
    dialog[open]:not(.support-chat-dialog) > .application-dialog-header h2,
    dialog[open]:not(.support-chat-dialog) > .order-details-header h2,
    dialog[open]:not(.support-chat-dialog) > .dashboard-order-dialog-header h2,
    dialog[open]:not(.support-chat-dialog) > .membership-details-header h2 {
        font-size: 18px;
    }
    dialog[open]:not(.support-chat-dialog) .application-dialog-close {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }
    dialog.package-orders-dialog[open] { width: auto; }
    dialog.print-preview-dialog[open] {
        inset: 0;
        width: calc(100vw - 20px);
        height: min(78dvh, 680px);
        max-height: 78dvh;
        margin: auto;
        padding: 12px;
    }
    dialog.print-preview-dialog[open] .print-preview-header { gap: 7px; }
    dialog.print-preview-dialog[open] .print-preview-header h2 { min-width: 0; font-size: 16px; }
    dialog.print-preview-dialog[open] .print-paper-controls select { width: 112px; min-height: 36px; padding: 5px 6px; font-size: 12px; }
    dialog.print-preview-dialog[open] .application-dialog-close { flex: 0 0 36px; width: 36px; height: 36px; }
    dialog.print-preview-dialog[open] .print-preview-actions { margin-top: 8px; padding-top: 8px; }
    dialog.print-preview-dialog[open] .print-preview-actions .btn { min-height: 40px; }
    .dashboard-order-items { min-width: 0; table-layout: fixed; }
    .dashboard-order-items th, .dashboard-order-items td { overflow-wrap: anywhere; }
    .dashboard-order-items th:nth-child(2), .dashboard-order-items td:nth-child(2) { width: 54px; }
    .dashboard-order-items th:nth-child(3), .dashboard-order-items td:nth-child(3),
    .dashboard-order-items th:nth-child(4), .dashboard-order-items td:nth-child(4) { width: 86px; }
    #team-chat-dialog.team-chat-dialog[open] {
        position: fixed !important;
        inset: var(--team-chat-dialog-top, 0px) 12px auto !important;
        display: flex !important;
        width: auto !important;
        max-width: calc(100vw - 24px) !important;
        height: var(--team-chat-dialog-height, 500px) !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        transform: none !important;
        padding: 12px 12px 0 !important;
        border: 1px solid var(--line) !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        overscroll-behavior: contain !important;
    }
    html.team-chat-open, html.team-chat-open body { width: 100%; height: 100%; overflow: hidden !important; overscroll-behavior: none; }
    html.team-chat-open #team-chat-launch {
        display: grid !important;
        bottom: calc(var(--team-chat-viewport-bottom, 0px) + 49px) !important;
        border: 2px solid #fff;
        box-shadow: 0 4px 22px #10251b66;
    }
    #team-chat-dialog .team-chat-header { position: relative; z-index: 1; background: #fff; }
    #team-chat-dialog .team-chat-header { min-height: 58px; padding-right: 0; }
    #team-chat-dialog .team-chat-header > div { min-width: 0; width: 100%; flex: 1 1 auto; }
    #team-chat-dialog .team-chat-header .eyebrow { display: block; min-height: 34px; padding-right: 46px; line-height: 28px; }
    #team-chat-dialog .team-chat-header .team-chat-online { width: 100%; max-height: 2.7em; margin-top: 0; overflow: hidden; overflow-wrap: anywhere; white-space: normal; }
    #team-chat-dialog .team-chat-header,
    #team-chat-dialog .team-chat-online,
    #team-chat-dialog .team-chat-error,
    #team-chat-dialog .team-chat-form { flex-shrink: 0; }
    #team-chat-dialog .team-chat-messages { min-height: 0; flex: 1 1 0; overscroll-behavior: contain; }
    #team-chat-dialog .team-chat-message { width: fit-content; max-width: 100%; gap: 2px 6px; padding: 4px 7px; }
    #team-chat-dialog .team-chat-form {
        width: calc(100% + 24px) !important;
        min-width: 0 !important;
        margin-right: -12px !important;
        margin-left: -12px !important;
        padding-right: 0 !important;
    }
    #team-chat-dialog .team-chat-mentions { width: 100%; }
    #team-chat-dialog .team-chat-form textarea {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 40px !important;
        max-height: 82px !important;
        flex: 1 1 auto !important;
        resize: none !important;
    }
    #team-chat-dialog .team-chat-form textarea::placeholder { font-size: 13px; }
    #team-chat-dialog #team-chat-close {
        position: absolute;
        top: 0;
        right: 0;
        z-index: 1;
    }
}

.referral-withdrawal-member-history { display: grid; width: 100%; min-width: 0; gap: 7px; }
.referral-withdrawal-member-history-row {
    display: grid;
    grid-template-columns: minmax(100px, 0.35fr) minmax(0, 1fr);
    align-items: center;
    width: 100%;
    min-width: 0;
    gap: 10px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    text-align: left;
    cursor: pointer;
}
.referral-withdrawal-member-history-row.is-approved { color: #d1fae5; border-color: #166534; background: #14532d; }
.referral-withdrawal-member-history-row.is-rejected { color: #fee2e2; border-color: #991b1b; background: #7f1d1d; }
.referral-withdrawal-member-history-row.is-pending { color: #fef3c7; border-color: #854d0e; background: #713f12; }
.referral-withdrawal-member-history-row:hover { filter: brightness(1.12); }
.referral-withdrawal-member-history-row:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.referral-withdrawal-member-history-amount { white-space: nowrap; }
.referral-withdrawal-member-history-row code { min-width: 0; color: inherit; font-size: 11px; overflow-wrap: anywhere; }
.referral-withdrawal-status { display: inline-block; max-width: 100%; padding: 3px 7px; border-radius: 999px; font-size: 10px; font-weight: 750; line-height: 1.35; overflow-wrap: anywhere; }
.referral-withdrawal-status.is-approved { color: #fff; background: #166534; }
.referral-withdrawal-status.is-rejected { color: #fff; background: #991b1b; }
.referral-withdrawal-status.is-pending { color: #fff; background: #854d0e; }
dialog.member-withdrawal-detail-dialog[open] {
    position: fixed !important;
    inset: auto auto auto 50% !important;
    top: max(12px, env(safe-area-inset-top)) !important;
    display: block;
    width: min(520px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    margin: 0 !important;
    padding: 16px;
    transform: translateX(-50%);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 18px 55px #10251b55;
    overflow-y: auto;
}
.member-withdrawal-detail-dialog::backdrop { background: #13231b88; }
.member-withdrawal-detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.member-withdrawal-detail-header h2 { margin: 2px 0 0; font-size: 18px; }
.member-withdrawal-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0; }
.member-withdrawal-detail-grid > div { min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface, #f8faf9); }
.member-withdrawal-detail-grid dt { margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 700; }
.member-withdrawal-detail-grid dd { min-width: 0; margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.member-withdrawal-detail-grid dd code { white-space: normal; overflow-wrap: anywhere; }
.member-withdrawal-detail-grid .member-withdrawal-detail-iban { grid-column: 1 / -1; }
.member-withdrawal-detail-grid .member-withdrawal-detail-reviewed[hidden] { display: none; }
@media (max-width: 480px) {
    .referral-withdrawal-member-history-row { grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 7px; padding: 8px; }
    .referral-withdrawal-member-history-row code { font-size: 10px; }
    dialog.member-withdrawal-detail-dialog[open] { padding: 13px; }
}
@media (prefers-reduced-motion: no-preference) {
    dialog[open]:not(.support-chat-dialog) { animation: dialog-enter .16s ease-out; }
}
@keyframes dialog-enter {
    from { opacity: 0; scale: .98; }
    to { opacity: 1; scale: 1; }
}
dialog.flash-notice-dialog[open] {
    position: fixed;
    inset: 0;
    display: grid;
    width: min(440px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    gap: 16px;
    margin: auto;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 18px 55px #10251b55;
}
dialog.flash-notice-dialog::backdrop { background: #13231b88; }
.flash-notice-dialog p { margin: 0; overflow-wrap: anywhere; }
.flash-notice-dialog p a { color: inherit; font-weight: 700; text-decoration: underline; }
.flash-notice-dialog .btn { justify-self: end; min-width: 96px; }

@media (min-width: 601px) {
    .membership-section > .table-wrap { padding: 8px 12px; }
    .membership-table {
        display: table;
        width: 100%;
        min-width: 1120px;
        table-layout: fixed;
        border-collapse: collapse;
    }
    .membership-table thead {
        position: static;
        display: table-header-group;
        width: auto;
        height: auto;
        padding: 0;
        margin: 0;
        overflow: visible;
        clip: auto;
        white-space: normal;
        border: 0;
    }
    .membership-table tbody { display: table-row-group; }
    .membership-table tr[data-membership-row] {
        display: table-row;
        width: auto;
        min-height: 0;
        padding: 0;
        cursor: pointer;
    }
    .membership-table tr[data-membership-row] > th,
    .membership-table tr[data-membership-row] > td {
        display: table-cell;
        width: auto;
        padding: 11px 9px;
        border-bottom: 1px solid var(--line);
        text-align: left;
        vertical-align: top;
        overflow-wrap: anywhere;
    }
    .membership-table tr[data-membership-row] td:nth-child(n) { display: table-cell; }
    .content.members-page .membership-section .membership-table thead th:nth-child(2),
    .content.members-page .membership-section .membership-table thead th:nth-child(3),
    .content.members-page .membership-section .membership-table thead th:nth-child(4),
    .content.members-page .membership-section .membership-table tr[data-membership-row] > td:nth-child(2),
    .content.members-page .membership-section .membership-table tr[data-membership-row] > td:nth-child(3),
    .content.members-page .membership-section .membership-table tr[data-membership-row] > td:nth-child(4) { display: none; }
    .membership-table thead th { padding: 10px 9px; white-space: normal; }
    .membership-table th:nth-child(1), .membership-table td:nth-child(1) { width: 16%; }
    .membership-table th:nth-child(2), .membership-table td:nth-child(2) { width: 12%; }
    .membership-table th:nth-child(3), .membership-table td:nth-child(3) { width: 17%; }
    .membership-table th:nth-child(4), .membership-table td:nth-child(4) { width: 12%; }
    .membership-table th:nth-child(5), .membership-table td:nth-child(5) { width: 18%; }
    .membership-table th:nth-child(6), .membership-table td:nth-child(6) { width: 25%; }
    .membership-table tr[data-membership-row] td::before { content: none; }
    .membership-business-heading { align-items: flex-start; }
    .membership-package-mobile { display: none; }
    .membership-joined-date { margin-top: 5px; }
    .membership-row-actions { min-width: 0; }
    .renew-membership-form select { min-width: 0; max-width: none; }
    .membership-row-secondary-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
}

@media (max-width: 600px) {
    .membership-table tr[data-membership-row] { grid-template-columns: minmax(0, 1fr); }
    .membership-table tr[data-membership-row] td:nth-child(2),
    .membership-table tr[data-membership-row] td:nth-child(3),
    .membership-table tr[data-membership-row] td:nth-child(4),
    .membership-table tr[data-membership-row] td:nth-child(5),
    .membership-table tr[data-membership-row] td:nth-child(6) { display: none; }
    .membership-table tr[data-membership-row] td[data-label="İşletme"] {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, auto);
        align-items: center;
        gap: 8px 12px;
        padding: 9px 5px;
    }
    .membership-table .membership-business-heading { min-width: 0; flex-wrap: nowrap; align-items: center; gap: 6px; }
    .membership-table .membership-business-heading > strong { flex: 1 1 auto; }
    .membership-table .membership-business-heading .badge { padding: 3px 7px; }
    .membership-package-mobile {
        display: flex;
        min-width: 0;
        align-items: baseline;
        justify-content: flex-end;
        gap: 6px;
        margin: 0;
        white-space: nowrap;
    }
    .membership-package-mobile > span { flex: 0 0 auto; color: var(--muted); font-size: 11px; font-weight: 650; }
    .membership-package-mobile > strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 13px; line-height: 1.35; }
    .membership-joined-date { display: none; }
}

.content.members-page .membership-section > .table-wrap { padding: 4px 8px; }
.content.members-page .membership-section table.membership-business-table { width: 100%; min-width: 0; table-layout: fixed; }
.content.members-page .membership-section table.membership-business-table th:nth-child(1),
.content.members-page .membership-section table.membership-business-table td:nth-child(1) { width: 30%; }
.content.members-page .membership-section table.membership-business-table th:nth-child(2),
.content.members-page .membership-section table.membership-business-table td:nth-child(2) { width: 45%; }
.content.members-page .membership-section table.membership-business-table th:nth-child(3),
.content.members-page .membership-section table.membership-business-table td:nth-child(3) { width: 25%; }
.content.members-page .membership-section table.membership-business-table th:nth-child(4),
.content.members-page .membership-section table.membership-business-table td:nth-child(4),
.content.members-page .membership-section table.membership-business-table th:nth-child(5),
.content.members-page .membership-section table.membership-business-table td:nth-child(5),
.content.members-page .membership-section table.membership-business-table th:nth-child(6),
.content.members-page .membership-section table.membership-business-table td:nth-child(6),
.content.members-page .membership-section table.membership-business-table th:nth-child(7),
.content.members-page .membership-section table.membership-business-table td:nth-child(7) { display: none !important; }
.content.members-page .membership-section table.membership-business-table tr[data-membership-row] > td:nth-child(1),
.content.members-page .membership-section table.membership-business-table tr[data-membership-row] > td:nth-child(2),
.content.members-page .membership-section table.membership-business-table tr[data-membership-row] > td:nth-child(3) {
    height: 34px;
    padding: 3px 8px;
    vertical-align: middle;
    line-height: 1.2;
}
.membership-business-table .membership-business-meta { min-width: 0; }
.membership-business-table .membership-business-heading { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.membership-business-table .membership-active-package { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; }
.membership-business-table .membership-active-package > strong,
.membership-business-table .membership-active-package > small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.membership-business-table .membership-active-package > small { color: var(--muted); text-align: right; }
.membership-business-table .membership-contact-phone a { color: #16875b; text-decoration: underline; text-underline-offset: 2px; }
.membership-business-table .membership-contact-phone a:hover,
.membership-business-table .membership-contact-phone a:focus-visible { color: #0f6240; }
.membership-business-table td[data-label="Durum"] { text-align: center; }

.package-list-open-button { display: none; }
.package-list-dialog { width: min(760px, calc(100vw - 32px)); max-height: min(88dvh, 760px); }
.package-list-dialog .application-dialog-header { align-items: center; margin-bottom: 12px; }
.package-list-dialog .application-dialog-header h2 { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.package-list-dialog-content { min-height: 0; }
.package-list-dialog-content .package-list-table { width: 100%; max-width: none; }

@media (max-width: 600px) {
    .content.members-page .membership-section table.membership-business-table tbody { display: grid; gap: 0; }
    .content.members-page .membership-section table.membership-business-table tr[data-membership-row] {
        display: grid;
        grid-template-columns: minmax(0, 30%) minmax(0, 1fr) minmax(48px, 25%);
        align-items: center;
        min-height: 34px;
        padding: 0;
    }
    .content.members-page .membership-section table.membership-business-table tr[data-membership-row] > td:nth-child(1),
    .content.members-page .membership-section table.membership-business-table tr[data-membership-row] > td:nth-child(2),
    .content.members-page .membership-section table.membership-business-table tr[data-membership-row] > td:nth-child(3) {
        display: block !important;
        width: auto;
        min-width: 0;
        padding: 5px 7px;
        border: 0;
        font-size: 12px;
    }
    .content.members-page .membership-section table.membership-business-table tr[data-membership-row] > td:nth-child(2) { text-align: center; }
    .content.members-page .membership-section table.membership-business-table tr[data-membership-row] > td:nth-child(3) { text-align: right; }
    .membership-business-table .membership-active-package { justify-content: center; gap: 6px; }
    .membership-business-table .membership-active-package > small { text-align: left; }
    .membership-business-table td[data-label="Durum"] .badge { padding: 3px 5px; font-size: 10px; }
}

@media (max-width: 760px) {
    .content.members-page .membership-section .section-heading { margin-bottom: 0; }
    .content.members-page .membership-section > .section-heading { margin-bottom: 0; padding-bottom: 22px; }
    .content.members-page .packages-page { padding-top: 0; }
    .content.members-page .packages-page > .package-create-button { margin-top: 0; }
    .content.members-page .membership-section .membership-businesses-open { margin-bottom: 16px !important; }
    .content.members-page .packages-page .membership-section > .section-heading { display: none; }
    .content.members-page .packages-page .membership-section > .membership-payment-launch { width: 100%; margin: 8px 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
    .content.members-page .packages-page .membership-section > .membership-payment-launch > .btn { width: 100%; min-height: 42px; }
    .package-list-open-button { display: flex; width: 100%; min-height: 42px; justify-content: center; margin: 8px 0; }
    .package-list-dialog[open] { position: fixed; inset: 8px; display: flex; width: auto; height: auto; max-width: none; max-height: none; flex-direction: column; gap: 8px; margin: auto; padding: 12px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
    .package-list-dialog[open] .application-dialog-header { flex: 0 0 auto; margin-bottom: 0; }
    .package-list-dialog-content { min-height: 0; flex: 1 1 auto; overflow: auto; }
    .package-list-dialog-content .package-list-table { min-height: 100%; padding: 6px; overflow: auto; }
    .membership-businesses-open { display: flex; width: 100%; min-height: 40px; }
    .membership-businesses-dialog:not([open]) { display: none; }
    .membership-businesses-dialog[open] { position: fixed; inset: 50% auto auto 50%; display: flex; width: calc(100vw - 24px); height: fit-content; max-width: none; max-height: min(78dvh, 560px); flex-direction: column; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transform: translate(-50%, -50%); }
    .membership-businesses-dialog[open] > .application-dialog-header { flex: 0 0 auto; align-items: center; margin-bottom: 12px; }
    .membership-businesses-dialog[open] > .application-dialog-header h2 { margin-top: 3px; font-size: 18px; }
    .membership-businesses-dialog[open] > .table-wrap { min-height: 0; max-height: min(56dvh, 400px); flex: 0 1 auto; padding: 8px; overflow: auto; }
    .orders-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 12px; padding: 11px; }
    .orders-filter .field { gap: 4px; font-size: 12px; }
    .orders-filter .field > span { font-size: 11px; }
    .orders-filter select, .orders-filter input { min-height: 38px; padding: 8px; font-size: 12px; }
    .orders-filter-actions { grid-column: 1 / -1; }
    .orders-filter-actions .btn { flex: 1 1 0; justify-content: center; }
    dialog.market-sales-dialog[open] {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        padding: 12px !important;
        transform: none !important;
        align-self: start;
    }
    .market-sales-header { align-items: flex-start; gap: 8px; }
    .market-sales-header h2 { font-size: 18px; }
    .market-sales-header-actions { flex: 0 0 auto; gap: 5px; margin-left: auto; }
    .market-sales-header-actions .btn, .market-sale-heading .btn { min-height: 36px; padding: 6px 8px; font-size: 11px; }
    .market-sales-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px 0; }
    .market-sales-filters .field { min-width: 0; }
    .market-sales-filters .field label { font-size: 11px; }
    .market-sales-filters input, .market-sales-filters select { min-width: 0; min-height: 38px; padding: 6px; font-size: 12px; }
    .market-sales-quick-filters { grid-column: 1 / -1; }
    .market-sales-quick-filters .btn, .market-sales-apply { min-height: 38px; padding: 6px 10px; font-size: 12px; }
    .market-sales-apply { align-self: end; }
    .market-sales-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding-bottom: 5px; }
    .market-sales-summary .card { padding: 8px 10px; }
    .market-sales-summary .card strong { font-size: 15px; }
    .market-sales-status { min-height: 18px; font-size: 11px; }
    .market-sales-table-wrap { width: 100%; max-width: 100%; overflow-x: hidden; overflow-y: auto; border: 0; background: transparent; }
    .market-sales-table { display: block; width: 100%; max-width: 100%; table-layout: fixed; }
    .market-sales-table thead { display: none; }
    .market-sales-table tbody { display: grid; gap: 8px; }
    .market-sales-table tbody tr[data-sale-id] { display: grid; width: 100%; min-width: 0; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto; align-items: center; padding: 5px 8px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
    .market-sales-table tbody tr[data-sale-id] td { display: block; min-width: 0; padding: 7px 4px; border: 0; font-size: 11px; line-height: 1.3; white-space: nowrap; }
    .market-sales-table tbody tr[data-sale-id] td::before { content: none; }
    .market-sales-table tbody tr[data-sale-id] td.market-sales-amount { justify-self: end; text-align: right; font-weight: 750; }
    .market-sales-table tbody tr:not([data-sale-id]) td { display: block; }
    .market-sale-detail-table th, .market-sale-detail-table td { padding: 6px 4px; font-size: 11px; }
    .market-sales-pagination { font-size: 12px; }
    .market-sales-pagination .btn { min-height: 36px; padding: 6px 9px; font-size: 11px; }
    dialog.package-orders-dialog[open] {
        position: fixed;
        inset: 0 !important;
        display: flex;
        width: 100vw !important;
        min-width: 100vw !important;
        height: 100vh;
        height: 100dvh;
        max-width: 100vw !important;
        max-height: none;
        scrollbar-gutter: auto;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: max(env(safe-area-inset-top), 10px) 10px max(env(safe-area-inset-bottom), 10px);
        border: 0;
        border-radius: 0;
        overflow: hidden;
    }
    dialog.package-orders-dialog[open] > .application-dialog-header {
        position: static;
        top: auto;
        margin: 0 0 10px;
        padding: 0 0 8px;
    }
    .package-orders-dialog .application-dialog-header { position: static; flex: 0 0 auto; gap: 8px; margin: 0 0 10px; padding: 0 0 8px; border-bottom: 1px solid var(--line); }
    .package-orders-dialog .application-dialog-header h2 { min-width: 0; font-size: 18px; }
    .package-orders-dialog > .subtitle { display: none; }
    #package-order-status-message:not([hidden]) { margin: 0 0 8px; padding: 8px 10px; font-size: 12px; }
    .package-orders-table-wrap { width: 100%; max-width: 100%; min-height: 0; flex: 1 1 auto; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: auto; scrollbar-width: none; }
    .package-orders-table-wrap::-webkit-scrollbar { display: none; }
    .package-orders-table { display: block; width: 100%; min-width: 0; max-width: 100%; margin: 0; table-layout: fixed; border-spacing: 0; }
    .package-orders-table thead { display: none; }
    .package-orders-table tbody { display: grid; width: 100%; min-width: 0; gap: 6px; }
    .package-orders-table tbody tr[data-package-order-row] {
        display: grid;
        width: 100% !important;
        min-width: 100%;
        max-width: 100%;
        justify-self: stretch;
        grid-template-columns: minmax(62px, 1fr) minmax(90px, 1.4fr) minmax(64px, 1fr) 22px;
        grid-template-areas: "order date total status";
        align-items: center;
        column-gap: 10px;
        min-height: 44px;
        padding: 6px 10px;
        border: 1px solid #dfe7e1;
        border-radius: 9px;
        background: #fff;
    }
    .package-orders-table tbody tr.package-order-row-iptal { border-color: #dc8f88; background: #f3c3bf; }
    .package-orders-table tbody tr.package-order-row-onaylandi { border-color: #43885a; background: #83bd91; }
    .package-orders-table tbody tr.package-order-row-bekliyor { border-color: #80aede; background: #c5dcf4; }
    .package-orders-table th, .package-orders-table td,
    .package-orders-table tbody tr[data-package-order-row] td {
        display: block;
        min-width: 0;
        width: auto;
        padding: 3px;
        border: 0;
        border-radius: 0;
        background: transparent;
        font-size: 11px;
        line-height: 1.25;
        overflow: visible;
        overflow-wrap: anywhere;
    }
    .package-orders-table tbody tr[data-package-order-row] td:first-child { grid-area: order; display: flex; min-width: 0; align-items: center; justify-content: flex-start; gap: 4px; white-space: nowrap; }
    .package-orders-table tbody tr[data-package-order-row] td:nth-child(2) { grid-area: date; display: block; min-width: 0; text-align: center; white-space: nowrap; }
    .package-orders-table tbody tr[data-package-order-row] td:nth-child(3) { grid-area: total; text-align: right; white-space: nowrap; font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; }
    .package-orders-table tbody tr[data-package-order-row] td:nth-child(4) { grid-area: status; display: flex; align-items: center; justify-content: center; white-space: nowrap; }
    .package-orders-table td:nth-child(1) strong { display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .package-orders-table td:nth-child(1) strong { flex: 0 0 auto; }
    .package-orders-table td:nth-child(1) .package-order-customer { display: none; }
    .package-order-date { display: inline; white-space: nowrap; font-variant-numeric: tabular-nums; }
    .package-order-time { display: inline; margin-left: 4px; color: #17231e; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
    .package-orders-table tbody tr.package-order-row-iptal:hover > td,
    .package-orders-table tbody tr.package-order-row-onaylandi:hover > td,
    .package-orders-table tbody tr.package-order-row-bekliyor:hover > td { background: transparent; }
    .package-orders-table tbody tr:not([data-package-order-row]) td { display: block; width: 100%; }
    .package-order-details-dialog[open] { width: calc(100vw - 20px); max-width: calc(100vw - 20px); max-height: min(82dvh, 680px); padding: 12px 10px; overflow-x: hidden; }
    .package-order-details-dialog .application-dialog-header { margin-bottom: 6px; }
    .package-order-details-heading span,
    .package-order-customer-contact,
    .package-order-details-meta { font-size: 11px; }
    .package-order-customer-contact { gap: 1px; margin-bottom: 6px; }
    .package-order-details-meta { gap: 4px 8px; margin-bottom: 7px; }
    .package-order-details-dialog .package-order-details-table th,
    .package-order-details-dialog .package-order-details-table td { padding: 7px 3px; font-size: 11px; }
    dialog.market-sale-dialog[open] { position: fixed; inset: 0; display: flex; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 12px; border: 0; border-radius: 0; overflow-x: hidden; overflow-y: auto; }
    .market-sale-dialog #market-sale-form { flex: 0 0 auto; min-height: auto; overflow: visible; }
    .market-sale-workspace { display: flex; flex-direction: column; gap: 8px; }
    .market-sale-catalog { min-height: 42dvh; grid-template-rows: auto minmax(150px, 34dvh); }
    .market-sale-products { gap: 7px; }
    .market-sale-product-picker .market-sale-products { min-height: 0; }
    .market-sale-product-picker .market-sale-product,
    .market-sale-product { min-height: 0; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 12px; }
    .market-sale-product strong { min-width: 0; max-width: 100%; flex: 0 1 auto; overflow: visible; overflow-wrap: anywhere; text-align: center; text-overflow: clip; white-space: normal; font-size: clamp(11px, 3.2vw, 16px); line-height: 1.15; }
    .market-sale-product > span { flex: 0 0 auto; margin-top: 8px; white-space: nowrap; font-size: 18px; }
    .market-sale-product small { display: none; }
    .market-sale-checkout { min-height: 300px; }
    .market-sale-payment-dialog { width: calc(100vw - 28px); padding: 16px; }
    .market-sale-payment-actions > button { flex: 1 1 0; }
}
@media (max-width: 900px) {
    .market-sale-product-picker .market-sale-products { min-height: 0; }
    .market-sale-product-picker .market-sale-product,
    .market-sale-product { min-height: 0; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 12px; }
    .market-sale-product strong { min-width: 0; max-width: 100%; flex: 0 1 auto; overflow: visible; overflow-wrap: anywhere; text-align: center; text-overflow: clip; white-space: normal; font-size: clamp(11px, 3.2vw, 16px); line-height: 1.15; }
    .market-sale-product > span { flex: 0 0 auto; margin-top: 8px; white-space: nowrap; font-size: 18px; }
    .market-sale-product small { display: none; }
}
dialog.market-sale-detail-dialog[open] {
    width: min(680px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    max-height: min(85dvh, 760px);
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto;
}
dialog.market-sale-detail-dialog[open] .application-dialog-header { position: static; margin: 0 0 16px; padding: 0 0 12px; }
dialog.market-sale-detail-dialog[open] .application-dialog-header h2 { margin: 0; }
@media (max-width: 600px) {
    dialog.market-sale-detail-dialog[open] {
        position: fixed;
        inset: 8px 10px auto;
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        max-height: calc(100dvh - 16px);
        margin: 0;
        padding: 14px 12px;
        transform: none;
    }
    dialog.market-sale-detail-dialog[open] .application-dialog-header { margin-bottom: 12px; }
    .market-sale-detail-content h3 { font-size: 15px; }
    .market-sale-detail-summary { font-size: 12px; }
}
.application-dialog.day-end-details-dialog[open] { display: flex; flex-direction: column; }
.application-dialog.day-end-details-dialog[open] > .application-dialog-header {
    position: relative;
    top: auto;
    flex: 0 0 auto;
    margin: 0;
    padding: 14px clamp(16px, 4vw, 36px);
}
.application-dialog.day-end-details-dialog[open] .day-end-payment-list {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
}
.day-end-payment-detail-content .day-end-payment-card-details { min-width: 0; }
@media (max-width: 600px) {
    dialog.application-dialog.day-end-details-dialog[open] {
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        height: min(82dvh, 680px);
        max-height: calc(100dvh - 24px);
        border-radius: 13px;
    }
    .day-end-summary { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 10px 12px; }
    .day-end-summary-total { grid-template-columns: 1fr auto; align-items: center; }
    .day-end-summary-total strong { font-size: 19px; }
    .day-end-summary-breakdown { justify-content: flex-start; gap: 5px 12px; }
    .day-end-summary-breakdown span,
    .day-end-summary-debt,
    .day-end-summary-warning { font-size: 10px; }
    .day-end-summary-breakdown strong { font-size: 12px; }
    .application-dialog.day-end-details-dialog[open] .day-end-payment-list { padding: 8px 10px 18px; }
    .day-end-payment-table th,
    .day-end-payment-table td { padding: 8px 3px; }
    .day-end-payment-table th { font-size: 11px; }
    .day-end-payment-date-column { width: 38%; }
    .day-end-payment-type-column { width: 34%; }
    .day-end-payment-amount-column { width: 28%; }
    .day-end-payment-table th,
    .day-end-payment-row time { font-size: 10px; }
    .day-end-payment-type { font-size: 11px; line-height: 1.3; }
    .day-end-payment-table td.day-end-payment-amount { font-size: 11px; }
    .day-end-payment-detail-dialog { width: calc(100vw - 24px); padding: 16px; }
    .day-end-payment-detail-content .day-end-payment-card-details { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .day-end-stock-table th,
    .day-end-stock-table td { padding: 7px 4px; font-size: 11px; line-height: 1.35; }
    .day-end-stock-table th,
    .day-end-stock-table td { font-size: 10px; }
    .day-end-stock-table th:first-child,
    .day-end-stock-table td:first-child { width: 34%; }
    .day-end-stock-table th:nth-child(2),
    .day-end-stock-table td:nth-child(2) { width: 18%; }
    .day-end-stock-table th:nth-child(3),
    .day-end-stock-table td:nth-child(3) { width: 24%; }
    .day-end-stock-table th:last-child,
    .day-end-stock-table td:last-child { width: 24%; }
    .day-end-stock-total { gap: 12px; padding: 9px 8px; }
    .day-end-stock-total strong { font-size: 16px; }
}
@media (max-width: 600px) {
    .membership-details-table tr.membership-modal-row td[data-label="İşlem"] .membership-row-actions {
        display: flex;
        flex-flow: row wrap;
        align-items: flex-start;
        gap: 6px;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 3px;
    }
    .membership-details-table tr.membership-modal-row td[data-label="İşlem"] .membership-row-secondary-actions {
        display: contents;
    }
    .membership-details-table tr.membership-modal-row td[data-label="İşlem"] .email-message-trigger,
    .membership-details-table tr.membership-modal-row td[data-label="İşlem"] .membership-row-secondary-actions > form {
        grid-column: 1;
        grid-row: auto;
    }
    .membership-details-table tr.membership-modal-row td[data-label="İşlem"] .renew-membership-controls,
    .membership-details-table tr.membership-modal-row td[data-label="İşlem"] .membership-referral-wallet,
    .membership-details-table tr.membership-modal-row td[data-label="İşlem"] .email-message-trigger,
    .membership-details-table tr.membership-modal-row td[data-label="İşlem"] .membership-row-secondary-actions > form {
        flex: 0 0 auto;
        width: auto;
        height: 36px;
        min-height: 36px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }
    .membership-details-table tr.membership-modal-row td[data-label="İşlem"] .renew-membership-controls {
        display: flex;
        align-items: center;
        flex: 0 0 100%;
    }
    .membership-details-table tr.membership-modal-row td[data-label="İşlem"] .membership-referral-wallet {
        display: grid;
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        grid-column: 1 / -1;
        height: auto;
        min-height: 0;
        padding: 10px;
        border: 1px solid #cfe1d4;
        border-radius: 9px;
        background: #f4faf6;
    }
    .membership-details-table tr.membership-modal-row td[data-label="İşlem"] .membership-referral-wallet-form {
        display: grid;
        width: 100%;
        min-width: 0;
        grid-template-columns: minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.4fr) minmax(52px, .6fr);
        gap: 8px;
    }
    .membership-details-table tr.membership-modal-row td[data-label="İşlem"] .renew-membership-form {
        height: 100%;
        gap: 4px;
        flex-wrap: nowrap;
    }
    .membership-details-table tr.membership-modal-row td[data-label="İşlem"] .renew-membership-form select {
        flex: 0 0 120px;
        width: 120px;
        max-width: 120px;
        height: 36px;
    }
    .membership-details-table tr.membership-modal-row td[data-label="İşlem"] .email-message-trigger {
        white-space: nowrap;
    }
    .membership-details-table tr.membership-modal-row td[data-label="İşlem"] .membership-row-secondary-actions > form,
    .membership-details-table tr.membership-modal-row td[data-label="İşlem"] .membership-row-secondary-actions .btn {
        width: auto;
    }
    .membership-details-table tr.membership-modal-row td[data-label="İşlem"] .membership-row-secondary-actions > form {
        display: flex;
        align-items: center;
    }
    .membership-details-table tr.membership-modal-row td[data-label="İşlem"] .membership-row-actions .btn {
        flex: 0 0 auto;
        width: auto;
        height: 36px;
        min-height: 36px;
        padding: 6px 9px;
        color: #fff;
        background: var(--red);
        font-size: 11px;
        white-space: nowrap;
    }
    .membership-details-table tr.membership-modal-row td[data-label="İşlem"] .membership-row-secondary-actions .btn {
        width: auto;
    }
    .membership-details-table tr.membership-modal-row td[data-label="İşlem"] .membership-row-secondary-actions .membership-delete-button {
        min-width: 40px;
        font-size: 20px;
    }
}
@media (max-width: 760px) {
    .content.members-page .membership-section .section-heading {
        margin-bottom: 0;
        padding-bottom: 0;
    }
    .content.members-page .membership-section .membership-businesses-open {
        height: 46px;
        min-height: 46px;
        margin: 0 0 12px !important;
    }
    .content.members-page .packages-page > .package-create-button,
    .content.members-page .packages-page .membership-section > .package-list-open-button,
    .content.members-page .packages-page .membership-section > .membership-payment-launch > .btn {
        height: 46px;
        min-height: 46px;
    }
    .content.members-page .packages-page > .package-create-button,
    .content.members-page .packages-page .membership-section > .package-list-open-button {
        margin: 0;
    }
    .content.members-page .packages-page > .package-create-button {
        width: 100%;
    }
    .content.members-page .packages-page > .membership-section {
        margin-top: 12px;
    }
    .content.members-page .packages-page .membership-section > .membership-payment-launch {
        margin: 12px 0;
    }
}
.new-order-dialog.table-order-context[open] .order-action-row .order-submit-group { display: contents; }
.new-order-dialog.table-order-context[open] .order-action-row #order-submit-button { grid-column: 1; grid-row: 1; justify-self: stretch; }
.new-order-dialog.table-order-context[open] .order-action-row #order-cancel-button { grid-column: 1; grid-row: 2; justify-self: stretch; }
.new-order-dialog.table-order-context[open] .order-action-row #clear-table-button { grid-column: 2; grid-row: 1; justify-self: stretch; }
.new-order-dialog.table-order-context[open] .order-action-row #open-payment-dialog { grid-column: 3; grid-row: 1; justify-self: stretch; }
@media (max-width: 900px) {
    .new-order-dialog.table-order-context[open] .order-action-row #open-payment-dialog { grid-column: 2; grid-row: 1; }
    .new-order-dialog.table-order-context[open] .order-action-row #clear-table-button { grid-column: 2; grid-row: 2; }
}
#business-order-detail-dialog[open] {
    position: fixed;
    inset: 50% auto auto 50%;
    width: min(560px, calc(100vw - 28px));
    height: auto;
    max-width: 560px;
    max-height: min(72dvh, 560px);
    margin: 0;
    padding: 0;
    transform: translate(-50%, -50%);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: auto;
    animation: business-order-dialog-in .2s ease-out;
}
#business-order-detail-dialog[open].is-cancelled {
    width: min(620px, calc(100vw - 24px));
    max-width: 620px;
    max-height: min(72dvh, 560px);
}
#business-order-detail-dialog .business-order-dialog-header,
#business-order-detail-dialog.is-cancelled .business-order-dialog-header {
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px 10px;
}
#business-order-detail-dialog .business-order-dialog-header > div { min-width: 0; flex: 1 1 auto; }
#business-order-detail-dialog .business-order-dialog-header h2 { margin: 3px 0 4px; font-size: clamp(16px, 4vw, 21px); line-height: 1.2; }
#business-order-detail-dialog .business-order-dialog-header p { font-size: 12px; line-height: 1.35; }
#business-order-detail-dialog .business-order-dialog-close { flex: 0 0 32px; width: 32px; height: 32px; font-size: 21px; }
#business-order-detail-dialog .business-order-detail-grid,
#business-order-detail-dialog.is-cancelled .business-order-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 8px 12px;
}
#business-order-detail-dialog .business-order-detail-field,
#business-order-detail-dialog.is-cancelled .business-order-detail-field { gap: 2px; padding: 5px 7px; }
#business-order-detail-dialog .business-order-detail-field strong,
#business-order-detail-dialog.is-cancelled .business-order-detail-field strong { font-size: 12px; line-height: 1.25; }
#business-order-detail-dialog .business-order-items,
#business-order-detail-dialog.is-cancelled .business-order-items { padding: 0 12px 6px; }
#business-order-detail-dialog .business-order-items h3,
#business-order-detail-dialog.is-cancelled .business-order-items h3 { margin: 2px 0 5px; font-size: 14px; }
#business-order-detail-dialog .business-order-item-list,
#business-order-detail-dialog.is-cancelled .business-order-item-list { max-height: 132px; overflow-y: auto; }
#business-order-detail-dialog .business-order-item-list li,
#business-order-detail-dialog.is-cancelled .business-order-item-list li { gap: 8px; padding: 5px 2px; font-size: 12px; }
#business-order-detail-dialog .business-order-dialog-total,
#business-order-detail-dialog.is-cancelled .business-order-dialog-total { margin: 0 12px; padding: 7px 0; font-size: 15px; }
#business-order-detail-dialog .business-order-dialog-actions,
#business-order-detail-dialog.is-cancelled .business-order-dialog-actions { gap: 7px; padding: 0 12px 10px; }
#business-order-detail-dialog .business-order-dialog-actions .btn { min-height: 34px; padding: 6px 10px; font-size: 12px; }
@media (max-width: 600px) {
    #business-order-detail-dialog[open] { width: calc(100vw - 24px); max-width: calc(100vw - 24px); max-height: min(72dvh, 480px); }
    #business-order-detail-dialog[open].is-cancelled { width: calc(100vw - 24px); max-width: calc(100vw - 24px); max-height: min(72dvh, 480px); }
    #business-order-detail-dialog .business-order-dialog-header,
    #business-order-detail-dialog.is-cancelled .business-order-dialog-header { padding: 10px 10px 8px; }
    #business-order-detail-dialog .business-order-dialog-close { flex-basis: 30px; width: 30px; height: 30px; }
    #business-order-detail-dialog .business-order-detail-grid,
    #business-order-detail-dialog.is-cancelled .business-order-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 7px 10px; }
    #business-order-detail-dialog .business-order-items,
    #business-order-detail-dialog.is-cancelled .business-order-items { padding-right: 10px; padding-left: 10px; }
    #business-order-detail-dialog .business-order-dialog-total,
    #business-order-detail-dialog.is-cancelled .business-order-dialog-total { margin-right: 10px; margin-left: 10px; }
    #business-order-detail-dialog .business-order-dialog-actions,
    #business-order-detail-dialog.is-cancelled .business-order-dialog-actions { padding-right: 10px; padding-left: 10px; }
}
dialog.report-sales-dialog[open]:not(.support-chat-dialog) {
    position: fixed !important;
    inset: 0 !important;
    display: flex !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    flex-direction: column !important;
    align-items: stretch !important;
    margin: 0 !important;
    padding: 18px clamp(14px, 3vw, 42px) !important;
    transform: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    background: var(--paper) !important;
    overflow: hidden !important;
}
html body #staff-sales-detail-dialog[open]:not(.support-chat-dialog) {
    position: fixed !important;
    inset: 50% auto auto 50% !important;
    display: block !important;
    width: min(680px, calc(100vw - 32px)) !important;
    max-width: 680px !important;
    max-height: min(82dvh, 680px) !important;
    margin: 0 !important;
    padding: 18px !important;
    transform: translate(-50%, -50%) !important;
    border: 1px solid var(--line) !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
    background: #fff !important;
    overflow: hidden !important;
}
@media (max-width: 560px) {
    dialog.report-sales-dialog[open]:not(.support-chat-dialog) {
        padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)) !important;
    }
    html body dialog.report-sale-detail-dialog[open]:not(.support-chat-dialog) {
        inset: max(8px, env(safe-area-inset-top)) 8px auto !important;
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        max-height: calc(100dvh - max(16px, env(safe-area-inset-top) + 8px)) !important;
        margin: 0 auto !important;
        padding: 10px !important;
        transform: none !important;
    }
    html body #staff-sales-detail-dialog[open]:not(.support-chat-dialog) {
        inset: max(10px, env(safe-area-inset-top)) 10px auto !important;
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        max-height: calc(100dvh - max(20px, env(safe-area-inset-top) + 10px)) !important;
        margin: 0 auto !important;
        padding: 12px !important;
        transform: none !important;
    }
}
html body #stock-history-dialog[open] {
    position: fixed !important;
    inset: 12px auto auto 50% !important;
    width: min(480px, calc(100vw - 28px)) !important;
    max-width: min(480px, calc(100vw - 28px)) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: min(70dvh, 520px) !important;
    margin: 0 !important;
    padding: 12px !important;
    transform: translateX(-50%) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-gutter: auto !important;
}
html body #stock-history-dialog[open] > .application-dialog-header {
    position: static !important;
    align-items: center !important;
    margin: 0 0 7px !important;
    padding: 0 0 7px !important;
}
html body #stock-history-dialog[open] > .application-dialog-header h2 { font-size: 17px !important; }
#stock-history-dialog .stock-history-details > div {
    grid-template-columns: minmax(84px, 30%) minmax(0, 1fr);
    gap: 8px;
    padding: 4px 0;
}
#stock-history-dialog .stock-history-details dt,
#stock-history-dialog .stock-history-details dd { font-size: 12px; line-height: 1.3; }
@media (max-width: 560px) {
    html body #stock-history-dialog[open] {
        inset: max(8px, env(safe-area-inset-top)) auto auto 50% !important;
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        max-height: calc(100dvh - max(16px, env(safe-area-inset-top) + 8px)) !important;
        padding: 10px !important;
        transform: translateX(-50%) !important;
    }
}
html body #stock-movement-dialog[open] {
    position: fixed !important;
    inset: 12px auto auto 50% !important;
    width: min(520px, calc(100vw - 28px)) !important;
    max-width: min(520px, calc(100vw - 28px)) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: min(78dvh, 560px) !important;
    margin: 0 !important;
    padding: 12px !important;
    transform: translateX(-50%) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-gutter: auto !important;
}
html body #stock-create-dialog[open] {
    position: fixed !important;
    inset: 12px auto auto 50% !important;
    width: min(800px, calc(100vw - 28px)) !important;
    max-width: min(800px, calc(100vw - 28px)) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: min(82dvh, 620px) !important;
    margin: 0 !important;
    padding: 14px !important;
    transform: translateX(-50%) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-gutter: auto !important;
}
html body #stock-edit-dialog[open] {
    position: fixed !important;
    inset: 12px auto auto 50% !important;
    width: min(800px, calc(100vw - 28px)) !important;
    max-width: min(800px, calc(100vw - 28px)) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: min(82dvh, 620px) !important;
    margin: 0 !important;
    padding: 14px !important;
    transform: translateX(-50%) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-gutter: auto !important;
}
html body #stock-edit-dialog[open] > .application-dialog-header {
    position: static !important;
    align-items: center !important;
    margin: 0 0 8px !important;
    padding: 0 0 8px !important;
}
html body #stock-edit-dialog[open] > .application-dialog-header h2 { font-size: 18px !important; }
@media (max-width: 560px) {
    html body #stock-edit-dialog[open] {
        inset: max(8px, env(safe-area-inset-top)) auto auto 50% !important;
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        max-height: calc(100dvh - max(16px, env(safe-area-inset-top) + 8px)) !important;
        padding: 10px !important;
    }
}
html body #stock-create-dialog[open] > .application-dialog-header {
    position: static !important;
    align-items: center !important;
    margin: 0 0 8px !important;
    padding: 0 0 8px !important;
}
html body #stock-create-dialog[open] > .application-dialog-header h2 { font-size: 18px !important; }
@media (max-width: 560px) {
    html body #stock-create-dialog[open] {
        inset: max(8px, env(safe-area-inset-top)) auto auto 50% !important;
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        max-height: calc(100dvh - max(16px, env(safe-area-inset-top) + 8px)) !important;
        padding: 10px !important;
    }
}
html body #stock-movement-dialog[open] > .application-dialog-header {
    position: static !important;
    align-items: center !important;
    margin: 0 0 7px !important;
    padding: 0 0 7px !important;
}
html body #stock-movement-dialog[open] > .application-dialog-header h2 { font-size: 17px !important; }
#stock-movement-dialog #stock-movement-form .form-grid { gap: 7px; margin: 8px 0; }
#stock-movement-dialog #stock-movement-form .field { gap: 3px; }
#stock-movement-dialog #stock-movement-form .field > label { font-size: 12px; line-height: 1.25; }
#stock-movement-dialog #stock-movement-form .field > input,
#stock-movement-dialog #stock-movement-form .field > select,
#stock-movement-dialog #stock-movement-form .stock-movement-search-controls > input { height: 36px; min-height: 36px; padding: 5px 8px; }
#stock-movement-dialog #stock-movement-form .stock-movement-search-controls > input { padding-right: 40px; }
#stock-movement-dialog #stock-movement-form .barcode-scan-button { width: 28px; height: 28px; right: 4px; }
#stock-movement-dialog #stock-movement-form > .btn { min-height: 36px; margin-top: 4px; padding: 6px 10px; }
@media (max-width: 560px) {
    html body #stock-movement-dialog[open] {
        inset: max(8px, env(safe-area-inset-top)) auto auto 50% !important;
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        max-height: calc(100dvh - max(16px, env(safe-area-inset-top) + 8px)) !important;
        padding: 10px !important;
        transform: translateX(-50%) !important;
    }
}
@media (max-width: 760px) {
    html body dialog[open]:not(.support-chat-dialog):not(.market-sale-dialog):not(.market-sales-dialog):not(.new-order-dialog):not(.report-sales-dialog):not(.package-orders-dialog) {
        position: fixed !important;
        top: max(8px, env(safe-area-inset-top)) !important;
        right: auto !important;
        bottom: auto !important;
        left: 50% !important;
        margin: 0 !important;
        transform: translateX(-50%) !important;
        max-height: calc(100dvh - max(16px, env(safe-area-inset-top) + 8px)) !important;
    }
    html body #membership-purchase-dialog[open] {
        inset: max(8px, env(safe-area-inset-top)) auto auto 50% !important;
        max-height: calc(100dvh - max(16px, env(safe-area-inset-top) + 8px)) !important;
        transform: translateX(-50%) !important;
    }
    html body #staff-sales-detail-dialog[open]:not(.support-chat-dialog) {
        inset: max(8px, env(safe-area-inset-top)) auto auto 50% !important;
        max-height: calc(100dvh - max(16px, env(safe-area-inset-top) + 8px)) !important;
        transform: translateX(-50%) !important;
    }
}
@media (max-width: 600px) {
    .membership-details-table tr.membership-modal-row td[data-label="İşlem"] .membership-referral-wallet {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }
    .membership-details-table tr.membership-modal-row td[data-label="İşlem"] .membership-referral-wallet-balance {
        display: flex;
        justify-content: space-between;
    }
    .membership-details-table tr.membership-modal-row td[data-label="İşlem"] .membership-referral-wallet-form {
        display: grid;
        width: 100%;
        min-width: 0;
        grid-template-columns: minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.4fr) minmax(52px, .6fr);
        gap: 6px;
    }
    .membership-details-table tr.membership-modal-row td[data-label="İşlem"] .membership-referral-wallet-form select,
    .membership-details-table tr.membership-modal-row td[data-label="İşlem"] .membership-referral-wallet-form input {
        width: 100%;
        min-width: 0;
        min-height: 36px;
        height: 36px;
        padding: 5px 6px;
        font-size: 11px;
    }
    .membership-details-table tr.membership-modal-row td[data-label="İşlem"] .membership-referral-wallet-form .btn {
        width: 100%;
        min-width: 0;
        min-height: 36px;
        height: 36px;
        padding: 5px 6px;
        font-size: 11px;
        white-space: nowrap;
    }
}

html body #referral-withdrawal-detail-dialog[open] {
    position: fixed !important;
    inset: max(12px, env(safe-area-inset-top)) auto auto 50% !important;
    width: min(560px, calc(100vw - 28px)) !important;
    max-width: calc(100vw - 28px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: min(78dvh, 640px) !important;
    margin: 0 !important;
    padding: 14px !important;
    transform: translateX(-50%) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}
html body #referral-withdrawal-detail-dialog[open] .referral-withdrawal-detail-header {
    margin-bottom: 9px;
}
html body #referral-withdrawal-detail-dialog[open] .referral-withdrawal-detail-grid {
    gap: 6px;
}
html body #referral-withdrawal-detail-dialog[open] .referral-withdrawal-detail-grid > div {
    padding: 7px 9px;
}
html body #referral-withdrawal-detail-dialog[open] [hidden] {
    display: none !important;
}
@media (max-width: 700px) {
    html body #referral-withdrawal-detail-dialog[open] {
        inset: max(8px, env(safe-area-inset-top)) auto auto 50% !important;
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        max-height: min(76dvh, 560px) !important;
        padding: 10px !important;
    }
    html body #referral-withdrawal-detail-dialog[open] .referral-withdrawal-detail-header {
        margin-bottom: 7px;
    }
    html body #referral-withdrawal-detail-dialog[open] .referral-withdrawal-detail-header h2 {
        font-size: 17px;
    }
    html body #referral-withdrawal-detail-dialog[open] .referral-withdrawal-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
    }
    html body #referral-withdrawal-detail-dialog[open] .referral-withdrawal-detail-grid > div {
        display: flex;
        min-height: 0;
        align-items: baseline;
        justify-content: space-between;
        gap: 6px;
        padding: 6px 7px;
    }
    html body #referral-withdrawal-detail-dialog[open] .referral-withdrawal-detail-grid dt {
        flex: 0 0 auto;
        font-size: 10px;
        line-height: 1.3;
    }
    html body #referral-withdrawal-detail-dialog[open] .referral-withdrawal-detail-grid dd {
        min-width: 0;
        font-size: 12px;
        line-height: 1.35;
        text-align: right;
    }
    html body #referral-withdrawal-detail-dialog[open] .referral-withdrawal-detail-grid .referral-withdrawal-detail-iban,
    html body #referral-withdrawal-detail-dialog[open] .referral-withdrawal-detail-grid .referral-withdrawal-detail-note {
        display: grid;
        grid-column: 1 / -1;
        gap: 3px;
    }
    html body #referral-withdrawal-detail-dialog[open] .referral-withdrawal-detail-grid .referral-withdrawal-detail-iban dd,
    html body #referral-withdrawal-detail-dialog[open] .referral-withdrawal-detail-grid .referral-withdrawal-detail-note dd {
        text-align: left;
    }
    html body #referral-withdrawal-detail-dialog[open] .referral-withdrawal-detail-review-form {
        margin-top: 8px;
        padding-top: 8px;
    }
    html body #referral-withdrawal-detail-dialog[open] .referral-withdrawal-detail-note-input {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 8px;
    }
}
html body #referral-withdrawal-dialog[open] {
    position: fixed !important;
    inset: 50% auto auto 50% !important;
    width: min(500px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: min(86dvh, 620px) !important;
    margin: 0 !important;
    padding: 16px !important;
    transform: translate(-50%, -50%) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}
html body #referral-withdrawal-dialog[open] > .application-dialog-header {
    align-items: center !important;
    margin: 0 0 8px !important;
    padding: 0 0 8px !important;
}
html body #referral-withdrawal-dialog[open] > .application-dialog-header h2 {
    margin: 3px 0 0 !important;
    font-size: 19px !important;
}
html body #referral-withdrawal-dialog[open] .referral-withdrawal-balance {
    margin: 0 0 9px !important;
    padding: 8px 10px !important;
    font-size: 13px !important;
}
html body #referral-withdrawal-dialog[open] .referral-withdrawal-form {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px 10px !important;
}
html body #referral-withdrawal-dialog[open] .referral-withdrawal-form .field {
    min-width: 0 !important;
    gap: 3px !important;
}
html body #referral-withdrawal-dialog[open] .referral-withdrawal-form .field label {
    font-size: 12px !important;
    line-height: 1.3 !important;
}
html body #referral-withdrawal-dialog[open] .referral-withdrawal-form .field input {
    width: 100% !important;
    height: 39px !important;
    min-height: 39px !important;
    padding: 7px 9px !important;
    font-size: 14px !important;
}
html body #referral-withdrawal-dialog[open] .referral-withdrawal-form .referral-withdrawal-iban-field,
html body #referral-withdrawal-dialog[open] .referral-withdrawal-form > p,
html body #referral-withdrawal-dialog[open] .referral-withdrawal-form > .btn {
    grid-column: 1 / -1 !important;
}
html body #referral-withdrawal-dialog[open] #referral-withdrawal-iban {
    text-transform: uppercase;
    letter-spacing: .035em;
}
html body #referral-withdrawal-dialog[open] .referral-withdrawal-form > p {
    font-size: 11px !important;
    line-height: 1.35 !important;
}
html body #referral-withdrawal-dialog[open] .referral-withdrawal-form > .btn {
    min-height: 40px !important;
    padding: 8px 12px !important;
}
@media (max-width: 760px) {
    html body #referral-withdrawal-dialog[open] {
        inset: max(8px, env(safe-area-inset-top)) auto auto 50% !important;
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        max-height: min(82dvh, 560px) !important;
        padding: 12px !important;
        transform: translateX(-50%) !important;
    }
}
@media (max-width: 420px) {
    html body #referral-withdrawal-dialog[open] .referral-withdrawal-form {
        gap: 7px !important;
    }
    html body #referral-withdrawal-dialog[open] .referral-withdrawal-form .field label {
        font-size: 11px !important;
    }
}
