/* Phase 4-I.1: login and system log lists. */
.phase4i-log-list {
    overflow: hidden;
    border: 1px solid rgba(134, 151, 179, 0.18);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(28, 49, 84, 0.08);
}

.phase4i-log-list > .card-body {
    padding: 22px;
}

.phase4i-log-list .nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    border-bottom: 0;
}

.phase4i-log-list .nav-tabs .nav-link {
    min-height: 40px;
    padding: 9px 16px;
    border: 1px solid #e1e9f4;
    border-radius: 11px;
    background: #f7faff;
    color: #60708a;
    font-weight: 700;
}

.phase4i-log-list .nav-tabs .nav-link.active {
    border-color: transparent;
    background: linear-gradient(135deg, #1677ff, #11b9d2);
    box-shadow: 0 8px 20px rgba(22, 119, 255, 0.2);
    color: #fff;
}

.phase4i-log-list .table-container {
    margin-top: 0 !important;
}

.phase4i-log-list .table-search {
    margin-bottom: 14px;
}

.phase4i-log-list .table-search .form-control,
.phase4i-log-list .table-search .input-group-text {
    min-height: 42px;
    border-color: #e2eaf5;
    background: #fbfdff;
}

.phase4i-log-list .table-responsive {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible;
    border: 1px solid #e6edf7;
    border-radius: 15px;
    box-shadow: none !important;
}

.phase4i-log-list .table {
    width: 100%;
    margin-bottom: 0;
    color: #26344c;
}

.phase4i-log-list .table thead th {
    padding: 13px 14px;
    border-top: 0;
    border-bottom: 1px solid #e6edf7;
    background: #f6f9fe;
    color: #68778e;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.phase4i-log-list .table tbody td {
    padding: 14px;
    border-top: 1px solid #edf2f8;
    vertical-align: top;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.phase4i-log-list .table tbody tr:first-child td {
    border-top: 0;
}

.phase4i-log-list .table tbody tr:hover {
    background: #f9fbff;
}

.phase4i-log-list .table-responsive:not(:has(.table tbody tr))::after {
    content: "当前没有日志记录";
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 112px;
    border-top: 1px solid #edf2f8;
    background: linear-gradient(180deg, #fbfdff, #f7faff);
    color: #8290a5;
    font-size: 13px;
    font-weight: 700;
}

.phase4i-log-list .table tbody td:first-child a {
    color: #146fe8;
    font-weight: 700;
}

.phase4i-log-list .table tbody td.d-flex {
    display: table-cell !important;
    white-space: normal;
}

.phase4i-log-list .table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding-top: 16px;
}

.phase4i-log-list .table-pageinfo {
    color: #6e7d93;
}

.phase4i-log-list .table-pagination {
    margin-left: auto;
}

.phase4i-log-list .pagination {
    margin: 0;
}

@media (max-width: 991.98px) {
    .phase4i-log-list > .card-body {
        padding: 18px;
    }

    .phase4i-log-list .table-responsive {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .phase4i-log-list .table,
    .phase4i-log-list .table tbody {
        display: block;
        width: 100%;
    }

    .phase4i-log-list .table thead,
    .phase4i-log-list .table colgroup {
        display: none;
    }

    .phase4i-log-list .table tbody {
        display: grid;
        gap: 12px;
    }

    .phase4i-log-list .table tbody tr {
        display: block;
        width: 100%;
        overflow: hidden;
        border: 1px solid #e4ecf7;
        border-radius: 15px;
        background: #fff;
        box-shadow: 0 9px 24px rgba(32, 54, 91, 0.07);
    }

    .phase4i-log-list .table tbody td {
        display: grid;
        grid-template-columns: minmax(92px, 24%) minmax(0, 1fr);
        gap: 14px;
        width: 100%;
        padding: 11px 14px;
        border-top: 1px solid #edf2f8;
        text-align: right;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .phase4i-log-list .table tbody td:first-child {
        border-top: 0;
    }

    .phase4i-log-list .table tbody td::before {
        content: attr(data-label);
        color: #78869b;
        font-size: 12px;
        font-weight: 800;
        text-align: left;
    }

    .phase4i-log-list .table tbody td > * {
        min-width: 0;
        white-space: normal !important;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .phase4i-log-list .table tbody td.d-flex {
        display: block !important;
        text-align: left;
    }

    .phase4i-log-list .table tbody td.d-flex::before {
        display: block;
        margin-bottom: 6px;
    }

    .phase4i-log-list .table-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .phase4i-log-list .table-pagination {
        margin-left: 0;
    }
}

@media (max-width: 575.98px) {
    .phase4i-log-list {
        border-radius: 16px;
    }

    .phase4i-log-list > .card-body {
        padding: 14px;
    }

    .phase4i-log-list .nav-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .phase4i-log-list .nav-tabs .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        padding: 8px 5px;
        text-align: center;
    }

    .phase4i-log-list .table tbody td {
        grid-template-columns: minmax(78px, 31%) minmax(0, 1fr);
        gap: 10px;
        padding: 10px 12px;
    }
}

@media (max-width: 339.98px) {
    .phase4i-log-list > .card-body {
        padding: 12px;
    }

    .phase4i-log-list .table tbody td {
        grid-template-columns: 74px minmax(0, 1fr);
        gap: 8px;
    }
}
