html, body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
}

button, input, select, textarea,
h1, h2, h3, h4, h5, h6,
p, a, span, label, td, th, li {
    font-family: "Montserrat", sans-serif;
}

h1, h2, h3 {
    margin-top: 0;
}

h1:focus, h2:focus, h3:focus,
.page-title:focus {
    outline: none;
}

a {
    color: inherit;
}

.page-title {
    margin-bottom: 0.2rem;
}

.page-subtitle {
    margin-top: 0;
    color: #6f7185;
}

.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.";
    }

.ab-stack {
    display: grid;
    gap: 1rem;
}

.ab-toast-host {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 9999;
    width: min(22.5rem, calc(100vw - 1.5rem));
    pointer-events: none;
}

.ab-toast {
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
    box-shadow:
        0 1px 2px rgba(20, 24, 40, 0.04),
        0 10px 28px rgba(20, 24, 40, 0.12);
    border: 1px solid rgba(20, 24, 40, 0.06);
    animation: ab-toast-in 0.22s ease-out;
}

.ab-toast-progress {
    height: 3px;
    background: #eef0f4;
}

.ab-toast-progress-bar {
    display: block;
    height: 100%;
    width: 100%;
    transform-origin: left center;
    animation-name: ab-toast-progress;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

.ab-toast-success .ab-toast-progress-bar { background: #34c759; }
.ab-toast-error .ab-toast-progress-bar { background: var(--ab-danger, #d64556); }
.ab-toast-info .ab-toast-progress-bar { background: var(--ab-primary, #13a19c); }

.ab-toast-body {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 0.85rem;
    padding: 0.95rem 0.85rem 1rem 1rem;
}

.ab-toast-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.ab-toast-success .ab-toast-icon { background: #34c759; color: #fff; }
.ab-toast-error .ab-toast-icon { background: var(--ab-danger, #d64556); color: #fff; }
.ab-toast-info .ab-toast-icon { background: var(--ab-primary, #13a19c); color: #fff; }

.ab-toast-icon .ab-hero-icon {
    width: 1.05rem;
    height: 1.05rem;
}

.ab-toast-copy {
    min-width: 0;
    padding-top: 0.1rem;
}

.ab-toast-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    color: #1f2337;
}

.ab-toast-description {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--ab-muted, #6f7185);
}

.ab-toast-close {
    appearance: none;
    border: 0;
    background: transparent;
    color: #9aa0b4;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    margin: -0.15rem -0.15rem 0 0;
}

.ab-toast-close:hover,
.ab-toast-close:focus-visible {
    color: #2a2d46;
    background: #f2f3f7;
    outline: none;
}

.ab-toast-close-icon {
    width: 1rem;
    height: 1rem;
}

@keyframes ab-toast-in {
    from {
        opacity: 0;
        transform: translateY(-0.4rem) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes ab-toast-progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@media (max-width: 640px) {
    .ab-toast-host {
        top: auto;
        bottom: 1rem;
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
    }
}

.ab-alert {
    border-radius: 12px;
    border: 1px solid #cfeae8;
    padding: 0.8rem 1rem;
    background: #f4fbfa;
}

.ab-table-wrap {
    overflow: auto;
    border: 1px solid #d9e6e5;
    border-radius: 10px;
}

.ab-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.ab-table th, .ab-table td {
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid #e6efee;
    text-align: left;
    vertical-align: middle;
}

.ab-table thead th {
    background: #eef8f7;
}

.table-sort {
    font: inherit;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #0a4f4c;
    padding: 0;
    font-weight: 600;
}

.ab-pagination {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    margin-top: 0.7rem;
}

.ab-shell {
    min-height: 100vh;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.ab-shell > .ab-card.ab-split {
    width: min(1100px, 100%);
    flex-shrink: 0;
}

.ab-tenant-logo-slot {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 4.5rem;
    padding: 1rem 0;
}

.ab-tenant-logo-slot .ab-tenant-logo {
    margin: 0;
}

.ab-auth-heading {
    text-align: center;
    margin-bottom: 2.25rem;
}

.ab-auth-heading .page-title {
    margin-bottom: 0.45rem;
}

.ab-auth-heading .page-subtitle {
    margin: 0;
}

.ab-text-link {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    color: var(--ab-primary);
    font-family: var(--ab-font, "Montserrat", sans-serif);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.ab-text-link:hover {
    color: var(--ab-primary-dark);
    text-decoration: underline;
}

.ab-text-link-forgot {
    display: inline-block;
    justify-self: start;
    margin: -0.35rem 0 0.35rem;
}

.ab-auth-divider {
    margin: 1.35rem 0 1rem;
    border: 0;
    border-top: 1px solid #dce8e7;
    width: 100%;
}

.ab-auth-divider-label {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 2.5rem 0 2.5rem;
    color: #9a97a8;
    font-family: var(--ab-font, "Montserrat", sans-serif);
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
}

.ab-auth-divider-label::before,
.ab-auth-divider-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #dce8e7;
}

.ab-auth-divider-label span {
    flex-shrink: 0;
}

.ab-auth-hint {
    margin: 0;
    color: #6f7185;
    font-size: 0.9rem;
    line-height: 1.45;
}

.ab-employment-working-days-intro {
    margin-bottom: 0.45rem;
}

.ab-busy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.65rem;
    min-height: 11rem;
    padding: 1.5rem 1rem;
}

.ab-busy-spinner {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: 3px solid #d9efee;
    border-top-color: #13a19c;
    animation: ab-spin 0.75s linear infinite;
}

.ab-busy-title {
    margin: 0.4rem 0 0;
    color: #3d3f58;
    font-size: 1rem;
    font-weight: 600;
}

.ab-busy-text {
    margin: 0;
    color: #8b889c;
    font-size: 0.9rem;
}

@keyframes ab-spin {
    to {
        transform: rotate(360deg);
    }
}

.ab-busy-spinner-lg {
    width: 3.25rem;
    height: 3.25rem;
    border-width: 4px;
}

.ab-confirm-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
}

.ab-confirm-result .ab-auth-heading {
    margin-bottom: 1.5rem;
}

.ab-confirm-result .ab-btn {
    min-width: 12rem;
}

.ab-2fa-setup {
    align-items: stretch;
}

.ab-2fa-qr {
    display: flex;
    justify-content: center;
    margin: 0.25rem 0 0.5rem;
}

.ab-2fa-qr img {
    border-radius: 12px;
    border: 1px solid #d7e5e4;
    background: #fff;
    padding: 0.65rem;
}

.ab-2fa-secret {
    display: flex;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: #eef8f7;
    border: 1px solid #d7e5e4;
}

.ab-2fa-secret code {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #0d5c58;
}

.ab-recovery-codes {
    list-style: none;
    margin: 0;
    padding: 0.85rem 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem 1rem;
    border-radius: 12px;
    background: #eef8f7;
    border: 1px solid #d7e5e4;
}

.ab-recovery-codes code {
    font-size: 0.88rem;
    font-weight: 600;
    color: #3d3f58;
}

.ab-status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5.5rem;
    height: 5.5rem;
    margin: 0.25rem 0 1.1rem;
}

.ab-status-svg {
    width: 5.5rem;
    height: 5.5rem;
}

.ab-status-ring {
    fill: none;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-dasharray: 176;
    stroke-dashoffset: 176;
    animation: ab-ring-draw 0.55s ease-out forwards;
}

.ab-status-icon-success .ab-status-ring {
    stroke: #13a19c;
    fill: rgba(19, 161, 156, 0.08);
}

.ab-status-icon-error .ab-status-ring {
    stroke: #d4536d;
    fill: rgba(212, 83, 109, 0.08);
}

.ab-status-check {
    fill: none;
    stroke: #13a19c;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: ab-check-draw 0.4s 0.35s ease-out forwards;
}

.ab-status-cross {
    fill: none;
    stroke: #d4536d;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
}

.ab-status-cross-a {
    animation: ab-check-draw 0.28s 0.3s ease-out forwards;
}

.ab-status-cross-b {
    animation: ab-check-draw 0.28s 0.42s ease-out forwards;
}

.ab-status-icon-success,
.ab-status-icon-error {
    animation: ab-status-pop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.25) both;
}

@keyframes ab-ring-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes ab-check-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes ab-status-pop {
    from {
        opacity: 0;
        transform: scale(0.72);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.ab-auth-switch {
    margin: 0.85rem 0 0;
    text-align: center;
    color: #8b889c;
    font-size: 0.92rem;
}

.ab-auth-switch .ab-text-link {
    margin-left: 0.25rem;
}

.ab-lang-dropdown {
    position: relative;
    display: inline-block;
}

.ab-lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 8.5rem;
    border: 1px solid #d2e2e1;
    background: #fff;
    color: #3d3f58;
    border-radius: 10px;
    padding: 0.45rem 0.75rem;
    font-family: var(--ab-font, "Montserrat", sans-serif);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(19, 161, 156, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ab-lang-trigger:hover,
.ab-lang-dropdown.is-open .ab-lang-trigger {
    border-color: #8fd4d1;
    box-shadow: 0 0 0 3px rgba(19, 161, 156, 0.12);
}

.ab-lang-chevron {
    width: 0.45rem;
    height: 0.45rem;
    margin-left: auto;
    border-right: 2px solid #8a879e;
    border-bottom: 2px solid #8a879e;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.15s ease;
}

.ab-lang-dropdown.is-open .ab-lang-chevron {
    transform: rotate(225deg) translateY(-1px);
}

.ab-lang-menu {
    position: absolute;
    left: 0;
    bottom: calc(100% + 0.4rem);
    z-index: 20;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    min-width: 100%;
    background: #fff;
    border: 1px solid #d7e5e4;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(19, 161, 156, 0.16);
    animation: ab-lang-pop 0.14s ease-out;
}

@keyframes ab-lang-pop {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ab-lang-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    border: 0;
    background: transparent;
    color: #3d3f58;
    border-radius: 8px;
    padding: 0.55rem 0.65rem;
    font-family: var(--ab-font, "Montserrat", sans-serif);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
}

.ab-lang-option:hover {
    background: #eef8f7;
}

.ab-lang-option.is-active {
    background: rgba(19, 161, 156, 0.12);
    color: #0c6e69;
    font-weight: 600;
}

.ab-lang-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.7rem;
    height: 1.35rem;
    border-radius: 6px;
    background: #d9f0ef;
    color: #0c6e69;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Platform area (login-style card + top nav) */
.ab-platform-shell {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2.5rem;
    gap: 1.5rem;
}

.ab-platform-shell > .ab-platform-topnav,
.ab-platform-shell > .ab-platform-card {
    width: min(1400px, 100%);
    max-width: 100%;
    min-width: 0;
    flex-shrink: 0;
    box-sizing: border-box;
}

.ab-platform-card {
    display: flex;
    flex-direction: column;
    min-height: 72vh;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.ab-platform-body {
    flex: 1;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
}

.ab-platform-edit-top {
    margin: -0.35rem 0 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 2rem;
}

.ab-platform-edit-top-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.ab-platform-back {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--ab-primary);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.ab-platform-back:hover:not(:disabled) {
    color: var(--ab-primary-dark);
}

.ab-platform-back:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ab-platform-back-arrow {
    font-size: 1.15rem;
    line-height: 1;
}

.ab-platform-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.15rem 0.1rem;
    margin: 0 0 1.25rem;
    padding: 0;
    border-bottom: 1px solid #d0dfde;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: visible;
}

@media (pointer: coarse) {
    .ab-platform-tabs {
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0.25rem;
        padding-bottom: 1px;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .ab-platform-tabs::-webkit-scrollbar {
        display: none;
    }
}

.ab-platform-tab {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0.65rem 0.95rem;
    margin-bottom: -1px;
    color: #6f7185;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    display: inline-block;
    flex-shrink: 0;
    white-space: nowrap;
}

.ab-platform-tab:hover:not(:disabled) {
    color: var(--ab-primary-dark);
}

.ab-platform-tab.is-active {
    color: var(--ab-primary);
    border-bottom-color: var(--ab-primary);
}

.ab-platform-tab:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ab-platform-topnav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem;
    padding: 1rem 0.75rem 1rem 1rem;
    border: 0;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.18);
}

.ab-platform-admin-shell .ab-topnav-brand {
    min-height: 2.5rem;
    pointer-events: none;
}

.ab-platform-admin-shell .ab-topnav-desktop-primary {
    justify-content: center;
}

.ab-topnav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    max-width: 14rem;
    justify-self: start;
    padding: 0.1rem 0.25rem 0.1rem 0.1rem;
    color: #111827;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.ab-topnav-brand:hover {
    color: #111827;
    text-decoration: none;
}

.ab-topnav-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    flex-shrink: 0;
    color: #111827;
}

.ab-topnav-brand-mark .ab-hero-icon {
    width: 2rem;
    height: 2rem;
}

.ab-topnav-brand img {
    display: block;
    height: 2.5rem;
    width: auto;
    max-width: 10rem;
    object-fit: contain;
    flex-shrink: 0;
}

.ab-topnav-brand-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.2rem;
}

.ab-mobile-nav-toggle,
.ab-mobile-nav-backdrop,
.ab-mobile-nav-panel {
    display: none;
}

.ab-topnav-desktop-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    min-width: 0;
    justify-self: center;
}

.ab-topnav-profile {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    min-width: 0;
}

.ab-topnav-platform-end {
    gap: 0.4rem;
}

.ab-platform-nav-icon {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.45rem;
    height: 2.45rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #e5e7eb;
    color: #111827;
    text-decoration: none;
    flex-shrink: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.ab-platform-nav-icon:hover {
    background: #d4d4d8;
    color: #111827;
    text-decoration: none;
}

.ab-platform-nav-icon-glyph {
    width: 1.35rem;
    height: 1.35rem;
}

.ab-topnav-desktop-primary .ab-profile-menu {
    margin-left: 0;
}

.ab-topnav-desktop-primary .ab-profile-panel {
    left: 0;
    right: auto;
}

.ab-mobile-nav-toggle {
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #ececee;
    color: #111827;
    cursor: pointer;
}

.ab-mobile-nav-toggle .ab-hero-icon {
    width: 1.35rem;
    height: 1.35rem;
}

.ab-mobile-nav-toggle:hover {
    background: #e0e0e4;
}

.ab-mobile-nav-panel {
    background: #fff;
    color: #173532;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
}

.ab-mobile-nav-link {
    display: block;
    padding: 0.85rem 1rem;
    color: #173532;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #e7efee;
}

.ab-mobile-nav-link.active {
    background: rgba(var(--ab-primary-rgb), 0.08);
    color: var(--ab-primary-dark);
}

.ab-mobile-nav-section {
    padding: 0.35rem 0;
    border-bottom: 1px solid #e7efee;
}

.ab-mobile-nav-section-title {
    padding: 0.65rem 1rem 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6f7185;
}

.ab-mobile-nav-item {
    appearance: none;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.ab-mobile-nav-item:hover {
    background: #f3f8f7;
}

.ab-mobile-nav-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: rgba(var(--ab-primary-rgb), 0.1);
    color: var(--ab-primary-dark);
    flex-shrink: 0;
}

.ab-mobile-nav-item-icon .ab-hero-icon {
    width: 1.1rem;
    height: 1.1rem;
}

.ab-mobile-nav-item-copy {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.ab-mobile-nav-item-copy strong {
    font-size: 0.95rem;
    color: #173532;
}

.ab-mobile-nav-item-copy span {
    font-size: 0.82rem;
    color: #6f7185;
    line-height: 1.35;
}

@media (max-width: 720px) {
    .ab-app-shell > .ab-platform-topnav {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.5rem;
        width: min(1400px, 100%);
        max-width: 100%;
        padding: 0.55rem 0.65rem;
        margin-right: 0;
        box-sizing: border-box;
    }

    .ab-app-shell .ab-mobile-nav-toggle {
        display: inline-flex;
        flex: 0 0 auto;
        width: 2.45rem;
        height: 2.45rem;
        border-radius: 999px;
        order: 1;
    }

    .ab-app-shell .ab-topnav-brand {
        display: inline-flex !important;
        flex: 1 1 auto;
        justify-content: center;
        align-items: center;
        max-width: none;
        min-width: 0;
        padding: 0;
        order: 2;
        pointer-events: none;
    }

    .ab-app-shell .ab-topnav-brand img,
    .ab-app-shell .ab-topnav-brand-mark {
        display: none;
    }

    .ab-app-shell .ab-topnav-brand-name {
        display: block;
        max-width: 100%;
        text-align: center;
        font-size: 1rem;
        font-weight: 700;
        color: #111827;
    }

    .ab-app-shell .ab-topnav-desktop-primary {
        display: none !important;
    }

    .ab-app-shell .ab-topnav-profile {
        display: flex !important;
        flex: 0 0 auto;
        order: 3;
        margin-left: 0;
        justify-self: unset;
    }

    .ab-app-shell .ab-mobile-nav-backdrop,
    .ab-app-shell .ab-mobile-nav-panel {
        order: 4;
    }

    .ab-mobile-nav-panel {
        display: block;
        pointer-events: none;
    }

    .ab-mobile-nav-panel.is-open {
        pointer-events: auto;
    }

    .ab-mobile-nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1200;
        border: 0;
        padding: 0;
        background: rgba(15, 23, 42, 0.42);
        cursor: pointer;
    }

    .ab-mobile-nav-panel {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1210;
        width: min(20rem, 88vw);
        overflow-y: auto;
        transform: translateX(-105%);
        transition: transform 0.22s ease;
        padding-top: 0.35rem;
    }

    .ab-mobile-nav-panel.is-open {
        transform: translateX(0);
    }

    .ab-mobile-nav-brand {
        border-bottom: 1px solid #e7efee;
    }

    .ab-mobile-nav-brand .ab-mobile-nav-item-icon {
        overflow: hidden;
        background: #fff;
        border: 1px solid #e7efee;
    }

    .ab-mobile-nav-brand .ab-mobile-nav-item-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .ab-platform-admin-shell > .ab-platform-topnav {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.5rem;
        width: min(1400px, 100%);
        max-width: 100%;
        padding: 0.55rem 0.65rem;
        box-sizing: border-box;
    }

    .ab-platform-admin-shell .ab-mobile-nav-toggle {
        display: inline-flex;
        flex: 0 0 auto;
        width: 2.45rem;
        height: 2.45rem;
        border-radius: 999px;
        order: 1;
    }

    .ab-platform-admin-shell .ab-topnav-brand {
        display: inline-flex !important;
        flex: 1 1 auto;
        justify-content: center;
        align-items: center;
        max-width: none;
        min-width: 0;
        padding: 0;
        order: 2;
        pointer-events: none;
    }

    .ab-platform-admin-shell .ab-topnav-desktop-primary {
        display: none !important;
    }

    .ab-platform-admin-shell .ab-topnav-profile {
        display: flex !important;
        flex: 0 0 auto;
        order: 3;
        margin-left: 0;
        justify-self: unset;
    }

    .ab-platform-admin-shell .ab-mobile-nav-backdrop,
    .ab-platform-admin-shell .ab-mobile-nav-panel {
        order: 4;
    }

    .ab-platform-shell {
        padding-top: 1.25rem;
        gap: 1rem;
    }

    .ab-shell {
        padding: 0.75rem;
    }

    .ab-platform-card {
        padding: 1.25rem 1rem;
    }

    .ab-platform-tab {
        padding: 0.55rem 0.75rem;
        font-size: 0.92rem;
    }

    .ab-absence-subnav-link {
        padding: 0.35rem 0.65rem;
        font-size: 0.92rem;
    }
}

.ab-platform-nav-link,
.ab-platform-nav-button {
    appearance: none;
    border: 0;
    background: #e8e8ea;
    color: #1f2937;
    font-family: var(--ab-font, "Montserrat", sans-serif);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.55rem 1.05rem;
    border-radius: 999px;
    cursor: pointer;
    text-shadow: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.ab-platform-nav-link:hover,
.ab-platform-nav-button:hover {
    background: #dedee2;
    color: #111827;
    opacity: 1;
}

.ab-platform-nav-link.active {
    background: #1f2937;
    color: #fff;
    text-decoration: none;
    opacity: 1;
}

.ab-platform-nav-link.active:hover {
    background: #111827;
    color: #fff;
    opacity: 1;
}

.ab-profile-menu {
    position: relative;
    margin-left: 0;
}

.ab-profile-trigger {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 0;
    background: #e8e8ea;
    color: #1f2937;
    font-family: var(--ab-font, "Montserrat", sans-serif);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.55rem 1.05rem;
    border-radius: 999px;
    cursor: pointer;
    opacity: 1;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.ab-profile-trigger:hover {
    background: #dedee2;
    color: #111827;
    opacity: 1;
}

.ab-profile-trigger.active,
.ab-platform-topnav .ab-profile-menu.is-active > .ab-profile-trigger,
.ab-platform-topnav .ab-profile-menu.is-open > .ab-profile-trigger {
    background: #1f2937;
    color: #fff;
    opacity: 1;
}

.ab-profile-trigger-icon {
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
}

.ab-topnav-profile .ab-profile-trigger {
    justify-content: center;
    width: 2.45rem;
    height: 2.45rem;
    padding: 0;
    background: #e5e7eb;
    color: #111827;
}

.ab-topnav-profile .ab-profile-trigger:hover,
.ab-topnav-profile .ab-profile-menu.is-open > .ab-profile-trigger,
.ab-topnav-profile .ab-profile-trigger.active,
.ab-topnav-profile .ab-profile-menu.is-active > .ab-profile-trigger {
    background: #d4d4d8;
    color: #111827;
}

.ab-topnav-profile .ab-profile-trigger-label {
    display: none;
}

.ab-topnav-profile .ab-profile-trigger-icon {
    width: 1.45rem;
    height: 1.45rem;
}

.ab-topnav-profile .ab-profile-panel {
    right: 0;
    left: auto;
}

.ab-profile-panel {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(2, minmax(14rem, 1fr));
    gap: 0.2rem;
    min-width: min(34rem, calc(100vw - 2rem));
    padding: 0.55rem;
    border-radius: 1.35rem;
    background: #fff;
    box-shadow: 0 18px 48px rgba(25, 26, 43, 0.16);
    color: #191a2b;
}

.ab-profile-panel--compact {
    grid-template-columns: 1fr;
    min-width: min(20rem, calc(100vw - 2rem));
}

.ab-profile-panel--betrieb {
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
    grid-template-columns: unset;
    min-width: min(36rem, calc(100vw - 2rem));
    padding: 0.85rem 0.65rem 0.75rem;
}

.ab-nav-section {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.ab-nav-section-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    padding: 0.2rem 0.55rem 0.15rem 0.7rem;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ab-primary-dark, #0e7f7b);
    line-height: 1.2;
}

.ab-nav-section-title::before {
    content: "";
    flex: 0 0 auto;
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 0.2rem;
    rotate: 45deg;
    background: linear-gradient(
        145deg,
        var(--ab-primary, #13A19C) 0%,
        var(--ab-primary-dark, #0e7f7b) 100%);
    box-shadow:
        0 0 0 3px rgba(var(--ab-primary-rgb, 19, 161, 156), 0.14),
        0 4px 10px rgba(var(--ab-primary-rgb, 19, 161, 156), 0.28);
}

.ab-nav-section-title::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    min-width: 1.5rem;
    background: linear-gradient(
        90deg,
        rgba(var(--ab-primary-rgb, 19, 161, 156), 0.35) 0%,
        rgba(25, 26, 43, 0.06) 55%,
        transparent 100%);
}

.ab-nav-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.15rem;
}

.ab-nav-section-grid.is-single {
    grid-template-columns: 1fr;
}

.ab-nav-section-grid.is-single .ab-profile-item,
.ab-nav-section-grid:not(.is-single) .ab-profile-item {
    grid-template-columns: auto 1fr;
    gap: 0.7rem;
    padding: 0.8rem 0.85rem;
}

@media (max-width: 720px) {
    .ab-profile-panel--betrieb {
        min-width: min(22rem, calc(100vw - 2rem));
    }

    .ab-nav-section-grid {
        grid-template-columns: 1fr;
    }
}

.ab-profile-item {
    appearance: none;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    margin: 0;
    padding: 0.9rem 0.95rem;
    border: 0;
    border-radius: 1rem;
    background: transparent;
    color: inherit;
    text-align: left;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.ab-profile-item:hover {
    background: #f4f4f6;
    color: inherit;
    text-decoration: none;
}

.ab-profile-item-icon {
    display: inline-flex;
    width: 1.35rem;
    height: 1.35rem;
    color: #191a2b;
}

.ab-profile-item-icon svg {
    width: 100%;
    height: 100%;
}

.ab-profile-item-copy {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.ab-profile-item-copy strong {
    font-size: 0.98rem;
    font-weight: 700;
    color: #191a2b;
}

.ab-profile-item-copy span {
    font-size: 0.82rem;
    font-weight: 500;
    color: #8b889c;
    line-height: 1.35;
}

.ab-profile-item-arrow {
    display: inline-flex;
    width: 1rem;
    height: 1rem;
    opacity: 0;
    transform: translate(-0.15rem, 0.1rem);
    font-size: 0.95rem;
    color: #191a2b;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.ab-profile-item-arrow svg {
    width: 100%;
    height: 100%;
}

.ab-profile-item:hover .ab-profile-item-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

@media (max-width: 720px) {
    .ab-profile-panel {
        grid-template-columns: 1fr;
        min-width: min(22rem, calc(100vw - 2rem));
    }

    .ab-topnav-profile .ab-profile-trigger {
        justify-content: center;
        width: 2.45rem;
        height: 2.45rem;
        padding: 0;
        border-radius: 999px;
        background: #e5e7eb;
        color: #111827;
        opacity: 1;
    }

    .ab-topnav-profile .ab-profile-trigger:hover,
    .ab-topnav-profile .ab-profile-menu.is-open > .ab-profile-trigger,
    .ab-topnav-profile .ab-profile-trigger.active {
        background: #d4d4d8;
        color: #111827;
        opacity: 1;
    }

    .ab-topnav-profile .ab-profile-trigger-label {
        display: none;
    }

    .ab-topnav-profile .ab-profile-trigger-icon {
        width: 1.35rem;
        height: 1.35rem;
    }
}

.ab-platform-color-field {
    display: grid;
    gap: 0.35rem;
}

.ab-platform-color-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.ab-color-input {
    width: 3rem;
    height: 2.6rem;
    padding: 0.2rem;
    border: 1px solid #d0dfde;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.ab-color-hex {
    max-width: 8.5rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ab-platform-toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    align-items: end;
    margin-bottom: 1rem;
}

.ab-platform-create {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #dce8e7;
}

.ab-config-groups {
    display: grid;
    gap: 1.15rem;
}

.ab-config-group-title {
    margin: 0 0 0.45rem;
    font-size: 0.95rem;
    font-weight: 650;
    color: #173532;
}

.ab-tenant-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.ab-tenant-item {
    display: block;
    padding: 0;
    border: 1px solid #d7e5e4;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.ab-tenant-select {
    display: grid;
    grid-template-columns: minmax(7.5rem, 1fr) auto minmax(7.5rem, 1fr);
    align-items: center;
    column-gap: 1rem;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0.85rem 1rem;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.ab-tenant-select:hover {
    background: #eef8f7;
}

.ab-tenant-side {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.ab-tenant-side-start {
    justify-content: flex-start;
}

.ab-tenant-side-end {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.ab-tenant-logo-preview {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 8px;
    border: 1px solid #d7e5e4;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ab-tenant-logo-preview.is-empty {
    border-style: dashed;
    background: transparent;
}

.ab-tenant-logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ab-tenant-main {
    display: grid;
    gap: 0.15rem;
    justify-items: center;
    text-align: center;
    min-width: 0;
}

.ab-tenant-name {
    color: #191a2b;
    font-size: 0.95rem;
}

.ab-tenant-slug {
    color: #8b889c;
    font-size: 0.8rem;
}

.ab-tenant-domain {
    color: #6f7185;
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 12rem;
}

.ab-tenant-logo-preview-lg {
    width: 8rem;
    height: 8rem;
    border-radius: 12px;
}

.ab-auth-right-preview {
    position: relative;
    width: 6rem;
    height: 6rem;
    border-radius: 10px;
}

.ab-auth-right-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ab-auth-right-preview.is-logo img {
    object-fit: contain;
    padding: 0.35rem;
}

.ab-auth-right-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ab-auth-right-preview-item {
    display: block;
}

.ab-auth-right-remove {
    position: absolute;
    top: 0.3rem;
    right: 0.3rem;
    z-index: 1;
    width: 1.7rem;
    height: 1.7rem;
    border: 0;
    border-radius: 50%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, 0.72);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, background-color 0.15s ease;
}

.ab-auth-right-remove-icon {
    position: relative;
    display: block;
    width: 0.72rem;
    height: 0.72rem;
}

.ab-auth-right-remove-icon::before,
.ab-auth-right-remove-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
}

.ab-auth-right-remove-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.ab-auth-right-preview:hover .ab-auth-right-remove,
.ab-auth-right-preview:focus-within .ab-auth-right-remove {
    opacity: 1;
    pointer-events: auto;
}

.ab-auth-right-remove:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.ab-auth-right-remove:hover:not(:disabled) {
    background: rgba(185, 28, 28, 0.92);
}

.ab-platform-logo-edit {
    display: grid;
    gap: 0.55rem;
    margin: 0.5rem 0 1rem;
    justify-items: start;
}

.ab-platform-branding-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
    align-items: start;
    margin: 0.5rem 0 1rem;
}

.ab-platform-branding-row .ab-platform-logo-edit {
    margin: 0;
}

@media (max-width: 720px) {
    .ab-platform-branding-row {
        grid-template-columns: 1fr;
    }
}

.ab-file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    font-family: var(--ab-font, "Montserrat", sans-serif);
    font-size: 0.85rem;
}

.ab-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    font-size: 0;
}

.ab-tenant-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ab-tenant-badge.is-active {
    background: rgba(var(--ab-primary-rgb), 0.14);
    color: var(--ab-primary-dark);
}

.ab-tenant-badge.is-inactive {
    background: #f3f1f5;
    color: #8b889c;
}

.ab-platform-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
    color: #6f7185;
    font-size: 0.85rem;
}

.ab-platform-users {
    display: grid;
    gap: 1rem;
}

.ab-platform-section-title {
    margin: 0;
    font-size: 1.15rem;
    color: #2a2d46;
}

.ab-role-checks {
    display: grid;
    gap: 0.45rem;
}

.ab-role-checks:has(.ab-role-card) {
    gap: 0.55rem;
}

.ab-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #2a2d46;
    font-size: 0.95rem;
}

.ab-role-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid #d0dfde;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    color: #2a2d46;
}

.ab-role-card:hover {
    background: rgba(19, 161, 156, 0.06);
}

.ab-role-card:has(input:checked) {
    border-color: rgba(var(--ab-primary-rgb), 0.45);
    background: rgba(var(--ab-primary-rgb), 0.08);
}

.ab-role-card input {
    flex-shrink: 0;
}

.ab-role-card-body {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.ab-role-card-title {
    font-size: 0.95rem;
}

.ab-role-card-desc {
    color: #6f7185;
    font-size: 0.85rem;
    line-height: 1.35;
}

.ab-account-badge {
    display: inline-block;
    margin-left: 0.45rem;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    background: rgba(var(--ab-primary-rgb), 0.12);
    color: var(--ab-primary-dark);
    font-size: 0.75rem;
    font-weight: 600;
    vertical-align: middle;
}

.ab-account-badge.is-warn {
    background: rgba(196, 130, 28, 0.14);
    color: #9a6510;
}

.ab-account-list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.ab-account-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.85rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border: 1px solid #d0dfde;
    border-radius: 12px;
    background: #fff;
}

.ab-account-item-body {
    grid-column: 1 / -1;
    display: grid;
    gap: 0.65rem;
}

.ab-account-item-main {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.ab-account-item-main strong {
    color: #191a2b;
    font-size: 0.98rem;
}

.ab-account-item-main span {
    color: #6f7185;
    font-size: 0.84rem;
}

.ab-account-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}

.ab-account-link-row {
    display: grid;
    gap: 0.55rem;
    margin-top: 1rem;
}

@media (max-width: 720px) {
    .ab-account-item {
        grid-template-columns: 1fr;
    }

    .ab-account-item-actions {
        justify-content: flex-start;
    }
}

.ab-user-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.ab-user-item {
    border: 1px solid #d0dfde;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.ab-user-select {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    align-items: center;
    border: 0;
    background: transparent;
    padding: 0.85rem 1rem;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.ab-user-select:hover {
    background: rgba(19, 161, 156, 0.06);
}

.ab-user-main {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.ab-user-roles {
    font-size: 0.82rem;
    color: #5c5a72;
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ab-invite-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem 1rem;
}

.ab-invite-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem 0.75rem;
}

.ab-invite-expiry {
    font-size: 0.78rem;
    color: #8b889c;
    white-space: nowrap;
}

.ab-invite-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.ab-tenant-badge.is-invite-pending {
    background: rgba(var(--ab-primary-rgb), 0.14);
    color: var(--ab-primary-dark);
}

.ab-tenant-badge.is-invite-expired {
    background: rgba(196, 92, 58, 0.12);
    color: #9a3f22;
}

@media (max-width: 720px) {
    .ab-platform-toolbar {
        grid-template-columns: 1fr;
    }

    .ab-tenant-select {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        row-gap: 0.65rem;
    }

    .ab-tenant-main {
        justify-items: start;
        text-align: left;
    }

    .ab-tenant-side-end {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .ab-invite-row {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .ab-invite-meta {
        justify-content: flex-start;
        width: 100%;
    }
}

.ab-audit-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
    max-width: 100%;
    border: 1px solid #d0dfde;
    border-radius: 12px;
    background: #fff;
}

.ab-audit-table {
    width: 100%;
    min-width: 52rem;
    font-size: 0.84rem;
    /* separate + spacing 0: required for sticky action columns (collapse breaks sticky) */
    border-collapse: separate;
    border-spacing: 0;
}

.ab-audit-table th,
.ab-audit-table td {
    padding: 0.65rem 0.75rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #e4eceb;
}

.ab-audit-table th.ab-table-actions,
.ab-audit-table td.ab-table-actions,
.ab-audit-table th.ab-platform-actions,
.ab-audit-table td.ab-platform-actions,
.ab-audit-table th.ab-dynamic-grid-actions-col,
.ab-audit-table td.ab-dynamic-grid-actions-col {
    position: sticky;
    right: 0;
    z-index: 3;
    width: 1%;
    min-width: 3.5rem;
    white-space: nowrap;
    text-align: right;
    vertical-align: middle;
    background-color: #fff;
    background-clip: padding-box;
    box-shadow: -6px 0 10px -8px rgba(12, 14, 24, 0.22);
}

.ab-audit-table th.ab-table-actions,
.ab-audit-table th.ab-platform-actions,
.ab-audit-table th.ab-dynamic-grid-actions-col {
    z-index: 5;
    background-color: #f7fbfb;
}

.ab-audit-table.ab-dynamic-grid-table td.ab-dynamic-grid-actions-col {
    max-width: none;
    overflow: visible;
    padding-right: 0.5rem;
}

.ab-table-action-group,
.ab-audit-table td.ab-table-actions .ab-designer-row-actions,
.ab-audit-table td.ab-platform-actions .ab-designer-row-actions {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
}

.ab-table-action-group .ab-btn,
.ab-audit-table td.ab-table-actions .ab-btn,
.ab-audit-table td.ab-platform-actions .ab-btn {
    display: inline-flex;
    width: auto !important;
    min-width: 0;
    flex: 0 0 auto;
    white-space: nowrap;
}

.ab-audit-table th {
    color: #6f7185;
    font-weight: 600;
    font-size: 0.76rem;
    white-space: nowrap;
    background: #f7fbfb;
}

.ab-audit-table tbody tr:last-child td {
    border-bottom: 0;
}

.ab-audit-table td {
    color: #2a2d46;
}

.ab-dynamic-grid {
    min-width: 0;
    max-width: 100%;
}

.ab-dynamic-grid-search {
    flex: 1 1 auto;
    min-width: 16rem;
}

.ab-dynamic-grid-search-row {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-width: 0;
}

.ab-grid-filter-btn.is-active {
    color: #1f4f4a;
    background: rgba(31, 79, 74, 0.08);
}

.ab-grid-filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(42, 45, 70, 0.12);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.65);
}

.ab-grid-filter-range {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.75rem;
    min-width: min(100%, 22rem);
}

.ab-grid-filter-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: min(100%, 14rem);
}

.ab-grid-filter-checklist .ab-check {
    margin: 0;
}

.ab-grid-filter-actions {
    flex: 1 1 100%;
    display: flex;
    justify-content: flex-end;
}

.ab-grid-designer-filter-warning {
    flex: 1 1 100%;
    margin: 0;
}

.ab-dynamic-grid-search .ab-input {
    width: 100%;
}

.ab-dynamic-grid .ab-audit-table-wrap {
    width: 100%;
    max-width: 100%;
    max-height: min(28rem, 55vh);
    overflow: auto;
    box-sizing: border-box;
}

.ab-audit-table.ab-dynamic-grid-table {
    width: max-content;
    min-width: 100%;
    max-width: none;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0;
}

.ab-dynamic-grid-table th,
.ab-dynamic-grid-table td {
    white-space: nowrap;
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.ab-dynamic-grid-table tbody td {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.ab-grid-sort-btn {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font: inherit;
    font-weight: 600;
    font-size: inherit;
    color: inherit;
    cursor: pointer;
    max-width: 100%;
}

.ab-grid-sort-btn:hover:not(:disabled),
.ab-grid-sort-btn.is-active {
    color: #1f4f4a;
}

.ab-grid-sort-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.ab-grid-sort-indicator {
    font-size: 0.7rem;
    line-height: 1;
}

.ab-dynamic-tab .ab-dynamic-grid .ab-audit-table-wrap {
    max-height: min(22rem, 45vh);
}

.ab-dynamic-form,
.ab-dynamic-tab {
    min-width: 0;
    max-width: 100%;
}

.ab-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.15rem;
}

.ab-grid-contact-cell,
.ab-grid-email-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    max-width: 100%;
    min-width: 0;
}

.ab-grid-contact-text,
.ab-grid-email-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

a.ab-grid-contact-link,
a.ab-grid-mailto {
    flex: 0 0 auto;
    text-decoration: none;
    color: #5a5d72;
}

a.ab-grid-contact-link:hover,
a.ab-grid-mailto:hover {
    background: #eef5f4;
    color: #1f4f4a;
}

.ab-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #5a5d72;
    cursor: pointer;
}

.ab-icon-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.ab-hero-icon {
    display: block;
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
}

.ab-icon-btn:hover:not(:disabled) {
    background: #eef5f4;
    color: #1f4f4a;
}

.ab-icon-btn.is-active {
    background: #eef5f4;
    color: #1f4f4a;
}

.ab-icon-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ab-icon-btn-danger {
    color: #9a4a4a;
}

.ab-icon-btn-danger:hover:not(:disabled) {
    background: #fdeeee;
    color: #b42318;
}

.ab-icon-btn-success {
    color: #2f6b4f;
}

.ab-icon-btn-success:hover:not(:disabled) {
    background: #e8f6ee;
    color: #1b7a45;
}

.ab-icon-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(2.35rem, 1fr));
    gap: 0.35rem;
    max-width: 28rem;
}

.ab-icon-picker-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border: 1px solid #dce8e7;
    border-radius: 8px;
    background: #fff;
    color: #3d4a48;
    cursor: pointer;
}

.ab-icon-picker-btn svg {
    width: 1.15rem;
    height: 1.15rem;
}

.ab-icon-picker-btn:hover {
    background: #eef5f4;
    color: #1f4f4a;
}

.ab-icon-picker-btn.is-selected {
    border-color: #1f4f4a;
    background: #e7f1ef;
    color: #173532;
}

.ab-type-nav-icon {
    display: inline-flex;
    width: 1.25rem;
    height: 1.25rem;
    color: #3d4a48;
}

.ab-type-nav-icon svg {
    width: 100%;
    height: 100%;
}

.ab-audit-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
    color: #5c5a72;
}

.ab-dynamic-form {
    display: grid;
    gap: 0;
}

.ab-dynamic-form.is-readonly-display {
    gap: 0;
}

.ab-dynamic-form.is-readonly-display + .ab-dynamic-form.is-readonly-display,
.ab-dynamic-form.is-readonly-display.ab-employment-working-days-view {
    margin-top: 1.25rem;
}

.ab-dynamic-tab {
    display: grid;
    gap: 1.75rem;
}

.ab-dynamic-form.is-readonly-display .ab-dynamic-tab {
    gap: 1.25rem;
}

.ab-dynamic-tab > .ab-auth-heading.page-subtitle,
.ab-dynamic-tab > .page-subtitle {
    margin: 0 0 0.25rem;
    text-align: left;
}

.ab-dynamic-form > .ab-platform-tabs {
    margin-top: 0.25rem;
}

.ab-dynamic-section {
    display: grid;
    gap: 0.85rem;
    padding: 0.35rem 0 1.35rem;
}

.ab-dynamic-section.is-readonly-display {
    gap: 0.65rem;
    padding: 1rem 1.15rem 1.15rem;
    border: 1px solid color-mix(in srgb, var(--ab-primary, #13A19C) 14%, #d8e4e3);
    border-radius: 14px;
    background: #fff;
}

.ab-dynamic-section.is-readonly-display + .ab-dynamic-section.is-readonly-display {
    margin-top: 0.15rem;
}

/* Author display:grid would otherwise override the UA [hidden] rule. */
.ab-dynamic-section[hidden],
.ab-dynamic-field[hidden] {
    display: none !important;
}

.ab-dynamic-section:first-of-type {
    padding-top: 0;
}

.ab-dynamic-section.is-readonly-display:first-of-type {
    padding-top: 1rem;
}

.ab-dynamic-section > .ab-dynamic-section-title,
.ab-employment-vacation-header > .ab-dynamic-section-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #191a2b;
    line-height: 1.3;
}

.ab-employment-vacation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ab-dynamic-section.is-readonly-display > .ab-dynamic-section-title,
.ab-dynamic-section.is-readonly-display > .ab-employment-vacation-header > .ab-dynamic-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--ab-primary, #13A19C) 72%, #5c5a72);
    padding-bottom: 0.55rem;
    border-bottom: 1px solid color-mix(in srgb, var(--ab-primary, #13A19C) 16%, #e4eceb);
    margin-bottom: 0.15rem;
}

.ab-dynamic-form .ab-grid {
    display: grid;
    gap: 1rem 1.25rem;
    align-items: start;
}

.ab-dynamic-form .ab-readonly-grid {
    gap: 0.95rem 1.75rem;
}

.ab-readonly-field {
    min-width: 0;
    display: grid;
    gap: 0.28rem;
}

.ab-readonly-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #6b6980;
    line-height: 1.25;
}

.ab-readonly-value-row {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 100%;
    min-width: 0;
}

.ab-readonly-value {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 1.02rem;
    font-weight: 550;
    color: #191a2b;
    line-height: 1.45;
    word-break: break-word;
}

.ab-readonly-value.is-multiline {
    white-space: pre-wrap;
    font-weight: 500;
    display: block;
    width: 100%;
}

.ab-readonly-value.is-link {
    color: var(--ab-primary, #13A19C);
    text-decoration: none;
    font-weight: 600;
}

.ab-readonly-value.is-link:hover {
    text-decoration: underline;
}

.ab-readonly-field.is-empty .ab-readonly-value {
    color: #9a97ad;
    font-weight: 500;
}

a.ab-readonly-action {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #5a5d72;
    text-decoration: none;
    line-height: 0;
    cursor: pointer;
}

a.ab-readonly-action:hover {
    background: #eef5f4;
    color: #1f4f4a;
}

a.ab-readonly-action svg,
a.ab-readonly-action .ab-hero-icon {
    width: 1.15rem;
    height: 1.15rem;
}

.ab-field-with-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 0.35rem;
}

.ab-field-with-action > :first-child {
    min-width: 0;
}

a.ab-field-contact,
span.ab-field-contact,
a.ab-field-mailto,
span.ab-field-mailto {
    /* Align with the input row under the label, then center vertically on the input height. */
    margin-top: calc(0.87rem + 0.35rem);
    margin-bottom: 0;
    height: calc(1.36rem + 1.25em);
    width: 2rem;
    padding: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

a.ab-field-contact:hover,
a.ab-field-mailto:hover {
    background: #eef5f4;
    color: #1f4f4a;
}

span.ab-field-contact.is-disabled,
span.ab-field-mailto.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.ab-dynamic-form .ab-grid-1 {
    grid-template-columns: 1fr;
}

.ab-dynamic-form .ab-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 720px) {
    .ab-dynamic-form .ab-grid-2 {
        grid-template-columns: 1fr;
    }
}

.ab-form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.ab-form-actions .ab-btn {
    width: auto;
    min-width: 8.5rem;
}

.ab-module-ui-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    min-width: 0;
    max-width: 100%;
}

.ab-module-ui-designer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    min-width: 0;
    max-width: 100%;
}

.ab-module-ui-designer .ab-platform-toolbar {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    align-items: end;
}

.ab-module-ui-designer .ab-platform-toolbar .ab-btn {
    width: auto;
    min-width: 0;
    justify-self: start;
}

.ab-designer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
}

