﻿/* ========== BODY CHUNG ========== */
.body {
    background: #faf6f0;
    width: 100%;
    min-height: 100%;
    padding: 32px 0;
    font-size: 15px;
}

.gyk-section-title {
    margin-bottom: 16px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.35;
    color: #1f2937;
}

/* ========== SEARCH BOX ========== */
.vb-search-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

.vb-search-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
}

.vb-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vb-field label {
    font-family: Inter, Arial, sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    color: #303030;
    margin: 0;
}

/* ========== INPUT / SELECT ========== */
.vb-input {
    width: 100%;
    height: 38px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #dfe3e8;
    background: #ffffff;
    font-size: 13px;
    color: #111827;
    outline: none;
    box-sizing: border-box;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.vb-input:focus {
    border-color: #3f51b5;
    box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.12);
}

.vb-input::placeholder {
    color: #9ca3af;
}

/* ========== ACTION BUTTONS ========== */
.vb-field-actions {
    justify-content: flex-end;
}

.vb-action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Nút xóa */
.vb-btn-clear {
    height: 38px;
    padding: 0 14px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s ease;
}

.vb-btn-clear:hover {
    background: #f3f4f6;
    border-color: #c7cdd6;
}

.vb-btn-clear:active {
    transform: translateY(1px);
}

/* Nút tìm kiếm */
.vb-btn-search {
    height: 38px;
    padding: 0 16px;
    border-radius: 6px;
    border: 1px solid rgba(13, 71, 161, 0.18);
    background: rgba(13, 71, 161, 0.10);
    color: #0d47a1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
    font-family: Inter, Arial, sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.4;
    transition: all .15s ease;
}

.vb-btn-search:hover {
    background: rgba(13, 71, 161, 0.14);
    border-color: rgba(13, 71, 161, 0.25);
}

.vb-btn-search:active {
    transform: translateY(1px);
}

.vb-btn-search .vb-btn-icon {
    width: 14px;
    height: 14px;
}

/* ========== DIVIDER ========== */
.vb-divider {
    border: none;
    border-top: 1px solid rgba(48, 48, 48, 0.15);
    margin: 16px 0 20px;
}

/* ========== BẢNG DANH SÁCH ========== */
.vb-table-wrapper {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.vb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.vb-table thead {
    background: #f5f5f5;
}

.vb-table th,
.vb-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: middle;
}

.vb-table th {
    font-family: Inter, Arial, sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.4;
    color: #303030;
}

.vb-table td {
    color: #374151;
}

.vb-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.vb-table tbody tr:hover {
    background: #eef4ff;
}

.vb-table tbody tr:last-child td {
    border-bottom: none;
}

/* ========== LINK TÊN THỦ TỤC ========== */
.gyk-title-link {
    color: #0d47a1;
    font-weight: 600;
    text-decoration: none;
    transition: color .15s ease;
}

.gyk-title-link:hover {
    color: #0b3a84;
    text-decoration: underline;
}

/* ========== EMPTY ========== */
.gyk-empty {
    text-align: center !important;
    color: #6b7280;
    padding: 18px 12px !important;
}

/* ========== PAGINATION ========== */
.page {
    margin-top: 18px;
}

.pagination {
    margin-bottom: 0;
}

/* ========== MODAL CHI TIẾT ========== */
#tthcModal .modal-dialog {
    max-width: 1100px;
}

#tthcModal .modal-content {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

#tthcModal .modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

#tthcModal .modal-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: #1f2937;
    margin: 0;
}

#tthcModal .modal-body {
    padding: 20px;
    background: #ffffff;
}

#tthcModal .modal-footer {
    padding: 14px 20px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

#tthcModal .btn-secondary {
    min-width: 150px;
    border-radius: 8px;
    font-weight: 600;
}

/* ========== BẢNG CHI TIẾT TRONG MODAL ========== */
.tthc-detail-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
    font-size: 15px;
}

.tthc-detail-table th,
.tthc-detail-table td {
    padding: 12px 14px;
    border: 1px solid #dee2e6;
    vertical-align: top;
}

.tthc-detail-table th {
    width: 220px;
    background: #f8f9fa;
    color: #1f2937;
    font-weight: 700;
    white-space: normal;
}

.tthc-detail-table td {
    background: #ffffff;
    color: #374151;
    line-height: 1.65;
    word-break: break-word;
}

#tthcContent {
    font-size: 15px;
    line-height: 1.65;
    color: #374151;
}

#tthcContent p {
    margin-bottom: 10px;
}

#tthcContent p:last-child {
    margin-bottom: 0;
}

#tthcContent ul,
#tthcContent ol {
    margin: 0 0 0 18px;
    padding: 0;
}

#tthcContent li {
    margin-bottom: 6px;
}

#tthcContent table {
    max-width: 100%;
}

#tthcContent img {
    max-width: 100%;
    height: auto;
}

#tthcContent a {
    word-break: break-word;
}

/* hidden block chứa dữ liệu detail */
#listPaging .d-none {
    display: none !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991.98px) {
    .body {
        padding: 24px 0;
    }

    .vb-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #tthcModal .modal-dialog {
        max-width: calc(100% - 24px);
        margin: 12px auto;
    }

    #tthcModal .modal-body {
        padding: 16px;
    }
}

@media (max-width: 767.98px) {
    .gyk-section-title {
        font-size: 24px;
    }

    .vb-search-box {
        padding: 14px;
    }

    .vb-table-wrapper {
        overflow-x: auto;
    }

    .vb-table {
        min-width: 720px;
    }

    .tthc-detail-table th,
    .tthc-detail-table td {
        display: block;
        width: 100% !important;
    }

    .tthc-detail-table th {
        border-bottom: 0;
        padding-bottom: 8px;
    }

    .tthc-detail-table td {
        padding-top: 0;
    }
}

@media (max-width: 575.98px) {
    .body {
        padding: 20px 0;
    }

    .vb-search-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .vb-action-buttons {
        flex-direction: column;
        width: 100%;
    }

    .vb-btn-clear,
    .vb-btn-search {
        width: 100%;
        justify-content: center;
    }

    .vb-table th,
    .vb-table td {
        padding: 10px 12px;
    }

    #tthcModal .modal-header,
    #tthcModal .modal-body,
    #tthcModal .modal-footer {
        padding-left: 14px;
        padding-right: 14px;
    }

    #tthcModal .modal-title {
        font-size: 17px;
    }

    .tthc-detail-table {
        font-size: 14px;
    }
}