td, th {
    font-size: 1em !important;
}
.chi-tiet-van-ban-phap-quy-v2 {
    border: 1px solid #ddd; 
    margin-bottom: 20px;
    color: #333;
}
.vbqp-table-v2 {
    width: 100%;
    border-collapse: collapse; 
    margin-bottom: 0;
}
.vbqp-table-v2 tr {
    border-bottom: 1px solid #eee; 
}
.vbqp-table-v2 tr:last-child {
    border-bottom: none; 
}
.vbqp-table-v2 td {
    padding: 10px 15px !important;
    vertical-align: top;
    line-height: 1.6;
}
.vbqp-table-v2 td.vbqp-label {
    font-weight: bold;
    width: 18%; 
    background-color: #f9f9f9;
    border-right: 1px solid #eee;
}
.vbqp-table-v2 td.vbqp-value {
    width: 32%; 
    border-right: 1px solid #eee; 
}

.vbqp-table-v2 tr:not(.vbqp-full-width) td.vbqp-value:last-of-type {
    border-right: none; 
}

.vbqp-table-v2 tr.vbqp-status-row {
    text-align: left; 
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    background-color: #f9f9f9;
}
.vbqp-table-v2 tr.vbqp-status-row td {
    text-align: center;
    font-weight: bold;
    border-right: none;
}
.vbqp-con-hieu-luc {
    color: green;
}
.vbqp-het-hieu-luc {
    color: red;
}

.vbqp-table-v2 tr.vbqp-full-width td.vbqp-value {
    width: auto; 
    border-right: none;
    background-color: #fff; 
}

.vbqp-dinh-kem a {
    text-decoration: none;
    color: #c00;
}
.vbqp-dinh-kem a:before {
    content: "▸ ";
    color: #c00;
}

.vbqp-search-container {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 20px;
    margin-bottom: 25px;
}
.vbqp-search-form label {
    font-weight: bold;
    margin-right: 10px;
}
.vbqp-search-form input[type="search"] {
    width: 300px;
    padding: 8px;
    margin-right: 5px;
}
.vbqp-search-form input[type="submit"] {
    padding: 8px 15px;
    background: #0073aa;
    color: white;
    border: none;
    cursor: pointer;
}
.vbqp-search-form input[type="submit"]:hover {
    background: #005177;
}

.vbqp-archive-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border: 1px solid #ddd;
}
.vbqp-archive-table th {
    background-color: #f4f4f4;
    padding: 12px 10px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid #ddd;
}
.vbqp-archive-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}
.vbqp-archive-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}
.vbqp-archive-table tbody tr:hover {
    background-color: #f1f1f1;
}

.vbqp-archive-table th:first-child,
.vbqp-archive-table td:first-child {
    width: 40px;
    text-align: center;
}
.vbqp-archive-table td a {
    text-decoration: none;
    color: #0073aa;
}
.vbqp-archive-table td a:hover {
    text-decoration: underline;
}
.vbqp-search-container-v2 {
    border: 1px solid #ccc;
    background: #fff;
    margin-bottom: 25px;
    border-radius: 4px;
    overflow: hidden;
}
.vbqp-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #005a9e; 
    color: white;
    padding: 10px 15px;
    font-size: 1.1em;
    font-weight: bold;
}
.vbqp-search-header button {
    background: #f0f0f0;
    border: 1px solid #ccc;
    color: #333;
    cursor: pointer;
    border-radius: 3px;
    text-transform: inherit;
    font-size: 14px;
}
.vbqp-search-header button:hover {
    background: #ddd;
}

