:root {
    --primary: #102437;
    --secondary: #172f45;
    --accent: #e62632;
    --primary-fg: #ffffff;
    --link-fg: #176d9f;
    --link-selected-fg: #102437;
    --button-bg: #e62632;
    --button-hover-bg: #bd1e29;
    --default-button-bg: #102437;
    --default-button-hover-bg: #172f45;
    --header-bg: #102437;
    --header-color: #ffffff;
    --breadcrumbs-bg: #e62632;
}

#header {
    background: linear-gradient(90deg, #071521 0%, #102437 62%, #e62632 145%);
    min-height: 66px;
    padding: 10px 32px;
}

#branding {
    min-width: 0;
}

.pm-admin-brand {
    align-items: center;
    display: flex;
    gap: 14px;
    min-width: 0;
}

.pm-admin-logo {
    background: #ffffff;
    border-radius: 6px;
    box-sizing: border-box;
    height: 46px;
    object-fit: contain;
    padding: 4px;
    width: 64px;
}

.pm-admin-copy {
    min-width: 0;
}

#site-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.1;
    margin: 0;
}

#site-name a:link,
#site-name a:visited {
    color: #ffffff;
}

.pm-admin-tagline {
    color: #c8d6e2;
    display: block;
    font-size: 0.72rem;
    line-height: 1.25;
    margin-top: 4px;
    text-transform: uppercase;
}

div.breadcrumbs {
    background: #e62632;
}

.module h2,
.module caption,
.inline-group h2 {
    background: #102437;
}

.selector-chosen h2 {
    background: #102437 !important;
}

.button.default,
input[type=submit].default,
.submit-row input.default {
    background: #102437;
}

.button.default:hover,
input[type=submit].default:hover,
.submit-row input.default:hover {
    background: #172f45;
}

.object-tools a:link,
.object-tools a:visited {
    background: #e62632;
}

.object-tools a:focus,
.object-tools a:hover {
    background: #bd1e29;
}

.login #container {
    border-radius: 8px;
    overflow: hidden;
}

.login #header {
    justify-content: center;
    min-height: 152px;
    padding: 28px 24px 20px;
}

.login .pm-admin-brand {
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.login .pm-admin-logo {
    background: #ffffff;
    height: 76px;
    padding: 6px;
    width: 110px;
}

.login #site-name {
    font-size: 1.75rem;
}

.login .pm-admin-tagline {
    color: #d8e3ec;
    font-size: 0.76rem;
}

.login .submit-row input {
    background: #e62632;
}

.login .submit-row input:hover,
.login .submit-row input:focus {
    background: #bd1e29;
}

.pm-admin-summary {
    background: #ffffff;
    border-bottom: 1px solid var(--hairline-color);
    border-top: 1px solid var(--hairline-color);
    padding: 16px;
}

.pm-admin-summary-header {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.pm-admin-summary-header h2 {
    background: transparent;
    color: #102437;
    font-size: 0.94rem;
    font-weight: 700;
    margin: 0;
    padding: 0;
}

.pm-admin-summary-header span {
    color: var(--body-quiet-color);
    font-size: 0.78rem;
}

.pm-admin-summary-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

.pm-admin-summary-card {
    background: #f7f9fb;
    border: 1px solid #d9e1e7;
    border-radius: 6px;
    padding: 10px 12px;
}

.pm-admin-summary-card span {
    color: #5c6b77;
    display: block;
    font-size: 0.72rem;
    line-height: 1.2;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.pm-admin-summary-card strong {
    color: #102437;
    display: block;
    font-size: 1rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.pm-admin-performance {
    background: #ffffff;
    border-bottom: 1px solid var(--hairline-color);
    padding: 16px;
}

.pm-admin-performance-grid {
    margin-bottom: 14px;
}

.pm-admin-performance-table-wrap {
    border: 1px solid #d9e1e7;
    border-radius: 6px;
    overflow-x: auto;
}

.pm-admin-performance-table {
    border-collapse: collapse;
    min-width: 980px;
    width: 100%;
}

.pm-admin-performance-table th,
.pm-admin-performance-table td {
    border-bottom: 1px solid #e4e9ee;
    padding: 8px 10px;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.pm-admin-performance-table th {
    background: #102437;
    color: #ffffff;
    font-size: 0.72rem;
    text-transform: uppercase;
}

.pm-admin-performance-table td {
    color: #20313f;
    font-size: 0.8rem;
}

.pm-admin-performance-table .num {
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.pm-admin-performance-table .positive {
    color: #087443;
    font-weight: 700;
}

.pm-admin-performance-table .negative {
    color: #b4232c;
    font-weight: 700;
}

.pm-admin-performance-note {
    color: var(--body-quiet-color);
    font-size: 0.78rem;
    margin: 10px 0 0;
}

.pm-admin-raw-heading {
    align-items: baseline;
    background: #f7f9fb;
    border-bottom: 1px solid #d9e1e7;
    border-top: 1px solid #d9e1e7;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    justify-content: space-between;
    padding: 12px 16px;
}

.pm-admin-raw-heading h2 {
    background: transparent;
    color: #102437;
    font-size: 0.88rem;
    font-weight: 700;
    margin: 0;
    padding: 0;
}

.pm-admin-raw-heading span {
    color: var(--body-quiet-color);
    font-size: 0.76rem;
}

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

    .pm-admin-logo {
        height: 40px;
        width: 56px;
    }

    #site-name {
        font-size: 1.08rem;
    }

    .pm-admin-tagline {
        font-size: 0.66rem;
    }
}
