/* Navbar */

.site-header {
    background: var(--color-brand);
    color: #fff;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-header a {
    color: #fff;
    text-decoration: none;
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.site-header__nav a {
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius);
}

.site-header__nav a[aria-current="page"] {
    background: #fff;
    color: var(--color-brand);
    font-weight: 700;
}

.site-header__right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.logout-form {
    display: inline;
}

.button--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
}

/* App subnav */

.app-nav {
    background: var(--color-brand-secondary);
    border-bottom: 1px solid var(--color-border-subtle);
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-nav a {
    color: var(--color-brand);
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius);
}

.app-nav a:hover {
    text-decoration: underline;
}

.app-nav a[aria-current="page"] {
    background: var(--color-brand);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

/* Tables */

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

th,
td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border-subtle);
}

th {
    background: var(--color-surface-muted);
    font-weight: 600;
}

.sort-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.sort-link:hover {
    text-decoration: underline;
}

.sort-link.is-active {
    color: var(--color-brand);
}

.sort-indicator {
    font-size: 0.85em;
    line-height: 1;
}

tr:last-child td {
    border-bottom: none;
}

tbody tr:nth-child(even) td {
    background: var(--color-surface-muted);
}

.clickable-row {
    cursor: pointer;
}

.clickable-row:hover td,
table:not(.week-calendar-grid) tbody tr:hover td {
    background: var(--color-surface-hover);
}

.session-row--conflict td {
    background: var(--color-error-bg);
    color: var(--color-error-text);
}

.session-row--conflict:hover td,
table:not(.week-calendar-grid) tbody tr.session-row--conflict:hover td {
    background: var(--color-error-bg);
    color: var(--color-error-text);
    filter: brightness(0.97);
}

.session-conflict-cue {
    display: inline-block;
    margin-left: 0.35rem;
    font-weight: 600;
}

.verify-check-col {
    width: 2.5rem;
    text-align: center;
}

.verify-filters {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.verify-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: flex-end;
}

.verify-filters-row .search-bar {
    margin-bottom: 0;
    min-width: 12rem;
}

.verify-toolbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    white-space: nowrap;
}

.verify-toolbar strong {
    font-weight: 700;
}

body.verify-queue main,
body.bill-processing main,
body.file-list main,
body.provider-detail main {
    max-width: none;
}

.verify-table .prebilling-provider-head td {
    font-weight: 700;
    background: var(--color-bg-subtle, #f3f4f6);
}

.prebilling-file-breakdown {
    margin: 0 0 0.75rem;
    border: 1px solid var(--color-border, #d1d5db);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.prebilling-file-row {
    padding: 0.65rem 0.85rem;
}

.prebilling-file-row + .prebilling-file-row {
    border-top: 1px solid var(--color-border, #d1d5db);
}

.verify-table-wrap {
    overflow-x: auto;
}

.verify-table {
    width: 100%;
}

.verify-table th,
.verify-table td {
    white-space: nowrap;
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
}

.verify-reasons {
    margin: 0.25rem 0 0;
    padding-left: 1.1rem;
}

.verify-reasons li {
    margin-bottom: 0.2rem;
}

/* Search */

.search-bar {
    margin-bottom: 1rem;
}

form .search-bar,
.post-week-filters .search-bar {
    margin-bottom: 0;
}

.search-bar label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.search-bar input,
.search-bar select,
.search-bar .week-calendar-toggle {
    width: 100%;
    max-width: 400px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--color-surface);
    color: inherit;
    font-family: inherit;
    box-sizing: border-box;
}

.search-bar .week-calendar-toggle {
    text-align: left;
    cursor: pointer;
}

.search-bar .week-calendar-field .week-calendar-toggle {
    max-width: none;
}

/* Detail */

.detail-grid {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 0.5rem 1rem;
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.detail-grid dt {
    font-weight: 600;
    color: var(--color-text-secondary);
}

.detail-grid dd {
    margin: 0;
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--color-brand);
}

/* Detail tabs */

.detail-tabs {
    margin-top: 1rem;
}

.detail-tabs__list {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--color-border-subtle);
    margin-bottom: 1.25rem;
}

.detail-tabs__tab {
    appearance: none;
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border-subtle);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
    color: var(--color-text-secondary);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    margin-bottom: -1px;
    padding: 0.65rem 1.1rem;
}

a.detail-tabs__tab {
    display: inline-block;
    text-decoration: none;
}

.detail-tabs__tab:hover {
    background: var(--color-surface-hover);
    color: var(--color-brand);
}

.detail-tabs__tab[aria-selected="true"] {
    background: var(--color-brand);
    border-color: var(--color-brand);
    color: #fff;
}

.detail-tabs__panel[hidden] {
    display: none;
}

.current-plan {
    margin-bottom: 1.5rem;
}

