/* --- Loading "Nunito" font from Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700&display=swap');

ul.operations {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
}

* {
    font-family: aria;
}

.sidebar-wrapper .menu .sidebar-item.active .submenu.active li.active span {
    font-weight: bold;
}

.display_none {
    display: none;
}

.remove_icon_only {
    background: url(../images/ico-validate-error.png) no-repeat left top;
    height: 16px;
    text-indent: -1984em;
    width: 16px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
}

/* Feb25,2026 DungNT close */
.ui-datepicker-trigger {
    width: 55px !important;
    height: 35px !important;
}


.row.buttons {
    padding-left: 0px !important;
}

.GasCheckboxList .form-check {
    float: left;
    padding-right: 10px;
}

/* Ẩn Sidebar và nội dung bên trong Sidebar (Vùng khoanh đỏ bên trái) */
#sidebar.login-layout {
    display: none !important;
}

/* Ẩn Navbar (Vùng khoanh đỏ phía trên) */
.navbar-header.login-layout {
    display: none !important;
}

/* nếu muốn index mỗi cột rộng ra nhìn dễ hơn */
/* .grid-view table td {
    white-space: nowrap !important;
    vertical-align: middle !important;
}
.grid-view table th {
    white-space: nowrap !important;
    text-align: center !important;
} */
.remove_row_item {
    background: none;
    height: 16px;
    width: 16px;
    cursor: pointer;
    display: inline-block;
    overflow: hidden;
    float: left;
    margin-left: 6px;
    margin-top: 6px;
    position: relative;
}

.remove_row_item:before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    background: url(../images/ico-validate-error.png) no-repeat left top;
    background-size: 16px 16px;
}

.unique_wrap_autocomplete .remove_row_item,
.materials_name_search .remove_row_item {
    float: none;
    margin-left: 6px;
    margin-top: 6px;
}

.unique_wrap_autocomplete input,
.materials_name_search input {
    display: inline-block;
    vertical-align: middle;
    /* width: calc(100% - 26px) !important; */
}

.unique_wrap_autocomplete .remove_row_item,
.materials_name_search .remove_row_item {
    display: inline-block;
    vertical-align: middle;
    margin-top: 0;
}

.wrap_autocomplete_material {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wrap_autocomplete_material input {
    float: none !important;
    width: auto !important;
    flex: 1 1 auto;
    min-width: 0;
}

.wrap_autocomplete_material .remove_row_item {
    float: none;
    margin-left: 0;
    margin-top: 0;
    flex: 0 0 16px;
}

/* .search-form {
    background: #fff;
    border-radius: 10px;
    padding: 28px 32px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
    border: 1px solid rgba(226, 232, 240, 0.9);
} */

.w-150 {
    width: 150px !important;
}

.w-140 {
    width: 140px !important;
}

.w-130 {
    width: 130px !important;
}

.w-120 {
    width: 120px !important;
}

.w-110 {
    width: 110px !important;
}

.w-100 {
    width: 100px !important;
}

.w-90 {
    width: 90px !important;
}

.w-80 {
    width: 80px !important;
}

.w-70 {
    width: 70px !important;
}

.w-60 {
    width: 60px !important;
}

.w-50 {
    width: 50px !important;
}

.w-55 {
    width: 55px !important;
}

.w-40 {
    width: 40px !important;
}

.w-30 {
    width: 30px !important;
}

.w-20 {
    width: 20px !important;
}

.w-10 {
    width: 10px !important;
}

.w-5 {
    width: 5px !important;
}

.w-160 {
    width: 160px !important;
}

.w-170 {
    width: 170px !important;
}

.w-180 {
    width: 180px !important;
}

.w-190 {
    width: 190px !important;
}

.w-200 {
    width: 200px !important;
}

.w-210 {
    width: 210px !important;
}

.w-220 {
    width: 220px !important;
}

.w-250 {
    width: 250px !important;
}

.w-280 {
    width: 280px !important;
}

.w-300 {
    width: 300px !important;
}

.w-310 {
    width: 310px !important;
}

.w-320 {
    width: 320px !important;
}

.w-330 {
    width: 330px !important;
}

.w-340 {
    width: 340px !important;
}

.w-350 {
    width: 350px !important;
}

.w-360 {
    width: 360px !important;
}

.w-370 {
    width: 370px !important;
}

.w-380 {
    width: 380px !important;
}

.w-390 {
    width: 390px !important;
}

.w-400 {
    width: 400px !important;
}

.w-450 {
    width: 450px !important;
}

.w-460 {
    width: 460px !important;
}

.w-500 {
    width: 500px !important;
}

.w-600 {
    width: 600px !important;
}

.w-650 {
    width: 650px !important;
}

.w-700 {
    width: 700px !important;
}

.w-800 {
    width: 800px !important;
}

.w-900 {
    width: 900px !important;
}

.w-1000 {
    width: 1000px !important;
}

.w-percent100 {
    width: 100% !important;
}

div.form .errorSummary {
    padding: 7px 7px 12px 7px;
    margin: 0 0 20px 0;
    background-color: #ffdede;
    font-size: 0.9em;
    box-shadow: -8px 12px 18px 0 rgba(25, 42, 70, .13);
}

div.form .errorMessage {
    color: red;
    font-size: 0.9em;
}

div.form .errorSummary p {
    margin: 0;
    padding: 5px;
}

div.form .errorSummary ul {
    margin: 0;
    padding: 0 0 0 20px;
}

.title-info {
    background-color: #E0EEE0;
    padding: 10px;
    color: #333;
}

.hight_light {
    color: #FF4000 !important;
}


/* Custom column styles to match Bootstrap col-md-6 */
.col1,
.col2 {
    width: 50%;
    float: left;
    box-sizing: border-box;
    padding: 0 15px;
}

/* Clearfix for containers */
.row:after,
.more_col:after {
    content: "";
    display: table;
    clear: both;
}

.active-tab {
    background-color: #d9534f !important;
    /* Màu đỏ btn-danger */
    color: #fff !important;
}

.table>:not(caption)>*>* {
    padding: 0.5rem 1rem;
}

/* ============================================================
   GLOBAL UI IMPROVEMENTS - Voler Modern Style
   Applied to all admin pages automatically
   ============================================================ */

/* --- Page Title (h1) --- */
.main-content h1 {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: #435ebe;
    margin-bottom: 1.2rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #ebeef5;
    position: relative;
    letter-spacing: -0.01em;
}

.main-content h1::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #435ebe, #5c86ff);
    border-radius: 2px;
}

