:root{--primary:#3157d5;--secondary:#1f2937;--accent:#16a085;--header-bg:#111827;--header-color:#fff;--breadcrumbs-bg:#1f2937;--breadcrumbs-fg:#dbe4ff;--link-fg:#3157d5;--link-hover-color:#1e40af;--button-bg:#3157d5;--button-hover-bg:#2546b7;--default-button-bg:#3157d5;--default-button-hover-bg:#2546b7}
body{background:#f4f6fa}#header{background:#111827;padding:13px 28px;box-shadow:0 2px 12px rgba(15,23,42,.18)}
.platform-brand{display:flex;align-items:center;gap:12px;color:#fff}.platform-brand__mark{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:linear-gradient(145deg,#5275ec,#16a085);font-size:20px;font-weight:800}.platform-brand strong,.platform-brand small{display:block}.platform-brand strong{font-size:17px}.platform-brand small{margin-top:2px;color:#b9c6dc;font-size:11px;text-transform:uppercase;letter-spacing:.08em}
div.breadcrumbs{background:#1f2937;padding:12px 28px}.module,.inline-group{border-radius:12px;overflow:hidden;border:1px solid #e2e8f0;background:#fff}.module h2,.module caption,.inline-group h2{background:#eaf0ff;color:#1f3167}.button,input[type=submit],input[type=button],.submit-row input,a.button{border-radius:8px}.object-tools a{border-radius:8px;background:#3157d5}.selector-chosen h2{background:#3157d5!important}.dashboard #content{width:auto}.dashboard #content-main{width:100%;max-width:none}.dashboard #content-related{margin-right:-310px;width:285px}.form-row{padding:14px}.submit-row{border-radius:12px}.messagelist li{border-radius:10px}
.platform-welcome{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px;padding:24px 26px;border-radius:16px;background:linear-gradient(130deg,#172554,#3157d5);color:#fff;box-shadow:0 14px 35px rgba(49,87,213,.18)}.platform-welcome h1{margin:2px 0 7px;color:#fff;font-size:28px}.platform-welcome p{margin:0;color:#dbe4ff}.platform-eyebrow{font-size:11px!important;font-weight:700;text-transform:uppercase;letter-spacing:.12em}.platform-date{white-space:nowrap;color:#dbe4ff}
.platform-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:15px;margin-bottom:24px}.platform-stat{display:flex;flex-direction:column;min-height:142px;padding:20px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;color:#24324a!important;text-decoration:none!important;box-shadow:0 8px 25px rgba(15,23,42,.05);transition:transform .15s,box-shadow .15s}.platform-stat:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(15,23,42,.09)}.platform-stat span{color:#64748b;font-size:13px}.platform-stat strong{margin:12px 0 10px;font-size:27px;color:#172554}.platform-stat small{margin-top:auto;color:#3157d5}.platform-stat--attention{border-color:#fdba74;background:#fffaf5}.platform-stat--attention strong{color:#c2410c}.platform-section{padding:20px;border:1px solid #e2e8f0;border-radius:14px;background:#fff}.platform-section__head h2{margin:0 0 16px;color:#172554;font-size:18px}.platform-section .module{margin-bottom:14px}
@media(max-width:1024px){.dashboard #content-related{float:none;width:auto;margin:24px 0 0}.dashboard #content-main{float:none}.platform-welcome{flex-direction:column}.platform-date{white-space:normal}}
@media(max-width:600px){#header{padding:12px 16px}.platform-welcome{padding:20px}.platform-stats{grid-template-columns:1fr 1fr}.platform-section{padding:10px}}
@media(max-width:420px){.platform-stats{grid-template-columns:1fr}}


.help.help-tooltip{position:relative;display:inline-grid!important;place-items:center;width:21px;height:21px;margin:6px 0 0 7px!important;padding:0!important;border-radius:50%;background:#3157d5;color:#fff!important;font-size:13px!important;font-weight:800;line-height:1!important;cursor:help;vertical-align:middle;overflow:visible;outline:none}
.help-tooltip__bubble{display:none;position:absolute;z-index:1000;left:30px;top:50%;width:max-content;max-width:min(420px,70vw);padding:11px 13px;border-radius:9px;background:#111827;color:#fff;font-size:13px;font-weight:500;line-height:1.45;white-space:normal;transform:translateY(-50%);box-shadow:0 10px 30px rgba(0,0,0,.28);text-align:left}
.help-tooltip__bubble::before{content:"";position:absolute;right:100%;top:50%;margin-top:-6px;border:6px solid transparent;border-right-color:#111827}
.help.help-tooltip:hover .help-tooltip__bubble,.help.help-tooltip:focus .help-tooltip__bubble,.help.help-tooltip:focus-within .help-tooltip__bubble{display:block}
@media(max-width:700px){.help-tooltip__bubble{position:fixed;left:16px;right:16px;top:auto;bottom:18px;width:auto;max-width:none;transform:none}.help-tooltip__bubble::before{display:none}}

/* Unified light administration palette.
   Neutral surfaces carry most of the interface; blue is reserved for actions. */
html[data-theme="light"],
html[data-theme="dark"],
html[data-theme="auto"],
:root {
    --primary: #285ea8;
    --secondary: #334e68;
    --accent: #0f766e;
    --primary-fg: #ffffff;

    --body-fg: #243447;
    --body-bg: #f4f7fb;
    --body-quiet-color: #52667a;
    --body-medium-color: #3f5368;
    --body-loud-color: #172b3f;

    --header-color: #f8fafc;
    --header-branding-color: #ffffff;
    --header-bg: #1f2d3d;
    --header-link-color: #f8fafc;

    --breadcrumbs-fg: #52667a;
    --breadcrumbs-link-fg: #285ea8;
    --breadcrumbs-bg: #ffffff;

    --link-fg: #245a9c;
    --link-hover-color: #173f73;
    --link-selected-fg: #173f73;

    --hairline-color: #e4eaf1;
    --border-color: #c7d2df;

    --error-fg: #b42318;
    --message-success-bg: #e8f5ee;
    --message-warning-bg: #fff4d6;
    --message-error-bg: #fdebea;

    --darkened-bg: #f2f5f8;
    --selected-bg: #e8eff7;
    --selected-row: #e8f1fb;

    --button-fg: #ffffff;
    --button-bg: #285ea8;
    --button-hover-bg: #1f4d8c;
    --default-button-bg: #285ea8;
    --default-button-hover-bg: #1f4d8c;
    --close-button-bg: #60758a;
    --close-button-hover-bg: #465a6e;
    --delete-button-bg: #b42318;
    --delete-button-hover-bg: #8f1c14;

    --object-tools-fg: #ffffff;
    --object-tools-bg: #285ea8;
    --object-tools-hover-bg: #1f4d8c;

    color-scheme: light;
}

.theme-toggle {
    display: none !important;
}

body {
    background: #f4f7fb;
    color: #243447;
}

#header {
    background: #1f2d3d;
    border-bottom: 1px solid #34465a;
    box-shadow: 0 2px 10px rgba(23, 43, 63, .12);
}

#user-tools,
#user-tools a:link,
#user-tools a:visited {
    color: #dbe5ef;
}

#user-tools a:hover,
#user-tools a:focus {
    color: #ffffff;
}

div.breadcrumbs {
    background: #ffffff;
    color: #52667a;
    border-bottom: 1px solid #dce4ed;
    box-shadow: 0 1px 3px rgba(23, 43, 63, .04);
}

div.breadcrumbs a {
    color: #285ea8;
}

#content h1 {
    color: #172b3f;
    font-weight: 650;
}

.module,
.inline-group,
.platform-section,
.submit-row {
    border-color: #dce4ed;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(23, 43, 63, .045);
}

body .module h2,
body .module caption,
body .inline-group h2,
body fieldset .fieldset-heading,
body fieldset .inline-heading,
body :not(.inline-related) .collapse summary {
    background: #edf3f8;
    color: #243b53;
    border-color: #dce4ed;
    font-weight: 650;
}

body .inline-related h3,
body .inline-related h4,
body .inline-related:not(.tabular) .collapse summary {
    background: #f7f9fc;
    color: #3f5368;
    border-color: #e4eaf1;
}

body .inline-related fieldset,
body .inline-related,
body .form-row {
    background: #ffffff;
    color: #243447;
}

.form-row {
    border-bottom-color: #e4eaf1;
}

label,
.aligned label,
.required label,
label.required {
    color: #334e68;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="number"],
input[type="search"],
input[type="tel"],
textarea,
select {
    background: #ffffff;
    color: #172b3f;
    border: 1px solid #b8c6d5;
    border-radius: 7px;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    border-color: #285ea8;
    box-shadow: 0 0 0 3px rgba(40, 94, 168, .15);
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #718397;
    opacity: 1;
}

.button,
input[type="submit"],
input[type="button"],
.submit-row input,
a.button,
.object-tools a {
    background: #285ea8;
    color: #ffffff;
    border: 1px solid #285ea8;
    box-shadow: none;
}

.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.submit-row input:hover,
a.button:hover,
.object-tools a:hover {
    background: #1f4d8c;
    border-color: #1f4d8c;
}

.submit-row {
    background: #f8fafc;
}

#nav-sidebar,
.toggle-nav-sidebar {
    background: #ffffff;
    border-color: #dce4ed;
}

#nav-sidebar .module {
    border: 1px solid #dce4ed;
    box-shadow: none;
}

#nav-sidebar .module caption {
    background: #edf3f8;
    color: #243b53;
}

#nav-sidebar .module caption a,
#nav-sidebar a.section:link,
#nav-sidebar a.section:visited {
    color: #243b53 !important;
}

#nav-sidebar .module th,
#nav-sidebar .module td {
    background: #ffffff;
    border-color: #edf1f5;
}

#nav-sidebar .module tr:hover th,
#nav-sidebar .module tr:hover td {
    background: #f3f7fb;
}

#nav-sidebar .current-model th,
#nav-sidebar .current-model td {
    background: #e8f1fb;
    box-shadow: inset 3px 0 0 #285ea8;
}

#nav-sidebar a:link,
#nav-sidebar a:visited {
    color: #285a94;
}

#nav-filter {
    margin: 8px 0;
    padding: 8px 10px;
    background: #ffffff;
    color: #243447;
    border-color: #b8c6d5;
    border-radius: 6px;
}

