/* ─────────────────────────────────────────────────────────────────────────────
   Owner Panel — iOS 26 / Liquid Glass (sixep_mobile OwnerDashboardView analogi)
   ───────────────────────────────────────────────────────────────────────────── */

:root {
    --owner-bg: #ECEFF5;
    --owner-ink: #111827;
    --owner-muted: rgba(17, 24, 39, 0.45);
    --owner-section: #374151;
    --owner-glass: rgba(255, 255, 255, 0.55);
    --owner-glass-border: rgba(255, 255, 255, 0.72);
    --owner-nav-bg: rgba(255, 255, 255, 0.65);
    --owner-safe-top: env(safe-area-inset-top, 0px);
    --owner-safe-bottom: env(safe-area-inset-bottom, 0px);
    --owner-safe-left: env(safe-area-inset-left, 0px);
    --owner-safe-right: env(safe-area-inset-right, 0px);
    /* Android / ba'zi WebView larda safe-area=0 — status bar ostiga chiqmasin */
    --owner-safe-top-min: 0px;
}

@media (max-width: 900px) {
    :root {
        /* Status bar balandligi (Android/iOS) — safe-area=0 bo‘lsa ham */
        --owner-safe-top-min: 44px;
    }
}

@supports (padding: constant(safe-area-inset-top)) {
    :root {
        --owner-safe-top: constant(safe-area-inset-top);
        --owner-safe-bottom: constant(safe-area-inset-bottom);
        --owner-safe-left: constant(safe-area-inset-left);
        --owner-safe-right: constant(safe-area-inset-right);
    }
}

@supports (padding: env(safe-area-inset-top)) {
    :root {
        --owner-safe-top: env(safe-area-inset-top, 0px);
        --owner-safe-bottom: env(safe-area-inset-bottom, 0px);
        --owner-safe-left: env(safe-area-inset-left, 0px);
        --owner-safe-right: env(safe-area-inset-right, 0px);
    }
}

body.owner-mode {
    overflow: hidden;
    background: var(--owner-bg);
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
}

body.owner-mode .liquid-bg {
    background: var(--owner-bg);
}

body.owner-mode .liquid-blob {
    opacity: 0.28;
}

body.owner-mode .app-container {
    padding: 0;
    justify-content: stretch;
    align-items: stretch;
    overflow: hidden;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
}

.owner-view.active {
    display: flex !important;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: 100%;
    align-items: stretch;
    flex: 1;
    min-height: 0;
}

.owner-shell {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    background: transparent;
    overflow: hidden;
    padding-left: var(--owner-safe-left);
    padding-right: var(--owner-safe-right);
}

.owner-tab-pane {
    display: none;
    width: 100%;
    height: 100%;
    content-visibility: hidden;
}

.owner-tab-pane.active {
    display: block;
    content-visibility: visible;
    contain: layout style;
}

.owner-scroll {
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Status bar / notch ostiga chiqmasin */
    padding:
        calc(16px + max(var(--owner-safe-top), var(--owner-safe-top-min)))
        20px
        calc(110px + var(--owner-safe-bottom));
    overscroll-behavior: contain;
}

.owner-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.owner-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--owner-ink);
    letter-spacing: -0.8px;
    line-height: 1.1;
}

.owner-subtitle {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--owner-muted);
}

.owner-icon-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--owner-glass-border);
    border-radius: 14px;
    background: var(--owner-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--owner-ink);
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.owner-icon-btn svg {
    width: 18px;
    height: 18px;
}

.owner-icon-btn:active {
    transform: scale(0.94);
}

.owner-icon-btn.spinning svg {
    animation: ownerSpin 0.8s linear infinite;
}

@keyframes ownerSpin {
    to { transform: rotate(360deg); }
}

.owner-loading,
.owner-error,
.owner-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 40vh;
    text-align: center;
    color: var(--owner-muted);
    font-size: 14px;
    font-weight: 500;
}

