/* =============================================================
   XBP – List / Search UI – CSS dùng chung cho UIQuanLyXuatBanPham
   S? d?ng: thêm vào ??u m?i file UI ascx
     <link rel="stylesheet" href="/DesktopModule/UIQuanLyXuatBanPham/xbp-list.css" />
   ============================================================= */

/* ?? Wrapper t?ng ????????????????????????????????????????????? */
.ListControl {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #333;
    margin: 0;
    padding: 0;
}

/* ?? Khu v?c t́m ki?m ????????????????????????????????????????? */
.ListControl .Search {
    background: #f5f8ff;
    border: 1px solid #d0dff7;
    border-radius: 4px;
    padding: 10px 14px 14px;
    margin-bottom: 14px;
}

/* ?? Tiêu ?? section (T̀M KI?M / DANH SÁCH) ??????????????????? */
.ListControl .ExTitle h1 {
    font-size: 14px;
    font-weight: bold;
    color: #1565c0;
    background: #ddeeff;
    border-left: 4px solid #1976d2;
    padding: 6px 10px;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ?? M?i ḍng trong form t́m ki?m ????????????????????????????? */
.ListControl .Search .ExContent .mb-2 {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 4px;
}

.ListControl .Search .ExContent .col-md-3 {
    width: 180px;
    min-width: 140px;
    font-weight: 600;
    color: #444;
    padding-right: 8px;
    flex-shrink: 0;
}

.ListControl .Search .ExContent .col-md-9 {
    flex: 1;
    min-width: 200px;
}

/* ?? Input / TextBox / DropDownList ??????????????????????????? */
.ListControl .Search input[type="text"],
.ListControl .Search textarea,
.ListControl .Search select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #b0c4de;
    border-radius: 3px;
    padding: 4px 8px;
    height: 28px;
    font-size: 13px;
    color: #333;
    background: #fff;
    transition: border-color 0.2s;
}

.ListControl .Search > input[type="text"]:focus,
    .ListControl .Search select:focus {
        border-color: #1976d2;
        outline: none;
        box-shadow: 0 0 0 2px rgba(25,118,210,0.15);
    }

/* ?? Nút t́m ki?m (CssClass="Search") ????????????????????????? */
.ListControl input.Search,
.ListControl .Search input[type="submit"],
.ListControl .Search input[type="button"] {
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 5px 18px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.ListControl input.Search:hover,
.ListControl .Search input[type="submit"]:hover {
    background: #1565c0;
}

/* ?? Khu v?c danh sách ????????????????????????????????????????? */
.ListControl .List {
    margin-top: 4px;
}

.ListControl .List .Title {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
    padding-left: 2px;
}

/* ?? GridView table ???????????????????????????????????????????? */
.ListControl .List table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ListControl .List table th {
    background: #1976d2;
    color: #fff;
    padding: 7px 8px;
    text-align: center;
    font-weight: bold;
    white-space: nowrap;
    border: 1px solid #1565c0;
}

.ListControl .List table td {
    padding: 5px 8px;
    border: 1px solid #dce6f0;
    vertical-align: middle;
}

/* Zebra striping */
.ListControl .List table tr:nth-child(even) td {
    background: #f0f6ff;
}

.ListControl .List table tr:hover td {
    background: #e3f1fe;
}

/* ?? Pager (phân trang) ???????????????????????????????????????? */
.ListControl .List table tr.GridPager td {
    background: #f5f8ff;
    text-align: center;
    padding: 6px;
    border: none;
}

.ListControl .List table tr.GridPager td a,
.ListControl .List table tr.GridPager td span {
    display: inline-block;
    padding: 2px 8px;
    margin: 0 2px;
    border: 1px solid #b0c4de;
    border-radius: 3px;
    color: #1976d2;
    text-decoration: none;
    font-size: 12px;
}

.ListControl .List table tr.GridPager td span {
    background: #1976d2;
    color: #fff;
    border-color: #1976d2;
    font-weight: bold;
}

.ListControl .List table tr.GridPager td a:hover {
    background: #e3f1fe;
}

/* ?? Empty data text ??????????????????????????????????????????? */
.ListControl .List table td[colspan] {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 16px;
}

/* ?? divInfo (thông báo l?i) ??????????????????????????????????? */
.ListControl .Search #divInfo {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 3px;
    padding: 6px 10px;
    margin-bottom: 8px;
    color: #856404;
    font-size: 13px;
}

.RadComboBox table td.rcbInputCell {
    background-image: none !important;
    padding: 0 2px 0 0;
}
.xbp-detail-link {
    color: #1976d2;
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
}

.xbp-detail-link:hover {
    color: #0d47a1;
    text-decoration: underline;
}