﻿html:root[data-theme="dark"] {
    color-scheme: dark;
    --bs-body-bg: #0a1420;
    --bs-body-bg-rgb: 10,20,32;
    --bs-body-color: #dbe4ee;
    --bs-body-color-rgb: 219,228,238;
    --bs-emphasis-color: #f1f5f9;
    --bs-emphasis-color-rgb: 241,245,249;
    --bs-secondary-color: rgba(219,228,238,.72);
    --bs-secondary-bg: #152636;
    --bs-secondary-bg-rgb: 21,38,54;
    --bs-tertiary-color: rgba(219,228,238,.5);
    --bs-tertiary-bg: #101f2e;
    --bs-tertiary-bg-rgb: 16,31,46;
    --bs-heading-color: #e8eef5;
    --bs-link-color: #38a8e0;
    --bs-link-color-rgb: 56,168,224;
    --bs-link-hover-color: #5bbbea;
    --bs-link-hover-color-rgb: 91,187,234;
    --bs-border-color: #1e3247;
    --bs-border-color-translucent: rgba(255,255,255,.1);
    --bs-code-color: #f3a4c4;
    --bs-highlight-bg: #4a3a12;
    --bs-highlight-color: #f8e2b0;
}

html:root[data-theme="dark"],
html:root[data-theme="dark"] body {
    background-color: #0a1420 !important;
    color: #dbe4ee !important;
}

html:root[data-theme="dark"] .oc-main-container {
    background-color: transparent !important;
}

html:root[data-theme="dark"] ::selection {
    background: rgba(56,168,224,.35);
    color: #ffffff;
}

html:root[data-theme="dark"] input:-webkit-autofill,
html:root[data-theme="dark"] input:-webkit-autofill:hover,
html:root[data-theme="dark"] input:-webkit-autofill:focus,
html:root[data-theme="dark"] textarea:-webkit-autofill,
html:root[data-theme="dark"] select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #152636 inset !important;
    -webkit-text-fill-color: #e8eef5 !important;
    caret-color: #e8eef5;
}

html:root[data-theme="dark"] ::placeholder {
    color: #8aa0b8 !important;
    opacity: 1;
}

html:root[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #2b4763;
}

html:root[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #3d5f80;
}

html:root[data-theme="dark"] .oc-navbar {
    background-color: #0b2038 !important;
    box-shadow: 0 6px 20px rgba(0,0,0,.45) !important;
    border-bottom: 1px solid rgba(255,255,255,.05) !important;
}

html:root[data-theme="dark"] .oc-mobile-drawer {
    background: #0b2038 !important;
}

html:root[data-theme="dark"] .oc-company-select option,
html:root[data-theme="dark"] .oc-mobile-company-select option {
    color: #dbe4ee;
    background: #101f2e;
}

