:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    margin: 0;
}

.nav-link {
    display: block;
    min-width: max-content;
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    color: #475569;
    font-size: 0.925rem;
    font-weight: 500;
    text-decoration: none;
}

.nav-link:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.nav-link-active {
    background: #0f172a;
    color: #ffffff;
}

.panel {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.panel-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem;
}

.panel-body {
    padding: 1rem;
}

.field {
    display: block;
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.625rem 0.75rem;
    color: #0f172a;
    font-size: 0.925rem;
}

.field:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
    outline: none;
}

.label {
    display: block;
    margin-bottom: 0.35rem;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: #0f766e;
    color: #ffffff;
}

.btn-primary:hover {
    background: #115e59;
}

.btn-secondary {
    border-color: #cbd5e1;
    background: #ffffff;
    color: #0f172a;
}

.btn-secondary:hover {
    background: #f8fafc;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th {
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0;
    text-align: left;
    text-transform: uppercase;
}

.data-table td {
    border-bottom: 1px solid #f1f5f9;
    padding: 0.75rem 1rem;
    vertical-align: top;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-muted {
    background: #f1f5f9;
    color: #475569;
}

.badge-green {
    background: #dcfce7;
    color: #166534;
}

.badge-yellow {
    background: #fef9c3;
    color: #854d0e;
}

.badge-red {
    background: #ffe4e6;
    color: #9f1239;
}

.form-grid {
    display: grid;
    gap: 0.9rem;
}

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

    .form-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .form-grid-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

