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;
    padding-bottom: 1.5rem;
}

.app-footer {
    border-top: 1px solid #e5e5e5;
    margin-top: auto;
}

.help-article-body {
    white-space: pre-wrap;
}

.error-detail {
    max-height: 24rem;
    overflow: auto;
    white-space: pre-wrap;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

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

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

.schedule-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.schedule-calendar-week {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.schedule-calendar-four-week {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.schedule-calendar-day {
    grid-template-columns: minmax(0, 52rem);
}

.schedule-day {
    border: 1px solid #d8dee4;
    border-radius: 0.5rem;
    min-height: 18rem;
    padding: 0.75rem;
    background: #fff;
}

.schedule-day-compact {
    min-height: 12rem;
    padding: 0.55rem;
}

.schedule-day-focus {
    min-height: auto;
}

.schedule-day-today {
    border-color: #1b6ec2;
}

.schedule-day-header {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}

.schedule-day-header > span {
    min-width: 0;
}

.schedule-day-header > span:last-child {
    white-space: nowrap;
}

.schedule-day-compact .schedule-day-header {
    align-items: flex-start;
    gap: 0.35rem;
}

.schedule-day-compact .schedule-day-header .badge {
    display: none;
}

.schedule-slot-list {
    display: grid;
    gap: 0;
}

.schedule-slot-time {
    color: #576574;
    font-size: 0.85rem;
    white-space: nowrap;
}

.schedule-shift-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.25rem 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #edf1f5;
}

.schedule-shift-row:last-child {
    border-bottom: 0;
}

.schedule-shift-main {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.schedule-shift-person {
    color: #212529;
    font-weight: 600;
    text-align: right;
}

.schedule-shift-staff {
    display: grid;
    gap: 0.35rem;
    justify-items: end;
}

.schedule-assignment-select {
    min-width: 9rem;
}

.schedule-shift-row-compact .schedule-assignment-select {
    font-size: 0.86rem;
    min-width: 0;
    max-width: 100%;
    padding: 0.28rem 1.75rem 0.28rem 0.45rem;
    width: 100%;
}

.schedule-punch-controls {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}

.schedule-punch-status {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.1;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
}

.schedule-punch-status-in {
    background: #d1e7dd;
    color: #0f5132;
}

.schedule-punch-status-out {
    background: #f1f4f8;
    color: #576574;
}

.schedule-shift-meta {
    grid-column: 1 / -1;
    color: #576574;
    font-size: 0.875rem;
}

.schedule-shift-row-compact {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.1rem;
    padding: 0.4rem 0;
}

.schedule-shift-row-compact .schedule-shift-staff {
    justify-items: stretch;
    min-width: 0;
}

.schedule-shift-row-compact .schedule-shift-main {
    font-size: 0.9rem;
}

.schedule-shift-row-compact .schedule-slot-time {
    font-size: 0.78rem;
}

.schedule-shift-row-compact .schedule-shift-person {
    color: #576574;
    font-size: 0.85rem;
    font-weight: 400;
    text-align: left;
}

.schedule-print-only {
    display: none;
}

.schedule-day-focus .schedule-slot-list {
    column-gap: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.schedule-day-focus .schedule-shift-row {
    grid-template-columns: minmax(0, 1fr);
    padding: 0.45rem 0;
}

.schedule-day-focus .schedule-shift-person {
    color: #576574;
    font-size: 0.9rem;
    font-weight: 400;
    text-align: left;
}

.schedule-day-focus .schedule-shift-staff {
    justify-items: start;
}

.schedule-day-focus .schedule-punch-controls {
    justify-content: flex-start;
}

.schedule-modal-backdrop {
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 1050;
}

.schedule-punch-modal {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.25);
    display: grid;
    gap: 1rem;
    max-width: 30rem;
    padding: 1.25rem;
    width: min(100%, 30rem);
}

.schedule-punch-modal-header {
    align-items: start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.schedule-punch-notes {
    min-height: 6rem;
}

.schedule-punch-modal-actions {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr auto;
}

.schedule-time-input {
    min-width: 7rem;
}

.schedule-number-input {
    min-width: 5rem;
}

.schedule-delete-row td:not(:last-child) {
    text-decoration: line-through;
}

.employee-page-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.employee-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
}

.employee-summary {
    color: #576574;
    font-weight: 600;
}

.employee-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.employee-search {
    flex: 1 1 18rem;
    max-width: 26rem;
}

.employee-table-card {
    border: 1px solid #d8dee4;
    border-radius: 0.35rem;
    background: #fff;
}

.employee-table thead th {
    color: #212529;
    font-size: 0.9rem;
    padding: 0.9rem 1rem;
    white-space: nowrap;
}

.employee-table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

.employee-name-cell {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    min-width: 14rem;
}

.employee-avatar {
    align-items: center;
    background: #dee2e6;
    border-radius: 50%;
    color: #495057;
    display: inline-flex;
    flex: 0 0 2.6rem;
    font-weight: 700;
    height: 2.6rem;
    justify-content: center;
    width: 2.6rem;
}

.employee-display-name {
    display: block;
    font-weight: 700;
}

.employee-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}

.employee-position-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    min-width: 12rem;
}

.employee-position-chip {
    background: #f1f4f8;
    border: 1px solid #cfd8e3;
    border-radius: 999px;
    color: #1f2937;
    display: inline-flex;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.25rem 0.55rem;
    white-space: nowrap;
}

.employee-position-picker {
    border: 1px solid #d8dee4;
    border-radius: 0.35rem;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    padding: 0.75rem;
}

.employee-portal-panel {
    align-items: center;
    border: 1px solid #d8dee4;
    border-radius: 0.35rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.85rem;
}

.employee-default-schedule-list {
    display: grid;
    gap: 0.75rem;
}

.employee-default-schedule-rule {
    align-items: end;
    border: 1px solid #d8dee4;
    border-radius: 0.35rem;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(8rem, 1fr) minmax(8rem, 1fr) minmax(0, 2fr) auto;
    padding: 0.75rem;
}

.employee-default-days {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.8rem;
    padding-bottom: 0.25rem;
}

.request-panel {
    border: 1px solid #d8dee4;
    border-radius: 0.5rem;
    padding: 1rem;
    background: #fff;
}

.request-notes {
    min-height: 7rem;
}

.request-calendar .schedule-day {
    min-height: 11rem;
}

.request-calendar .schedule-day-header {
    align-items: baseline;
}

.request-calendar-day-name,
.request-calendar-day-date {
    white-space: nowrap;
}

.request-calendar-day-has-requests {
    border-color: #8bb8e8;
}

.request-calendar-list {
    display: grid;
    gap: 0.5rem;
}

.request-calendar-item {
    border-left: 0.25rem solid #1b6ec2;
    border-radius: 0.35rem;
    background: #f8fafc;
    padding: 0.5rem;
}

.request-calendar-item-header {
    align-items: start;
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
}

.request-impact {
    color: #576574;
    margin-top: 0.25rem;
}

.time-clock-page {
    display: grid;
    gap: 1.5rem;
}

.time-clock-header {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.time-clock-now {
    border: 1px solid #d8dee4;
    border-radius: 0.5rem;
    display: grid;
    gap: 0.1rem;
    min-width: 9rem;
    padding: 0.75rem 1rem;
    text-align: center;
}

.time-clock-now strong {
    font-size: 1.4rem;
}

.time-clock-location-panel {
    align-items: center;
    background: #fff;
    border: 1px solid #d8dee4;
    border-radius: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem;
}

.time-clock-location-status {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.time-clock-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    margin-inline: auto;
    max-width: 72rem;
    width: 100%;
}

.time-clock-employee-button {
    background: #fff;
    border: 1px solid #d8dee4;
    border-radius: 0.5rem;
    color: #212529;
    display: grid;
    gap: 0.35rem;
    min-height: 8rem;
    padding: 1rem;
    text-align: center;
}

.time-clock-employee-button:hover,
.time-clock-employee-button:focus {
    border-color: #1b6ec2;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.time-clock-employee-clocked-in {
    border-color: #198754;
}

.time-clock-employee-needs-pin {
    border-color: #ffc107;
}

.time-clock-employee-name {
    font-size: 1.35rem;
    font-weight: 700;
}

.time-clock-shift-summary,
.time-clock-status {
    color: #576574;
}

.time-clock-punch-panel,
.time-clock-history {
    background: #fff;
    border: 1px solid #d8dee4;
    border-radius: 0.5rem;
    padding: 1rem;
}

.time-clock-manager-override {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.time-clock-modal-backdrop {
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 1050;
}

.time-clock-pin-modal {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.25);
    display: grid;
    gap: 1rem;
    max-height: calc(100vh - 2rem);
    overflow: auto;
    padding: 1.25rem;
    width: min(100%, 30rem);
}

.time-clock-pin-modal-header {
    align-items: start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.time-clock-pin-section {
    display: grid;
    gap: 0.75rem;
}

.time-clock-pin-label {
    color: #576574;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
}

.time-clock-pin-display {
    border: 1px solid #d8dee4;
    border-radius: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.15rem;
    min-height: 3.25rem;
    padding: 0.75rem;
    text-align: center;
}

.time-clock-keypad {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.time-clock-key {
    font-size: 1.35rem;
    font-weight: 700;
    min-height: 4rem;
}

.time-clock-modal-actions {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr auto;
}

@media (min-width: 1200px) {
    .schedule-calendar-week,
    .schedule-calendar-four-week {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .schedule-toolbar {
        align-items: stretch;
    }

    .schedule-controls,
    .schedule-controls .btn-group {
        width: 100%;
    }

    .schedule-controls .btn {
        flex: 1 1 0;
    }

    .schedule-day-focus .schedule-slot-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .employee-actions,
    .employee-toolbar,
    .employee-search {
        width: 100%;
        max-width: none;
    }

    .employee-default-schedule-rule {
        grid-template-columns: minmax(0, 1fr);
    }

    .time-clock-manager-override {
        grid-template-columns: minmax(0, 1fr);
    }

    .time-clock-location-panel,
    .time-clock-location-status {
        align-items: stretch;
        display: grid;
        justify-content: stretch;
        width: 100%;
    }

    .time-clock-modal-actions {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .schedule-day-focus .schedule-slot-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.login-landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #f6f7f9;
}

.login-layout {
    min-height: 100vh;
}

.login-panel {
    width: min(100%, 28rem);
    border: 1px solid #d8dee4;
    border-radius: 0.5rem;
    padding: 1.5rem;
    background: #fff;
}

.register-panel {
    width: min(100%, 34rem);
}

.login-panel h1 {
    font-size: 1.75rem;
}

.landing-choice-panel {
    text-align: center;
}

.landing-choice-actions {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.landing-choice-actions .btn {
    padding-block: 0.9rem;
}

.login-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 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,PHN2ZyB3aWR0aD0iNTYiIG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NzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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;
}
