﻿html, body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(16, 104, 171, 0.14), transparent 24%),
        radial-gradient(circle at top right, rgba(112, 184, 45, 0.18), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #eef6fb 56%, #f7fbf2 100%);
    color: #13314e;
}

body::before {
    background: linear-gradient(90deg, rgba(12, 74, 152, 0.92), rgba(18, 115, 169, 0.84), rgba(89, 176, 46, 0.84));
    content: "";
    display: block;
    height: 0.4rem;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1100;
}

:root {
    --hc-blue-900: #0c4a98;
    --hc-blue-700: #1068ab;
    --hc-green-700: #359934;
    --hc-green-500: #70b82d;
    --hc-lime-400: #a9d13b;
    --hc-ink: #13314e;
    --hc-muted: #5f7187;
    --hc-border: rgba(12, 74, 152, 0.12);
    --hc-surface: rgba(255, 255, 255, 0.9);
    --hc-surface-strong: rgba(255, 255, 255, 0.96);
    --hc-shadow: 0 24px 60px rgba(13, 79, 161, 0.12);
    --hc-danger-fill: rgba(157, 46, 46, 0.14);
    --hc-danger-panel: rgba(249, 224, 224, 0.94);
    --hc-danger-header: rgba(157, 46, 46, 0.14);
    --hc-danger-border: rgba(157, 46, 46, 0.58);
    --hc-danger-accent: rgba(157, 46, 46, 0.95);
    --hc-danger-text: #8b2323;
}

a, .btn-link {
    color: #0c4a98;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #0c4a98, #1068ab 52%, #359934);
    border: none;
    box-shadow: 0 14px 28px rgba(12, 74, 152, 0.18);
}

.btn-outline-secondary {
    border-color: rgba(12, 74, 152, 0.2);
    color: #0c4a98;
}

.btn-outline-secondary:hover {
    background: rgba(12, 74, 152, 0.08);
    border-color: rgba(12, 74, 152, 0.28);
    color: #0c4a98;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus, .form-select:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(16, 104, 171, 0.22);
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.top-row {
    align-items: center;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(12, 74, 152, 0.1);
    backdrop-filter: blur(10px);
}

.top-row-actions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.5rem 0;
}

.session-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.session-chip {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(243, 249, 255, 0.96);
    border: 1px solid rgba(12, 74, 152, 0.12);
    color: #13314e;
    line-height: 1.2;
}

.hero-shell {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 2fr 1fr;
    align-items: start;
    margin-top: 1.5rem;
}

.hero-copy h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 0.95;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    max-width: 60ch;
}

.workflow-list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding-left: 1.25rem;
}

.hero-panel,
.card-panel,
.summary-card,
.todo-card {
    background: var(--hc-surface);
    border: 1px solid var(--hc-border);
    border-radius: 1rem;
    box-shadow: var(--hc-shadow);
    padding: 1.25rem;
}

.content-stack {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.narrow-panel {
    width: min(100%, 44rem);
}

.form-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.item-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    margin-bottom: 0.75rem;
}

.button-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.compact-actions {
    justify-content: flex-end;
}

.template-listing {
    border-top: 1px solid rgba(12, 74, 152, 0.12);
    padding-top: 1rem;
    margin-top: 1rem;
}

.compliance-method-card {
    margin-top: 0.75rem;
    padding: 1rem;
}

.compliance-method-card textarea {
    resize: vertical;
}

.content-stack label {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    font-size: 0.95rem;
}

.summary-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.summary-card {
    display: grid;
    gap: 0.35rem;
}

.summary-card strong {
    font-size: 1.8rem;
    line-height: 1;
}

.status-card {
    border-width: 2px;
}

.status-card-good {
    border-color: rgba(53, 153, 52, 0.32);
    background: rgba(220, 241, 222, 0.98);
}

.status-card-warn {
    border-color: rgba(214, 129, 42, 0.42);
    background: rgba(255, 238, 212, 0.98);
}

.status-card-danger {
    border-color: var(--hc-danger-border);
    background: rgba(245, 214, 214, 0.98);
}

.summary-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1068ab;
}

.summary-meta,
.muted-text {
    color: #5f7187;
    font-size: 0.92rem;
}

.section-heading-row {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.filter-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.data-table th {
    color: #1068ab;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.status-good {
    background: rgba(53, 153, 52, 0.14);
    color: #246027;
}

.status-warn {
    background: rgba(214, 129, 42, 0.18);
    color: #925019;
}

.status-danger {
    background: var(--hc-danger-fill);
    color: var(--hc-danger-text);
}

.status-idle {
    background: rgba(19, 49, 78, 0.08);
    color: #38516a;
}

.store-priority-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}

