/* Zincir İşlem Kayıtları */

.log-ozet {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.log-ozet-kutu {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.log-ozet-kutu:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.07);
}

.log-ozet-kutu.is-aktif {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.log-ozet-ikon {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: #f1f5f9;
    color: #64748b;
}

.log-ozet-kutu.grup-dagitim .log-ozet-ikon  { background: rgba(37, 99, 235, 0.1);  color: #1d4ed8; }
.log-ozet-kutu.grup-transfer .log-ozet-ikon { background: rgba(139, 92, 246, 0.1); color: #7c3aed; }
.log-ozet-kutu.grup-talep .log-ozet-ikon    { background: rgba(217, 119, 6, 0.12); color: #b45309; }
.log-ozet-kutu.grup-ayar .log-ozet-ikon     { background: rgba(100, 116, 139, 0.12); color: #475569; }

.log-ozet-metin {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.log-ozet-deger {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.15;
}

.log-ozet-etiket {
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
}

/* Filtre çubuğu */
.log-filtre {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    margin-bottom: 8px;
}

.log-filtre-alan {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 0 1 150px;
}

.log-filtre-alan.log-filtre-genis {
    flex: 1 1 210px;
    min-width: 170px;
}

.zincir-loglar .log-filtre-alan label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.log-filtre-butonlar {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.log-sonuc-bilgi {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    margin: 0 2px 10px;
}

/* Tablo */
.log-tablo-kutu {
    overflow: auto;
    max-height: 62vh;
    border-radius: 10px;
}

.zincir-loglar .log-tablo {
    margin-bottom: 0;
}

.zincir-loglar .log-tablo thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.zincir-loglar .log-tablo tr[hidden] {
    display: none !important;
}

.log-zaman-kolon {
    width: 96px;
    white-space: nowrap;
}

.log-tarih {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
}

.log-saat {
    font-size: 11.5px;
    color: #94a3b8;
}

.log-ip-kolon {
    width: 120px;
    font-size: 11.5px;
    color: #94a3b8;
    white-space: nowrap;
}

.log-tip-rozet {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
    background: #f1f5f9;
    color: #475569;
}

.log-tip-rozet.grup-dagitim  { background: rgba(37, 99, 235, 0.1);  color: #1d4ed8; }
.log-tip-rozet.grup-transfer { background: rgba(139, 92, 246, 0.1); color: #7c3aed; }
.log-tip-rozet.grup-talep    { background: rgba(217, 119, 6, 0.12); color: #b45309; }
.log-tip-rozet.grup-ayar     { background: rgba(100, 116, 139, 0.12); color: #475569; }

.log-referans {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    color: #cbd5e1;
    white-space: nowrap;
}

.log-aciklama {
    font-size: 12.5px;
    color: #475569;
    max-width: 460px;
}

.log-bos {
    text-align: center;
    color: #94a3b8;
    padding: 34px 12px !important;
}

.log-bos i {
    font-size: 38px;
    color: #cbd5e1;
}

.log-bos p {
    margin: 8px 0 0;
    font-weight: 600;
}

/* Sayfalama */
.log-sayfalama {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.log-sayfa-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
}

.log-sayfa-btn:hover {
    border-color: #cbd5e1;
    color: #0f172a;
}

.log-sayfa-btn.is-aktif {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.log-sayfa-bilgi {
    margin-left: auto;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
}

@media (max-width: 991px) {
    .log-tablo-kutu {
        max-height: none;
    }

    .zincir-loglar .log-tablo thead th {
        position: static;
    }

    .log-aciklama {
        max-width: none;
    }
}

@media (max-width: 767px) {
    .log-filtre-alan,
    .log-filtre-alan.log-filtre-genis {
        flex: 1 1 100%;
    }

    .log-filtre-butonlar {
        width: 100%;
        margin-left: 0;
    }

    .log-filtre-butonlar .btn {
        flex: 1 1 auto;
    }

    .log-ip-kolon {
        display: none;
    }
}