.ab-designer-row > * {
    flex: 1 1 10rem;
    min-width: 8rem;
}

.ab-designer-row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    flex: 0 0 auto;
}

.ab-designer-row-actions .ab-btn {
    width: auto;
    min-width: 0;
}

.ab-designer-section {
    display: grid;
    gap: 0.75rem;
    padding: 0.75rem 0 1.25rem;
    border-bottom: 1px solid rgba(42, 45, 70, 0.08);
}

.ab-designer-field-row {
    align-items: center;
}

.ab-designer-field-block {
    display: grid;
    gap: 0.5rem;
}

.ab-designer-visible-when {
    display: grid;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(42, 45, 70, 0.1);
    border-radius: 8px;
    background: rgba(42, 45, 70, 0.02);
}

.ab-designer-condition-row {
    align-items: flex-end;
}

.ab-designer-field-label {
    flex: 0 1 12rem;
    font-weight: 600;
    color: #191a2b;
}

.ab-designer-add-tab {
    width: auto;
    min-width: 0;
    align-self: center;
}

.ab-designer-panel {
    display: grid;
    gap: 1rem;
}

.ab-files {
    min-width: 0;
}

.ab-files-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.ab-files-views,
.ab-files-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ab-files-actions .ab-files-capture {
    display: none;
}