.current-plan h2 {
    margin: 0 0 0.75rem;
}

/* Messages */

.messages {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.messages li {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}

.messages .error {
    background: var(--color-error-bg);
    color: var(--color-error-text);
}

.messages .success {
    background: var(--color-success-bg);
    color: var(--color-success-text);
}

.messages .warning,
.messages .info {
    background: var(--color-warning-bg);
    color: var(--color-warning-text);
    border: 1px solid var(--color-warning-border);
}

.notice {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin: 0 0 1rem;
}

.notice-warning {
    background: var(--color-warning-bg);
    color: var(--color-warning-text);
    border: 1px solid var(--color-warning-border);
}

/* Forms */

form p,
.field-stack p {
    margin-bottom: 1rem;
}

form label,
.field-stack label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

form input[type="text"],
form input[type="password"],
form input[type="number"],
form select,
form textarea,
form .us-date-input,
.field-stack input[type="text"],
.field-stack input[type="password"],
.field-stack input[type="number"],
.field-stack select,
.field-stack textarea,
.field-stack .us-date-input {
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 1rem;
}

form textarea,
.field-stack textarea {
    min-height: 6rem;
}

.post-week-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.post-week-filters p {
    margin-bottom: 0;
}

.provider-search-select {
    position: relative;
}

.provider-search-results {
    position: absolute;
    z-index: 20;
    top: calc(100% + 0.2rem);
    left: 0;
    width: 100%;
    max-width: 400px;
    margin: 0;
    padding: 0.25rem 0;
    list-style: none;
    max-height: 14rem;
    overflow-y: auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.provider-search-results [role="option"] {
    padding: 0.4rem 0.75rem;
    cursor: pointer;
}

.provider-search-results [role="option"].is-active,
.provider-search-results [role="option"]:hover {
    background: var(--color-surface-hover);
}

.provider-search-empty {
    padding: 0.4rem 0.75rem;
    color: var(--color-text-muted);
}

.entity-search-select {
    position: relative;
}

.entity-search-results {
    position: absolute;
    z-index: 20;
    top: calc(100% + 0.2rem);
    left: 0;
    width: 100%;
    max-width: 400px;
    margin: 0;
    padding: 0.25rem 0;
    list-style: none;
    max-height: 14rem;
    overflow-y: auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.entity-search-results [role="option"] {
    padding: 0.4rem 0.75rem;
    cursor: pointer;
}

.entity-search-results [role="option"].is-active,
.entity-search-results [role="option"]:hover {
    background: var(--color-surface-hover);
}

.entity-search-empty {
    padding: 0.4rem 0.75rem;
    color: var(--color-text-muted);
}

.session-filters,
.child-filters,
.provider-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.session-filters .search-bar,
.child-filters .search-bar,
.provider-filters .search-bar {
    margin-bottom: 0;
    min-width: 12rem;
}

/* Column layout plus .session-filters { align-items: flex-end } would pin rows right. */
.session-filters.verify-filters {
    align-items: flex-start;
}

.provider-filters {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.provider-filters .search-bar {
    min-width: 0;
}

.provider-filters .search-bar label {
    white-space: nowrap;
}

.provider-filters .search-bar:first-child {
    flex: 1 1 10rem;
}

.provider-filters .search-bar:not(:first-child) {
    flex: 0 1 9rem;
}

.provider-filters .search-bar input,
.provider-filters .search-bar select {
    max-width: none;
}

.provider-filters-action {
    flex: 0 0 auto;
    margin-left: auto;
    white-space: nowrap;
}

.provider-list-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.provider-list-toolbar strong {
    font-weight: 700;
}

.provider-check-col {
    width: 2.5rem;
    text-align: center;
}

.post-week-mode {
    border: none;
    padding: 0;
    margin: 0;
}

.post-week-mode legend {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.post-week-mode label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 400;
    margin-right: 1rem;
}

.week-calendar-field {
    position: relative;
    min-width: 16rem;
    max-width: 28rem;
    width: 100%;
}

.week-calendar-stepper {
    display: flex;
    align-items: stretch;
    gap: 0.25rem;
}

.week-calendar-toggle-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.week-calendar-stepper > .week-calendar-nav {
    width: 2.25rem;
    height: auto;
    flex: 0 0 auto;
    font-size: 0.9rem;
}

.week-calendar-toggle-wrap .date-calendar-popup {
    top: calc(100% + 0.2rem);
    left: 0;
}

.week-calendar {
    width: 100%;
    max-width: 13.5rem;
    margin: 0 0 0.75rem;
    padding: 0.4rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.date-calendar-popup .week-calendar {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.week-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.week-calendar-title {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
}

.week-calendar-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    color: var(--color-text);
    cursor: pointer;
    font-size: 0.75rem;
    line-height: 1;
}

.week-calendar-nav:hover:not(:disabled) {
    background: var(--color-surface-hover);
}

.week-calendar-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.week-calendar-grid {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.week-calendar-grid th {
    padding: 0.15rem 0;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-align: center;
}

.week-calendar-grid td {
    padding: 0.2rem 0;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.2;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
}

.week-calendar-row {
    cursor: pointer;
}

.week-calendar-row:hover:not(.is-future):not(.is-selected) td {
    background: var(--color-surface-hover);
}

.week-calendar-row.is-future {
    cursor: not-allowed;
}

.week-calendar-row.is-future td {
    color: var(--color-text-muted);
    opacity: 0.45;
}

.week-calendar-row.is-selected td,
.week-calendar-row.is-selected:hover td {
    background: var(--color-brand);
    color: #fff;
    font-weight: 600;
    border-top-color: var(--color-brand);
    border-bottom-color: var(--color-brand);
}

.week-calendar-row.is-selected td:first-child {
    border-radius: var(--radius) 0 0 var(--radius);
}

.week-calendar-row.is-selected td:last-child {
    border-radius: 0 var(--radius) var(--radius) 0;
}

.week-calendar-grid td.is-outside {
    color: var(--color-text-muted);
}

.week-calendar-row.is-selected td.is-outside {
    color: rgba(255, 255, 255, 0.7);
}

.week-calendar-grid td.is-today {
    font-weight: 700;
    color: var(--color-brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.week-calendar-grid td.is-future:not(.is-today) {
    color: var(--color-text-muted);
}

.week-calendar-row.is-selected td.is-today {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-week-check-col {
    text-align: left;
}

.post-week-select-all {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    font-weight: 600;
}

body.post-week main {
    max-width: none;
}

.post-week-table-wrap {
    overflow-x: auto;
}

.post-week-toolbar {
    margin: 0 0 0.75rem;
}

.post-week-table {
    width: max-content;
    min-width: 100%;
    overflow: visible;
}

.post-week-table th,
.post-week-table td {
    white-space: nowrap;
    padding: 0.35rem 0.5rem;
}

.post-week-table input:not([type="checkbox"]),
.post-week-table select {
    max-width: none;
    width: auto;
    padding: 0.35rem 0.5rem;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.post-week-table .post-week-col-date input {
    width: 6.75rem;
    max-width: 6.75rem;
    min-width: 0;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

.post-week-table .post-week-col-time input {
    width: 4.75rem;
    max-width: 4.75rem;
    min-width: 0;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

.post-week-table .post-week-col-units input {
    width: 2.5rem;
    max-width: 2.5rem;
    min-width: 0;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    text-align: center;
}

.post-week-table .post-week-col-procedure select {
    max-width: 11rem;
    min-width: 0;
}

.post-week-table .errorlist {
    margin: 0.25rem 0 0;
    padding: 0;
    list-style: none;
    color: var(--color-danger, #b00020);
    font-size: 0.85rem;
}

.post-week-posted {
    margin-top: 2rem;
    pointer-events: none;
}

.post-week-posted h2 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

.post-week-posted .post-week-table {
    background: var(--color-surface-muted);
    color: var(--color-text-muted);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.section-header h1,
.section-header h2 {
    margin: 0;
}

.muted {
    color: var(--color-text-muted);
    margin: 0.75rem 0 1rem;
}

button,
.button {
    background: var(--color-brand);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

/* Pagination */

.pagination {
    margin-top: 1rem;
}

/* Empty state */

.empty-state {
    background: var(--color-surface);
    padding: 2rem;
    text-align: center;
    border-radius: var(--radius-lg);
    color: var(--color-text-muted);
}

/* Home */

.home-layout {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr 1fr;
}

.home-panel {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.25rem 1.5rem;
}

.home-panel h2 {
    margin: 0 0 1rem;
}

.home-panel h3 {
    margin: 0 0 0.75rem;
}

.home-panel--wide {
    grid-column: 1 / -1;
}

.home-panel .detail-grid {
    background: transparent;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

.home-panel table {
    box-shadow: none;
}

.auth-stack {
    display: grid;
    gap: 1.25rem;
}

.auth-stack .home-panel {
    border: 1px solid var(--color-border);
}

.auth-stack--2col,
.auth-stack--dense {
    gap: 0.75rem;
}

.auth-stack--2col {
    grid-template-columns: 1fr 1fr;
}

.auth-stack--2col .home-panel,
.auth-stack--dense .home-panel {
    padding: 0.75rem 1rem;
}

.auth-stack--2col .home-panel h2,
.auth-stack--dense .home-panel h2 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.auth-stack--2col .home-panel p,
.auth-stack--dense .home-panel p {
    display: grid;
    grid-template-columns: minmax(6.5rem, 7.5rem) 1fr;
    align-items: center;
    gap: 0.25rem 0.5rem;
    margin-bottom: 0.35rem;
}

.auth-stack--2col .home-panel p:last-child,
.auth-stack--dense .home-panel p:last-child {
    margin-bottom: 0;
}

.auth-stack--2col .home-panel label,
.auth-stack--dense .home-panel label {
    margin-bottom: 0;
    font-size: 0.8rem;
}

.auth-stack--2col .home-panel input,
.auth-stack--2col .home-panel select,
.auth-stack--2col .home-panel textarea,
.auth-stack--2col .home-panel .us-date-input,
.auth-stack--dense .home-panel input,
.auth-stack--dense .home-panel select,
.auth-stack--dense .home-panel textarea,
.auth-stack--dense .home-panel .us-date-input {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.auth-stack--2col .home-panel textarea,
.auth-stack--dense .home-panel textarea {
    min-height: 2.5rem;
}

.auth-stack--2col .home-panel .errorlist,
.auth-stack--dense .home-panel .errorlist {
    grid-column: 1 / -1;
    margin: 0;
}

.auth-stack--2col .card-fields,
.auth-stack--dense .card-fields {
    gap: 0 0.75rem;
}

.auth-stack--2col .card-fields__span,
.auth-stack--dense .card-fields__span {
    grid-column: 1 / -1;
}

.auth-stack--2col + .form-actions,
.auth-stack--dense + .form-actions {
    margin-top: 0.75rem;
}

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

.auth-nav .back-link {
    margin-bottom: 0;
}

.auth-nav h1 {
    margin: 0;
    font-size: 1.15rem;
    flex: 1;
}

.section-header--compact {
    margin-top: 0.75rem;
}

.section-header--compact h2 {
    font-size: 1.15rem;
}

.card-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.5rem;
}

.home-panel .card-fields input,
.home-panel .card-fields select,
.home-panel .card-fields textarea,
.home-panel .card-fields .us-date-input,
.home-panel .field-stack input,
.home-panel .field-stack select,
.home-panel .field-stack textarea,
.home-panel .field-stack .us-date-input {
    max-width: 100%;
}

.card-fields__static span {
    display: block;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

body.session-detail-page main {
    max-width: 72rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.session-detail .auth-nav {
    margin-bottom: 0.5rem;
}

.session-detail .auth-nav .muted,
.session-detail__status {
    margin: 0;
}

.session-detail .messages {
    margin-bottom: 0.5rem;
}

.session-detail .messages li {
    padding: 0.4rem 0.65rem;
    margin-bottom: 0.35rem;
}

.session-detail-actions {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.session-detail-actions form {
    display: flex;
    margin: 0;
}

.session-detail .auth-stack--2col .home-panel textarea {
    min-height: 2rem;
    height: 2.5rem;
    resize: vertical;
}

.assignment-card {
    margin-top: 1.25rem;
}

.assignment-card table {
    margin-top: 1rem;
    overflow: visible;
}

.assignment-card td .entity-search-select {
    min-width: 16rem;
}

.assignment-card .entity-search-results {
    z-index: 1000;
}

@media (max-width: 720px) {
    .home-layout {
        grid-template-columns: 1fr;
    }

    .auth-stack--2col {
        grid-template-columns: 1fr;
    }

    .card-fields {
        grid-template-columns: 1fr;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-button {
    background: none;
    border: none;
    padding: 0;
    color: var(--color-brand);
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
}

.text-button:hover {
    color: var(--color-brand-secondary);
}

.session-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    padding: 1rem;
}

.session-dialog-backdrop[hidden] {
    display: none !important;
}

.session-dialog {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.25rem 1.5rem;
    max-width: 24rem;
    width: 100%;
}

.session-dialog--wide {
    max-width: 36rem;
}

.session-dialog h2,
.session-dialog h3 {
    margin: 0 0 0.75rem;
}

.session-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin: 1rem 0 0;
}

.procedure-picker {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    min-width: 0;
}

.procedure-picker-slots label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.procedure-picker-slots select {
    min-width: 14rem;
}

.post-week-table .post-week-col-procedure .procedure-picker-open {
    max-width: 11rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-history-table-wrap {
    overflow: auto;
    max-height: 20rem;
}

.file-actions {
    white-space: nowrap;
}

.file-actions button,
.file-actions a {
    margin-right: 0.5rem;
}

.miss-reason-choices {
    border: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.makeup-picker-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.makeup-picker-table th,
.makeup-picker-table td {
    text-align: left;
    padding: 0.35rem 0.5rem;
    border-bottom: 1px solid var(--color-border-subtle);
}

.makeup-picker-taken {
    opacity: 0.55;
    pointer-events: none;
}

.makeup-picker-select {
    background: none;
    border: none;
    padding: 0;
    color: var(--color-brand);
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
}

.post-week-table .post-week-col-notes input {
    width: 8rem;
    min-width: 6rem;
}
