@import url('ourclassmate-fonts.css?v=20260906a');

/*
 * OurClassMate Vuexy system
 * Source direction: Vuexy Vue/Laravel v10.11.1, adapted to the existing
 * server-rendered Laravel surfaces. Tenant colors remain runtime variables.
 */

:root {
    --oc-font: "Public Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --oc-primary: #102070;
    --oc-primary-strong: #001040;
    --oc-secondary: #ff7a00;
    --oc-info: #2092ec;
    --oc-violet: #6c5ce7;
    --oc-success: #12805c;
    --oc-warning: #b54708;
    --oc-danger: #b42318;
    --oc-ink: #101828;
    --oc-bg: #f7f9ff;
    --oc-surface: #ffffff;
    --oc-surface-soft: #f3f5fb;
    --oc-border: #e4e8f2;
    --oc-muted: #475467;
    --oc-subtle: #667085;
    --oc-sidebar: #001040;
    --oc-sidebar-surface: #ffffff;
    --oc-sidebar-border: #e7e9f1;
    --oc-sidebar-text: #444050;
    --oc-sidebar-muted: #6d6b77;
    --oc-sidebar-label: #a3a1ad;
    --oc-sidebar-hover: #f2f2f5;
    --oc-sidebar-active: #102070;
    --oc-sidebar-width: 272px;
    --oc-radius-xs: 6px;
    --oc-radius-sm: 8px;
    --oc-radius: 12px;
    --oc-space-xs: 4px;
    --oc-space-sm: 8px;
    --oc-space-md: 12px;
    --oc-space-lg: 16px;
    --oc-space-xl: 24px;
    --oc-space-2xl: 32px;
    --oc-ease: cubic-bezier(.22, 1, .36, 1);
    --oc-speed: 180ms;
    --oc-shadow-navbar: 0 2px 8px rgba(16, 24, 40, .08);
}

html[data-theme="dark"] {
    --oc-bg: #0b1220;
    --oc-surface: #111827;
    --oc-surface-soft: #172033;
    --oc-border: #273247;
    --oc-ink: #e5e7eb;
    --oc-muted: #c0c7d4;
    --oc-subtle: #9aa6b8;
    --oc-sidebar-surface: var(--oc-surface);
    --oc-sidebar-border: var(--oc-border);
    --oc-sidebar-text: var(--oc-ink);
    --oc-sidebar-muted: var(--oc-muted);
    --oc-sidebar-label: var(--oc-subtle);
    --oc-sidebar-hover: var(--oc-surface-soft);
    color-scheme: dark;
}

html {
    background: var(--oc-bg);
    font-size: 16px;
}

body.oc-shell {
    --primary: var(--oc-primary);
    --primary-dark: var(--oc-primary-strong);
    --bg: var(--oc-bg);
    --surface: var(--oc-surface);
    --surface-raised: var(--oc-surface);
    --surface-muted: var(--oc-surface-soft);
    --border: var(--oc-border);
    --text: var(--oc-ink);
    --text-muted: var(--oc-muted);
    --text-light: var(--oc-subtle);
    --sidebar-w: var(--oc-sidebar-width);
    --radius: var(--oc-radius);
    --radius-sm: var(--oc-radius-sm);
    margin: 0;
    min-width: 320px;
    background: var(--oc-bg) !important;
    color: var(--oc-ink) !important;
    font-family: var(--oc-font) !important;
    font-size: 1rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.oc-shell :where(button, input, select, textarea) {
    font: inherit;
}

body.oc-shell :where(a, button, input, select, textarea, summary):focus-visible {
    outline: 2px solid color-mix(in srgb, var(--accent, var(--oc-primary)) 72%, white);
    outline-offset: 2px;
}

body.oc-shell :where(h1, h2, h3, p) {
    text-wrap: pretty;
}

body.oc-shell :where(.page-title, .topbar h1, .card-title, .panel-title, .chart-title, .section-title) {
    font-family: var(--oc-font) !important;
}

body.oc-shell :where(.metric-value, .stat-value, .kpi-value, td.num, .num, code) {
    font-variant-numeric: tabular-nums;
}

/* App navigation */
body.oc-shell .sidebar {
    width: var(--oc-sidebar-width) !important;
    background: var(--oc-sidebar-surface) !important;
    border: 0 !important;
    border-right: 1px solid var(--oc-sidebar-border) !important;
    color: var(--oc-sidebar-text) !important;
    z-index: 60 !important;
    box-shadow: none !important;
}

body.oc-shell .sidebar-brand {
    min-height: 78px;
    padding: 14px 16px !important;
    border-bottom: 1px solid var(--oc-sidebar-border) !important;
    display: flex;
    align-items: center;
}

body.oc-shell .sidebar-brand :where(.brand-name, .sidebar-brand-inner) {
    width: 100%;
}

body.oc-shell-association .sidebar-logo {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center !important;
    gap: 12px !important;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 4px 8px !important;
}

body.oc-shell-association .sidebar-brand-copy {
    display: flex;
    min-width: 0;
    min-height: 44px;
    flex-direction: column;
    justify-content: center;
}

body.oc-shell-association .sidebar-brand-copy .assoc-name,
body.oc-shell-association .sidebar-brand-copy .assoc-sub {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.oc-shell-association .sidebar-brand-copy .assoc-sub {
    margin-top: 2px !important;
    line-height: 1.25;
}

body.oc-shell .sidebar-brand-inner {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
}

body.oc-shell .sidebar-brand img,
body.oc-shell .brand-name img {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    object-fit: contain !important;
}

body.oc-shell .brand-name {
    display: flex !important;
    align-items: center;
    gap: 10px !important;
    color: var(--oc-sidebar-text) !important;
    font-size: 1.08rem !important;
    font-weight: 700 !important;
    letter-spacing: -.02em !important;
}

body.oc-shell .brand-name > span,
body.oc-shell :where(.assoc-name, .sidebar-brand .nm) {
    color: var(--oc-sidebar-text) !important;
}

body.oc-shell .brand-name > span span {
    color: var(--oc-secondary) !important;
}

body.oc-shell :where(.brand-sub, .assoc-sub, .sidebar-brand .sb) {
    color: var(--oc-sidebar-muted) !important;
    font-size: .72rem !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.oc-shell :where(.sidebar-nav, .nav) {
    padding: 10px 12px 18px !important;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--oc-sidebar-muted) 35%, transparent) transparent;
}

body.oc-shell :where(.nav-group-label, .nav-label) {
    padding: 18px 12px 6px !important;
    /* Section headers carry the sidebar ink, not the faint label grey: at
       .7rem uppercase the old #a3a1ad sat near 2.6:1 and read as disabled. */
    color: var(--oc-sidebar-text) !important;
    font-size: .7rem !important;
    font-weight: 800 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
}

body.oc-shell :where(.nav-item a, .nav a) {
    min-height: 42px !important;
    padding: 9px 12px !important;
    border-radius: var(--oc-radius-sm) !important;
    gap: 12px !important;
    color: var(--oc-sidebar-muted) !important;
    font-size: .875rem !important;
    font-weight: 500 !important;
    transform: none !important;
    transition: background-color var(--oc-speed) var(--oc-ease), color var(--oc-speed) var(--oc-ease) !important;
}

body.oc-shell :where(.nav-item a, .nav a):hover {
    background: var(--oc-sidebar-hover) !important;
    color: var(--oc-sidebar-text) !important;
}

body.oc-shell :where(.nav-item a, .nav a).active {
    background: var(--sidebar-active, var(--oc-sidebar-active)) !important;
    color: #fff !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18) !important;
}

body.oc-shell :where(.nav-item a, .nav a).active::before {
    display: none !important;
}

body.oc-shell :where(.nav-icon, .nav a svg) {
    width: 20px !important;
    height: 20px !important;
    opacity: 1 !important;
    flex: 0 0 20px;
}

body.oc-shell .nav-icon svg {
    width: 20px !important;
    height: 20px !important;
    stroke-width: 1.8 !important;
}

body.oc-shell .nav-badge {
    min-width: 22px !important;
    height: 22px !important;
    padding: 0 6px !important;
    background: var(--oc-danger) !important;
    font-size: .68rem !important;
}

body.oc-shell :where(.sidebar-footer, .sidebar-foot) {
    padding: 14px 16px 18px !important;
    border-top: 1px solid var(--oc-sidebar-border) !important;
}

body.oc-shell :where(.sidebar-logo, .sidebar-brand-inner, .switch-admin) {
    border-color: var(--oc-sidebar-border) !important;
    background: var(--oc-sidebar-hover) !important;
    color: var(--oc-sidebar-text) !important;
}

body.oc-shell :where(.user-avatar, .user .ph) {
    border-color: var(--oc-sidebar-border) !important;
    background: var(--oc-sidebar-hover) !important;
    color: var(--oc-sidebar-text) !important;
}

body.oc-shell :where(.user-avatar, .user img, .user .ph) {
    width: 36px !important;
    height: 36px !important;
}

body.oc-shell :where(.user-name, .user .nm) {
    color: var(--oc-sidebar-text) !important;
    font-size: .8125rem !important;
    font-weight: 600 !important;
}

body.oc-shell :where(.user-role, .user .rl, .logout, .logout-btn) {
    color: var(--oc-sidebar-muted) !important;
    font-size: .75rem !important;
}

/* Detached Vuexy navbar */
body.oc-shell :where(.main-wrap, .main) {
    margin-left: var(--oc-sidebar-width) !important;
    min-width: 0;
    background: var(--oc-bg);
}

body.oc-shell .topbar {
    min-height: 64px !important;
    height: auto !important;
    margin: 16px 24px 0 !important;
    padding: 10px 14px !important;
    top: 12px !important;
    border: 0 !important;
    border-radius: var(--oc-radius) !important;
    background: color-mix(in srgb, var(--oc-surface) 96%, transparent) !important;
    box-shadow: var(--oc-shadow-navbar) !important;
    backdrop-filter: blur(12px) !important;
    z-index: 45 !important;
}

body.oc-shell .topbar-left {
    min-width: 0;
    flex: 1 1 420px;
}

body.oc-shell .topbar-right {
    flex: 0 1 auto;
    gap: 8px !important;
}

.oc-nav-search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 360px;
    max-width: 520px;
    min-width: 180px;
}

