/* ============================================
   ENTERPRISE DESIGN SYSTEM - OKR / DELIVERY MODULE
   Benchmark: Workday, Linear App, Monday Enterprise
   ============================================ */

/* Scoped container */
.okr-enterprise {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #f1f5f9;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease-out;
}

.okr-enterprise * {
    box-sizing: border-box;
}

/* Header */
.okr-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.okr-module-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #10b981;
    /* Emerald 500 */
    background: rgba(16, 185, 129, 0.1);
    padding: 0.35rem 0.75rem;
    border-radius: 99px;
    margin-bottom: 1rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.okr-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.okr-subtitle {
    font-size: 1rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
    max-width: 600px;
}

/* Tabs */
.okr-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1px;
}

.okr-tab-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.75rem 0.5rem;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.okr-tab-btn:hover {
    color: #e2e8f0;
}

.okr-tab-btn.active {
    color: #ffffff;
    font-weight: 600;
}

.okr-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #10b981;
    box-shadow: 0 -2px 5px rgba(16, 185, 129, 0.5);
}

/* KPI Grid */
.okr-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.okr-kpi-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 160px;
    position: relative;
}

.okr-kpi-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0.5rem 0;
}

.okr-kpi-label {
    font-size: 0.875rem;
    color: #94a3b8;
}

/* Delivery Lists/Grid */
.delivery-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.delivery-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.delivery-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.delivery-main {
    flex: 1;
}

.delivery-title {
    font-size: 1rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.25rem;
}

.delivery-meta {
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.delivery-status {
    padding: 0.25rem 0.625rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-draft {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-completed {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Buttons */
.btn-okr {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-okr-primary {
    background: #10b981;
    /* Emerald 500 */
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
}

.btn-okr-primary:hover {
    background: #059669;
    /* Emerald 600 */
    transform: translateY(-1px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}