/* Tenant / central admin dashboard — quick actions + customize hub */

.ws-qa {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    background: #ffffff;
    overflow: hidden;
}

.dark .ws-qa,
html.dark .ws-qa {
    border-color: #1f2937;
    background: #0f172a;
}

.ws-qa__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.dark .ws-qa__header,
html.dark .ws-qa__header {
    border-bottom-color: #1f2937;
    background: #111827;
}

.ws-qa__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: #0f172a;
}

.ws-qa__subtitle {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: #64748b;
}

.dark .ws-qa__title,
html.dark .ws-qa__title {
    color: #f8fafc;
}

.dark .ws-qa__subtitle,
html.dark .ws-qa__subtitle {
    color: #94a3b8;
}

.ws-qa__list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.ws-qa__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1.15rem;
    border-bottom: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    transition: background-color 0.12s ease;
}

.ws-qa__item:last-child {
    border-bottom: 0;
}

.dark .ws-qa__item,
html.dark .ws-qa__item {
    border-bottom-color: #1f2937;
    background: #0f172a;
}

.ws-qa__item:hover {
    background: #f8fafc;
}

.dark .ws-qa__item:hover,
html.dark .ws-qa__item:hover {
    background: #111827;
}

.ws-qa__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.55rem;
    flex-shrink: 0;
}

.ws-qa__icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.ws-qa__icon--violet { background: #f3e8ff; color: #7c3aed; }
.ws-qa__icon--indigo { background: #e0e7ff; color: #4338ca; }
.ws-qa__icon--emerald { background: #d1fae5; color: #047857; }
.ws-qa__icon--sky { background: #e0f2fe; color: #0369a1; }
.ws-qa__icon--amber { background: #fef3c7; color: #b45309; }
.ws-qa__icon--slate { background: #f1f5f9; color: #475569; }

.dark .ws-qa__icon--violet,
html.dark .ws-qa__icon--violet { background: #4c1d95; color: #ddd6fe; }
.dark .ws-qa__icon--indigo,
html.dark .ws-qa__icon--indigo { background: #312e81; color: #c7d2fe; }
.dark .ws-qa__icon--emerald,
html.dark .ws-qa__icon--emerald { background: #064e3b; color: #a7f3d0; }
.dark .ws-qa__icon--sky,
html.dark .ws-qa__icon--sky { background: #0c4a6e; color: #bae6fd; }
.dark .ws-qa__icon--amber,
html.dark .ws-qa__icon--amber { background: #78350f; color: #fde68a; }
.dark .ws-qa__icon--slate,
html.dark .ws-qa__icon--slate { background: #1e293b; color: #cbd5e1; }

.ws-qa__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.1rem;
}

.ws-qa__label {
    font-size: 0.9rem;
    font-weight: 650;
    color: #0f172a;
}

.ws-qa__hint {
    font-size: 0.78rem;
    color: #64748b;
}

.dark .ws-qa__label,
html.dark .ws-qa__label { color: #f8fafc; }

.dark .ws-qa__hint,
html.dark .ws-qa__hint { color: #94a3b8; }

.ws-qa__item:hover .ws-qa__label {
    color: #4338ca;
}

.dark .ws-qa__item:hover .ws-qa__label,
html.dark .ws-qa__item:hover .ws-qa__label {
    color: #a5b4fc;
}

.ws-qa__chevron {
    display: inline-flex;
    color: #94a3b8;
}

.ws-qa__chevron svg {
    width: 1.1rem;
    height: 1.1rem;
}

.ws-qa__item:hover .ws-qa__chevron {
    color: #4338ca;
}

/* Customize portal hub (kept for Settings page) */
.ws-portal-hub {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.ws-portal-hub__grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    width: 100%;
}

@media (min-width: 768px) {
    .ws-portal-hub__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .ws-portal-hub__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.ws-portal-hub__card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 0.85rem;
    row-gap: 0.25rem;
    align-items: start;
    width: 100%;
    min-height: 100%;
    padding: 1rem 1.05rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ws-portal-hub__card > .ws-portal-hub__icon { grid-row: 1 / span 3; align-self: center; }
.ws-portal-hub__card > .ws-portal-hub__title { grid-column: 2; grid-row: 1; }
.ws-portal-hub__card > .ws-portal-hub__desc { grid-column: 2; grid-row: 2; }
.ws-portal-hub__card > .ws-portal-hub__cta { grid-column: 2; grid-row: 3; margin-top: 0.35rem; }

.dark .ws-portal-hub__card,
html.dark .ws-portal-hub__card {
    border-color: #1f2937;
    background: #0f172a;
}

.ws-portal-hub__card:hover {
    border-color: #a5b4fc;
    background: #f8fafc;
}

.ws-portal-hub__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.55rem;
    background: #eef2ff;
    color: #4338ca;
}

.ws-portal-hub__icon svg { width: 1.15rem; height: 1.15rem; }

.ws-portal-hub__title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 650;
    color: #0f172a;
}

.ws-portal-hub__desc {
    margin: 0;
    font-size: 0.78rem;
    color: #64748b;
}

.ws-portal-hub__cta {
    font-size: 0.75rem;
    font-weight: 650;
    color: #4f46e5;
}

.dark .ws-portal-hub__title,
html.dark .ws-portal-hub__title { color: #f8fafc; }

.dark .ws-portal-hub__desc,
html.dark .ws-portal-hub__desc { color: #94a3b8; }

.fi-wi-stats-overview,
.fi-wi-widget {
    width: 100%;
}
