/* Portal shell — Operational Clarity (Sample 03 aligned) */

:root {
    --oc-bg: #f3f5f7;
    --oc-ink: #111827;
    --oc-muted: #6b7280;
    --oc-line: #d1d5db;
    --oc-surface: #ffffff;
    --oc-brand: #0b6e4f;
    --oc-brand-hover: #095c42;
    --oc-header: #0c4a3e;
    --oc-header-2: #0f5c4d;
    --oc-app-bar: #f4f8f6;
    --oc-app-bar-ink: #0c4a3e;
    --oc-app-bar-muted: #5f7a70;
    --oc-radius: 8px;
    --oc-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 24px rgba(15, 23, 42, 0.06);
    --oc-font: "IBM Plex Sans", "Segoe UI", Arial, Helvetica, sans-serif;
    --oc-mono: "IBM Plex Mono", Consolas, monospace;
}

body.oc-theme,
body.oc-login {
    font-family: var(--oc-font) !important;
    background: var(--oc-bg) !important;
    color: var(--oc-ink);
    min-width: 0 !important;
    width: 100% !important;
}

body.oc-theme {
    height: auto !important;
    min-height: 100vh;
    padding-bottom: 52px;
    overflow-x: hidden;
}

/* ===== App header (Sample 03 command bar) ===== */
body.oc-theme .oc-app-header {
    background: var(--oc-app-bar);
    color: var(--oc-app-bar-ink);
    border-bottom: 1px solid #d7e5de;
    box-shadow: 0 1px 0 rgba(12, 74, 62, 0.04), 0 8px 20px rgba(12, 74, 62, 0.06);
}

body.oc-theme .oc-header-main#navcontainer,
body.oc-theme #navcontainer.oc-header-main {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 10px 20px !important;
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    background: var(--oc-app-bar) !important;
}

body.oc-theme .oc-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex-shrink: 0;
}

body.oc-theme .navbar-brand {
    display: inline-flex !important;
    align-items: center;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    float: none !important;
}

body.oc-theme .navbar-brand img {
    max-height: 34px;
    width: auto;
    display: block;
}

body.oc-theme .oc-product-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--oc-app-bar-muted);
}

body.oc-theme .oc-header-mid {
    display: none;
}

/* Compact account switcher in top header */
body.oc-theme .oc-header-account {
    min-width: 0;
    max-width: 360px;
    flex: 0 1 360px;
}

body.oc-theme .oc-header-account #customerselect,
body.oc-theme .oc-header-account .oc-account-select {
    display: flex !important;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0 !important;
    padding: 4px 10px;
    background: #ffffff;
    border: 1px solid #d7e5de;
    border-radius: 8px;
    font-size: 12px !important;
    color: var(--oc-muted) !important;
    float: none !important;
}

body.oc-theme .oc-header-account .oc-account-label {
    margin: 0 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--oc-app-bar-muted) !important;
    white-space: nowrap;
}

body.oc-theme .oc-header-account #customerselect select#customer,
body.oc-theme .oc-header-account .oc-account-dropdown {
    flex: 1 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 30px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--oc-ink) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

body.oc-theme .oc-header-account #customerselect select#customer:hover,
body.oc-theme .oc-header-account #customerselect select#customer:focus,
body.oc-theme .oc-header-account .oc-account-dropdown:hover,
body.oc-theme .oc-header-account .oc-account-dropdown:focus {
    border: 0 !important;
    box-shadow: none !important;
}

body.oc-theme .oc-header-account #customerselect:focus-within {
    border-color: var(--oc-brand);
    box-shadow: 0 0 0 3px rgba(11, 110, 79, 0.12);
}

/* Legacy utility bar (removed from layout) */
body.oc-theme .oc-utility-bar,
body.oc-theme .oc-breadcrumb-bar,
body.oc-theme .oc-utility-actions,
body.oc-theme .oc-account-card {
    display: none !important;
}

body.oc-theme .oc-user-menu {
    position: relative;
    flex-shrink: 0;
    margin-left: 0;
}

