/* Shared Hp* UI component styles (Lib/Ui Razor Class Library).
   Served at _content/Ui/hp-ui.css by both Hostport and Cupo.

   Every value that differs between the two portals is expressed through a
   --hp-* custom property whose VALUE is set by each portal's own small
   stylesheet (hostport-ui.css / cupo-ui.css). This file must not contain a
   hard-coded color, size, or spacing value that differs between portals —
   only shared structure, and colors/sizes that are already identical. */

.hp-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: var(--hp-page-header-gap-bottom);
}

.hp-page-header-breadcrumb {
    flex-basis: 100%;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.hp-page-header-text {
    min-width: 0;
}

.hp-page-header-title {
    margin: 0;
    font-size: var(--hp-page-header-title-size);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--hp-text);
    line-height: 1.2;
}

.hp-page-header-subtitle {
    margin: 0.35rem 0 0;
    font-size: var(--hp-page-header-subtitle-size);
    color: var(--hp-text-muted);
    line-height: 1.45;
}

.hp-page-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.hp-card {
    background: var(--hp-card-bg);
    border: 1px solid var(--hp-border-subtle);
    border-radius: var(--hp-radius);
    box-shadow: var(--hp-shadow-sm);
    overflow: hidden;
}

.hp-card.hp-card-interactive {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.hp-card.hp-card-interactive:hover {
    border-color: var(--hp-primary);
    box-shadow: var(--hp-shadow);
}

.hp-card[role="button"]:focus-visible {
    outline: 2px solid var(--hp-primary);
    outline-offset: 2px;
}

.hp-card-accent-header {
    padding: var(--hp-card-header-padding);
    background: var(--hp-card-header-bg);
    color: var(--hp-text);
    font-size: var(--hp-card-header-font-size);
    font-weight: 600;
    border-bottom: var(--hp-card-header-border);
}

.hp-card-body {
    padding: 1.25rem 1.5rem;
}

.hp-card-body.hp-card-body-flush {
    padding: 0;
}

.hp-card-body.hp-card-body-flush .rz-data-grid {
    border: none;
    box-shadow: none;
}

.hp-stat-card {
    background: var(--hp-stat-card-bg);
    border: 1px solid var(--hp-border-subtle);
    border-radius: var(--hp-radius-sm);
    padding: 1rem 1.25rem;
    min-width: 0;
    height: 100%;
}

.hp-stat-card-label {
    font-size: 0.75rem;
    font-weight: var(--hp-stat-label-weight);
    text-transform: var(--hp-stat-label-transform);
    letter-spacing: var(--hp-stat-label-letter-spacing);
    color: var(--hp-text-muted);
    margin: var(--hp-stat-label-margin);
}

.hp-stat-card-value {
    font-size: var(--hp-stat-value-size);
    font-weight: 700;
    color: var(--hp-text);
    margin: 0;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hp-stat-card-hint {
    font-size: 0.75rem;
    color: var(--hp-text-muted);
    margin: 0.35rem 0 0;
    min-height: 1.125rem;
    line-height: 1.35;
}

.hp-stat-card-hint-placeholder {
    visibility: hidden;
}

.hp-stat-card[role="button"]:focus-visible {
    outline: 2px solid var(--hp-primary);
    outline-offset: 2px;
}

.hp-stat-card.hp-stat-primary .hp-stat-card-value {
    color: var(--hp-primary-accent);
}

.hp-stat-card.hp-stat-success .hp-stat-card-value {
    color: var(--hp-success);
}

.hp-stat-card.hp-stat-warning .hp-stat-card-value {
    color: var(--hp-warning);
}

.hp-stat-card.hp-stat-danger .hp-stat-card-value {
    color: var(--hp-danger);
}

.hp-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: var(--hp-empty-state-padding);
}

.hp-empty-state-icon {
    font-size: var(--hp-empty-state-icon-size);
    color: var(--hp-text-muted);
    line-height: 1;
}

.hp-empty-state-title {
    margin: 0;
    font-size: var(--hp-empty-state-title-size);
    font-weight: 600;
    color: var(--hp-text);
}

.hp-empty-state-description {
    margin: 0;
    font-size: var(--hp-empty-state-description-size);
    color: var(--hp-text-muted);
    max-width: 28rem;
    line-height: 1.5;
}

.hp-empty-state-actions {
    margin-top: var(--hp-empty-state-actions-margin-top);
}

.hp-section {
    margin-bottom: var(--hp-section-margin-bottom);
}

.hp-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.hp-section-heading {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.hp-section-title {
    margin: 0;
    font-size: var(--hp-section-title-size);
    font-weight: 600;
    color: var(--hp-text);
}

.hp-section-description {
    margin: 0;
    font-size: 0.85rem;
    color: var(--hp-text-muted);
    max-width: 60rem;
    line-height: 1.5;
}

.hp-section-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
