:root {
    --bg-deep: #c5cedd;
    --bg-panel: #d6dde8;
    --bg-elevated: #e2e8f2;
    --border: rgba(30, 30, 40, 0.12);
    --text: #1c1d24;
    --text-muted: #5a5d6b;
    --accent: #0f96f0;
    --accent-dim: rgba(15, 150, 240, 0.14);
    --accent-strong: #0f2e6e;
    --accent-hover: #38a8f5;
    --warning: #d97706;
    --danger: #dc2626;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 12px 32px rgba(35, 40, 55, 0.12);
    --sidebar-w: 268px;
    --sidebar-collapsed-w: 76px;
    --font-display: "Outfit", system-ui, sans-serif;
    --font-body: "Manrope", system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text);
    line-height: 1.5;
}

.muted {
    color: var(--text-muted);
}

.small {
    font-size: 0.85rem;
}

code {
    font-size: 0.9em;
    padding: 0.1em 0.35em;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.06);
}

.login-body {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.login-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 75% 50% at 20% 10%, rgba(15, 150, 240, 0.14), transparent 55%),
        radial-gradient(ellipse 55% 40% at 95% 5%, rgba(255, 255, 255, 0.45), transparent 50%),
        linear-gradient(165deg, #b8c4d4 0%, #c6d0e0 45%, #bcc8da 100%);
    z-index: 0;
}

.login-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M0 0h40v40H0zM40 40h40v40H40z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.9;
    pointer-events: none;
}

.login-layout {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: clamp(1.25rem, 4vw, 3rem);
    align-items: center;
    max-width: 1120px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .login-layout {
        grid-template-columns: 1fr 420px;
        gap: 3rem;
    }
}

@media (max-width: 640px) {
    .login-layout {
        padding-left: max(1rem, env(safe-area-inset-left, 0));
        padding-right: max(1rem, env(safe-area-inset-right, 0));
        padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0));
    }

    .login-card {
        padding: 1.25rem;
    }

    .btn-block {
        min-height: 2.85rem;
    }
}

.login-hero {
    padding: 0.5rem 0;
}

.login-hero-logo {
    display: block;
    width: 240px;
    max-width: min(240px, 78vw);
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.28));
    margin-bottom: 1.5rem;
}

.login-hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
    line-height: 1.2;
    color: var(--text);
}

.login-hero-text {
    margin: 0 0 1.25rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 36ch;
}

.login-perks {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.login-perks li {
    margin-bottom: 0.5rem;
}

.login-card-wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-card {
    background: linear-gradient(155deg, #f8f9fc 0%, #eef0f6 100%);
    border: 1px solid rgba(15, 46, 110, 0.2);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    padding: clamp(1.5rem, 4vw, 2rem);
    backdrop-filter: blur(12px);
}

.login-card-head {
    margin-bottom: 1.5rem;
}

.login-kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-strong);
    margin-bottom: 0.35rem;
}

.login-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
    color: var(--text);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.field-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.field input {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Custom display fonts lack bullet glyphs — use system UI for masked passwords */
input[type="password"],
.field input[type="password"] {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0.05em;
}

input[type="password"]:-webkit-autofill,
input[type="password"]:-webkit-autofill:hover,
input[type="password"]:-webkit-autofill:focus {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    -webkit-text-fill-color: var(--text) !important;
}

.field input::placeholder {
    color: rgba(90, 93, 107, 0.55);
}

.field input:focus {
    outline: none;
    border-color: rgba(15, 150, 240, 0.65);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: -0.25rem 0 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}

.login-remember input {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--accent-strong, #0f2e6e);
    cursor: pointer;
}

.form-error {
    min-height: 1.25rem;
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--danger);
}

.login-foot {
    text-align: center;
    margin: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 28px rgba(15, 150, 240, 0.35);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 14px 36px rgba(15, 150, 240, 0.38);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    box-shadow: none;
    transform: none;
}

.btn-secondary {
    background: #fff;
    color: var(--accent-strong);
    border-color: rgba(15, 46, 110, 0.45);
}

.btn-secondary:hover {
    background: rgba(15, 150, 240, 0.08);
}

.btn-block {
    width: 100%;
    padding: 0.95rem 1.25rem;
    font-size: 1rem;
}

.btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.04);
}

.license-panel {
    margin-top: 1rem;
    padding: 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.72);
}

.license-panel.is-valid {
    border-color: rgba(22, 163, 74, 0.45);
    background: rgba(240, 253, 244, 0.9);
}

.license-panel.is-invalid {
    border-color: rgba(220, 38, 38, 0.35);
    background: rgba(254, 242, 242, 0.9);
}

.license-panel-title {
    margin: 0 0 0.25rem;
    font-weight: 700;
    font-size: 0.92rem;
}

.license-panel-text {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.license-panel-text + .license-panel-text {
    margin-top: 0.35rem;
}

.license-panel-text.is-success {
    color: #166534;
    font-weight: 600;
}

.license-panel-text.is-error {
    color: #b91c1c;
    font-weight: 600;
}

.license-panel-form {
    margin-top: 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.dashboard-body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg-deep);
}

.dashboard-frame {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}

.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #b4bfd0 0%, #bcc6d6 100%);
    border-right: 1px solid rgba(30, 30, 40, 0.1);
    transition: width 0.22s ease;
    z-index: 200;
}

.sidebar--collapsed {
    width: var(--sidebar-collapsed-w);
}

.sidebar-head {
    padding: 0.85rem 0.65rem 1rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    flex: 1;
    overflow: hidden;
}

.sidebar--collapsed .sidebar-brand {
    justify-content: center;
}

.sidebar-brand--logo-only {
    display: flex;
    width: 100%;
    min-width: 0;
    justify-content: center;
    align-items: center;
}

.sidebar--collapsed .sidebar-brand-text {
    display: none;
}

.sidebar-logo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: min(7rem, 26vw);
    object-fit: contain;
    object-position: center center;
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.sidebar-brand-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.sidebar-brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-nav {
    flex: 1;
    padding: 0.75rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    overflow-y: auto;
}

.sidebar-foot {
    padding: 0.75rem 0.5rem 1rem;
    border-top: 1px solid var(--border);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: left;
    color: var(--text-muted);
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.45);
}

.nav-link.is-active {
    color: var(--text);
    background: linear-gradient(90deg, rgba(15, 150, 240, 0.15), rgba(255, 255, 255, 0.35));
    box-shadow: inset 3px 0 0 var(--accent);
}

.nav-link-exit {
    color: var(--text-muted);
}

.nav-link-exit:hover {
    color: var(--accent-strong);
    background: rgba(15, 150, 240, 0.1);
}

.nav-icon {
    flex-shrink: 0;
    opacity: 0.9;
}

.sidebar--collapsed .nav-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sidebar--collapsed .nav-link {
    justify-content: center;
    padding: 0.75rem 0.5rem;
}

.sidebar-nav .nav-link {
    position: relative;
}

.dashboard-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: clamp(0.85rem, 2vw, 1.35rem);
    gap: 1rem;
    padding-top: calc(0.85rem + env(safe-area-inset-top, 0));
}

.top-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.top-bar-lead {
    min-width: 0;
    padding-left: 0;
}

@media (max-width: 900px) {
    .top-bar-lead {
        padding-left: 3rem;
    }
}

.top-bar-title {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

.top-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-left: auto;
}

.top-logout-icon {
    flex-shrink: 0;
    opacity: 0.92;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.01em;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    border: 1px solid rgba(15, 46, 110, 0.22);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    font-variant-numeric: tabular-nums;
}

.user-chip-license.is-valid {
    border-color: rgba(22, 163, 74, 0.38);
    color: #166534;
    background: rgba(240, 253, 244, 0.9);
}

.user-chip-license.is-invalid {
    border-color: rgba(220, 38, 38, 0.45);
    color: #991b1b;
    background: rgba(254, 242, 242, 0.92);
}

a.user-chip-logout {
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

a.user-chip-logout:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(15, 150, 240, 0.45);
    box-shadow: 0 2px 8px rgba(30, 30, 40, 0.06);
}

a.user-chip-logout:focus-visible {
    outline: 2px solid var(--accent-strong);
    outline-offset: 2px;
}

.account-card-wrap {
    position: relative;
    width: min(20rem, calc(100vw - 1.5rem));
}

.account-card-trigger {
    position: relative;
    cursor: pointer;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.62rem 1.15rem;
    justify-content: space-between;
    border: 0;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--accent-strong);
    appearance: none;
    -webkit-appearance: none;
}

.account-card-trigger-icon {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    color: var(--accent-strong);
    opacity: 0.92;
}

.account-card-trigger-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 3.5rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
    text-align: center;
    pointer-events: none;
}

.account-card-chevron {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    opacity: 0.75;
    transition: transform 0.15s ease;
}

.account-card-wrap.is-open .account-card-chevron {
    transform: rotate(180deg);
}

.account-card-panel {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    left: 0;
    z-index: 120;
    width: 100%;
    background: #fff;
    border: 1px solid rgba(15, 96, 240, 0.28);
    border-radius: 12px;
    box-shadow:
        0 12px 32px rgba(15, 96, 240, 0.24),
        0 4px 10px rgba(15, 46, 110, 0.1);
    overflow: hidden;
}

.account-card-header {
    padding: 0.7rem 0.9rem 0.65rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(219, 234, 254, 0.94));
    border-bottom: 1px solid rgba(15, 96, 240, 0.14);
}

.account-card-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--accent-strong);
}

