
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;
}

/* Custom GabinetIO styling */

.gio-dialog-blur {
    /*backdrop-filter: blur(10px);*/
}

.gio-dialog-background {
    /*background-color: transparent;*/
}

@media (min-width: 601px) {
    .gio-dialog-supply-form,
    .gio-dialog-tasks-form {
        min-width: 560px !important;
        max-width: 720px !important;
        width: 100% !important;
    }

    .gio-dialog-appointment-form {
        min-width: 760px !important;
        max-width: 960px !important;
        width: 100% !important;
    }
}

.gio-appointment-header-chips {
    gap: 8px;
}

.gio-appointment-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 12px;
    height: 28px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    border: none;
    outline: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.gio-appointment-status-chip:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.gio-appointment-status-chip__icon {
    font-size: 16px !important;
    width: 16px;
    height: 16px;
}

@media (max-width: 600px) {
    .gio-dialog-xs-full-screen {
        width: 100%!important;
        max-width: 100%!important;
        height: 100%!important;
        max-height: 100%!important;
        margin-left: 0!important;
        margin-right: 0!important;
    }
    
    .gio-dialog-action-xs-shadow {
        -webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.3);
        -moz-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.3);
        box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.3);
        z-index: calc(var(--mud-zindex-dialog) + 3);
    }

    .gio-dialog-actions-secondary {
        width: 100%;
    }

    .gio-dialog-actions-secondary .mud-button-root {
        flex: 1 1 calc(50% - 4px);
    }

    .gio-dialog-actions-primary {
        width: 100%;
        justify-content: stretch;
        gap: 8px;
    }

    .gio-dialog-actions-primary .mud-button-root {
        flex: 1;
    }
}


.gio-dialog-background-title {
    background: var(--mud-palette-primary);
    color: var(--mud-palette-white);
}

.gio-dialog-title-inherit {
    color: var(--mud-palette-white);
}

.attendance-card {
    width: 100%;
}

.reserve-list-card {
    cursor: pointer;
}

.reserve-list-card-title {
    font-weight: 600;
    min-width: 0;
    word-break: break-word;
}

.recent-change-card {
    cursor: pointer;
}

.recent-change-card-title {
    font-weight: 600;
    min-width: 0;
    word-break: break-word;
}

.recent-change-card-selected {
    border: 1px solid var(--mud-palette-primary);
}