.platform-brand__mark {
    background: linear-gradient(145deg, #3977bd, #23867d);
}

.platform-brand small {
    color: #b9c7d6;
}

.platform-welcome {
    background: #eaf2fb;
    color: #17324d;
    border: 1px solid #d3e1ef;
    box-shadow: 0 8px 24px rgba(23, 67, 105, .08);
}

.platform-welcome h1 {
    color: #17324d;
}

.platform-welcome p,
.platform-date {
    color: #45627d;
}

.platform-stat,
.platform-section {
    box-shadow: 0 5px 18px rgba(23, 43, 63, .055);
}

.platform-stat strong,
.platform-section__head h2 {
    color: #17324d;
}

.platform-stat span {
    color: #52667a;
}

.platform-stat small {
    color: #285ea8;
}

.platform-stat--attention {
    border-color: #e9c78c;
    background: #fffbf2;
}

.platform-stat--attention strong {
    color: #9a4b13;
}

.help.help-tooltip {
    background: #285ea8;
}

.help-tooltip__bubble {
    background: #243447;
    box-shadow: 0 10px 26px rgba(23, 43, 63, .22);
}

.help-tooltip__bubble::before {
    border-right-color: #243447;
}

table thead th,
table thead td {
    background: #edf3f8;
    color: #334e68;
    border-color: #dce4ed;
}

tbody tr:nth-child(odd) {
    background: #ffffff;
}

tbody tr:nth-child(even) {
    background: #f8fafc;
}

tbody tr:hover {
    background: #eef5fc;
}

.paginator {
    background: #ffffff;
    color: #52667a;
    border-top-color: #dce4ed;
}

@media (max-width: 767px) {
    #header {
        padding: 12px 16px;
    }
}