body.oc-theme .oc-avatar-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 2px solid #c8e6d5;
    border-radius: 50%;
    background: linear-gradient(145deg, #12b98a, #0b6e4f);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

body.oc-theme .oc-avatar-btn:hover,
body.oc-theme .oc-avatar-btn.is-open {
    transform: translateY(-1px);
    border-color: var(--oc-brand);
    box-shadow: 0 6px 14px rgba(11, 110, 79, 0.28);
}

body.oc-theme .oc-avatar {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}

body.oc-theme .oc-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1200;
    min-width: 200px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid var(--oc-line);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

body.oc-theme .oc-user-dropdown-name {
    padding: 8px 10px 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--oc-line);
    color: var(--oc-ink);
    font-size: 13px;
    font-weight: 700;
}

body.oc-theme .oc-user-dropdown-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    color: var(--oc-ink);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    padding: 9px 10px;
    border-radius: 6px;
    cursor: pointer;
}

body.oc-theme .oc-user-dropdown-item:hover {
    background: #ecfdf5;
    color: var(--oc-brand);
}

body.oc-theme .oc-user-dropdown-item.oc-user-dropdown-danger {
    color: #b91c1c;
}

body.oc-theme .oc-user-dropdown-item.oc-user-dropdown-danger:hover {
    background: #fef2f2;
    color: #991b1b;
}

body.oc-theme #changePW,
body.oc-theme a.oc-user-greeting {
    color: var(--oc-ink) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    float: none !important;
    text-decoration: none !important;
    white-space: nowrap;
}

body.oc-theme #changePW:hover,
body.oc-theme a.oc-user-greeting:hover {
    color: var(--oc-brand) !important;
    text-decoration: underline !important;
}

body.oc-theme #customerselect,
body.oc-theme .oc-account-select {
    display: flex !important;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0 !important;
    font-size: 12px !important;
    color: var(--oc-muted) !important;
    float: none !important;
}

body.oc-theme #customerselect span,
body.oc-theme #customerselect p {
    color: var(--oc-muted) !important;
    margin: 0 !important;
    float: none !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    width: 100%;
}

body.oc-theme .oc-account-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--oc-muted);
    white-space: nowrap;
}

