* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: #f0f2f5;
    color: #1a1a2e;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Navbar */
.navbar {
    background: #1a1a2e;
    color: #fff;
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-brand {
    font-size: 1.2rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: #fff;
}

.nav-user {
    color: #aaa;
    font-size: 0.85rem;
}

.btn-logout {
    background: #e94560;
    color: #fff !important;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}

/* Cards */
.card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

.card h2 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: #1a1a2e;
}

/* Login */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    background: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #1a1a2e;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95rem;
    text-decoration: none;
    font-weight: 600;
}

.btn-primary {
    background: #0f3460;
    color: #fff;
}

.btn-primary:hover {
    background: #16213e;
}

.btn-success {
    background: #2ecc71;
    color: #fff;
}

.btn-success:hover {
    background: #27ae60;
}

.btn-danger {
    background: #e94560;
    color: #fff;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Alerts */
.alert {
    padding: 0.8rem 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff8e6;
    color: #7a5c00;
    border: 1px solid #f0d878;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Table */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

table th,
table td {
    padding: 0.7rem 0.8rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

table th {
    background: #f8f9fa;
    font-weight: 600;
    white-space: nowrap;
}

table tr:hover {
    background: #f8f9ff;
}

/* Data table — panel UI (sade, geniş sütunlar) */
.data-table-wrap {
    overflow-x: auto;
}

.data-table {
    width: max-content;
    min-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.65rem 0.85rem;
    vertical-align: top;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.45;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.data-table tbody tr:hover {
    background: #f8f9ff;
}

.col-sira { width: 65px; min-width: 65px; max-width: 65px; text-align: center; }
.col-il { width: 110px; min-width: 110px; }
.col-adi { width: 300px; min-width: 300px; }
.col-tur { width: 240px; min-width: 240px; }
.col-adres { width: 360px; min-width: 360px; }
.col-telefon { width: 140px; min-width: 140px; }
.col-mail { width: 200px; min-width: 200px; }
.col-tarih { width: 130px; min-width: 130px; }
.col-default { width: 160px; min-width: 160px; }
.col-actions { width: 150px; min-width: 150px; text-align: center; }

.edit-table .cell-input {
    width: 100%;
    min-width: 100%;
    padding: 0.4rem 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
}

.edit-table .cell-empty {
    background: #fff8e6;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: #fff;
    padding: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
}

.stat-card .number {
    font-size: 2rem;
    font-weight: 700;
    color: #0f3460;
}

.stat-card .label {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.3rem;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.filter-bar .form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 150px;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    background: #e8eaf6;
    color: #283593;
}

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #555;
    font-size: 1rem;
    background: #f8f9fb;
    border: 1px dashed #ccd3de;
    border-radius: 8px;
}

.hidden-form {
    display: none;
}

.result-info-bar {
    padding: 0.75rem 1rem;
    background: #eef2f7;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-weight: 500;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
}

.result-info-bar .bulk-edit-toggle {
    margin-left: auto;
}

.bulk-edit-panel {
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
    background: #f4f8fc;
    border: 1px solid #d5e0ec;
    border-radius: 8px;
}

.bulk-edit-panel h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.bulk-edit-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 0.75rem;
}

.bulk-edit-hint {
    font-size: 0.82rem;
    margin-top: 0.35rem;
}

.bulk-edit-form .form-actions {
    margin-top: 1rem;
}

/* Uygulama onay modalı */
body.app-modal-open {
    overflow: hidden;
}

.app-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 52, 96, 0.45);
    backdrop-filter: blur(2px);
}

.app-modal-overlay[hidden] {
    display: none !important;
}

.app-modal {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(15, 52, 96, 0.25);
    overflow: hidden;
    animation: appModalIn 0.2s ease-out;
}

@keyframes appModalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.app-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #0f3460;
    color: #fff;
}

.app-modal-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.app-modal-close {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.15rem;
}

.app-modal-close:hover {
    color: #fff;
}

.app-modal-body {
    padding: 1.15rem 1.25rem 0.5rem;
}

.app-modal-message {
    margin: 0;
    color: #444;
    line-height: 1.5;
}

.app-modal-detail {
    margin-top: 1rem;
}

.app-modal-summary {
    margin: 0;
    padding: 0.85rem 1rem;
    background: #f4f8fc;
    border: 1px solid #d5e0ec;
    border-radius: 8px;
}