html:root[data-theme="dark"] .oc-menu-scroll-left {
    background: linear-gradient(to right, #0b2038 40%, rgba(11,32,56,0) 100%) !important;
}

html:root[data-theme="dark"] .oc-menu-scroll-right {
    background: linear-gradient(to left, #0b2038 40%, rgba(11,32,56,0) 100%) !important;
}

html:root[data-theme="dark"] .oc-mobile-toggle span {
    background: rgba(255,255,255,.8) !important;
}

html:root[data-theme="dark"] .oc-badge {
    border-color: #0b2038 !important;
}

html:root[data-theme="dark"] .oc-topbar {
    background: #0d1a28 !important;
    border-bottom-color: #1a2d42 !important;
}

html:root[data-theme="dark"] .oc-live-clock {
    background: #101f2e !important;
    border-color: #1e3247 !important;
    color: #dbe4ee !important;
}

html:root[data-theme="dark"] .oc-page-search,
html:root[data-theme="dark"] .oc-page-search-kbd {
    background: #101f2e !important;
    border-color: #1e3247 !important;
}

html:root[data-theme="dark"] .oc-page-search:focus-within {
    background: #0d1a28 !important;
    border-color: rgba(224,142,11,.45) !important;
}

html:root[data-theme="dark"] .oc-page-search input {
    color: #dbe4ee !important;
}

html:root[data-theme="dark"] .oc-page-search-list {
    background: #101f2e !important;
    border-color: #1e3247 !important;
}

html:root[data-theme="dark"] .oc-ps-item {
    color: #b8c6d6 !important;
}

html:root[data-theme="dark"] .oc-ps-pill {
    background: rgba(56,189,248,.12) !important;
}

html:root[data-theme="dark"] .oc-ps-group,
html:root[data-theme="dark"] .oc-ps-clear {
    color: #8aa0b8 !important;
}

html:root[data-theme="dark"] .oc-ps-item.on {
    color: #7dd3fc !important;
}

html:root[data-theme="dark"] #liveClock .clk-date {
    border-right-color: #1e3247 !important;
}

html:root[data-theme="dark"] .oc-dropdown,
html:root[data-theme="dark"] .oc-notification-dropdown {
    background: #101f2e !important;
    border-color: #1e3247 !important;
    box-shadow: 0 20px 50px rgba(0,0,0,.55) !important;
}

html:root[data-theme="dark"] .oc-navbar-menu .oc-menu-item > .oc-dropdown > .oc-dropdown-arrow {
    background: #101f2e !important;
    border-top-color: #1e3247 !important;
}

html:root[data-theme="dark"] .oc-navbar-menu .oc-menu-item > .oc-dropdown > .oc-dropdown-arrow::before {
    background: linear-gradient(to bottom, rgba(16,31,46,0), #101f2e) !important;
}

html:root[data-theme="dark"] .oc-dropdown a {
    color: #c3d1df !important;
}

html:root[data-theme="dark"] .oc-dropdown a:hover {
    background: #152636 !important;
    color: #ffffff !important;
}

html:root[data-theme="dark"] .oc-dropdown a.active {
    background: rgba(56,168,224,.14) !important;
    color: #7fc8ee !important;
}

html:root[data-theme="dark"] .oc-drop-icon,
html:root[data-theme="dark"] .oc-notification-icon {
    background: #152636 !important;
    color: #7d93a8 !important;
}

html:root[data-theme="dark"] .oc-drop-div {
    background: #1e3247 !important;
}

html:root[data-theme="dark"] .oc-notification-header,
html:root[data-theme="dark"] .oc-notification-item,
html:root[data-theme="dark"] .oc-notification-footer {
    border-color: #1a2d42 !important;
}

html:root[data-theme="dark"] .oc-notification-item:hover,
html:root[data-theme="dark"] .oc-notification-footer:hover {
    background: #152636 !important;
}

html:root[data-theme="dark"] .oc-notification-item.unread {
    background: rgba(56,168,224,.07) !important;
}

html:root[data-theme="dark"] .oc-notification-header,
html:root[data-theme="dark"] .oc-notification-title {
    color: #e8eef5 !important;
}

html:root[data-theme="dark"] .oc-notification-message {
    color: #b9c9da !important;
}

html:root[data-theme="dark"] .bc-current,
html:root[data-theme="dark"] .oc-breadcrumb a:hover,
html:root[data-theme="dark"] .oc-breadcrumb-menu:hover {
    color: #e8eef5 !important;
}

html:root[data-theme="dark"] img:not([src$=".svg"]):not(.oc-keep-bright) {
    filter: brightness(.94);
}

html:root[data-theme="dark"] .modal-content,
html:root[data-theme="dark"] .dropdown-menu {
    background-color: #101f2e;
    border-color: #1e3247;
}

html:root[data-theme="dark"] .form-control,
html:root[data-theme="dark"] .form-select {
    background-color: #152636;
    border-color: #2b4763;
    color: #e8eef5;
}

html:root[data-theme="dark"] .table {
    --bs-table-color: #dbe4ee;
    --bs-table-bg: transparent;
    --bs-table-border-color: #1e3247;
    --bs-table-striped-bg: rgba(255,255,255,.03);
    --bs-table-hover-bg: rgba(255,255,255,.05);
}

html:root[data-theme="dark"] table[border],
html:root[data-theme="dark"] table[rules] > tbody > tr > td,
html:root[data-theme="dark"] table[rules] > tbody > tr > th,
html:root[data-theme="dark"] table[rules] > thead > tr > th,
html:root[data-theme="dark"] table[rules] > tr > td,
html:root[data-theme="dark"] table[rules] > tr > th {
    border-color: #1e3247;
}

html:root[data-theme="dark"] .oc-dp-popup {
    background: #101f2e !important;
    border-color: #1e3247 !important;
    box-shadow: 0 18px 44px rgba(0,0,0,.55) !important;
    color: #dbe4ee !important;
}

.oc-theme-btn {
    position: relative !important;
    overflow: hidden !important;
}

.oc-theme-btn i {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    transition: transform .35s cubic-bezier(.22,.61,.36,1), opacity .25s ease !important;
}

.oc-theme-btn .oc-theme-ico-moon {
    transform: translateY(0) rotate(0);
    opacity: 1;
}

.oc-theme-btn .oc-theme-ico-sun {
    transform: translateY(120%) rotate(-90deg);
    opacity: 0;
    color: #f0a62a !important;
}

html[data-theme="dark"] .oc-theme-btn .oc-theme-ico-moon {
    transform: translateY(-120%) rotate(90deg);
    opacity: 0;
}

html[data-theme="dark"] .oc-theme-btn .oc-theme-ico-sun {
    transform: translateY(0) rotate(0);
    opacity: 1;
}

.oc-theme-float {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 5200;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.14);
    background: #0f2a4a;
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(15,42,74,.28);
    cursor: pointer;
    overflow: hidden;
    padding: 0;
}

.oc-theme-float svg {
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -9px 0 0 -9px;
    transition: transform .35s cubic-bezier(.22,.61,.36,1), opacity .25s ease;
}

.oc-theme-float .oc-theme-ico-sun {
    transform: translateY(160%) rotate(-90deg);
    opacity: 0;
    color: #f0a62a;
}

html[data-theme="dark"] .oc-theme-float {
    background: #152636;
    border-color: #2b4763;
    box-shadow: 0 8px 22px rgba(0,0,0,.5);
}

html[data-theme="dark"] .oc-theme-float .oc-theme-ico-moon {
    transform: translateY(-160%) rotate(90deg);
    opacity: 0;
}

html[data-theme="dark"] .oc-theme-float .oc-theme-ico-sun {
    transform: none;
    opacity: 1;
}

.oc-theme-float:focus-visible {
    outline: 2px solid #38a8e0;
    outline-offset: 2px;
}

@media print {
    .oc-theme-float {
        display: none !important;
    }
}

.oc-appearance {
    padding: 10px 14px 12px;
    border-bottom: 1px solid #f1f5f9;
}

.oc-appearance-label {
    display: block;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 7px;
}

.oc-appearance-seg {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
    padding: 3px;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.oc-appearance-seg button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 30px;
    padding: 5px 4px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #64748b;
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.oc-appearance-seg button i {
    font-size: 11px;
}

.oc-appearance-seg button:hover {
    color: #0f2a4a;
}

.oc-appearance-seg button[aria-pressed="true"] {
    background: #ffffff;
    color: #0f2a4a;
    box-shadow: 0 1px 3px rgba(15,42,74,.14);
}

.oc-appearance-seg button:focus-visible {
    outline: 2px solid #0284c7;
    outline-offset: 1px;
}

html:root[data-theme="dark"] .oc-appearance {
    border-bottom-color: #1a2d42;
}

html:root[data-theme="dark"] .oc-appearance-seg {
    background: #0a1420;
    border-color: #1e3247;
}

html:root[data-theme="dark"] .oc-appearance-seg button {
    color: #7d93a8;
}

html:root[data-theme="dark"] .oc-appearance-seg button:hover {
    color: #e8eef5;
}

html:root[data-theme="dark"] .oc-appearance-seg button[aria-pressed="true"] {
    background: #1e3247;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,.4);
}

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: .28s;
    animation-timing-function: ease;
}

@media print {
    html:root[data-theme="dark"],
    html:root[data-theme="dark"] body {
        background: #ffffff !important;
        color: #000000 !important;
    }
}
