.ui-empty-state {
    padding: 24px 16px;
    text-align: center;
    color: var(--ds-ink-soft);
    background: linear-gradient(180deg, #fbfdff, #f4f8fe);
    border: 1px dashed #d8e3f1;
    border-radius: 12px;
    font-size: 0.9rem;
}

.ui-empty-inline {
    color: var(--ds-ink-soft);
    font-size: 0.86rem;
}

.ui-skeleton {
    position: relative;
    overflow: hidden;
    background: #eef3fb;
    border-radius: 10px;
}

.ui-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
    animation: skeleton-shimmer 1.3s infinite;
}

@keyframes skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}

.ui-pagination {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ui-page-btn {
    min-width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid var(--ds-line);
    background: #fff;
    color: var(--ds-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.ui-page-btn.active {
    background: var(--ds-primary);
    border-color: var(--ds-primary);
    color: #fff;
}

.ui-tabs {
    display: inline-flex;
    gap: 6px;
    background: #f2f6fd;
    padding: 4px;
    border-radius: 12px;
}

.ui-tab {
    border: 0;
    background: transparent;
    color: #4f6481;
    border-radius: 9px;
    padding: 8px 10px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.ui-tab.active {
    background: #fff;
    color: #244f85;
    box-shadow: 0 6px 14px rgba(30, 66, 111, 0.12);
}

.ui-dropdown {
    position: relative;
}

.ui-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid var(--ds-line);
    border-radius: 12px;
    box-shadow: var(--ds-shadow-sm);
    padding: 8px;
    z-index: 20;
    display: none;
}

.ui-dropdown.open .ui-dropdown-menu {
    display: block;
}

.ui-dropdown-menu a,
.ui-dropdown-menu button {
    width: 100%;
    text-align: left;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ds-ink);
    padding: 9px 10px;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.ui-dropdown-menu a:hover,
.ui-dropdown-menu button:hover {
    background: #f3f8ff;
}

.ui-tooltip {
    position: relative;
}

.ui-tooltip::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    bottom: calc(100% + 8px);
    padding: 6px 8px;
    border-radius: 8px;
    background: #1e3049;
    color: #fff;
    font-size: 0.74rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.ui-tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.ui-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 29, 45, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1400;
}

.ui-modal-backdrop.open {
    display: flex;
}

.ui-modal {
    width: min(560px, 100%);
    background: #fff;
    border: 1px solid var(--ds-line);
    border-radius: 14px;
    box-shadow: var(--ds-shadow-md);
    padding: 18px;
}

.ui-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ui-modal-title {
    margin: 0;
    font-size: 1.05rem;
}

.ui-modal-close {
    border: 0;
    border-radius: 8px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    background: #f1f5fc;
}