body.oc-theme #customerselect select#customer,
body.oc-theme .oc-account-dropdown {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    background: #ffffff !important;
    color: var(--oc-ink) !important;
    border: 1px solid var(--oc-line) !important;
    border-radius: 6px !important;
    padding: 7px 10px !important;
    font-size: 12px !important;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.oc-theme #customerselect select#customer:hover,
body.oc-theme .oc-account-dropdown:hover {
    border-color: #9ad9c7 !important;
}

body.oc-theme #customerselect select#customer:focus,
body.oc-theme .oc-account-dropdown:focus {
    outline: none;
    border-color: var(--oc-brand) !important;
    box-shadow: 0 0 0 3px rgba(11, 110, 79, 0.12);
}

body.oc-theme .oc-breadcrumb-trail {
    display: none;
}

body.oc-theme .oc-utility-bar .oc-phone,
body.oc-theme .oc-breadcrumb-bar .oc-phone {
    margin: 0 !important;
    color: var(--oc-ink) !important;
    font-size: 14px !important;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    float: none !important;
    flex-shrink: 0;
}

body.oc-theme .oc-utility-bar .oc-phone:hover,
body.oc-theme .oc-breadcrumb-bar .oc-phone:hover {
    color: var(--oc-brand) !important;
}

body.oc-theme .oc-subheader {
    display: none;
}

body.oc-theme .breadcrumbs,
body.oc-theme ul.breadcrumbs,
body.oc-theme .oc-breadcrumb-bar .breadcrumbs,
body.oc-theme .oc-utility-bar .breadcrumbs {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    float: none !important;
}

body.oc-theme .breadcrumbs > *,
body.oc-theme .oc-breadcrumb-bar .breadcrumbs > *,
body.oc-theme .oc-utility-bar .breadcrumbs > * {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    font-size: 13px !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: var(--oc-muted) !important;
}

body.oc-theme .breadcrumbs > * a,
body.oc-theme .oc-breadcrumb-bar .breadcrumbs > * a,
body.oc-theme .oc-utility-bar .breadcrumbs > * a {
    color: var(--oc-brand) !important;
    text-decoration: none !important;
    font-weight: 600;
}

body.oc-theme .breadcrumbs > * a:hover,
body.oc-theme .oc-breadcrumb-bar .breadcrumbs > * a:hover,
body.oc-theme .oc-utility-bar .breadcrumbs > * a:hover {
    text-decoration: underline !important;
}

body.oc-theme .breadcrumbs > *.current,
body.oc-theme .breadcrumbs > *.current a,
body.oc-theme .oc-breadcrumb-bar .breadcrumbs > *.current,
body.oc-theme .oc-breadcrumb-bar .breadcrumbs > *.current a,
body.oc-theme .oc-utility-bar .breadcrumbs > *.current,
body.oc-theme .oc-utility-bar .breadcrumbs > *.current a {
    color: var(--oc-ink) !important;
    font-weight: 700 !important;
    cursor: default;
    text-decoration: none !important;
}

body.oc-theme .breadcrumbs > *:before,
body.oc-theme .oc-breadcrumb-bar .breadcrumbs > *:before,
body.oc-theme .oc-utility-bar .breadcrumbs > *:before {
    content: "/" !important;
    margin: 0 8px !important;
    color: #94a3b8 !important;
    float: none !important;
    font-size: 12px !important;
    font-weight: 500;
}

body.oc-theme .breadcrumbs > *:first-child:before,
body.oc-theme .oc-breadcrumb-bar .breadcrumbs > *:first-child:before,
body.oc-theme .oc-utility-bar .breadcrumbs > *:first-child:before {
    content: "" !important;
    margin: 0 !important;
}

body.oc-theme [aria-label="breadcrumbs"] [aria-hidden="true"]:after {
    content: none !important;
}

body.oc-theme .oc-nav-actions-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

body.oc-theme .oc-nav-actions-wrap .oc-phone {
    margin: 0 2px !important;
    color: var(--oc-app-bar-ink) !important;
    font-size: 13px !important;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    float: none !important;
}

body.oc-theme .oc-nav-actions-wrap .oc-phone:hover {
    color: var(--oc-brand) !important;
}

/* ===== Portal secondary nav: section tabs + breadcrumbs ===== */
body.oc-theme .oc-portal-nav {
    background: #ffffff;
    border-bottom: 1px solid #d7e5de;
    box-shadow: 0 1px 0 rgba(12, 74, 62, 0.03);
}

body.oc-theme .oc-portal-nav-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    padding: 0 20px;
    min-height: 48px;
    box-sizing: border-box;
}

body.oc-theme .oc-portal-nav-tabs {
    display: inline-flex;
    align-items: stretch;
    gap: 0;
    min-height: 48px;
}

body.oc-theme .oc-portal-nav-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #4a5c56 !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    line-height: 1.2;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

body.oc-theme .oc-portal-nav-tab i {
    font-size: 13px;
    opacity: 0.85;
}

body.oc-theme .oc-portal-nav-tab:hover {
    color: var(--oc-brand) !important;
    background: #f7fbf9;
}

body.oc-theme .oc-portal-nav-tab:focus-visible {
    outline: 2px solid rgba(11, 110, 79, 0.35);
    outline-offset: -2px;
}

body.oc-theme .oc-portal-nav-tab.is-active {
    color: var(--oc-brand) !important;
    border-bottom-color: var(--oc-brand);
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
}

body.oc-theme .oc-portal-nav-tab.is-active i {
    opacity: 1;
    color: var(--oc-brand);
}

body.oc-theme .oc-portal-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0 0 0 auto;
    padding: 8px 0;
    max-width: 100%;
}