.app-modal-summary div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid #e8edf2;
}

.app-modal-summary div:last-child {
    border-bottom: none;
}

.app-modal-summary dt {
    margin: 0;
    font-size: 0.88rem;
    color: #666;
    font-weight: 500;
}

.app-modal-summary dd {
    margin: 0;
    text-align: right;
    color: #0f3460;
}

.app-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    padding: 1rem 1.25rem 1.15rem;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.page-header h2 {
    margin-bottom: 0;
}

.header-actions,
.quick-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
}

.text-muted {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.checkbox-item {
    cursor: pointer;
}

.result-info {
    margin: 1rem 0;
    font-size: 0.95rem;
}

.row-selected {
    background: #eef6ff !important;
}

.actions-cell {
    white-space: nowrap;
}

.inline-form {
    display: inline;
}

.cell-wrap {
    max-width: 280px;
    white-space: normal;
}

.liste-secim-form {
    margin-top: 0.5rem;
}

.sutun-builder-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sutun-builder-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.sutun-add-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    padding: 1rem;
    background: #f8f9fb;
    border-radius: 8px;
    border: 1px dashed #ccd3dc;
    margin-bottom: 1rem;
}

.sutun-add-row input[type="text"] {
    flex: 1;
    min-width: 180px;
    padding: 0.55rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.sutun-add-row select {
    padding: 0.55rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.checkbox-inline input {
    width: auto;
}

.sutun-listesi {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sutun-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    transition: border-color 0.15s;
}

.sutun-item:hover {
    border-color: #0f3460;
}

.sutun-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.sutun-item-title {
    font-weight: 600;
    color: #1a1a2e;
}

.sutun-item-meta {
    font-size: 0.8rem;
    color: #888;
}

.sutun-remove {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #fde8ec;
    color: #e94560;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.sutun-remove:hover {
    background: #e94560;
    color: #fff;
}

.sutun-empty {
    text-align: center;
    padding: 2rem;
    color: #999;
    border: 1px dashed #ddd;
    border-radius: 8px;
}

.form-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.filter-panel {
    margin-bottom: 0.5rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.85rem;
}

.filter-field {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.85rem 1rem;
}

.filter-field--wide {
    grid-column: 1 / -1;
}

.filter-field-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.65rem;
}

.filter-field-tools {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
}

.filter-funnel-wrap {
    position: relative;
    flex-shrink: 0;
}

.filter-funnel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #0f3460;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.filter-funnel-btn:hover {
    background: #eef3fb;
    border-color: #94a3b8;
}

.filter-funnel-btn[aria-expanded="true"] {
    background: #0f3460;
    border-color: #0f3460;
    color: #fff;
}

.filter-funnel-icon {
    display: block;
}

.filter-funnel-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 30;
    min-width: 220px;
    max-width: 280px;
    max-height: 320px;
    overflow-y: auto;
    padding: 0.35rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 52, 96, 0.12);
}

.filter-funnel-dropdown--wide {
    min-width: 280px;
    max-width: 420px;
}

.filter-funnel-dropdown-title {
    padding: 0.35rem 0.55rem 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
}

.filter-funnel-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.5rem 0.55rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #1a2b42;
    font: inherit;
    font-size: 0.88rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.filter-funnel-item:hover,
.filter-funnel-item:focus-visible {
    background: #eef3fb;
    outline: none;
}

.filter-funnel-item.is-selected {
    background: #f0f6ff;
    color: #0f3460;
    font-weight: 600;
}

.filter-funnel-item span {
    min-width: 0;
    line-height: 1.35;
}

.filter-funnel-check {
    flex-shrink: 0;
    color: #0f3460;
}

.filter-ilce-hint {
    margin: 0 0 0.55rem;
    font-size: 0.78rem;
}

.filter-field--ilce .filter-options {
    max-height: 120px;
}

.filter-chip.is-ilce-hidden {
    display: none;
}

.filter-field-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    min-width: 0;
}

.filter-field-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1a2b42;
}

.filter-selected-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    white-space: nowrap;
}

.filter-selected-badge.is-empty {
    background: #eef2f7;
    color: #64748b;
    font-weight: 500;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    max-height: 140px;
    overflow-y: auto;
    padding: 0.15rem 0.1rem 0.15rem 0;
    scrollbar-width: thin;
}

