:root {
    color-scheme: light;
    --primary: #1459a6;
    --secondary: #102744;
    --accent: #087e8b;
    --body-fg: #172b4d;
    --body-bg: #f3f6fa;
    --header-bg: #102744;
    --header-color: #ffffff;
    --link-fg: #1459a6;
    --link-hover-color: #087e8b;
    --hairline-color: #dbe3ed;
    --border-color: #dbe3ed;
    --darkened-bg: #eaf0f7;
    --selected-row: #f1f6fc;
    --button-bg: #1459a6;
    --default-button-bg: #087e8b;
    --close-button-bg: #64748b;
}

html, body, input, textarea, select, button {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
    background: var(--body-bg);
    color: var(--body-fg);
}

#header {
    background: #102744;
    color: #fff;
    padding: 14px 24px;
}

#branding h1, #branding h1 a:link, #branding h1 a:visited,
#site-name a:link, #site-name a:visited {
    color: #fff;
    font-weight: 700;
}

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

.admin-dashboard-link {
    display: inline-block;
    margin: 4px 0 0 24px;
    color: #d9e7f7 !important;
    text-decoration: none;
}

.admin-dashboard-link:hover { color: #fff !important; text-decoration: underline; }

div.breadcrumbs {
    background: #1459a6;
    color: #fff;
    padding: 10px 24px;
}

div.breadcrumbs a { color: #eaf2fb; }

#content {
    max-width: 1500px;
    margin: 0 auto;
    padding: 28px 24px 40px;
}

#content h1 {
    margin: 0 0 18px;
    color: #172b4d;
    font-size: 26px;
    font-weight: 700;
}

.module, .inline-group, .submit-row, #changelist-filter {
    overflow: hidden;
    border: 1px solid #dbe3ed;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(23, 43, 77, .04);
}

.module h2, .module caption, .inline-group h2 {
    background: #eaf0f7;
    color: #172b4d;
    font-size: 14px;
    font-weight: 700;
}

.module table th, #result_list thead th {
    background: #eaf0f7;
    color: #34445c;
}

.module table td, .module table th, #result_list td, #result_list th {
    border-bottom-color: #dbe3ed;
}

#result_list tbody tr:hover td { background: #f7faff; }
#result_list tbody tr.selected td { background: #f1f6fc; }

#changelist-filter {
    margin-left: 18px;
    border-radius: 12px;
}

#changelist-filter h2 {
    background: #eaf0f7;
    color: #172b4d;
}

#changelist-filter li.selected a { color: #1459a6; font-weight: 700; }

input, textarea, select, .vTextField, .vLargeTextField {
    border: 1px solid #cbd7e4;
    border-radius: 8px;
    color: #172b4d;
}

input:focus, textarea:focus, select:focus {
    border-color: #1459a6;
    outline: 2px solid rgba(20, 89, 166, .14);
}

.button, input[type="submit"], input[type="button"], .submit-row input,
a.button, .object-tools a:link, .object-tools a:visited {
    border: 0;
    border-radius: 8px;
    background: #1459a6;
    color: #fff;
    font-weight: 650;
}

.button:hover, input[type="submit"]:hover, input[type="button"]:hover,
.object-tools a:hover { background: #0f4787; color: #fff; }

.submit-row input.default, input.default, .submit-row input[name="_save"] {
    background: #087e8b;
}

.submit-row input.default:hover, input.default:hover { background: #066873; }

.deletelink, a.deletelink:link, a.deletelink:visited {
    border-radius: 8px;
    background: #a33b3b;
}

.messagelist li {
    margin: 0 0 10px;
    border-radius: 9px;
}

.paginator, #toolbar, .actions {
    border-color: #dbe3ed;
    background: #fff;
}

.login #container {
    overflow: hidden;
    border: 1px solid #dbe3ed;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(23, 43, 77, .10);
}

.login #header { padding: 16px 20px; }
.login #content { padding: 24px; }
.login .submit-row {
    margin: 12px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

@media (max-width: 767px) {
    #header { padding: 12px 16px; }
    #content { padding: 20px 14px 30px; }
    div.breadcrumbs { padding: 9px 14px; }
    #changelist-filter { margin: 14px 0 0; }
    .admin-dashboard-link { margin-left: 14px; }
}