/* Muhim: display:flex [hidden] ni yutmasin — aks holda "yuklanmoqda" qotib qoladi */
.owner-loading[hidden],
.owner-error[hidden],
.owner-dashboard-content[hidden],
.owner-placeholder[hidden] {
    display: none !important;
}

.owner-dashboard-content {
    display: block;
    width: 100%;
    animation: ownerFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ownerFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.owner-spinner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2.5px solid rgba(17, 24, 39, 0.1);
    border-top-color: var(--owner-ink);
    animation: ownerSpin 0.7s linear infinite;
}

.owner-retry-btn,
.owner-logout-btn {
    margin-top: 8px;
    border: none;
    border-radius: 14px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(17, 24, 39, 0.08);
    color: var(--owner-ink);
}

.owner-logout-btn {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.owner-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--owner-section);
    margin: 24px 0 14px;
}

/* Revenue glass card */
.glass-revenue-card {
    position: relative;
    border-radius: 28px;
    padding: 22px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.6) 0%,
        rgba(255, 255, 255, 0.25) 100%
    );
    border: 1.2px solid var(--owner-glass-border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

.glass-revenue-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 12% 0%, rgba(255,255,255,0.55), transparent 55%);
    pointer-events: none;
}

.glass-revenue-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.glass-revenue-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--owner-muted);
}

.glass-revenue-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(17, 24, 39, 0.06);
    color: #6B7280;
}

.glass-revenue-value {
    position: relative;
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
    color: var(--owner-ink);
    letter-spacing: -0.8px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.glass-chip-row {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.glass-chip {
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(17, 24, 39, 0.05);
    border: 1px solid rgba(17, 24, 39, 0.06);
    min-width: 0;
}

.glass-chip-label {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: var(--owner-muted);
    margin-bottom: 2px;
}

.glass-chip-value {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--owner-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Stat tiles */
.owner-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.glass-stat-tile {
    min-height: 140px;
    border-radius: 22px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(255, 255, 255, 0.2) 100%
    );
    border: 1px solid var(--owner-glass-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.2s ease;
    cursor: default;
}

.glass-stat-tile[data-stat="top"] {
    cursor: pointer;
}

.top-product-row .rev-bill-amount small {
    font-size: 11px;
    font-weight: 600;
    color: var(--owner-muted);
}

.top-product-row {
    cursor: pointer;
}

.top-product-row:active {
    transform: scale(0.985);
}

.prod-analyze-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.prod-metric {
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255,255,255,0.7), rgba(255,255,255,0.28));
    border: 1px solid rgba(255,255,255,0.85);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.prod-metric.wide {
    grid-column: 1 / -1;
}

.prod-metric span {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--owner-muted);
    margin-bottom: 4px;
}

.prod-metric strong {
    display: block;
    font-size: 17px;
    font-weight: 800;
    color: var(--owner-ink);
    letter-spacing: -0.2px;
}

.prod-metric strong small {
    font-size: 12px;
    font-weight: 600;
    color: var(--owner-muted);
}

.prod-metric em {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    color: var(--owner-muted);
}

.prod-metric.pos strong {
    color: #059669;
}

.prod-metric.neg strong {
    color: #EF4444;
}

.prod-day-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.prod-day-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.prod-day-main {
    flex: 1;
    min-width: 0;
}

.prod-day-main strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--owner-ink);
}

.prod-day-main span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--owner-muted);
}

.prod-day-profit {
    font-size: 13px;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
}