body.oc-theme .oc-portal-crumb {
    display: inline-flex;
    align-items: center;
    max-width: min(280px, 42vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
    color: #5a6b65;
}

body.oc-theme .oc-portal-crumb + .oc-portal-crumb::before {
    content: ">";
    display: inline-block;
    margin: 0 8px;
    color: #9bb5aa;
    font-weight: 700;
}

body.oc-theme .oc-portal-crumb a {
    color: var(--oc-brand) !important;
    text-decoration: none !important;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

body.oc-theme .oc-portal-crumb a:hover {
    color: var(--oc-brand-hover) !important;
    border-bottom-color: var(--oc-brand);
}

body.oc-theme .oc-portal-crumb.is-current {
    color: #0b3d31;
    font-weight: 700;
}

/* Legacy nav item classes (kept for compatibility) */
body.oc-theme .oc-portal-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid #c9dbd2;
    background: #f7faf8;
    color: var(--oc-brand) !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    line-height: 1.2;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

body.oc-theme .oc-portal-nav-item i {
    font-size: 13px;
    opacity: 0.9;
}

body.oc-theme .oc-portal-nav-item:hover {
    background: #eef8f3;
    border-color: var(--oc-brand);
    color: var(--oc-brand-hover) !important;
    box-shadow: 0 2px 6px rgba(12, 74, 62, 0.1);
}

body.oc-theme .oc-portal-nav-item.is-active {
    background: linear-gradient(180deg, #12986d 0%, #0b6e4f 100%);
    border-color: #0a5c42;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(11, 110, 79, 0.22);
    cursor: pointer;
    pointer-events: auto;
}

body.oc-theme .oc-portal-nav-item.is-active:hover {
    background: linear-gradient(180deg, #159567 0%, #0f6e4f 100%);
    border-color: #0a5c42;
    color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(11, 110, 79, 0.28);
}

body.oc-theme .oc-portal-nav-item.is-active i {
    opacity: 1;
}

body.oc-theme .oc-portal-nav-item-secondary {
    background: #ffffff;
    border-color: #b7d2c7;
    color: var(--oc-brand) !important;
}

body.oc-theme .oc-portal-nav-item-secondary:hover {
    background: #eef8f3;
    border-color: var(--oc-brand);
}

body.oc-theme .oc-portal-nav-sep {
    display: inline-flex;
    align-items: center;
    color: #9bb5aa;
    font-size: 12px;
    padding: 0 2px;
}

body.oc-theme .oc-portal-nav-current {
    display: inline-flex;
    align-items: center;
    max-width: min(420px, 50vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 7px 12px;
    border-radius: 8px;
    background: #eef8f3;
    border: 1px solid #d0e4da;
    color: var(--oc-ink);
    font-size: 12px;
    font-weight: 700;
}

body.oc-theme #search-container,
body.oc-theme form#search-container.oc-nav-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    float: none !important;
    margin: 0 !important;
    width: auto !important;
}

body.oc-theme #search-container button:not(.oc-btn-quote),
body.oc-theme #search-container button[type="button"]:not(.oc-btn-quote),
body.oc-theme #search-container button[type="submit"]:not(.oc-btn-quote),
body.oc-theme #search-container .btn:not(.oc-btn-quote) {
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    height: 34px !important;
    padding: 0 12px !important;
    white-space: nowrap !important;
    background: var(--oc-brand) !important;
    border: 1px solid var(--oc-brand) !important;
    border-radius: 6px !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}

body.oc-theme #search-container button:not(.oc-btn-quote):hover,
body.oc-theme #search-container .btn:not(.oc-btn-quote):hover {
    background: var(--oc-brand-hover) !important;
    border-color: var(--oc-brand-hover) !important;
}

body.oc-theme #search-container a.buttonclear {
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
}

body.oc-theme #search-container a.buttonclear i {
    color: #fff !important;
}

body.oc-theme .oc-header-sub {
    display: none;
}

body.oc-theme .oc-phone {
    margin: 0 !important;
    float: none !important;
}

/* Legacy navbar classes if still present elsewhere */
body.oc-theme .navbar,
body.oc-theme .navbar.navbar-inverse {
    height: auto !important;
    background: var(--oc-app-bar) !important;
    margin: 0 !important;
    border: 0 !important;
}

body.oc-theme .body-content#bodycontainer,
body.oc-theme .body-content {
    width: 100% !important;
    margin: 0 !important;
    padding: 14px 20px 24px !important;
    min-width: 0 !important;
}

