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;
}

.auth-shell {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: min(520px, 100%);
    padding: 1.5rem;
    border-radius: 1.5rem;
    background: linear-gradient(180deg, #f8fafc, #e2e8f0);
    border: 1px solid #cbd5e1;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.auth-head h1 {
    margin-bottom: 0.5rem;
}

.auth-head p {
    margin-bottom: 1rem;
}

.auth-form {
    display: grid;
    gap: 1rem;
}

.action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.access-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.4fr);
    gap: 1rem;
}

.clickable-row {
    cursor: pointer;
}

.selected-row {
    background: rgba(37, 99, 235, 0.12);
}

.checkbox-card {
    align-content: center;
}

.toggle-label {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin: 0;
}

.toggle-label input {
    width: auto;
}

.permission-note {
    font-size: 0.85rem;
}

@media (max-width: 1100px) {
    .access-layout {
        grid-template-columns: 1fr;
    }
}

.project-shell {
    display: grid;
    gap: 1rem;
    color: #172033;
}

.project-headerbar,
.project-card {
    background: #ffffff;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(22, 34, 51, 0.08);
}

.project-headerbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem;
}

.project-headercopy {
    min-width: 0;
}

.project-eyebrow {
    margin: 0 0 0.35rem;
    color: #4b6380;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.project-heading-row h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.project-copy,
.project-card-head p {
    margin: 0.35rem 0 0;
    color: #5e6f85;
}

.project-statstrip,
.project-toolbar,
.project-headeractions,
.project-form-actions,
.project-grid-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.project-statstrip {
    justify-content: flex-end;
}

.project-statpill {
    min-width: 112px;
    padding: 0.7rem 0.85rem;
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    background: #f8fafc;
}

.project-statpill span {
    display: block;
    color: #60748e;
    font-size: 0.78rem;
}

.project-statpill strong {
    display: block;
    margin-top: 0.1rem;
    color: #1c2c42;
    font-size: 1.35rem;
}

.project-card {
    padding: 1rem;
}

.project-card-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-card-head h2 {
    margin: 0;
    font-size: 1.15rem;
}

.project-card-meta,
.project-record-state {
    color: #53667f;
    font-size: 0.86rem;
}

.project-feedback {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid #add7bc;
    background: #ebf8ef;
    color: #235c35;
}

.project-feedback.error {
    border-color: #f0b0b0;
    background: #fff0f0;
    color: #8a2626;
}

.project-btn,
.project-inline-btn,
.project-plain-btn {
    min-height: 2.25rem;
    border-radius: 6px;
    font-weight: 600;
}

.project-plain-btn {
    border: 1px solid #c6d1df;
    background: #ffffff;
    color: #23354d;
    padding: 0.45rem 0.8rem;
}

.project-empty-state {
    padding: 2rem;
    border: 1px dashed #b9c6d6;
    border-radius: 8px;
    background: #f8fafc;
    color: #53667f;
    text-align: center;
}

.project-kanban {
    display: grid;
    grid-template-columns: repeat(6, minmax(220px, 1fr));
    gap: 0.8rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.project-kanban-column {
    min-height: 420px;
    padding: 0.75rem;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: #f6f8fb;
}

.project-kanban-column header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.project-kanban-column h3 {
    margin: 0;
    font-size: 0.95rem;
}

.project-kanban-column header span {
    min-width: 1.7rem;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
}

.project-kanban-list {
    display: grid;
    gap: 0.65rem;
}

.project-task-card {
    display: grid;
    gap: 0.55rem;
    padding: 0.75rem;
    border: 1px solid #d5deea;
    border-left: 4px solid #2f6fed;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(30, 41, 59, 0.08);
    cursor: grab;
}

.project-task-card.blocked {
    border-left-color: #d04747;
}

.project-task-topline,
.project-task-meta,
.project-task-footer,
.project-task-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.55rem;
    align-items: center;
}

.project-task-topline strong {
    min-width: 0;
    font-size: 0.92rem;
}

.project-priority,
.project-blocked {
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: #edf2f7;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.project-blocked {
    background: #fdecec;
    color: #9d2b2b;
}

.project-task-meta,
.project-task-footer {
    color: #5f7188;
    font-size: 0.78rem;
}

.project-task-actions button {
    border: 1px solid #c7d2e2;
    border-radius: 6px;
    background: #ffffff;
    color: #25405f;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.5rem;
}

.project-popup-body,
.project-confirm-body {
    padding: 1rem;
}

.project-confirm-copy {
    color: #66758a;
}

.project-form-actions {
    justify-content: flex-end;
    margin-top: 1rem;
}

.project-field-with-help {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
    align-items: center;
}

.project-help-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border: 1px solid #b9c7d8;
    border-radius: 50%;
    background: #f8fafc;
    color: #2c405a;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: help;
}