.prod-day-profit.pos { color: #059669; }
.prod-day-profit.neg { color: #EF4444; }

.prod-check-row .rev-bill-amount.neg {
    color: #EF4444;
}

.glass-stat-tile:active {
    transform: scale(0.98);
}

.glass-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: rgba(17, 24, 39, 0.06);
    background: color-mix(in srgb, var(--icon-color, #111827) 12%, transparent);
    color: var(--icon-color);
    margin-bottom: auto;
}

.glass-stat-icon svg {
    width: 20px;
    height: 20px;
}

.glass-stat-value {
    margin-top: 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--owner-ink);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.glass-stat-label {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--owner-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Floating glass pill nav — viewport pastiga mahkam (fixed) */
.owner-glass-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(6px, env(safe-area-inset-bottom, 0px));
    height: 64px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.55);
    border: 1.5px solid rgba(255, 255, 255, 0.92);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(28px) saturate(1.6);
    -webkit-backdrop-filter: blur(28px) saturate(1.6);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: stretch;
    z-index: 40;
    overflow: hidden;
    isolation: isolate;
}

@supports (bottom: constant(safe-area-inset-bottom)) {
    .owner-glass-nav {
        bottom: max(6px, constant(safe-area-inset-bottom));
    }
}

/* Harakatlanuvchi shisha "blob" */
.owner-nav-indicator {
    position: absolute;
    top: 6px;
    height: calc(100% - 12px);
    left: 6px;
    width: 56px;
    border-radius: 40px;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.72) 55%,
        rgba(255, 255, 255, 0.55) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 4px 14px rgba(15, 23, 42, 0.10),
        0 1px 2px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translate3d(0, 0, 0) scale(1);
    transition:
        transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, width;
}

.owner-nav-indicator.moving {
    /* Yo'lda biroz cho'ziladi — liquid hissi */
    transition:
        transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.owner-nav-indicator::after {
    content: '';
    position: absolute;
    inset: 2px 8px auto 8px;
    height: 38%;
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.95),
        rgba(255, 255, 255, 0)
    );
    opacity: 0.9;
    pointer-events: none;
}

.owner-nav-item {
    position: relative;
    z-index: 1;
    border: none;
    background: transparent;
    color: #9CA3AF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: -0.1px;
    transition: color 0.22s ease, transform 0.22s ease;
    -webkit-tap-highlight-color: transparent;
}

.owner-nav-item svg {
    width: 22px;
    height: 22px;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.owner-nav-item.active {
    color: var(--owner-ink);
    font-weight: 700;
}

.owner-nav-item.active svg {
    transform: scale(1.08);
}

.owner-nav-item:active {
    transform: scale(0.96);
}

.owner-placeholder h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--owner-ink);
    letter-spacing: -0.6px;
}

.owner-placeholder p {
    color: var(--owner-muted);
    font-size: 14px;
    max-width: 260px;
}

.glass-revenue-card:active {
    transform: scale(0.985);
}

/* Staff */
.staff-search-wrap {
    margin-bottom: 12px;
}

.staff-filter-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.staff-filter-chip {
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: rgba(255, 255, 255, 0.55);
    color: #374151;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.staff-filter-chip.active {
    background: #111827;
    color: #fff;
    border-color: transparent;
    font-weight: 600;
}

.staff-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 24px;
}

.staff-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(255,255,255,0.2));
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    cursor: pointer;
}

.staff-card.blocked {
    border-color: rgba(239, 68, 68, 0.3);
}

.staff-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(17, 24, 39, 0.08);
    color: #111827;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.staff-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.staff-main strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--owner-ink);
}

.staff-name-blocked {
    text-decoration: line-through;
    color: #9CA3AF !important;
}

.staff-main span {
    font-size: 12px;
    color: var(--owner-muted);
}

.staff-block-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.12);
    color: #EF4444;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
}

.staff-field-error {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #EF4444;
}

/* Menu */
.menu-header {
    align-items: center;
}

.menu-header-left {
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 0;
}

.menu-header-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.menu-add-btn {
    background: #111827 !important;
    color: #fff !important;
    border-color: transparent !important;
}

a.owner-icon-btn {
    text-decoration: none;
}

.menu-category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-cat-card,
.menu-item-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(255,255,255,0.2));
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    cursor: pointer;
}

.menu-cat-thumb,
.menu-item-thumb {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(17,24,39,0.06);
    display: grid;
    place-items: center;
}

