#issue-date-from,
#issue-date-to {
    font-size: 14px;
    background: unset;
    box-shadow: none;
}

#legal-normative-table thead tr th {
    font-size: 16px;
    vertical-align: middle;
}


#legal-normative-table tbody {
    font-size: 14px;
}

#btn-reset-date {
    padding: 10px 28px;
    border: 1px solid #003B8E;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 400;
    line-height: 162.023%;
    color: #003B8E;
    background-color: transparent;
    transition: all linear 0.2s;
}

#btn-reset-date:hover {
    color: #fff !important;
    background-color: #003B8E;
}

.table-container {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

table.dataTable thead th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

table.dataTable tbody td {
    vertical-align: middle;
}

#document-detail-view {
    margin-left: 20px;
    margin-right: 20px;
}

.custom-modal-content {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    background: #fff;
    margin-bottom: 24px;
    border: 1px solid #E2E8F0;
}

.custom-modal-header {
    background-color: #003B8E;
    padding: 16px 24px;
    border-bottom: none;
}

.custom-modal-body {
    padding: 24px;
}

.detail-group {
    display: flex;
    flex-direction: column;
}

.detail-label-new {
    font-size: 13px;
    font-weight: 600;
    color: #94A3B8;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value-new {
    font-size: 15px;
    font-weight: 500;
    color: #1E293B;
    line-height: 1.5;
}

/* Status styling in detail view (no pill background, just bold colored text) */
.detail-status-active {
    color: #16A34A !important;
    font-weight: 700 !important;
}

.detail-status-inactive {
    color: #DC2626 !important;
    font-weight: 700 !important;
}

.detail-status-unknown {
    color: #64748B !important;
    font-weight: 700 !important;
}

/* File Attachment UI */
.document-file-item {
    display: flex;
    align-items: center;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 12px 16px;
    background-color: #F8FAFC;
    transition: background-color 0.2s;
}

.document-file-item:hover {
    background-color: #F1F5F9;
}

.document-file-icon {
    width: 40px;
    height: 40px;
    background-color: #FEE2E2;
    color: #EF4444;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 20px;
}

.document-file-info {
    flex-grow: 1;
}

.document-file-name {
    font-weight: 600;
    color: #0F172A;
    font-size: 14px;
    margin-bottom: 2px;
}

.document-file-size {
    font-size: 12px;
    color: #64748B;
    margin: 0;
}

.document-file-actions {
    display: flex;
    gap: 16px;
}

.document-file-action-link {
    font-size: 13px;
    font-weight: 600;
    color: #003B8E;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
    line-height: normal;
}

.document-file-action-link i {
    display: inline-flex;
    align-items: center;
    position: relative;
    top: -1px;
}

.document-file-action-link:hover {
    text-decoration: underline;
    color: #002D6E;
}

#btn-back-to-list-bottom {
    transition: all 0.2s;
}

#btn-back-to-list-bottom:hover {
    background-color: #CBD5E1 !important;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background: #e6f4ea;
    color: #1e8e3e;
}

.status-inactive {
    background: #fce8e6;
    color: #d93025;
}

.cursor-pointer {
    cursor: pointer;
}

.cursor-pointer:hover {
    background-color: #f8f9fa;
}

/* Select Styles extracted from SignUp */
.select-field {
    margin-top: 0px;
    position: relative;
    width: 100%;
}

.select-field select,
.select-field .select-native {
    width: 100% !important;
    padding: 12px 40px 12px 16px !important;
    border: 1px solid var(--border-color, #e2e8f0) !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    background-color: #fff !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    margin-top: 0 !important;
    color: var(--color-body, #333) !important;
    transition: border-color 0.3s ease !important;
    height: auto !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 1 !important;
}

.select-field select:focus,
.select-field .select-native:focus {
    outline: none !important;
    border-color: var(--color-primary, #1251EE) !important;
    box-shadow: 0 0 0 2px rgba(18, 81, 238, 0.2);
}

.select-field select option,
.select-field .select-native option {
    padding: 8px !important;
    background-color: #fff !important;
}

/* Prevent bootstrap-select from hiding our selects */
.select-field .bootstrap-select {
    display: none !important;
}

.select-field .bootstrap-select+select,
.select-field .bootstrap-select~select {
    display: block !important;
}

/* DataTables Pagination & Length Menu Overrides Matching /tin-tuc */
.dataTables_wrapper .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0px;
}

.dataTables_wrapper .dataTables_length {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dataTables_wrapper .dataTables_length label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
    margin-bottom: 0;
}

.dataTables_wrapper .dataTables_length select {
    width: 70px !important;
    height: 40px !important;
    font-size: 14px !important;
    padding: 0 !important;
    border: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 4px;
    padding-left: 17px !important;
    appearance: auto;
    cursor: pointer;
}

.dataTables_wrapper .dataTables_info {
    font-size: 14px;
    color: #555;
    white-space: nowrap;
    padding-top: 0;
}

.dataTables_wrapper .dataTables_paginate {
    display: flex;
    align-items: center;
    margin-top: 0;
}

.dataTables_wrapper .dataTables_paginate .pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.dataTables_wrapper .dataTables_paginate .pagination .page-item {
    margin: 0;
}

.dataTables_wrapper .dataTables_paginate .pagination .page-item a.page-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 38px !important;
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid var(--border-color, #dee2e6) !important;
    border-radius: 99px !important;
    background-color: #fff !important;
    color: var(--text-gray, #666) !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.dataTables_wrapper .dataTables_paginate .pagination .page-item.active a.page-link {
    background-color: #003B8E !important;
    color: #fff !important;
    border-color: #003B8E !important;
}

.dataTables_wrapper .dataTables_paginate .pagination .page-item:not(.active):not(.disabled) a.page-link:hover {
    background-color: #f8f9fa !important;
    color: #333 !important;
    border-color: #dee2e6 !important;
}

.dataTables_wrapper .dataTables_paginate .pagination .page-item.disabled a.page-link {
    opacity: 0.5 !important;
    background-color: #fff !important;
    color: #999 !important;
    cursor: not-allowed !important;
}

/* Fix Previous / Next buttons */
.dataTables_wrapper .dataTables_paginate .pagination .page-item.previous a.page-link,
.dataTables_wrapper .dataTables_paginate .pagination .page-item.next a.page-link {
    color: transparent !important;
    /* hide the text "Trước" / "Sau" */
    font-size: 0 !important;
    line-height: 0 !important;
    position: relative;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.05) !important;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination {
    padding: 0;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .author-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px;
    }

    .header-filter {
        width: 100%;
        flex-wrap: wrap;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .custom-modal-header {
        padding: 12px 16px;
    }

    .custom-modal-body {
        padding: 16px;
    }

    .dataTables_wrapper .dataTables_paginate {
        justify-content: center;
        margin-top: 15px;
        width: 100%;
    }

    .custom-modal-header h4 {
        font-size: 16px !important;
    }
}

@media (max-width: 767.98px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 15px;
    }

    #legal-normative-table {
        min-width: 800px;
    }

    /* Ensure action buttons wrap properly */
    .document-file-action-link {
        font-size: 11px;
    }

    .document-file-actions {
        flex-wrap: wrap;
        gap: 10px;
    }

    .document-file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .document-file-icon {
        margin-right: 0;
    }
}