/* ═══════════════════════════════════════════════════════════════
   LIDVOR ERP — Modern Sayfa Stilleri v6.0
   46+ sayfa tarafından kullanılan ortak CSS kuralları
   ═══════════════════════════════════════════════════════════════ */

/* --- Page Header --- */
.page-header {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 50%, #1a237e 100%);
    border-radius: 16px;
    padding: 20px 28px;
    margin-bottom: 18px;
    color: #fff;
    box-shadow: 0 4px 20px rgba(21,101,192,0.2);
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -15%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: -60%;
    left: -10%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    pointer-events: none;
}
.page-header h4 { font-weight: 700; letter-spacing: -0.3px; margin: 0; font-size: 1.2rem; position: relative; z-index: 1; }
.page-header .mud-typography-body2 { font-size: 0.72rem; opacity: 0.85; position: relative; z-index: 1; }
.page-header .mud-button-root { position: relative; z-index: 1; }

/* --- KPI Kartları --- */
.kpi-card {
    border-radius: 12px;
    padding: 14px 18px;
    height: 100%;
    transition: all 0.3s ease;
    cursor: default;
    border: 1px solid rgba(0,0,0,0.06);
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.kpi-value { font-size: 1.3rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.kpi-label { font-size: 0.68rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.65; margin-top: 3px; }
.kpi-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.kpi-icon .mud-icon-root { font-size: 18px !important; }

/* --- Filtre Barı --- */
.filter-bar {
    background: #FFFFFF;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.filter-bar:focus-within {
    box-shadow: 0 2px 12px rgba(21,101,192,0.08);
    border-color: rgba(21,101,192,0.15);
}

/* --- Data Table --- */
.data-table .mud-table-head th { background: #F8FAFC !important; font-weight: 600 !important; font-size: 0.7rem !important; text-transform: uppercase; letter-spacing: 0.04em; color: #64748b !important; border-bottom: 2px solid #E2E8F0 !important; padding: 8px 14px !important; }
.data-table .mud-table-body tr:hover { background: #EFF6FF !important; }
.data-table .mud-table-body td { font-size: 0.8rem; padding: 6px 14px !important; transition: background 0.15s ease; }
.data-table .mud-table-body tr { height: auto !important; }
.data-table .mud-table-body td .mud-typography { font-size: 0.8rem !important; margin: 0 !important; line-height: 1.3 !important; }
.data-table .mud-table-body td .mud-chip { margin: 0 !important; height: 22px !important; }
.data-table .mud-table-foot td { padding: 6px 14px !important; }

/* --- Belge No & Tutar --- */
.belge-no { color: #1565c0; font-weight: 600; cursor: pointer; font-size: 0.8rem; transition: color 0.15s ease; }
.belge-no:hover { text-decoration: underline; color: #0D47A1; }
.tutar-col { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 0.8rem; letter-spacing: -0.01em; }

/* --- Aksiyon Butonları --- */
.action-btn { min-width: 28px !important; width: 28px !important; height: 28px !important; }

/* --- Footer Toplamlar --- */
.footer-totals td { background: #F8FAFC !important; font-weight: 600 !important; border-top: 2px solid #1565c0 !important; font-size: 0.8rem; }

/* --- Kalem Tablosu (Dialog içi) --- */
.kalem-th { background: #F8FAFC !important; font-weight: 600 !important; font-size: 0.7rem !important; text-transform: uppercase; letter-spacing: 0.04em; color: #64748b !important; padding: 4px 8px !important; }
.kalem-table .mud-table-body td { padding: 2px 8px !important; font-size: 0.8rem; }
.kalem-table .mud-table-body tr { height: auto !important; }
.kalem-table .mud-table-body td .mud-input { font-size: 0.8rem !important; }
.kalem-table .mud-table-body td .mud-input-root { padding: 2px 4px !important; }

/* --- Dialog Section Title --- */
.dialog-section-title {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 10px;
    border-bottom: 2px solid #1565c0;
    padding-bottom: 6px;
    display: inline-block;
}

/* --- Özet Kutusu --- */
.summary-box {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    border-radius: 12px;
    padding: 18px 22px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
.summary-total { border-top: 2px solid #1565c0; padding-top: 8px; margin-top: 4px; }

/* --- TL Karşılık Kutusu --- */
.tl-karsilik { background: #fff8e1; padding: 6px 12px; border-radius: 8px; border-left: 3px solid #f9a825; }

/* --- Belge Önizleme (inline preview — NOT print-preview.css) --- */
.preview-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1300; display: flex; justify-content: center; align-items: flex-start; padding: 70px 20px 20px 20px; overflow-y: auto; }
.preview-container { background: #fff; max-width: 900px; width: 100%; border-radius: 16px; box-shadow: 0 25px 60px rgba(0,0,0,0.25); overflow: hidden; }
.preview-toolbar { background: linear-gradient(135deg, #1565c0 0%, #0D47A1 100%); color: #fff; padding: 14px 22px; display: flex; justify-content: space-between; align-items: center; }
.preview-toolbar button { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.3); padding: 6px 14px; border-radius: 8px; cursor: pointer; font-size: 0.8rem; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; transition: background 0.2s; }
.preview-toolbar button:hover { background: rgba(255,255,255,0.25); }
.preview-toolbar .btn-primary { background: #fff; color: #1565c0; font-weight: 600; border: none; }
.preview-body { padding: 24px 28px; font-family: 'Inter', 'Segoe UI', Arial, Helvetica, sans-serif; font-feature-settings: normal; }
.preview-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 3px solid #1565c0; }
.preview-firma { flex: 1; }
.preview-firma h2 { margin: 0 0 3px; font-size: 1rem; color: #1565c0; }
.preview-firma p { margin: 1px 0; font-size: 0.7rem; color: #555; }
.preview-belge-tipi { text-align: right; }
.preview-belge-tipi h1 { margin: 0; font-size: 1.2rem; color: #1565c0; letter-spacing: 1px; }
.preview-belge-tipi .belge-no { font-size: 0.8rem; color: #333; margin-top: 3px; }
.preview-info-row { display: flex; gap: 16px; margin-bottom: 16px; }
.preview-info-box { flex: 1; background: #F8FAFC; border-radius: 10px; padding: 10px 14px; border-left: 3px solid #1565c0; }
.preview-info-box h4 { margin: 0 0 5px; font-size: 0.6rem; text-transform: uppercase; color: #888; letter-spacing: 0.5px; }
.preview-info-box p { margin: 1px 0; font-size: 0.72rem; color: #333; letter-spacing: 0.01em; }
.preview-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.preview-table th { background: #1565c0; color: #fff; padding: 6px 10px; font-size: 0.63rem; text-transform: uppercase; letter-spacing: 0.3px; text-align: left; border-radius: 0; }
.preview-table td { padding: 4px 10px; border-bottom: 1px solid #E2E8F0; font-size: 0.75rem; }
.preview-table tr:nth-child(even) { background: #F8FAFC; }
.preview-totals { margin-top: 12px; display: flex; justify-content: flex-end; }
.preview-totals-box { width: 260px; }
.preview-totals-row { display: flex; justify-content: space-between; padding: 3px 0; font-size: 0.75rem; }
.preview-totals-row.total { border-top: 2px solid #1565c0; padding-top: 6px; margin-top: 4px; font-weight: 700; font-size: 0.85rem; color: #1565c0; }
.preview-notes { margin-top: 16px; padding: 10px 14px; background: #fffde7; border-radius: 10px; border-left: 3px solid #fbc02d; font-size: 0.75rem; color: #555; }
.preview-footer { margin-top: 18px; padding-top: 10px; border-top: 1px solid #E2E8F0; text-align: center; font-size: 0.6rem; color: #999; }
.preview-imza-row { display: flex; justify-content: space-between; margin-top: 30px; gap: 40px; }
.preview-imza-kutu { flex: 1; border-top: 1px solid #ccc; padding-top: 8px; text-align: center; font-size: 0.7rem; color: #888; }
