/* Netsis ERP - projeye özel stil ezmeleri.
   AdminLTE + Bootstrap 4 üzerine eklenir. */

/* Kaydırılabilir modal içinde tablo başlığını sabit tut. */
.modal-dialog-scrollable .modal-body table.sticky-thead thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background-color: #e9ecef; /* thead-light ile uyumlu */
}

/* ===========================================================================
   Modern form & buton stili (AdminLTE/Bootstrap 4 varsayılanını yeniler)
   =========================================================================== */
:root {
    --nt-primary: #4f6df5;
    --nt-primary-dark: #3a55d9;
    --nt-border: #e3e8f0;
    --nt-radius: 0.55rem;
    --nt-focus: rgba(79, 109, 245, 0.18);
}

/* Input / select / textarea */
.form-control,
.custom-select,
select.form-control {
    border: 1px solid var(--nt-border);
    border-radius: var(--nt-radius);
    background-color: #fff;
    color: #2d3748;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-control:hover,
select.form-control:hover {
    border-color: #c7d0e0;
}

.form-control:focus,
.custom-select:focus,
select.form-control:focus {
    border-color: var(--nt-primary);
    box-shadow: 0 0 0 0.18rem var(--nt-focus);
    outline: 0;
}

/* Küçük (sm) kontroller biraz daha ferah ve okunur */
.form-control-sm,
select.form-control-sm {
    height: calc(1.6em + 0.6rem + 2px);
    padding: 0.3rem 0.7rem;
    font-size: 0.85rem;
    border-radius: 0.5rem;
}

/* Native select için modern ok ikonu */
select.form-control,
select.form-control-sm {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    padding-right: 1.9rem;
}

.form-control::placeholder { color: #9aa5b8; }

/* Input group (arama kutuları + buton) modern köşeler */
.input-group .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group-append .btn,
.input-group-append .input-group-text {
    border-top-right-radius: var(--nt-radius);
    border-bottom-right-radius: var(--nt-radius);
}
.input-group-text {
    border: 1px solid var(--nt-border);
    background-color: #f6f8fc;
    color: #6b7280;
}

/* ---- Butonlar ---- */
.btn {
    border-radius: var(--nt-radius);
    font-weight: 500;
    letter-spacing: .1px;
    transition: transform .04s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { border-radius: 0.5rem; }

.btn-primary {
    background-color: var(--nt-primary);
    border-color: var(--nt-primary);
    box-shadow: 0 2px 6px rgba(79, 109, 245, 0.25);
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--nt-primary-dark);
    border-color: var(--nt-primary-dark);
    box-shadow: 0 4px 12px rgba(79, 109, 245, 0.32);
}

.btn-outline-secondary {
    border-color: var(--nt-border);
    color: #5a6478;
}
.btn-outline-secondary:hover {
    background-color: #f1f4fa;
    border-color: #c7d0e0;
    color: #2d3748;
}

/* Odak halkası tüm butonlarda yumuşak */
.btn:focus, .btn.focus { box-shadow: 0 0 0 0.18rem var(--nt-focus); }

/* Form etiketleri biraz daha okunur */
label { font-weight: 500; color: #44506a; }

/* Kartlara hafif yumuşaklık */
.card { border-radius: 0.6rem; }
.card.card-outline { border-top-width: 2px; }

/* ---- Modern tablo görünümü (.tablo-modern) ---- */
.tablo-modern { border-collapse: separate; border-spacing: 0; }
.tablo-modern thead th {
    background: #f7f9fc;
    color: #6b7280;
    text-transform: uppercase;
    font-size: .72rem;
    letter-spacing: .4px;
    font-weight: 600;
    border: 0;
    border-bottom: 2px solid #eef1f6;
    padding: .6rem .75rem;
    white-space: nowrap;
}
.tablo-modern tbody td {
    border: 0;
    border-bottom: 1px solid #f0f2f7;
    padding: .55rem .75rem;
    vertical-align: middle;
}
.tablo-modern tbody tr { transition: background-color .12s ease; }
.tablo-modern tbody tr:hover { background-color: #eef3ff; }
.tablo-modern tbody tr:hover td { color: #1f2a44; }
.tablo-modern tbody tr:last-child td { border-bottom: 0; }
.tablo-modern tfoot td {
    border: 0;
    border-top: 2px solid #eef1f6;
    background: #fafbfe;
    padding: .55rem .75rem;
}
/* Sağa hizalı tutar sütunlarında tabular sayılar */
.tablo-modern td.text-right, .tablo-modern th.text-right {
    font-variant-numeric: tabular-nums;
}
