:root {
    --cm-brand: #365cf5;
    --cm-brand-hover: #294bd4;
    --cm-brand-soft: #eef2ff;
    --cm-page: #f4f6fb;
    --cm-surface: #ffffff;
    --cm-border: #e3e7f0;
    --cm-ink: #182230;
    --cm-muted: #667085;
    --cm-shadow: 0 12px 32px rgb(15 23 42 / 0.10);
    --cm-header-height: 64px;
    --cm-header-accent: #3157f6;
}

.site-header {
    height: 94px;
    padding: 0 max(32px, calc((100vw - 1216px) / 2));
    border: 0;
    background: #f3f3f3;
    color: #101828;
    box-shadow: none;
    font-family: Inter, sans-serif;
}

.site-header * {
    font-family: inherit;
}

.site-header-logo {
    width: 160px;
    height: auto;
}

.site-header > .flex-1 {
    min-width: 0;
}

.site-header-links {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 32px;
}

.site-mobile-nav {
    display: none;
    position: relative;
    color: #101828;
}

.site-mobile-nav summary {
    list-style: none;
    cursor: pointer;
    padding: 8px;
}

.site-mobile-nav summary::-webkit-details-marker {
    display: none;
}

.site-mobile-nav > div {
    position: fixed;
    top: 94px;
    right: 16px;
    left: 16px;
    z-index: 60;
    max-width: 400px;
    margin-left: auto;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 20px #0002;
}

.site-mobile-nav > div a {
    display: block;
    padding: 10px;
    color: #475467;
    font-size: 14px;
}

.site-mobile-nav > div a:hover,
.site-mobile-nav > div a[aria-current="page"] {
    color: #3157ff;
}

.site-header-auth {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 12px;
}

.site-header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 0;
    padding-left: 24px;
    border-left: 1px solid #e5e7eb;
    min-height: 28px;
    font-size: 13px;
    color: #64748b;
    overflow: hidden;
}

.site-header-breadcrumb-current {
    color: #111215;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-header-search {
    width: 200px;
    height: 36px;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
}

.site-header-search:hover {
    background: #eef2ff;
    color: var(--cm-header-accent);
}

.site-header-icon {
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #64748b;
}

.site-header-icon:hover {
    background: #f8fafc;
    color: var(--cm-header-accent);
}