.menu-cat-thumb img,
.menu-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-thumb-fallback {
    font-size: 20px;
}

.menu-cat-main,
.menu-item-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.menu-cat-main strong,
.menu-item-top strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--owner-ink);
}

.menu-cat-main span,
.menu-item-sub {
    font-size: 12px;
    color: var(--owner-muted);
}

.menu-cat-edit,
.menu-cat-del,
.menu-item-del {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 10px;
    background: rgba(17,24,39,0.05);
    color: #6B7280;
    cursor: pointer;
    flex-shrink: 0;
}

.menu-cat-del,
.menu-item-del {
    color: #EF4444;
    background: rgba(239,68,68,0.08);
}

.menu-cat-trail {
    color: #9CA3AF;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.menu-empty-choice {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.menu-empty-choice[hidden] {
    display: none !important;
}

.menu-prod-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.menu-sum-card {
    border-radius: 16px;
    padding: 12px;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.7);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-sum-card span {
    font-size: 11px;
    color: var(--owner-muted);
}

.menu-sum-card strong {
    font-size: 18px;
    color: var(--owner-ink);
}

.menu-search-wrap {
    margin-bottom: 10px;
}

.menu-prod-toolbar {
    margin-bottom: 12px;
}

.menu-primary-btn {
    border: none;
    border-radius: 14px;
    padding: 12px 16px;
    background: #111827;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.menu-item-card.unavailable {
    opacity: 0.75;
}

.menu-item-top {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.menu-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
}

.menu-badge.recipe {
    background: rgba(59,130,246,0.12);
    color: #2563EB;
}

.menu-badge.closed {
    background: rgba(239,68,68,0.12);
    color: #EF4444;
}

.menu-switch {
    position: relative;
    width: 44px;
    height: 26px;
    flex-shrink: 0;
}

.menu-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.menu-switch span {
    position: absolute;
    inset: 0;
    background: rgba(17,24,39,0.15);
    border-radius: 999px;
    transition: 0.2s;
}

.menu-switch span::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
}

.menu-switch input:checked + span {
    background: #22C55E;
}

.menu-switch input:checked + span::before {
    transform: translateX(18px);
}

.owner-modal-card {
    text-align: left;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.owner-modal-body {
    overflow-y: auto;
    max-height: 55vh;
    margin: 8px 0 14px;
}

.owner-dialog-btn-primary {
    background: #111827 !important;
    color: #fff !important;
}

.menu-form-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--owner-muted);
    margin-bottom: 12px;
}

.menu-form-input {
    width: 100%;
    border: 1px solid rgba(17,24,39,0.08);
    border-radius: 12px;
    padding: 11px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--owner-ink);
    background: rgba(255,255,255,0.9);
}

.menu-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.menu-form-image {
    display: block;
    margin-bottom: 12px;
    cursor: pointer;
}

.menu-form-image-preview {
    height: 120px;
    border-radius: 16px;
    border: 1.5px dashed rgba(17,24,39,0.15);
    background: rgba(17,24,39,0.03);
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--owner-muted);
    font-size: 13px;
    font-weight: 500;
}

.menu-form-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-form-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--owner-ink);
    margin: 4px 0 8px;
}

.menu-confirm-text {
    font-size: 14px;
    color: var(--owner-muted);
    line-height: 1.45;
}

/* Reports */
.reports-period-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin-bottom: 20px;
    scrollbar-width: none;
}

.reports-period-scroll::-webkit-scrollbar {
    display: none;
}

.reports-period-chip {
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.7);
    color: #374151;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.reports-period-chip.active {
    background: #111827;
    color: #fff;
    border-color: transparent;
    font-weight: 600;
}

.reports-custom-range {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
    align-items: end;
    margin: -8px 0 18px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.reports-custom-range[hidden] {
    display: none !important;
}

.reports-custom-range label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--owner-muted);
}

.reports-custom-range input[type="date"] {
    width: 100%;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--owner-ink);
    background: rgba(255, 255, 255, 0.9);
}