.account-card-tax-id {
    margin-top: 0.28rem;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.account-card-body {
    padding: 0.75rem 0.9rem 0.65rem;
}

.account-card-metrics {
    margin: 0;
}

.account-card-metric {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.28rem 0;
    border-bottom: 1px dashed rgba(30, 30, 40, 0.08);
}

.account-card-metric:last-child {
    border-bottom: 0;
}

.account-card-metric dt {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
}

.account-card-metric dd {
    margin: 0;
    flex: 0 0 auto;
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f2e6e;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    text-align: right;
}

.account-card-footer {
    display: flex;
    justify-content: center;
    padding: 0.55rem 0.9rem;
    background: rgba(244, 246, 250, 0.95);
    border-top: 1px solid rgba(15, 46, 110, 0.1);
}

.account-card-logout {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

.account-card-logout:hover {
    color: var(--accent-strong);
}

.account-card-logout:focus-visible {
    outline: 2px solid var(--accent-strong);
    outline-offset: 2px;
}

.main-stage {
    flex: 1;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1.25rem, 3vw, 1.75rem);
    box-shadow: var(--shadow);
}

.panel {
    display: none;
}

.panel.is-visible {
    display: block;
    animation: fade-in 0.25s ease;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.panel-header h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.panel-header p {
    margin: 0 0 1.25rem;
}

.placeholder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.stat-card {
    padding: 1.1rem;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}

.stat-card.muted-card {
    opacity: 0.95;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display);
}

.stat-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.table-shell {
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(30, 30, 40, 0.15);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-placeholder {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.segmented {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.seg-btn {
    flex: 1 1 auto;
    min-width: 160px;
    padding: 0.65rem 1rem;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

a.seg-btn {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.finance-context-nav {
    margin-bottom: 1.25rem;
}

.deposit-context-nav {
    margin-bottom: 1.25rem;
}

.deposit-card {
    max-width: none;
}

.deposit-iris-card {
    max-width: none;
    border-radius: calc(var(--radius) + 2px);
    border: 1px solid rgba(15, 46, 110, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 255, 0.92) 100%);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.deposit-iris-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.35rem 1.5rem 1.1rem;
    background:
        linear-gradient(135deg, rgba(15, 150, 240, 0.1) 0%, rgba(15, 46, 110, 0.06) 100%);
    border-bottom: 1px solid rgba(15, 46, 110, 0.08);
}

.deposit-iris-logo {
    display: block;
    width: min(100%, 220px);
    height: auto;
}

.deposit-iris-body {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 1.75rem 2rem;
    padding: 1.5rem 1.6rem 1.65rem;
    align-items: start;
}

.deposit-iris-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.deposit-iris-title {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--accent-strong);
}

.deposit-iris-afm {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.deposit-iris-afm strong {
    color: var(--text);
    font-weight: 700;
}

.deposit-iris-lead {
    margin: 0 0 1.1rem;
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--text);
}

.deposit-iris-steps {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.deposit-iris-steps li + li {
    margin-top: 0.45rem;
}

.deposit-iris-steps strong {
    color: var(--accent-strong);
    font-weight: 700;
}

.deposit-iris-scan {
    display: flex;
    justify-content: center;
}

.deposit-iris-qr-panel {
    width: 100%;
    max-width: 300px;
    padding: 1.15rem 1.15rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid rgba(15, 46, 110, 0.1);
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 46, 110, 0.08);
    text-align: center;
}

.deposit-iris-qr {
    display: block;
    width: min(100%, 240px);
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
}

.deposit-iris-code-block {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(15, 46, 110, 0.14);
}

.deposit-iris-code-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
}

.deposit-iris-code-value {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(15, 150, 240, 0.22);
    background: rgba(15, 150, 240, 0.06);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--accent-strong);
    word-break: break-all;
}

.deposit-iris-copy-btn {
    margin-top: 0.65rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(15, 46, 110, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent-strong);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.deposit-iris-copy-btn:hover:not(:disabled) {
    background: rgba(15, 150, 240, 0.1);
    border-color: rgba(15, 150, 240, 0.35);
}

.deposit-iris-copy-btn:disabled {
    opacity: 0.72;
    cursor: default;
}

.deposit-viva-card {
    max-width: none;
    border-radius: calc(var(--radius) + 2px);
    border: 1px solid rgba(15, 46, 110, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 255, 0.92) 100%);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.deposit-viva-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.35rem 1.5rem 1.1rem;
    background:
        linear-gradient(135deg, rgba(31, 38, 51, 0.06) 0%, rgba(15, 46, 110, 0.05) 100%);
    border-bottom: 1px solid rgba(15, 46, 110, 0.08);
}

.deposit-viva-logo {
    display: block;
    width: min(100%, 240px);
    height: auto;
}

.deposit-viva-body {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 1.75rem 2rem;
    padding: 1.5rem 1.6rem 1.65rem;
    align-items: start;
}

.deposit-viva-alerts {
    grid-column: 1 / -1;
    display: grid;
    gap: 0.65rem;
}

.deposit-viva-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.deposit-viva-title {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--accent-strong);
}

.deposit-viva-afm {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.deposit-viva-afm strong {
    color: var(--text);
    font-weight: 700;
}

.deposit-viva-lead {
    margin: 0 0 1.1rem;
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--text);
}

.deposit-viva-steps {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.deposit-viva-steps li + li {
    margin-top: 0.45rem;
}

.deposit-viva-steps strong {
    color: var(--accent-strong);
    font-weight: 700;
}

.deposit-viva-panel-wrap {
    display: flex;
    justify-content: center;
}

.deposit-viva-form-panel {
    width: 100%;
    max-width: 340px;
    padding: 1.25rem 1.25rem 1.35rem;
    border-radius: var(--radius);
    border: 1px solid rgba(15, 46, 110, 0.1);
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 46, 110, 0.08);
}

.deposit-viva-form {
    display: grid;
    gap: 1.15rem;
}

.deposit-viva-field-label,
.deposit-viva-notes-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.deposit-viva-amount-wrap {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(15, 150, 240, 0.22);
    background: rgba(15, 150, 240, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.deposit-viva-amount-wrap:focus-within {
    border-color: rgba(15, 150, 240, 0.45);
    box-shadow: 0 0 0 3px rgba(15, 150, 240, 0.12);
}

.deposit-viva-amount-prefix {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent-strong);
    line-height: 1;
    flex-shrink: 0;
}

.deposit-viva-amount-input {
    width: 100%;
    min-width: 0;
    padding: 0.15rem 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--accent-strong);
    outline: none;
}

.deposit-viva-amount-input::placeholder {
    color: rgba(15, 46, 110, 0.28);
    font-weight: 600;
}

.deposit-viva-field-hint {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.76rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.deposit-viva-notes-block {
    padding: 0.85rem 0.9rem;
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(15, 46, 110, 0.14);
    background: rgba(248, 251, 255, 0.85);
}

.deposit-viva-notes-name {
    margin: 0 0 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--accent-strong);
    word-break: break-word;
}

.deposit-viva-notes-afm {
    margin: 0 0 0.45rem;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.deposit-viva-notes-afm strong {
    color: var(--text);
    font-weight: 700;
}

.deposit-viva-notes-block .deposit-viva-field-hint {
    margin-top: 0;
    padding-top: 0.55rem;
    border-top: 1px dashed rgba(15, 46, 110, 0.1);
}

.deposit-viva-alert {
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    line-height: 1.5;
}

.deposit-viva-alert--ok {
    border: 1px solid rgba(34, 150, 90, 0.35);
    background: rgba(34, 150, 90, 0.08);
    color: #166534;
}

.deposit-viva-alert--err {
    border: 1px solid rgba(220, 38, 38, 0.28);
    background: rgba(220, 38, 38, 0.06);
    color: #991b1b;
}

.deposit-viva-submit {
    width: 100%;
    justify-content: center;
    padding: 0.72rem 1rem;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.seg-btn:hover {
    color: var(--text);
    border-color: rgba(15, 150, 240, 0.4);
}

.seg-btn.is-active {
    color: var(--accent-strong);
    background: rgba(15, 150, 240, 0.12);
    border-color: rgba(15, 46, 110, 0.35);
}

.seg-btn-primary {
    border-color: rgba(15, 46, 110, 0.35);
}

.seg-btn-primary.is-active {
    background: rgba(15, 150, 240, 0.18);
    color: var(--accent-strong);
}

.order-context {
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--border);
    padding: 1.25rem;
    min-height: 160px;
}

.order-pane {
    display: none;
}

.order-pane.is-visible {
    display: block;
}

.order-pane p {
    margin: 0;
}

.new-order-shell {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-top: 0.9rem;
}

.new-order-head h3 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
}

.new-order-head p {
    margin: 0 0 0.8rem;
}

.new-order-form {
    display: block;
}

.new-order-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.new-order-grid .field {
    min-width: 0;
}

.new-order-grid .field-span-2 {
    grid-column: span 2;
}

.new-order-grid .field input,
.new-order-grid .field select {
    width: 100%;
    padding: 0.72rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.92rem;
    background: #fff;
    color: var(--text);
}

.new-order-grid .field input:focus,
.new-order-grid .field select:focus {
    outline: none;
    border-color: rgba(15, 150, 240, 0.65);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.new-order-actions {
    margin-top: 0.8rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.orders-context-nav {
    margin-bottom: 1rem;
}

.order-new-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.order-new-customer {
    margin: 0.25rem 0 0;
}

.order-new-notes {
    display: block;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}

.order-new-notes textarea {
    width: 100%;
    min-height: 6.5rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font: inherit;
    resize: vertical;
}

.order-new-cart-shell {
    margin-top: 1rem;
}

.order-new-cart-totals td {
    border-top: 2px solid var(--border);
    padding-top: 0.75rem;
}

.order-new-totals-label {
    text-align: right;
}

.finance-notice-success {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #1b5e20;
}

.order-success-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

body.order-success-open {
    overflow: hidden;
}

.order-success-overlay[hidden] {
    display: none !important;
}

.order-success-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 46, 110, 0.45);
    backdrop-filter: blur(4px);
}

.order-success-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 22rem);
    max-height: calc(100vh - 2.5rem);
    background: #fff;
    border-radius: var(--radius-md, 12px);
    box-shadow:
        0 24px 64px rgba(15, 46, 110, 0.28),
        0 8px 24px rgba(15, 150, 240, 0.14);
    border: 1px solid rgba(15, 150, 240, 0.2);
    overflow: hidden;
    animation: order-success-in 0.28s ease-out;
}

.order-success-dialog.is-pdf-view {
    width: min(100%, calc(100vw - 1rem));
    height: calc(100vh - 1rem);
    height: calc(100dvh - 1rem);
    max-height: calc(100vh - 1rem);
    max-height: calc(100dvh - 1rem);
    display: flex;
    flex-direction: column;
}

.order-success-overlay:has(.order-success-dialog.is-pdf-view) {
    padding: 0.5rem;
    align-items: center;
}

.order-success-dialog.is-pdf-view .order-success-step--pdf {
    flex: 1;
    min-height: 0;
}

.order-success-dialog.is-pdf-view .order-success-pdf-frame {
    flex: 1;
    height: auto;
    min-height: 0;
}

.order-success-step[hidden] {
    display: none !important;
}

.order-success-step--message {
    padding: 1.5rem 1.25rem 1.35rem;
    text-align: center;
}

.order-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
}

.order-success-icon svg {
    width: 2rem;
    height: 2rem;
}

.order-success-title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-navy, #0f2e6e);
}

.order-success-text {
    margin: 0 0 1.15rem;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--text-muted, #5a6478);
}

.order-success-mk {
    display: block;
    margin-top: 0.25rem;
    font-size: 1.1rem;
    color: var(--brand-navy, #0f2e6e);
}

.order-success-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.order-success-actions .btn {
    width: 100%;
}

.order-success-step--pdf {
    display: flex;
    flex-direction: column;
}

.order-success-pdf-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--border);
    background: #f7f9fc;
    flex-shrink: 0;
}