.project-help-dot:focus-visible {
    outline: 2px solid #6b48c6;
    outline-offset: 2px;
}

.project-field-hint {
    margin-top: 0.3rem;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.3;
}

.project-checklist-summary {
    display: flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid #d4deea;
    border-radius: 6px;
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
}

.project-checklist-editor {
    display: grid;
    gap: 0.7rem;
    margin-top: 1rem;
    padding: 0.85rem;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: #f8fafc;
}

.project-checklist-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
}

.project-checklist-head h3 {
    margin: 0;
    font-size: 0.98rem;
}

.project-checklist-list {
    display: grid;
    gap: 0.55rem;
}

.project-checklist-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
}

.project-checklist-remove {
    min-height: 2.2rem;
    border: 1px solid #e0b4b4;
    border-radius: 6px;
    background: #fff7f7;
    color: #8f2d2d;
    font-weight: 700;
    padding: 0.35rem 0.65rem;
}

.project-popup .dxbl-popup-body {
    color: #172033;
}

.project-task-html-editor,
.project-task-html-editor .dx-htmleditor,
.project-task-html-editor .dx-htmleditor-content,
.project-task-html-editor .dx-quill-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.project-task-html-editor .dx-toolbar-items-container,
.project-task-html-editor .dx-toolbar-before,
.project-task-html-editor .dx-toolbar-center,
.project-task-html-editor .dx-toolbar-after {
    flex-wrap: wrap;
}

.project-task-html-editor .ql-editor {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.project-task-html-editor .ql-editor img,
.project-task-html-editor .ql-editor table,
.project-task-html-editor .ql-editor iframe,
.project-task-html-editor .ql-editor video {
    max-width: 100% !important;
}

.project-task-html-editor .ql-editor img,
.project-task-html-editor .ql-editor iframe,
.project-task-html-editor .ql-editor video {
    height: auto !important;
}

@media (max-width: 1200px) {
    .project-headerbar,
    .project-card-head {
        flex-direction: column;
    }

    .project-statstrip {
        justify-content: flex-start;
    }
}

/* Service Report detail spacing override kept global so it applies immediately in the running app. */
.service-report-detail-workspace {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

.service-report-detail-workspace > .service-report-detail-card {
    margin: 0 !important;
}

.service-report-detail-workspace > .service-report-detail-card + .service-report-detail-card {
    margin-top: 10px !important;
}

.service-report-detail-header-card {
    padding-bottom: 0.35rem !important;
}

.service-report-detail-header-card .dxbl-fl,
.service-report-detail-header-card .dxbl-fl-cpt,
.service-report-detail-header-card .dxbl-fl-gr {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.service-report-detail-assets-card {
    padding-top: 0.85rem !important;
}

.billing-detail-popup .dxbl-popup-header,
.billing-detail-popup .dxbl-popup-header * {
    color: #1f2937 !important;
    font-weight: 800 !important;
}

.billing-detail-popup .billing-detail-confirm-body,
.billing-detail-popup .billing-detail-confirm-body p,
.billing-detail-popup .dxbl-fl-cpt,
.billing-detail-popup .dxbl-fl-cpt *,
.billing-detail-popup label {
    color: #334155 !important;
}

.billing-detail-popup .dxbl-fl-cpt,
.billing-detail-popup .dxbl-fl-cpt * {
    font-weight: 800 !important;
}

.billing-detail-popup .billing-detail-actions .dxbl-btn.dxbl-btn-style-secondary,
.billing-detail-popup .billing-detail-actions .dxbl-btn.dxbl-btn-style-secondary * {
    color: #0f172a !important;
}
