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;
}

body {
    margin: 0;
    color: #1e3027;
    background: #f5f7f5;
    font-family: Inter, 'Segoe UI', Arial, sans-serif;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1.25rem;
}

.login-panel {
    width: min(100%, 460px);
    padding: 2rem;
    border: 1px solid #e8ede8;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(36, 58, 44, 0.06);
}

.login-panel h1 {
    margin: 0 0 1.5rem;
    color: #1c3025;
    font-size: 2rem;
    font-weight: 680;
    letter-spacing: -0.055em;
}

.login-links {
    margin-top: 1rem;
}

.login-links p {
    margin: 0.5rem 0 0;
}

.schedule-page,
.admin-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 3rem clamp(1.25rem, 4vw, 4rem);
}

.schedule-heading,
.schedule-card-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
}

.schedule-heading {
    margin-bottom: 2rem;
}

.eyebrow {
    margin: 0 0 0.55rem;
    color: #668271;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.14em;
}

.schedule-page h1,
.admin-page h1 {
    margin: 0;
    color: #1c3025;
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 680;
    letter-spacing: -0.055em;
}

.subtitle {
    margin: 0.55rem 0 0;
    color: #758279;
    font-size: 0.95rem;
}

.signed-in {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid #e5ebe6;
    border-radius: 999px;
    background: #fff;
    color: #7a887f;
    font-size: 0.78rem;
}

.signed-in strong {
    max-width: 210px;
    overflow: hidden;
    color: #30453a;
    font-weight: 600;
    text-overflow: ellipsis;
}

.online-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #54ad74;
}

.schedule-card,
.status-editor,
.admin-card {
    border: 1px solid #e8ede8;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(36, 58, 44, 0.035);
}

.schedule-card {
    overflow: hidden;
}

.team-schedule-empty {
    margin: 0;
    padding: 1.5rem 1.75rem;
    border-top: 1px solid #edf0ed;
}

.team-schedule-filter {
    display: grid;
    gap: 0.4rem;
    padding: 0 1.75rem 1.25rem;
}

.team-schedule-filter-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.team-schedule-filter label {
    color: #668271;
    font-size: 0.72rem;
    font-weight: 650;
}

.team-schedule-filter-input {
    width: min(100%, 360px);
    min-height: 40px;
    padding: 0.55rem 0.75rem;
    border: 1px solid #e1e8e2;
    border-radius: 8px;
    color: #263a2e;
    font: inherit;
}

.team-schedule-show-all {
    min-height: 40px;
    padding: 0 0.8rem;
    border: 1px solid #e7ece8;
    border-radius: 8px;
    background: #fff;
    color: #45594d;
    font-size: 0.77rem;
    font-weight: 600;
}

.team-schedule-show-all:hover {
    border-color: #b8d5c0;
    background: #f6fbf7;
}

.team-schedule-filter-input:focus {
    border-color: #8db79a;
    outline: 2px solid rgba(84, 146, 101, 0.18);
}

.schedule-card-heading {
    padding: 1.55rem 1.75rem 1.25rem;
    align-items: center;
}

.schedule-card-heading h2,
.status-editor h2,
.admin-card h2 {
    margin: 0;
    color: #263a2e;
    font-size: 1.12rem;
    font-weight: 650;
    letter-spacing: -0.025em;
}

.schedule-card-heading .eyebrow,
.status-editor .eyebrow {
    margin-bottom: 0.35rem;
}

.week-controls {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.icon-button,
.today-button {
    height: 36px;
    border: 1px solid #e7ece8;
    border-radius: 8px;
    background: #fff;
    color: #45594d;
}

.icon-button {
    width: 36px;
    font-size: 1.35rem;
    line-height: 1;
}

.today-button {
    padding: 0 0.8rem;
    font-size: 0.77rem;
    font-weight: 600;
}

.icon-button:hover,
.today-button:hover {
    border-color: #b8d5c0;
    background: #f6fbf7;
}

.schedule-scroll {
    overflow-x: auto;
}

.schedule-table {
    width: 100%;
    min-width: 830px;
    border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
    border-top: 1px solid #edf0ed;
    border-right: 1px solid #f0f2f0;
}

.schedule-table tr > :last-child {
    border-right: 0;
}

.schedule-table thead th {
    height: 73px;
    background: #fbfcfb;
}

.schedule-table .staff-heading {
    width: 205px;
    padding-left: 1.75rem;
    color: #89958d;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-align: left;
}

.day-heading {
    text-align: center;
}

.day-heading span,
.day-heading strong {
    display: block;
}

.day-heading span {
    margin-bottom: 0.3rem;
    color: #87938a;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.day-heading strong {
    color: #34483b;
    font-size: 0.92rem;
    font-weight: 650;
}

.staff-cell {
    display: flex;
    height: 88px;
    align-items: center;
    gap: 0.7rem;
    padding: 0 1rem 0 1.75rem;
    color: #33473a;
    font-size: 0.77rem;
    font-weight: 600;
    text-align: left;
}

.team-schedule-table .staff-cell {
    height: 29px;
    gap: 0.45rem;
    padding: 0 0.75rem;
    font-size: 0.7rem;
}

.team-schedule-table tbody td {
    padding: 0 0.25rem;
}

.team-schedule-table .staff-avatar {
    width: 20px;
    height: 20px;
    font-size: 0.62rem;
}

.team-schedule-table .status-pill {
    min-width: 44px;
    padding: 0.12rem 0.4rem;
    font-size: 0.62rem;
}

.staff-avatar {
    width: 34px;
    height: 34px;
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #e7f1e9;
    color: #3f7350;
    font-size: 0.8rem;
    font-weight: 700;
}

.staff-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-cell {
    text-align: center;
}

.status-pill {
    display: inline-block;
    min-width: 54px;
    padding: 0.36rem 0.58rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 650;
}

.status-in {
    background: #e5f4e9;
    color: #36784d;
}

.status-leave {
    background: #fff0e3;
    color: #a86a32;
}

.status-wfh {
    background: #e9efff;
    color: #526db2;
}

.status-offside {
    background: #f0eafb;
    color: #765da9;
}

.empty-status {
    color: #c1c9c3;
}

.schedule-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.3rem;
    padding: 1rem 1.75rem;
    border-top: 1px solid #edf0ed;
}

