#dropZone {
    border: 1px dotted black;
    text-align: center;
    width: -webkit-fill-available;
    font-size: 16px;
    color: #436c87;
    background: #dcebf5;
}

/* Cột "Tên phiếu" trong tab Phiếu Thu - Chi (SampleTours View modal) */
.st-voucher-name-col {
    width: 400px;
    max-width: 400px;
    word-break: break-word;
}

.tab-filter-duyet {
    padding: 9px 14px !important;
}

.gallery ul li img {
    width: 100%;
}

.gallery ul li {
    list-style: none;
    display: inline-flex;
    border: 1px solid #eaeaea;
    height: 150px;
    min-width: 114px;
    list-style-type: none;
    margin: 4px;
    padding: 10px;
    width: 17.78%;
    position: relative;
    overflow: hidden;
    text-align: center;
}

    .gallery ul li i.remove-file {
        /*font-size: 20px;*/
        cursor: pointer;
        background: #cccccc none repeat scroll 0 0;
        border: 1px solid #ddd;
        border-radius: 11px;
        color: #b1253a;
        padding: 0 2px;
        position: absolute;
        right: 6px;
        top: 3px;
        z-index: 100;
    }

.jumbotrons {
    border: 1px dashed #bdd0dc;
    padding: 8px 0px;
    text-align: center;
    color: #436c87;
    margin-bottom: 4px;
    font-size: 12px;
}

.service {
    padding-top: 20px;
}

.edit-sample-tour textarea.form-control {
    height: 36px;
}

.avatar-schedule {
    height: 200px;
    width: 100%;
}

#customers .customer .removeCustomer {
    position: absolute;
    right: 0;
    top: 25px;
    cursor: pointer;
}

.file_member_input_cccd {
    width: 39px;
    height: 39px;
    background: transparent;
    border: none;
}


.tmg_tet {
    width: 20px;
    position: absolute;
    bottom: 0;
    left: 0;
}

.ui-sortable-handle {
    touch-action: auto;
}

ul, li {
    margin: 0;
    padding: 0;
}

button, input, optgroup, select, textarea {
    font-family: unset;
}

.docChilds {
    margin-bottom: 10px;
}

.serveyChilds {
    margin-bottom: 10px;
}

.r_css {
    display: flex;
    align-items: center;
}

.create-popup {
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1000;
    padding-top: 20px;
    overflow-y: auto;
    /*color: #afafaf;*/
}

    .create-popup form {
        width: 80%;
        background: #fff;
        margin: auto;
        padding: 10px;
        position: relative;
        min-height: 70vh;
    }

        .create-popup form .label-popup {
            background: #eef6fb;
            border-radius: 5px;
            padding: 3px 5px;
            position: absolute;
        }

        .create-popup form .close {
            position: absolute;
            right: 10px;
        }

        .create-popup form h1 {
            font-size: 36px;
            text-transform: uppercase;
            text-align: center;
            margin-bottom: 1rem;
            font-weight: initial;
        }

    .create-popup .select2-choice, select.select {
        border: 0; /*background-color: #eeeeee;*/
        padding: 7px;
        text-align: center;
        width: 100%;
        border: 1px solid #afafaf;
        border-radius: 3px; /*color: #afafaf;*/
        height: 36px;
    }

    .create-popup.tour.group .salary input.form-control {
        height: 36px;
    }

.bg-white {
    background: #fff;
}

.create-popup input.form-control {
    border-radius: 0;
    cursor: text;
}

.create-popup label.control-label.text-center {
    text-align: center;
}

.create-popup .salary .col-form-label {
    text-transform: uppercase;
}

.create-popup .salary input.form-control {
    background: #eeeeee;
    border: 0;
    text-align: center;
    color: #afafaf;
    height: 30px;
}

.create-popup .salary .form-group {
    margin-bottom: 2em;
}

.price .salary .form-group {
    margin-bottom: 1em;
}

.create-popup button.btn-plus, .create-popup button.btn-save {
    background: orange;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.btn-plus {
    padding: 8px 15px;
    border-radius: 10px;
    background: orange;
}

.create-popup .mt-5 {
    margin-top: 1rem;
}

.create-popup legend {
    font-size: 16px;
    color: orange;
}

    .create-popup legend hr {
        margin-top: 5px;
    }

.create-popup button.btn-save {
    margin-left: auto;
}

.data-client input.form-control.search-ip {
    background: #eeeeee;
    border: 0px;
    border-radius: 10px;
}

.data-client button {
    border-radius: 10px;
    border: 0;
}

    .data-client button.btn-plus {
        padding: 6px 15px;
        font-weight: bold;
    }

        .data-client button.btn-plus:hover {
            background: orange;
        }

.data-client .content-group {
    margin-bottom: 0 !important;
}

.data-client .table > thead > tr > th, .data-client .table > tbody > tr > th, .data-client .table > tfoot > tr > th, .data-client .table > thead > tr > td,
.data-client .table > tbody > tr > td, .data-client .table > tfoot > tr > td {
    padding: 5px;
    text-align: center;
    color: #9b9b9b;
    font-size: 12px;
}

.data-client .table > tbody > tr > td {
    padding: 10px 5px;
}

.data-client .table > thead > tr > th {
    text-transform: uppercase;
    padding-right: 10px;
}

ul.list-ncc {
    display: flex;
    list-style-type: none;
}

    ul.list-ncc li {
        padding: 8px;
        text-transform: uppercase;
    }

        ul.list-ncc li a {
            color: #4e4e4e;
        }

            ul.list-ncc li a:hover {
                color: red;
            }

.data-client .dataTable thead .sorting:before, .data-client .dataTable thead .sorting:after, .data-client .dataTable thead .sorting_asc:after,
.data-client .dataTable thead .sorting_desc:after, .data-client .dataTable thead .sorting_asc_disabled:after,
.data-client .dataTable thead .sorting_desc_disabled:after {
    right: 4px;
}

.content .header-tb {
    display: flex;
    margin-bottom: 10px;
}

    .content .header-tb label {
        margin: 5px 10px;
    }



.create-popup.tour.group .nav-tabs.nav-tabs-solid > li > a {
    text-transform: uppercase;
}

.create-popup.tour.group .nav-tabs.nav-tabs-solid > .active > a, .create-popup.tour.group .nav-tabs.nav-tabs-solid > .active > a:hover,
.create-popup.tour.group .nav-tabs.nav-tabs-solid > .active > a:focus {
    background-color: orange;
    border-color: orange;
    color: #fff;
}


/* Hide the browser's default checkbox */
label.label-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
label.label-checkbox .checkmark {
    position: absolute;
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 1px solid lightgray;
    border-radius: 3px;
}

/* On mouse-over, add a grey background color */
label.label-checkbox:hover input ~ .checkmark {
    background-color: #fff;
    border: 1px solid lightgray;
    border-radius: 3px;
}

/* When the checkbox is checked, add a blue background */
label.label-checkbox input:checked ~ .checkmark {
    background-color: #fff;
    border: 1px solid #e5990f;
    border-radius: 3px;
}

/* Create the checkmark/indicator (hidden when not checked) */
label.label-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
label.label-checkbox input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
label.label-checkbox .checkmark:after {
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: 1px solid #e5990f;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

#itinerarys .item .icon {
    padding-top: 8px;
    padding-left: 10px;
}

    #itinerarys .item .icon i {
        cursor: pointer;
    }

