html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
/* PTBA V1 dashboard ------------------------------------------------------- */
:root {
    --ptba-primary: #145a4a;
    --ptba-primary-dark: #0d4438;
    --ptba-primary-soft: #eaf5f1;
    --ptba-accent: #d8a928;
    --ptba-surface: #ffffff;
    --ptba-page: #f5f7f8;
    --ptba-border: #e2e8e6;
    --ptba-text: #18312c;
    --ptba-muted: #687a75;
    --ptba-radius: 0.9rem;
    --ptba-shadow: 0 0.2rem 1rem rgba(24, 49, 44, 0.06);
}

html, body {
    background: var(--ptba-page);
    color: var(--ptba-text);
}

.content {
    max-width: 1800px;
    margin-inline: auto;
    padding-top: 1.5rem;
    padding-bottom: 3rem;
}

.ptba-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin-bottom: 0.85rem;
    color: var(--ptba-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.ptba-breadcrumb a {
    color: var(--ptba-primary);
    text-decoration: none;
}

.ptba-breadcrumb a:hover { text-decoration: underline; }
.ptba-breadcrumb .separator { color: #a5b1ae; }

.ptba-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem !important;
}

.ptba-page-header h1,
.ptba-page-header h2 {
    color: var(--ptba-text);
    font-weight: 750;
    letter-spacing: -0.025em;
}

.ptba-page-header .badge {
    border-radius: 999px;
    padding: 0.45rem 0.7rem;
    letter-spacing: 0.06em;
    font-size: 0.7rem;
}

.ptba-page-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
}

.ptba-page-actions .btn { margin-left: 0 !important; }

.ptba-card,
.ptba-form-card,
.ptba-filter-panel {
    background: var(--ptba-surface);
    border: 1px solid var(--ptba-border) !important;
    border-radius: var(--ptba-radius) !important;
    box-shadow: var(--ptba-shadow);
    overflow: hidden;
}

.ptba-card .card-header,
.ptba-form-card .card-header,
.ptba-card-header {
    background: #fbfcfc;
    border-bottom: 1px solid var(--ptba-border);
    padding: 1rem 1.2rem;
    color: var(--ptba-text);
}

.ptba-form-card > .card-body { padding: 1.35rem; }

.ptba-kpi-grid { margin-bottom: 1.5rem !important; }

.ptba-kpi-card {
    position: relative;
    border: 1px solid var(--ptba-border) !important;
    border-radius: var(--ptba-radius) !important;
    box-shadow: var(--ptba-shadow);
    overflow: hidden;
}

.ptba-kpi-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--kpi-accent, var(--ptba-primary));
}

.ptba-kpi-card .card-body { padding: 1.1rem 1.15rem 1.1rem 1.3rem; }
.ptba-kpi-card .text-muted { color: var(--ptba-muted) !important; font-size: 0.8rem; font-weight: 650; }
.ptba-kpi-card .fs-4 { color: var(--ptba-text); font-size: clamp(1.25rem, 2vw, 1.6rem) !important; line-height: 1.2; margin-top: 0.35rem; }
.ptba-kpi-card.accent-blue { --kpi-accent: #2678c8; }
.ptba-kpi-card.accent-green { --kpi-accent: #21956f; }
.ptba-kpi-card.accent-gold { --kpi-accent: #d8a928; }
.ptba-kpi-card.accent-violet { --kpi-accent: #7656b8; }
.ptba-kpi-card.accent-coral { --kpi-accent: #ce6b55; }

.ptba-filter-panel .card-body { padding: 1rem 1.15rem !important; }
.ptba-filter-panel .form-label { color: #405b54; font-weight: 650; }
.ptba-filter-panel .form-select { border-color: #d7dfdc; background-color: #fff; }
.ptba-filter-panel .form-select:focus,
.ptba-form-card .form-control:focus,
.ptba-form-card .form-select:focus {
    border-color: #6ba99a;
    box-shadow: 0 0 0 0.2rem rgba(20, 90, 74, 0.12);
}

.ptba-table { --bs-table-bg: transparent; }
.ptba-table thead th {
    background: #f1f5f3;
    border-bottom: 1px solid #dbe4e1;
    color: #49625b;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.035em;
    padding: 0.9rem 0.75rem;
    text-transform: uppercase;
    vertical-align: middle;
}
.ptba-table tbody td { border-color: #edf1f0; padding: 0.85rem 0.75rem; }
.ptba-table tbody tr:not(.table-primary):not(.table-light):hover { background: #f8fbfa; }
.ptba-table .activity-code {
    display: inline-flex;
    background: var(--ptba-primary-soft);
    color: var(--ptba-primary-dark);
    border-radius: 0.45rem;
    padding: 0.3rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 750;
}
.ptba-table .subactivity-count {
    display: inline-flex;
    min-width: 2rem;
    justify-content: center;
    border-radius: 999px;
    background: #edf4f2;
    color: var(--ptba-primary-dark);
    padding: 0.25rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 750;
}
.ptba-table .progress { background: #e4ece9; border-radius: 999px; }
.ptba-table .progress-bar { background: linear-gradient(90deg, #208d70, #38aa88); border-radius: 999px; font-size: 0.7rem; font-weight: 700; }
.ptba-table .badge { border-radius: 999px; padding: 0.42rem 0.62rem; }

.ptba-structure-row td { background: #eaf3f0 !important; color: var(--ptba-primary-dark); }
.ptba-subproject-row td { background: #f7f9f8 !important; }

.ptba-card .alert:last-child { margin-bottom: 0; }

.btn { border-radius: 0.55rem; font-weight: 600; }
.btn-primary { background: var(--ptba-primary); border-color: var(--ptba-primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--ptba-primary-dark); border-color: var(--ptba-primary-dark); }
.btn-success { background: #218a69; border-color: #218a69; }

.form-label { color: #38544d; font-weight: 650; }
.form-control, .form-select { border-color: #d7dfdc; border-radius: 0.55rem; }
.validation-summary-errors { border-radius: 0.65rem; background: #fff4f4; color: #9b2f2f; padding: 0.8rem 1rem; margin-bottom: 1rem; }

@media (max-width: 767.98px) {
    .content { padding-inline: 1rem !important; padding-top: 1rem; }
    .ptba-page-header { flex-direction: column; align-items: stretch; }
    .ptba-page-actions { justify-content: stretch; }
    .ptba-page-actions .btn { flex: 1 1 auto; }
    .ptba-form-card > .card-body { padding: 1rem; }
    .ptba-table thead th, .ptba-table tbody td { padding-inline: 0.65rem; }
}