@media (any-pointer: coarse) {
    .ab-files-actions .ab-files-capture {
        display: inline-flex;
    }
}

.ab-files-table-wrap {
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ab-files-table-wrap:has(.ab-files-row-menu.is-open) {
    overflow: visible;
}

.ab-files-row-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.15rem;
    justify-content: flex-end;
    align-items: center;
}

.ab-files-row-actions > .ab-icon-btn {
    flex-shrink: 0;
    line-height: 0;
}

.ab-files-row-menu {
    position: relative;
    flex-shrink: 0;
}

.ab-files-row-menu > .ab-icon-btn {
    line-height: 0;
}

.ab-files-row-menu-list {
    position: absolute;
    right: 0;
    top: calc(100% + 0.25rem);
    z-index: 30;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    width: max-content;
    min-width: 10.5rem;
    white-space: nowrap;
    line-height: 1.35;
    background: #fff;
    border: 1px solid #d7e5e4;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(19, 161, 156, 0.16);
}

.ab-files-row-menu-item {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    color: #3d3f58;
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
}

.ab-files-row-menu-item:hover {
    background: #eef5f4;
}

.ab-files-row-menu-item.is-danger {
    color: #b42318;
}

.ab-files-row-menu-item.is-danger:hover {
    background: #fdeeee;
}