.info-count .panel-body {
    padding: 10px
}

/**seller*/
.all-seller tr td {
    cursor: pointer
}

.all-seller tr.selected td {
    background: #e3f2fd
}

.customers {
}

    .customers .row-item {
    }

        .customers .row-item input {
            border: 0px
        }

        .customers .row-item:hover input {
            border: 1px solid #eeeeee
        }

.customer-grid {
}

#trans-debt tr td, .trans-debt input[type=text]:hover, #trans-debt-hd tr td, .trans-debt input[type=text]:hover {
    cursor: cell;
}

    #trans-debt tr td:first-child, #trans-debt-hd tr td:first-child {
        text-align: center;
        cursor: pointer !important;
    }

    #trans-debt tr td.num, #trans-debt-hd tr td.num {
        text-align: center;
        cursor: default !important;
    }

    #trans-debt tr td:last-child, #trans-debt-hd tr td:last-child {
        border-right: 1px solid #ddd;
    }

    #trans-debt tr td.tienlai {
        padding: 0 4px
    }

#trans-debt tr.temp td:first-child {
    background: #ddd
}

.trans-debt input:focus {
    cursor: text !important;
}

.trans-debt tr td.readonly {
    cursor: default !important;
}

.trans-debt input:focus, .trans-debt input:hover {
    outline: 1px solid #75bcf7;
}

.ui-state-active h4,
.ui-state-active h4:visited {
    color: #26004d;
}

.ui-menu-item {
    font-size: 12px
}

.ui-widget-content .ui-state-active {
    border: none !important;
}

.list_item_container {
}

.ui-widget-content .ui-state-active .list_item_container {
    background-color: #f5f5f5;
}

.row-action p {
    padding: 10px 0
}

    .row-action p i {
        cursor: pointer
    }
.d-flex-justify-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-detail-tour {
    width: 500px !important;
}

.panel-time-slot .control-label {
    padding: 8px 0;
    margin-bottom: 0;
}

.panel-time-slot .control-label-scenario {
    padding: 8px 0;
    margin-bottom: 0;
}

.panel-time-slot .collape-list-price-scenario {
    margin-top: -8px;
}

.panel-time-slot .money-price-scenario {
    width: calc(100% - 40px);
}

.spacer {
    display: block;
    width: 60px;
}

@media (max-width:768px) {
    .heading-elements {
        height: 66px;
        flex-wrap: wrap;
        top: 20px;
        left: 17px;
        flex-wrap: wrap;
        height: 59px;
    }

    .footer-detail-tour {
        width: 100% !important;
    }

    .panel-time-slot .money-price-scenario {
        width: 100%;
    }
}


.page-customer-by-ta .card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    background-color: #fff;
    padding: 0;
}

.page-customer-by-ta .card-title {
    background: #f1f4f9;
}

.page-customer-by-ta .control {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .page-customer-by-ta .control button {
        width: 28px;
        height: 28px;
        font-weight: bold;
        background-color: #f1f1f1;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

    .page-customer-by-ta .control .step-number {
        width: 30px;
        text-align: center;
        display: inline-block;
    }

.page-customer-by-ta .btn-plus {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-customer-by-ta .btn-minus {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-customer-by-ta input.form-control, select.form-control {
    height: 38px;
    border-radius: 6px;
    border: 1px solid #ccc;
}


.page-customer-by-ta .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.page-customer-by-ta .color-highlight {
    color: #fb7604;
    font-weight: bold;
}

.row-sync-customer-1 {
    min-width: 170px;
    width: 170px;
    left: 124px;
    z-index: 6;
}

.title_tour {
    width: 390px;
    max-width: 100%;
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.title_tour a,
.title_tour strong {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.quyettoan-dropdown.quyettoan-dropdown-horizontal-fit {
    top: 0;
    left: auto;
    right: 100%;
}

/* Cell wrap — cho cột text dài, override nowrap mặc định của datatable */
.cell-wrap {
    white-space: normal;
    word-break: break-word;
    min-width: 200px;
    max-width: 320px;
}

/* Filter fields (grid + field-search + label + inputs + <select> arrow + Select2 v3)
   — đã cover ở Common/style.css [id^="tk-manage-"] */

/* Filter grid responsive */
@media (max-width: 1399px) {
    #tk-manage-sample-tours .tk-filter-grid,
    #tk-manage-customer-debt-fit .tk-filter-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    #tk-manage-sample-tours .tk-filter-grid-adv,
    #tk-manage-customer-debt-fit .tk-filter-grid-adv { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1199px) {
    #tk-manage-sample-tours .tk-filter-grid,
    #tk-manage-sample-tours .tk-filter-grid-adv,
    #tk-manage-customer-debt-fit .tk-filter-grid,
    #tk-manage-customer-debt-fit .tk-filter-grid-adv { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    #tk-manage-sample-tours .tk-filter-grid,
    #tk-manage-sample-tours .tk-filter-grid-adv,
    #tk-manage-customer-debt-fit .tk-filter-grid,
    #tk-manage-customer-debt-fit .tk-filter-grid-adv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* .tk-field-search giữ mặc định span 2 từ line 693 — không cần lặp */
}
@media (max-width: 480px) {
    #tk-manage-sample-tours .tk-filter-grid,
    #tk-manage-sample-tours .tk-filter-grid-adv,
    #tk-manage-customer-debt-fit .tk-filter-grid,
    #tk-manage-customer-debt-fit .tk-filter-grid-adv { grid-template-columns: 1fr; }
    #tk-manage-sample-tours .tk-field-search,
    #tk-manage-customer-debt-fit .tk-field-search { grid-column: auto; }
}

/* Search button cell — aligns button to bottom of row so it matches other field heights */
#tk-manage-sample-tours .tk-field-submit,
#tk-manage-customer-debt-fit .tk-field-submit {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
#tk-manage-sample-tours .tk-field-submit > label,
#tk-manage-customer-debt-fit .tk-field-submit > label { visibility: hidden; }

/* Search button — brand orange + 8px radius */
#tk-manage-sample-tours .tk-btn-search,
#tk-manage-customer-debt-fit .tk-btn-search {
    width: 100%;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 8px !important;
    background: #eb5324 !important;
    color: #fff !important;
    border: none !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0 12px !important;
}
#tk-manage-sample-tours .tk-btn-search:hover,
#tk-manage-sample-tours .tk-btn-search:focus,
#tk-manage-sample-tours .tk-btn-search:active,
#tk-manage-customer-debt-fit .tk-btn-search:hover,
#tk-manage-customer-debt-fit .tk-btn-search:focus,
#tk-manage-customer-debt-fit .tk-btn-search:active {
    background: #d8451a !important;
    color: #fff !important;
    outline: none !important;
}

#tk-manage-sample-tours #see_more_search {
    margin: 0 !important;
    color: var(--tk-brand) !important;
    font-weight: 700 !important;
}
#tk-manage-sample-tours #see_more_search .show-more,
#tk-manage-sample-tours #see_more_search .hide-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
#tk-manage-sample-tours #see_more_search .show-more.d-none,
#tk-manage-sample-tours #see_more_search .hide-more.d-none {
    display: none;
}

/* ============================================================
   Action toolbar — buttons row + view modes + extras
   ============================================================ */
#tk-manage-sample-tours .tk-actions,
#tk-manage-customer-debt-fit .tk-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
#tk-manage-sample-tours .tk-actions-left,
#tk-manage-customer-debt-fit .tk-actions-left {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 1;
}
#tk-manage-sample-tours .tk-actions-right,
#tk-manage-customer-debt-fit .tk-actions-right {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    white-space: nowrap;
}