.order-success-pdf-title {
    flex: 1;
    text-align: center;
    font-weight: 600;
    color: var(--brand-navy, #0f2e6e);
    font-size: 0.9rem;
}

.order-success-pdf-frame {
    display: block;
    width: 100%;
    height: min(52vh, 28rem);
    border: 0;
    background: #eef1f5;
}

@media (min-width: 640px) {
    .order-success-dialog {
        width: min(100%, 24rem);
    }

    .order-success-step--message {
        padding: 1.75rem 1.5rem 1.5rem;
    }

    .order-success-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .order-success-actions .btn {
        width: auto;
        min-width: 9rem;
    }
}

@keyframes order-success-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.btn-sm {
    padding: 0.35rem 0.65rem;
    font-size: 0.875rem;
}

.order-new-qty {
    width: 4.5rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.orders-col-profit {
    white-space: nowrap;
    text-align: center;
}

.order-profit-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.order-profit-badge--save {
    color: #1b5e20;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 1px solid #a5d6a7;
}

.order-profit-badge--base {
    color: var(--brand-navy, #0f2e6e);
    background: #f0f4f9;
    border: 1px solid rgba(15, 46, 110, 0.12);
}

.order-catalog-row-highlight td {
    background: rgba(46, 125, 50, 0.04);
}

.mobile-menu-btn {
    display: none;
    position: fixed;
    top: calc(1rem + env(safe-area-inset-top, 0));
    left: 1rem;
    z-index: 180;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(35, 40, 55, 0.08);
}

.mobile-menu-btn::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 2px;
    background: var(--text);
    box-shadow:
        0 -6px 0 var(--text),
        0 6px 0 var(--text);
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(0, 0, 0, 0.55);
    border: none;
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.dashboard-frame--drawer-open .sidebar-backdrop {
    display: block;
}

@media (max-width: 900px) {
    .dashboard-frame {
        position: relative;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(var(--sidebar-w), 88vw);
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .sidebar.sidebar--open {
        transform: translateX(0);
    }

    .sidebar--collapsed:not(.sidebar--open) {
        width: min(var(--sidebar-w), 88vw);
    }

    .sidebar--collapsed.sidebar--open {
        width: min(var(--sidebar-w), 88vw);
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .top-bar-lead {
        position: relative;
        display: flex;
        align-items: center;
        min-height: 2.75rem;
        padding-left: 3.1rem;
    }

    .top-bar-lead .mobile-menu-btn {
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        z-index: 2;
    }

    .sidebar .nav-label {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        margin: 0;
        overflow: visible;
        clip: auto;
        white-space: normal;
        border: 0;
    }

    .sidebar .nav-link {
        justify-content: flex-start;
    }
}

.finance-error {
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.25);
}

.finance-toolbar {
    margin-bottom: 1rem;
}

.finance-toolbar-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.65rem;
}

.finance-search {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.finance-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.finance-field-grow {
    flex: 1 1 200px;
}

.finance-field-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.finance-field input[type="date"],
.finance-customer-readonly {
    padding: 0.5rem 0.65rem;
    font-family: inherit;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    box-sizing: border-box;
    min-height: 42px;
}

.finance-customer-readonly {
    opacity: 0.95;
    cursor: default;
}

div.finance-customer-readonly {
    display: block;
    word-break: break-word;
    line-height: 1.4;
}

.finance-search .btn {
    box-sizing: border-box;
    min-height: 42px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.finance-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.finance-pdf-icon {
    display: block;
    flex-shrink: 0;
}

/* Οικονομική καρτέλα: εικονίδιο εγγράφου + «Λήψη Καρτέλας» */
.finance-toolbar .finance-actions .documents-pdf-link.finance-toolbar-pdf-link,
.finance-toolbar .finance-actions .documents-pdf-link.finance-toolbar-pdf-link:visited {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-sizing: border-box;
    margin: 0;
    padding: 0.4rem 0.65rem 0.4rem 0.5rem;
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    background: rgba(15, 150, 240, 0.1);
    text-decoration: none;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(15, 46, 110, 0.2);
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.finance-toolbar .finance-actions .documents-pdf-link.finance-toolbar-pdf-link:hover {
    background: rgba(15, 150, 240, 0.16);
    box-shadow: inset 0 0 0 1px rgba(15, 46, 110, 0.32);
}

.finance-toolbar .finance-actions .documents-pdf-link.finance-toolbar-pdf-link:active {
    transform: scale(0.98);
}

.finance-toolbar .finance-actions .documents-pdf-link.finance-toolbar-pdf-link:focus-visible {
    outline: 2px solid var(--accent-strong);
    outline-offset: 2px;
}

.finance-toolbar-pdf-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.finance-toolbar .finance-actions .documents-pdf-link.finance-toolbar-pdf-link .documents-pdf-link-icon {
    display: block;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.documents-table td.documents-mk {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.documents-table th.documents-col-pdf,
.documents-table td.documents-col-pdf {
    text-align: left;
}

.orders-table th.orders-col-order-no,
.orders-table td.orders-col-order-no,
.orders-table th.orders-col-pdf,
.orders-table td.orders-col-pdf {
    text-align: center;
    vertical-align: middle;
}

.finance-table.documents-table td .documents-pdf-link,
.finance-table.documents-table td .documents-pdf-link:visited,
.finance-table.orders-table td .documents-pdf-link,
.finance-table.orders-table td .documents-pdf-link:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0;
    padding: 6px;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 10px;
    background: rgba(15, 150, 240, 0.1);
    text-decoration: none;
    cursor: pointer;
    vertical-align: middle;
    box-shadow: inset 0 0 0 1px rgba(15, 46, 110, 0.2);
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.finance-table.documents-table td .documents-pdf-link:hover,
.finance-table.orders-table td .documents-pdf-link:hover {
    background: rgba(15, 150, 240, 0.16);
    box-shadow: inset 0 0 0 1px rgba(15, 46, 110, 0.32);
}

.finance-table.documents-table td .documents-pdf-link:active,
.finance-table.orders-table td .documents-pdf-link:active {
    transform: scale(0.96);
}

.finance-table.documents-table td .documents-pdf-link:focus-visible,
.finance-table.orders-table td .documents-pdf-link:focus-visible {
    outline: 2px solid var(--accent-strong);
    outline-offset: 2px;
}

.finance-table.documents-table td .documents-pdf-link-icon,
.finance-table.orders-table td .documents-pdf-link-icon {
    display: block;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    flex-shrink: 0;
    overflow: visible;
    border-radius: 4px;
}

.finance-table.orders-table td .orders-pdf-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.finance-total-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.finance-total-bar-start {
    flex-shrink: 0;
}

.finance-total-bar-end {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-left: auto;
    text-align: right;
}

.finance-total-bar .documents-pdf-link.finance-toolbar-pdf-link,
.finance-total-bar .documents-pdf-link.finance-toolbar-pdf-link:visited {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-sizing: border-box;
    margin: 0;
    padding: 0.4rem 0.65rem 0.4rem 0.5rem;
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    background: rgba(15, 150, 240, 0.1);
    text-decoration: none;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(15, 46, 110, 0.2);
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.finance-total-bar .documents-pdf-link.finance-toolbar-pdf-link:hover {
    background: rgba(15, 150, 240, 0.16);
    box-shadow: inset 0 0 0 1px rgba(15, 46, 110, 0.32);
}

.finance-total-bar .documents-pdf-link.finance-toolbar-pdf-link:active {
    transform: scale(0.98);
}

.finance-total-bar .documents-pdf-link.finance-toolbar-pdf-link:focus-visible {
    outline: 2px solid var(--accent-strong);
    outline-offset: 2px;
}

.finance-total-bar .documents-pdf-link.finance-toolbar-pdf-link .documents-pdf-link-icon {
    display: block;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.finance-total-label {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--accent-strong);
    line-height: 1.2;
}

.finance-total-value {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--accent-strong);
}

.finance-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #fff;
}

.finance-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.finance-table th,
.finance-table td {
    padding: 0.55rem 0.65rem;
    text-align: left;
    border-bottom: 1px solid rgba(30, 30, 40, 0.08);
    vertical-align: top;
}

.finance-table thead th {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.03);
}

.finance-table.documents-table th,
.finance-table.documents-table td,
.finance-table.orders-table th,
.finance-table.orders-table td {
    vertical-align: middle;
    line-height: 1.4;
}

/* Desktop alignment for customer documents table columns (class-based; safe with mobile meta row) */
.finance-table.documents-table .documents-col-date,
.finance-table.documents-table .documents-col-time,
.finance-table.documents-table .documents-col-series,
.finance-table.documents-table .documents-col-number {
    width: 1%;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
    text-align: center;
    white-space: nowrap;
}

.finance-table.documents-table .documents-col-type,
.finance-table.documents-table .documents-col-reason {
    text-align: left;
    min-width: 6rem;
    max-width: 24rem;
    word-break: break-word;
}

.finance-table.documents-table .documents-col-net,
.finance-table.documents-table .documents-col-vat,
.finance-table.documents-table .documents-col-withhold,
.finance-table.documents-table .documents-col-total {
    width: 1%;
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

@media (min-width: 901px) {
    .finance-table.record-card-table td.record-card-meta {
        display: none !important;
    }
}

.finance-table.documents-table th.documents-col-pdf,
.finance-table.documents-table td.documents-col-pdf,
.finance-table.orders-table th.orders-col-order-no,
.finance-table.orders-table td.orders-col-order-no,
.finance-table.orders-table th.orders-col-pdf,
.finance-table.orders-table td.orders-col-pdf,
.finance-table.documents-table th.documents-col-parochos,
.finance-table.documents-table td.documents-col-parochos {
    width: 1%;
    padding-left: 0.3rem;
    padding-right: 0.3rem;
    text-align: center;
}

.finance-table.orders-table td.orders-col-pdf .documents-pdf-link {
    margin-inline: auto;
}

.documents-table th.documents-col-parochos,
.documents-table td.documents-col-parochos {
    text-align: center;
}

.finance-table.documents-table td .documents-parochos-link,
.finance-table.documents-table td .documents-parochos-link:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0;
    padding: 6px;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 10px;
    background: rgba(15, 150, 240, 0.1);
    text-decoration: none;
    cursor: pointer;
    vertical-align: middle;
    box-shadow: inset 0 0 0 1px rgba(15, 46, 110, 0.2);
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.finance-table.documents-table td .documents-parochos-link:hover {
    background: rgba(15, 150, 240, 0.16);
    box-shadow: inset 0 0 0 1px rgba(15, 46, 110, 0.32);
}

.finance-table.documents-table td .documents-parochos-link:active {
    transform: scale(0.96);
}

.finance-table.documents-table td .documents-parochos-link:focus-visible {
    outline: 2px solid var(--accent-strong);
    outline-offset: 2px;
}

.finance-table.documents-table td .documents-parochos-link-icon {
    display: block;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    flex-shrink: 0;
    overflow: visible;
    border-radius: 4px;
}

/* Stronger row separators for easier record scanning */
.finance-table.documents-table tbody tr td {
    border-bottom: 1px solid rgba(30, 30, 40, 0.2);
}

.finance-table.documents-table tbody tr + tr td {
    border-top: 2px solid rgba(30, 30, 40, 0.28) !important;
}

.finance-row-muted td {
    background: rgba(0, 0, 0, 0.03);
    font-weight: 500;
}

.finance-row-strong td {
    font-weight: 700;
}

.finance-toolbar .finance-actions {
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .dashboard-body {
        overflow-x: hidden;
    }

    .dashboard-content {
        padding: 0.75rem;
        gap: 0.75rem;
        padding-top: calc(0.75rem + env(safe-area-inset-top, 0));
        padding-left: max(0.75rem, env(safe-area-inset-left, 0));
        padding-right: max(0.75rem, env(safe-area-inset-right, 0));
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0));
    }

    .top-bar {
        padding: 0.75rem 0.8rem;
        gap: 0.65rem;
    }

    .top-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
    }

    .main-stage {
        padding: 1rem;
    }

    .order-context {
        padding: 0.85rem;
    }

    .new-order-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .new-order-grid .field-span-2 {
        grid-column: 1 / -1;
    }

    .segmented {
        gap: 0.4rem;
    }

    .deposit-iris-body {
        grid-template-columns: 1fr;
        gap: 1.35rem;
        padding: 1.15rem 1.1rem 1.25rem;
    }

    .deposit-viva-body {
        grid-template-columns: 1fr;
        gap: 1.35rem;
        padding: 1.15rem 1.1rem 1.25rem;
    }

    .deposit-viva-panel-wrap {
        justify-content: stretch;
    }

    .deposit-viva-form-panel {
        max-width: none;
    }

    .deposit-iris-scan {
        justify-content: stretch;
    }

    .deposit-iris-qr-panel {
        max-width: none;
    }

    .seg-btn {
        min-width: 0;
        flex: 1 1 calc(50% - 0.2rem);
    }

    .finance-search {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: end;
        gap: 0.6rem;
    }

    .finance-field-grow {
        grid-column: 1 / -1;
    }

    .finance-search .btn {
        width: 100%;
        grid-column: 1 / -1;
    }

    .finance-table {
        font-size: 0.82rem;
    }

    .finance-table th,
    .finance-table td {
        padding: 0.5rem 0.55rem;
    }
}

@media (max-width: 640px) {
    .top-bar-lead {
        padding-left: 3.1rem;
    }

    .top-bar-title {
        font-size: 1rem;
    }

    .account-card-trigger {
        min-height: 2.85rem;
    }

    .user-chip {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }

    .seg-btn {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .finance-search {
        grid-template-columns: 1fr;
    }

    .finance-field-grow,
    .finance-search .btn {
        grid-column: auto;
    }

    .finance-field input[type="date"],
    .finance-customer-readonly {
        font-size: 0.95rem;
        padding: 0.58rem 0.65rem;
    }

    .main-stage {
        padding: 0.85rem;
    }

    .order-context {
        padding: 0.7rem;
    }

    .new-order-shell {
        padding: 0.8rem;
    }

    .new-order-grid {
        grid-template-columns: 1fr;
    }

    .new-order-grid .field-span-2 {
        grid-column: auto;
    }

    .new-order-actions {
        justify-content: stretch;
    }

    .new-order-actions .btn {
        width: 100%;
    }

    .finance-toolbar-title {
        font-size: 0.95rem;
    }

    .finance-table.documents-table td .documents-pdf-link,
    .finance-table.orders-table td .documents-pdf-link {
        width: 48px;
        height: 48px;
        padding: 5px;
    }

    .finance-table.documents-table td .documents-pdf-link-icon,
    .finance-table.orders-table td .documents-pdf-link-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        max-width: 36px;
        max-height: 36px;
    }
}

@media (max-width: 900px) {
    .finance-table-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .finance-table {
        border-collapse: separate;
        border-spacing: 0;
        background: transparent;
    }

    .finance-table thead {
        display: none;
    }

    .finance-table tbody,
    .finance-table tr,
    .finance-table td {
        display: block;
        width: 100%;
    }

    .finance-table tr {
        margin-bottom: 0.75rem;
        padding: 0.6rem 0.7rem;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        box-shadow: 0 2px 8px rgba(30, 30, 40, 0.04);
    }

    .finance-table td {
        border: 0;
        border-bottom: 1px dashed rgba(30, 30, 40, 0.12);
        padding: 0.45rem 0;
        margin: 0;
        min-height: 34px;
        text-align: left;
    }

    .finance-table td:last-child {
        border-bottom: 0;
    }

    .finance-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.72rem;
        font-weight: 700;
        line-height: 1.25;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        color: var(--text-muted);
        margin-bottom: 0.18rem;
    }

    .finance-table td:not([data-label])::before,
    .finance-table td[data-label=""]::before {
        content: none;
    }

    .finance-table td.documents-col-pdf::before,
    .finance-table td.orders-col-pdf::before,
    .finance-table td.documents-col-parochos::before {
        margin-bottom: 0.35rem;
    }

    .finance-table td.orders-col-order-no,
    .finance-table td.orders-col-pdf,
    .finance-table td.documents-col-pdf,
    .finance-table td.documents-col-parochos {
        text-align: left;
    }

    .finance-table td.orders-col-pdf .documents-pdf-link,
    .finance-table td.documents-col-pdf .documents-pdf-link {
        margin-inline: 0;
    }

    .finance-table .finance-row-muted td[colspan],
    .finance-table .finance-row-strong td[colspan] {
        text-align: left;
        font-weight: 600;
    }

    .finance-table .finance-row-muted td[colspan]::before,
    .finance-table .finance-row-strong td[colspan]::before {
        content: none;
    }

    .finance-total-bar {
        flex-wrap: wrap;
        align-items: stretch;
        gap: 0.65rem;
    }

    .finance-total-bar-start,
    .finance-total-bar-end {
        width: 100%;
        margin-left: 0;
    }

    .finance-total-bar-end {
        justify-content: space-between;
        text-align: left;
    }

    .finance-total-bar .documents-pdf-link.finance-toolbar-pdf-link {
        width: 100%;
        justify-content: center;
    }

    .account-card-wrap {
        width: 100%;
        max-width: none;
    }

    .top-bar {
        flex-direction: column;
        align-items: stretch;
        overflow: visible;
    }

    .top-actions {
        position: relative;
        z-index: 1;
    }

    .account-card-panel {
        position: absolute;
        top: calc(100% + 0.45rem);
        left: 0;
        right: 0;
        width: 100%;
        max-height: min(65vh, calc(100dvh - 10rem - env(safe-area-inset-bottom, 0)));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .account-card-trigger {
        position: relative;
        z-index: 2;
    }

    .panel-header h2 {
        font-size: 1.15rem;
    }
}

/* Support hub (Υποστήριξη) */
.support-hub {
    max-width: 960px;
}

.support-flash {
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.support-flash strong {
    font-weight: 700;
}

.support-flash--ok {
    background: rgba(34, 160, 80, 0.12);
    border: 1px solid rgba(34, 160, 80, 0.35);
    color: var(--text);
}

.support-flash--err {
    background: rgba(200, 60, 60, 0.1);
    border: 1px solid rgba(200, 60, 60, 0.35);
    color: var(--text);
}

.support-code {
    font-size: 0.88em;
    font-weight: 600;
    padding: 0.12em 0.4em;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.06);
}

.support-blocked--hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.5rem 1.35rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.55), rgba(226, 232, 242, 0.9));
    box-shadow: var(--shadow);
}

.support-blocked-icon {
    color: var(--warning);
    opacity: 0.95;
}

.support-blocked-title {
    font-weight: 700;
    margin: 0;
    font-size: 1.12rem;
    font-family: var(--font-display);
}

.support-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.25rem 1.35rem;
    margin-bottom: 1.1rem;
    border-radius: var(--radius);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.65) 0%, rgba(226, 232, 242, 0.95) 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.support-hero-kicker {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-strong);
}