.reports-apply-btn {
    height: 38px;
    border: none;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    background: #111827;
    color: #fff;
    cursor: pointer;
}

.reports-grid-wrap {
    position: relative;
    min-height: min(52vh, 420px);
}

.reports-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-bottom: 8px;
}

.reports-grid.is-dimmed {
    opacity: 0.28;
    pointer-events: none;
    filter: grayscale(0.2);
}

.reports-loading {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 12px 32px;
    min-height: min(52vh, 420px);
    background: rgba(245, 247, 250, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.reports-loading[hidden] {
    display: none !important;
}

.reports-loading-card {
    width: min(280px, 100%);
    padding: 22px 18px 20px;
    border-radius: 24px;
    text-align: center;
    background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(255,255,255,0.82));
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

.reports-loading-logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    object-fit: cover;
    display: block;
    margin: 0 auto 12px;
}

.reports-loading-spinner {
    width: 28px;
    height: 28px;
    margin: 0 auto 12px;
    border-radius: 50%;
    border: 2.5px solid rgba(17, 24, 39, 0.12);
    border-top-color: #111827;
    animation: reports-spin 0.75s linear infinite;
}

@keyframes reports-spin {
    to { transform: rotate(360deg); }
}

.reports-loading-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.reports-loading-sub {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #6B7280;
}

.reports-period-chip:disabled {
    opacity: 0.55;
    cursor: wait;
}

.report-stat-card {
    min-height: 148px;
    border-radius: 22px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(255,255,255,0.25));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    cursor: pointer;
    color: var(--owner-ink);
    transition: transform 0.18s ease;
}

.report-stat-card:active {
    transform: scale(0.98);
}

.report-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    margin-bottom: auto;
    background: rgba(17, 24, 39, 0.06);
}

.report-stat-icon svg {
    width: 20px;
    height: 20px;
}

.report-stat-amount {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-line;
}

.report-stat-title {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--owner-muted);
}

/* Profile menu */
.owner-profile-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 8px;
}

.owner-menu-tile {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(255,255,255,0.2));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    text-align: left;
    cursor: pointer;
    color: var(--owner-ink);
    transition: transform 0.18s ease;
}

.owner-menu-tile:active {
    transform: scale(0.98);
}

.owner-menu-tile-danger {
    border-color: rgba(239, 68, 68, 0.2);
}

.owner-menu-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: rgba(17, 24, 39, 0.06);
    color: #374151;
}

.owner-menu-icon svg {
    width: 20px;
    height: 20px;
}

.owner-menu-icon-danger {
    background: rgba(239, 68, 68, 0.08);
    color: #EF4444;
}

.owner-menu-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.owner-menu-title {
    font-size: 15px;
    font-weight: 600;
}

.owner-menu-tile-danger .owner-menu-title {
    color: #EF4444;
}

.owner-menu-sub {
    font-size: 12px;
    font-weight: 400;
    color: var(--owner-muted);
}

.owner-menu-chevron {
    font-size: 22px;
    color: #9CA3AF;
    line-height: 1;
}

.owner-menu-tile-danger .owner-menu-chevron {
    color: rgba(239, 68, 68, 0.4);
}

/* Sub-page stack */
.owner-subpage {
    position: absolute;
    inset: 0;
    z-index: 50;
    background: var(--owner-bg);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.owner-subpage[hidden] {
    display: block !important;
    pointer-events: none;
    visibility: hidden;
}

.owner-subpage.open {
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
}

.owner-shell.subpage-open .owner-glass-nav {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.owner-subpage-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.owner-subpage-header {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: calc(8px + max(var(--owner-safe-top), var(--owner-safe-top-min))) 16px 8px 8px;
    flex-shrink: 0;
}

.owner-subpage-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.debt-header-add {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 12px;
    background: #111827;
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.18);
}

.debt-header-add:active {
    transform: scale(0.96);
}

.owner-subpage-nested {
    z-index: 60;
}

.owner-back-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--owner-ink);
    cursor: pointer;
}

