html, body {
    height: 100%;
}

app {
    display: block;
    height: 100%;
}

.header-logo {
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: url('../images/Logo.svg');
    mask: url('../images/Logo.svg');
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    width: 28px;
    height: 24px;
}

#blazor-error-ui {
    background: inherit;
    bottom: 0;
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 100001;
}
/* ── Space Usage Consumption Panel ────────────────────────────────────── */
.space-usage-card {
    padding: 16px 20px;
    background: var(--dx-color-bg-primary, #fff);
    border-radius: 8px;
    border: 1px solid var(--dx-color-border, #e0e0e0);
    min-width: 280px;
    max-width: 520px;
    font-size: 0.9rem;
}
.space-usage-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.space-usage-id {
    font-weight: 600;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    opacity: 0.75;
    font-family: monospace;
}
.space-usage-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.badge-green  { background: #d1fae5; color: #065f46; }
.badge-blue   { background: #dbeafe; color: #1e40af; }
.badge-grey   { background: #f1f5f9; color: #475569; }

.space-usage-section { margin-bottom: 12px; }
.space-usage-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: var(--dx-color-text-secondary, #555);
}
.space-usage-count { font-weight: 600; color: var(--dx-color-text-primary, #222); }
.space-usage-unit  { font-weight: 400; font-size: 0.78rem; opacity: 0.6; margin-left: 3px; }

.space-usage-bar-track {
    height: 7px;
    background: var(--dx-color-border, #e0e0e0);
    border-radius: 4px;
    overflow: hidden;
}
.space-usage-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}
.bar-green  { background: #22c55e; }
.bar-orange { background: #f59e0b; }
.bar-red    { background: #ef4444; }

.space-usage-unlimited-hint {
    font-size: 0.78rem;
    color: #22c55e;
    font-style: italic;
}
.space-usage-loading, .space-usage-error {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dx-color-text-secondary, #666);
    font-size: 0.85rem;
}
.spinning {
    animation: spin 1s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
