html, body {
    font-family: "Segoe UI", Tahoma, 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;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 0;
    background: #111111 url("/images/login.png") center / cover no-repeat;
    overflow: hidden;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 14px;
    padding: 28px 28px 24px;
    box-shadow: 0 20px 50px rgba(22, 28, 45, 0.18);
    backdrop-filter: blur(10px);
    display: grid;
    gap: 14px;
}

.login-card h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f2a44;
}

.login-subtitle {
    margin: 0 0 6px;
    font-size: 12px;
    color: #3a445c;
}

.login-field {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.login-field label {
    font-size: 12px;
    color: #3a445c;
}

.login-input {
    width: 100%;
    border: 1px solid #cfd6e6;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    color: #1f2a44;
    background: #ffffff;
}

.login-input:focus {
    outline: 2px solid rgba(46, 109, 255, 0.25);
    border-color: #2e6dff;
}

.login-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #3a445c;
    margin-bottom: 10px;
}

.login-checkbox {
    width: 14px;
    height: 14px;
}

.login-button {
    width: 100%;
    border: none;
    border-radius: 6px;
    background: #23036a;
    color: #ffffff;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
}

.login-button:hover {
    background: #1a024f;
}

.login-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
    color: #2e6dff;
    text-decoration: none;
}

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

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

/* Detail page mock styles (global fallback to avoid scoped-css issues) */
.detail-shell {
    --ink: #2a333d;
    --muted: #6b7684;
    --border: #d4d8de;
    --border-strong: #9aa4b2;
    --surface: #ffffff;
    --surface-alt: #eef0f2;
    --accent: #084e4f;
    --shadow: 0 10px 22px -20px rgba(17, 24, 39, 0.2);

    display: grid;
    gap: 6px;
    font-family: "Segoe UI", Tahoma, sans-serif;
    color: var(--ink);
}

.detail-header {
    background: var(--surface);
    color: var(--ink);
    border-radius: 0;
    padding: 4px 0 6px;
    display: grid;
    gap: 8px;
    align-items: start;
    border: none;
    box-shadow: none;
}

.detail-header-title h1,
.detail-header-title h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.1px;
}

.detail-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-title-text {
    display: grid;
    gap: 2px;
}

.detail-back {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #8d86c9;
    border: 1px solid #7e3dff;
    color: #ffffff;
    display: grid;
    place-items: center;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    appearance: none;
}

.detail-back:hover {
    background: #8b4fff;
    color: #ffffff;
}

.detail-back:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.detail-header-title small {
    display: block;
    margin-top: 0;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.detail-header-actions {
    display: flex;
    gap: 6px 12px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 12px;
}

.detail-header-actions button {
    font: inherit;
}

.detail-header-actions .bc-action-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.detail-save-message {
    font-size: 12px;
    font-weight: 600;
    margin-left: 6px;
}

.detail-save-message.is-success {
    color: #1b7a3c;
}

.detail-save-message.is-error {
    color: #b91c1c;
}

.detail-body {
    background: var(--surface);
    border-radius: 0;
    padding: 0;
    display: grid;
    gap: 6px;
    border: none;
}

.detail-tabbar {
    background: var(--surface);
    color: var(--ink);
    border-radius: 0;
    padding: 2px 0 6px;
    display: flex;
    gap: 18px;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

.detail-tabbar .tab-pill {
    padding: 4px 0 6px;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: inset 0 -2px 0 transparent;
    font: inherit;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.detail-tabbar .tab-pill.active {
    box-shadow: inset 0 -2px 0 var(--accent);
    color: #000000;
    font-weight: 600;
}

.detail-tabcontent {
    background: var(--surface);
    border-radius: 0;
    padding: 6px 0 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 12px;
    border: none;
}

.detail-main {
    display: grid;
    gap: 12px;
    padding: 0 8px 12px 0;
}

.detail-context {
    background: var(--surface);
    color: var(--ink);
    border-radius: 2px;
    padding: 10px;
    min-height: 320px;
    border: 1px solid var(--border);
    box-shadow: none;
}

.receipt-canvas {
    width: 100%;
    margin-top: 12px;
}

@media (max-width: 1024px) {
    .detail-tabcontent {
        grid-template-columns: 1fr;
    }
}

.detail-section {
    border-radius: 0;
    overflow: hidden;
    border-top: none;
}

.detail-section-title {
    background: var(--surface);
    color: var(--ink);
    padding: 6px 0 4px;
    font-weight: 600;
    font-size: 13px;
    border-bottom: 2px solid var(--border-strong);
}

.detail-section-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.detail-section-toggle:disabled {
    cursor: default;
    opacity: 0.8;
}

.detail-section-toggle .chevron {
    width: 16px;
    display: inline-block;
    text-align: center;
    font-size: 16px;
    line-height: 1;
}

.detail-section-body {
    background: var(--surface);
    padding: 6px 0 12px;
    display: grid;
    gap: 8px;
}

.detail-section-body .field-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 18px;
    font-size: 12px;
}

.detail-section-body .field {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    background: transparent;
    border-radius: 0;
    padding: 2px 0 4px;
    border-bottom: none;
}

.detail-section-body .field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 0;
}

.detail-section-body .field label::after {
    content: "";
    flex: 1;
    border-bottom: 1px dotted var(--border);
    margin-top: 2px;
}

.detail-section-body .field .field-control {
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-section-body .field .field-control.field-control-tight {
    gap: 4px;
}

.detail-section-body .field input,
.detail-section-body .field select {
    width: 100%;
    border: 1px solid var(--border);
    background-color: #ffffff;
    border-radius: 2px;
    padding: 3px 6px;
    font-size: 12px;
    color: var(--ink);
    box-sizing: border-box;
    appearance: none;
    height: 22px;
}

.detail-section-body .field input.field-checkbox {
    width: auto;
    height: auto;
    padding: 0;
    border: none;
    background: transparent;
    appearance: auto;
}

.detail-section-body .field input:disabled,
.detail-section-body .field select:disabled {
    background-color: #e1e4e8;
    color: #000000;
    cursor: default;
}

.detail-section-body .field input:focus,
.detail-section-body .field select:focus {
    outline: 1px solid var(--accent);
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

.ghost-link {
    background: transparent;
    border: none;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 1024px) {
    .detail-section-body .field-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .detail-section-body .field {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .detail-section-body .field label::after {
        content: none;
    }
}

.pill {
    background: var(--surface-alt);
    border-radius: 2px;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border);
}

.context-tabs {
    display: flex;
    gap: 10px;
    font-size: 12px;
    margin-bottom: 12px;
    color: var(--muted);
    border: none !important;
    padding-bottom: 0 !important;
}

.tt-link-button {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.context-tab {
    padding: 4px 8px;
    border-radius: 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
}

.context-tab.active {
    font-weight: 600;
    color: var(--ink);
    border-bottom-color: var(--accent);
}

.context-card {
    background: var(--surface);
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
}

.context-card-title {
    font-size: 12px;
    margin-bottom: 8px;
    font-weight: 600;
}

.context-card ul {
    margin: 0;
    padding-left: 18px;
    line-height: 1.6;
    font-size: 12px;
}

.avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--surface-alt);
    color: #3b5d7c;
    display: grid;
    place-items: center;
    font-size: 26px;
    font-weight: 700;
    margin: 8px auto 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    display: block;
}

.field-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.field-file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    padding: 0 8px;
    border: 1px solid var(--border);
    background: var(--surface-alt);
    border-radius: 4px;
    font-size: 11px;
    color: var(--ink);
    cursor: pointer;
}

.field-file-btn:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 2px;
}