.oc-nav-search svg {
    position: absolute;
    left: 12px;
    width: 20px;
    height: 20px;
    color: var(--oc-subtle);
    pointer-events: none;
}

.oc-nav-search input {
    width: 100%;
    min-height: 42px;
    padding: 9px 42px !important;
    border: 1px solid transparent;
    border-radius: var(--oc-radius-sm);
    background: var(--oc-surface-soft);
    color: var(--oc-ink);
    font-size: .875rem;
    transition: background-color var(--oc-speed), border-color var(--oc-speed);
}

.oc-nav-search input::placeholder {
    color: var(--oc-muted);
    opacity: 1;
}

.oc-nav-search input:focus {
    border-color: color-mix(in srgb, var(--accent, var(--oc-primary)) 45%, var(--oc-border));
    background: var(--oc-surface);
    outline: 0;
}

.oc-nav-search kbd {
    position: absolute;
    right: 10px;
    padding: 2px 6px;
    border: 1px solid var(--oc-border);
    border-radius: 5px;
    color: var(--oc-subtle);
    background: var(--oc-surface);
    font-family: var(--oc-font);
    font-size: .68rem;
}

.oc-topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 4px 8px;
    border-radius: var(--oc-radius-sm);
}

.oc-topbar-avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent, var(--oc-primary)) 12%, var(--oc-surface));
    color: var(--accent, var(--oc-primary));
    font-size: .78rem;
    font-weight: 700;
}

img.member-photo-fit {
    display: block;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

.oc-topbar-user strong,
.oc-topbar-user small {
    display: block;
    white-space: nowrap;
}

.oc-topbar-user strong { font-size: .78rem; color: var(--oc-ink); }
.oc-topbar-user small { font-size: .68rem; color: var(--oc-muted); }

body.oc-shell :where(.icon-btn, .mobile-menu-btn, .menu-btn) {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border: 0 !important;
    border-radius: var(--oc-radius-sm) !important;
    background: transparent !important;
    color: var(--oc-muted) !important;
}

body.oc-shell :where(.icon-btn, .mobile-menu-btn, .menu-btn):hover {
    background: var(--oc-surface-soft) !important;
    color: var(--accent, var(--oc-primary)) !important;
}

body.oc-shell :where(.page-content, .content) {
    width: 100% !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
    padding: 24px !important;
}

body.oc-shell.oc-shell-portal .content {
    max-width: 1280px !important;
}

/* Page headers and identity */
body.oc-shell .page-header {
    align-items: center !important;
    margin-bottom: 24px !important;
}

.oc-identity-band {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 142px;
    padding: 24px !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--oc-radius);
    background:
        radial-gradient(circle at 84% 20%, rgba(255, 122, 0, .18), transparent 24%),
        linear-gradient(125deg, #001040 0%, #102070 100%);
    box-shadow: var(--oc-shadow-navbar);
}

.oc-identity-band::after {
    content: "";
    position: absolute;
    right: 12%;
    bottom: -96px;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    box-shadow: 0 0 0 32px rgba(255, 255, 255, .025);
    pointer-events: none;
}

.oc-identity-main,
.oc-identity-actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
}

