.habdo-kpi-grid,
.habdo-finance-grid,
.habdo-alert-grid,
.habdo-decision-lists {
    display: grid;
    gap: 1rem;
}

.habdo-kpi-card,
.habdo-finance-card,
.habdo-alert-card {
    min-width: 0;
    border: 1px solid rgb(229 231 235);
    border-radius: 0.85rem;
    background: white;
    padding: 1.25rem;
}

.habdo-kpi-card {
    box-shadow: 0 1px 3px rgb(15 23 42 / 7%);
    transition: box-shadow 180ms ease;
}

.habdo-kpi-card:hover,
.habdo-alert-card:hover {
    box-shadow: 0 8px 24px rgb(15 23 42 / 10%);
}

.habdo-kpi-card-heading,
.habdo-alert-card > div:first-child {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.habdo-kpi-card-heading > div,
.habdo-alert-card > div:first-child > div {
    min-width: 0;
}

.habdo-kpi-label,
.habdo-alert-card > div:first-child p:first-child {
    color: #4b5563;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.habdo-kpi-value,
.habdo-alert-card > div:first-child p:last-child {
    margin-top: 0.5rem;
    color: #111827;
    font-size: 1.5rem;
    font-weight: 650;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.habdo-kpi-change {
    margin-top: 0.75rem;
    color: #6b7280;
    font-size: 0.75rem;
    line-height: 1.5;
}

.habdo-kpi-action {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

.habdo-finance-card h3 {
    color: #374151;
    font-size: 0.875rem;
    font-weight: 650;
}

.habdo-finance-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.habdo-finance-facts dt {
    color: #6b7280;
    line-height: 1.45;
}

.habdo-finance-facts dd {
    margin-top: 0.25rem;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.habdo-finance .fi-section-content > p {
    margin-top: 1rem;
    color: #6b7280;
    font-size: 0.8rem;
    line-height: 1.5;
}

.habdo-alert-card {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: box-shadow 180ms ease;
}

.habdo-alert-card[data-severity="danger"] { border-color: #fca5a5; background: #fef2f2; }
.habdo-alert-card[data-severity="warning"] { border-color: #fcd34d; background: #fffbeb; }
.habdo-alert-card[data-severity="success"] { border-color: #86efac; background: #f0fdf4; }

.habdo-alert-card > p {
    margin-top: 0.75rem;
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.5;
}

.habdo-alert-card > p:last-child {
    margin-top: 0.5rem;
    color: #111827;
    font-weight: 600;
}

.habdo-decision-lists { gap: 1.5rem; margin-top: 1.5rem; }
.habdo-decision-lists > section { min-width: 0; }
.habdo-decision-lists > section > div:first-child { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.habdo-decision-lists h3 { font-size: 0.875rem; font-weight: 650; }
.habdo-decision-lists > section > div:nth-child(2) > div,
.habdo-decision-lists > section > div:nth-child(2) > a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-top: 1px solid #e5e7eb; }
.habdo-decision-lists > section > div:nth-child(2) > a { color: inherit; text-decoration: none; }
.habdo-decision-lists > section > div:nth-child(2) > :last-child { border-bottom: 1px solid #e5e7eb; }
.habdo-decision-lists > section > div:nth-child(2) p { font-size: 0.8rem; line-height: 1.45; }
.habdo-decision-lists > section > div:nth-child(2) p:first-child { font-weight: 600; }

.habdo-countries-scroll { max-width: 100%; overflow-x: auto; border: 1px solid #e5e7eb; border-radius: 0.85rem; }
.habdo-countries-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.875rem; }
.habdo-countries-table thead { background: #f9fafb; }
.habdo-countries-table th,
.habdo-countries-table td { padding: 0.75rem 1rem; text-align: start; }
.habdo-countries-table th { color: #374151; font-weight: 650; }
.habdo-countries-table th:not(:first-child),
.habdo-countries-table td:not(:first-child) { text-align: end; }
.habdo-countries-table tbody tr { border-top: 1px solid #e5e7eb; }
.habdo-countries-table tbody tr:hover { background: #f9fafb; }
.habdo-countries-table tbody td:first-child { font-weight: 600; }
.habdo-countries-table tbody td:last-child { color: #0f766e; font-weight: 650; }

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

@media (min-width: 1024px) {
    .habdo-finance-grid,
    .habdo-decision-lists { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
    .habdo-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .habdo-alert-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.dark .habdo-kpi-card,
.dark .habdo-finance-card,
.dark .habdo-alert-card { background: #111827; border-color: rgb(255 255 255 / 12%); }
.dark .habdo-kpi-label,
.dark .habdo-finance-card h3,
.dark .habdo-alert-card > p { color: #d1d5db; }
.dark .habdo-kpi-value,
.dark .habdo-alert-card > div:first-child p:last-child,
.dark .habdo-alert-card > p:last-child { color: white; }
.dark .habdo-kpi-change,
.dark .habdo-finance-facts dt { color: #9ca3af; }
.dark .habdo-alert-card[data-severity="danger"] { border-color: #991b1b; background: #450a0a; }
.dark .habdo-alert-card[data-severity="warning"] { border-color: #92400e; background: #451a03; }
.dark .habdo-alert-card[data-severity="success"] { border-color: #166534; background: #052e16; }
.dark .habdo-countries-scroll,
.dark .habdo-countries-table tbody tr,
.dark .habdo-decision-lists > section > div:nth-child(2) > div,
.dark .habdo-decision-lists > section > div:nth-child(2) > a { border-color: rgb(255 255 255 / 12%); }
.dark .habdo-countries-table thead,
.dark .habdo-countries-table tbody tr:hover { background: #1f2937; }
.dark .habdo-countries-table th { color: #e5e7eb; }
.dark .habdo-countries-table tbody td:last-child { color: #5eead4; }
