/* Warranty Search Form Styles */
.warranty-search-form {
/*     background: #f8f9fa; */
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
/*     border: 1px solid #e9ecef; */
}

.search-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.search-filters input[type="text"],
.search-filters input[type="date"],
.search-filters select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    min-width: 150px;
}

.search-filters input[type="text"]:focus,
.search-filters input[type="date"]:focus,
.search-filters select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.btn-check-bao-hanh-san-pham,
.btn-show-all {
    background: #28a745;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    text-transform: uppercase;
    transition: background-color 0.2s;
}

.btn-check-bao-hanh-san-pham:hover {
    background: #218838;
}

.btn-show-all {
    background: #007cba;
    margin-left: 5px;
}

.btn-show-all:hover {
    background: #005a87;
}

/* Warranty Results Table */
.warranty-results {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#loginform p
{
	width:100% !important;
}
.login-f
{
	width:60% !important;
	min-width:400px !important;
}
.warranty-results thead tr {
    background-color: #f8f9fa;
}

.search-filters input[type="text"],
.search-filters input[type="date"],
.search-filters select {
    max-width: 150px;
}

.warranty-image img {
    border: 1px solid #28a745;
}

.warranty-results th {
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #dee2e6;
    background-color: #e9ecef;
}

.warranty-results td {
    padding: 12px 8px;
    vertical-align: top;
    border: 1px solid #dee2e6;
}

.warranty-results tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.warranty-results tbody tr:hover {
    background-color: #e8f4f8;
}

/* Warranty Results Grid & Card Styles */
.warranty-results-grid {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.warranty-card {
    display: flex;
    border-radius: 8px;
    padding: 15px;
    background: white;
/*     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s; */
}

.warranty-card:hover {
/*     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); */
}

.warranty-image {
    flex: 0 0 150px;
    margin-right: 15px;
}

.warranty-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    border: 3px solid #28a745 !important;
}

.warranty-content {
    flex: 1;
}

#message {
    display: none !important;
}

.warranty-content div {}

.warranty-content div:last-child {
    margin-bottom: 0;
}

.warranty-content strong {
    color: #2c5aa0;
    font-size: 14px;
}

.warranty-content span {
    color: #333;
}

/* Responsive Design for Cards */
@media (max-width: 768px) {
    .warranty-card {
        flex-direction: column;
        padding: 12px;
    }

    .warranty-image {
        flex: none;
        margin-right: 0;
        margin-bottom: 15px;
        text-align: center;
    }

    .warranty-image img {
        width: 120px;
        height: 100px;
    }

    .warranty-content div {
        margin-bottom: 6px;
    }
}

/* Pagination Styles */
.warranty-pagination {
    margin-top: 20px;
    text-align: center;
}

.warranty-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s;
}

.warranty-pagination .page-numbers.current {
    background: #007cba;
    color: white;
}

.warranty-pagination .page-numbers:not(.current) {
    background: #f1f1f1;
    color: #333;
}

.warranty-pagination .page-numbers:not(.current):hover {
    background: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .search-filters input,
    .search-filters select,
    .search-filters button {
        width: 100%;
        margin-bottom: 10px;
    }

    .warranty-results {
        font-size: 12px;
    }

    .warranty-results th,
    .warranty-results td {
        padding: 6px 4px;
    }
}

#bao-hanh-table {
    width: 100%;
}

#bao-hanh-filter {
    padding: 10px;
    background: #f6f6f6;
    overflow: hidden;
    justify-content: left;
    align-items: center;
    vertical-align: middle;
}

.btn-add,
#btn-del-all,
#btn-import,
#btn-file-mau,
#btnimportex,
.btn-add-seri,
#btn-del-all-seri,
#btn-import-seri,
#btn-file-mau-seri,
#btnimportex-seri,
#luu_bao_hanh_san_pham_seri_donhang,
.btn-add-seri,
#btn-del-all-dichvu,
#btn-import-dichvu,
#btn-file-mau,
#luu_dichvu,
.btn-add-dichvu,
#btnimportex-dichvu,
.btn-add-seri_donhang {
    background: #004e92;
    color: #fff !important;
    font-size: 13px;
}

.bao-hanh-filter-control label {
    font-size: 13px;
    font-weight: 400 !important;
    margin-right: 10px;
    margin-left: 10px;
    margin-bottom: 0px;
}

#sbaohanh,
#ngaybaohanh,
#sbaohanh-seri,
#ngaytu,
#ngayden,
#locngay {
    margin-bottom: 0px !important;
    border-radius: 25px;
    height: 30px;
    font-size: 12px;
    max-width: 200px;
}