#tk-manage-sample-tours .tk-actions-right a.buttonss,
#tk-manage-customer-debt-fit .tk-actions-right a.buttonss {
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 32px;
    padding: 0 8px;
    margin: 0;
    border: 1px solid var(--tk-line);
    border-radius: var(--tk-r-md);
    background: #fff;
    box-shadow: none;
    overflow: visible;
}
#tk-manage-sample-tours .tk-actions-right a.buttonss:hover,
#tk-manage-customer-debt-fit .tk-actions-right a.buttonss:hover {
    background: var(--tk-bg-soft);
    border-color: var(--tk-mute-3);
}
#tk-manage-sample-tours .tk-actions-right a.buttonss img,
#tk-manage-customer-debt-fit .tk-actions-right a.buttonss img {
    width: 20px !important;
    height: 20px !important;
    display: block;
}

/* Action button base — used by Tạo tour, Tạo hàng loạt, Export, Lịch ĐL, Lịch KH, etc. */
#tk-manage-sample-tours .st-btn,
#tk-manage-customer-debt-fit .st-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: var(--tk-r-md);
    border: none;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--tk-tx), transform var(--tk-tx-fast);
}
#tk-manage-sample-tours .st-btn:hover,
#tk-manage-customer-debt-fit .st-btn:hover { transform: translateY(-1px); text-decoration: none; }

#tk-manage-sample-tours .st-btn--emerald,
#tk-manage-sample-tours .st-btn--brand,
#tk-manage-sample-tours .st-btn--warn,
#tk-manage-sample-tours .st-btn--rose,
#tk-manage-customer-debt-fit .st-btn--emerald,
#tk-manage-customer-debt-fit .st-btn--brand,
#tk-manage-customer-debt-fit .st-btn--warn,
#tk-manage-customer-debt-fit .st-btn--rose    { color: #fff !important; }
#tk-manage-sample-tours .st-btn--emerald,
#tk-manage-customer-debt-fit .st-btn--emerald { background: var(--tk-emerald); box-shadow: 0 4px 12px rgba(16,185,129,.22); }
#tk-manage-sample-tours .st-btn--emerald:hover,
#tk-manage-customer-debt-fit .st-btn--emerald:hover { background: var(--tk-emerald-700); }
#tk-manage-sample-tours .st-btn--brand,
#tk-manage-customer-debt-fit .st-btn--brand   { background: var(--tk-brand);   box-shadow: var(--tk-shadow-brand-sm); }
#tk-manage-sample-tours .st-btn--brand:hover,
#tk-manage-customer-debt-fit .st-btn--brand:hover   { background: var(--tk-brand-hover); }
#tk-manage-sample-tours .st-btn--warn,
#tk-manage-customer-debt-fit .st-btn--warn    { background: var(--tk-amber);   box-shadow: 0 4px 12px rgba(245,158,11,.22); }
#tk-manage-sample-tours .st-btn--warn:hover,
#tk-manage-customer-debt-fit .st-btn--warn:hover    { background: var(--tk-amber-700); }
#tk-manage-sample-tours .st-btn--rose,
#tk-manage-customer-debt-fit .st-btn--rose    { background: var(--tk-rose);    box-shadow: 0 4px 12px rgba(225,29,72,.22); }
#tk-manage-sample-tours .st-btn--rose:hover,
#tk-manage-customer-debt-fit .st-btn--rose:hover    { background: var(--tk-rose-700); }

/* Quantity selector — inline pill */
#tk-manage-sample-tours .st-quantity,
#tk-manage-customer-debt-fit .st-quantity {
    padding: 0 25px;
    height: 34px;
    border: 1px solid var(--tk-line);
    border-radius: var(--tk-r-md);
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    color: var(--tk-ink-2);
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #888 50%),
        linear-gradient(135deg, #888 50%, transparent 50%);
    background-position: calc(100% - 14px) 15px, calc(100% - 9px) 15px;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}

#tk-manage-sample-tours .tk-list-orders .table-responsive.st-table-scroll,
#tk-manage-customer-debt-fit .tk-list-orders .table-responsive.st-table-scroll {
    border-radius: var(--tk-r-3xl);
    padding: 4px;
    margin-bottom: 12px;
    /* cho phép scroll ngang nhưng ẩn thanh native (dùng #st-hscroll thay thế) */
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#tk-manage-sample-tours .tk-list-orders .table-responsive.st-table-scroll::-webkit-scrollbar,
#tk-manage-customer-debt-fit .tk-list-orders .table-responsive.st-table-scroll::-webkit-scrollbar {
    height: 0;
    width: 0;
    display: none;
}