.reserve-list-card-note {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reserve-list-mobile-toolbar .mud-input-control {
    margin-top: 0;
}

@media (min-width: 960px) {
    .reserve-list-mobile-sort {
        display: none !important;
    }
}

.gio-dialog-background-surface {
    background: var(--mud-palette-surface);
}

.printouts-table table, .printouts-table th, .printouts-table td {
    border: 1px solid grey;
}

.printouts-table td, .printouts-table th {
    padding: 3px;
}

.printouts-table th {
    background-color: lightgrey;
    color: black;
}

/* Calendar — employee columns (Week / WorkWeek / Day) */
.stork-cal-cols-host {
    height: 100%;
    overflow: hidden;
    --stork-cal-cols: 7;
    --stork-cal-day-sep: 2px solid var(--mud-palette-table-lines);
    --stork-cal-doctor-sep: 1px solid var(--mud-palette-table-lines);
}

/* Pin the week view to the viewport. Horizontal scroll lives only on .mud-cal-week-scroll. */
.stork-cal-cols-host > .mud-cal-week-view,
.stork-cal-cols-host > .mud-cal-week-view > .d-flex.flex-column,
.stork-cal-cols-host > .mud-cal-week-view > .d-flex.flex-column > :first-child {
    min-width: 0;
    max-width: 100%;
}

.stork-cal-cols-host > .mud-cal-week-view > .d-flex.flex-column > :first-child {
    overflow: hidden;
    scrollbar-gutter: stable;
    touch-action: pan-y;
}

.stork-cal-cols-host .mud-cal-week-scroll {
    overflow-x: auto;
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

.stork-cal-cols-host .stork-cal-employee-header {
    transform: translateX(var(--stork-cal-scroll-x, 0px));
}

.stork-cal-employee-grid,
.stork-cal-employee-header {
    grid-template-columns: 60px repeat(var(--stork-cal-cols, 7), minmax(88px, 1fr));
    min-width: calc(60px + (var(--stork-cal-cols, 7) * 88px));
}

.stork-cal-employee-header {
    min-height: 0;
    align-items: stretch;
}

/* Header columns: full height so day separators reach into the header */
.stork-cal-employee-header > div {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-height: 100%;
    height: 100%;
    box-sizing: border-box;
}

.stork-cal-employee-header .stork-cal-header-cell {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 100%;
    box-sizing: border-box;
    border-right: var(--stork-cal-doctor-sep);
    padding-inline: 2px;
}

.stork-cal-employee-header .stork-cal-header-cell.stork-cal-day-start {
    border-left: var(--stork-cal-day-sep);
}

.stork-cal-header-cell-top {
    flex: 1 1 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 0;
    width: 100%;
}

.stork-cal-header-cell-bottom {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    padding-top: 4px;
    padding-bottom: 2px;
    min-height: 0;
}

/* Body grid: thin doctor separators, thick day separators */
.stork-cal-employee-grid > div.mud-cal-week-not-today,
.stork-cal-employee-grid > div.mud-cal-week-cell {
    border-right: var(--stork-cal-doctor-sep);
}

.stork-cal-employee-grid .stork-cal-day-start {
    border-left: var(--stork-cal-day-sep) !important;
}

.stork-cal-day-header-stack.mud-stack {
    width: 100%;
    box-sizing: border-box;
    gap: 1px !important;
    padding-top: 2px;
    padding-bottom: 0;
}

.stork-cal-day-header-stack .mud-typography {
    line-height: 1.15;
}

.stork-cal-holiday-name.mud-typography {
    line-height: 1.05;
    margin: 0;
    font-size: 0.65rem;
    font-weight: 100;
}

.stork-cal-employee-chip {
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: var(--mud-palette-action-default-hover);
    color: #ffffff;
}

.stork-cal-employee-header-only {
    width: 100%;
    box-sizing: border-box;
}

.stork-cal-employee-grid .mud-cal-week-cell-holder {
    content-visibility: auto;
}

.stork-cal-hour-band {
    box-sizing: border-box;
}

.stork-cal-hour-slots {
    background-image: linear-gradient(
        to bottom,
        var(--mud-palette-divider),
        var(--mud-palette-divider) 1px,
        transparent 1px);
    background-size: 100% var(--stork-cal-slot, 24px);
    background-repeat: repeat-y;
    background-position: 0 var(--stork-cal-slot, 24px);
}

.stork-cal-hour-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.stork-cal-column-hit {
    position: absolute;
    inset: 0;
    z-index: 0;
    cursor: pointer;
}

.stork-cal-slot-hover {
    position: absolute;
    left: 0;
    right: 0;
    height: var(--stork-cal-slot, 24px);
    top: var(--stork-slot-top, -9999px);
    background: rgba(0, 0, 0, 0.05);
    pointer-events: none;
}

/* Calendar appointment items */
.mud-calendar .mud-cal-drop-item {
    box-sizing: border-box !important;
}

.mud-calendar .mud-cal-drop-item .mud-drop-item {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
    min-width: 0;
}

.mud-cal-week-view .mud-cal-drop-item,
.mud-cal-week-view .mud-cal-drop-item .mud-drop-item {
    overflow: visible;
}

.mud-cal-week-view .mud-cal-drop-item {
    z-index: 1;
}

.mud-cal-week-view .mud-cal-drop-item:hover {
    z-index: 10;
}

.mud-cal-week-view .mud-cal-drop-item .mud-badge-root {
    display: block;
    width: 100%;
    height: 100%;
}

.calendar-appointment-surface {
    position: absolute;
    inset: 1px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
    overflow: visible;
    min-width: 0;
    isolation: isolate;
}

.calendar-cell-hover-container {
    position: absolute;
    inset: 0;
    min-width: 0;
    overflow: visible;
}

.calendar-appointment-content {
    position: absolute;
    inset: 0;
    overflow: hidden;
    min-width: 0;
    z-index: 1;
    box-sizing: border-box;
    padding: 4px 6px;
}

.calendar-appointment-content--short {
    padding: 2px 4px;
}

.calendar-appointment-content--reserve {
    padding-left: 14px;
}

.calendar-appointment-surface .calendar-reserve-indicator {
    position: absolute;
    inset: 0;
}

.calendar-reserve-indicator {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.calendar-reserve-dot {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mud-palette-dark);
    z-index: 4;
    pointer-events: none;
}

.calendar-appointment-text {
    margin: 0 !important;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    color: #fff;
    font-family: var(--mud-typography-body2-family), var(--mud-typography-default-family), sans-serif;
}

.calendar-appointment-name {
    font-weight: 700;
}

.calendar-appointment-service {
    font-weight: 500;
}

.calendar-appointment-text--short {
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-appointment-text--tall {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 20;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.snap-edge {
    position: absolute;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-sizing: content-box;
}

.snap-edge-top {
    top: 0;
    transform: translate(-50%, -100%);
    padding-bottom: 8px;
}

.snap-edge-bottom {
    bottom: 0;
    transform: translate(-50%, 100%);
    padding-top: 8px;
}

.snap-edge-btn {
    display: flex;
    align-items: center;
    gap: 2px;
    background-color: var(--gio-calendar-overlay-bg);
    border-radius: 12px;
    padding: 1px 6px;
    pointer-events: none;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.snap-edge-btn:hover {
    opacity: 1;
    background-color: var(--gio-calendar-overlay-bg-hover);
}

.snap-edge-icon.mud-icon-root {
    width: 14px;
    height: 14px;
    font-size: 14px;
    color: var(--gio-calendar-overlay-text);
}

.calendar-cell-hover-container:hover .snap-edge,
.snap-edge:hover {
    opacity: 1;
}

.calendar-cell-hover-container:hover .snap-edge-btn,
.snap-edge:hover .snap-edge-btn {
    pointer-events: auto;
}

/* Month view — compact appointment chips for filtered review */
.mud-cal-month-view .mud-cal-drop-item:has(.calendar-appointment-month) .mud-drop-item {
    clip-path: none !important;
    -webkit-clip-path: none !important;
    border-radius: 3px !important;
    margin-inline: 1px !important;
    overflow: hidden;
}

.mud-cal-month-view .mud-cal-drop-item:has(.calendar-appointment-month) .mud-tooltip-root {
    position: relative;
    inset: auto;
    width: 100% !important;
    height: 100% !important;
    border-radius: 3px;
    box-shadow: none;
    overflow: hidden;
}

.calendar-appointment-month {
    width: 100%;
    height: 100%;
    min-height: 18px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    border-radius: 3px;
    padding: 1px 4px;
    overflow: hidden;
}

.calendar-appointment-month-text {
    margin: 0 !important;
    line-height: 1.2 !important;
    font-size: 11px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    color: #fff;
}

.calendar-appointment-notes-badge,
.calendar-status-indicator {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.calendar-appointment-surface .calendar-appointment-notes-badge,
.calendar-appointment-surface .calendar-status-indicator {
    position: absolute;
    inset: 0;
}

.calendar-appointment-notes-badge > .calendar-note-badge-icon,
.calendar-appointment-notes-badge > .mud-tooltip-root {
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: auto;
    left: auto;
    width: auto !important;
    height: auto !important;
    box-shadow: none;
    overflow: visible;
    z-index: 4;
}

.calendar-note-badge-icon,
.calendar-status-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--mud-palette-gray-light);
    color: var(--mud-palette-text-primary);
    overflow: hidden;
    pointer-events: none;
}

.calendar-note-badge-icon {
    background: var(--mud-palette-info);
    color: var(--mud-palette-info-text);
}

.calendar-appointment-notes-badge > .mud-tooltip-root {
    pointer-events: auto;
}

.calendar-note-badge-icon svg,
.calendar-status-dot svg {
    width: 10px !important;
    height: 10px !important;
    display: block;
}

.calendar-status-dot {
    position: absolute;
    z-index: 0;
}

.calendar-status-dot--confirmed {
    bottom: 1px;
    left: 1px;
    background: var(--mud-palette-success);
    color: var(--mud-palette-success-text);
}

.calendar-status-dot--sms {
    bottom: 1px;
    right: 1px;
}

.attendance-row-incomplete {
    background-color: rgba(255, 167, 38, 0.08);
}

.appointment-history-list {
    width: 100%;
}

.appointment-history-line {
    display: block;
    width: 100%;
    line-height: 1.5;
    white-space: normal;
    word-break: break-word;
}

.attendance-row-pending {
    background-color: rgba(3, 169, 244, 0.08);
}

.vault-dialog {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 8px 12px 16px;
}

.vault-dialog-host {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vault-mnemonic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--mud-palette-lines-default, #e0e0e0);
    border-radius: 8px;
    background: var(--mud-palette-background-gray, #f5f5f5);
}

.vault-mnemonic-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--mud-palette-lines-default, #e0e0e0);
    border-radius: 6px;
    background: var(--mud-palette-surface, #fff);
    font-size: 0.875rem;
    line-height: 1.2;
}

.vault-mnemonic-index {
    flex: 0 0 auto;
    min-width: 1.25rem;
    color: var(--mud-palette-text-secondary, #616161);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
}

.vault-mnemonic-input {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--mud-palette-lines-default, #c4c4c4);
    border-radius: 8px;
    background: var(--mud-palette-surface, #fff);
    color: inherit;
    font: inherit;
    resize: vertical;
}

.vault-error {
    margin: 0;
    min-height: 1.25rem;
    color: var(--mud-palette-error, #c62828);
    font-size: 0.875rem;
}

.vault-error:empty {
    display: none;
}

.vault-action {
    align-self: stretch;
    margin: 0;
    padding: 10px 16px;
    border: none;
    border-radius: var(--mud-default-borderradius, 4px);
    background: var(--mud-palette-primary, #594ae2);
    color: var(--mud-palette-primary-text, #fff);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.vault-action:hover:not(:disabled) {
    background: var(--mud-palette-primary-hover, var(--mud-palette-primary, #594ae2));
}

.vault-action:focus-visible {
    outline: 2px solid var(--mud-palette-primary, #594ae2);
    outline-offset: 2px;
}

.vault-action:disabled {
    opacity: 0.6;
    cursor: default;
}