.support-hero-title {
    margin: 0 0 0.4rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.support-hero-desc {
    margin: 0;
    font-size: 0.92rem;
    max-width: 36rem;
}

.support-hero-desc a {
    color: var(--accent);
    font-weight: 600;
}

.support-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 5.5rem;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(15, 150, 240, 0.12);
    border: 1px solid rgba(15, 150, 240, 0.28);
}

.support-hero-stat__val {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent-strong);
}

.support-hero-stat__lbl {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.support-hub-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.support-hub-nav__btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-muted);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.45);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.support-hub-nav__btn:hover {
    color: var(--text);
    border-color: rgba(15, 150, 240, 0.35);
    background: rgba(255, 255, 255, 0.85);
}

.support-hub-nav__btn.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(15, 46, 110, 0.22);
}

.support-hub-grid {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 1.25rem;
    align-items: stretch;
}

.support-hub-grid--empty-pair {
    align-items: stretch;
}

@media (max-width: 820px) {
    .support-hub-grid {
        grid-template-columns: 1fr;
    }
}

.support-hub-aside {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.5);
    min-height: 200px;
    max-height: min(60vh, 520px);
    overflow: auto;
}

.support-hub-grid--empty-pair .support-hub-aside {
    max-height: none;
    overflow: visible;
}

.support-empty-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 300px;
    padding: 1.75rem 1.35rem;
    border-radius: var(--radius);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.92) 0%, rgba(232, 238, 248, 0.88) 100%);
    border: 1px solid var(--border);
    box-shadow: 0 8px 28px rgba(35, 40, 55, 0.08);
}

.support-hub-grid--empty-pair .support-empty-panel {
    min-height: clamp(280px, 42vh, 400px);
}

.support-empty-panel--aside {
    margin: 0.45rem;
}

.support-empty-panel--main {
    width: 100%;
    box-sizing: border-box;
}

.support-empty-panel__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1rem;
    border-radius: 14px;
    color: var(--accent-strong);
    background: rgba(15, 150, 240, 0.12);
    border: 1px solid rgba(15, 150, 240, 0.2);
}

.support-empty-panel__title {
    margin: 0 0 0.4rem;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.support-empty-panel__text {
    margin: 0 0 1.15rem;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 22rem;
}

.support-empty-panel__btn {
    min-width: 10rem;
}

.support-ticket-list {
    list-style: none;
    margin: 0;
    padding: 0.4rem;
}

.support-ticket-list li {
    margin: 0 0 0.4rem;
}

.support-ticket-list li:last-child {
    margin-bottom: 0;
}

.support-ticket-card {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.55);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.support-ticket-card:hover {
    border-color: rgba(15, 150, 240, 0.25);
    background: #fff;
}

.support-ticket-card.is-active {
    border-color: rgba(15, 150, 240, 0.45);
    background: rgba(15, 150, 240, 0.1);
    box-shadow: 0 4px 16px rgba(35, 40, 55, 0.08);
}

.support-ticket-card.is-new {
    animation: support-ticket-pulse 1.2s ease-out 2;
}

@keyframes support-ticket-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(15, 150, 240, 0.35);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(15, 150, 240, 0.12);
    }
}

.support-ticket-card__id {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--accent-strong);
    font-family: ui-monospace, monospace;
}