.oc-identity-main { gap: 18px; min-width: 0; }
.oc-identity-actions { justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

.oc-identity-logo {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    background: rgba(255, 255, 255, .10);
}

.oc-identity-logo img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 14px;
}

.oc-identity-eyebrow {
    margin-bottom: 4px;
    color: #ffb066;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

body.oc-shell .oc-identity-band .page-title { color: #fff !important; }
body.oc-shell .oc-identity-band .insight-chip {
    border-color: rgba(255, 255, 255, .14) !important;
    background: rgba(255, 255, 255, .08) !important;
    color: rgba(255, 255, 255, .72) !important;
}
body.oc-shell .oc-identity-band .insight-chip b { color: #fff !important; }
body.oc-shell .oc-identity-band .btn-outline {
    border-color: rgba(255, 255, 255, .30) !important;
    background: rgba(255, 255, 255, .08) !important;
    color: #fff !important;
}

body.oc-shell .page-title {
    color: var(--oc-ink) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: -.025em !important;
}

body.oc-shell .page-subtitle {
    margin-top: 4px !important;
    color: var(--oc-muted) !important;
    font-size: .875rem !important;
    line-height: 1.5 !important;
}

body.oc-shell .breadcrumbs {
    min-width: 0;
    font-size: .8125rem !important;
    font-weight: 500 !important;
}

body.oc-shell .topbar-date {
    color: var(--oc-muted) !important;
    font-size: .75rem !important;
    font-weight: 500 !important;
}

/* Vuexy component vocabulary across every panel view */
body.oc-shell :where(.card, .chart-card, .kpi-card, .metric-card, .stat, .section-card, .form-card, .settings-nav, .modal, .info-box) {
    border: 1px solid var(--oc-border) !important;
    border-radius: var(--oc-radius) !important;
    background: var(--oc-surface) !important;
    box-shadow: none !important;
}

body.oc-shell :where(.metric-card, .kpi-card)::before {
    display: none !important;
}

body.oc-shell :where(.metric-card, .kpi-card) {
    border-top-width: 1px !important;
}

body.oc-shell :where(.card-title, .panel-title, .chart-title, .section-title, .card-head h2) {
    color: var(--oc-ink) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    letter-spacing: -.012em !important;
}

body.oc-shell :where(.metric-label, .kpi-label, .stat-label) {
    color: var(--oc-muted) !important;
    font-size: .75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.oc-shell :where(.metric-value, .kpi-value, .stat-value) {
    color: var(--oc-ink) !important;
    font-size: 1.65rem !important;
    font-weight: 700 !important;
    letter-spacing: -.025em !important;
}

body.oc-shell :where(.metric-sub, .kpi-sub, .stat-foot, .chart-subtitle, .compact-meta, .row-meta, .field-hint, .form-hint) {
    color: var(--oc-muted) !important;
    font-size: .8125rem !important;
    line-height: 1.45 !important;
}

body.oc-shell :where(.metrics-grid, .kpi-row, .grid-stats) {
    gap: 16px !important;
    margin-bottom: 24px !important;
}

body.oc-shell :where(.charts-row, .lower-row, .section-grid, .grid-split, .grid-2, .grid-3) {
    gap: 24px !important;
    margin-bottom: 24px !important;
}

body.oc-shell :where(.card, .chart-card, .section-card, .form-card) {
    padding: 20px !important;
}

body.oc-shell :where(.card-head, .panel-head, .chart-header, .section-header) {
    margin-bottom: 16px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid var(--oc-border) !important;
}

body.oc-shell :where(table, .data-table, .rev-table) {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    color: var(--oc-ink) !important;
    font-size: .875rem !important;
}

body.oc-shell :where(th, .data-table th, .rev-table th) {
    padding: 11px 14px !important;
    border-bottom: 1px solid var(--oc-border) !important;
    background: var(--oc-surface-soft) !important;
    color: var(--oc-muted) !important;
    font-size: .75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.oc-shell :where(td, .data-table td, .rev-table td) {
    padding: 12px 14px !important;
    border-bottom: 1px solid var(--oc-border) !important;
    color: var(--oc-ink) !important;
    line-height: 1.4 !important;
}

body.oc-shell tbody tr:hover td {
    background: color-mix(in srgb, var(--accent, var(--oc-primary)) 4%, var(--oc-surface)) !important;
}

body.oc-shell .table-wrap {
    border-radius: var(--oc-radius-sm);
    border: 1px solid var(--oc-border);
    overflow: auto;
}

body.oc-shell :where(.card, .section-card, .form-card):has(table) {
    min-width: 0;
    overflow-x: auto;
}

body.oc-shell .table-wrap table th:first-child { border-top-left-radius: var(--oc-radius-sm); }
body.oc-shell .table-wrap table th:last-child { border-top-right-radius: var(--oc-radius-sm); }

body.oc-shell :where(.btn, .btn-primary, .btn-submit, .btn-step, button.btn) {
    min-height: 40px !important;
    padding: 8px 14px !important;
    border-radius: var(--oc-radius-sm) !important;
    font-size: .8125rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    transform: none !important;
    transition: background-color var(--oc-speed), border-color var(--oc-speed), color var(--oc-speed), box-shadow var(--oc-speed) !important;
}

body.oc-shell :where(.btn-primary, .btn-submit) {
    border-color: var(--accent, var(--oc-primary)) !important;
    background: var(--accent, var(--oc-primary)) !important;
    color: var(--accent-text, #fff) !important;
}

body.oc-shell :where(.btn-primary, .btn-submit):hover {
    background: color-mix(in srgb, var(--accent, var(--oc-primary)) 84%, #000) !important;
    box-shadow: 0 2px 6px color-mix(in srgb, var(--accent, var(--oc-primary)) 22%, transparent) !important;
}

body.oc-shell .btn-outline {
    border-color: var(--oc-border) !important;
    background: var(--oc-surface) !important;
    color: var(--oc-ink) !important;
}

body.oc-shell .btn-outline:hover {
    border-color: color-mix(in srgb, var(--accent, var(--oc-primary)) 40%, var(--oc-border)) !important;
    background: color-mix(in srgb, var(--accent, var(--oc-primary)) 5%, var(--oc-surface)) !important;
    color: var(--accent, var(--oc-primary)) !important;
}

body.oc-shell .btn-sm {
    min-height: 34px !important;
    padding: 6px 11px !important;
    font-size: .75rem !important;
}

body.oc-shell :where(.form-control, .form-input, .section-form-control, input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
    min-height: 42px;
    padding: 9px 12px !important;
    border: 1px solid var(--oc-border) !important;
    border-radius: var(--oc-radius-sm) !important;
    background: var(--oc-surface) !important;
    color: var(--oc-ink) !important;
    font-family: var(--oc-font) !important;
    font-size: .875rem !important;
    outline: 0;
}

body.oc-shell textarea { min-height: 104px; resize: vertical; }

body.oc-shell :where(.form-control, .form-input, .section-form-control, input, select, textarea):focus {
    border-color: color-mix(in srgb, var(--accent, var(--oc-primary)) 68%, white) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, var(--oc-primary)) 14%, transparent) !important;
}

body.oc-shell :where(.form-group label, .form-label, label) {
    color: var(--oc-ink) !important;
    font-size: .8125rem !important;
    font-weight: 600 !important;
}

body.oc-shell :where(.badge, .pill, .status-badge, .step-badge) {
    min-height: 24px;
    padding: 3px 8px !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-size: .6875rem !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.oc-shell :where(.badge-active, .badge-approved, .badge-verified, .pill-paid) {
    background: #dff5ec !important;
    color: #08714f !important;
}

body.oc-shell :where(.badge-pending, .pill-partial) {
    background: #fff0df !important;
    color: #a44a00 !important;
}

body.oc-shell .badge-info {
    background: color-mix(in srgb, var(--oc-info) 12%, transparent) !important;
    color: var(--oc-info) !important;
}

body.oc-shell :where(.badge-rejected, .badge-suspended, .pill-unpaid) {
    background: #fde7e5 !important;
    color: #a6261b !important;
}

body.oc-shell :where(.alert, .alert-success, .alert-error, .alert-warning, .alert-warn, .alert-info) {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-radius: var(--oc-radius-sm) !important;
    font-size: .875rem !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
}

body.oc-shell :where(.alert, .alert-success, .alert-error, .alert-warning, .alert-warn, .alert-info) svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

body.oc-shell .alert-success { background: #eaf8f3 !important; border-color: #b9e7d8 !important; color: #086346 !important; }
body.oc-shell .alert-error { background: #fff0ef !important; border-color: #f1c2bd !important; color: #912018 !important; }
body.oc-shell :where(.alert-warning, .alert-warn) { background: #fff6eb !important; border-color: #f4d3ab !important; color: #8b3c00 !important; }
body.oc-shell .alert-info { background: #edf5fe !important; border-color: #bfdcf8 !important; color: #176bac !important; }

body.oc-shell .empty {
    padding: 32px 16px !important;
    color: var(--oc-muted) !important;
    font-size: .875rem !important;
}

body.oc-shell .empty strong {
    color: var(--oc-ink) !important;
    font-size: .9375rem !important;
}

body.oc-shell :where(.announcement-content, .prose, article p) {
    max-inline-size: 68ch;
    line-height: 1.625;
}

body.oc-shell :where(.metric-value, .kpi-value, .stat-value, .money-main, .num, [class*="amount"], [class*="date"]) {
    font-variant-numeric: tabular-nums;
}

/* Direction B identity treatment */
body.oc-shell .welcome {
    border: 1px solid color-mix(in srgb, var(--accent, var(--oc-primary)) 20%, var(--oc-border)) !important;
    background: var(--oc-surface) !important;
    border-radius: var(--oc-radius) !important;
    box-shadow: none !important;
}

body.oc-shell .welcome-line {
    color: var(--oc-ink) !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
}

body.oc-shell :where(.bar-fill, .plan-bar-fill) {
    background: var(--accent, var(--oc-primary)) !important;
}

body.oc-shell :where(.progress span, .welcome-bar .progress span) {
    background: var(--accent, var(--oc-primary)) !important;
}

body.oc-shell .chat-fab {
    border-radius: var(--oc-radius) !important;
    background: var(--accent, var(--oc-primary)) !important;
    box-shadow: 0 4px 8px color-mix(in srgb, var(--accent, var(--oc-primary)) 24%, transparent) !important;
}

/* Search state applied by shared JavaScript. */
body.oc-shell .oc-nav-hidden { display: none !important; }
body.oc-shell .oc-nav-match { background: var(--oc-sidebar-hover) !important; color: var(--oc-sidebar-text) !important; }

/* Authentication and registration */
body.oc-auth {
    min-width: 320px;
    min-height: 100dvh;
    margin: 0;
    background: var(--oc-bg) !important;
    color: var(--oc-ink) !important;
    font-family: var(--oc-font) !important;
    font-size: 1rem;
    line-height: 1.5;
}

body.oc-auth::before {
    content: "";
    position: fixed;
    inset: 0 auto 0 0;
    width: min(42vw, 620px);
    background: var(--oc-sidebar);
    z-index: -1;
}

.oc-auth-brand {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1;
    width: min(42vw, 620px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px clamp(32px, 5vw, 72px);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 122, 0, .20), transparent 24%),
        radial-gradient(circle at 18% 88%, rgba(59, 130, 246, .18), transparent 28%),
        var(--oc-sidebar);
}

.oc-auth-brand::after {
    content: "";
    position: absolute;
    right: -88px;
    bottom: 12%;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 50%;
    box-shadow: 0 0 0 38px rgba(255, 255, 255, .035), 0 0 0 76px rgba(255, 255, 255, .025);
    pointer-events: none;
}

.oc-auth-brand-logo {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    color: #fff;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    /* Sizes the flat brand-lockup__image (icon+wordmark baked into one PNG) —
       was a fixed 46x46 box for the old icon-only <img>, which squashed the
       wider flat lockup once it replaced it. */
    --lockup-h: 46px;
}

.oc-auth-brand-copy {
    position: relative;
    z-index: 1;
    max-width: 470px;
}

.oc-auth-eyebrow {
    display: block;
    margin-bottom: 16px;
    color: #ffb066;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.oc-auth-brand-copy h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.oc-auth-brand-copy > p {
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: 1rem;
    line-height: 1.65;
}

.oc-auth-brand-copy ul {
    display: grid;
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.oc-auth-brand-copy li {
    position: relative;
    padding-left: 28px;
    color: rgba(255, 255, 255, .88);
    font-size: .875rem;
}

.oc-auth-brand-copy li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -1px;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 122, 0, .22);
    color: #ffb066;
    font-size: .7rem;
    font-weight: 700;
}

.oc-auth-brand-foot {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, .54);
    font-size: .75rem;
}

body.oc-auth > .container {
    width: min(100%, 560px) !important;
    margin: 0 8vw 0 auto !important;
    padding: 48px 24px !important;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.oc-auth .logo {
    text-align: left !important;
    margin-bottom: 20px !important;
}

body.oc-auth .logo img,
body.oc-auth .logo-icon,
body.oc-auth .login-logo-img {
    width: 64px !important;
    height: 64px !important;
    object-fit: contain !important;
    border-radius: 50% !important;
}

body.oc-auth .logo-icon { margin: 0 0 12px !important; }
body.oc-auth .logo-icon img { width: 100% !important; height: 100% !important; }

body.oc-auth .logo h1 {
    margin: 10px 0 2px !important;
    color: var(--oc-ink) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    letter-spacing: -.025em !important;
}

body.oc-auth .logo p {
    color: var(--oc-muted) !important;
    font-size: .875rem !important;
    font-weight: 400 !important;
}

body.oc-auth .card {
    width: 100% !important;
    padding: 28px !important;
    border: 1px solid var(--oc-border) !important;
    border-radius: var(--oc-radius) !important;
    background: var(--oc-surface) !important;
    box-shadow: none !important;
}

body.oc-auth :where(.card-title, h2.card-title) {
    color: var(--oc-ink) !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    letter-spacing: -.02em !important;
}

body.oc-auth :where(.card-desc, .card-subtitle) {
    margin-top: 6px !important;
    color: var(--oc-muted) !important;
    font-size: .875rem !important;
}

body.oc-auth .form-group { margin-bottom: 16px !important; }
body.oc-auth .form-label { color: var(--oc-ink) !important; font-size: .8125rem !important; font-weight: 600 !important; }
body.oc-auth .form-input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px !important;
    border: 1px solid var(--oc-border) !important;
    border-radius: var(--oc-radius-sm) !important;
    background: var(--oc-surface) !important;
    color: var(--oc-ink) !important;
    font: 400 .875rem/1.4 var(--oc-font) !important;
}

body.oc-auth .form-input:focus {
    border-color: var(--oc-primary) !important;
    box-shadow: 0 0 0 3px rgba(16, 32, 112, .14) !important;
    outline: 0;
}

body.oc-auth :where(.btn, .btn-primary) {
    width: 100%;
    min-height: 44px;
    border: 0 !important;
    border-radius: var(--oc-radius-sm) !important;
    background: var(--oc-primary) !important;
    color: #fff !important;
    font: 600 .875rem/1.2 var(--oc-font) !important;
}

body.oc-auth :where(.forgot-link, .back-link a) { color: var(--oc-primary) !important; }
body.oc-auth .back-link { color: var(--oc-muted) !important; font-size: .8125rem !important; }

body.oc-auth-register::before { width: 34vw; }
body.oc-auth-register .oc-auth-brand {
    top: 64px;
    width: 34vw;
}
body.oc-auth-register nav,
body.oc-auth-register .page-wrap {
    font-family: var(--oc-font) !important;
}

body.oc-auth-register nav {
    background: var(--oc-surface) !important;
    border-bottom: 1px solid var(--oc-border) !important;
}

body.oc-auth-register .page-wrap {
    max-width: 1120px !important;
    margin-left: max(36vw, calc((100vw - 1120px) / 2)) !important;
    margin-right: 24px !important;
}

body.oc-auth-register :where(.form-card, .info-box) {
    border: 1px solid var(--oc-border) !important;
    border-radius: var(--oc-radius) !important;
    background: var(--oc-surface) !important;
    box-shadow: none !important;
}

body.oc-auth-register .wizard-tab.is-active {
    background: color-mix(in srgb, var(--oc-primary) 8%, var(--oc-surface)) !important;
    color: var(--oc-primary) !important;
}

body.oc-auth-register .wizard-tab.is-active span:first-child {
    background: var(--oc-primary) !important;
    color: #fff !important;
}

body.oc-auth-success {
    display: grid !important;
    place-items: center !important;
    padding: 24px;
}

body.oc-auth-success::before { width: 38vw; }
body.oc-auth-success .oc-auth-brand { width: 38vw; }
body.oc-auth-success > .card { margin-left: min(34vw, 420px); max-width: 580px !important; }

/* Responsive shell */
@media (max-width: 1399px) and (min-width: 1200px) {
    body.oc-shell-association .breadcrumbs,
    body.oc-shell-association .oc-topbar-user > div:last-child {
        display: none !important;
    }

    body.oc-shell-association .topbar-left { flex-basis: 300px; }
    body.oc-shell-association .oc-nav-search { min-width: 220px; }
    body.oc-shell-association .oc-topbar-user { flex: 0 0 auto; padding-inline: 2px; }
}

@media (max-width: 1199px) {
    body.oc-shell .sidebar {
        transform: translateX(-100%) !important;
        transition: transform 220ms var(--oc-ease) !important;
    }

    body.oc-shell .sidebar.open { transform: translateX(0) !important; }
    body.oc-shell :where(.main-wrap, .main) { margin-left: 0 !important; }
    body.oc-shell :where(.mobile-menu-btn, .menu-btn) { display: inline-flex !important; }
    body.oc-shell :where(#sidebar-overlay, #portal-overlay).is-visible {
        display: block !important;
        position: fixed;
        inset: 0;
        z-index: 55;
        background: rgba(15, 23, 42, .48);
    }
}

@media (max-width: 899px) {
    body.oc-auth::before,
    body.oc-auth .oc-auth-brand { display: none; }

    body.oc-auth > .container {
        margin: 0 auto !important;
    }

    body.oc-auth-register .page-wrap {
        margin: 0 auto !important;
    }

    body.oc-auth-success > .card { margin-left: 0; }

    body.oc-shell .topbar {
        margin: 12px 12px 0 !important;
        top: 8px !important;
    }

    body.oc-shell :where(.page-content, .content) { padding: 16px !important; }
    body.oc-shell .topbar-date,
    body.oc-shell .oc-topbar-user > div:last-child,
    body.oc-shell .oc-nav-search kbd { display: none !important; }
    body.oc-shell-association .topbar-right { display: none !important; }
    .oc-nav-search { min-width: 120px; }
    body.oc-shell :where(.charts-row, .lower-row, .section-grid, .grid-split, .grid-2, .grid-3) {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    body.oc-shell :where(.page-content, .content) > [style*="grid-template-columns"],
    body.oc-shell :where(.card, .section-card, .form-card) > [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .oc-identity-band {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .oc-identity-actions { justify-content: flex-start; }
}

@media (max-width: 639px) {
    body.oc-shell .topbar {
        min-height: 56px !important;
        padding: 7px 8px !important;
    }

    body.oc-shell .topbar-right { gap: 2px !important; }
    body.oc-shell .breadcrumbs,
    body.oc-shell .topbar-select,
    body.oc-shell .oc-topbar-user { display: none !important; }
    .oc-nav-search { flex: 1 1 auto; max-width: none; }
    .oc-nav-search input { padding-right: 12px; }
    body.oc-shell .page-title { font-size: 1.25rem !important; }
    body.oc-shell :where(.card, .chart-card, .section-card, .form-card) { padding: 16px !important; }
    body.oc-shell :where(.table-wrap) { border: 0; border-radius: 0; margin-inline: -16px; }
    body.oc-shell .bottom-nav { display: block !important; }
    body.oc-shell :where(.page-content, .content) [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }

    .oc-identity-main { align-items: flex-start; }
    .oc-identity-logo { width: 56px; height: 56px; flex-basis: 56px; border-radius: 14px; }
    .oc-identity-logo img { width: 44px; height: 44px; }
    .oc-identity-actions { width: 100%; }

    body.oc-auth::before { display: none; }
    body.oc-auth > .container {
        margin: 0 auto !important;
        padding: 28px 16px !important;
    }
    body.oc-auth .card { padding: 22px !important; }

    body.oc-auth-register .page-wrap {
        margin: 0 auto !important;
        padding: 24px 16px !important;
    }

    body.oc-auth-success > .card { margin-left: 0; }
}

@media (pointer: coarse) {
    body.oc-shell :where(.nav-item a, .nav a, .btn, .icon-btn, .mobile-menu-btn, .menu-btn),
    body.oc-auth :where(.btn, .btn-primary, .form-input) {
        min-height: 44px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Dashboard data visualization primitives */
.oc-dashboard {
    --oc-blue: #3157d5;
    --oc-cyan: #10a6c7;
    --oc-green: #159a70;
    --oc-orange: #ed7411;
    --oc-purple: #7656d6;
    --oc-red: #cf4a5a;
}

.oc-dashboard .oc-tone-blue { --oc-tone: var(--oc-blue); --oc-tone-soft: #edf2ff; }
.oc-dashboard .oc-tone-cyan { --oc-tone: var(--oc-cyan); --oc-tone-soft: #e8f9fc; }
.oc-dashboard .oc-tone-green { --oc-tone: var(--oc-green); --oc-tone-soft: #e9f8f2; }
.oc-dashboard .oc-tone-orange { --oc-tone: var(--oc-orange); --oc-tone-soft: #fff2e6; }
.oc-dashboard .oc-tone-purple { --oc-tone: var(--oc-purple); --oc-tone-soft: #f1edff; }
.oc-dashboard .oc-tone-red { --oc-tone: var(--oc-red); --oc-tone-soft: #fff0f2; }

.oc-dashboard .oc-color-card {
    border-color: color-mix(in srgb, var(--oc-tone) 15%, var(--oc-border, #dce2ec)) !important;
    background: linear-gradient(145deg, var(--oc-tone-soft) 0%, #fff 72%) !important;
}

.oc-dashboard .oc-color-card :where(.kpi-icon, .stat-label svg) {
    background: color-mix(in srgb, var(--oc-tone) 13%, #fff) !important;
    color: var(--oc-tone) !important;
}

.oc-dashboard .oc-color-card::before {
    display: block !important;
    background: var(--oc-tone) !important;
    opacity: 1 !important;
}

.oc-pulse-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.oc-pulse-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--oc-tone) 15%, var(--oc-border, #dce2ec));
    border-radius: 12px;
    background: linear-gradient(140deg, var(--oc-tone-soft) 0%, #fff 70%);
}

.oc-ring {
    --oc-ring-value: 0;
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(var(--oc-tone) calc(var(--oc-ring-value) * 1%), color-mix(in srgb, var(--oc-tone) 11%, #e7ebf2) 0);
    position: relative;
}

.oc-ring::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: inherit;
    background: #fff;
}

.oc-ring-value {
    position: relative;
    z-index: 1;
    color: var(--oc-tone);
    font-size: .875rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.oc-pulse-copy { min-width: 0; }
.oc-pulse-label {
    color: var(--oc-muted, #667085);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.oc-pulse-title {
    margin-top: 3px;
    color: var(--oc-ink, #101828);
    font-size: .9375rem;
    font-weight: 750;
}
.oc-pulse-note {
    margin-top: 3px;
    color: var(--oc-muted, #667085);
    font-size: .75rem;
    line-height: 1.4;
}

.oc-mini-bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    width: 76px;
    height: 54px;
    flex: 0 0 76px;
    padding: 5px 6px 0;
    border-radius: 10px;
    background: color-mix(in srgb, var(--oc-tone) 7%, #fff);
}

.oc-mini-bar {
    flex: 1;
    min-height: 4px;
    height: var(--oc-bar-height, 20%);
    border-radius: 4px 4px 2px 2px;
    background: var(--oc-tone);
    opacity: var(--oc-bar-opacity, .85);
}

.oc-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}
.oc-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--oc-muted, #667085);
    font-size: .75rem;
    font-weight: 600;
}
.oc-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--oc-tone);
}

@media (max-width: 960px) {
    .oc-pulse-grid { grid-template-columns: 1fr; }
}

@media (max-width: 479px) {
    .oc-pulse-card { padding: 14px; }
    .oc-ring { width: 62px; height: 62px; flex-basis: 62px; }
    .oc-ring::after { inset: 7px; }
}

body.oc-shell .oc-nav-search input {
    padding-left: 42px !important;
    padding-right: 42px !important;
}

@media (max-width: 639px) {
    body.oc-shell .oc-nav-search input { padding-right: 12px !important; }
}

/* Resource indexes: shared Vuexy list, toolbar and action vocabulary */
.oc-resource-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.oc-resource-heading { min-width: 0; }
.oc-resource-heading .page-subtitle { max-width: 72ch; }
.oc-resource-actions,
.oc-table-card-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.oc-resource-toolbar {
    display: flex;
    align-items: end;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid var(--oc-border);
    border-radius: var(--oc-radius);
    background: var(--oc-surface);
}

.oc-resource-toolbar form {
    display: flex;
    align-items: end;
    gap: 12px;
    flex: 1 1 auto;
    flex-wrap: wrap;
}

.oc-resource-toolbar .oc-filter-field { flex: 1 1 160px; min-width: 140px; }
.oc-resource-toolbar .oc-filter-search { flex-basis: 240px; }
.oc-resource-toolbar .oc-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-wrap: wrap;
}

.oc-table-card {
    min-width: 0;
    overflow: visible;
    border: 1px solid var(--oc-border);
    border-radius: var(--oc-radius);
    background: var(--oc-surface);
}

.oc-table-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--oc-border);
}

.oc-table-card-head h2 {
    margin: 0;
    color: var(--oc-ink);
    font-size: 1rem;
    font-weight: 600;
}

.oc-table-card-head p {
    max-width: 70ch;
    margin: 4px 0 0;
    color: var(--oc-muted);
    font-size: .8125rem;
    line-height: 1.45;
}

.oc-table-card > .table-wrap {
    border: 0 !important;
    border-radius: 0 !important;
}

.oc-table-card table { min-width: 720px; }
.oc-table-card tbody tr:last-child td { border-bottom: 0 !important; }
.oc-table-card-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--oc-border);
}

.oc-cell-title { color: var(--oc-ink); font-weight: 600; }
.oc-cell-meta { margin-top: 3px; color: var(--oc-muted); font-size: .75rem; line-height: 1.4; }
.oc-cell-number { font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.oc-cell-actions { width: 1%; min-width: 116px; text-align: right; }
/* The actions column is sized to the button, so the button must not be sized
   to the column: "Open report" was breaking across two lines in a cell that
   had room to widen. */
.oc-cell-actions .btn { white-space: nowrap; }

.oc-action-menu {
    position: relative;
    display: inline-block;
    text-align: left;
}

.oc-action-menu > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid var(--oc-border);
    border-radius: var(--oc-radius-sm);
    background: var(--oc-surface);
    color: var(--oc-ink);
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.oc-action-menu > summary::-webkit-details-marker { display: none; }
.oc-action-menu > summary svg { width: 14px; height: 14px; transition: transform var(--oc-speed); }
.oc-action-menu[open] > summary { border-color: color-mix(in srgb, var(--accent) 42%, var(--oc-border)); color: var(--accent); }
.oc-action-menu[open] > summary svg { transform: rotate(180deg); }
.oc-action-menu-panel {
    position: fixed;
    z-index: 80;
    top: var(--oc-menu-top, 0);
    left: var(--oc-menu-left, 12px);
    width: max-content;
    min-width: 164px;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--oc-border);
    border-radius: var(--oc-radius-sm);
    background: var(--oc-surface);
    box-shadow: var(--oc-shadow-navbar);
}

.oc-action-menu-panel :where(a, button) {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--oc-ink);
    font: inherit;
    font-size: .8125rem;
    text-decoration: none;
    cursor: pointer;
}

.oc-action-menu-panel :where(a, button):hover { background: var(--oc-surface-soft); color: var(--accent); }
.oc-action-menu-panel form { margin: 0; }
.oc-action-menu-panel .oc-action-danger { color: var(--oc-danger); }
.oc-action-menu-panel .oc-action-danger:hover { background: color-mix(in srgb, var(--oc-danger) 7%, var(--oc-surface)); color: var(--oc-danger); }

.oc-table-empty {
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 36px 20px;
    text-align: center;
}
.oc-table-empty strong { color: var(--oc-ink); font-size: .9375rem; font-weight: 600; }
.oc-table-empty span { max-width: 54ch; color: var(--oc-muted); font-size: .8125rem; line-height: 1.45; }
.oc-table-empty .btn { margin-top: 8px; }

.oc-table-export-result {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 220;
    padding: 10px 14px;
    border-radius: var(--oc-radius-sm);
    background: var(--oc-ink);
    color: var(--oc-surface);
    font-size: .8125rem;
    font-weight: 600;
    box-shadow: var(--oc-shadow-navbar);
}

.oc-resource-section { margin-top: 20px; }
.oc-inline-create { display: flex; align-items: center; gap: 8px; }
.oc-inline-create .form-input { min-width: 190px; }
.oc-switch-label { display: inline-flex !important; align-items: center; gap: 7px; margin: 0 !important; white-space: nowrap; }

@media (max-width: 760px) {
    .oc-resource-header,
    .oc-table-card-head { align-items: stretch; flex-direction: column; }
    .oc-resource-actions,
    .oc-table-card-tools { justify-content: flex-start; }
    .oc-resource-actions .btn { flex: 1 1 auto; }
    .oc-resource-toolbar { align-items: stretch; flex-direction: column; padding: 14px; }
    .oc-resource-toolbar form { align-items: stretch; flex-direction: column; }
    .oc-resource-toolbar .oc-filter-field { min-width: 0; flex-basis: auto; }
    .oc-resource-toolbar .oc-filter-actions { width: 100%; margin-left: 0; }
    .oc-resource-toolbar .oc-filter-actions .btn { flex: 1 1 auto; }
    .oc-table-card-head { padding: 16px; }
    .oc-table-card-footer { padding: 12px 16px; }
    .oc-action-menu-panel { position: fixed; top: auto; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); left: 16px; width: auto; max-height: calc(100vh - 108px - env(safe-area-inset-bottom, 0px)); }
}

/* ---------------------------------------------------------------------------
 * Workspace tabs
 * One tab strip per module. The sidebar already owns module-level navigation,
 * so pages carry a single strip for their own sub-screens.
 * ------------------------------------------------------------------------ */
.oc-nav-tabs {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    margin: 0 0 20px;
    border-bottom: 1px solid var(--oc-border);
    scrollbar-width: thin;
}

.oc-nav-tabs a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-bottom: 2px solid transparent;
    color: var(--oc-muted);
    font-size: .8125rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--oc-speed) var(--oc-ease), border-color var(--oc-speed) var(--oc-ease);
}

.oc-nav-tabs a:hover { color: var(--oc-ink); }
.oc-nav-tabs a.active { color: var(--accent); border-bottom-color: var(--accent); }
.oc-nav-tabs a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

@media (max-width: 639px) {
    .oc-nav-tabs { margin-inline: -4px; }
    .oc-nav-tabs a { min-height: 44px; }
}

/* Row chips: secondary row facts that used to need their own columns */
.oc-cell-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.oc-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--oc-surface-soft);
    color: var(--oc-muted);
    font-size: .6875rem;
    font-weight: 600;
    line-height: 1.7;
    white-space: nowrap;
}
.oc-chip-accent {
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
}

/* Icon-only action menu for dense tables */
.oc-action-menu.is-compact > summary {
    width: 32px;
    min-height: 32px;
    padding: 0;
}
.oc-action-menu.is-compact > summary .oc-action-menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.oc-action-menu.is-compact > summary svg { width: 16px; height: 16px; }
.oc-action-menu.is-compact[open] > summary svg { transform: none; }
.oc-cell-actions.is-compact { min-width: 56px; }

/* Quick-create control: a select paired with an inline "add option" button */
.select-with-create { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 6px; }
.quick-add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--oc-border);
    border-radius: var(--oc-radius-sm);
    background: var(--oc-surface);
    color: var(--accent);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}
.quick-add-button:hover { border-color: color-mix(in srgb, var(--accent) 42%, var(--oc-border)); }
.quick-add-button svg { width: 16px; height: 16px; }

/* Allocation rule panel (funds workspace) */
.allocation-rule-panel {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid var(--oc-border);
    border-radius: var(--oc-radius);
    background: var(--oc-surface);
}
.allocation-rule-copy h3 { margin: 0; color: var(--oc-ink); font-size: 1rem; font-weight: 600; }
.allocation-rule-copy p { max-width: 70ch; margin: 4px 0 0; color: var(--oc-muted); font-size: .8125rem; line-height: 1.45; }
.current-rule {
    margin: 12px 0 18px;
    padding: 10px 12px;
    border: 1px solid var(--oc-border);
    border-radius: var(--oc-radius-sm);
    background: var(--oc-surface-soft);
    font-size: .8125rem;
}
.current-rule.muted { color: var(--oc-muted); }
.rule-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.rule-history { margin-top: 20px; }
.rule-history > summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--oc-muted);
    font-size: .8125rem;
    font-weight: 600;
    cursor: pointer;
}
.rule-history > summary span {
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--oc-surface-soft);
    font-size: .6875rem;
}
.rule-history > summary:hover { color: var(--accent); }
.rule-history .table-wrap { margin-top: 12px; }
.text-danger { color: var(--oc-danger) !important; }

/* ---------------------------------------------------------------------------
 * Statistics row
 * Vuexy statistic cards: label, figure, one line of context, tinted icon.
 * Shared by the association dashboard and the finance index screens.
 * ------------------------------------------------------------------------ */
.oc-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.oc-stat-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--oc-border);
    border-radius: var(--oc-radius);
    background: var(--oc-surface);
}
.oc-stat-label { color: var(--oc-muted); font-size: .75rem; font-weight: 600; }
.oc-stat-value {
    margin-top: 8px;
    color: var(--oc-ink);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}
.oc-stat-value small { font-size: .8125rem; font-weight: 600; color: var(--oc-muted); margin-right: 3px; }
.oc-stat-note { margin-top: 6px; color: var(--oc-muted); font-size: .75rem; line-height: 1.45; }
.oc-stat-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: var(--oc-radius-sm);
    background: color-mix(in srgb, var(--oc-tone) 12%, transparent);
    color: var(--oc-tone);
}
.oc-stat-icon svg { width: 18px; height: 18px; }
.oc-tone-blue { --oc-tone: var(--oc-info); }
.oc-tone-green { --oc-tone: var(--oc-success); }
.oc-tone-orange { --oc-tone: var(--oc-warning); }
.oc-tone-purple { --oc-tone: var(--oc-violet); }

@media (max-width: 1200px) { .oc-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .oc-stat-grid { grid-template-columns: 1fr; } }

.oc-stat-grid-single { grid-template-columns: minmax(0, 320px); }

/* ---------------------------------------------------------------------------
 * Sidebar section tones
 * Each nav group carries a hue so Finance is not visually interchangeable with
 * Association Support. The hue rides on the resting icons and the group dot —
 * the active pill stays brand navy. Every tone is mixed toward that navy before
 * it is painted, which holds icon contrast above 3:1 and keeps the six hues in
 * one family rather than six unrelated brand colours.
 * ------------------------------------------------------------------------ */
body.oc-shell .sidebar-nav [data-tone] { --oc-nav-tone: var(--oc-primary); }
body.oc-shell .sidebar-nav [data-tone="members"] { --oc-nav-tone: var(--oc-info); }
body.oc-shell .sidebar-nav [data-tone="support"] { --oc-nav-tone: var(--oc-secondary); }
body.oc-shell .sidebar-nav [data-tone="finance"] { --oc-nav-tone: var(--oc-success); }
body.oc-shell .sidebar-nav [data-tone="comms"] { --oc-nav-tone: var(--oc-violet); }
body.oc-shell .sidebar-nav [data-tone="settings"] { --oc-nav-tone: var(--oc-subtle); }

/* Readable ink for a tone on the sidebar surface */
body.oc-shell .sidebar-nav [data-tone] {
    --oc-nav-ink: color-mix(in srgb, var(--oc-nav-tone) 84%, var(--oc-sidebar-active));
}
/* Brand orange is the lightest tone of the six: at the shared 84% it painted
   icons at 2.84:1, under the 3:1 floor for UI graphics. It needs more navy. */
body.oc-shell .sidebar-nav [data-tone="support"] {
    --oc-nav-ink: color-mix(in srgb, var(--oc-nav-tone) 62%, var(--oc-sidebar-active));
}

body.oc-shell .sidebar-nav .nav-group-label[data-tone] {
    display: flex;
    align-items: center;
    gap: 7px;
}
body.oc-shell .sidebar-nav .nav-group-label[data-tone]::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--oc-nav-ink);
}

body.oc-shell .sidebar-nav .nav-item[data-tone] a .nav-icon { color: var(--oc-nav-ink); }

/* Only resting items take the tone tint. The active pill keeps its white label,
   so tinting it on hover would put white text on a near-white background. */
body.oc-shell .sidebar-nav .nav-item[data-tone] a:hover:not(.active) {
    background: color-mix(in srgb, var(--oc-nav-tone) 9%, var(--oc-sidebar-hover)) !important;
    color: var(--oc-sidebar-text) !important;
}
body.oc-shell .sidebar-nav .nav-item[data-tone] a.active:hover {
    background: color-mix(in srgb, #000 12%, var(--oc-sidebar-active)) !important;
    color: #fff !important;
}
/* The active pill stays brand navy; only the resting icons carry the hue. */
body.oc-shell .sidebar-nav .nav-item[data-tone] a.active .nav-icon { color: inherit; }

html[data-theme="dark"] body.oc-shell .sidebar-nav [data-tone] {
    --oc-nav-ink: color-mix(in srgb, var(--oc-nav-tone) 62%, #ffffff);
}

/* Layout utilities that replace one-off inline styles */
.oc-mb { margin-bottom: 20px; }
.oc-narrow { max-width: 860px; }
.text-success { color: var(--oc-success) !important; }
.oc-span-full { grid-column: 1 / -1; }
.oc-min-0 { min-width: 0; }
.oc-check-row { display: flex; flex-wrap: wrap; gap: 18px; margin: 8px 0 18px; }
.oc-check-row label { display: inline-flex; align-items: center; gap: 7px; }
.oc-modal-sm { max-width: 460px; }
.oc-modal-md { max-width: 560px; }
.oc-modal-lg { max-width: 840px; }