.field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.field-row input {
    flex: 1;
    min-width: 0;
}

.field-control button {
    border: 1px solid var(--border);
    background: var(--surface-alt);
    border-radius: 4px;
    font-size: 11px;
    padding: 1px 6px;
    cursor: pointer;
}

.field-control .field-control-btn {
    width: 24px;
    height: 22px;
    padding: 0;
    display: grid;
    place-items: center;
}

.field-control .field-control-btn svg {
    width: 12px;
    height: 12px;
}

/* Employee list mock */
.bc-list-shell {
    --ink: #2a333d;
    --muted: #6b7684;
    --border: #d4d8de;
    --surface: #ffffff;
    --surface-alt: #eef0f2;
    --accent: #084e4f;

    display: grid;
    gap: 10px;
    color: var(--ink);
    font-family: "Segoe UI", Tahoma, sans-serif;
}

.bc-list-header {
    display: grid;
    gap: 8px;
    padding-bottom: 4px;
}

.bc-list-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bc-list-title small {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.bc-list-title h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.1px;
}

.bc-list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 12px;
    align-items: center;
}

.bc-list-actions button {
    background: transparent;
    border: none;
    color: var(--ink);
    padding: 0;
    cursor: pointer;
}

.bc-list-actions button:hover {
    color: var(--accent);
}

.bc-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 6px;
    border-radius: 4px;
    border: none;
    font-weight: 500;
    letter-spacing: 0.1px;
    background: transparent;
}

.bc-action-btn:hover {
    color: var(--accent);
}

.bc-action-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: #23036a;
}

.bc-list-table-wrap {
    border-top: 1px solid var(--border);
}

.bc-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: var(--muted);
}

.bc-list-count {
    color: var(--muted);
}

.bc-list-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bc-list-scroll .pager-btn {
    width: 28px;
    height: 24px;
    border: 1px solid var(--border);
    background: var(--surface-alt);
    border-radius: 2px;
    cursor: pointer;
    color: var(--ink);
}

.bc-list-scroll .pager-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.bc-list-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.bc-list-table thead th {
    text-align: left;
    font-weight: 600;
    color: var(--muted);
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.bc-list-table tbody td {
    padding: 8px 10px;
    border-bottom: 1px solid #e5e8ec;
}

.bc-list-table tbody tr.is-selected {
    background: #8d86c9;
}

.bc-list-table tbody tr {
    transition: background-color 120ms ease-in-out;
}

.bc-list-table tbody tr.is-selected:hover {
    background: #8d86c9;
}

.bc-list-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.bc-list-link:hover {
    text-decoration: underline;
}

.bc-list-link.is-disabled {
    color: var(--muted);
    cursor: default;
    text-decoration: none;
}

.bc-list-table td.is-link {
    color: var(--accent);
}

.bc-list-empty {
    color: var(--muted);
    padding: 14px 10px;
}

@media (max-width: 900px) {
    .bc-list-actions {
        gap: 6px 10px;
    }

    .bc-list-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
    }

    .bc-list-table {
        min-width: 720px;
        width: max-content;
    }

    .bc-list-table {
        font-size: 11px;
    }
}