#tk-manage-sample-tours #_sample_tour,
#tk-manage-customer-debt-fit #_sample_tour {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    font-size: 13px;
}
#tk-manage-sample-tours #_sample_tour thead tr,
#tk-manage-customer-debt-fit #_sample_tour thead tr { background: var(--tk-bg-soft); }
#tk-manage-sample-tours #_sample_tour thead th,
#tk-manage-customer-debt-fit #_sample_tour thead th {
    border-bottom: 1px solid var(--tk-line) !important;
    color: var(--tk-mute-2) !important;
    font-weight: 900 !important;
    font-size: 11px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 10px !important;
    text-align: left;
    white-space: nowrap;
}
#tk-manage-sample-tours #_sample_tour tbody td,
#tk-manage-customer-debt-fit #_sample_tour tbody td {
    border-top: 1px solid var(--tk-line-2) !important;
    padding: 12px 10px !important;
    vertical-align: middle;
    color: var(--tk-ink-2);
    font-size: 13px;
}
#tk-manage-sample-tours #_sample_tour tbody tr:hover,
#tk-manage-customer-debt-fit #_sample_tour tbody tr:hover { background: var(--tk-bg-soft); }
#tk-manage-sample-tours #_sample_tour tbody tr td p,
#tk-manage-customer-debt-fit #_sample_tour tbody tr td p { margin: 0 0 4px; }
#tk-manage-sample-tours #_sample_tour tbody tr td p:last-child,
#tk-manage-customer-debt-fit #_sample_tour tbody tr td p:last-child { margin-bottom: 0; }
/* Nowrap for Doanh thu column only — keep "Lợi nhuận HH: value" on one line */
#tk-manage-sample-tours #_sample_tour tbody tr td.st-revenue-cell p,
#tk-manage-customer-debt-fit #_sample_tour tbody tr td.st-revenue-cell p { white-space: nowrap; }
#tk-manage-sample-tours #_sample_tour tbody td label,
#tk-manage-customer-debt-fit #_sample_tour tbody td label {
    font-weight: 700;
    color: var(--tk-mute-2);
    font-size: 13px;
    margin-right: 4px;
    text-transform: none;
    margin-bottom: 0;
}
/* Anchor brand-color, trừ .dropdown-toggle (giữ màu mặc định từ theme cho icons-list) */
#tk-manage-sample-tours #_sample_tour a:not(.dropdown-toggle),
#tk-manage-customer-debt-fit #_sample_tour a:not(.dropdown-toggle) { color: var(--tk-brand); }
#tk-manage-sample-tours #_sample_tour a:not(.dropdown-toggle):hover,
#tk-manage-customer-debt-fit #_sample_tour a:not(.dropdown-toggle):hover { color: var(--tk-brand-hover); }
/* File link (.file_css > a) — giữ màu default anchor của theme, không nhuộm brand */
#tk-manage-sample-tours #_sample_tour .file_css a,
#tk-manage-sample-tours #_sample_tour .file_css a:hover,
#tk-manage-customer-debt-fit #_sample_tour .file_css a,
#tk-manage-customer-debt-fit #_sample_tour .file_css a:hover { color: revert; }
#tk-manage-sample-tours #_sample_tour .text-blue,
#tk-manage-customer-debt-fit #_sample_tour .text-blue    { color: var(--tk-blue-700) !important; }
#tk-manage-sample-tours #_sample_tour .text-danger,
#tk-manage-sample-tours #_sample_tour .text-warning,
#tk-manage-sample-tours #_sample_tour .text-success,
#tk-manage-sample-tours #_sample_tour .text-green,
#tk-manage-customer-debt-fit #_sample_tour .text-danger,
#tk-manage-customer-debt-fit #_sample_tour .text-warning,
#tk-manage-customer-debt-fit #_sample_tour .text-success,
#tk-manage-customer-debt-fit #_sample_tour .text-green   { font-weight: 700; }
#tk-manage-sample-tours #_sample_tour .text-danger,
#tk-manage-customer-debt-fit #_sample_tour .text-danger  { color: var(--tk-rose) !important; }
#tk-manage-sample-tours #_sample_tour .text-warning,
#tk-manage-customer-debt-fit #_sample_tour .text-warning { color: var(--tk-amber-700) !important; }
#tk-manage-sample-tours #_sample_tour .text-success,
#tk-manage-sample-tours #_sample_tour .text-green,
#tk-manage-customer-debt-fit #_sample_tour .text-success,
#tk-manage-customer-debt-fit #_sample_tour .text-green   { color: var(--tk-emerald-700) !important; }
#tk-manage-sample-tours #_sample_tour .strikethrough,
#tk-manage-customer-debt-fit #_sample_tour .strikethrough { text-decoration: line-through; color: var(--tk-mute-3); }

/* Status select — pill style */
#tk-manage-sample-tours #_sample_tour select.change_status_tour,
#tk-manage-customer-debt-fit #_sample_tour select.change_status_tour {
    border-radius: var(--tk-r-md) !important;
    border: none !important;
    padding: 6px 10px !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: .8px;
    cursor: pointer;
    min-width: 110px;
}

#tk-manage-sample-tours #_sample_tour .seat-info-cell,
#tk-manage-customer-debt-fit #_sample_tour .seat-info-cell {
    text-align: center;
    vertical-align: middle;
    min-width: 160px;
}
#tk-manage-sample-tours #_sample_tour .seat-badges,
#tk-manage-customer-debt-fit #_sample_tour .seat-badges {
    display: inline-flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