.owner-back-btn svg {
    width: 20px;
    height: 20px;
}

.owner-subpage-title {
    flex: 1;
    min-width: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--owner-ink);
}

.owner-subpage-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 20px calc(28px + var(--owner-safe-bottom));
}

/* Revenue detail */
.rev-metrics {
    border-radius: 22px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(255,255,255,0.2));
    border: 1px solid rgba(255,255,255,0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin-bottom: 16px;
}

.rev-metrics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.rev-metrics-row + .rev-metrics-row {
    margin-top: 12px;
}

.rev-metric {
    text-align: center;
}

.rev-metric-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 auto 6px;
}

.rev-metric-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--owner-ink);
}

.rev-metric-label {
    margin-top: 2px;
    font-size: 10px;
    font-weight: 500;
    color: var(--owner-muted);
}

.rev-profit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: 18px;
    background: #111827;
    color: #fff;
    margin-bottom: 16px;
}

.rev-profit-label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.6;
}

.rev-profit-val {
    font-size: 18px;
    font-weight: 700;
}

.rev-count {
    font-size: 13px;
    font-weight: 500;
    color: var(--owner-muted);
    margin-bottom: 12px;
}

.rev-bill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    margin-bottom: 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.rev-bill.debt {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
}

.rev-bill.cancelled {
    border-color: rgba(239, 68, 68, 0.2);
}

.rev-bill-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.rev-bill-main {
    flex: 1;
    min-width: 0;
}

.rev-bill-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rev-bill-id {
    font-size: 14px;
    font-weight: 600;
    color: var(--owner-ink);
}

.rev-bill.debt .rev-bill-id {
    color: #B45309;
}

.rev-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
}

.rev-badge.cancel {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.rev-badge.edit {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.rev-badge.debt {
    background: rgba(245, 158, 11, 0.18);
    color: #B45309;
}

.rev-bill-meta {
    margin-top: 4px;
    font-size: 12px;
    color: var(--owner-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rev-bill-amount {
    font-size: 15px;
    font-weight: 700;
    color: var(--owner-ink);
    flex-shrink: 0;
}

.rev-bill.cancelled .rev-bill-amount {
    color: #EF4444;
}

.rev-bill.debt .rev-bill-amount {
    color: #B45309;
}

.rev-empty {
    text-align: center;
    padding: 40px 16px;
    color: var(--owner-muted);
    font-size: 14px;
}

/* Profile info / about cards */
.profile-info-card {
    border-radius: 22px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(255,255,255,0.2));
    border: 1px solid rgba(255,255,255,0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin-bottom: 12px;
}

.profile-info-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}

.profile-info-row:last-child {
    border-bottom: none;
}

.profile-info-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--owner-muted);
}

.profile-info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--owner-ink);
    text-align: right;
}

.profile-form {
    display: flex;
    flex-direction: column;
}

.profile-save-btn {
    margin-top: 4px;
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 14px;
    background: #111827;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.profile-save-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.profile-save-btn-danger {
    background: #EF4444;
}

.profile-sec-block {
    margin-bottom: 22px;
    padding: 16px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(255,255,255,0.2));
    border: 1px solid rgba(255,255,255,0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.profile-sec-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--owner-ink);
}

.profile-sec-sub {
    margin: 0 0 14px;
    font-size: 12px;
    color: var(--owner-muted);
}

.profile-sec-actions {
    display: flex;
    gap: 10px;
}

.profile-sec-actions .profile-save-btn {
    flex: 1;
}

.subs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subs-card {
    padding: 16px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(255,255,255,0.2));
    border: 1px solid rgba(255,255,255,0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.subs-card.current,
.subs-card.selected {
    border-color: rgba(17, 24, 39, 0.35);
}

.subs-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.subs-card-top strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--owner-ink);
}