/* --- Section Headers (.title-info) --- */
.title-info {
    background: linear-gradient(135deg, #435ebe 0%, #5c86ff 100%) !important;
    color: #fff !important;
    padding: 14px 20px !important;
    border-radius: 10px !important;
    margin: 24px 0 16px 0 !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 15px rgba(67, 94, 190, 0.25);
    position: relative;
    overflow: hidden;
}

.title-info::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 0 10px 10px 0;
}

/* --- Form Container --- */
div.form {
    background: #ffffff;
    border-radius: 14px;
    padding: 28px 30px !important;
    box-shadow: 0 6px 25px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    margin-bottom: 20px;
}

/* --- Form Rows - restore Flexbox for Bootstrap compatibility --- */
div.form .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

div.form .row.display_none {
    display: none !important;
}

/* Ensure labels in flex rows maintain their fixed width for old forms */
div.form .row>label {
    flex: 0 0 141px !important;
    margin-right: 10px;
}

/* Specialized column: .colAutocomplete (50% width, label over input) */
div.form .row .colAutocomplete {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    display: flex !important;
    flex-direction: column !important;
    padding-right: 15px !important;
    margin-bottom: 10px;
}

/* Reset fixed label width inside .colAutocomplete */
div.form .row .colAutocomplete>label {
    flex: initial !important;
    width: 100% !important;
    margin-bottom: 4px;
}