.ab-files-table {
    width: max(100%, 48rem);
    min-width: 48rem;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
}

.ab-files-table th,
.ab-files-table td {
    text-align: left;
    padding: 0.55rem 0.6rem;
    border-bottom: 1px solid rgba(25, 26, 43, 0.08);
    vertical-align: middle;
}

.ab-files-table th:not(.ab-files-col-name):not(.ab-files-col-actions),
.ab-files-table td:not(.ab-files-col-name):not(.ab-files-col-actions) {
    white-space: nowrap;
}

.ab-files-col-name {
    min-width: 12rem;
    overflow-wrap: anywhere;
}

.ab-files-col-actions {
    position: sticky;
    right: 0;
    z-index: 3;
    width: 1%;
    min-width: 10rem;
    white-space: nowrap;
    vertical-align: middle;
    overflow: visible;
    background: #fff;
    box-shadow: -2px 0 12px -8px rgba(12, 14, 24, 0.18);
}

.ab-files-col-actions:has(.ab-files-row-menu.is-open) {
    z-index: 20;
}

.ab-files-name {
    font-weight: 600;
}

.ab-files-description {
    margin-top: 0.15rem;
    color: #6f7185;
    font-size: 0.82rem;
    line-height: 1.35;
}

.ab-files-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: 0.75rem;
}

.ab-files-card {
    position: relative;
    display: grid;
    gap: 0.4rem;
    padding: 0;
    border: 1px solid rgba(25, 26, 43, 0.12);
    border-radius: 0.75rem;
    background: #fff;
    overflow: visible;
    text-align: left;
    font: inherit;
    color: inherit;
}

.ab-files-card:has(.ab-files-row-menu.is-open) {
    z-index: 6;
}

.ab-files-card-media {
    overflow: hidden;
    border-radius: 0.75rem 0.75rem 0 0;
}

.ab-files-card-preview {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.ab-files-card-media img,
.ab-files-card-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: rgba(25, 26, 43, 0.06);
    display: block;
}

.ab-files-card-actions {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    z-index: 4;
    display: flex;
    gap: 0.3rem;
}

.ab-files-card-menu {
    position: relative;
}

.ab-files-card-actions > .ab-icon-btn,
.ab-files-card-menu > .ab-icon-btn {
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border-radius: 999px;
}

.ab-files-card-actions > .ab-icon-btn:hover,
.ab-files-card-actions > .ab-icon-btn:focus-visible,
.ab-files-card-menu > .ab-icon-btn:hover,
.ab-files-card-menu > .ab-icon-btn:focus-visible,
.ab-files-card-menu.is-open > .ab-icon-btn {
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
}

.ab-files-card .ab-files-card-placeholder {
    display: grid;
    place-items: center;
    padding: 0;
    text-transform: uppercase;
    font-size: 1.5rem;
    font-weight: 700;
}

.ab-files-card-name {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.3rem 0.6rem;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: left;
    color: inherit;
}

button.ab-files-card-name {
    cursor: pointer;
}

.ab-files-card-desc-wrap {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0 0.6rem 0.6rem;
    border: 0;
    background: transparent;
    cursor: default;
    text-align: left;
    font: inherit;
    color: inherit;
}

.ab-files-card-desc-wrap.is-clamped {
    cursor: pointer;
}

.ab-files-card-desc-wrap.is-open {
    z-index: 12;
}

.ab-files-card-desc-trigger {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
}

.ab-files-card-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-height: calc(1em * 1.35 * 3);
    font-size: 0.82rem;
    color: #6f7185;
    line-height: 1.35;
}

.ab-files-card-tip-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    cursor: default;
}

