@charset "UTF-8";
.responsive-text {
    font-size: clamp(12px, 2vw, 24px);
}
.form-select {
    background-image: none !important; /* remove the SVG arrow */
}
.highlighted {
    outline: 3px solid #4CAF50;
    background-color: rgba(76, 175, 80, 0.2);
    transition: 0.3s;
}
/* ======= FORM STYLE FIX (Bootstrap5 + Kartik Widgets) ======= */
/* ✅ General input height for all .form-control */
.form-control {
    height: 38px !important;
    padding: 6px 12px !important;
    font-size: 0.95rem !important;
    border-radius: 0.375rem !important;
}
/* ✅ Select2 fix (Krajee + Bootstrap5 theme) */
.select2-container--krajee-bs5 .select2-selection {
    min-height: 38px !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 8px !important;
}
/* ✅ Rendered text align middle */
.select2-container--krajee-bs5 .select2-selection__rendered {
    line-height: 24px !important;
    padding-left: 0 !important;
}
/* ✅ Dropdown clear icon position */
.select2-container--krajee-bs5 .select2-selection__clear {
    top: 6px !important;
    right: 8px !important;
}
/* ✅ DateRangePicker input height match */
.kv-drp-container input.form-control, .daterangepicker-input {
    height: 38px !important;
    padding: 6px 12px !important;
    border-radius: 0.375rem !important;
}
/* Scale down font để giảm chiều cao tổng */
.select2-container--default .select2-selection--multiple {
    font-size: 0.75rem !important;   /* <--- CHỮ NHỎ HƠN */
    height: calc(2.25rem + 2px) !important;
    min-height: calc(2.25rem + 2px) !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
}
/* text trong vùng render cũng phải giảm */
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    font-size: 0.75rem !important;  /* <--- CHỮ NHỎ HƠN */
    display: flex;
    align-items: center;
    padding-left: 6px;
}
/* tag nhỏ hơn */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    font-size: 0.70rem !important;   /* <--- TAG RẤT NHỎ */
    padding: 2px 5px !important;
    margin: 0 4px 0 0 !important;
    line-height: 1.1 !important;
}
/* nút xoá */
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    font-size: 0.9rem !important;
    margin-right: 4px;
}
/* ✅ Tooltip / hint fix spacing */
.hint-block {
    margin-top: 3px !important;
    font-size: 0.85rem !important;
    color: #6c757d !important;
}
/* ✅ Compact filter row in GridView */
.grid-view .filters input,
.grid-view .filters select {
    height: 36px !important;
    padding: 6px 10px !important;
}
/* Use CSS to align or space them nicely */
.grid-view .filters td input + input {
    margin-top: 4px;
}
/* To keep all inputs the same width even if some have icons: */
.form-control, .select2-selection--single, .daterangepicker-input {
    width: 100%;
    box-sizing: border-box;
}
.form-group {
    margin-bottom: 1rem; /* adjust if spacing too tight */
}
.col-form-label {
    padding-top: calc(.375rem + 1px);
    padding-bottom: calc(.375rem + 1px);
}
/* hide only the Cancel Upload link (without affecting Remove File) */
.dz-remove.dz-cancel {
    display: none;
}
/* or hide all cancel/remove links */
.dz-preview .dz-remove {
    display: none;
}
.dz-remove {
    display: none !important;
}
.image-input {
    position: relative;
    display: inline-block;
    border-radius: 0.65rem;
    background-repeat: no-repeat;
    background-size: cover;
}
.image-input:not(.image-input-empty) {
    background-image: none !important;
}
.image-input .image-input-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 0.65rem;
    background-repeat: no-repeat;
    background-size: cover;
}
.image-input [data-kt-image-input-action] {
    cursor: pointer;
    position: absolute;
    transform: translate(-50%, -50%);
}
.image-input [data-kt-image-input-action=change] {
    left: 100%;
    top: 0;
}
.image-input [data-kt-image-input-action=change] input {
    width: 0 !important;
    height: 0 !important;
    overflow: hidden;
    opacity: 0;
}
.image-input [data-kt-image-input-action=cancel], .image-input [data-kt-image-input-action=remove] {
    position: absolute;
    left: 100%;
    top: 100%;
}
.image-input [data-kt-image-input-action=cancel] {
    display: none;
}
.image-input.image-input-changed [data-kt-image-input-action=cancel] {
    display: flex;
}
.image-input.image-input-changed [data-kt-image-input-action=remove] {
    display: none;
}
.image-input.image-input-empty [data-kt-image-input-action=remove],.image-input.image-input-empty [data-kt-image-input-action=cancel] {
    display: none;
}
.image-input.image-input-circle {
    border-radius: 50%;
}
.image-input.image-input-circle .image-input-wrapper {
    border-radius: 50%;
}
.image-input.image-input-circle [data-kt-image-input-action=change] {
    left: 100%;
    top: 0;
    transform: translate(-100%, 0%);
}
.image-input.image-input-circle [data-kt-image-input-action=cancel],.image-input.image-input-circle [data-kt-image-input-action=remove] {
    left: 100%;
    top: 100%;
    transform: translate(-100%, -100%);
}
.image-input.image-input-outline .image-input-wrapper {
    border: 3px solid #ffffff;
    box-shadow: 0 0.1rem 1rem 0.25rem rgba(0, 0, 0, 0.05);
}
.w-25px {
    width: 25px !important;
}
.h-25px {
    height: 25px !important;
}
/* Layout chính gridview */
.div-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
/* Header row */
.div-grid-header-row {
    display: flex;
    background: #f7f9fc;
    border-bottom: 1px solid #e2e6ef;
    font-weight: bold;
}
.div-grid-header {
    padding: 12px 10px;
    flex: 1;
    display: flex;
    align-items: center;
}
/* Filter row */
.div-grid-filter-row {
    display: flex;
    background: #fbfcff;
    border-bottom: 1px solid #e8ecf5;
}
.div-grid-filter {
    padding: 8px 10px;
    flex: 1;
}
/* Data rows */
.div-grid-body .div-grid-row {
    display: flex;
    border-bottom: 1px solid #f1f1f1;
    transition: background 0.15s;
}
.div-grid-body .div-grid-row:hover {
    background: #f5f9ff;
}
.div-grid-cell {
    padding: 12px 10px;
    flex: 1;
    display: flex;
    align-items: center;
}
/* Even row */
.div-grid-row:nth-child(even) {
    background: #fafafa;
}
/* Action column */
.div-grid-cell a {
    margin-right: 6px;
}
/* Checkbox alignment */
.div-grid-cell input[type="checkbox"] {
    transform: scale(1.2);
    margin: 0 auto;
}
/* Responsive: mobile chuyển sang card layout */
@media (max-width: 600px) {
    .div-grid-header-row,
    .div-grid-filter-row {
        display: none;
    }
    .div-grid-row {
        flex-direction: column;
        padding: 10px;
    }
    .div-grid-cell {
        width: 100%;
        padding: 6px 0;
        border-bottom: 1px dashed #e1e1e1;
    }
    .div-grid-cell:last-child {
        border-bottom: none;
    }
}
.postbox__comment h1 {
    font-size: 1.5rem;   /* ~24px */
}
.postbox__comment h2 {
    font-size: 1.3rem;   /* ~21px */
}
.postbox__comment h1,
.postbox__comment h2 {
    font-weight: 600;
    letter-spacing: -0.01em;
}
.postbox__comment h3 {
    font-size: 1.15rem;  /* ~18px */
}
.postbox__comment h4 {
    font-size: 1.05rem;  /* ~16.8px */
}
.postbox__comment h5 {
    font-size: 0.95rem;  /* ~15px */
}
.postbox__comment h6 {
    font-size: 0.9rem;   /* ~14px */
}
.postbox__comment h1,
.postbox__comment h2,
.postbox__comment h3,
.postbox__comment h4,
.postbox__comment h5,
.postbox__comment h6 {
    line-height: 1.3;
    margin: 0.8em 0 0.4em;
}
@media (max-width: 768px) {
    .postbox__comment h1 { font-size: 1.3rem; }
    .postbox__comment h2 { font-size: 1.2rem; }
    .postbox__comment h3 { font-size: 1.1rem; }
}