:root {
    --eecd-primary: #123A6B;
    --eecd-secondary: #5B9BD5;
    --eecd-background: #F1F1F1;
    --eecd-text: #404040;
}

html,
body {
    font-family: 'Raleway', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: var(--eecd-background);
    color: var(--eecd-text);
}

.eecd-appbar {
    background-color: var(--eecd-primary);
}

.eecd-appbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.eecd-appbar-logo-mark {
    width: 2.25rem;
    height: 2.25rem;
    border: 2px solid rgba(255, 255, 255, 0.88);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.eecd-appbar-title {
    color: white;
    font-weight: 700;
    line-height: 1.1;
}

.eecd-appbar-subtitle {
    color: rgba(255, 255, 255, 0.78);
    letter-spacing: 0.02em;
}

.eecd-appbar-environment {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    margin-right: 0.5rem;
    font-weight: 600;
}

.eecd-drawer {
    border-right: 1px solid rgba(18, 58, 107, 0.12);
}

.eecd-drawer-header {
    min-height: 5.5rem;
    border-bottom: 1px solid rgba(18, 58, 107, 0.12);
}

.eecd-drawer-title {
    color: var(--eecd-primary);
    font-weight: 700;
}

.eecd-drawer-subtitle {
    color: rgba(64, 64, 64, 0.72);
}

.eecd-main-content {
    background: var(--eecd-background);
    min-height: 100vh;
}

.eecd-page-container {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

.eecd-nav-menu {
    padding-top: 0.5rem;
}

.eecd-nav-section-title {
    display: block;
    color: rgba(64, 64, 64, 0.68);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0 1rem 0.35rem 1rem;
}

.eecd-nav-loading {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    color: rgba(64, 64, 64, 0.72);
}

.eecd-nav-empty-state {
    display: block;
    color: rgba(64, 64, 64, 0.72);
    padding: 0.65rem 1rem;
    line-height: 1.4;
}

.mud-nav-link.active {
    color: var(--eecd-primary);
    font-weight: 700;
}

.mud-button-root {
    text-transform: none;
}

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: var(--eecd-primary);
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

.eecd-feature-header {
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    border-left: 4px solid var(--eecd-primary);
}

.eecd-feature-title {
    color: var(--eecd-primary);
    font-weight: 700;
}

.eecd-feature-subtitle {
    color: rgba(64, 64, 64, 0.72);
}

.eecd-feature-toolbar {
    padding: 1rem;
}

.eecd-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.eecd-feature-state {
    padding: 2rem;
    min-height: 16rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    text-align: center;
    color: rgba(64, 64, 64, 0.75);
}

.eecd-pagination-container {
    padding: 0.75rem 1rem;
    background: transparent;
}

.eecd-equipment-card {
    padding: 1rem;
}

.eecd-equipment-card-title {
    color: var(--eecd-primary);
    font-weight: 700;
}

@media (max-width: 959.98px) {
    .eecd-toolbar-actions {
        justify-content: flex-start;
    }

    .eecd-feature-header {
        padding: 1rem;
    }
}

.eecd-compartment-chip-list {
    flex-wrap: wrap;
}

.eecd-compartment-chip {
    width: 1.5rem;
    min-width: 1.5rem;
    max-width: 1.5rem;
    height: 1.5rem;
    min-height: 1.5rem;
    padding: 0;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.eecd-compartment-chip .mud-chip-content {
    padding: 0;
    width: 100%;
    justify-content: center;
}

.eecd-compartment-chip-unknown {
    opacity: 0.75;
}

.eecd-details-card {
    padding: 1.25rem;
}

.eecd-details-card-title {
    color: var(--eecd-primary);
    font-weight: 700;
}

.eecd-detail-label {
    width: 42%;
    color: rgba(64, 64, 64, 0.68);
    font-weight: 600;
    vertical-align: top;
}

.eecd-detail-value {
    color: var(--eecd-text);
    font-weight: 500;
    word-break: break-word;
}

.eecd-muted-text {
    color: rgba(64, 64, 64, 0.68);
}

@media (max-width: 599.98px) {
    .eecd-details-card {
        padding: 1rem;
    }

    .eecd-detail-label {
        width: 48%;
    }
}

.eecd-detail-back-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.eecd-detail-action-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
}

.eecd-compartment-form-row {
    padding: 0.75rem;
    border: 1px solid rgba(18, 58, 107, 0.12);
    border-radius: 0.5rem;
    background: rgba(241, 241, 241, 0.45);
}

.eecd-form-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.eecd-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    background: transparent;
}

@media (max-width: 599.98px) {
    .eecd-form-actions {
        justify-content: stretch;
        flex-direction: column;
        align-items: stretch;
    }

    .ecd-form-row-actions {
        justify-content: flex-start;
    }
}