#tk-manage-sample-tours #_sample_tour .seat-badge,
#tk-manage-sample-tours #_sample_tour .label.seat-badge,
#tk-manage-customer-debt-fit #_sample_tour .seat-badge,
#tk-manage-customer-debt-fit #_sample_tour .label.seat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-decoration: none !important;
    cursor: default;
}
#tk-manage-sample-tours #_sample_tour a.seat-badge,
#tk-manage-sample-tours #_sample_tour a.label.seat-badge,
#tk-manage-customer-debt-fit #_sample_tour a.seat-badge,
#tk-manage-customer-debt-fit #_sample_tour a.label.seat-badge {
    cursor: pointer;
}
#tk-manage-sample-tours #_sample_tour a.seat-badge:hover,
#tk-manage-customer-debt-fit #_sample_tour a.seat-badge:hover { opacity: 0.85; color: #fff !important; }
#tk-manage-sample-tours #_sample_tour .label.bg-primary-400,
#tk-manage-customer-debt-fit #_sample_tour .label.bg-primary-400 { background: var(--tk-blue) !important; }
#tk-manage-sample-tours #_sample_tour .label.bg-warning-400,
#tk-manage-customer-debt-fit #_sample_tour .label.bg-warning-400 { background: var(--tk-amber) !important; }
#tk-manage-sample-tours #_sample_tour .label.bg-success,
#tk-manage-customer-debt-fit #_sample_tour .label.bg-success { background: var(--tk-emerald) !important; }
#tk-manage-sample-tours #_sample_tour .label.bg-danger,
#tk-manage-customer-debt-fit #_sample_tour .label.bg-danger { background: var(--tk-rose) !important; }

/* Seat color legend — sits to the right of tab strip (inside .trang_thai_duyet flex row) */
#tk-manage-sample-tours .tk-list-orders .seat-color-legend,
#tk-manage-customer-debt-fit .tk-list-orders .seat-color-legend {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 10px 12px;
    margin-left: auto;
}
#tk-manage-sample-tours .tk-list-orders .seat-color-legend .legend-title,
#tk-manage-customer-debt-fit .tk-list-orders .seat-color-legend .legend-title {
    font-size: 10.5px;
    font-weight: 800;
    color: var(--tk-mute-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: 2px;
}
#tk-manage-sample-tours .tk-list-orders .seat-color-legend .legend-item,
#tk-manage-customer-debt-fit .tk-list-orders .seat-color-legend .legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--tk-mute);
    white-space: nowrap;
}
#tk-manage-sample-tours .tk-list-orders .seat-color-legend .legend-dot,
#tk-manage-customer-debt-fit .tk-list-orders .seat-color-legend .legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    flex-shrink: 0;
}
#tk-manage-sample-tours .tk-list-orders .seat-color-legend .legend-dot.blue,
#tk-manage-customer-debt-fit .tk-list-orders .seat-color-legend .legend-dot.blue  { background: var(--tk-blue); }
#tk-manage-sample-tours .tk-list-orders .seat-color-legend .legend-dot.amber,
#tk-manage-customer-debt-fit .tk-list-orders .seat-color-legend .legend-dot.amber { background: var(--tk-amber); }
#tk-manage-sample-tours .tk-list-orders .seat-color-legend .legend-dot.green,
#tk-manage-customer-debt-fit .tk-list-orders .seat-color-legend .legend-dot.green { background: var(--tk-emerald); }
#tk-manage-sample-tours .tk-list-orders .seat-color-legend .legend-dot.red,
#tk-manage-customer-debt-fit .tk-list-orders .seat-color-legend .legend-dot.red   { background: var(--tk-rose); }

/* Action buttons in row (listCustomer, download, comment) */
#tk-manage-sample-tours #_sample_tour .btn-sm,
#tk-manage-customer-debt-fit #_sample_tour .btn-sm { border-radius: var(--tk-r-md); }

/* Cột "Tải DS" — giữ 2 nút Xem danh sách + Tải danh sách trên cùng 1 hàng */
#tk-manage-sample-tours #_sample_tour .st-tai-ds-actions,
#tk-manage-customer-debt-fit #_sample_tour .st-tai-ds-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* ============================================================
   SimpleList — trích inline CSS thành class scoped
   ============================================================ */

/* Deposit indicator cell (cột đầu — chỉ dải màu, tooltip trên hover) */
#tk-manage-sample-tours #_sample_tour td.st-deposit-yes,
#tk-manage-customer-debt-fit #_sample_tour td.st-deposit-yes { background: green; }
#tk-manage-sample-tours #_sample_tour td.st-deposit-no,
#tk-manage-customer-debt-fit #_sample_tour td.st-deposit-no  { background: yellow; }

/* Locktour icon + tour code tết decorator */
#tk-manage-sample-tours #_sample_tour .st-locktour-img,
#tk-manage-customer-debt-fit #_sample_tour .st-locktour-img { width: 30px; }
#tk-manage-sample-tours #_sample_tour .st-tourcode-cell,
#tk-manage-customer-debt-fit #_sample_tour .st-tourcode-cell { position: relative; }
#tk-manage-sample-tours #_sample_tour .st-tet-strong,
#tk-manage-customer-debt-fit #_sample_tour .st-tet-strong { position: absolute; left: 25px; }
#tk-manage-sample-tours #_sample_tour .st-tourguide-flag,
#tk-manage-customer-debt-fit #_sample_tour .st-tourguide-flag { padding: 3px; }

/* View seat inline anchor */
#tk-manage-sample-tours #_sample_tour .view_seat,
#tk-manage-customer-debt-fit #_sample_tour .view_seat { margin-left: 10px; }
#tk-manage-sample-tours #_sample_tour .view_seat i,
#tk-manage-customer-debt-fit #_sample_tour .view_seat i { margin-right: 3px; }

/* Rating widget (product-item-grid__rating) */
#tk-manage-sample-tours #_sample_tour .st-rating,
#tk-manage-customer-debt-fit #_sample_tour .st-rating {
    font-size: 10px;
    padding: 10px 0;
}
#tk-manage-sample-tours #_sample_tour .st-rating .st-rating-score,
#tk-manage-customer-debt-fit #_sample_tour .st-rating .st-rating-score {
    color: #8ac43f;
    box-shadow: 0 1px;
}
#tk-manage-sample-tours #_sample_tour .st-rating .st-rating-badge,
#tk-manage-customer-debt-fit #_sample_tour .st-rating .st-rating-badge {
    background: #8ac43f;
    color: #fff;
    border-radius: 4px;
    padding: 3px 5px;
    font-weight: 600;
}
#tk-manage-sample-tours #_sample_tour .st-rating .st-rating-count,
#tk-manage-customer-debt-fit #_sample_tour .st-rating .st-rating-count {
    color: #8ac43f;
    margin-left: 5px;
    font-weight: 600;
}

/* Clickable seat count cell — cursor + underline shadow trên số
   (font-weight dùng .font-500/600/700 từ Common/style.css; text-center dùng Bootstrap) */