.subs-desc {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--owner-muted);
}

.subs-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--owner-muted);
}

.subs-price {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--owner-ink);
}

.subs-price s {
    color: #9CA3AF;
}

.subs-price em {
    font-style: normal;
    color: #16A34A;
    font-weight: 700;
}

.subs-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.subs-badge.ok {
    background: rgba(34, 197, 94, 0.14);
    color: #15803D;
}

.subs-badge.warn {
    background: rgba(245, 158, 11, 0.16);
    color: #B45309;
}

.subs-badge.danger {
    background: rgba(239, 68, 68, 0.14);
    color: #DC2626;
}

.subs-pick-btn {
    margin-top: 12px;
}

.profile-about {
    text-align: center;
    padding-top: 8px;
}

.profile-about-brand {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--owner-ink);
}

.profile-about-sub {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--owner-muted);
}

.profile-link {
    display: inline-block;
    margin-top: 18px;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
}

.profile-soon {
    text-align: center;
    padding: 48px 20px;
    color: var(--owner-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* Logout dialog */
.owner-dialog {
    position: absolute;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.owner-dialog[hidden] {
    display: none !important;
}

.owner-dialog-card {
    width: 100%;
    max-width: 340px;
    border-radius: 24px;
    padding: 18px 20px 16px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    text-align: center;
}

.owner-dialog-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.owner-dialog-icon svg {
    width: 28px;
    height: 28px;
}

.owner-dialog-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--owner-ink);
    margin-bottom: 8px;
}

.owner-dialog-card p {
    font-size: 14px;
    color: var(--owner-muted);
    margin-bottom: 18px;
}

.owner-dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.owner-dialog-btn {
    height: 48px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(17, 24, 39, 0.05);
    color: rgba(17, 24, 39, 0.6);
}

.owner-dialog-btn-danger {
    background: #EF4444;
    color: #fff;
}

/* Debtors + bill detail — sixep_mobile OwnerDebtorsView */
.debt-page {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.debt-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.debt-metric {
    position: relative;
    padding: 14px 14px 12px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,0.72), rgba(255,255,255,0.28));
    border: 1px solid rgba(255,255,255,0.85);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.debt-metric-wide {
    grid-column: 1 / -1;
}

.debt-metric-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
}

.debt-metric.amber .debt-metric-icon {
    background: rgba(217, 119, 6, 0.14);
    color: #D97706;
}

.debt-metric.blue .debt-metric-icon {
    background: rgba(37, 99, 235, 0.12);
    color: #2563EB;
}

.debt-metric.green .debt-metric-icon {
    background: rgba(5, 150, 105, 0.12);
    color: #059669;
}

.debt-metric span {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--owner-muted);
    margin-bottom: 4px;
}

.debt-metric strong {
    display: block;
    font-size: 17px;
    font-weight: 800;
    color: var(--owner-ink);
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.debt-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0 14px;
    min-height: 48px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    box-sizing: border-box;
}

.debt-search svg {
    flex-shrink: 0;
    color: rgba(17, 24, 39, 0.35);
}

.debt-search input {
    flex: 1;
    min-width: 0;
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: var(--owner-ink);
    padding: 12px 0;
}

.debt-search input::placeholder {
    color: rgba(17, 24, 39, 0.35);
}

.debt-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.debt-empty {
    padding: 36px 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(229, 231, 235, 0.95);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #6B7280;
}

.debt-empty strong {
    font-size: 16px;
    font-weight: 800;
    color: var(--owner-ink);
}

.debt-empty span {
    font-size: 13px;
    line-height: 1.4;
}

.debt-card,
.debt-move {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255,255,255,0.6), rgba(255,255,255,0.22));
    border: 1px solid rgba(255,255,255,0.78);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.035);
    cursor: pointer;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.debt-card:active {
    transform: scale(0.985);
}

.debt-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: #374151;
    flex-shrink: 0;
}