.ab-files-card-tip {
    position: absolute;
    left: 0.4rem;
    right: 0.4rem;
    bottom: calc(100% + 0.2rem);
    z-index: 1;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    background: rgba(25, 26, 43, 0.94);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.45;
    box-shadow: 0 14px 32px rgba(12, 14, 24, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    pointer-events: auto;
    user-select: text;
    -webkit-user-select: text;
    cursor: text;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.ab-files-card-desc-wrap.is-open .ab-files-card-tip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ab-files-card-name:last-child {
    padding-bottom: 0.6rem;
}

.ab-files-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(12, 14, 24, 0.72);
    display: grid;
    place-items: center;
    z-index: 40;
    padding: 1.5rem;
}

.ab-files-lightbox:focus,
.ab-files-lightbox:focus-visible {
    outline: none;
}

.ab-files-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    cursor: pointer;
}

.ab-files-lightbox-close svg {
    width: 1.05rem;
    height: 1.05rem;
    display: block;
}

.ab-files-lightbox-close:hover,
.ab-files-lightbox-close:focus-visible {
    background: rgba(0, 0, 0, 0.62);
}

.ab-files-lightbox-stage {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
    align-items: center;
    gap: 0.75rem;
    width: min(100%, 80rem);
}

.ab-files-lightbox-nav {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    cursor: pointer;
}

.ab-files-lightbox-nav svg {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
}

.ab-files-lightbox-nav:hover,
.ab-files-lightbox-nav:focus-visible {
    background: rgba(0, 0, 0, 0.62);
}

.ab-files-lightbox-inner {
    display: grid;
    gap: 0.75rem;
    justify-items: center;
    min-width: 0;
    width: 100%;
}

.ab-files-lightbox-inner img {
    max-width: 100%;
    max-height: min(88vh, 100%);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.ab-files-lightbox-caption {
    display: grid;
    gap: 0.2rem;
    max-width: 100%;
    color: #fff;
    text-align: center;
}

.ab-files-lightbox-caption strong {
    font-size: 0.95rem;
}

.ab-files-lightbox-caption span {
    font-size: 0.85rem;
    opacity: 0.88;
    line-height: 1.35;
}

.ab-files-dialog {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: rgba(12, 14, 24, 0.72);
}

.ab-files-dialog-card {
    display: grid;
    gap: 0.85rem;
    width: min(100%, 28rem);
    padding: 1.25rem 1.35rem 1.15rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 18px 40px rgba(12, 14, 24, 0.28);
}

.ab-files-dialog-card h2 {
    margin: 0;
    font-size: 1.05rem;
}

.ab-files-dialog-card p {
    margin: 0;
    color: #6f7185;
    font-size: 0.9rem;
    line-height: 1.45;
}

.ab-files-dialog-file {
    padding: 0.7rem 0.85rem;
    border-radius: 0.7rem;
    background: #f4f6f8;
    color: #191a2b;
    font-size: 0.92rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.ab-files-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.ab-dialog {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(12, 14, 24, 0.72);
    overflow-y: auto;
}

.ab-dialog-card {
    display: flex;
    flex-direction: column;
    width: min(100%, 28rem);
    max-height: min(calc(100vh - 2rem), 40rem);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 18px 40px rgba(12, 14, 24, 0.28);
    overflow: hidden;
}

.ab-dialog-scroll {
    display: grid;
    gap: 0.85rem;
    min-height: 0;
    padding: 1.25rem 1.35rem 1.15rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #c8cad4 transparent;
}

.ab-dialog-scroll::-webkit-scrollbar {
    width: 0.45rem;
}

.ab-dialog-scroll::-webkit-scrollbar-track {
    margin-block: 0.65rem;
    border-radius: 999px;
    background: transparent;
}

.ab-dialog-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #c8cad4;
}

.ab-dialog-scroll::-webkit-scrollbar-thumb:hover {
    background: #a8aab8;
}

.ab-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.ab-dialog-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
}

.ab-dialog-close {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    margin: -0.35rem -0.35rem 0 0;
    padding: 0;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    color: #6f7185;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.ab-dialog-close:hover:not(:disabled) {
    background: #f4f6f8;
    color: #191a2b;
}

.ab-dialog-close:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ab-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.ab-dialog-actions-start {
    margin-right: auto;
}

.ab-dialog-card.ab-work-calendar-day-dialog {
    width: min(100%, 44rem);
    max-height: min(calc(100vh - 1.5rem), 52rem);
}

.ab-work-calendar-day-dialog .ab-dialog-actions {
    flex-wrap: nowrap;
}

@media (max-width: 768px) {
    .ab-work-calendar-day-dialog .ab-dialog-actions {
        flex-wrap: wrap;
    }
}

