html,
body {
    background: #f6f7f9;
    color: #182230;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

a,
.mud-link {
    color: #0f766e;
}

h1:focus {
    outline: none;
}

.page-header {
    align-items: flex-start;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 24px;
}

.page-header.compact {
    margin-bottom: 18px;
}

.header-copy {
    color: #667085;
    max-width: 760px;
}

.header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.section-grid {
    margin-top: 4px;
}

.metric-panel {
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    gap: 14px;
    min-height: 104px;
    padding: 18px;
}

.work-panel {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 18px;
    padding: 20px;
}

.workflow-map-panel {
    overflow: hidden;
}

.workflow-svg-scroll {
    overflow-x: auto;
    padding-bottom: 4px;
}

.workflow-svg {
    display: block;
    height: auto;
    min-width: 920px;
    width: 100%;
}

.workflow-node-title {
    fill: #172033;
    font-size: 15px;
    font-weight: 700;
}

.workflow-node-text,
.workflow-branch-label,
.workflow-rail-label {
    fill: #475467;
    font-size: 13px;
}

.workflow-rail-label {
    font-weight: 600;
}

.workflow-step-number {
    fill: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-anchor: middle;
}

.workflow-step-dot {
    fill: #172033;
}

.workflow-arrow {
    fill: none;
    stroke: #64748b;
    stroke-linecap: round;
    stroke-width: 2.4;
}

.workflow-rail {
    fill: none;
    stroke: #cbd5e1;
    stroke-linecap: round;
    stroke-width: 3;
}

.workflow-audit-link {
    fill: none;
    stroke: #cbd5e1;
    stroke-dasharray: 4 6;
    stroke-linecap: round;
    stroke-width: 1.6;
}

.workflow-audit-dot {
    fill: #0f766e;
}

.workflow-fill-submission {
    fill: #ecfeff;
    stroke: #67e8f9;
}

.workflow-fill-analysis {
    fill: #eef2ff;
    stroke: #a5b4fc;
}

.workflow-fill-gate {
    fill: #fff7ed;
    stroke: #fdba74;
}

.workflow-fill-meeting {
    fill: #f0fdf4;
    stroke: #86efac;
}

.workflow-fill-minutes {
    fill: #fdf2f8;
    stroke: #f9a8d4;
}

.workflow-fill-direct {
    fill: #fefce8;
    stroke: #fde047;
}

.workflow-fill-action {
    fill: #f8fafc;
    stroke: #94a3b8;
}

.workflow-fill-submission,
.workflow-fill-analysis,
.workflow-fill-gate,
.workflow-fill-meeting,
.workflow-fill-minutes,
.workflow-fill-direct,
.workflow-fill-action {
    stroke-width: 1.4;
}

.sub-panel {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

.panel-heading {
    margin-bottom: 12px;
}

.data-table .mud-table-container {
    border-radius: 8px;
}

.data-table .mud-table-head {
    background: #f8fafc;
}

.action-strip,
.action-card,
.decision-card,
.passage-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
}

.action-strip {
    background: #ffffff;
}

.action-card {
    background: #ffffff;
}

.decision-card {
    background: #fcfcfd;
}

.passage-card {
    background: #ffffff;
}

.due-label {
    color: #7c3aed;
    display: block;
    margin-top: 8px;
}

.committee-load {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    min-height: 114px;
    padding: 14px;
}

.committee-panel {
    min-height: 100%;
}

.committee-meta {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
}

.committee-meta > div,
.role-tile,
.estimate-row {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
}

.role-tile {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    min-height: 96px;
}

.estimate-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.chip-row {
    flex-wrap: wrap;
}

.filter-row {
    margin-bottom: 10px;
}

.queue-table .mud-table-container {
    overflow-x: auto;
}

.queue-table .mud-table-cell {
    vertical-align: top;
}

.queue-title {
    min-width: 190px;
}

.queue-long {
    min-width: 240px;
}

.queue-small {
    min-width: 90px;
}

.queue-date {
    min-width: 110px;
}

.queue-history-cell {
    min-width: 230px;
}

.queue-history-line {
    border-bottom: 1px solid #e5e7eb;
    padding: 4px 0;
}

.queue-history-line:last-child {
    border-bottom: 0;
}

.queue-submit-button {
    align-items: center;
    display: flex;
}

.teams-subject-preview {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
}

.tab-panel {
    padding-top: 18px;
}

.action-buttons {
    flex-wrap: wrap;
}

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

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

.validation-message {
    color: #d92d20;
}

.blazor-error-boundary {
    background: #b42318;
    color: white;
    padding: 1rem;
}

.blazor-error-boundary::after {
    content: "Une erreur s'est produite.";
}

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

@media (max-width: 900px) {
    .page-header {
        display: block;
    }

    .header-actions {
        justify-content: flex-start;
        margin-top: 14px;
    }
}

@media (max-width: 640px) {
    .work-panel {
        padding: 14px;
    }

    .workflow-svg {
        min-width: 820px;
    }

    .committee-meta {
        grid-template-columns: 1fr;
    }
}