body.oc-theme .panel.panel-mainlist,
body.oc-theme .panel.panel-mainlist > .panel-body {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

body.oc-theme .oc-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff !important;
    border-top: 1px solid var(--oc-line);
    z-index: 1040;
    padding: 5px 20px !important;
    font-size: 12px;
    color: var(--oc-muted);
}

body.oc-theme .oc-footer-left,
body.oc-theme .oc-footer-right {
    display: flex;
    align-items: center;
}

body.oc-theme .oc-footer .float-left {
    float: none !important;
}

@media (max-width: 1100px) {
    body.oc-theme .oc-header-main#navcontainer {
        flex-wrap: wrap;
    }

    body.oc-theme .oc-header-account {
        flex: 1 1 220px;
        max-width: 100%;
        order: 3;
        width: 100%;
    }

    body.oc-theme .oc-nav-actions-wrap {
        margin-left: auto;
        flex-wrap: wrap;
        justify-content: flex-end !important;
    }

    body.oc-theme .oc-portal-nav-inner {
        padding: 0 14px;
        flex-wrap: wrap;
        min-height: 44px;
    }

    body.oc-theme .oc-portal-nav-tabs {
        min-height: 44px;
        width: 100%;
    }

    body.oc-theme .oc-portal-crumbs {
        margin-left: 0;
        width: 100%;
        padding-top: 0;
        padding-bottom: 10px;
    }

    body.oc-theme .oc-portal-crumb {
        max-width: 100%;
    }

    body.oc-theme .oc-portal-nav-current {
        max-width: 100%;
    }

    body.oc-theme #search-container {
        width: auto;
        justify-content: flex-end !important;
    }

    body.oc-theme .oc-footer {
        flex-wrap: wrap;
        height: auto;
        min-height: 40px;
    }
}

/* ===== Global page loader (AJAX / long operations) ===== */
body.oc-theme.oc-loading {
    overflow: hidden;
}

body.oc-theme .oc-page-loader[hidden] {
    display: none !important;
}

body.oc-theme .oc-page-loader {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

body.oc-theme .oc-page-loader-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

body.oc-theme .oc-page-loader-card {
    position: relative;
    z-index: 1;
    width: min(100%, 340px);
    padding: 28px 24px 22px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
    border: 1px solid #d7e5de;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
    text-align: center;
    animation: ocLoaderIn 0.22s ease-out;
}

@keyframes ocLoaderIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

body.oc-theme .oc-page-loader-ring {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    position: relative;
}

body.oc-theme .oc-page-loader-ring span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--oc-brand);
    animation: ocSpin 0.9s linear infinite;
}

body.oc-theme .oc-page-loader-ring span:nth-child(2) {
    inset: 6px;
    border-top-color: #12b98a;
    animation-duration: 1.15s;
    animation-direction: reverse;
}

body.oc-theme .oc-page-loader-ring span:nth-child(3) {
    inset: 12px;
    border-top-color: #86efac;
    animation-duration: 0.75s;
}

@keyframes ocSpin {
    to {
        transform: rotate(360deg);
    }
}

body.oc-theme .oc-page-loader-copy strong {
    display: block;
    margin: 0 0 6px;
    color: var(--oc-ink);
    font-size: 16px;
    font-weight: 700;
}

body.oc-theme .oc-page-loader-copy small {
    display: block;
    color: var(--oc-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

body.oc-theme .oc-page-loader-bar {
    margin-top: 18px;
    height: 4px;
    border-radius: 999px;
    background: #e5efe9;
    overflow: hidden;
}

body.oc-theme .oc-page-loader-bar i {
    display: block;
    height: 100%;
    width: 40%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0b6e4f, #12b98a, #0b6e4f);
    background-size: 200% 100%;
    animation: ocBar 1.1s ease-in-out infinite;
}

@keyframes ocBar {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(320%);
    }
}

/* Avoid double loaders: hide legacy circular loaders + DataTables processing */
body.oc-theme .loader-wrapper,
body.oc-theme #loader-wrapper,
body.oc-theme .loader,
body.oc-theme #loader,
body.oc-theme div.dataTables_processing,
body.oc-theme .dataTables_wrapper .dataTables_processing,
body.oc-theme .dataTables_processing {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}