#tk-manage-sample-tours #_sample_tour .st-clickable,
#tk-manage-customer-debt-fit #_sample_tour .st-clickable { cursor: pointer; }
#tk-manage-sample-tours #_sample_tour .st-num-underline,
#tk-manage-customer-debt-fit #_sample_tour .st-num-underline { box-shadow: 0 1px; }

/* Hoa Hồng cell — text màu xanh lá */
#tk-manage-sample-tours #_sample_tour .st-hoahong,
#tk-manage-customer-debt-fit #_sample_tour .st-hoahong { color: #4caf50; }

/* Ghi chú cell — width + line clamp 4 */
#tk-manage-sample-tours #_sample_tour td.st-ghichu-cell,
#tk-manage-customer-debt-fit #_sample_tour td.st-ghichu-cell {
    width: 20%;
    text-align: center;
}
#tk-manage-sample-tours #_sample_tour .st-notes-clamp,
#tk-manage-customer-debt-fit #_sample_tour .st-notes-clamp {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}


/* Chỉ style riêng dropdown-menu (popup) của icons-list — giữ nguyên style gốc của
   .icons-list và .dropdown-toggle từ Bootstrap/theme */
#tk-manage-sample-tours #_sample_tour .icons-list .dropdown-toggle,
#tk-manage-customer-debt-fit #_sample_tour .icons-list .dropdown-toggle {
    margin-left: 0px;
}

/* Sticky footer summary row — restyle inside table for compact totals bar look */
#tk-manage-sample-tours #_sample_tour tr.sticky,
#tk-manage-customer-debt-fit #_sample_tour tr.sticky {
    background: var(--tk-bg-soft);
    position: sticky;
    bottom: 0;
    z-index: 5;
}
#tk-manage-sample-tours #_sample_tour tr.sticky td,
#tk-manage-customer-debt-fit #_sample_tour tr.sticky td {
    border-top: 2px solid var(--tk-line) !important;
    padding: 10px 12px !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* label text-transform + letter-spacing kế thừa từ tr.sticky td (inheritable) — chỉ override color */
#tk-manage-sample-tours #_sample_tour tr.sticky label,
#tk-manage-customer-debt-fit #_sample_tour tr.sticky label {
    color: var(--tk-ink) !important;
}

#tk-manage-sample-tours .tk-list-orders .trang_thai_duyet ul.nav-tabs,
#tk-manage-customer-debt-fit .tk-list-orders .trang_thai_duyet ul.nav-tabs {
    gap: 20px !important;
}
#tk-manage-sample-tours .tk-list-orders .trang_thai_duyet ul.nav-tabs > li > a,
#tk-manage-customer-debt-fit .tk-list-orders .trang_thai_duyet ul.nav-tabs > li > a {
    padding: 12px 0 10px !important;
    font-size: 11px !important;
    letter-spacing: 1.2px !important;
}

@media (max-width: 480px) { #tk-manage-sample-tours .tk-stats-row,
 #tk-manage-customer-debt-fit .tk-stats-row { grid-template-columns: 1fr; } }

#tk-manage-sample-tours .tk-results .RPager,
#tk-manage-customer-debt-fit .tk-results .RPager {
    padding: 5px 0px;
}

/* ============================================================
   Mobile responsive — bổ sung cho các component chưa có breakpoint
   (filter grid + stats row đã có ở trên; đây là các phần còn lại)
   ============================================================ */

