html, body {
    font-family: 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
}

:root {
    --theme-brand-primary: #003671;
    --theme-brand-deep: #003d66;
    --theme-brand-accent: #0073af;
    --theme-brand-blue: #0878a8;
    --theme-brand-sky: #0685c8;
    --theme-brand-light: #b0ceec;
    --theme-brand-orange: #ef7b10;
    --theme-brand-orange-soft: #ffad61;

    --theme-white: #fff;
    --theme-black: #000;
    --theme-neutral-gray: #b8bbbe;
    --theme-neutral-gray-light: #d7d9d8;
    --theme-canvas: #f9f9f9;
    --theme-canvas-cool: #f5f8f8;
    --theme-canvas-blue: #f5f8fc;
    --theme-ink: #142d3d;
    --theme-text-dark: #19334a;
    --theme-text-heading: #173a51;
    --theme-text-heading-deep: #18384d;
    --theme-text-card: #1d4056;
    --theme-text-subheading: #244359;
    --theme-text-primary: #29465d;
    --theme-text-body: #304753;
    --theme-text-secondary: #536779;
    --theme-text-secondary-soft: #647786;
    --theme-text-muted: #71808a;
    --theme-text-muted-soft: #748895;
    --theme-text-subtle: #7a8b96;
    --theme-text-subtle-blue: #84929a;
    --theme-text-subtle-blue-light: #8497a3;
    --theme-text-subtle-light: #84949f;
    --theme-text-secondary-muted: #8a9aa4;
    --theme-text-placeholder: #8999a3;
    --theme-text-low-contrast: #87939a;
    --theme-text-muted-dark: #687981;
    --theme-text-subtle-warm: #87949c;
    --theme-text-subtle-cool: #7c8f9b;
    --theme-text-warning: #79532b;

    --theme-border: #e5ebef;
    --theme-border-soft: #e0e8ed;
    --theme-border-subtle: #edf1f2;
    --theme-border-muted: #e8edf0;
    --theme-border-blue: #dfe8ed;
    --theme-border-blue-soft: #e3ebef;
    --theme-border-blue-muted: #e1e9ee;
    --theme-border-blue-gray: #9badb8;

    --theme-blue-tint: #eaf3f9;
    --theme-blue-soft: #eaf4fa;
    --theme-blue-pale: #e5f3fa;
    --theme-blue-light: #e7f1f8;
    --theme-blue-muted: #6b9ed2;
    --theme-blue-tint-light: #d5e8f6;
    --theme-orange-tint: #fff0df;
    --theme-orange-soft: #fff0e5;
    --theme-orange-pale: #fff0e2;
    --theme-orange-light: #fff2e6;

    --theme-success: #168267;
    --theme-success-strong: #287a52;
    --theme-success-deep: #32825b;
    --theme-success-soft: #e8f5ee;
    --theme-success-pale: #e8f4ef;
    --theme-success-light: #e5f4ec;
    --theme-success-background: #eaf5ef;
    --theme-success-accent: #a7e1c5;
    --theme-warning: #e7a43b;
    --theme-warning-strong: #a26e0d;
    --theme-warning-deep: #9e6b0b;
    --theme-warning-soft: #fff5df;
    --theme-warning-background: #fff7eb;
    --theme-danger: #b42318;
    --theme-danger-strong: #e50000;
    --theme-danger-soft: #fff0e7;
    --theme-overdue: #d46c24;
    --theme-overdue-deep: #b85a18;
    --theme-orange-deep: #d77b19;
    --theme-orange-alt: #e87512;
    --theme-orange-dark: #d36d0b;

    --theme-shadow-brand: rgba(0, 54, 113, .07);
    --theme-shadow-brand-subtle: rgba(0, 54, 113, .06);
    --theme-shadow-content: rgba(19, 55, 76, .04);
    --theme-white-rgb: 255, 255, 255;
    --theme-brand-primary-rgb: 0, 54, 113;
    --theme-canvas-blue-rgb: 245, 248, 252;

    --primary-blu: var(--theme-brand-primary);
    --primary-orange: var(--theme-brand-orange);
    --coral-blue: var(--theme-brand-accent);
    --skyblue: var(--theme-brand-sky);
    --light-blue: var(--theme-brand-light);
    --grey: var(--theme-neutral-gray);
    --light-grey: var(--theme-neutral-gray-light);
    --ultra-light-grey: var(--theme-canvas);
}

.text-primary {
    color: var(--primary-blu) !important;
}

.text-secondary {
    color: var(--primary-orange) !important;
}

.bg-primary-blu {
    background-color: var(--primary-blu) !important;
}

a, .btn-link {
    color: var(--coral-blue) !important;
    background-color: transparent !important;
}

.btn-primary {
    color: var(--theme-white);
    background-color: var(--primary-blu);
    border-color: var(--primary-blu);
}

.bg-orange {
    background-color: var(--primary-orange);
}


.btn-outline-orange {
    border-color: var(--primary-orange) !important;
    color: var(--primary-orange) !important;
}

    .btn-outline-orange:hover {
        color: var(--theme-white) !important;
        background-color: var(--primary-orange) !important;
        border-color: var(--primary-orange) !important;
    }

.btn-grey {
    background-color: var(--ultra-light-grey) !important;
    color: var(--coral-blue) !important;
    border: 3px solid var(--light-grey);
    font-weight: bold;
}

    .btn-grey:hover {
        background-color: var(--light-grey) !important;
        color: var(--coral-blue) !important;
        border: 3px solid var(--light-grey);
        font-weight: bold;
    }


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

.btn:disabled {
    background-color: var(--primary-blu) !important;
    border-color: var(--primary-blu);
}

.btn-primary:hover {
    background-color: var(--coral-blue) !important;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

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

.invalid {
    outline: 1px solid var(--theme-danger-strong);
}

.validation-message {
    color: var(--theme-danger-strong);
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNT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3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: var(--theme-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;
}

input {
    border-color: var(--primary-blu) !important;
    color: var(--grey); /* colore del testo dell’input */
}

    input:focus {
        box-shadow: 0 0 0 0.1rem var(--theme-white), 0 0 0 0.25rem var(--primary-blu) !important;
    }



    /* colore del placeholder (tutti i browser) */
    input::placeholder {
        color: var(--grey);
        opacity: 1; /* importante per Firefox */
    }

    /* Safari/Chrome WebKit */
    input::-webkit-input-placeholder {
        color: var(--grey);
    }

    /* Firefox */
    input::-moz-placeholder {
        color: var(--grey);
    }

    /* Edge/IE */
    input:-ms-input-placeholder {
        color: var(--grey);
    }


.timerText {
    color: var(--coral-blue) !important;
}


.bg-light {
    background-color: var(--ultra-light-grey) !important;
}



/* Rimuovi le frecce (spinner) su Chromium/WebKit */
.no-spin::-webkit-outer-spin-button,
.no-spin::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Rimuovi aspetto spinner in Firefox */
.no-spin[type="number"] {
    -moz-appearance: textfield;
}

/* Se InputNumber renderizza <input> senza l'attributo type in selettore, copri anche questo */
.no-spin input[type="number"] {
    -moz-appearance: textfield;
}