.support-ticket-card__subj {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.support-ticket-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.support-badge {
    display: inline-block;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(34, 160, 80, 0.15);
    color: #166534;
}

.support-badge--lg {
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
}

.support-hub-main {
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.support-hub-grid--empty-pair .support-hub-main {
    min-height: 0;
}

.support-card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
    padding: 1.35rem 1.4rem;
}

.support-card-title {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
}

.support-card-lead {
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.support-form {
    position: relative;
}

.support-form .support-field {
    display: block;
    margin-bottom: 1rem;
}

.support-field-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.support-input,
.support-textarea {
    width: 100%;
    box-sizing: border-box;
    font: inherit;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
}

.support-textarea {
    resize: vertical;
    min-height: 10rem;
}

.support-dropzone {
    display: block;
    padding: 1rem 1rem;
    border: 1px dashed rgba(30, 30, 40, 0.22);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.support-dropzone:hover {
    border-color: rgba(15, 150, 240, 0.45);
    background: rgba(15, 150, 240, 0.04);
}

.support-dropzone .support-file {
    width: 100%;
    font-size: 0.82rem;
}

.support-dropzone__hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.support-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

.support-card--detail .support-detail-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.support-detail-kicker {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.support-detail-title {
    margin: 0.2rem 0 0;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
}

.support-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.65rem 1rem;
    margin: 0 0 1rem;
    font-size: 0.86rem;
}

.support-detail-meta dt {
    margin: 0;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.support-detail-meta dd {
    margin: 0.15rem 0 0;
}

.support-detail-body {
    margin-bottom: 1rem;
}

.support-detail-msg {
    margin-top: 0.45rem;
    padding: 1rem 1.05rem;
    border-radius: var(--radius-sm);
    background: rgba(30, 30, 40, 0.04);
    border: 1px solid var(--border);
    font-size: 0.92rem;
    line-height: 1.55;
    word-break: break-word;
}

.support-detail-files ul {
    margin: 0.35rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.88rem;
}

.support-detail-foot {
    margin: 1rem 0 0;
    font-size: 0.82rem;
}

.support-thread {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0 0;
}

.support-thread-msg {
    border-radius: 12px;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-subtle, #e2e8f0);
    background: var(--surface-2, #f8fafc);
}

.support-thread-msg--agent {
    border-color: rgba(15, 150, 240, 0.35);
    background: linear-gradient(135deg, rgba(15, 150, 240, 0.06), rgba(15, 46, 110, 0.04));
}

.support-thread-msg__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.78rem;
}

.support-form--reply {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle, #e2e8f0);
}

.support-form--agent {
    margin-top: 1.25rem;
}

.support-form--close {
    margin-top: 0.75rem;
}

.support-hub-nav__btn--agent {
    margin-left: auto;
}

.support-form .honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 900px) {
    .support-hub-aside {
        max-height: none;
    }

    .customers-admin-table td:last-child .btn {
        width: 100%;
    }
}

@media (max-width: 1024px) and (min-width: 901px) {
    .finance-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dashboard-content {
        padding: 1rem;
    }
}

.customers-admin-provision-form {
    margin: 0;
    display: inline;
}

.customers-admin-provision-form .btn {
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
}

.customers-admin-table td:last-child {
    min-width: 11rem;
}

/* ——— Mobile polish (viewport-based) ——— */
@media (max-width: 900px) {
    .login-hero {
        text-align: center;
        padding-bottom: 0.25rem;
    }

    .login-hero-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .login-hero-text {
        max-width: none;
        font-size: 0.95rem;
    }

    .login-perks {
        display: none;
    }

    .login-card-wrap {
        width: 100%;
        min-width: 0;
    }

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

    .stat-value {
        font-size: 1.35rem;
    }

    .finance-toolbar {
        padding: 0.85rem;
    }

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

    .support-hero-stat {
        align-self: flex-start;
    }

    .support-hub-nav {
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .panel-header p {
        font-size: 0.9rem;
    }

    .license-panel {
        margin-top: 1rem;
    }
}

@media (max-width: 640px) {
    .login-layout {
        gap: 1.15rem;
        padding-top: max(1rem, env(safe-area-inset-top, 0));
    }

    .login-hero-logo {
        max-width: min(200px, 68vw);
        margin-bottom: 0.85rem;
    }

    .login-hero-title {
        font-size: 1.4rem;
    }

    .login-hero-text {
        margin-bottom: 0.75rem;
        font-size: 0.9rem;
    }

    .field input,
    .field select,
    .field textarea {
        font-size: 16px;
        min-height: 2.75rem;
    }

    .finance-field input[type="date"],
    .finance-field select,
    .finance-field textarea {
        font-size: 0.84rem;
        min-height: 2.2rem;
    }

    input[type="password"] {
        font-size: 16px;
    }

    .btn,
    .btn-block {
        min-height: 2.85rem;
    }

    .finance-total-value {
        font-size: 1.05rem;
    }
}

/* ——— Record cards (mobile) ——— */
.record-card-meta {
    display: none;
}

@media (max-width: 900px) {
    .finance-toolbar {
        padding: 0.6rem 0.65rem;
        margin-bottom: 0.6rem;
    }

    .finance-search {
        gap: 0.45rem;
        margin-bottom: 0;
    }

    .finance-field {
        gap: 0.12rem;
    }

    .finance-field-label {
        font-size: 0.62rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        line-height: 1.2;
    }

    .finance-field input[type="date"],
    .finance-customer-readonly {
        min-height: 2.2rem;
        height: auto;
        padding: 0.3rem 0.48rem;
        font-size: 0.84rem;
    }

    .finance-search .btn {
        min-height: 2.3rem;
        padding: 0.35rem 0.65rem;
        font-size: 0.86rem;
    }

    #panel-documents .finance-toolbar,
    #panel-receipts .finance-toolbar,
    #panel-orders .finance-toolbar {
        margin-bottom: 0.85rem;
    }

    #panel-documents .finance-table-wrap,
    #panel-receipts .finance-table-wrap,
    #panel-orders .finance-table-wrap {
        margin-top: 0.35rem;
    }

    .finance-customer-readonly {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        word-break: break-word;
        line-height: 1.3;
        height: auto;
    }

    .finance-table.record-card-table thead {
        display: none;
    }

    .finance-table.record-card-table tbody tr.record-card-row {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        margin-bottom: 0.75rem;
        border: 1px solid rgba(15, 46, 110, 0.12);
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 2px 10px rgba(15, 46, 110, 0.08);
        overflow: hidden;
        padding: 0;
    }

    .finance-table.record-card-table td.record-card-meta {
        display: flex;
        flex: 1 1 100%;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.25rem 0.45rem;
        padding: 0.65rem 0.85rem;
        background: #f0f4f9;
        border-bottom: 1px solid rgba(15, 46, 110, 0.1);
        font-weight: 700;
        font-size: 0.93rem;
        line-height: 1.35;
        color: var(--accent-strong, #0f2e6e);
    }

    .finance-table.record-card-table td.record-card-meta::before {
        content: none;
    }

    .record-card-meta-sep {
        color: var(--text-muted, #64748b);
        font-weight: 500;
    }

    .record-card-meta-docno {
        margin-left: auto;
        font-size: 0.8rem;
        font-weight: 600;
        white-space: nowrap;
    }

    .finance-table.record-card-table td.record-card-cell-date,
    .finance-table.record-card-table td.record-card-cell-time,
    .finance-table.record-card-table td.record-card-cell-series,
    .finance-table.record-card-table td.record-card-cell-number,
    .finance-table.record-card-table td.record-card-cell-order-no {
        display: none !important;
    }

    .finance-table.record-card-table tbody tr.record-card-row > td:not(.record-card-meta) {
        display: flex;
        flex: 1 1 100%;
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        gap: 0.65rem;
        width: 100%;
        padding: 0.48rem 0.85rem;
        border: 0;
        border-bottom: 1px solid rgba(15, 46, 110, 0.07);
        text-align: right;
        box-sizing: border-box;
        min-height: 0;
    }

    .finance-table.record-card-table td::before {
        content: attr(data-label);
        flex: 0 1 42%;
        text-align: left;
        font-size: 0.63rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--accent-strong, #0f2e6e);
        line-height: 1.35;
        margin: 0;
    }

    .finance-table.record-card-table td[data-label="Αιτιολογία"],
    .finance-table.record-card-table td[data-label="ΣΗΜΕΙΩΣΕΙΣ"],
    .finance-table.record-card-table td[data-label="Σημειώσεις"],
    .finance-table.record-card-table td[data-label="Κατάσταση"] {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        text-align: left;
        word-break: break-word;
    }

    .finance-table.record-card-table td[data-label="Τύπος"],
    .finance-table.record-card-table td[data-label="Τύπος Παραστατικού"] {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        background: rgba(15, 150, 240, 0.07);
        font-weight: 600;
        font-size: 0.86rem;
        text-align: left;
    }

    .finance-table.record-card-table td[data-label="Τύπος"]::before,
    .finance-table.record-card-table td[data-label="Τύπος Παραστατικού"]::before {
        content: "Τύπος";
    }

    .finance-table.record-card-table td[data-label="Σύνολο"] {
        background: rgba(15, 46, 110, 0.05);
        font-weight: 700;
    }

    .finance-table.record-card-table td[data-label="Σύνολο"] strong {
        font-size: 1.05rem;
        color: var(--accent-strong, #0f2e6e);
    }

    .finance-table.record-card-table tbody tr.record-card-row > td.documents-col-pdf,
    .finance-table.record-card-table tbody tr.record-card-row > td.documents-col-parochos,
    .finance-table.record-card-table tbody tr.record-card-row > td.orders-col-pdf {
        flex: 1 1 50%;
        justify-content: center;
        align-items: center;
        gap: 0.45rem;
        background: #f0f4f9;
        border-bottom: 0;
        padding: 0.55rem 0.5rem;
    }

    .finance-table.record-card-table td.documents-col-pdf::before {
        content: "PDF";
        flex: 0 0 auto;
    }

    .finance-table.record-card-table td.documents-col-parochos::before {
        content: "Πάροχος";
        flex: 0 0 auto;
    }

    .finance-table.record-card-table td.orders-col-pdf::before {
        content: "ΠΑΡΑΓΓΕΛΙΑ";
        flex: 0 0 auto;
    }

    .finance-table.record-card-table tbody tr.record-card-row > td.documents-col-pdf:only-of-type,
    .finance-table.record-card-table tbody tr.record-card-row > td.orders-col-pdf:only-of-type {
        flex: 1 1 100%;
    }

    .finance-table.record-card-table .finance-row-muted td[colspan] {
        display: block;
        flex: 1 1 100%;
        text-align: center;
        padding: 1rem 0.85rem;
    }

    .finance-table.record-card-table .finance-row-muted td[colspan]::before {
        content: none;
    }

    /* Orders — mobile card layout (expand + detail panel) */
    .orders-table-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .finance-table.orders-table {
        min-width: 0;
        width: 100%;
    }

    .finance-table.orders-table th.orders-col-expand,
    .finance-table.orders-table td.orders-col-expand,
    .finance-table.orders-table th.orders-col-date,
    .finance-table.orders-table td.orders-col-date,
    .finance-table.orders-table th.orders-col-time,
    .finance-table.orders-table td.orders-col-time,
    .finance-table.orders-table th.orders-col-order-no,
    .finance-table.orders-table td.orders-col-order-no,
    .finance-table.orders-table th.orders-col-type,
    .finance-table.orders-table td.orders-col-type,
    .finance-table.orders-table th.orders-col-status,
    .finance-table.orders-table td.orders-col-status,
    .finance-table.orders-table th.orders-col-total,
    .finance-table.orders-table td.orders-col-total,
    .finance-table.orders-table th.orders-col-notes,
    .finance-table.orders-table td.orders-col-notes,
    .finance-table.orders-table th.orders-col-pdf,
    .finance-table.orders-table td.orders-col-pdf {
        width: auto;
        min-width: 0;
        max-width: none;
    }

    .finance-table.record-card-table tbody tr.orders-data-row.record-card-row {
        position: relative;
        padding: 0;
    }

    .finance-table.record-card-table tbody tr.orders-data-row.record-card-row > td.record-card-meta {
        padding-right: 3.25rem;
    }

    .finance-table.record-card-table tbody tr.orders-data-row.record-card-row > td.orders-col-expand {
        position: absolute;
        top: 0.55rem;
        right: 0.65rem;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        justify-content: center;
        z-index: 1;
    }

    .finance-table.record-card-table tbody tr.orders-data-row.record-card-row > td.orders-col-expand::before {
        content: none;
    }

    .finance-table.record-card-table tbody tr.orders-data-row.is-expanded {
        border-radius: 12px 12px 0 0;
        margin-bottom: 0;
    }

    .finance-table.record-card-table tbody tr.orders-detail-row {
        display: block;
        margin: 0 0 0.75rem;
        padding: 0;
        border: 1px solid rgba(15, 46, 110, 0.12);
        border-top: 0;
        border-radius: 0 0 12px 12px;
        background: #fff;
        box-shadow: 0 2px 10px rgba(15, 46, 110, 0.08);
        overflow: hidden;
    }

    .finance-table.record-card-table tbody tr.orders-detail-row[hidden] {
        display: none !important;
    }

    .finance-table.record-card-table tbody tr.orders-detail-row > td {
        display: block;
        width: 100%;
        padding: 0;
        border: 0;
    }

    .finance-table.record-card-table tbody tr.orders-detail-row > td::before {
        content: none;
    }

    .order-detail-panel {
        padding: 0.85rem 0.75rem 1rem;
    }

    .order-lines-table {
        font-size: 0.78rem;
    }

    .order-lines-table th,
    .order-lines-table td {
        padding: 0.45rem 0.35rem;
    }

    /* Orders mobile cards — label above value, no clipped text */
    .finance-table.orders-table.record-card-table tbody tr.record-card-row > td.orders-col-type,
    .finance-table.orders-table.record-card-table tbody tr.record-card-row > td.orders-col-status,
    .finance-table.orders-table.record-card-table tbody tr.record-card-row > td.orders-col-notes {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0.35rem;
        text-align: left;
    }

    .finance-table.orders-table.record-card-table tbody tr.record-card-row > td.orders-col-total {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        text-align: left;
    }

    .finance-table.orders-table.record-card-table tbody tr.record-card-row > td.orders-col-type::before,
    .finance-table.orders-table.record-card-table tbody tr.record-card-row > td.orders-col-status::before,
    .finance-table.orders-table.record-card-table tbody tr.record-card-row > td.orders-col-total::before,
    .finance-table.orders-table.record-card-table tbody tr.record-card-row > td.orders-col-notes::before {
        flex: 0 0 auto;
        width: auto;
        max-width: 100%;
        white-space: nowrap;
    }

    .finance-table.orders-table.record-card-table td.orders-col-type {
        background: rgba(15, 150, 240, 0.07);
        font-weight: 600;
        font-size: 0.86rem;
        line-height: 1.45;
        word-break: break-word;
    }

    .finance-table.orders-table.record-card-table td.orders-col-notes {
        overflow: visible;
        text-overflow: unset;
        white-space: normal;
        word-break: break-word;
        line-height: 1.45;
    }

    .finance-table.orders-table.record-card-table .orders-status-pill {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        max-width: none;
        align-self: flex-start;
        line-height: 1.4;
    }

    .finance-table.orders-table.record-card-table td.orders-col-total .orders-total {
        flex-shrink: 0;
        margin-left: auto;
        white-space: nowrap;
    }

    .finance-customer-readonly {
        display: block;
        width: 100%;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        word-break: break-word;
        line-height: 1.4;
        height: auto;
        min-height: 2.2rem;
    }
}

@media (max-width: 640px) {
    .finance-table.record-card-table tbody tr.record-card-row > td:not(.record-card-meta) {
        padding: 0.45rem 0.75rem;
    }

    .finance-table.orders-table.record-card-table tbody tr.orders-data-row.record-card-row > td.record-card-meta {
        padding-right: 2.85rem;
        font-size: 0.88rem;
    }

    .finance-table.orders-table.record-card-table tbody tr.orders-data-row.record-card-row > td.orders-col-expand {
        top: 0.5rem;
        right: 0.55rem;
    }

    .order-lines-wrap {
        margin: 0;
        border-radius: 8px;
    }

    .order-lines-table thead {
        display: none;
    }

    .order-lines-table tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.35rem 0.75rem;
        padding: 0.65rem 0.5rem;
        border-bottom: 1px solid rgba(15, 46, 110, 0.08);
    }

    .order-lines-table tbody tr:last-child {
        border-bottom: 0;
    }

    .order-lines-table tbody td {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.2rem;
        padding: 0;
        border: 0;
        text-align: center;
    }

    .order-lines-table tbody td::before {
        font-size: 0.58rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--text-muted, #64748b);
        line-height: 1.25;
    }

    .order-lines-table tbody td.order-lines-code::before { content: "Κωδικός"; }
    .order-lines-table tbody td.order-lines-name {
        grid-column: 1 / -1;
        align-items: flex-start;
        text-align: left;
    }
    .order-lines-table tbody td.order-lines-name::before { content: "Περιγραφή"; align-self: flex-start; }
    .order-lines-table tbody td.order-lines-qty::before { content: "Ποσότητα"; }
    .order-lines-table tbody td.order-lines-price::before { content: "Τιμή"; }
    .order-lines-table tbody td.order-lines-vat::before { content: "ΦΠΑ"; }
    .order-lines-table tbody td.order-lines-total::before { content: "Σύνολο"; }

    .order-lines-table tbody td.order-lines-name {
        font-weight: 600;
        line-height: 1.4;
    }

    .finance-table.record-card-table td.documents-col-pdf .documents-pdf-link,
    .finance-table.record-card-table td.orders-col-pdf .documents-pdf-link,
    .finance-table.record-card-table td .documents-parochos-link {
        width: 42px;
        height: 42px;
        padding: 4px;
    }
}



/* ========== Premium theme (merged from app-premium.css) ========== */
:root {
    --bg-deep: #eef1f6;
    --bg-panel: #ffffff;
    --bg-elevated: #f8fafc;
    --border: rgba(15, 23, 42, 0.08);
    --text: #0f172a;
    --text-muted: #64748b;
    --accent: #2563eb;
    --accent-dim: rgba(37, 99, 235, 0.12);
    --accent-strong: #0f2e6e;
    --accent-hover: #1d4ed8;
    --accent-glow: rgba(37, 99, 235, 0.35);
    --sidebar-bg: linear-gradient(180deg, #0c1222 0%, #131b2e 48%, #0f1628 100%);
    --sidebar-border: rgba(255, 255, 255, 0.06);
    --sidebar-text: rgba(226, 232, 240, 0.72);
    --sidebar-text-active: #ffffff;
    --radius: 16px;
    --radius-sm: 12px;
    --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 20px 40px -12px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, 0.18);
    --font-display: "Plus Jakarta Sans", "Outfit", system-ui, sans-serif;
    --font-body: "Plus Jakarta Sans", "Manrope", system-ui, sans-serif;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ——— Login / register ——— */
.login-bg {
    background:
        radial-gradient(ellipse 90% 60% at 10% 0%, rgba(37, 99, 235, 0.18), transparent 55%),
        radial-gradient(ellipse 70% 50% at 100% 100%, rgba(15, 46, 110, 0.12), transparent 50%),
        linear-gradient(165deg, #e8edf5 0%, #f1f5f9 40%, #e2e8f0 100%);
}

.login-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-lg);
}

.login-hero-title {
    background: linear-gradient(135deg, #0f172a 0%, #0f2e6e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ——— Dashboard shell ——— */
.dashboard-body {
    background:
        radial-gradient(ellipse 120% 80% at 100% 0%, rgba(37, 99, 235, 0.06), transparent 45%),
        var(--bg-deep);
}

.sidebar {
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

.sidebar-head {
    padding: 1rem 0.85rem 1.1rem;
    border-bottom: 1px solid var(--sidebar-border);
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-logo {
    max-height: min(5.5rem, 22vw);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.sidebar-nav {
    padding: 1rem 0.65rem;
    gap: 0.25rem;
}

.nav-link {
    color: var(--sidebar-text);
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.nav-link:hover {
    color: var(--sidebar-text-active);
    background: rgba(255, 255, 255, 0.08);
}

.nav-link.is-active {
    color: var(--sidebar-text-active);
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.35), rgba(37, 99, 235, 0.12));
    box-shadow:
        inset 3px 0 0 #3b82f6,
        0 4px 12px rgba(0, 0, 0, 0.12);
    font-weight: 600;
}

.nav-link.is-active .nav-icon {
    color: #93c5fd;
    opacity: 1;
}

.dashboard-content {
    padding: clamp(1rem, 2.5vw, 1.5rem);
    gap: 1.15rem;
}

.top-bar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
    padding: 0.9rem 1.25rem;
}

.top-bar-title {
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--accent-strong);
}

.user-chip {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid rgba(15, 46, 110, 0.12);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    font-weight: 600;
}

.account-card-trigger {
    background: linear-gradient(180deg, #ffffff, #f1f5f9);
    border: 1px solid rgba(15, 46, 110, 0.14);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    border-radius: 999px;
}

.account-card-panel {
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(15, 46, 110, 0.1);
}

.main-stage {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--shadow);
    padding: clamp(1.35rem, 3vw, 2rem);
}

.panel.is-visible {
    animation: premium-fade-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes premium-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.panel-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.panel-header h2::after {
    content: "";
    display: block;
    width: 2.5rem;
    height: 3px;
    margin-top: 0.45rem;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

/* ——— Segmented nav ——— */
.segmented {
    gap: 0.35rem;
    padding: 0.35rem;
    background: #f1f5f9;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.seg-btn {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--text-muted);
    font-weight: 600;
    transition: all 0.2s ease;
}

.seg-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.6);
}

.seg-btn.is-active,
a.seg-btn.is-active {
    background: #ffffff;
    color: var(--accent-strong);
    border-color: rgba(15, 46, 110, 0.1);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

/* ——— Buttons (shape only; colors scoped to .dashboard-content / .login-body below) ——— */
.btn {
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.btn-secondary {
    background: #fff;
    border-color: rgba(15, 46, 110, 0.2);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: #f8fafc;
}

/* ——— Forms / toolbar ——— */
.finance-toolbar {
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.finance-field input[type="date"],
.finance-field input[type="text"],
.finance-field input[type="email"],
.finance-field input[type="password"],
.finance-field select,
.finance-field textarea,
.field input,
.field select,
.field textarea {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.finance-field input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
    outline: none;
}

.finance-field-label,
.field-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ——— Tables (Amazon-style data grid) ——— */
.finance-table-wrap {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    background: #fff;
}

.finance-table {
    font-size: 0.875rem;
}

.finance-table thead th {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #475569;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    border-bottom: 2px solid rgba(15, 46, 110, 0.1);
    padding: 0.7rem 0.75rem;
}

.finance-table tbody tr {
    transition: background 0.12s ease;
}

.finance-table tbody tr:hover td {
    background: rgba(37, 99, 235, 0.04);
}

.finance-table tbody tr td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.finance-table.documents-table tbody tr + tr td {
    border-top: none !important;
}

.finance-table tbody tr:nth-child(even) td {
    background: rgba(248, 250, 252, 0.6);
}

.finance-table tbody tr:hover td {
    background: rgba(37, 99, 235, 0.06) !important;
}

.finance-row-muted td {
    background: #f8fafc !important;
    color: var(--text-muted);
}

.finance-total-bar {
    background: linear-gradient(90deg, rgba(15, 46, 110, 0.04), rgba(37, 99, 235, 0.06));
    border: 1px solid rgba(15, 46, 110, 0.1);
    border-radius: var(--radius-sm);
}

.finance-total-value {
    font-size: 1.15rem;
    color: var(--accent-strong);
}

/* ——— Stat cards ——— */
.stat-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.stat-value {
    color: var(--accent-strong);
    letter-spacing: -0.02em;
}

/* ——— Deposit cards ——— */
.deposit-iris-card,
.deposit-viva-card {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.deposit-iris-header {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(15, 46, 110, 0.05));
}

/* ——— Support hub ——— */
.support-card,
.support-ticket-card,
.support-compose-card {
    border-radius: var(--radius-sm);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.support-status-badge {
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* ——— PDF / action icons ——— */
.finance-table.documents-table td .documents-pdf-link,
.finance-table.documents-table td .documents-parochos-link,
.finance-table.orders-table td .documents-pdf-link {
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.finance-table.documents-table td .documents-pdf-link:hover,
.finance-table.documents-table td .documents-parochos-link:hover,
.finance-table.orders-table td .documents-pdf-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

/* ——— Mobile menu ——— */
.mobile-menu-btn {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

@media (max-width: 900px) {
    .sidebar {
        box-shadow: 8px 0 40px rgba(0, 0, 0, 0.35);
    }

    .finance-table tr {
        border-radius: var(--radius-sm);
        box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
        border: 1px solid rgba(15, 23, 42, 0.08);
    }
}

/* ——— Scrollbar (WebKit) ——— */
.sidebar-nav::-webkit-scrollbar,
.finance-table-wrap::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.finance-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.15);
    border-radius: 3px;
}

/* ——— Novelsoft brand colors: main content + login only (sidebar untouched) ——— */
.dashboard-content,
.login-body {
    --brand-blue: #0f96f0;
    --brand-blue-deep: #0f48f0;
    --brand-navy: #0f2e6e;
    --accent: var(--brand-blue);
    --accent-hover: #38a8f5;
    --accent-strong: var(--brand-navy);
    --accent-dim: rgba(15, 150, 240, 0.14);
    --accent-glow: rgba(15, 150, 240, 0.35);
}

.dashboard-body {
    background:
        radial-gradient(ellipse 120% 80% at 100% 0%, rgba(15, 150, 240, 0.07), transparent 45%),
        #f0f4f9;
}

.login-bg {
    background:
        radial-gradient(ellipse 90% 60% at 10% 0%, rgba(15, 150, 240, 0.14), transparent 55%),
        radial-gradient(ellipse 70% 50% at 100% 100%, rgba(15, 46, 110, 0.12), transparent 50%),
        linear-gradient(165deg, #e8eef6 0%, #f0f4f9 42%, #e4ebf4 100%);
}

.login-body .login-hero-title {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dashboard-content .btn-primary,
.login-body .btn-primary {
    background: var(--brand-blue);
    border: none;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.dashboard-content .btn-primary:hover,
.login-body .btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 18px var(--accent-glow);
    transform: none;
}

.dashboard-content .btn-primary:active,
.login-body .btn-primary:active {
    transform: none;
}

.dashboard-content .btn-secondary:hover {
    border-color: var(--brand-blue);
}

.dashboard-content .panel-header h2::after {
    background: linear-gradient(to right, var(--brand-blue-deep), var(--brand-blue));
    opacity: 0.92;
}

.dashboard-content .seg-btn.is-active,
.dashboard-content a.seg-btn.is-active {
    color: var(--brand-navy);
    border-bottom: 2px solid var(--brand-blue);
}

.dashboard-content .finance-field input:focus,
.dashboard-content .finance-field select:focus,
.dashboard-content .finance-field textarea:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.dashboard-content .finance-total-value,
.dashboard-content .stat-value {
    color: var(--brand-navy);
}

.dashboard-content .finance-table thead th {
    color: var(--brand-navy);
    background: #eef3f9;
    border-bottom: 2px solid rgba(15, 150, 240, 0.28);
}

.dashboard-content .finance-table tbody tr:hover td {
    background: rgba(15, 150, 240, 0.06) !important;
}

.dashboard-content .finance-total-bar {
    background: linear-gradient(90deg, rgba(15, 46, 110, 0.04), rgba(15, 150, 240, 0.07));
    border-color: rgba(15, 46, 110, 0.12);
}

/* ——— Profile dropdown (floats above content, no screen overlay) ——— */
.dashboard-content .top-bar:has(.account-card-wrap.is-open) {
    position: relative;
    z-index: 200;
}

.dashboard-content .account-card-wrap.is-open {
    z-index: 201;
}

.dashboard-content .account-card-trigger {
    position: relative;
    z-index: 2;
    background: #fff;
    border-color: rgba(15, 46, 110, 0.16);
    color: var(--brand-navy);
}

.dashboard-content .account-card-wrap.is-open .account-card-trigger {
    border-color: rgba(15, 150, 240, 0.45);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.dashboard-content .account-card-trigger-icon,
.dashboard-content .account-card-chevron {
    color: var(--brand-navy);
}

.dashboard-content .account-card-panel {
    z-index: 1;
    border-color: rgba(15, 150, 240, 0.22);
    box-shadow:
        0 20px 48px rgba(15, 46, 110, 0.22),
        0 8px 20px rgba(15, 150, 240, 0.12);
}

.dashboard-content .account-card-header {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-blue-deep) 55%, var(--brand-blue) 100%);
    border-bottom: 1px solid rgba(15, 150, 240, 0.28);
}

.dashboard-content .account-card-title {
    color: #fff;
}

.dashboard-content .account-card-tax-id {
    color: rgba(255, 255, 255, 0.82);
}

.dashboard-content .account-card-metric dd {
    color: var(--brand-navy);
}

.dashboard-content .account-card-footer {
    background: #f0f4f9;
    border-top: 1px solid rgba(15, 46, 110, 0.1);
}

.dashboard-content .account-card-logout:hover {
    color: var(--brand-blue);
}

/* ——— Mobile: undo desktop table chrome so card layout works ——— */
@media (max-width: 900px) {
    .finance-table-wrap {
        overflow: visible;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .finance-table tbody tr:nth-child(even) td {
        background: transparent;
    }

    .finance-table tbody tr:hover td {
        background: transparent !important;
    }

    .finance-table.documents-table tbody tr + tr td {
        border-top: none !important;
    }

    .main-stage {
        padding: clamp(0.85rem, 3vw, 1rem);
    }

    .finance-toolbar {
        padding: 0.85rem;
    }

    .segmented {
        flex-wrap: wrap;
    }

    .login-layout {
        align-content: start;
    }

    .login-card {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .dashboard-content {
        padding-left: max(0.65rem, env(safe-area-inset-left, 0));
        padding-right: max(0.65rem, env(safe-area-inset-right, 0));
    }

    .top-bar-title {
        line-height: 1.25;
    }

    .panel-header h2 {
        font-size: 1.1rem;
    }

    .finance-field input,
    .finance-field select,
    .finance-field textarea,
    .login-body .field input {
        font-size: 16px;
        min-height: 2.75rem;
    }

    .login-body input[type="password"] {
        font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        font-size: 16px;
    }

    .finance-table.documents-table tbody tr,
    .finance-table.orders-table tbody tr {
        box-shadow: 0 3px 14px rgba(15, 46, 110, 0.09);
    }
}

/* Orders table — column layout & expandable line details */
.orders-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.finance-table.orders-table {
    width: 100%;
    min-width: 56rem;
}

.finance-table.orders-table thead th {
    white-space: nowrap;
    font-size: 0.68rem;
    letter-spacing: 0.03em;
    line-height: 1.25;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.finance-table.orders-table th.orders-col-expand,
.finance-table.orders-table td.orders-col-expand {
    width: 2.5rem;
    min-width: 2.5rem;
    max-width: 2.5rem;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
    text-align: center;
}

.finance-table.orders-table th.orders-col-date,
.finance-table.orders-table td.orders-col-date {
    width: 6.25rem;
    white-space: nowrap;
}

.finance-table.orders-table th.orders-col-time,
.finance-table.orders-table td.orders-col-time {
    width: 3.75rem;
    white-space: nowrap;
}

.finance-table.orders-table th.orders-col-order-no,
.finance-table.orders-table td.orders-col-order-no {
    min-width: 7.5rem;
    white-space: nowrap;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.finance-table.orders-table th.orders-col-order-no {
    min-width: 8.75rem;
}

.finance-table.orders-table th.orders-col-type,
.finance-table.orders-table td.orders-col-type {
    min-width: 9rem;
    max-width: 14rem;
}

.finance-table.orders-table th.orders-col-status,
.finance-table.orders-table td.orders-col-status {
    min-width: 6.5rem;
    max-width: 10rem;
}

.finance-table.orders-table th.orders-col-total,
.finance-table.orders-table td.orders-col-total {
    width: 6.5rem;
    white-space: nowrap;
    text-align: right;
}

.finance-table.orders-table th.orders-col-notes,
.finance-table.orders-table td.orders-col-notes {
    min-width: 6rem;
    max-width: 11rem;
}

.finance-table.orders-table td.orders-col-notes {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.finance-table.orders-table th.orders-col-pdf,
.finance-table.orders-table td.orders-col-pdf {
    width: 6.5rem;
    min-width: 6.5rem;
}

.orders-data-row.is-expandable {
    cursor: pointer;
    transition: background 0.15s ease;
}

.orders-data-row.is-expandable:hover {
    background: rgba(15, 150, 240, 0.05);
}

.orders-data-row.is-expanded {
    background: rgba(15, 150, 240, 0.08);
}

.orders-expand-btn {
    display: inline-grid;
    place-items: center;
    width: 1.85rem;
    height: 1.85rem;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(15, 46, 110, 0.14);
    border-radius: 8px;
    background: #fff;
    color: var(--accent-strong, #0f48f0);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.orders-expand-btn:hover {
    background: rgba(15, 150, 240, 0.1);
    border-color: rgba(15, 150, 240, 0.35);
}

.orders-expand-icon {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.orders-data-row.is-expanded .orders-expand-icon {
    transform: rotate(180deg);
}

.orders-status-pill {
    display: inline-block;
    max-width: 100%;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(15, 150, 240, 0.1);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.orders-detail-row > td {
    padding: 0 !important;
    border-bottom: 1px solid rgba(15, 46, 110, 0.12);
    background: linear-gradient(180deg, rgba(15, 150, 240, 0.06), rgba(255, 255, 255, 0.4));
}

.order-detail-panel {
    padding: 1rem 1.1rem 1.15rem;
}

.order-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.order-detail-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary, #0f2e6e);
}

.order-detail-sub {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
}

.order-detail-total-box {
    flex-shrink: 0;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(15, 46, 110, 0.12);
    text-align: right;
    box-shadow: 0 4px 14px rgba(15, 46, 110, 0.06);
}

.order-detail-total-box strong {
    display: block;
    margin-top: 0.15rem;
    font-size: 1.1rem;
    color: var(--accent-strong, #0f48f0);
}

.order-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.55rem 1rem;
    margin-bottom: 0.9rem;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 46, 110, 0.08);
}

.order-detail-meta-wide {
    grid-column: 1 / -1;
}

.order-detail-meta-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted, #64748b);
    margin-bottom: 0.12rem;
}

.order-detail-meta-item span:last-child {
    font-size: 0.86rem;
    line-height: 1.4;
}

.order-lines-wrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid rgba(15, 46, 110, 0.1);
    background: #fff;
}

.order-lines-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.order-lines-table th,
.order-lines-table td {
    padding: 0.55rem 0.7rem;
    border-bottom: 1px solid rgba(15, 46, 110, 0.08);
    vertical-align: top;
}

.order-lines-table thead th {
    background: rgba(15, 46, 110, 0.04);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted, #64748b);
    white-space: nowrap;
}

.order-lines-table tbody tr:last-child td {
    border-bottom: 0;
}

.order-lines-code {
    width: 7rem;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted, #64748b);
}

.order-lines-name {
    min-width: 12rem;
}

.order-lines-col-code {
    width: 16%;
}

.order-lines-col-name {
    width: 32%;
}

.order-lines-col-qty {
    width: 5.5rem;
}

.order-lines-col-num {
    width: 4.75rem;
}

.order-lines-num {
    white-space: nowrap;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.order-lines-qty {
    min-width: 5.5rem;
}

.order-lines-table thead th.order-lines-qty,
.order-lines-table tbody td.order-lines-qty {
    text-align: center;
    vertical-align: top;
}

.order-detail-loading,
.order-detail-error {
    margin: 0;
    padding: 0.5rem 0;
    font-size: 0.88rem;
}

.order-detail-error {
    color: #b91c1c;
}

@media (max-width: 900px) {
    .finance-table.orders-table {
        min-width: 0;
    }

    .order-detail-head {
        flex-direction: column;
    }

    .order-detail-total-box {
        align-self: flex-start;
        text-align: left;
    }
}

/* ——— 2FA verify + enrollment prompt ——— */
.form-info {
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    background: #e8f4fd;
    border: 1px solid #b8daf5;
    color: #0f4c81;
    font-size: 0.9rem;
    line-height: 1.45;
}

.login-form--inline {
    margin-top: 0.75rem;
}

.login-layout--compact {
    min-height: 100vh;
    justify-content: center;
}

body.b2b-2fa-open {
    overflow: hidden;
}

.b2b-2fa-overlay {
    position: fixed;
    inset: 0;
    z-index: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.b2b-2fa-overlay[hidden] {
    display: none !important;
}

.b2b-2fa-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 46, 110, 0.45);
    backdrop-filter: blur(4px);
}

.b2b-2fa-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 26rem);
    background: #fff;
    border-radius: var(--radius-md, 12px);
    box-shadow:
        0 24px 64px rgba(15, 46, 110, 0.28),
        0 8px 24px rgba(15, 150, 240, 0.14);
    border: 1px solid rgba(15, 150, 240, 0.2);
    padding: 1.5rem 1.35rem 1.35rem;
}

.b2b-2fa-dialog-head {
    margin-bottom: 0.85rem;
}

.b2b-2fa-title {
    margin: 0.35rem 0 0.5rem;
    font-size: 1.35rem;
    line-height: 1.25;
    color: var(--text, #111827);
}

.b2b-2fa-lead {
    margin: 0 0 1.15rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--muted, #5a5d6b);
}

.b2b-2fa-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.b2b-2fa-foot {
    margin: 0.9rem 0 0;
    text-align: center;
}

.b2b-2fa-overlay--verify {
    z-index: 700;
}

.b2b-2fa-dialog--verify {
    width: min(100%, 24rem);
    padding: 1.65rem 1.45rem 1.4rem;
}

.b2b-2fa-verify-lead {
    margin: 0;
    line-height: 1.55;
}

.b2b-2fa-verify-form {
    margin-bottom: 0.75rem;
}

.b2b-2fa-verify-form #b2b-2fa-code {
    font-family: ui-monospace, Consolas, "Liberation Mono", monospace;
    font-size: 1.35rem;
    letter-spacing: 0.28em;
    text-align: center;
}

.b2b-2fa-verify-actions {
    display: grid;
    gap: 0.55rem;
}

.form-error[hidden],
.form-info[hidden],
.b2b-2fa-foot[hidden] {
    display: none !important;
}

/* Billing tasks admin */
.billing-hub {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.support-hero--compact {
    margin-bottom: 0;
}

.billing-hub-nav {
    margin-bottom: 0.25rem;
}

.billing-hub-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 1.25rem;
    align-items: start;
}

.billing-hub-main {
    min-width: 0;
}

.billing-hub-aside {
    position: sticky;
    top: 1rem;
}

.billing-hub-single {
    max-width: 820px;
}

.billing-tasks-card--wide {
    padding: 1.5rem;
}

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

.billing-form-col--full {
    grid-column: 1 / -1;
}

.billing-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle, #e8ecf1);
}

.billing-tasks-radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.billing-tasks-toolbar {
    margin-bottom: 0.75rem;
}

.billing-empty {
    padding: 2rem 1rem;
    text-align: center;
    background: var(--surface-muted, #f6f8fb);
    border-radius: 12px;
}

.billing-empty p {
    margin: 0 0 1rem;
}

.billing-status {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.billing-status--pending {
    background: #fff4e5;
    color: #9a5b00;
}

.billing-status--invoiced {
    background: #e8f5ee;
    color: #1f6b42;
}

.billing-status--completed {
    background: #e8f0ff;
    color: #1f4f8b;
}

.billing-flow-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.billing-flow-stat {
    padding: 0.85rem 1rem;
    background: var(--surface-muted, #f6f8fb);
    border-radius: 10px;
    text-align: center;
}

.billing-flow-stat__val {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
}

.billing-flow-stat__lbl {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.82rem;
    color: var(--text-muted, #667085);
}

.billing-tasks-check {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    white-space: nowrap;
    cursor: pointer;
}

.billing-tasks-check input {
    width: 1rem;
    height: 1rem;
}

.billing-order-preview-card {
    padding: 0.85rem 1rem;
    background: var(--surface-muted, #f6f8fb);
    border-radius: 10px;
    margin-bottom: 0.85rem;
}

.billing-order-preview-card__count {
    margin: 0 0 0.35rem;
}

.billing-order-preview-card__total {
    margin: 0;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.35rem 0.65rem;
    font-size: 0.82rem;
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-subtle, #d8dee8);
}

.billing-tasks-card__desc {
    margin: -0.35rem 0 1rem;
    font-size: 0.9rem;
}

.billing-tasks-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.billing-tasks-card {
    background: var(--surface-elevated, #fff);
    border: 1px solid var(--border-subtle, #e8ecf1);
    border-radius: 14px;
    padding: 1.25rem;
}

.billing-tasks-card__title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
}

.billing-tasks-label {
    display: block;
    margin: 0.75rem 0 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.billing-tasks-form select,
.billing-tasks-form input[type="text"],
.billing-tasks-form input[type="number"],
.billing-tasks-form input[type="date"],
.billing-tasks-form textarea,
.billing-tasks-order-form select,
.billing-tasks-order-form input[type="month"] {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border-subtle, #d8dee8);
    border-radius: 8px;
    font: inherit;
}

.billing-tasks-fieldset {
    margin: 1rem 0 0;
    padding: 0.75rem;
    border: 1px solid var(--border-subtle, #e8ecf1);
    border-radius: 8px;
}

.billing-tasks-radio {
    display: block;
    margin: 0.35rem 0;
}

.billing-tasks-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.billing-tasks-rate-custom {
    margin-top: 0.5rem;
}

.billing-tasks-preview {
    margin: 0.5rem 0 0;
}

.billing-tasks-submit {
    margin-top: 1rem;
    width: 100%;
}

.billing-tasks-order-summary {
    margin-top: 1rem;
    padding: 0.85rem;
    background: var(--surface-muted, #f6f8fb);
    border-radius: 8px;
}

.billing-tasks-list__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.billing-tasks-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.billing-tasks-filters select,
.billing-tasks-filters input[type="month"] {
    padding: 0.45rem 0.55rem;
    border: 1px solid var(--border-subtle, #d8dee8);
    border-radius: 8px;
    font: inherit;
}

.billing-tasks-summary {
    margin-bottom: 0.75rem;
}

.billing-tasks-delete-form {
    margin: 0;
}

.billing-customer-combo {
    position: relative;
}

.billing-customer-combo__input {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border-subtle, #d8dee8);
    border-radius: 8px;
    font: inherit;
}

.billing-customer-combo__list {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    margin: 0;
    padding: 0.25rem 0;
    list-style: none;
    max-height: 240px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--border-subtle, #d8dee8);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.billing-customer-combo__item {
    padding: 0.55rem 0.75rem;
    cursor: pointer;
    font-size: 0.92rem;
}

.billing-customer-combo__item:hover,
.billing-customer-combo__item.is-active {
    background: var(--surface-muted, #f6f8fb);
}

.billing-customer-combo__item--disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.billing-customer-combo__hint {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
}

.billing-customer-combo__hint--err {
    color: #b42318;
}

@media (max-width: 900px) {
    .billing-hub-grid {
        grid-template-columns: 1fr;
    }

    .billing-hub-aside {
        position: static;
    }

    .billing-form-grid {
        grid-template-columns: 1fr;
    }

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

    .billing-tasks-grid {
        grid-template-columns: 1fr;
    }

    .billing-tasks-row {
        grid-template-columns: 1fr;
    }
}

