
:root {
    --bg-primary: #0f1117;
    --bg-secondary: #1a1d27;
    --bg-tertiary: #242836;
    --bg-hover: #2a2f3e;
    --border: #2e3348;
    --text-primary: #e8eaf0;
    --text-secondary: #9498ab;
    --text-muted: #6b7089;
    --accent-blue: #5b8af5;
    --accent-green: #4ade80;
    --accent-amber: #f59e0b;
    --accent-red: #ef4444;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}


*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}


.mgmt-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.mgmt-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.mgmt-logo {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.mgmt-nav {
    display: flex;
    gap: 4px;
}

.mgmt-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
}

.mgmt-nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.mgmt-nav-link.active {
    color: var(--accent-blue);
    background: rgba(91, 138, 245, 0.1);
}


.mgmt-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 28px 32px;
}

.report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.report-header h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.report-filters select {
    font-family: inherit;
    font-size: 13px;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    outline: none;
}

.report-filters select:focus {
    border-color: var(--accent-blue);
}


.grid-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cell-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding-right: 8px;
}

.cell-progress-track {
    flex: 1;
    height: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    overflow: hidden;
}

.cell-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.cell-progress-value {
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    min-width: 42px;
    text-align: right;
}


.cell-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.cell-trend.up   { color: var(--accent-green); }
.cell-trend.down { color: var(--accent-red); }
.cell-trend.flat { color: var(--text-muted); }


.cell-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    height: 100%;
}

.cell-action-btn {
    font-family: inherit;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}

.cell-action-btn:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.cell-action-btn.primary {
    background: rgba(91, 138, 245, 0.12);
    border-color: rgba(91, 138, 245, 0.3);
    color: var(--accent-blue);
}

.cell-action-btn.primary:hover {
    background: rgba(91, 138, 245, 0.2);
    border-color: var(--accent-blue);
}

.chart-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.chart-modal-overlay.visible {
    display: flex;
}

.chart-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    width: 700px;
    max-width: 90vw;
    position: relative;
}

.chart-modal h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.chart-subtitle {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 20px;
}

.chart-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    line-height: 1;
}

.chart-close-btn:hover {
    color: var(--text-primary);
}

@media (max-width: 900px) {
    .mgmt-container {
        padding: 20px 16px;
    }
}

.mgmt-nav-right {
    margin-left: auto;
}

.mgmt-logout {
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
}

.mgmt-logout:hover {
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-sm);
}