/* ---------- Tablet portrait (≤ 767px) ---------- */
@media (max-width: 767px) {
    #tk-manage-sample-tours .tk-list-orders .table-responsive.st-table-scroll,
    #tk-manage-customer-debt-fit .tk-list-orders .table-responsive.st-table-scroll {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        /* mobile: ẩn #st-hscroll nên hiện lại thanh scroll native làm chỉ báo */
        scrollbar-width: auto;
        -ms-overflow-style: auto;
    }
    #tk-manage-sample-tours .tk-list-orders .table-responsive.st-table-scroll::-webkit-scrollbar,
    #tk-manage-customer-debt-fit .tk-list-orders .table-responsive.st-table-scroll::-webkit-scrollbar {
        height: 8px;
        width: 8px;
        display: block;
    }
    #tk-manage-sample-tours #st-hscroll,
    #tk-manage-customer-debt-fit #st-hscroll { display: none !important; }

    /* Page header */
    #tk-manage-sample-tours .tk-page-title,
    #tk-manage-customer-debt-fit .tk-page-title { font-size: 20px !important; }
    #tk-manage-sample-tours .tk-page-sub,
    #tk-manage-customer-debt-fit .tk-page-sub   { font-size: 12px !important; }
    #tk-manage-sample-tours .tk-page-head,
    #tk-manage-customer-debt-fit .tk-page-head  { margin-bottom: 12px; }

    /* Card compact */
    #tk-manage-sample-tours .tk-card,
    #tk-manage-customer-debt-fit .tk-card       { padding: 12px 14px; margin-bottom: 12px; }
    #tk-manage-sample-tours .tk-card-head,
    #tk-manage-customer-debt-fit .tk-card-head  { flex-wrap: wrap; gap: 8px; padding-bottom: 8px; }
    #tk-manage-sample-tours .tk-card-title,
    #tk-manage-customer-debt-fit .tk-card-title { font-size: 11px; }

    /* Action toolbar — stack vertical */
    #tk-manage-sample-tours .tk-actions,
    #tk-manage-customer-debt-fit .tk-actions       { flex-direction: column; align-items: stretch; }
    #tk-manage-sample-tours .tk-actions-left,
    #tk-manage-sample-tours .tk-actions-right,
    #tk-manage-customer-debt-fit .tk-actions-left,
    #tk-manage-customer-debt-fit .tk-actions-right {
        width: 100%;
        margin-left: 0;
        flex-wrap: wrap;
    }
    #tk-manage-sample-tours .st-quantity,
    #tk-manage-customer-debt-fit .st-quantity { flex: 0 0 auto; }

    /* Tab strip (trang_thai_duyet) — wrap xuống dòng thay vì scroll ngang trên mobile */
    #tk-manage-sample-tours .tk-list-orders .trang_thai_duyet,
    #tk-manage-customer-debt-fit .tk-list-orders .trang_thai_duyet {
        overflow-x: visible;
    }
    #tk-manage-sample-tours .tk-list-orders .trang_thai_duyet ul.nav-tabs,
    #tk-manage-customer-debt-fit .tk-list-orders .trang_thai_duyet ul.nav-tabs {
        flex-wrap: wrap;
        white-space: normal;
        padding: 10px;
    }
    #tk-manage-sample-tours .tk-list-orders .trang_thai_duyet ul.nav-tabs > li,
    #tk-manage-customer-debt-fit .tk-list-orders .trang_thai_duyet ul.nav-tabs > li { flex-shrink: 1; }
    /* Ẩn seat color legend trên mobile (thông tin phụ, nhường không gian) */
    #tk-manage-sample-tours .tk-list-orders .seat-color-legend,
    #tk-manage-customer-debt-fit .tk-list-orders .seat-color-legend { display: none; }

    /* Market tabs — wrap xuống dòng thay vì scroll ngang */
    #tk-manage-sample-tours .tk-market-card,
    #tk-manage-customer-debt-fit .tk-market-card { padding: 12px 14px; }
    #tk-manage-sample-tours .tk-market-tabs,
    #tk-manage-customer-debt-fit .tk-market-tabs {
        flex-wrap: wrap;
        overflow-x: visible;
        gap: 6px 8px;
    }
    #tk-manage-sample-tours .tk-market-tabs > li,
    #tk-manage-customer-debt-fit .tk-market-tabs > li { flex-shrink: 1; }

    /* Stats cards — smaller */
    #tk-manage-sample-tours .tk-stat,
    #tk-manage-customer-debt-fit .tk-stat        { padding: 12px 14px; }
    #tk-manage-sample-tours .tk-stat .num,
    #tk-manage-customer-debt-fit .tk-stat .num   { font-size: 18px; }
    #tk-manage-sample-tours .tk-stat .lbl,
    #tk-manage-customer-debt-fit .tk-stat .lbl   { font-size: 10px; letter-spacing: 0.8px; }
    #tk-manage-sample-tours .tk-stat .ico,
    #tk-manage-customer-debt-fit .tk-stat .ico   { width: 30px; height: 30px; font-size: 14px; }

    /* Table — compact cells */
    #tk-manage-sample-tours #_sample_tour thead th,
    #tk-manage-customer-debt-fit #_sample_tour thead th { padding: 10px 8px !important; font-size: 10px !important; letter-spacing: 0.6px; }
    #tk-manage-sample-tours #_sample_tour tbody td,
    #tk-manage-customer-debt-fit #_sample_tour tbody td { padding: 10px 8px !important; }

    #tk-manage-sample-tours #_sample_tour .date-end-tour,
    #tk-manage-customer-debt-fit #_sample_tour .date-end-tour {
        white-space: pre-wrap;
    }

    /* Filter fields — smaller */
    #tk-manage-sample-tours .tk-field input.form-control,
    #tk-manage-sample-tours .tk-field select.form-control,
    #tk-manage-sample-tours .tk-field input[type="text"],
    #tk-manage-sample-tours .tk-field select,
    #tk-manage-customer-debt-fit .tk-field input.form-control,
    #tk-manage-customer-debt-fit .tk-field select.form-control,
    #tk-manage-customer-debt-fit .tk-field input[type="text"],
    #tk-manage-customer-debt-fit .tk-field select { height: 34px !important; font-size: 11px !important; }
    #tk-manage-sample-tours .tk-btn-search,
    #tk-manage-customer-debt-fit .tk-btn-search    { height: 34px; font-size: 11px !important; }

    #tk-manage-sample-tours #filterForm,
    #tk-manage-customer-debt-fit #filterForm {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    #tk-manage-sample-tours .tk-filter-grid,
    #tk-manage-sample-tours .tk-filter-grid-adv,
    #tk-manage-customer-debt-fit .tk-filter-grid,
    #tk-manage-customer-debt-fit .tk-filter-grid-adv { display: contents; }
    #tk-manage-sample-tours .tk-field-submit,
    #tk-manage-customer-debt-fit .tk-field-submit { order: 999; margin-top: 4px; }
    #tk-manage-sample-tours .tk-field-submit > label,
    #tk-manage-customer-debt-fit .tk-field-submit > label { display: none; }
    #tk-manage-sample-tours .tk-field-submit .tk-btn-search,
    #tk-manage-customer-debt-fit .tk-field-submit .tk-btn-search { width: 100%; }
}

/* ---------- Mobile (≤ 480px) ---------- */
@media (max-width: 480px) {
    /* Page header — thu nhỏ hơn */
    #tk-manage-sample-tours .tk-page-title,
    #tk-manage-customer-debt-fit .tk-page-title { font-size: 16px !important; }
    #tk-manage-sample-tours .tk-page-sub,
    #tk-manage-customer-debt-fit .tk-page-sub   { font-size: 11px !important; }
    #tk-manage-sample-tours .tk-tagline,
    #tk-manage-customer-debt-fit .tk-tagline    { font-size: 10px; }

    /* Card — padding gọn hơn */
    #tk-manage-sample-tours .tk-card,
    #tk-manage-customer-debt-fit .tk-card       { padding: 10px; }
    #tk-manage-sample-tours .tk-card-head,
    #tk-manage-customer-debt-fit .tk-card-head  { padding-bottom: 6px; margin-bottom: 8px; }

    /* Stat cards — cực gọn */
    #tk-manage-sample-tours .tk-stat,
    #tk-manage-customer-debt-fit .tk-stat       { padding: 10px 12px; gap: 8px; }
    #tk-manage-sample-tours .tk-stat .num,
    #tk-manage-customer-debt-fit .tk-stat .num  { font-size: 16px; }
    #tk-manage-sample-tours .tk-stat .lbl,
    #tk-manage-customer-debt-fit .tk-stat .lbl  { font-size: 9px; }
    #tk-manage-sample-tours .tk-stat .ico,
    #tk-manage-customer-debt-fit .tk-stat .ico  { width: 26px; height: 26px; font-size: 12px; }

    /* Tab strip padding gọn hơn */
    #tk-manage-sample-tours .tk-list-orders .trang_thai_duyet ul.nav-tabs,
    #tk-manage-customer-debt-fit .tk-list-orders .trang_thai_duyet ul.nav-tabs { gap: 8px !important; }
    #tk-manage-sample-tours .tk-list-orders .trang_thai_duyet ul.nav-tabs > li > a,
    #tk-manage-customer-debt-fit .tk-list-orders .trang_thai_duyet ul.nav-tabs > li > a {
        padding: 10px 0 8px !important;
        font-size: 10px !important;
        letter-spacing: 0.6px !important;
    }

    /* Pagination — nút nhỏ hơn */
    #tk-manage-sample-tours .tk-results .RPager,
    #tk-manage-customer-debt-fit .tk-results .RPager { padding: 8px 0; }
}

