/* TaxAI AI Management OS Pro Dashboard v1170 */

.ai-mgmt-pro {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.ai-mgmt-pro * {
    box-sizing: border-box;
}

.ai-mgmt-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 12%, rgba(37,99,235,.18), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 48%, #eef4ff 100%) !important;
}

.ai-mgmt-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 220px;
    height: 220px;
    background: rgba(37,99,235,.08);
    border-radius: 999px;
    pointer-events: none;
}

.ai-mgmt-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.ai-mgmt-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    color: #1e40af;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(37,99,235,.08);
}

.ai-mgmt-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.ai-mgmt-kpi {
    position: relative;
    min-height: 132px;
    padding: 20px;
    overflow: hidden;
}

.ai-mgmt-kpi::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37,99,235,.08), transparent 45%);
    pointer-events: none;
}

.ai-mgmt-kpi-label {
    position: relative;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 10px;
}

.ai-mgmt-kpi-value {
    position: relative;
    color: #0f172a;
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.04em;
}

.ai-mgmt-kpi-note {
    position: relative;
    margin-top: 12px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.ai-mgmt-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
    gap: 18px;
    align-items: start;
}

.ai-mgmt-section {
    padding: 22px !important;
}

.ai-mgmt-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.ai-mgmt-section-title {
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
}

.ai-mgmt-section-sub {
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
    margin: 4px 0 0;
}

.ai-mgmt-bars {
    display: grid;
    gap: 14px;
}

.ai-mgmt-bar-item {
    display: grid;
    gap: 7px;
}

.ai-mgmt-bar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.ai-mgmt-bar-track {
    height: 12px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.ai-mgmt-bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #4f46e5);
}

.ai-mgmt-timeline {
    display: grid;
    gap: 14px;
}

.ai-mgmt-timeline-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
}

.ai-mgmt-dot {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    display: grid;
    place-items: center;
    font-weight: 900;
    border: 1px solid #bfdbfe;
}

.ai-mgmt-timeline-body {
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.ai-mgmt-timeline-title {
    color: #0f172a;
    font-weight: 900;
    font-size: 14px;
}

.ai-mgmt-timeline-text {
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
    margin-top: 4px;
}

.ai-mgmt-alert-list {
    display: grid;
    gap: 12px;
}

.ai-mgmt-alert {
    border: 1px solid #e2e8f0;
    border-left: 5px solid #2563eb;
    border-radius: 14px;
    padding: 14px;
    background: #ffffff;
}

.ai-mgmt-alert.is-warn {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.ai-mgmt-alert.is-danger {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.ai-mgmt-alert-title {
    color: #0f172a;
    font-weight: 900;
    font-size: 14px;
}

.ai-mgmt-alert-text {
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
    margin-top: 4px;
}

.ai-mgmt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ai-mgmt-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-weight: 900;
    font-size: 13px;
    text-decoration: none;
}

.ai-mgmt-action-btn:hover {
    background: #dbeafe;
    color: #1e40af;
}

@media (max-width: 1180px) {
    .ai-mgmt-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ai-mgmt-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .ai-mgmt-grid {
        grid-template-columns: 1fr;
    }

    .ai-mgmt-section-head {
        flex-direction: column;
    }

    .ai-mgmt-kpi-value {
        font-size: 30px;
    }
}