.debt-main,
.debt-move-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.debt-main strong,
.debt-move-main strong {
    font-size: 15px;
    font-weight: 800;
    color: var(--owner-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.debt-main span,
.debt-move-main span,
.debt-move-main em {
    font-size: 12px;
    font-weight: 500;
    color: #6B7280;
    font-style: normal;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.debt-trailing {
    flex-shrink: 0;
    text-align: right;
    max-width: 42%;
}

.debt-trailing em {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    color: #9CA3AF;
}

.debt-amt {
    font-size: 14px;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
}

.debt-amt.owing {
    color: #16A34A;
}

.debt-amt.credit {
    color: #EF4444;
}

.debt-detail-head {
    margin-bottom: 16px;
}

.debt-balance {
    padding: 16px;
    border-radius: 20px;
    margin-bottom: 12px;
    background: rgba(17, 24, 39, 0.04);
}

.debt-balance span {
    display: block;
    font-size: 12px;
    color: var(--owner-muted);
    margin-bottom: 4px;
}

.debt-balance strong {
    font-size: 26px;
    font-weight: 800;
}

.debt-balance.owing strong { color: #D97706; }
.debt-balance.clear strong { color: #059669; }

.debt-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.debt-move.neg .debt-move-amt { color: #059669; }
.debt-move.pos .debt-move-amt { color: #D97706; }

.debt-move-amt {
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.bill-detail-card {
    padding-bottom: 20px;
}

.bill-detail-meta {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(255,255,255,0.25));
    border: 1px solid rgba(255,255,255,0.7);
}

.bill-detail-meta > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.bill-detail-meta span { color: var(--owner-muted); }
.bill-detail-meta strong { color: var(--owner-ink); text-align: right; }

.bill-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bill-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.7);
    font-size: 13px;
}

.rev-bill[data-open-bill] {
    cursor: pointer;
}

/* Expenses — professional */
.exp-page {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.exp-summary {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 10px;
}

.exp-summary > div {
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255,255,255,0.72), rgba(255,255,255,0.28));
    border: 1px solid rgba(255,255,255,0.85);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.exp-summary span {
    display: block;
    font-size: 12px;
    color: var(--owner-muted);
    margin-bottom: 4px;
}

.exp-summary strong {
    font-size: 18px;
    font-weight: 800;
    color: var(--owner-ink);
}

.exp-custom-range {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.exp-custom-range .menu-form-input {
    flex: 1;
    margin: 0;
}

.exp-custom-range .profile-save-btn {
    padding: 11px 14px;
    border-radius: 12px;
    flex-shrink: 0;
}

.exp-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.exp-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,0.62), rgba(255,255,255,0.22));
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.035);
    cursor: pointer;
}

.exp-card:active {
    transform: scale(0.985);
}

.exp-card.scheduled {
    border-color: rgba(124, 58, 237, 0.25);
    background: linear-gradient(145deg, rgba(124, 58, 237, 0.08), rgba(255,255,255,0.35));
}

.exp-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--c, #0F766E) 14%, transparent);
    color: var(--c, #0F766E);
    font-size: 16px;
}

.exp-icon:not(:has(*)):empty::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--c, #0F766E);
}

.exp-main {
    flex: 1;
    min-width: 0;
}

.exp-main strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--owner-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.exp-main span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: #6B7280;
}

.exp-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.08);
    color: #374151;
    vertical-align: middle;
}

.exp-amt {
    font-size: 14px;
    font-weight: 800;
    color: #0F766E;
    white-space: nowrap;
}

.exp-detail-amount {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--owner-ink);
    margin-bottom: 14px;
}

#owner-modal-body .menu-form-label {
    display: block;
}

@media (max-width: 360px) {
    .owner-scroll {
        padding-left: 16px;
        padding-right: 16px;
    }

    .glass-revenue-value {
        font-size: 26px;
    }

    .owner-glass-nav {
        left: 12px;
        right: 12px;
    }

    .glass-chip-value {
        font-size: 11px;
    }
}