.store-priority-card {
    display: grid;
    gap: 1rem;
}

.store-priority-header {
    margin-bottom: 0;
}

.store-priority-header h3 {
    margin-bottom: 0.2rem;
}

.store-summary-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 0.1rem;
}

.store-summary-row .summary-label {
    min-width: 6.25rem;
}

.section-chip-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.section-chip {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(12, 74, 152, 0.1);
    border-radius: 0.9rem;
    color: inherit;
    display: grid;
    gap: 0.45rem;
    padding: 0.95rem;
    text-align: left;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.section-chip:hover {
    box-shadow: 0 14px 30px rgba(13, 79, 161, 0.14);
    transform: translateY(-1px);
}

.section-chip-red {
    border-color: rgba(157, 46, 46, 0.35);
    background: rgba(157, 46, 46, 0.05);
}

.section-chip-amber {
    border-color: rgba(169, 209, 59, 0.52);
    background: rgba(169, 209, 59, 0.08);
}

.section-chip-green {
    border-color: rgba(53, 153, 52, 0.35);
    background: rgba(53, 153, 52, 0.05);
}

.section-chip-title {
    font-size: 1rem;
    font-weight: 700;
}

.section-chip-summary {
    color: #26405a;
    font-size: 0.92rem;
}

.section-chip-meta {
    color: #5f7187;
    font-size: 0.84rem;
}

.task-board-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.task-board-card {
    display: grid;
    gap: 0.75rem;
}

.task-board-card-red {
    border: 2px solid rgba(157, 46, 46, 0.26);
    background: rgba(157, 46, 46, 0.05);
}

.task-board-card-amber {
    border: 2px solid rgba(169, 209, 59, 0.34);
    background: rgba(169, 209, 59, 0.08);
}

.task-board-card-green {
    border: 2px solid rgba(53, 153, 52, 0.24);
    background: rgba(53, 153, 52, 0.05);
}

.task-board-summary {
    color: #26405a;
    margin: 0;
}

.unified-task-section {
    display: grid;
    gap: 1rem;
}

.compact-workbar {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(18rem, 1.5fr) minmax(18rem, auto) auto;
    align-items: start;
}

.compact-workbar > div {
    display: grid;
    gap: 0.4rem;
    align-content: start;
}

.compact-workbar-panel {
    border-width: 2px;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.compact-workbar-panel.status-surface-good {
    background: rgba(231, 245, 232, 0.92);
    border-color: rgba(53, 153, 52, 0.32);
    box-shadow: inset 0.35rem 0 0 rgba(53, 153, 52, 0.8), var(--hc-shadow);
}

.compact-workbar-panel.status-surface-warn {
    background: rgba(255, 244, 228, 0.95);
    border-color: rgba(214, 129, 42, 0.42);
    box-shadow: inset 0.35rem 0 0 rgba(214, 129, 42, 0.88), var(--hc-shadow);
}

.compact-workbar-panel.status-surface-danger {
    background: var(--hc-danger-panel);
    border-color: var(--hc-danger-border);
    box-shadow: inset 0.35rem 0 0 var(--hc-danger-accent), var(--hc-shadow);
}

.date-control-group {
    align-items: center;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.date-nav-button {
    color: var(--hc-blue-900);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
    min-width: 2.75rem;
    padding-inline: 0.75rem;
    background: rgba(255, 255, 255, 0.94);
    border-width: 1.5px;
}

.date-control-meta {
    display: flex;
    margin-top: 0.5rem;
}

.compact-overall {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
    align-items: center;
    min-height: 2.5rem;
}

.compact-task-section {
    display: grid;
    gap: 0.8rem;
    padding: 1rem 1.1rem;
    border-width: 2px;
    position: relative;
}

.compact-task-section.status-good {
    background: rgba(231, 245, 232, 0.92);
    border-color: rgba(53, 153, 52, 0.52);
    box-shadow: inset 0.35rem 0 0 rgba(53, 153, 52, 0.9), var(--hc-shadow);
}

.compact-task-section.status-warn {
    background: rgba(255, 244, 228, 0.96);
    border-color: rgba(214, 129, 42, 0.58);
    box-shadow: inset 0.35rem 0 0 rgba(214, 129, 42, 0.95), var(--hc-shadow);
}

.compact-task-section.status-danger {
    background: var(--hc-danger-panel);
    border-color: var(--hc-danger-border);
    box-shadow: inset 0.35rem 0 0 var(--hc-danger-accent), var(--hc-shadow);
}

.compact-task-header {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: start;
    border-radius: 0.9rem;
    margin: -0.15rem -0.15rem 0.6rem;
    padding: 0.85rem 1rem;
}

.compact-task-header h2 {
    margin: 0;
}

.compact-task-header .muted-text {
    font-size: 0.95rem;
}

.compact-task-header.status-good {
    background: rgba(53, 153, 52, 0.2);
}

.compact-task-header.status-warn {
    background: rgba(214, 129, 42, 0.18);
}

.temperature-slot-label {
    align-items: center;
    color: var(--hc-blue-900);
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 700;
    justify-content: center;
}

.compact-task-header.status-danger {
    background: var(--hc-danger-header);
}

.compact-task-footer {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-top: 0.25rem;
    margin-top: 0.25rem;
    border-top: 1px solid rgba(12, 74, 152, 0.12);
}

.compact-cleaning-accordion {
    border-top: 1px solid rgba(12, 74, 152, 0.12);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.compact-cleaning-footer-actions {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
}

.compact-cleaning-footer-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.compact-cleaning-accordion-body {
    display: grid;
    gap: 0.8rem;
    margin-top: 0.75rem;
}

.empty-section-actions {
    display: grid;
    gap: 0.45rem;
}

.empty-section-actions label {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    width: fit-content;
}

.sticky-savebar {
    position: sticky;
    bottom: 0.75rem;
    z-index: 10;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(12, 74, 152, 0.12);
    border-radius: 1rem;
    box-shadow: 0 18px 45px rgba(13, 79, 161, 0.16);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1rem;
}

.sticky-savebar-copy {
    display: grid;
    gap: 0.2rem;
}

.collapsible-summary {
    align-items: start;
    cursor: pointer;
    list-style: none;
}

.collapsible-summary::-webkit-details-marker {
    display: none;
}

.task-setup-callout {
    background: rgba(13, 78, 162, 0.05);
    border: 1px dashed rgba(13, 78, 162, 0.2);
    border-radius: 0.9rem;
    padding: 1rem;
}

.signature-preview {
    max-height: 80px;
    max-width: 220px;
}

.completion-user-pill {
    max-width: 16rem;
}

.task-board-metrics {
    color: #5f7187;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    font-size: 0.88rem;
}

.completed-sections-panel[open] summary {
    margin-bottom: 1rem;
}

.completed-sections-summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-weight: 700;
    justify-content: space-between;
    list-style: none;
}

.completed-sections-summary::-webkit-details-marker {
    display: none;
}

.todo-board {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.todo-card {
    display: grid;
    gap: 0.75rem;
}

.meta-grid {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    margin: 0;
}

.meta-grid dt {
    color: #1068ab;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.meta-grid dd {
    margin: 0.2rem 0 0;
}

.report-filter {
    max-width: 18rem;
}

.storage-path {
    max-width: 24rem;
    word-break: break-word;
}

.report-preview {
    border-top: 1px solid rgba(12, 74, 152, 0.12);
    padding-top: 1rem;
}

.report-preview pre {
    background: rgba(13, 78, 162, 0.05);
    border-radius: 0.75rem;
    margin: 0;
    max-height: 20rem;
    overflow: auto;
    padding: 1rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.language-picker-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tasks-headline {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.language-switcher-link {
    appearance: none;
    background: none;
    border: none;
    color: rgba(227, 245, 255, 0.82);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 0;
    text-transform: uppercase;
}

.language-switcher-link.active {
    color: #fff;
}

.language-switcher-link:not(.active) {
    text-decoration: underline;
    text-underline-offset: 0.18rem;
}

.language-switcher-link + .language-switcher-link::before {
    color: rgba(227, 245, 255, 0.55);
    content: "|";
    margin-right: 0.5rem;
}

.nav-language {
    margin-top: auto;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}

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

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

.validation-message {
    color: #e50000;
}

.turnstile-widget-slot {
    margin-top: 1rem;
}

.blazor-error-boundary {
    background: #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;
}

@media (max-width: 900px) {
    .hero-shell,
    .section-heading-row {
        grid-template-columns: 1fr;
        display: grid;
    }

    .compact-workbar,
    .compact-task-header,
    .sticky-savebar {
        grid-template-columns: 1fr;
        display: grid;
    }

    .compact-overall {
        justify-content: start;
    }

    .sticky-savebar {
        bottom: 0.5rem;
    }

    .report-filter {
        max-width: 100%;
    }

    .top-row-actions,
    .session-actions {
        justify-content: flex-start;
    }

    .session-actions {
        margin-left: 0;
    }
}