.schedule-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #748178;
    font-size: 0.72rem;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-in { background: #68b27c; }
.dot-leave { background: #e7a56b; }
.dot-wfh { background: #8095da; }
.dot-offside { background: #a28bd0; }

.status-editor {
    display: grid;
    grid-template-columns: minmax(200px, 0.8fr) minmax(0, 2fr);
    gap: 1.5rem 2rem;
    align-items: start;
    margin-top: 1.5rem;
    padding: 1.65rem 1.75rem;
}

.editor-copy > p:last-child {
    max-width: 300px;
    margin: 0.55rem 0 0;
    color: #78857d;
    font-size: 0.81rem;
    line-height: 1.55;
}

.status-form {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr auto;
    gap: 0.8rem;
    align-items: end;
}

.form-field label {
    display: block;
    margin-bottom: 0.4rem;
    color: #5e6d63;
    font-size: 0.72rem;
    font-weight: 600;
}

.form-field .form-control,
.form-field .form-select {
    min-height: 42px;
    border-color: #e1e8e2;
    border-radius: 8px;
    color: #314439;
    font-size: 0.8rem;
    box-shadow: none;
}

.form-field .form-control:focus,
.form-field .form-select:focus {
    border-color: #82b696;
    box-shadow: 0 0 0 3px rgba(96, 161, 116, 0.12);
}

.save-button {
    min-height: 42px;
    padding: 0 1.05rem;
    border: 0;
    border-radius: 8px;
    background: #2c6242;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 650;
    white-space: nowrap;
}

.save-button:hover:not(:disabled) {
    background: #224e34;
}

.save-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.form-feedback {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 0.78rem;
}

.feedback-success {
    color: #34744a;
}

.feedback-error,
.validation-message {
    color: #b4453e;
}

.admin-page > .subtitle {
    margin-bottom: 2rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
    gap: 1.25rem;
}

.admin-card {
    padding: 1.5rem;
}

.password-admin-card {
    max-width: 560px;
}

.admin-card h2 {
    margin-bottom: 1.3rem;
}

.admin-form {
    display: grid;
    gap: 1rem;
}

.admin-hint {
    margin: -0.35rem 0 0;
    color: #78857d;
    font-size: 0.76rem;
    line-height: 1.5;
}

.staff-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.staff-list-heading h2 {
    margin-bottom: 1.3rem;
}

.account-count {
    min-width: 27px;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: #edf5ef;
    color: #4e775a;
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
}

.staff-account-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.staff-account-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 0;
    border-top: 1px solid #edf0ed;
    color: #43564a;
    font-size: 0.82rem;
}

.staff-account-details {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.staff-account-list strong {
    color: #43564a;
    font-weight: 600;
}

.staff-account-email {
    color: #78857d;
    font-size: 0.72rem;
}

.delete-button,
.cancel-delete-button {
    min-height: 34px;
    padding: 0.35rem 0.7rem;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 0.72rem;
    font-weight: 650;
}

.delete-button {
    background: #a83c36;
    color: #fff;
}

.delete-button:hover:not(:disabled) {
    background: #8e302b;
}

.delete-button-secondary {
    border-color: #ead8d7;
    background: #fff;
    color: #a83c36;
}

.delete-button-secondary:hover:not(:disabled) {
    background: #fff5f4;
}

.cancel-delete-button {
    border-color: #e1e8e2;
    background: #fff;
    color: #45594d;
}

.staff-delete-confirmation {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    color: #8e302b;
    font-size: 0.74rem;
}

.delete-button:disabled,
.cancel-delete-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.status-overview-card {
    max-width: 760px;
}

.status-overview-card .staff-list-heading h2 {
    margin-bottom: 0.75rem;
}

.status-overview-scroll {
    overflow-x: auto;
}

.status-overview-table {
    width: 100%;
    border-collapse: collapse;
}

.status-overview-table th,
.status-overview-table td {
    padding: 0.8rem 0.6rem;
    border-top: 1px solid #edf0ed;
    text-align: left;
    font-size: 0.82rem;
}

.status-overview-table thead th {
    color: #78857d;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-overview-table tbody th {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #43564a;
    font-weight: 600;
}

.unset-status {
    color: #89958c;
    font-size: 0.78rem;
}

.account-notice {
    max-width: 560px;
    margin: 8vh auto;
    padding: 2.5rem;
    border: 1px solid #e8ede8;
    border-radius: 16px;
    background: #fff;
}

.account-notice h1 {
    font-size: 2rem;
    letter-spacing: -0.04em;
}

.account-notice p:not(.eyebrow) {
    margin: 0.8rem 0 1.4rem;
    color: #758279;
}

@media (max-width: 1050px) {
    .status-editor {
        grid-template-columns: 1fr;
    }

    .editor-copy > p:last-child {
        max-width: none;
    }
}

@media (max-width: 900px) {
    .status-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .save-button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 740px) {
    .schedule-page,
    .admin-page {
        padding-top: 2rem;
    }

    .schedule-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .schedule-card-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .status-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .save-button {
        grid-column: 1 / -1;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .status-form {
        grid-template-columns: 1fr;
    }

    .save-button {
        grid-column: auto;
    }

    .signed-in {
        max-width: 100%;
    }
}