/* Reset Bootstrap .row > * width ONLY on non-label and non-col children */
div.form .row>input,
div.form .row>select,
div.form .row>textarea,
div.form .row>div:not([class*="col-"]):not(.colAutocomplete),
div.form .row>span,
div.form .row>em,
div.form .row>a,
div.form .row>button {
    width: auto !important;
    max-width: none !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

/* --- Form Labels --- */
div.form .row label {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    color: #475569;
    margin-right: 10px;
}

/* --- Form Inputs, Selects, Textareas --- */
div.form input[type=text],
div.form input[type="password"],
div.form input[type="number"],
div.form input[type="email"],
div.form input[type="tel"],
div.form textarea,
div.form select {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 0.9rem;
    color: #334155;
    background-color: #f8fafc;
    transition: all 0.25s ease;
    outline: none;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

div.form input[type=text]:focus,
div.form input[type="password"]:focus,
div.form input[type="number"]:focus,
div.form textarea:focus,
div.form select:focus {
    border-color: #435ebe !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(67, 94, 190, 0.12) !important;
}

div.form input[type=text]:hover,
div.form select:hover,
div.form textarea:hover {
    border-color: #94a3b8 !important;
}

div.form input[readonly],
div.form select[readonly],
div.form textarea[readonly] {
    background-color: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #64748b;
}

/* --- Submit Buttons --- */
div.form input[type="submit"],
div.form button[type="submit"] {
    background: linear-gradient(135deg, #435ebe 0%, #5c86ff 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 28px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(67, 94, 190, 0.3);
    letter-spacing: 0.03em;
    text-transform: none;
}

div.form input[type="submit"]:hover,
div.form button[type="submit"]:hover {
    background: linear-gradient(135deg, #3a51a8 0%, #4f75e6 100%) !important;
    box-shadow: 0 6px 20px rgba(67, 94, 190, 0.4) !important;
    transform: translateY(-1px);
}

div.form input[type="submit"]:active,
div.form button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(67, 94, 190, 0.3) !important;
}

/* --- Buttons row alignment --- */
div.form .row.buttons {
    padding-left: 0 !important;
    padding-top: 10px;
}

/* --- Fieldset (Accounting/Info sections) --- */
div.form fieldset {
    background: #ffffff;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 20px 24px !important;
    margin: 20px 0 !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    position: relative;
}

div.form fieldset legend {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.05rem !important;
    font-weight: 700;
    color: #435ebe;
    background: #fff;
    padding: 4px 16px;
    border-radius: 6px;
    margin-left: 8px;
}

/* Info notes inside fieldset - contained info block */
div.form fieldset>p {
    background: #f0f4ff;
    border-left: 4px solid #435ebe;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    margin: 8px 0 4px 0;
    display: block;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.7;
    clear: both;
    overflow: hidden;
}

div.form fieldset>i {
    background: #f0f4ff;
    border-left: 4px solid #435ebe;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    margin: 0 0 20px 0;
    display: block;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.7;
    clear: both;
    overflow: hidden;
    height: auto !important;
    width: auto !important;
}

div.form fieldset>i ul {
    margin: 6px 0;
    padding-left: 18px;
}

div.form fieldset>i ul li {
    margin-bottom: 4px;
}

div.form fieldset>.row {
    clear: both;
}

/* --- Materials Table --- */
.materials_table {
    width: 100% !important;
    border: none !important;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.materials_table thead tr th {
    background: linear-gradient(135deg, #435ebe 0%, #5c86ff 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 10px !important;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-transform: none;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.materials_table thead tr th:first-child {
    border-radius: 10px 0 0 0;
}

.materials_table thead tr th:last-child {
    border-radius: 0 10px 0 0;
}

.materials_table tbody tr td {
    border: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 10px !important;
    font-size: 0.88rem;
    color: #334155;
    vertical-align: middle;
}

.materials_table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.materials_table tbody tr:hover {
    background-color: #eef2ff !important;
    transition: background-color 0.2s ease;
}

.materials_table tfoot tr td {
    background: #f8fafc;
    border: none !important;
    border-top: 2px solid #e2e8f0 !important;
    padding: 12px 10px !important;
    font-weight: 700;
    color: #435ebe;
}

.materials_table tfoot tr td:first-child {
    border-radius: 0 0 0 10px;
}

.materials_table tfoot tr td:last-child {
    border-radius: 0 0 10px 0;
}

/* Table inputs */
.materials_table input[type="text"] {
    border-radius: 6px !important;
    padding: 6px 8px !important;
    border: 1.5px solid #e2e8f0 !important;
    font-size: 0.88rem;
    text-align: right;
}

.materials_table input[type="text"]:focus {
    border-color: #435ebe !important;
    box-shadow: 0 0 0 2px rgba(67, 94, 190, 0.1) !important;
}

/* --- view_materials_table (view pages) --- */
.view_materials_table {
    width: 100% !important;
    border: none !important;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.view_materials_table tr th {
    background: linear-gradient(135deg, #435ebe 0%, #5c86ff 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 10px !important;
    font-weight: 600;
}

.view_materials_table tr td {
    border: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 10px !important;
}

/* --- Note text --- */
div.form .note {
    background: #f0f4ff;
    border-radius: 8px;
    padding: 10px 16px;
    color: #435ebe;
    font-style: normal !important;
    font-size: 0.88rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 8px;
}

div.form .note .required {
    color: #ef4444;
}

/* --- Success message --- */
div.form div.success_div {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%) !important;
    color: #166534 !important;
    border-radius: 10px !important;
    padding: 16px 20px !important;
    border-left: 4px solid #22c55e;
    font-size: 1rem !important;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.15);
}

div.form div.success_div a {
    color: #166534 !important;
    font-weight: 700;
    text-decoration: underline;
}

/* --- Error Summary --- */
div.form .errorSummary {
    border: none !important;
    border-left: 4px solid #ef4444 !important;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
    border-radius: 0 10px 10px 0 !important;
    padding: 16px 20px !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
}

/* --- Radio Buttons (Inline style) --- */
div.form .radio-list-2 span {
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 6px;
}

div.form .radio-list-2 span label {
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 16px !important;
    font-weight: 500 !important;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block !important;
    float: none !important;
    width: auto !important;
    font-size: 0.88rem;
}

div.form .radio-list-2 span label:hover {
    border-color: #435ebe;
    background: #eef2ff;
    color: #435ebe;
}

div.form .radio-list-2 input[type=radio] {
    margin-right: 6px;
    accent-color: #435ebe;
}

div.form .radio-list-2 input[type=radio]:checked+label {
    background: #eef2ff;
    border-color: #435ebe;
    color: #435ebe;
    font-weight: 600 !important;
}

/* --- Highlight text (warnings) --- */
em.hight_light {
    background: #fff7ed;
    border-left: 3px solid #f97316;
    border-radius: 0 6px 6px 0;
    padding: 8px 12px;
    display: inline-block;
    margin: 6px 0;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* --- Operations / Action buttons (top-right Quản Lý, etc.) --- */
ul.operations li a {
    background: linear-gradient(135deg, #435ebe 0%, #5c86ff 100%);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 3px 10px rgba(67, 94, 190, 0.25);
}

ul.operations li a:hover {
    background: linear-gradient(135deg, #3a51a8 0%, #4f75e6 100%);
    box-shadow: 0 5px 18px rgba(67, 94, 190, 0.35);
    transform: translateY(-1px);
}

/* --- hm_table general hover improvement --- */
.hm_table tbody tr {
    transition: background-color 0.2s ease;
}

.hm_table tbody tr:hover {
    background: #eef2ff !important;
}

.hm_table tr.selected,
.hm_table tr.selected td {
    background: #dbeafe !important;
}

.hm_table tr:hover.selected {
    background: #c7d8f8 !important;
}

/* --- Remove icon (X delete) --- */
.remove_icon_only {
    background: none !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 6px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-indent: 0 !important;
    cursor: pointer;
    position: relative;
}

.remove_icon_only::before {
    content: '✕';
    font-size: 14px;
    color: #ef4444;
    font-weight: 700;
    position: static;
    background: none !important;
    width: auto !important;
    height: auto !important;
}

.remove_icon_only:hover {
    background: #fef2f2 !important;
}

.remove_icon_only:hover::before {
    color: #dc2626;
}

/* --- Date picker trigger icon --- */
.ui-datepicker-trigger {
    border-radius: 6px;
    padding: 4px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.ui-datepicker-trigger:hover {
    opacity: 0.8;
}

/* --- Search form (filter forms) --- */
/* .search-form {
    background: #fff !important;
    border-radius: 14px !important;
    padding: 24px 28px !important;
    box-shadow: 0 6px 25px rgba(15, 23, 42, 0.08) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
} */

/* --- Grid view tables --- */
.grid-view table {
    border-radius: 10px;
    overflow: hidden;
}

.grid-view table thead th {
    background: linear-gradient(135deg, #435ebe 0%, #5c86ff 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 10px !important;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
}

.grid-view table thead th a {
    color: #fff !important;
    text-decoration: none;
}

.grid-view table thead th a:hover {
    color: #dbeafe !important;
}

.grid-view table tbody td {
    border: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 10px !important;
    font-size: 0.88rem;
    color: #334155;
    vertical-align: middle;
}

.grid-view table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.grid-view table tbody tr:hover {
    background-color: #eef2ff !important;
    transition: background-color 0.2s ease;
}

/* --- Portlet (widgets) --- */
.portlet-title {
    background: linear-gradient(135deg, #435ebe 0%, #5c86ff 100%) !important;
    color: #fff !important;
    border-radius: 10px 10px 0 0 !important;
    padding: 12px 16px !important;
    font-weight: 600;
}

/* --- Upload file table --- */
.tb_file {
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid #e2e8f0;
}

.tb_file th {
    background: #f8fafc !important;
    font-weight: 600;
    color: #475569;
    padding: 10px !important;
}

.tb_file td {
    padding: 10px !important;
    border-bottom: 1px solid #f1f5f9;
}

/* --- Scrollbar styling ---  */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* --- More Col (multi-column rows) better spacing --- */
.more_col .col1,
.more_col .col2,
.more_col .col3 {
    padding: 4px 15px 4px 0;
}

/* --- Links inside form --- */
div.form a.gas_link,
div.form .add_new_item a {
    color: #435ebe !important;
    font-weight: 600;
    transition: color 0.2s ease;
}

div.form a.gas_link:hover,
div.form .add_new_item a:hover {
    color: #3a51a8 !important;
}

/* --- Breadcrumbs --- */
.breadcrumb {
    background: transparent !important;
    padding: 8px 0 !important;
    margin-bottom: 0 !important;
    font-size: 0.88rem;
}

/* --- Flash messages --- */
.flash.notice {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%) !important;
    color: #166534 !important;
    border-radius: 10px !important;
    border-left: 4px solid #22c55e !important;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.12);
}

.flash.notice_error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
    color: #991b1b !important;
    border-radius: 10px !important;
    border-left: 4px solid #ef4444 !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.12);
}

/* --- General body font improvement --- */
.main-content {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Autocomplete dropdown styling --- */
.ui-autocomplete {
    border-radius: 8px !important;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12) !important;
    border: 1px solid #e2e8f0 !important;
    padding: 4px !important;
    max-height: 300px;
    overflow-y: auto;
}

.ui-autocomplete .ui-menu-item {
    border-radius: 6px;
    margin: 2px 0;
}

.ui-autocomplete .ui-menu-item a,
.ui-autocomplete .ui-menu-item .ui-menu-item-wrapper {
    padding: 8px 12px !important;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #334155;
}

.ui-autocomplete .ui-menu-item a.ui-state-focus,
.ui-autocomplete .ui-menu-item .ui-menu-item-wrapper.ui-state-active,
.ui-autocomplete .ui-menu-item a:hover {
    background: #eef2ff !important;
    color: #435ebe !important;
    border: none !important;
    font-weight: 600;
}

/* --- Colorbox popup improvement --- */
#colorbox {
    border-radius: 12px !important;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2) !important;
}

/* --- Footer --- */
.footer {
    font-size: 0.85rem;
    color: #94a3b8 !important;
    padding: 16px 0;
}

/* --- Autocomplete Customer Info - hiển thị bên dưới input --- */
.autocomplete_customer_info {
    float: none !important;
    clear: both !important;
    margin-left: 0 !important;
    display: none;
    padding: 10px 14px;
    border: 1px solid #c5d1e8 !important;
    border-left: 3px solid #435ebe !important;
    border-radius: 0 6px 6px 0;
    background: #eef2ff;
    margin-top: 8px;
    width: fit-content;
    max-width: 100%;
}

.autocomplete_customer_info table {
    border: none !important;
    border-collapse: collapse;
    box-shadow: none !important;
    background: transparent !important;
    margin: 0;
    padding: 0;
}

.autocomplete_customer_info td._l {
    font-weight: 700;
    color: #435ebe;
    padding-right: 10px;
    white-space: nowrap;
    font-size: 0.85rem;
    vertical-align: top;
}

.autocomplete_customer_info td {
    padding: 2px 0 !important;
    font-size: 0.88rem;
    color: #334155;
    border: none !important;
    background: transparent !important;
}

/* Ensure the wrapper properly contains its floated children */
.unique_wrap_autocomplete {
    overflow: hidden;
}

/* --- Fix checkbox rows: checkbox + label must sit close together --- */
/* The Yii checkbox row structure is:
   .row (flex from Bootstrap)
     > label[&nbsp;]          (141px spacer)
     > input[hidden]
     > input[checkbox]
     > div > label.checkbox_one_label (text)
*/

/* Checkbox itself: no float, align with text */
div.form .row input[type="checkbox"].float_l {
    float: none !important;
    flex: none;
    margin: 0 6px 0 0;
    vertical-align: middle;
}

/* The div wrapping checkbox_one_label: make invisible to flex layout */
div.form .row input[type="checkbox"]~div {
    display: contents !important;
}

/* Checkbox text label: inline, no fixed width */
div.form .row .checkbox_one_label {
    float: none !important;
    display: inline !important;
    width: auto !important;
    vertical-align: middle;
    padding-left: 0 !important;
    flex: none;
}

div.form .row:has(.portlet-content) {
    margin-bottom: 5px !important; /* Tăng khoảng cách dưới */
    margin-top: 5px !important;    /* Thêm khoảng cách trên nếu cần */
}
.item_l { text-align: left !important; }
.item_r { text-align: right !important; }
.item_c { text-align: center !important; }
.item_b { font-weight: bold !important; }
.clr{clear:both;}