/* ============================================================
   /customer-debt-fit — dùng chung giao diện /sample-tours
   (các rule #tk-manage-sample-tours phía trên đã thêm selector #tk-manage-customer-debt-fit).
   Khối dưới: phần riêng của màn + trung hoà class Bootstrap cũ được GIỮ LẠI trong markup
   (.row, .col-lg-*, .form-group, .panel bg-*-300, .pd-20 …) để không đổi tên class/id.
   ============================================================ */

/* Bộ lọc: khung .row cũ quanh form + padding .pd-20 */
#tk-manage-customer-debt-fit .tk-card > .row { margin: 0; }
#tk-manage-customer-debt-fit #filterForm.pd-20 { padding: 0 !important; }
/* .form-group giữ margin-bottom mặc định như /sample-tours → khoảng cách giữa các hàng lọc giống màn mẫu */

/* Nút "Xem thêm bộ lọc nâng cao" — id riêng (không dùng #see_more_search của màn mẫu) */
#tk-manage-customer-debt-fit #see_more_search_debtfit {
    margin: 0 !important;
    color: var(--tk-brand) !important;
    font-weight: 700 !important;
}
#tk-manage-customer-debt-fit #see_more_search_debtfit .show-more,
#tk-manage-customer-debt-fit #see_more_search_debtfit .hide-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
#tk-manage-customer-debt-fit #see_more_search_debtfit .show-more.d-none,
#tk-manage-customer-debt-fit #see_more_search_debtfit .hide-more.d-none {
    display: none;
}

/* Thanh thao tác: khung .row / .col-lg-6 / .form-group cũ */
#tk-manage-customer-debt-fit .tk-actions.row { margin: 0; }
#tk-manage-customer-debt-fit .tk-actions.row::before,
#tk-manage-customer-debt-fit .tk-actions.row::after { display: none; }
#tk-manage-customer-debt-fit .tk-actions-left.col-lg-6 { width: auto; float: none; padding: 0; min-height: 0; }
#tk-manage-customer-debt-fit .tk-actions .form-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

/* Tab trạng thái trong bảng (.debt_fit_status) — giống .trang_thai_duyet của màn mẫu */
#tk-manage-customer-debt-fit .tk-results .debt_fit_status {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--tk-line-2);
}
#tk-manage-customer-debt-fit .tk-results .debt_fit_status ul.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 20px !important;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border-bottom: none !important;
}
#tk-manage-customer-debt-fit .tk-results .debt_fit_status ul.nav-tabs > li {
    float: none !important;
    margin: 0 !important;
    background: transparent !important;
}
#tk-manage-customer-debt-fit .tk-results .debt_fit_status ul.nav-tabs > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    padding: 12px 0 10px !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    color: var(--tk-mute-3) !important;
    font-size: 11px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px !important;
    transition: color var(--tk-tx), border-color var(--tk-tx);
}
#tk-manage-customer-debt-fit .tk-results .debt_fit_status ul.nav-tabs > li > a:hover {
    background: transparent !important;
    color: var(--tk-ink) !important;
}
#tk-manage-customer-debt-fit .tk-results .debt_fit_status ul.nav-tabs > li.active > a,
#tk-manage-customer-debt-fit .tk-results .debt_fit_status ul.nav-tabs > li.active > a:focus,
#tk-manage-customer-debt-fit .tk-results .debt_fit_status ul.nav-tabs > li.active > a:hover {
    background: transparent !important;
    border-bottom-color: var(--tk-brand) !important;
    color: var(--tk-ink) !important;
}

/* Thẻ thống kê: .row / .col-lg-3 / .panel bg-*-300 / .panel-body / h3.text-right cũ */
#tk-manage-customer-debt-fit .info-count.row { margin: 18px 0 0; text-align: left; }
#tk-manage-customer-debt-fit .info-count.row::before,
#tk-manage-customer-debt-fit .info-count.row::after { display: none; }
#tk-manage-customer-debt-fit .info-count > .col-lg-3 { width: auto; float: none; padding: 0; min-height: 0; }
#tk-manage-customer-debt-fit .info-count .tk-stat.panel {
    height: 100%;
    margin: 0;
    background: #fff;
    border-color: var(--tk-line-2);
    color: inherit;
}
#tk-manage-customer-debt-fit .info-count .tk-stat > .panel-body { padding: 0; }
#tk-manage-customer-debt-fit .info-count .tk-stat .num { margin: 0; text-align: left; }

@media (max-width: 767px) {
    #tk-manage-customer-debt-fit .tk-results .debt_fit_status ul.nav-tabs { gap: 8px !important; }
    #tk-manage-customer-debt-fit .tk-actions-left.col-lg-6 { width: 100%; }
}

#marketFilterDebtFIT .market-wrapper {
    display: flex;
}

#marketFilterDebtFIT .market-list {
    flex: 1;
    min-width: 0;
}

#marketFilterDebtFIT .market-list.collapsed ul > li:nth-child(n+10) {
    display: none;
}

#marketFilterDebtFIT .market-expand {
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 10px;
    font-size: 12px;
    font-weight: 700;
}

#marketFilterDebtFIT .market-expand a {
    color: #f97316;
    text-decoration: none;
}

#marketFilterDebtFIT .market-expand i {
    margin-left: 5px;
}

/* Tên thị trường dài: cho xuống dòng trong tab, không tràn khung */
#tk-manage-customer-debt-fit .tk-market-tabs > li { max-width: 100%; min-width: 0; }
#tk-manage-customer-debt-fit .tk-market-tabs > li > a {
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    word-break: break-word;
    text-align: left;
}

/* Màn hình nhỏ: theme biến .nav-tabs thành khung có viền + nhãn "Bộ lọc" (::before) — tắt như /booking-ticket;
   nút Xem thêm xuống dưới danh sách thay vì chiếm cột bên phải */
@media (max-width: 768px) {
    #tk-manage-customer-debt-fit .tk-market-tabs,
    #tk-manage-customer-debt-fit .debt_fit_status ul.nav-tabs {
        border: none !important;
        padding: 0;
    }
    #tk-manage-customer-debt-fit .tk-market-tabs::before,
    #tk-manage-customer-debt-fit .debt_fit_status ul.nav-tabs::before {
        display: none;
    }
    #marketFilterDebtFIT .market-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    #marketFilterDebtFIT .market-expand {
        margin-left: 0;
        text-align: right;
    }
}
