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: transparent;
    padding: 0;
    color: inherit;
}

    .blazor-error-boundary::after {
        content: none;
    }

.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;
}

/*Begin Customize css*/
html, body {
    font-family: "Sarabun", sans-serif !important; 
}
a,
a label {
    cursor: pointer;
}

.file-input-zone,
.file-input-zone input[type="file"] {
    cursor: pointer;
}
.swal2-container {
    z-index: 3000 !important;
}
/*End Customize css*/

/*Begin reconnect*/
/* Reconnect overlay */
.reconnect-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(2px);
    z-index: 2147483000;
}

.reconnect-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 32px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    min-width: 260px;
    text-align: center;
}

.reconnect-icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.reconnect-css-spinner {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 4px solid #dbeafe;
    border-top-color: #2563eb;
    animation: spin 1s linear infinite;
}

.logo-spin {
    width: 72px;
    height: 72px;
    object-fit: contain;
    animation: spin 1.1s linear infinite;
}

.reconnect-text {
    color: #6b7280;
    font-size: .95rem;
}

.reconnect-btn {
    margin-top: 4px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    cursor: pointer;
}

    .reconnect-btn:hover {
        background: #f3f4f6;
    }

@keyframes spin {
    from {
        transform: rotate(0)
    }

    to {
        transform: rotate(360deg)
    }
}

/*End reconnect*/

/*Begin fatal error UI*/
#blazor-error-ui {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2147482000;
    background: #f7f6f3;
}

#blazor-error-ui .dismiss {
    display: none;
}

.accy-fatal-error {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: #f7f6f3;
    font-family: "Sarabun", "Segoe UI", sans-serif;
}

.accy-fatal-error-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    padding: 36px 32px 28px;
    text-align: center;
}

.accy-fatal-error-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border-radius: 999px;
    background: #fef3f2;
    color: #d92d20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accy-fatal-error-title {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #18181b;
    line-height: 1.3;
}

.accy-fatal-error-subtitle {
    margin: 0 0 18px;
    font-size: 0.92rem;
    color: #71717a;
    line-height: 1.5;
}

.accy-fatal-error-details {
    text-align: left;
    margin: 0 0 22px;
}

.accy-fatal-error-details summary {
    list-style: none;
    cursor: pointer;
    color: #71717a;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.accy-fatal-error-details summary::-webkit-details-marker {
    display: none;
}

.accy-fatal-error-details summary::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #a1a1aa;
    transform: rotate(-90deg);
    transition: transform 0.15s ease;
}

.accy-fatal-error-details[open] summary::before {
    transform: rotate(0deg);
}

.accy-fatal-error-details pre {
    margin: 10px 0 0;
    padding: 12px;
    max-height: 180px;
    overflow: auto;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    color: #52525b;
    font-size: 0.75rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    text-align: left;
}

.accy-fatal-error-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.accy-fatal-error-btn {
    min-width: 148px;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.accy-fatal-error-btn-primary {
    background: #2563eb;
    border: 1px solid #2563eb;
    color: #fff;
}

.accy-fatal-error-btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

.accy-fatal-error-btn-secondary {
    background: #fff;
    border: 1px solid #e4e4e7;
    color: #3f3f46;
}

.accy-fatal-error-btn-secondary:hover {
    background: #fafafa;
    color: #18181b;
}

/* standby variant: neutral icon, details collapsed and low-key so users don't read it as an error */
.accy-fatal-error-icon-standby {
    background: #eef2f7;
    color: #64748b;
}

.accy-fatal-error-details-muted {
    margin: 22px 0 0;
    text-align: center;
}

.accy-fatal-error-details-muted summary {
    justify-content: center;
    color: #b0b7c3;
    font-size: 0.75rem;
    font-weight: 400;
}

.accy-fatal-error-details-muted summary::before {
    border-top-color: #c9ced6;
}

.accy-fatal-error-details-muted pre {
    max-height: 160px;
    color: #6b7280;
}

.accy-fatal-error-btn-small {
    min-width: 0;
    margin-top: 10px;
    padding: 5px 14px;
    font-size: 0.78rem;
    color: #6b7280;
}

@media (max-width: 480px) {
    .accy-fatal-error-card {
        padding: 28px 20px 22px;
    }

    .accy-fatal-error-btn {
        min-width: 0;
        flex: 1 1 140px;
    }

    .accy-fatal-error-btn-small {
        flex: 0 0 auto;
    }
}
/*End fatal error UI*/

.accy-gl-banner {
    background: #cfe2ff;
    border: 1px solid #9ec5fe;
    border-radius: 0.25rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
    color: #052c65;
}

.accy-gl-banner-link {
    color: #0d6efd;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
    margin-left: 0.25rem;
}

.accy-gl-banner-link:hover {
    color: #0a58ca;
}