.e-tablo {
    width: 100%;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    background: #ffffff;
    border-radius: 8px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Tablo İç Kısmı */
.e-tablo table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* THEAD - Başlık Alanı */
.e-tablo thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: sticky;
    top: 0;
    z-index: 1;
}

.e-tablo thead tr {
    background: transparent;
}

.e-tablo thead th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #ffffff;
    border: none;
    position: relative;
    white-space: nowrap;
}

.e-tablo thead th:first-child {
    border-radius: 8px 0 0 0;
}

.e-tablo thead th:last-child {
    border-radius: 0 8px 0 0;
}

/* Sıralama İkonları */
.e-tablo thead th::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    opacity: 0.3;
}

.e-tablo thead th:first-child::after {
    display: none;
}

/* TBODY - Ana İçerik Alanı */
.e-tablo tbody {
    background: #ffffff;
}

.e-tablo tbody tr {
    transition: all 0.2s ease;
    background: transparent;
}

.e-tablo tbody tr:nth-child(even) {
    background: #fafbfc;
}

.e-tablo tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

.e-tablo tbody td {
    padding: 10px 16px;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.15s ease;
    word-break: break-word; /* Uzun kelimelerin tabloyu bozmasını engeller */
    overflow-wrap: break-word;
}

.e-tablo th.ellipsis, .e-tablo td.ellipsis {
	max-width: 200px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.e-tablo tbody tr:last-child td {
    border-bottom: none;
}

.e-tablo tbody tr:last-child td:first-child {
    border-radius: 0 0 0 8px;
}

.e-tablo tbody tr:last-child td:last-child {
    border-radius: 0 0 8px 0;
}

/* Hover'da Satır Vurgulama */
.e-tablo tbody tr:hover {
    background: rgba(102, 126, 234, 0.06);
}

.e-tablo tbody tr:hover td {
    color: #1e293b;
}

/* TFOOT - Alt Bilgi Alanı */
.e-tablo tfoot {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 2px solid #e2e8f0;
}

.e-tablo tfoot tr {
    background: transparent;
}

.e-tablo tfoot td {
    padding: 10px 16px;
    font-weight: 600;
    color: #64748b;
    border: none;
    font-size: 13px;
}

.e-tablo tfoot td:first-child {
    border-radius: 0 0 0 8px;
}

.e-tablo tfoot td:last-child {
    border-radius: 0 0 8px 0;
}

/* TR Genel Stiller */
.e-tablo tr {
    position: relative;
}

/* TH & TD Ortak Stiller */
.e-tablo th,
.e-tablo td {
    vertical-align: middle;
}

/* İkon Butonları için Hücre Stili */
.e-tablo .action-cell {
    display: flex;
    gap: 8px;
    align-items: center;
}

.e-tablo .action-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    background: #f1f5f9;
}

.e-tablo .action-btn:hover {
    background: #e2e8f0;
}

.e-tablo .action-btn.edit {
    background: #dbeafe;
    color: #2563eb;
}

.e-tablo .action-btn.e-primary {
    background: #667eea;
    color: #fff;
}
.e-tablo .action-btn.e-secondary {
    background: #facc15;
    color: #080808;
}
.e-tablo .action-btn.e-success {
    background: #22c55e;
    color: #fff;
}
.e-tablo .action-btn.e-info {
    background: #3b82f6;
    color: #fff;
}
.e-tablo .action-btn.e-warning {
    background: #f59e0b;
    color: #fff;
}
.e-tablo .action-btn.e-danger {
    background: #ef4444;
    color: #fff;
}


.e-tablo .action-btn.delete {
    background: #fee2e2;
    color: #dc2626;
}

/* Status Badge Stilleri */
.e-tablo .status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    gap: 5px;
}

.e-tablo .status::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.e-tablo .status.active {
    background: #dcfce7;
    color: #16a34a;
}

.e-tablo .status.active::before {
    background: #22c55e;
    animation: pulse 2s infinite;
}

.e-tablo .status.pending {
    background: #fef3c7;
    color: #d97706;
}

.e-tablo .status.pending::before {
    background: #f59e0b;
}

.e-tablo .status.inactive {
    background: #f1f5f9;
    color: #64748b;
}

.e-tablo .status.inactive::before {
    background: #94a3b8;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Avatar ve Kullanıcı Bilgisi */
.e-tablo .user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.e-tablo .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 11px;
    flex-shrink: 0;
}

.e-tablo .user-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.e-tablo .user-name {
    font-weight: 500;
    color: #1e293b;
    font-size: 13px;
}

.e-tablo .user-email {
    font-size: 11px;
    color: #94a3b8;
}

/* Progress Bar */
.e-tablo .progress-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.e-tablo .progress-bar {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.e-tablo .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.e-tablo .progress-text {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    min-width: 36px;
    text-align: right;
}

/* Sayısal Değerler */
.e-tablo .numeric {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: #1e293b;
}

.e-tablo .numeric.positive {
    color: #16a34a;
}

.e-tablo .numeric.negative {
    color: #dc2626;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .e-tablo {
        font-size: 12px;
    }

    .e-tablo thead th,
    .e-tablo tbody td,
    .e-tablo tfoot td {
        padding: 8px 12px;
    }

    .e-tablo .hide-mobile {
        display: none;
    }

    .e-tablo .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
}

/* Yatay Kaydırma için */
.e-tablo-wrapper {
    overflow-x: auto;
    border-radius: 8px;
}

.e-tablo-wrapper .e-tablo {
    min-width: 600px;
}

/* Checkbox Stili */
.e-tablo .checkbox-cell {
    width: 48px;
    text-align: center;
}

.e-tablo input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid #cbd5e1;
    cursor: pointer;
    accent-color: #667eea;
    transition: all 0.2s ease;
}

.e-tablo input[type="checkbox"]:hover {
    border-color: #667eea;
}

.e-tablo input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
}

/* Alternatif Renk Varyantları */
.e-tablo.variant-green thead {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.e-tablo.variant-orange thead {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.e-tablo.variant-red thead {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.e-tablo.variant-dark thead {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.e-tablo.variant-light {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.e-tablo.variant-light thead {
    background: #ffffff;
}

.e-tablo.variant-light thead th {
    color: #475569;
    border-bottom: 2px solid #667eea;
}

/* Stripe Varyantı */
.e-tablo.variant-stripe tbody tr:nth-child(even) {
    background: #f1f5f9;
}

.e-tablo.variant-stripe tbody tr:nth-child(odd) {
    background: #ffffff;
}

/* Compact Varyantı */
.e-tablo.variant-compact thead th,
.e-tablo.variant-compact tbody td,
.e-tablo.variant-compact tfoot td {
    padding: 10px 14px;
}

.e-tablo.variant-compact .user-avatar {
    width: 32px;
    height: 32px;
}

/* Border Varyantı */
.e-tablo.variant-border {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.e-tablo.variant-border thead th:first-child {
    border-radius: 8px 0 0 0;
}

.e-tablo.variant-border thead th:last-child {
    border-radius: 0 8px 0 0;
}

.e-tablo.variant-border tbody td {
    border: 1px solid #f1f5f9;
}

.e-tablo.variant-border tbody tr:last-child td:first-child {
    border-radius: 0 0 0 8px;
}

.e-tablo.variant-border tbody tr:last-child td:last-child {
    border-radius: 0 0 8px 0;
}

/* Hover Highlight Varyantı */
.e-tablo.variant-hover tbody tr {
    cursor: pointer;
}

/* Hover'da Tüm Satırı Vurgula */
.e-tablo.variant-hover tbody tr:hover td {
    background: rgba(102, 126, 234, 0.06);
}