/* Executive Dashboard Styles */

.exec-dashboard {
    padding: 24px;
    background: #f8f9fa;
    min-height: 100vh;
}

/* Header */
.exec-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    background: #fff;
    padding: 20px 24px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.exec-title-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.exec-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.exec-title i {
    color: #3b82f6;
}

.exec-date-info {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.exec-filters {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

.exec-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.exec-filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.exec-btn-refresh {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.exec-btn-refresh:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Loading State */
.exec-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 500px;
    gap: 16px;
}

.exec-loading p {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

/* KPI Cards Row */
.exec-kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.exec-kpi-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all 0.3s;
}

.exec-kpi-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.kpi-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.kpi-icon.opening {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
}

.kpi-icon.net-flow.positive {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.kpi-icon.net-flow.negative {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}

.kpi-icon.projection {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #fff;
}

.kpi-icon.monthly {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
}

.kpi-icon.runway {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: #fff;
}

.kpi-icon.accuracy {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.kpi-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.kpi-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-value {
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.kpi-value.positive {
    color: #10b981;
}

.kpi-value.negative {
    color: #ef4444;
}

.kpi-currency {
    font-size: 16px;
    font-weight: 600;
    color: #94a3b8;
}

.kpi-change {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.kpi-change.positive {
    color: #10b981;
}

.kpi-change.negative {
    color: #ef4444;
}

.kpi-meta {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kpi-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.kpi-badge.critical {
    background: #fee2e2;
    color: #dc2626;
}

.kpi-badge.safe {
    background: #d1fae5;
    color: #065f46;
}

/* Main Content Grid */
.exec-content-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.exec-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.exec-panel-left {
    grid-column: span 4;
}

.exec-panel-center {
    grid-column: span 5;
}

.exec-panel-right {
    grid-column: span 3;
}

.exec-panel-bottom-left {
    grid-column: span 6;
}

.exec-panel-bottom-right {
    grid-column: span 6;
}

.exec-panel-bottom-alerts {
    grid-column: span 12;
}

.exec-panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exec-panel-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.exec-panel-title i {
    color: #3b82f6;
}

.exec-panel-subtitle {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.exec-panel-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.exec-legend {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.tahsilat {
    background: #10b981;
}

.legend-dot.odeme {
    background: #ef4444;
}

.legend-dot.net {
    background: #3b82f6;
}

.exec-panel-body {
    padding: 20px;
}

/* Treasury Focus List */
.treasury-focus-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.treasury-focus-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.treasury-focus-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.treasury-focus-item.critical {
    background: #fef2f2;
    border-color: #fecaca;
}

.treasury-focus-item.warning {
    background: #fffbeb;
    border-color: #fde68a;
}

.treasury-focus-item.normal {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.focus-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.treasury-focus-item.critical .focus-icon {
    background: #fee2e2;
    color: #dc2626;
}

.treasury-focus-item.warning .focus-icon {
    background: #fef3c7;
    color: #d97706;
}

.treasury-focus-item.normal .focus-icon {
    background: #e0e7ff;
    color: #4f46e5;
}

.focus-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.focus-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.focus-value {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.focus-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

.focus-badge.critical {
    background: #dc2626;
    color: #fff;
}

.focus-badge.warning {
    background: #f59e0b;
    color: #fff;
}

.focus-badge.normal {
    background: #3b82f6;
    color: #fff;
}

/* Memo Table */
.memo-table-wrapper {
    border-radius: 8px;
    overflow: hidden;
}

.memo-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.memo-badge.badge-critical {
    background: #fee2e2;
    color: #dc2626;
}

.memo-badge.badge-warning {
    background: #fef3c7;
    color: #d97706;
}

.memo-badge.badge-normal {
    background: #e0e7ff;
    color: #4f46e5;
}

/* Alert List */
.alert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-item.critical {
    background: #fef2f2;
    border-left-color: #ef4444;
}

.alert-item.warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
}

.alert-item.info {
    background: #eff6ff;
    border-left-color: #3b82f6;
}

.alert-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.alert-item.critical .alert-icon {
    color: #ef4444;
}

.alert-item.warning .alert-icon {
    color: #f59e0b;
}

.alert-item.info .alert-icon {
    color: #3b82f6;
}

.alert-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.alert-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.alert-message {
    font-size: 13px;
    color: #64748b;
}

.alert-time {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 1400px) {
    .exec-panel-left,
    .exec-panel-center,
    .exec-panel-right {
        grid-column: span 12;
    }
}

@media (max-width: 768px) {
    .exec-header {
        flex-direction: column;
        gap: 16px;
    }

    .exec-filters {
        flex-wrap: wrap;
    }

    .exec-kpi-row {
        grid-template-columns: 1fr;
    }

    .exec-panel-bottom-left,
    .exec-panel-bottom-right {
        grid-column: span 12;
    }
}
