/* admin.css - Styles for the admin page */
.wrap {margin: 20px;}
table.form-table {width: 100%;border-collapse: collapse;margin-bottom: 20px;}
table.form-table th,table.form-table td {border: 1px solid #ddd;padding: 8px;text-align: left;}
table.form-table th {background-color: #f4f4f4;}
button.remove-field {color: #fff;background-color: #d9534f;border: none;padding: 5px 10px;cursor: pointer;border-radius: 3px;}
button.remove-field:hover {background-color: #c9302c;}
.field-options .option-wrapper{display: flex;}
.drag-handle {width: 10px;cursor: grab;font-size: 18px;text-align: center;color: #666;}
.dragging {opacity: 0.6;background-color: #f0f0f0;}
.sortable-placeholder {height: 40px;background-color: #d0d0d0;border: dashed 2px #999;}

.dash_container {
    display: flex;
    justify-content: space-between;
    margin: 50px;
}

.ca_card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    width: calc(15% - 20px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ca_card h3 {
    margin-bottom: 15px;
    color: #666;
}

.ca_card p {
    font-size: 30px;
    font-weight: bold;
    color: #333;
}


.customer-list-container {
    font-family: Arial, sans-serif;
}

.catabs {
    margin-bottom: 20px;
}

.tab-button {
    background: #f1f1f1;
    border: 1px solid #ccc;
    padding: 10px 20px;
    cursor: pointer;
    margin-right: 5px;
    border-radius: 4px;
}

.tab-button.active {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.customer-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.customer-list-table th,
.customer-list-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

.status.pending {
    color: #d69d00;
    font-weight: bold;
}

.status.approved {
    color: green;
    font-weight: bold;
}

.status.rejected {
    color: red;
    font-weight: bold;
}

.customer-list-table .table-row {
    display: none; /* Hide all rows by default */
}

.customer-list-table .table-row.show {
    display: table-row; /* Show rows based on filter */
}
#sortable-table thead tr th{
    background: #fff;
}
#sortable-table .ui-sortable tr{
    background: #f6f7f7;
}
table.form-table td input.validation-message{
    margin-top: 10px;
}
table.wp-list-table.widefat.fixed.striped.table-view-list{
    margin: 0;
}

/* Quote Details Page Styles */
.quote-details-container {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    margin-top: 20px;
    padding: 20px;
}

.quote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.quote-id h2 {
    margin: 0;
    padding: 0;
}

.quote-status {
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: bold;
}

.status-pending {
    background-color: #f0f6fc;
    color: #1d2327;
    padding: 3px 5px;
    border-radius: 5px;
}

.status-approved {
    background-color: #21b637;
    color: #fff;
    padding: 3px 5px;
    border-radius: 5px;
}

.status-rejected {
    background-color: #fcf0f1;
    color: #d63638;
    padding: 3px 5px;
    border-radius: 5px;
}

.status-counter-offer {
    background-color: #fcf9e8;
    color: #996800;
    padding: 3px 5px;
    border-radius: 5px;
}

.quote-section {
    margin-bottom: 30px;
}

.quote-section h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.quote-actions {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin-top: 30px;
}

.quote-actions h3 {
    margin-top: 0;
}

.form-field {
    margin-bottom: 15px;
}

.form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-field select,
.form-field input[type="text"] {
    width: 100%;
    max-width: 400px;
}

.counter-offer-field {
    margin-top: 10px;
}
.request-a-quote_page_requests-list .wp-list-table thead tr{
    background: #333;
}
.request-a-quote_page_requests-list .wp-list-table thead tr th{
    color: #fff;
    font-weight: bold;
}

.request-a-quote_page_request-quote-email .wp-list-table td,
.request-a-quote_page_requests-list .wp-list-table td{
    font-size: 14px;
    vertical-align: middle;
}
.request-a-quote_page_requests-list #wpcontent .wrap form{
    width: 80%;
    display: inline-block;
}
.request-a-quote_page_requests-list #wpcontent .wrap .tablenav.top{
    width: 18%;
    float: right;
}
.request-a-quote_page_requests-list #wpcontent .wrap .tablenav .displaying-num{
    font-size: 16px;
}
.request-a-quote_page_request-quote-form #sortable-table thead tr th{
    background: #333;
    color: #fff;
    font-weight: bold;
}
.request-a-quote_page_request-quote-form #sortable-table tbody tr:nth-child(even){
    background: #fff;
}
.request-a-quote_page_request-quote-form .wrap form > p:last-child{
    display: inline-block;
    margin-left: 20px;
}
.request-a-quote_page_request-quote-form .wrap form > #sortable-table + p{
    display: inline-block;
}
.request-a-quote_page_request-quote-pricing .wp-list-table thead tr,
.request-a-quote_page_request-quote-email .wp-list-table thead tr{
    background: #333;
}
.request-a-quote_page_request-quote-pricing .wp-list-table thead tr th,
.request-a-quote_page_request-quote-email .wp-list-table thead tr th{
    background: #333;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
}
.request-a-quote_page_request-quote-email .tablenav span,
.request-a-quote_page_request-quote-email .tablenav a{
    margin: 0 5px;
    font-size: 14px;
}
.request-a-quote_page_request-quote-email .tablenav .current{
    font-weight: bold;
}
.request-a-quote_page_request-quote-pricing .form-table tr th,
.request-a-quote_page_request-quote-email .form-table tr th{
    background: #333;
    color: #fff;
    font-weight: bold;
    vertical-align: middle;
    font-size: 14px;
}
.request-a-quote_page_request-quote-pricing .form-table tr td,
.request-a-quote_page_request-quote-email .form-table tr td{
    background: #fff;
}
.request-a-quote_page_request-quote-email .form-table #wp-content-editor-tools {
    background-color: #fff;
    padding-top: 0;
}
.wp-list-table tbody td{
    font-size: 14px;
}

/*pricing page css*/
.wdsqw-pricing-container {
    margin-top: 20px;
}

.wdsqw-add-rule-section {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.wdsqw-existing-rules-section {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.form-table th {
    width: 200px;
}

.form-table input[type="number"],
.form-table select {
    width: 200px;
}

.tablenav-pages {
    float: right;
    margin: 1em 0;
}

.pagination-links {
    margin-left: 10px;
}

.pagination-links a,
.pagination-links span {
    display: inline-block;
    min-width: 28px;
    height: 28px;
    margin: 0 5px;
    padding: 0 4px;
    font-size: 16px;
    line-height: 26px;
    text-align: center;
    text-decoration: none;
    color: #0073aa;
    border: 1px solid #ddd;
    background: #f7f7f7;
    box-shadow: 0 1px 0 #ccc;
    vertical-align: middle;
}

.pagination-links span.current {
    color: #000;
    border-color: #5b9dd9;
    background: #0073aa;
    color: #fff;
    box-shadow: 0 1px 0 #0073aa;
}