/*
 * Ro'yxat jadvallari (mijozlar, buyurtmalar): ko'k sarlavha, sarlavha ostida filtr qatori, zebra qatorlar.
 * GridView'da: 'tableOptions' => ['class' => 'table hl-table']
 *
 * Filtr qatori katagi style.css dagi `.table:not(.table-sm):not(.table-md):not(.dataTable) td`
 * (padding/height !important) qoidasini yengish uchun shu :not() zanjiri bilan kuchaytirilgan va !important.
 * Ma'lumot qatorlari va sarlavha esa temaning o'lchamlarida qoladi.
 */
.hl-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 16px;
    line-height: 1.6;
    color: #212529;
}

.hl-table thead tr:first-child th {
    background: #3273f6;
    color: #fff;
    font-weight: 400;
    font-size: 16px;
    border: none;
    padding: 14px 8px;
    vertical-align: middle;
    white-space: nowrap;
}

.hl-table thead tr:first-child th a {
    color: #fff;
    text-decoration: none;
}

.hl-table thead tr:first-child th a.asc::after,
.hl-table thead tr:first-child th a.desc::after {
    color: #fff;
}

.table.hl-table:not(.table-sm):not(.table-md):not(.dataTable) thead tr.filters td {
    background: #fff;
    border: none;
    border-bottom: 1px solid #dee2e6;
    height: auto !important;
    padding: 12px 8px !important;
}

.hl-table thead tr.filters .form-control {
    height: 38px;
    padding: 4px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-shadow: none;
    background-color: #fff;
}

.hl-table tbody td {
    border: none;
    border-bottom: 1px solid #dee2e6;
    padding: 16px 8px;
    vertical-align: middle;
}

/* GridView xulosa satri ("Namoyish etilayabdi ...") */
.grid-view .summary,
.client-grid-view .summary {
    font-size: 14px;
    margin-bottom: 4px;
}

/* zebra tr darajasida — qatorning inline foni (masalan tezkor/kech qolgan) ustun bo'ladi */
.hl-table tbody tr:nth-of-type(odd) {
    background-color: #f7f7f7;
}

.hl-table tbody tr:nth-of-type(even) {
    background-color: #fff;
}

.hl-table tbody td a:not(.btn):not(.badge) {
    color: #2d6fb7;
}

/* amallar ustunidagi "..." menyusi: oq fonda ajralib turishi uchun soya (navbar dropdown bilan bir xil uslub) */
.hl-table .dropdown-menu {
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hl-table tfoot td {
    border: none;
    padding: 12px 8px;
}

/*
 * Ro'yxat sahifasi kartasi: sarlavha qatori (nom + tugmalar) va jadval bloki bitta oq karta ichida,
 * orasida ingichka chiziq. Pjax konteyneri (yoki Pjax'siz sahifada `.hl-card`) ichidagi birinchi `.row` — sarlavha qatori.
 */
.client-index > [data-pjax-container],
.client-index > .hl-card {
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.client-index > [data-pjax-container] > .row:first-child,
.client-index > .hl-card > .row:first-child {
    margin: 0 !important;
    padding: 20px 24px;
    border-bottom: 1px solid #ececec;
}

.client-index > [data-pjax-container] > .client-grid-view,
.client-index > .hl-card > .client-grid-view {
    padding: 24px;
}

/*
 * Mijoz detail sahifasi (client/detail-view): oq kartalar, kalit–qiymat jadvali (qalin yorliq, ingichka chiziqlar).
 */
.client-detail .card {
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.client-detail .detail-kv {
    width: 100%;
    margin-bottom: 0;
}

.client-detail .detail-kv th,
.client-detail .detail-kv td {
    border-top: 1px solid #e9ecef;
    vertical-align: middle;
}

.client-detail .detail-kv th {
    width: 42%;
    font-weight: 700;
    color: #333333;
}

.client-detail .detail-kv td {
    word-break: break-word;
}