.filter-field--compact .filter-options {
    max-height: none;
    overflow: visible;
}

.filter-field--wide .filter-options {
    max-height: 120px;
}

.filter-chip {
    position: relative;
    display: inline-flex;
    margin: 0;
    font-weight: normal;
}

.filter-chip.is-hidden {
    display: none;
}

.filter-chip input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.filter-chip span {
    display: inline-block;
    padding: 0.32rem 0.72rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    font-size: 0.84rem;
    line-height: 1.3;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
    user-select: none;
}

.filter-chip:hover span {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.filter-chip input:checked + span {
    background: #0f3460;
    border-color: #0f3460;
    color: #fff;
    box-shadow: 0 1px 3px rgba(15, 52, 96, 0.25);
}

.filter-chip input:focus-visible + span {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.filter-field-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px solid #e8edf3;
    flex-wrap: wrap;
}

.filter-option-count {
    font-size: 0.78rem;
    color: #64748b;
}

.filter-quick-actions {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.filter-quick-btn {
    border: none;
    background: transparent;
    color: #0f3460;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.35rem;
    cursor: pointer;
    border-radius: 4px;
}

.filter-quick-btn:hover {
    background: #e8eef5;
}

.filter-field--text input,
.filter-field--range input {
    width: 100%;
    padding: 0.5rem 0.7rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    font-size: 0.9rem;
}

.filter-field--text input:focus,
.filter-field--range input:focus {
    border-color: #0f3460;
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.12);
}

.filter-field--text .filter-field-label {
    display: block;
    margin-bottom: 0.4rem;
}

.filter-range-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-top: 0.45rem;
}

.filter-range-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-weight: normal;
}

.filter-range-item > span {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
}

@media (max-width: 640px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }

    .filter-field-top {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-search-input {
        max-width: none;
    }

    .filter-range-row {
        grid-template-columns: 1fr;
    }
}

.import-mode-panel {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.import-mode-panel h3 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
}

.import-mode-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.import-mode-option {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    cursor: pointer;
}

.import-mode-option input {
    margin-top: 0.2rem;
}

.import-mode-option strong {
    display: block;
    margin-bottom: 0.15rem;
}

.import-mode-option small {
    display: block;
    color: #666;
    line-height: 1.4;
}

.merge-match-group {
    margin-top: 1rem;
    max-width: 420px;
}

.import-match-panel {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border: 2px solid #4472c4;
    border-radius: 8px;
    background: #eef3fb;
    max-width: 100%;
}

.import-match-panel label {
    font-weight: 600;
    color: #1a3a6b;
}

.import-match-panel select {
    max-width: 420px;
}

.merge-hint {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
}

.action-cell {
    white-space: nowrap;
}

.action-cell .inline-form {
    display: inline-block;
    margin-left: 0.35rem;
}

.mapping-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .mapping-layout {
        grid-template-columns: 1fr;
    }
}

.mapping-panel,
.mapping-preview {
    background: #f8f9fb;
    border-radius: 10px;
    padding: 1.25rem;
    border: 1px solid #e3e8ef;
}

.mapping-panel h3,
.mapping-preview h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.mapping-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mapping-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8ecf1;
}

@media (max-width: 600px) {
    .mapping-row {
        grid-template-columns: 1fr;
    }
}