.vbqp-search-form-v2 {
    padding: 0;
    background: #f9f9f9; 
}
.vbqp-search-table {
    width: 100%;
    border-collapse: collapse;
}
.vbqp-search-table td {
    padding: 10px;
    vertical-align: middle;
    border: 1px solid #e1e1e1;
}
.vbqp-search-table td.vbqp-label {
    font-weight: bold;
    background-color: #f0f8ff; 
    width: 15%;
    text-align: right;
    padding-right: 15px;
}
.vbqp-search-table input[type="text"],
.vbqp-search-table select {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 3px;
}
.vbqp-search-table td.vbqp-date-range {
    white-space: nowrap;
}
.vbqp-search-table input.vbqp-date-input {
    width: 120px;
    display: inline-block;
    margin: 0 5px;
}
.vbqp-search-footer {
    text-align: center;
    background: #f1f1f1;
    border-top: 1px solid #ccc !important;
}
button.vbqp-submit-button {
    background: #0073aa;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 3px;
    text-transform: inherit;
    font-size: 14px;
}
button.vbqp-submit-button:hover {
    background: #005177;
}

.vbqp-pagination {
    margin-top: 20px;
    text-align: center;
}
.vbqp-pagination .page-numbers {
    padding: 5px 10px;
    border: 1px solid #ddd;
    text-decoration: none;
    margin: 0 2px;
    border-radius: 3px;
}
.vbqp-pagination .page-numbers.current,
.vbqp-pagination .page-numbers:hover {
    background: #005a9e;
    color: white;
    border-color: #005a9e;
}
#vbqp_details_meta_box .vbqp-admin-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box; 
}
.ui-datepicker {
    z-index: 9999 !important;
}
.vbqp-related-posts {
    margin-top: 30px;
    margin-bottom: 30px;
    border: 1px solid #ddd;
    color: #333;
}
.vbqp-related-posts h3 {
    background-color: #f9f9f9;
    margin: 0;
    padding: 10px 15px;
    font-size: 1.2em;
    border-bottom: 1px solid #ddd;
}
.vbqp-related-posts ul {
    margin: 15px;
    padding-left: 20px;
}
.vbqp-related-posts li {
    margin-bottom: 10px;
    line-height: 1.5;
}
.vbqp-related-posts li a {
    text-decoration: none;
    color: #0073aa;
}
.vbqp-related-posts li a:hover {
    text-decoration: underline;
}
.vbqp-related-posts li a strong {
    color: #c00;
}

.vbqp-table-v2 td.vbqp-dinh-kem a {
    display: block; 
    margin-bottom: 5px; 
    line-height: 1.4;
}
.vbqp-table-v2 td.vbqp-dinh-kem a:last-child {
    margin-bottom: 0;
}
#vbqp_upload_dinh_kem_button {
    margin-top: 8px;
}

#vbqp_details_meta_box .select2-container {
    width: 100% !important; 
    box-sizing: border-box;
}

#vbqp_details_meta_box .select2-selection--single {
    height: 30px !important; 
    padding: 2px 0;
    line-height: 28px;
}

#vbqp_details_meta_box .select2-selection__arrow {
    height: 28px !important;
}

.select2-container--open {
    z-index: 99999 !important;
}
/* === Admin Option Management === */
.vbqp-manage-options {
    margin-left: 5px;
    vertical-align: middle;
}

/* === Modal Styles === */
#vbqp-options-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000; /* Đè lên trên mọi thứ */
    display: flex;
    align-items: center;
    justify-content: center;
}
.vbqp-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}
.vbqp-modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 100001;
    max-height: 80vh; /* Giới hạn chiều cao */
    display: flex;
    flex-direction: column;
}
#vbqp-modal-title {
    margin: 0;
    padding: 15px 20px;
    font-size: 1.2em;
    border-bottom: 1px solid #ddd;
}
#vbqp-modal-list {
    margin: 0;
    padding: 10px 20px;
    list-style: none;
    overflow-y: auto; /* Cho phép cuộn nếu danh sách quá dài */
}
#vbqp-modal-list li {
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}
#vbqp-modal-list li:last-child {
    border-bottom: none;
}
#vbqp-modal-list li span {
    flex-grow: 1;
    margin-right: 15px;
    word-break: break-all; /* Ngăn vỡ layout nếu tên quá dài */
}
.vbqp-delete-option {
    color: #a00 !important;
    cursor: pointer;
    text-decoration: none !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
}
.vbqp-delete-option:hover {
    color: #f00 !important;
}
#vbqp-modal-close {
    margin: 20px;
    align-self: flex-end; /* Đẩy nút Đóng về góc */
}