/* ═══════════════════════════════════════════════════════════════
   HirasWeb Uyumluluk CSS
   HirasMuhasebe CSS'inde olmayıp HirasWeb view'larında kullanılan class'lar
   admin-components.css'den SONRA yüklenir
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────
   ACTION BUTTON VARIANTS (HirasWeb'e özel)
   HirasMuhasebe: view, send, status, pdf, validate, more
   HirasWeb ek: edit, delete, toggle, detail
   ───────────────────────────────────────────────────────────── */
.action-btn.edit {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}
.action-btn.edit:hover {
    background: #10b981;
    color: white;
}

.action-btn.delete {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}
.action-btn.delete:hover {
    background: #dc2626;
    color: white;
}

.action-btn.toggle {
    background: rgba(255, 111, 15, 0.1);
    color: #FF6F0F;
}
.action-btn.toggle:hover {
    background: #FF6F0F;
    color: white;
}

.action-btn.detail {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}
.action-btn.detail:hover {
    background: #3b82f6;
    color: white;
}

/* ─────────────────────────────────────────────────────────────
   FILTER GROUP ACTIONS
   ───────────────────────────────────────────────────────────── */
.filter-group-actions {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}
.filter-group-actions .btn {
    margin-top: auto;
}

/* ─────────────────────────────────────────────────────────────
   PAGINATION (HirasMuhasebe stili)
   ───────────────────────────────────────────────────────────── */
.table-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    font-size: 14px;
    color: #64748b;
}

.pagination {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.page-item {
    list-style: none;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.page-link:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

.page-item.active .page-link {
    background: #FF6F0F;
    border-color: #FF6F0F;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 111, 15, 0.3);
}

/* ─────────────────────────────────────────────────────────────
   BOOTSTRAP UTILITY COMPAT
   View'larda kullanılan Bootstrap utility class'ları
   ───────────────────────────────────────────────────────────── */

/* Font Weight */
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }
.fw-normal { font-weight: 400; }

/* Margin */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-auto { margin-left: auto !important; }

/* Padding */
.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }

/* Border */
.border-bottom { border-bottom: 1px solid #e2e8f0 !important; }
.border-top { border-top: 1px solid #e2e8f0 !important; }
.border-0 { border: 0 !important; }
.rounded { border-radius: 8px !important; }

/* Display */
.d-inline { display: inline !important; }

/* Text */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-nowrap { white-space: nowrap; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-decoration-none { text-decoration: none; }

/* ─────────────────────────────────────────────────────────────
   ALERT COMPAT
   ───────────────────────────────────────────────────────────── */
.alert[role="alert"] {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.alert[role="alert"] i {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ─────────────────────────────────────────────────────────────
   FORM COMPAT (kaçmış form-control/form-select fallback)
   ───────────────────────────────────────────────────────────── */
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #1e293b;
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
}
.form-control:focus {
    outline: 0;
    border-color: #ff6f0f;
    box-shadow: 0 0 0 3px rgba(255, 111, 15, 0.1);
}

.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: #1e293b;
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
}
.form-select:focus {
    outline: 0;
    border-color: #ff6f0f;
    box-shadow: 0 0 0 3px rgba(255, 111, 15, 0.1);
}

/* Validation */
.text-danger { color: #dc2626; }
.field-validation-error { color: #dc2626; font-size: 0.8rem; }
.input-validation-error { border-color: #dc2626 !important; }

/* Required */
.required { color: #dc2626; }

/* ─────────────────────────────────────────────────────────────
   CARD COMPAT (eski view'larda kalan card class'ları)
   ───────────────────────────────────────────────────────────── */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.card-header {
    padding: 1.25rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-body {
    padding: 1.25rem;
}

/* ─────────────────────────────────────────────────────────────
   TABLE RESPONSIVE
   ───────────────────────────────────────────────────────────── */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table tbody tr.selected {
    background: #eff6ff;
}

/* ─────────────────────────────────────────────────────────────
   DROPDOWN COMPAT (basit — Bootstrap olmadan)
   ───────────────────────────────────────────────────────────── */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 1050;
    min-width: 180px;
}
.dropdown.open .dropdown-menu,
.dropdown-menu.show {
    display: block;
}
.dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: #334155;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.15s;
    border-radius: 6px;
}
.dropdown-item:hover {
    background: #f8fafc;
    color: #1e293b;
}