.site-header-avatar {
    display: flex;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--cm-header-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.site-header-dot {
    background: var(--cm-header-accent);
    border: 1px solid #fff;
}

.site-header-account {
    border-color: transparent;
    background: #eef1fa;
    border-radius: 24px;
    padding: 12px 24px;
    color: #101828;
    font-size: 13px;
}

.site-header-account:hover {
    border-color: var(--cm-header-accent);
}

.site-header .nav-link {
    color: #667085;
    font-size: 13px;
}

.site-header .nav-link:hover,
.site-header .site-header-links .nav-link.nav-link-active {
    color: #3157ff;
}

.site-header .btn-cyan {
    min-width: 124px;
    padding: 12px 24px;
    border: 0;
    border-radius: 24px;
    background: #3157ff;
    color: #fff;
    font-weight: 500;
}

.site-header .btn-cyan:hover {
    background: #2349e6;
}

.portal-frame {
    padding-top: var(--cm-header-height);
}

.portal-sidebar {
    top: var(--cm-header-height);
}

@media (max-width: 767px) {
    .site-header {
        height: 72px;
        padding-inline: 16px;
    }

    .site-header-breadcrumb {
        display: none;
    }

    .site-header-logo {
        width: 128px;
    }

    .site-header .btn-cyan {
        min-width: 0;
        padding: 10px 12px;
        font-size: 13px;
    }

    .site-header-account {
        padding: 8px;
    }

    .site-mobile-nav > div {
        top: 72px;
    }
}

@media (max-width: 1023px) {
    .site-header-links {
        display: none;
    }

    .site-mobile-nav {
        display: block;
    }
}

body.bg-gray-50 {
    background-color: var(--cm-page);
    color: var(--cm-ink);
    font-family: var(--cm-font-body, Inter), sans-serif;
}

.card,
.stat-card {
    background-color: var(--cm-surface);
    border-color: var(--cm-border);
    border-radius: 16px;
}

.bg-white.rounded-lg.border,
.bg-white.rounded-xl.border,
.bg-white.rounded-2xl.border {
    border-color: var(--cm-border);
}

[class~="bg-blue-500"],
[class~="bg-blue-600"],
[class~="bg-blue-700"],
[class~="bg-indigo-500"],
[class~="bg-indigo-600"],
[class~="bg-indigo-700"] {
    background-color: var(--cm-brand);
}

[class~="text-blue-500"],
[class~="text-blue-600"],
[class~="text-blue-700"],
[class~="text-blue-800"],
[class~="text-indigo-500"],
[class~="text-indigo-600"],
[class~="text-indigo-700"],
[class~="text-indigo-800"] {
    color: var(--cm-brand);
}

[class~="border-blue-500"],
[class~="border-blue-600"],
[class~="border-indigo-500"],
[class~="border-indigo-600"] {
    border-color: var(--cm-brand);
}

[class~="hover:bg-blue-600"]:hover,
[class~="hover:bg-blue-700"]:hover,
[class~="hover:bg-indigo-600"]:hover,
[class~="hover:bg-indigo-700"]:hover {
    background-color: var(--cm-brand-hover);
}

.sidebar-link {
    border-radius: 10px;
}

.sidebar-submenu {
    margin-top: 2px;
    margin-bottom: 4px;
}

.sidebar-sublink {
    width: max-content;
    max-width: 100%;
    min-height: 27px;
    padding: 5px 8px;
    font-size: 11px;
}

.sidebar-sublink::before {
    width: 3px;
    height: 3px;
    flex: 0 0 3px;
    border-radius: 999px;
    background-color: currentColor;
    content: "";
}

.sidebar-link:hover {
    background-color: var(--cm-brand-soft);
    color: var(--cm-brand);
}

.sidebar-link.active {
    background-color: var(--cm-brand-soft);
    color: var(--cm-brand);
}

.sidebar-link.active svg {
    color: var(--cm-brand);
}

.btn-primary,
.btn-cyan,
.btn-green {
    background-color: var(--cm-brand);
    border-color: var(--cm-brand);
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.btn-primary:hover,
.btn-cyan:hover,
.btn-green:hover {
    background-color: var(--cm-brand-hover);
    border-color: var(--cm-brand-hover);
    color: #fff;
}

.btn-primary:focus-visible,
.btn-cyan:focus-visible,
.btn-green:focus-visible {
    outline: 3px solid rgb(54 92 245 / 0.24);
    outline-offset: 2px;
}

.btn-outline {
    border-radius: 10px;
}

.status-badge {
    border-radius: 999px;
}

body input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
body select,
body textarea {
    font-size: 14px;
    line-height: 20px;
    border-color: var(--cm-border);
    border-radius: 10px;
}

body input:focus,
body select:focus,
body textarea:focus {
    border-color: var(--cm-brand);
    outline: 0;
    box-shadow: 0 0 0 3px rgb(54 92 245 / 0.12);
}

.cm-dropdown {
    border-color: var(--cm-border);
    border-radius: 12px;
    box-shadow: var(--cm-shadow);
}

.nav-link {
    border-bottom: 2px solid transparent;
    padding-bottom: 5px;
}

.nav-link:hover {
    border-bottom-color: var(--cm-brand);
    color: #fff;
}

.nav-link.nav-link-active {
    border-bottom-color: var(--cm-brand);
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
.cm-dialog { padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border: 0; border-radius: 16px; background: #fff; box-shadow: 0 20px 60px rgb(15 23 42 / .2); color: #111215; }
.cm-dialog::backdrop { background: rgb(15 23 42 / .35); }
.cm-dialog-heading { display: flex; justify-content: space-between; gap: 24px; padding: 24px; border-bottom: 1px solid #e2e8f0; font-size: 19px; font-weight: 600; }
.cm-dialog-heading button { color: #64748b; font-size: 24px; }
.cm-dialog-body { padding: 24px; }
.cm-dialog-footer { display: flex; justify-content: flex-end; gap: 12px; padding: 20px 24px; border-top: 1px solid #e2e8f0; }
.cm-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 12px 16px; border-radius: 6px; font-size: 14px; line-height: 18px; font-weight: 500; background: #fff; border: 1px solid #e2e8f0; color: #111215; }
.cm-button:hover { background: #f8fafc; }
.cm-empty { padding: 32px 16px; text-align: center; color: #7b8798; font-size: 14px; }