.mapping-field {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.mapping-label {
    font-weight: 600;
    font-size: 0.95rem;
}

.mapping-type {
    font-size: 0.8rem;
    color: #888;
}

.mapping-select {
    width: 100%;
    padding: 0.5rem 0.7rem;
    border: 1px solid #ccd3dc;
    border-radius: 6px;
    font-size: 0.9rem;
}

.mapping-select:focus {
    border-color: #0f3460;
    outline: none;
}

.preview-table {
    max-height: 400px;
    overflow: auto;
}

.preview-table table {
    font-size: 0.8rem;
}

.preview-table th {
    position: sticky;
    top: 0;
    background: #eef2f7;
    z-index: 1;
}

.steps-list {
    padding-left: 1.25rem;
    line-height: 1.9;
}

.link-sm {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: #0f3460;
}

.results-section {
    scroll-margin-top: 1rem;
    min-height: 120px;
}

.results-section .data-table-wrap {
    min-height: 80px;
}

/* Kayıtlar / Veri Yönetimi — tablo kendi alanında dikey + yatay kaydırılır */
.data-table-scroll-panel {
    max-height: min(72vh, 780px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e4e9ef;
    border-radius: 8px;
    background: #fff;
}

.data-table-scroll-panel .data-table thead th {
    position: sticky;
    top: 0;
    z-index: 4;
    background: #f8f9fa;
    box-shadow: 0 1px 0 #e0e4ea;
}

.data-table-scroll-panel .data-table tbody tr:hover td {
    background: #f8f9ff;
}

.data-table-scroll-panel .data-table .col-sira {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
    box-shadow: 1px 0 0 #eee;
}

.data-table-scroll-panel .data-table thead .col-sira {
    z-index: 5;
    background: #f8f9fa;
}

.data-table-scroll-panel .data-table tbody tr:hover .col-sira {
    background: #f8f9ff;
}

.data-table-scroll-panel .data-table .col-actions {
    position: sticky;
    right: 0;
    z-index: 2;
    background: #fff;
    box-shadow: -1px 0 0 #eee;
}

.data-table-scroll-panel .data-table thead .col-actions {
    z-index: 5;
    background: #f8f9fa;
}

.data-table-scroll-panel .data-table tbody tr:hover .col-actions {
    background: #f8f9ff;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.pagination-num {
    min-width: 2.25rem;
    padding: 0.35rem 0.55rem;
    text-align: center;
    background: #fff;
    color: #0f3460;
    border: 1px solid #ccd3de;
}

.pagination-num:hover {
    background: #eef2f7;
}

.pagination-num.is-active {
    background: #0f3460;
    color: #fff;
    border-color: #0f3460;
    cursor: default;
}

.pagination-edge {
    background: #fff;
    color: #0f3460;
    border: 1px solid #ccd3de;
}

.pagination-edge:hover {
    background: #eef2f7;
}

.pagination-ellipsis {
    padding: 0 0.25rem;
    color: #888;
    user-select: none;
}

.pagination-info {
    font-size: 0.9rem;
    color: #666;
    margin-left: 0.25rem;
}

.import-row-preview {
    background: #f0f4f8;
    border-left: 3px solid #0f3460;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.import-log-banner {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #fff8e6;
    border: 1px solid #f0d78c;
    border-radius: 8px;
    font-size: 0.95rem;
}

.import-log-banner a {
    font-weight: 600;
}

.import-log-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}

.import-log-summary p {
    margin: 0.25rem 0;
}

.import-log-picker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.import-log-picker select {
    min-width: 320px;
    padding: 0.45rem 0.6rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

.btn-warning {
    background: #f59e0b;
    color: #fff;
    border: 1px solid #d97706;
}

.btn-warning:hover {
    background: #d97706;
}

.filter-search-input {
    width: 100%;
    max-width: 220px;
    min-width: 160px;
    padding: 0.42rem 0.65rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    font-size: 0.86rem;
}

.filter-search-input:focus {
    border-color: #0f3460;
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.1);
}

.cell-empty {
    background: #fff8e6;
}

.cell-empty-display {
    background: #fffdf5;
    color: #999;
    font-style: italic;
}

.edit-table .cell-input {
    width: 100%;
    min-width: 120px;
    padding: 0.4rem 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
}

.edit-table .cell-input:focus {
    border-color: #0f3460;
    outline: none;
    background: #fff;
}

.edit-table td {
    vertical-align: top;
    padding: 0.4rem;
}

/* Kayıt formu — alan otomatik tamamlama */
.kayit-autocomplete-wrap {
    position: relative;
}

.kayit-autocomplete-wrap--cell {
    min-width: 0;
}

.kayit-autocomplete-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 2px);
    z-index: 120;
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: 220px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #c5d0de;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(15, 52, 96, 0.12);
}

.kayit-autocomplete-item {
    padding: 0.45rem 0.65rem;
    font-size: 0.9rem;
    cursor: pointer;
    border-bottom: 1px solid #eef2f6;
    line-height: 1.35;
    word-break: break-word;
}

.kayit-autocomplete-item:last-child {
    border-bottom: none;
}

.kayit-autocomplete-item:hover,
.kayit-autocomplete-item.is-active {
    background: #eef4fb;
    color: #0f3460;
}

.form-hint-autocomplete {
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.edit-table .kayit-autocomplete-list {
    min-width: 180px;
}