/* Work calendar Syncfusion scheduler */
.ab-work-calendar-schedule {
    margin-top: 0.5rem;
    --ab-wc-day-fill: color-mix(in srgb, var(--ab-primary, #13A19C) 26%, white);
    --ab-wc-day-fill-fallback: rgba(var(--ab-primary-rgb, 19, 161, 156), 0.26);
}

.ab-work-calendar-schedule .e-schedule {
    border: 1px solid #d7e5e4;
    border-radius: 1rem;
    overflow: visible;
    background: #fff;
    box-shadow: 0 10px 28px rgba(25, 26, 43, 0.06);
    height: auto !important;
}

.ab-work-calendar-schedule .e-schedule .e-content-wrap,
.ab-work-calendar-schedule .e-schedule .e-scroll-container,
.ab-work-calendar-schedule .e-schedule .e-table-container,
.ab-work-calendar-schedule .e-schedule .e-vertical-view,
.ab-work-calendar-schedule .e-schedule .e-month-view,
.ab-work-calendar-schedule .e-schedule .e-year-view {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.ab-work-calendar-schedule .e-schedule .e-header-calendar,
.ab-work-calendar-schedule .e-schedule .e-table-container,
.ab-work-calendar-schedule .e-schedule .e-content-wrap,
.ab-work-calendar-schedule .e-schedule .e-month-view,
.ab-work-calendar-schedule .e-schedule .e-year-view {
    border-radius: 0 0 1rem 1rem;
}

.ab-work-calendar-schedule .e-schedule .e-schedule-toolbar,
.ab-work-calendar-schedule .e-schedule .e-toolbar {
    border: 0;
    border-bottom: 1px solid #e3efee;
    background: linear-gradient(180deg, #f7fcfb 0%, #f1f8f7 100%);
    padding: 0.55rem 1.25rem;
    border-radius: 1rem 1rem 0 0;
    box-sizing: border-box;
    overflow: visible;
}

.ab-work-calendar-schedule .e-schedule .e-schedule-toolbar .e-toolbar-items.e-tbar-pos {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.ab-work-calendar-schedule .e-schedule .e-schedule-toolbar .e-toolbar-items.e-tbar-pos .e-toolbar-left {
    left: 0 !important;
}

.ab-work-calendar-schedule .e-schedule .e-schedule-toolbar.e-spacer-toolbar .e-toolbar-items:not(.e-toolbar-multirow) {
    position: relative !important;
}

.ab-work-calendar-schedule .e-schedule .e-schedule-toolbar .e-toolbar-items.e-tbar-pos .e-toolbar-right {
    right: 0 !important;
    padding-right: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ab-work-calendar-schedule .e-schedule .e-schedule-toolbar .e-toolbar-item .e-tbar-btn,
.ab-work-calendar-schedule .e-schedule .e-schedule-toolbar .e-toolbar-item .e-tbar-btn .e-tbar-btn-text {
    white-space: nowrap;
}

.ab-work-calendar-schedule .e-schedule .e-schedule-toolbar .e-btn,
.ab-work-calendar-schedule .e-schedule .e-schedule-toolbar .e-tbar-btn,
.ab-work-calendar-schedule .e-schedule .e-toolbar .e-btn,
.ab-work-calendar-schedule .e-schedule .e-toolbar .e-tbar-btn {
    border-radius: 999px;
}

.ab-work-calendar-schedule .e-schedule .e-schedule-toolbar .e-btn.e-primary,
.ab-work-calendar-schedule .e-schedule .e-schedule-toolbar .e-btn.e-active-view,
.ab-work-calendar-schedule .e-schedule .e-toolbar .e-btn.e-primary,
.ab-work-calendar-schedule .e-schedule .e-toolbar .e-btn.e-active-view {
    background: var(--ab-primary, #13A19C);
    border-color: var(--ab-primary, #13A19C);
}

.ab-work-calendar-schedule .e-schedule .e-schedule-toolbar .e-btn.e-primary:hover,
.ab-work-calendar-schedule .e-schedule .e-schedule-toolbar .e-btn.e-active-view:hover,
.ab-work-calendar-schedule .e-schedule .e-toolbar .e-btn.e-primary:hover,
.ab-work-calendar-schedule .e-schedule .e-toolbar .e-btn.e-active-view:hover {
    background: var(--ab-primary-dark, #0e7f7b);
    border-color: var(--ab-primary-dark, #0e7f7b);
}

.ab-work-calendar-schedule .e-schedule td.e-header-cells {
    padding: 1em;
}

.ab-work-calendar-schedule .e-schedule .e-month-view .e-work-cells,
.ab-work-calendar-schedule .e-schedule .e-month-agenda-view .e-work-cells {
    position: relative;
    padding: 0.35rem 0.25rem 0.25rem 0.45rem;
    vertical-align: top;
}

.ab-work-calendar-schedule .e-schedule .e-month-view .e-work-cells span.e-day,
.ab-work-calendar-schedule .e-schedule .e-month-agenda-view .e-work-cells span.e-day,
.ab-work-calendar-schedule .e-schedule .e-month-view .e-work-cells .e-date-header,
.ab-work-calendar-schedule .e-schedule .e-month-agenda-view .e-work-cells .e-date-header {
    position: relative;
    z-index: 3;
}

.ab-work-calendar-schedule .e-schedule .e-month-view .e-date-header,
.ab-work-calendar-schedule .e-schedule .e-month-agenda-view .e-date-header,
.ab-work-calendar-schedule .e-schedule .e-month-view span.e-day,
.ab-work-calendar-schedule .e-schedule .e-month-agenda-view span.e-day,
.ab-work-calendar-schedule .e-schedule .e-year-view .e-calendar-wrapper .e-month-calendar.e-calendar .e-content span.e-day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    height: 1.65rem;
    margin: 0;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #eef1f3;
    color: #5a6570;
    line-height: 1;
    text-decoration: none !important;
    box-sizing: border-box;
}

.ab-work-calendar-schedule .e-schedule .e-month-view .e-date-header:hover,
.ab-work-calendar-schedule .e-schedule .e-month-agenda-view .e-date-header:hover,
.ab-work-calendar-schedule .e-schedule .e-month-view span.e-day:hover,
.ab-work-calendar-schedule .e-schedule .e-month-agenda-view span.e-day:hover,
.ab-work-calendar-schedule .e-schedule .e-year-view .e-calendar-wrapper .e-month-calendar.e-calendar .e-content span.e-day:hover {
    background: #e4e8ec;
    color: #4a5560;
    text-decoration: none !important;
}

.ab-work-calendar-schedule .e-schedule .e-month-view .e-other-month .e-date-header,
.ab-work-calendar-schedule .e-schedule .e-month-agenda-view .e-other-month .e-date-header,
.ab-work-calendar-schedule .e-schedule .e-year-view .e-calendar-wrapper .e-month-calendar.e-calendar .e-content .e-other-month span.e-day {
    background: #f4f6f8;
    color: #8a879e;
}

.ab-work-calendar-schedule .e-schedule .e-year-view .e-calendar-wrapper .e-month-calendar.e-calendar .e-content span.e-day.ab-wc-has-event-day {
    background: var(--ab-wc-day-fill-fallback) !important;
    background: var(--ab-wc-day-fill) !important;
    color: var(--ab-primary-dark, #0e7f7b) !important;
    font-weight: 600;
}

.ab-work-calendar-schedule .e-schedule .e-month-view .e-current-date .e-date-header,
.ab-work-calendar-schedule .e-schedule .e-month-agenda-view .e-current-date .e-date-header,
.ab-work-calendar-schedule .e-schedule .e-month-view .e-current-date span.e-day,
.ab-work-calendar-schedule .e-schedule .e-month-agenda-view .e-current-date span.e-day {
    background: var(--ab-primary, #13A19C);
    color: #fff;
    font-weight: 600;
}

.ab-work-calendar-schedule .e-schedule .e-month-view .e-current-date .e-date-header:hover,
.ab-work-calendar-schedule .e-schedule .e-month-agenda-view .e-current-date .e-date-header:hover,
.ab-work-calendar-schedule .e-schedule .e-month-view .e-current-date span.e-day:hover,
.ab-work-calendar-schedule .e-schedule .e-month-agenda-view .e-current-date span.e-day:hover {
    background: var(--ab-primary-dark, #0e7f7b);
    color: #fff;
}

.ab-work-calendar-schedule .e-schedule .e-month-view .e-appointment,
.ab-work-calendar-schedule .e-schedule .e-month-agenda-view .e-appointment {
    border: 0 !important;
    background: var(--ab-wc-day-fill-fallback) !important;
    background: var(--ab-wc-day-fill) !important;
    color: var(--ab-primary-dark, #0e7f7b) !important;
    border-radius: 0.35rem;
}

.ab-work-calendar-schedule .e-schedule .e-month-view .e-appointment .e-subject,
.ab-work-calendar-schedule .e-schedule .e-month-agenda-view .e-appointment .e-subject {
    font-size: 0.75rem;
    font-weight: 600;
}

.ab-work-calendar-schedule .e-schedule .e-work-cells,
.ab-work-calendar-schedule .e-schedule .e-date-header-wrap {
    border-color: #e8f1f0;
}

.ab-work-calendar-schedule .e-schedule .e-year-view .e-calendar-wrapper .e-month-calendar.e-calendar .e-appointment-indicator {
    display: none;
}

.ab-work-calendar-schedule .e-schedule .e-year-view .e-calendar-wrapper .e-month-calendar.e-calendar .e-content td.e-today span.e-day,
.ab-work-calendar-schedule .e-schedule .e-year-view .e-calendar-wrapper .e-month-calendar.e-calendar .e-content td.e-focused-date.e-today span.e-day {
    background: var(--ab-primary, #13A19C) !important;
    box-shadow: none !important;
    color: #fff !important;
    font-weight: 600;
}

.ab-work-calendar-schedule .e-schedule .e-year-view .e-calendar-wrapper .e-month-calendar.e-calendar .e-content td.e-today:hover span.e-day,
.ab-work-calendar-schedule .e-schedule .e-year-view .e-calendar-wrapper .e-month-calendar.e-calendar .e-content td.e-focused-date.e-today:hover span.e-day {
    background: var(--ab-primary-dark, #0e7f7b) !important;
    color: #fff !important;
}

.ab-work-calendar-schedule .e-schedule .e-year-view .e-calendar-wrapper .e-month-calendar.e-calendar .e-content td.e-today span.e-day.ab-wc-has-event-day,
.ab-work-calendar-schedule .e-schedule .e-year-view .e-calendar-wrapper .e-month-calendar.e-calendar .e-content td.e-focused-date.e-today span.e-day.ab-wc-has-event-day {
    background: var(--ab-primary, #13A19C) !important;
    color: #fff !important;
}

.ab-platform-edit-top--nested {
    margin-top: 0;
}

.ab-work-calendar-import-form {
    max-width: 42rem;
}

.ab-work-calendar-import-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.75rem 1.25rem;
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #d7e5e4;
    border-radius: 0.85rem;
    background: #f8fcfb;
}

.ab-work-calendar-import-meta div {
    min-width: 0;
}

.ab-work-calendar-import-meta dt {
    margin: 0 0 0.2rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6f7185;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ab-work-calendar-import-meta dd {
    margin: 0;
    font-weight: 600;
}

.ab-work-calendar-import-flow {
    margin-top: 0.25rem;
}

.ab-work-calendar-import-flow .ab-auth-heading {
    text-align: left;
    margin-bottom: 1.25rem;
}

.ab-work-calendar-import-years {
    max-width: 28rem;
}

.ab-work-calendar-import-preview {
    max-height: none;
    overflow: visible;
}

.ab-work-calendar-import-table td {
    vertical-align: top;
}

.ab-work-calendar-import-table tr.is-skipped td {
    opacity: 0.55;
}

.ab-work-calendar-import-factor {
    width: 4.5rem;
    padding: 0.35rem 0.45rem;
    border: 1px solid #d7e5e4;
    border-radius: 0.55rem;
    font: inherit;
}

.ab-work-calendar-import-factor-hint {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.78rem;
    line-height: 1.3;
}

.ab-work-calendar-import-below {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-start;
    margin-top: 0.85rem;
}

.ab-work-calendar-schedule.is-list-view .e-content-wrap,
.ab-work-calendar-schedule.is-list-view .e-table-container,
.ab-work-calendar-schedule.is-list-view .e-scroll-container,
.ab-work-calendar-schedule.is-list-view .e-schedule-table,
.ab-work-calendar-schedule.is-list-view .e-header-calendar,
.ab-work-calendar-schedule.is-list-view .e-date-header-container,
.ab-work-calendar-schedule.is-list-view .e-month-view,
.ab-work-calendar-schedule.is-list-view .e-year-view {
    display: none !important;
}

.ab-work-calendar-schedule.is-list-view .ab-work-calendar-schedule-shell {
    border: 1px solid #d7e5e4;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 10px 28px rgba(25, 26, 43, 0.06);
    overflow: hidden;
}

.ab-work-calendar-schedule.is-list-view .e-schedule {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    min-height: 0 !important;
    height: auto !important;
}

.ab-work-calendar-schedule-list {
    padding: 0;
    margin: 0;
}

.ab-work-calendar-days-list-empty {
    padding: 0;
}

.ab-work-calendar-days-list-empty .ab-empty-state {
    padding: 2rem 1.35rem 2.25rem;
}

.ab-work-calendar-schedule.is-list-view .e-schedule .e-schedule-toolbar,
.ab-work-calendar-schedule.is-list-view .e-schedule .e-toolbar {
    display: none !important;
}

.ab-work-calendar-schedule-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    padding: 0.55rem 1.25rem;
    border: 0;
    border-bottom: 1px solid #e3efee;
    background: linear-gradient(180deg, #f7fcfb 0%, #f1f8f7 100%);
    border-radius: 1rem 1rem 0 0;
    box-sizing: border-box;
}

.ab-work-calendar-list-year-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.ab-work-calendar-schedule.is-list-view .ab-work-calendar-schedule-shell {
    overflow: visible;
}

.ab-work-calendar-schedule.is-list-view .e-schedule .e-schedule-toolbar .e-toolbar-item,
.ab-work-calendar-schedule.is-list-view .e-schedule .e-toolbar .e-toolbar-item {
    overflow: visible;
}

.ab-work-calendar-list-year-picker {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    z-index: 4;
}

.ab-work-calendar-list-year-label {
    margin: 0;
    font-size: 0.84rem;
    font-weight: 600;
    color: #4a5560;
    white-space: nowrap;
}

.ab-work-calendar-list-year-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 5.5rem;
    padding: 0.4rem 0.7rem;
    border: 1px solid #d7e5e4;
    border-radius: 0.5rem;
    background: #fff;
    color: #191a2b;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.ab-work-calendar-list-year-trigger:hover:not(:disabled),
.ab-work-calendar-list-year-picker.is-open .ab-work-calendar-list-year-trigger {
    border-color: #8fd4d1;
    box-shadow: 0 0 0 3px rgba(var(--ab-primary-rgb, 19, 161, 156), 0.12);
}

.ab-work-calendar-list-year-trigger:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ab-work-calendar-list-year-chevron {
    width: 0.4rem;
    height: 0.4rem;
    margin-left: auto;
    border-right: 2px solid #8a879e;
    border-bottom: 2px solid #8a879e;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.15s ease;
}

.ab-work-calendar-list-year-picker.is-open .ab-work-calendar-list-year-chevron {
    transform: rotate(225deg) translateY(-1px);
}

.ab-work-calendar-list-year-panel {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    z-index: 1210;
    width: min(12rem, calc(100vw - 2rem));
    max-height: min(22rem, calc(100vh - 6rem));
    display: flex;
    flex-direction: column;
    padding: 0.65rem;
    border: 1px solid #d7e5e4;
    border-radius: 0.85rem;
    background: #fff;
    box-shadow: 0 14px 32px rgba(25, 26, 43, 0.14);
    box-sizing: border-box;
}

.ab-work-calendar-list-year-panel-title {
    margin: 0 0 0.55rem;
    text-align: center;
    font-size: 0.98rem;
    font-weight: 700;
    color: #191a2b;
}

.ab-work-calendar-list-year-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.ab-work-calendar-list-year-option {
    appearance: none;
    width: 100%;
    min-height: 2.35rem;
    padding: 0.4rem 0.65rem;
    border: 1px solid #e3efee;
    border-radius: 0.55rem;
    background: #fff;
    color: #4a5560;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}

.ab-work-calendar-list-year-option:hover,
.ab-work-calendar-list-year-option.is-active {
    border-color: #8fd4d1;
    background: #f1f8f7;
    color: var(--ab-primary-dark, #0e7f7b);
}

.ab-work-calendar-schedule.is-list-view .ab-work-calendar-days-list .ab-audit-table-wrap {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.ab-work-calendar-schedule.is-list-view .ab-work-calendar-days-list-table thead th {
    border-top: 0;
}

.ab-work-calendar-schedule .ab-work-calendar-schedule-mode-btn {
    margin-inline-end: 0.15rem;
}

.ab-work-calendar-calendar-chrome {
    border: 1px solid #d7e5e4;
    border-bottom: 0;
    border-radius: 1rem 1rem 0 0;
    background: linear-gradient(180deg, #f7fcfb 0%, #f1f8f7 100%);
    box-sizing: border-box;
    overflow: visible;
    width: 100%;
}

.ab-work-calendar-view-toolbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.55rem 0.65rem;
    padding: 0.55rem 1.25rem;
    border-bottom: 1px solid #e3efee;
    box-sizing: border-box;
}

.ab-work-calendar-nav-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    padding: 0.55rem 1.25rem;
    box-sizing: border-box;
}

.ab-work-calendar-view-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    margin-left: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.ab-work-calendar-view-group::-webkit-scrollbar {
    display: none;
}

.ab-work-calendar-view-btn,
.ab-work-calendar-mobile-view-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid #d7e5e4;
    border-radius: 999px;
    background: #fff;
    color: #4a5560;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
}

.ab-work-calendar-view-btn:hover:not(:disabled),
.ab-work-calendar-mobile-view-btn:hover:not(:disabled) {
    border-color: #8fd4d1;
    color: var(--ab-primary-dark, #0e7f7b);
}

.ab-work-calendar-view-btn.is-active,
.ab-work-calendar-mobile-view-btn.is-active {
    background: var(--ab-primary, #13A19C);
    border-color: var(--ab-primary, #13A19C);
    color: #fff;
}

.ab-work-calendar-nav-btn {
    background: #eef5f4;
    color: #1f4f4a;
    border: 1px solid rgba(31, 79, 74, 0.14);
    flex: 0 0 auto;
}

.ab-work-calendar-nav-btn:hover:not(:disabled) {
    background: #e3efed;
    color: #1f4f4a;
}

.ab-work-calendar-nav-month-picker,
.ab-work-calendar-list-year-picker.is-compact {
    position: relative;
    z-index: 6;
}

.ab-work-calendar-nav-month-trigger,
.ab-work-calendar-list-year-picker.is-compact .ab-work-calendar-list-year-trigger {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 9.5rem;
    min-height: 2.75rem;
    padding: 0.35rem 0.55rem;
    border: 0;
    background: transparent;
    color: var(--ab-text, #111827);
    font: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.ab-work-calendar-nav-month-trigger:focus,
.ab-work-calendar-nav-month-trigger:focus-visible,
.ab-work-calendar-list-year-trigger:focus,
.ab-work-calendar-list-year-trigger:focus-visible {
    outline: none;
    box-shadow: none;
}

.ab-work-calendar-list-year-picker.is-compact .ab-work-calendar-list-year-trigger:focus,
.ab-work-calendar-list-year-picker.is-compact .ab-work-calendar-list-year-trigger:focus-visible {
    border: 0;
}

.ab-work-calendar-nav-month-trigger:hover,
.ab-work-calendar-list-year-picker.is-compact .ab-work-calendar-list-year-trigger:hover:not(:disabled),
.ab-work-calendar-nav-month-picker.is-open .ab-work-calendar-nav-month-trigger,
.ab-work-calendar-list-year-picker.is-compact.is-open .ab-work-calendar-list-year-trigger {
    color: var(--ab-primary-dark, #0e7f7b);
}

.ab-work-calendar-nav-month-chevron,
.ab-work-calendar-list-year-picker.is-compact .ab-work-calendar-list-year-chevron {
    width: 0.4rem;
    height: 0.4rem;
    margin-left: 0;
    border-right: 2px solid #8a879e;
    border-bottom: 2px solid #8a879e;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.15s ease;
}

.ab-work-calendar-nav-month-picker.is-open .ab-work-calendar-nav-month-chevron,
.ab-work-calendar-list-year-picker.is-compact.is-open .ab-work-calendar-list-year-chevron {
    transform: rotate(225deg) translateY(-1px);
}

.ab-work-calendar-nav-month-backdrop,
.ab-work-calendar-list-year-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: default;
}

.ab-work-calendar-nav-month-panel {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    z-index: 1210;
    width: min(18rem, calc(100vw - 2rem));
    padding: 0.65rem;
    border: 1px solid #d7e5e4;
    border-radius: 0.85rem;
    background: #fff;
    box-shadow: 0 14px 32px rgba(25, 26, 43, 0.14);
}

.ab-work-calendar-nav-month-year-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.ab-work-calendar-nav-month-year-label {
    font-size: 0.98rem;
    font-weight: 700;
    color: #191a2b;
}

.ab-work-calendar-nav-month-year-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #d7e5e4;
    border-radius: 999px;
    background: #eef5f4;
    color: #1f4f4a;
    cursor: pointer;
}

.ab-work-calendar-nav-month-year-btn:hover {
    background: #e3efed;
}

.ab-work-calendar-nav-month-year-btn svg {
    width: 1rem;
    height: 1rem;
}

.ab-work-calendar-nav-month-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
}

.ab-work-calendar-nav-month-option {
    appearance: none;
    min-height: 2.35rem;
    padding: 0.4rem 0.45rem;
    border: 1px solid #e3efee;
    border-radius: 0.55rem;
    background: #fff;
    color: #4a5560;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.ab-work-calendar-nav-month-option:hover,
.ab-work-calendar-nav-month-option.is-active {
    border-color: #8fd4d1;
    background: #f1f8f7;
    color: var(--ab-primary-dark, #0e7f7b);
}

.ab-work-calendar-list-year-picker.is-compact .ab-work-calendar-list-year-trigger:hover:not(:disabled),
.ab-work-calendar-list-year-picker.is-compact.is-open .ab-work-calendar-list-year-trigger,
.ab-work-calendar-list-year-picker.is-compact .ab-work-calendar-list-year-trigger:focus,
.ab-work-calendar-list-year-picker.is-compact .ab-work-calendar-list-year-trigger:focus-visible {
    border: 0;
    box-shadow: none;
    outline: none;
}

.ab-work-calendar-schedule:not(.is-list-view) .e-schedule {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.ab-work-calendar-schedule:not(.is-list-view) .e-schedule .e-schedule-toolbar,
.ab-work-calendar-schedule:not(.is-list-view) .e-schedule .e-toolbar {
    display: none !important;
}

@media (min-width: 721px) {
    .ab-work-calendar-calendar-chrome {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 0.65rem;
        padding: 0.55rem 1.25rem;
    }

    .ab-work-calendar-view-toolbar {
        display: contents;
    }

    .ab-work-calendar-view-toolbar .ab-work-calendar-schedule-mode-btn {
        order: 1;
    }

    .ab-work-calendar-nav-toolbar {
        order: 2;
        flex: 0 0 auto;
        padding: 0;
        border: 0;
    }

    .ab-work-calendar-view-group {
        order: 3;
        margin-left: auto;
    }
}

@media (max-width: 720px) {
    .ab-work-calendar-view-toolbar,
    .ab-work-calendar-nav-toolbar {
        padding-inline: 0.85rem;
    }
}

.ab-work-calendar-days-list-table tr.is-clickable {
    cursor: pointer;
}

.ab-work-calendar-days-list-table tr.is-clickable:hover td {
    background: #f7fbfb;
}

.ab-work-calendar-toolbar {
    margin-bottom: 0.85rem;
}

.ab-platform-card:has(.ab-work-calendar-schedule),
.ab-platform-body:has(.ab-work-calendar-schedule),
.ab-shell:has(.ab-work-calendar-schedule) {
    overflow: visible;
    min-height: 0;
}

.ab-work-calendar-schedule .e-toolbar-pop,
.ab-work-calendar-schedule .e-popup.e-popup-open {
    z-index: 1300 !important;
}

.ab-absence-subnav {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem 0.75rem;
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--ab-border, #e5e7eb);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.ab-page-header {
    margin-bottom: 1.5rem;
}

.ab-page-header--actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1rem;
}

.ab-page-header .ab-auth-heading {
    margin-bottom: 0;
    text-align: left;
    min-width: 0;
    flex: 1 1 12rem;
}

.ab-page-header--actions > .ab-btn {
    flex: 0 0 auto;
    margin-left: auto;
}

.ab-page-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 0.85rem;
    margin-left: auto;
}

.ab-vacation-page .ab-auth-heading {
    margin-bottom: 1rem;
    text-align: left;
}

.ab-vacation-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 1.25rem;
    flex-wrap: nowrap;
}

.ab-vacation-toolbar .ab-work-time-period-nav {
    flex: 0 1 auto;
    min-width: 0;
}

.ab-vacation-toolbar .ab-vacation-year-label {
    min-width: 3.25rem;
    font-variant-numeric: tabular-nums;
}

.ab-vacation-toolbar > .ab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.ab-vacation-balance {
    margin: 0 0 1.75rem;
    padding: 1rem 1.15rem;
    border: 1px solid color-mix(in srgb, var(--ab-primary, #13A19C) 14%, #d8e4e3);
    border-radius: 14px;
    background: #fff;
    max-width: 28rem;
}

@media (max-width: 720px) {
    .ab-vacation-toolbar {
        width: 100%;
        gap: 0.65rem;
    }

    .ab-vacation-balance {
        max-width: none;
        width: 100%;
        box-sizing: border-box;
    }
}

.ab-vacation-balance-list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
}

.ab-vacation-balance-list > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.ab-vacation-balance-list dt {
    margin: 0;
    color: #5c5a72;
    font-weight: 500;
}

.ab-vacation-balance-list dd {
    margin: 0;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: #191a2b;
    text-align: right;
}

.ab-vacation-amount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
}

.ab-vacation-amount-hours {
    font-size: 0.85rem;
    font-weight: 500;
    color: #5c5a72;
}

.ab-vacation-balance-total .ab-vacation-amount-hours {
    color: #3d3b52;
}

.ab-vacation-balance-total {
    margin-top: 0.35rem;
    padding-top: 0.7rem;
    border-top: 1px solid color-mix(in srgb, var(--ab-primary, #13A19C) 16%, #e4eceb);
}

.ab-vacation-balance-total dt,
.ab-vacation-balance-total dd {
    font-weight: 700;
    color: #191a2b;
}

.ab-vacation-list-title {
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #191a2b;
}

.ab-absence-subnav::-webkit-scrollbar {
    display: none;
}

.ab-absence-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(28rem, calc(72vh - 14rem));
    padding: 2rem 1.35rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.ab-absence-empty-state .ab-empty-state {
    min-height: 0;
    padding: 0;
}

.ab-absence-empty-state .ab-empty,
.ab-absence-empty-state .ab-auth-hint,
.ab-absence-empty-state .ab-error {
    margin: 0;
    text-align: center;
    max-width: 32rem;
}

.ab-absence-empty-state .ab-empty,
.ab-absence-empty-state .ab-auth-hint {
    color: #8a879e;
}

.ab-absence-subnav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--ab-muted, #6b7280);
    font-weight: 500;
    flex-shrink: 0;
    white-space: nowrap;
}

.ab-absence-subnav-link:hover {
    color: var(--ab-text, #111827);
    background: rgba(0, 0, 0, 0.04);
}

.ab-absence-subnav-link.active {
    color: var(--ab-primary, #2563eb);
    background: rgba(37, 99, 235, 0.1);
}

.ab-mobile-list-cards {
    display: none;
}

.ab-mobile-list-card {
    border: 1px solid #dce8e7;
    border-radius: 14px;
    background: #fff;
    padding: 0.9rem 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ab-mobile-list-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.ab-mobile-list-card-title-wrap {
    min-width: 0;
    flex: 1 1 auto;
}

.ab-mobile-list-card-title {
    display: block;
    font-size: 0.98rem;
    line-height: 1.35;
    color: #173532;
    overflow-wrap: anywhere;
}

.ab-mobile-list-card-description {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    line-height: 1.35;
    color: #6f7185;
}

.ab-mobile-list-card-subtitle {
    margin: 0.55rem 0 0;
    font-size: 0.92rem;
    color: #5a5d72;
}

.ab-mobile-list-card-badge {
    flex-shrink: 0;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: #eef5f4;
    color: #1f4f4a;
}

.ab-mobile-list-card-badge.is-positive {
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
}

.ab-mobile-list-card-badge.is-negative {
    background: rgba(239, 68, 68, 0.12);
    color: #991b1b;
}

.ab-mobile-list-card-badge.is-pending {
    background: rgba(245, 158, 11, 0.14);
    color: #92400e;
}

.ab-mobile-list-card-badge.is-muted {
    background: #f1f5f9;
    color: #64748b;
}

.ab-mobile-list-card-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0.75rem 0 0;
}

.ab-mobile-list-card-metrics > div {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.ab-mobile-list-card-metrics dt {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #6f7185;
}

.ab-mobile-list-card-metrics dd {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: #173532;
    overflow-wrap: anywhere;
}

.ab-mobile-list-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 0.7rem;
    padding-top: 0.7rem;
    border-top: 1px solid #e7efee;
}

.ab-files-mobile-cards .ab-mobile-list-card-header .ab-table-action-group {
    flex-shrink: 0;
}

.ab-files-mobile-cards .ab-files-row-menu {
    position: relative;
}

.ab-mobile-list-card:has(.ab-files-row-menu.is-open) {
    position: relative;
    z-index: 6;
}

@media (max-width: 720px) {
    .ab-mobile-list-cards {
        display: grid;
        gap: 0.75rem;
    }

    .ab-list-table-desktop {
        display: none !important;
    }

    .ab-audit-table-wrap:not(.ab-list-table-desktop) {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    /* Card rows are taller than the desktop table viewport — drop the height
       cap so cards stay in document flow (page scroll) instead of painting
       over pagination/footer with overflow:visible. */
    .ab-dynamic-grid .ab-audit-table-wrap:not(.ab-list-table-desktop) {
        max-height: none;
        overflow: visible;
    }

    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-audit-table,
    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-files-table {
        min-width: 0;
        width: 100%;
        border: 0;
        background: transparent;
    }

    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-audit-table thead,
    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-files-table thead {
        display: none;
    }

    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-audit-table tbody,
    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-files-table tbody {
        display: grid;
        gap: 0.75rem;
    }

    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-audit-table tbody tr,
    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-files-table tbody tr {
        display: block;
        border: 1px solid #dce8e7;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
        overflow: hidden;
    }

    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-audit-table td,
    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-files-table td {
        display: grid;
        grid-template-columns: minmax(5.5rem, 38%) 1fr;
        gap: 0.45rem 0.75rem;
        align-items: start;
        padding: 0.45rem 1rem;
        border: 0;
        background: transparent !important;
        position: static;
        box-shadow: none !important;
        white-space: normal;
        overflow: visible;
        max-width: none;
        min-width: 0;
        width: auto;
        text-align: left;
        vertical-align: top;
    }

    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-audit-table:not(.ab-dynamic-grid-table) td:first-child:not(.ab-table-actions):not(.ab-dynamic-grid-actions-col):not(.ab-platform-actions):not(.ab-files-col-actions),
    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-files-table td:first-child:not(.ab-files-col-actions) {
        display: block;
        padding-top: 0.9rem;
        font-size: 0.98rem;
        font-weight: 700;
        line-height: 1.35;
        color: #173532;
    }

    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-audit-table td[data-label]::before,
    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-files-table td[data-label]::before {
        content: attr(data-label);
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        color: #6f7185;
    }

    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-audit-table td.ab-table-actions,
    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-audit-table td.ab-dynamic-grid-actions-col,
    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-audit-table td.ab-platform-actions,
    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-files-table td.ab-files-col-actions {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        grid-template-columns: 1fr;
        border-top: 1px solid #e7efee;
        margin-top: 0.2rem;
        padding: 0.7rem 1rem 0.9rem;
    }

    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-audit-table td.ab-table-actions::before,
    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-audit-table td.ab-dynamic-grid-actions-col::before,
    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-audit-table td.ab-platform-actions::before,
    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-files-table td.ab-files-col-actions::before {
        display: none;
    }

    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-table-action-group,
    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-row-actions,
    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-files-row-actions {
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-icon-btn {
        background: #fff;
        border: 1px solid rgba(25, 26, 43, 0.12);
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    }

    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-icon-btn:hover:not(:disabled),
    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-icon-btn.is-active {
        background: #fff;
        border-color: rgba(25, 26, 43, 0.2);
    }

    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-audit-table td:not([data-label]):not(:first-child):not(.ab-table-actions):not(.ab-dynamic-grid-actions-col):not(.ab-platform-actions),
    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-files-table td:not([data-label]):not(:first-child):not(.ab-files-col-actions) {
        display: block;
    }

    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-audit-table td[data-label=""]::before,
    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-files-table td[data-label=""]::before {
        display: none;
    }

    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-grid-contact-cell {
        display: grid;
        gap: 0.35rem;
    }

    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-grid-contact-text {
        overflow-wrap: anywhere;
    }

    /* Dynamic grid cards: two metric columns keep cards shorter. */
    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-dynamic-grid-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 0.75rem;
        row-gap: 0.55rem;
        align-items: start;
        padding: 0.85rem 1rem 0;
    }

    /* Reset the generic “first cell = card title” styling — every metric
       cell must share the same type and padding so the two columns align. */
    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-dynamic-grid-table td:first-child:not(.ab-dynamic-grid-actions-col),
    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-dynamic-grid-table td:not(.ab-dynamic-grid-actions-col)[data-label] {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.2rem;
        padding: 0;
        font-size: 0.92rem;
        font-weight: 600;
        line-height: 1.35;
        color: #173532;
    }

    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-dynamic-grid-table td:not(.ab-dynamic-grid-actions-col)[data-label]::before {
        display: block;
        margin: 0;
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        color: #6f7185;
        line-height: 1.3;
    }

    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-dynamic-grid-table td.ab-dynamic-grid-actions-col {
        grid-column: 1 / -1;
        margin: 0.35rem -1rem 0;
        width: auto;
    }

    .ab-audit-table-wrap:not(.ab-list-table-desktop) .ab-dynamic-grid-table td:not(.ab-dynamic-grid-actions-col) .ab-grid-contact-cell {
        display: grid;
        gap: 0.35rem;
    }
}

.ab-work-time-employee-select {
    margin-bottom: 1rem;
    max-width: 24rem;
}

.ab-work-time-period-nav-static {
    position: static;
    transform: none;
}

.ab-work-time-team-cards {
    margin-bottom: 1rem;
}

.ab-work-time-card-meta {
    display: block;
    font-size: 0.85rem;
    color: var(--ab-muted, #64748b);
    margin-top: 0.15rem;
}

.ab-work-time-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.ab-work-time-toolbar.has-centered-period {
    position: relative;
    justify-content: flex-start;
    min-height: 2.75rem;
}

.ab-work-time-toolbar.has-centered-period .ab-work-time-period-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.ab-work-time-toolbar-end {
    margin-left: auto;
}

.ab-work-time-toolbar-start {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.ab-work-time-today-btn.ab-btn {
    min-height: 2.75rem;
    padding-inline: 0.85rem;
    white-space: nowrap;
}

.ab-work-time-mode-btn,
.ab-work-time-period-btn {
    background: #eef5f4;
    color: #1f4f4a;
    border: 1px solid rgba(31, 79, 74, 0.14);
}

.ab-work-time-mode-btn {
    margin-inline-end: 0.15rem;
}

.ab-work-time-period-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.ab-work-time-period-date-picker {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.ab-work-time-period-date-trigger {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 0;
    min-height: 2.75rem;
    padding: 0.2rem 0.35rem;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.ab-work-time-period-date-trigger:hover:not(:disabled) .ab-work-time-period-label,
.ab-work-time-period-date-trigger:hover:not(:disabled) .ab-work-time-period-date-chevron {
    color: var(--ab-primary-dark, #0e7f7b);
}

.ab-work-time-period-date-trigger:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ab-work-time-period-label {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ab-text, #111827);
    min-width: 9rem;
    text-align: center;
}

.ab-work-time-period-date-chevron {
    width: 0.4rem;
    height: 0.4rem;
    border-right: 2px solid #8a879e;
    border-bottom: 2px solid #8a879e;
    transform: rotate(45deg) translateY(-2px);
    flex: 0 0 auto;
}

.ab-work-time-period-date-native {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.ab-work-time-period-date-trigger:disabled + .ab-work-time-period-date-native,
.ab-work-time-period-date-native:disabled {
    pointer-events: none;
    cursor: not-allowed;
}

.ab-work-time-period-btn:hover:not(:disabled) {
    background: #e3efed;
    color: #1f4f4a;
}

.ab-work-time-month-table tr.ab-balance-positive td {
    background: rgba(34, 197, 94, 0.07);
}

.ab-work-time-month-table tr.ab-balance-negative td {
    background: rgba(239, 68, 68, 0.07);
}

.ab-work-time-month-table tr.ab-balance-positive td.ab-table-actions,
.ab-work-time-month-table tr.ab-balance-negative td.ab-table-actions,
.ab-work-time-month-table tr.ab-balance-positive:hover td.ab-table-actions,
.ab-work-time-month-table tr.ab-balance-negative:hover td.ab-table-actions {
    background: #fff;
    filter: none;
}

.ab-work-time-month-table .ab-audit-table td:nth-child(4) {
    min-width: 4.75rem;
    padding-right: 1rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ab-work-time-month-table .ab-audit-table td.ab-table-actions {
    min-width: 3.75rem;
}

.ab-work-time-month-table .ab-table-action-group .ab-icon-btn {
    background: #fff;
    border: 1px solid rgba(25, 26, 43, 0.12);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.ab-work-time-month-table .ab-table-action-group .ab-icon-btn:hover:not(:disabled),
.ab-work-time-month-table .ab-table-action-group .ab-icon-btn.is-active {
    background: #fff;
    border-color: rgba(25, 26, 43, 0.2);
    color: #1f4f4a;
}

.ab-work-time-month-table tr.ab-balance-positive:hover td:not(.ab-table-actions),
.ab-work-time-month-table tr.ab-balance-negative:hover td:not(.ab-table-actions) {
    filter: brightness(0.98);
}

.ab-work-time-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    max-width: 32rem;
    margin: 0 auto 1.1rem;
}

.ab-work-time-day-absences {
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid #d7e5e4;
    border-radius: 0.85rem;
    background: #f7fbfb;
}

.ab-work-time-day-absences-title {
    margin: 0 0 0.65rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: #4a5560;
}

.ab-work-time-day-absence-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.ab-work-time-day-absence {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.ab-work-time-day-absence-swatch {
    width: 0.65rem;
    height: 0.65rem;
    margin-top: 0.35rem;
    border-radius: 999px;
    background: var(--ab-primary, #13a19c);
    flex: 0 0 auto;
}

.ab-work-time-day-absence-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.ab-work-time-day-absence-type {
    font-size: 0.92rem;
    color: #191a2b;
}

.ab-work-time-day-absence-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    color: #6f7185;
    font-size: 0.84rem;
}

.ab-work-time-summary-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 4.5rem;
    padding: 0.7rem 0.55rem;
    border-radius: 12px;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    text-align: center;
}

.ab-work-time-summary-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.92;
}

.ab-work-time-summary-value {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.ab-work-time-summary-card.is-target,
.ab-work-time-summary-card.is-actual {
    background: linear-gradient(180deg, #edf5ff 0%, #e3effc 100%);
    border-color: #c7ddf5;
    color: #1d4f7c;
}

.ab-work-time-summary-card.is-balance-positive {
    background: linear-gradient(180deg, #ecfdf3 0%, #dcfae6 100%);
    border-color: #abefc6;
    color: #067647;
}

.ab-work-time-summary-card.is-balance-negative {
    background: linear-gradient(180deg, #fef3f2 0%, #fee4e2 100%);
    border-color: #fecdca;
    color: #b42318;
}

.ab-work-time-summary-card.is-balance-neutral {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: #e2e8f0;
    color: #475569;
}

.ab-work-time-cards {
    display: none;
}

.ab-work-time-card {
    border: 1px solid #dce8e7;
    border-radius: 14px;
    background: #fff;
    padding: 0.9rem 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ab-work-time-card.ab-balance-positive {
    background: rgba(34, 197, 94, 0.07);
    border-color: rgba(34, 197, 94, 0.18);
}

.ab-work-time-card.ab-balance-negative {
    background: rgba(239, 68, 68, 0.07);
    border-color: rgba(239, 68, 68, 0.18);
}

.ab-work-time-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.ab-work-time-card-title {
    font-size: 0.98rem;
    line-height: 1.35;
    color: #173532;
}

.ab-work-time-card-time {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    color: #173532;
}

.ab-work-time-card-duration {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ab-primary-dark);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ab-work-time-card-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0.75rem 0 0;
}

.ab-work-time-card-metrics > div {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.ab-work-time-card-metrics dt {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #6f7185;
}

.ab-work-time-card-metrics dd {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    color: #173532;
    font-variant-numeric: tabular-nums;
}

.ab-work-time-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.7rem;
    padding-top: 0.7rem;
    border-top: 1px solid #e7efee;
}

.ab-work-time-card-source {
    font-size: 0.9rem;
    color: #5a5d72;
}

@media (max-width: 720px) {
    .ab-work-time-toolbar.has-centered-period {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        align-items: center;
        min-height: 0;
        gap: 0.55rem 0.65rem;
    }

    .ab-work-time-toolbar-start {
        grid-column: 1;
        grid-row: 1;
    }

    .ab-work-time-toolbar-end {
        grid-column: 2;
        grid-row: 1;
        margin-left: 0;
    }

    .ab-work-time-toolbar.has-centered-period .ab-work-time-period-nav {
        position: static;
        transform: none;
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: space-between;
        width: 100%;
        gap: 0.5rem;
    }

    .ab-work-time-period-label {
        font-size: 1.05rem;
        min-width: 0;
        flex: 1 1 auto;
        text-align: center;
    }

    .ab-work-time-summary {
        grid-template-columns: 1fr;
        max-width: none;
        gap: 0.55rem;
    }

    .ab-work-time-summary-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-height: 0;
        padding: 0.85rem 1rem;
        text-align: left;
    }

    .ab-work-time-summary-label {
        font-size: 0.8rem;
        letter-spacing: 0.02em;
        text-transform: none;
    }

    .ab-work-time-summary-value {
        font-size: 1.15rem;
    }

    .ab-work-time-cards {
        display: grid;
        gap: 0.75rem;
    }

    .ab-work-time-table-desktop {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .ab-work-time-summary {
        max-width: none;
    }

    .ab-work-time-summary-card {
        min-height: 0;
        padding: 0.85rem 1rem;
    }

    .ab-work-time-summary-value {
        font-size: 1.15rem;
    }
}

.ab-work-time-clock-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: min(100%, 22rem);
    margin: 0.15rem auto 1rem;
}

.ab-work-time-clock-control.is-running {
    display: grid;
    grid-template-columns: minmax(5.5rem, 1fr) auto minmax(5.5rem, 1fr);
    column-gap: 1rem;
}

.ab-work-time-clock-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    min-height: 2.6rem;
    text-align: center;
}

.ab-work-time-clock-control.is-running .ab-work-time-clock-side-start {
    justify-self: end;
}

.ab-work-time-clock-control.is-running .ab-work-time-clock-side-end {
    justify-self: start;
}

.ab-work-time-clock-value {
    margin: 0;
    color: #191a2b;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.ab-work-time-clock-label {
    margin: 0;
    color: #8a879e;
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.2;
}

.ab-work-time-clock-btn-wrap {
    display: flex;
    justify-content: center;
    min-height: 4.25rem;
}

.ab-work-time-clock-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.25rem;
    height: 4.25rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.ab-work-time-clock-btn .ab-hero-icon {
    width: 1.75rem;
    height: 1.75rem;
}

.ab-work-time-clock-btn:not(.is-running) .ab-hero-icon {
    margin-left: 0.15rem;
}

.ab-work-time-clock-btn.is-running {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.25);
}

.ab-work-time-clock-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.ab-work-time-clock-btn:active:not(:disabled) {
    transform: translateY(0);
}

.ab-work-time-clock-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ab-work-time-entry-day {
    margin: 0.15rem 0 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #173532;
}

.ab-settlement-meta {
    margin: 0.65rem 0 0;
    font-size: 0.95rem;
    color: var(--ab-muted, #64748b);
}

.ab-settlement-meta-inline {
    margin: 0;
}

.ab-settlement-history-table .ab-audit-table td:nth-child(5),
.ab-settlement-history-table .ab-audit-table th:nth-child(5) {
    min-width: 4.5rem;
    text-align: center;
}

.ab-settlement-section-title {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.ab-settlement-issue-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.ab-settlement-issue {
    padding: 0.65rem 0.85rem;
    border-radius: 0.5rem;
    font-size: 0.92rem;
    line-height: 1.45;
}

.ab-settlement-issue.is-blocker {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #991b1b;
}

.ab-settlement-issue.is-warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #92400e;
}

.ab-settlement-issues {
    margin-top: 1rem;
}

.ab-settlement-confirm {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
}

.ab-settlement-toolbar-actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.ab-settlement-history-table tr.ab-settlement-reversed-row td {
    color: var(--ab-muted, #64748b);
    font-style: italic;
}

.ab-settlement-mobile-cards .ab-mobile-list-card.is-reversed {
    opacity: 0.92;
}

.ab-settlement-mobile-cards .ab-mobile-list-card.is-reversed .ab-mobile-list-card-title,
.ab-settlement-reversed-note {
    color: var(--ab-muted, #64748b);
}

.ab-settlement-reversed-note {
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
    font-style: italic;
}

.ab-settlement-detail-totals {
    margin-top: 1.1rem;
}

.ab-break-rules-list {
    display: grid;
    gap: 0.85rem;
    margin: 0.75rem 0 1rem;
}

.ab-break-rules-row-end {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.ab-break-rules-row-end .ab-field {
    flex: 1 1 auto;
    min-width: 0;
}

.ab-work-time-break-warning {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid color-mix(in srgb, #c9a227 35%, #e8e0c8);
    border-radius: 12px;
    background: color-mix(in srgb, #f8f1d4 85%, #fff);
    color: #5c4b12;
    font-size: 0.92rem;
    line-height: 1.4;
}