.page-numbers {
    padding: 2px 6px;
    background: #ddd;
}

.page-numbers.current {
    padding: 2px 6px;
    background: #F58634;
    color: #fff;
}

.stinhtrang {
    padding: 5px 5px;
    height: 30px;
    font-size: 12px;
    background: #fff;
    color: #777;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-left: 10px;
}

.stinhtrang.active {
    background: #004e92;
    color: #fff;
    font-weight: 600;
}

.timkiem {
    width: 20%;
}

.timkiem input {
    width: 100%;
    float: left;
}

#bao-hanh-table-list table,
#table-list-dichvu table {
    border: 1px solid #ddd;
}

#bao-hanh-table-list table tr td,
#table-list-dichvu table tr td {
    border-left: 1px solid #ddd;
}

#bao-hanh-table-list table tr td:first-child,
#table-list-dichvu table tr td:first-child {
    border-left: 0px solid #ddd;
}

.bao-hanh-filter-control {
    width: 100%;
    float: left;
    margin-bottom: 0px !important;
    display: flex;
    justify-content: left;
    align-items: center;
    vertical-align: middle;
}

#bao-hanh-table-list th,
#bao-hanh-table-list td,
#bao-hanh-table-list-seri th,
#bao-hanh-table-list-seri td,
#table-list-dichvu th,
#table-list-dichvu td {
    padding: 10px;
    font-size: 12px;
}

#bao-hanh-table-list tbody tr:nth-child(2n),
#bao-hanh-table-list-seri tbody tr:nth-child(2n),
#table-list-dichvu tbody tr:nth-child(2n) {
    background: #f6f6f6;
}

#bao-hanh-table-list tbody tr:nth-child(2n+1),
#bao-hanh-table-list-seri tbody tr:nth-child(2n+1),
#table-list-dichvu tbody tr:nth-child(2n+1) {
    background: #fff;
}

.btn {
    padding: 5px 8px;
    border-radius: 5px;
    margin-left: 10px;
    color: #fff;
}

.action {
    display: flex;
}

.btn-sua,
.btn-sua-seri,
.btn-sua-dichvu {
    background: #00A859;
}

.btn-xoa,
.btn-xoa-seri,
.btn-xoa-dichvu {
    background: #F58634;
}

#ngaybaohanh {
    width: 20%;
    margin-bottom: 0px !important;
    margin-left: 10px;
    border-radius: 25px;
}

/* Empty CSS rule removed */

#frm_them_moi .f_inner {
    height: fit-content;
    background: #fff;
}

#frm_them_moi .f_inner .f_header {
    background: #004cc5;
    color: #fff;
    position: relative;
    padding: 10px;
}

#frm_them_moi .f_inner .f_header h3 {
    text-align: center;
    color: #fff;
}

.f_header .f_close {
    position: absolute;
    right: 20px;
    top: 10px;
    color: #fff;
    font-size: 20px;
}

.f_content {
    padding: 20px;
}

#luu_bao_hanh_san_pham,
#luu_bao_hanh_san_pham_seri {
    background: #004cc5;
    color: #fff;
    width: 100%;
}

.table-service thead tr {
    background: #ececec;
}

.table-service {
    border: 1px solid #ececec;
    margin-top: 20px;
}

.table-service th {
    border-right: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
    padding: 10px;
}

.table-service tr td {
    border-right: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
    padding: 10px;
}

.ui-menu {
    z-index: 99999999;
}

#btn-del-all,
#btn-del-all-seri {
    display: none;
}

#frm_import {
    padding: 20px;
}

.ui-tabs .ui-tabs-panel {
    padding: 10px 0px !important;
}

.ui-widget.ui-widget-content {
    border: none !important;
}

.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
    background: #004e92;
}

.ui-tabs .ui-tabs-nav {
    padding: 0px !important;
    background: none !important;
    border: none !important;
}

.ui-tabs .ui-tabs-nav .ui-tabs-anchor {
    font-size: 14px;
}

#luu_bao_hanh_san_pham_seri {
    margin-bottom: 0px !important;
}

.cot1 {
    width: 10%;
    float: left;
}

.cot2 {
    width: 40%;
    float: left;
}

.cot3 {
    width: 20%;
    float: left;
}

.cot4 {
    width: 15%;
    float: left;
}

.cot5 {
    width: 15%;
    float: left;
}

#add_input {
    padding-bottom: 20px;
    overflow: hidden;
}