/* Audit Reports Filter Plugin Styles */
.new-enquiry-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.new-enquiry-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}
.new-enquiry-modal .new-enquiry-modal-content h3 {
    font-size: 24px !important;
}
.new-close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

/* Main container */
.audit-reports-container {
    margin: 30px 0;
    font-family: poppins;
}

.audit-reports-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    font-family: 'Poppins';
}
.filter-group {
    padding: 8px;
    box-shadow: 0px 0px 10px 0px #ccc;
    margin-bottom: 10px;
    border-radius: 8px;
}

/* Sidebar */
.audit-reports-sidebar {
    width: 30%;
    padding: 0 15px;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .audit-reports-sidebar {
        width: 100%;
        margin-bottom: 30px;
    }
}

/* Content area */
.audit-reports-content {
    width: 70%;
    padding: 0 15px;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .audit-reports-content {
        width: 100%;
    }
}

/* Wishlist section */
.audit-reports-wishlist h3 {
    margin-top: 0px;
    padding-left: 8px;
    padding-top: 10px;
    margin-bottom: 15px;
    font-size: 20px !important;
    border-bottom: 1px solid #e9ecef;
}
.audit-reports-wishlist h3 {
    font-size: 20px !important;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
    border-radius: 8px;
    margin: 20px;
    box-shadow: 0px 0px 10px 0px #ccc;
}

.filter-group h4 {
    font-size: 20px;
}

.wishlist-items {
    max-height: 300px;
    overflow-y: auto;
}

.wishlist-item {
    background-color: #fff;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    margin: 5px 28px;
    align-items: flex-start;
    gap: 10px;
}

.wishlist-item-title {
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 14px;
    width: 65%;
}

.wishlist-item-actions {
    display: flex;
    align-items: center;
    width: 35%;
    justify-content: flex-end;
}

.remove-from-wishlist {
    cursor: pointer;
    background: #FFEBA7;
    border: none;
    border-radius: 25px;
    padding: 4px 8px;
    font-weight: bold;
    font-size: 14px;
    margin-left: 5px;
}

.enquiry-now {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}

.no-items {
    font-style: italic;
    color: #6c757d;
    text-align: center;
    padding: 10px 0;
}

/* Filters section */
.audit-reports-filters {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.audit-reports-filters h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px !important;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
}

.filter-group h4 {
    font-size: 20px !important;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 400 !important;
}

.filter-options {
    max-height: 150px;
    overflow-y: auto;
    padding-left: 10px;
}

.filter-option {
    margin-bottom: 8px;
}

.filter-option label {
    padding-left: 5px;
    cursor: pointer;
    font-size: 14px;
}

.filter-date {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-date input[type="date"] {
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    width: 100%;
}

.filter-date label {
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.filter-submit,
.filter-reset {
    display: inline-block;
    margin-right: 10px;
    padding: 8px 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.filter-reset {
    background-color: #6c757d;
}

/* Reports list */
.audit-reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.audit-reports-header h2 {
    margin: 0;
    font-size: 24px;
}

.audit-reports-count {
    color: #6c757d;
    font-size: 14px;
}

.audit-report-item {
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.audit-report-info {
    width: 75%;
}

.audit-report-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
}

.audit-report-meta {
    font-size: 14px;
    color: #6c757d;
}

.meta-item {
    margin-bottom: 5px;
}

.meta-label {
    font-weight: 500;
    margin-right: 5px;
}

.audit-report-actions {
    width: 25%;
    text-align: right;
}

/* Add Report button: yellow circle, centered SVG, no text, using ::before for icon */
.add-to-wishlist {
    background: #FFEBA7;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(255, 193, 7, 0.13);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    outline: none;
    position: relative;
    padding: 0;
    font-size: 0;
}

.add-to-wishlist::before {
    content: url('/wp-content/uploads/2024/07/plus-icon.svg');
    display: block;
    width: 22px;
    height: 22px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-wishlist.added::before {
    content: url('/wp-content/uploads/2024/07/Vector-3.svg');
}

.add-to-wishlist span,
.add-to-wishlist .added-check,
.add-to-wishlist svg {
    display: none !important;
}

/* Load More button */
.load-more-container {
    text-align: center;
    margin: 30px 0;
}

.load-more-button {
    padding: 10px 30px;
    background: #FDC70F;
    width: max-content;
    border-radius: 8px;
    color: #141617;
    border: none;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: background 0.2s;
}

.load-more-button:hover {
    background-color: #0056b3;
}

.load-more-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Remove old pagination styles */
.audit-reports-pagination {
    display: none;
}

/* No results */
.no-results {
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 5px;
    font-style: italic;
    color: #6c757d;
}

/* Modal */
.enquiry-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.enquiry-modal-content {
    background-color: #fff;
    border-radius: 5px;
    width: 100%;
    max-width: 800px;
    padding: 30px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.enquiry-modal h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-enquiry {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.submit-enquiry:hover {
    background-color: #0069d9;
}

/* Table styles for audit reports */
.audit-reports-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 16px;
    margin-bottom: 24px;
}

.audit-reports-table thead th {
    background: none;
    font-weight: 400;
    font-size: 22px;
    color: #141617;
    border: none;
    padding: 12px 16px 12px 10px;
    text-align: left;
}

.audit-reports-table tbody tr {
    background: #fff;
    transition: box-shadow 0.2s;
    justify-content: space-between;
    margin: 10px;
    margin-bottom: 20px;
    box-shadow: 5px 5px 10px 3px #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.audit-reports-table thead tr {
	display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}

.audit-reports-table tbody tr:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
}

.audit-reports-table td {
    padding: 20px 10px 20px 10px;
    font-size: 17px;
    color: #141617;
    vertical-align: middle;
    border: none;
}

.audit-reports-table td.audit-report-supplier {
    min-width: 180px;
}

.audit-reports-table td.audit-report-standard {
    min-width: 140px;
}

.audit-reports-table td.audit-report-country {
    min-width: 100px;
}

.audit-reports-table td.audit-report-date {
    min-width: 120px;
}

.audit-reports-table td.audit-report-action {
    text-align: center;
    min-width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Remove old card/list styles if not needed */
.audit-report-item,
.audit-report-info,
.audit-report-meta,
.audit-report-actions {
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* width */
.dark-scroll::-webkit-scrollbar {
    width: 10px;
}

a.text-info {
    color: blue;
}

/* Chrome, Edge, Safari */
/* Basic scrollbar styling */
.filter-options::-webkit-scrollbar {
    width: 8px;
}

.filter-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.filter-options::-webkit-scrollbar-thumb {
    background-color: #FCCE09;
    /* Matching your Firefox color */
    border-radius: 4px;
    border: 2px solid #f1f1f1;
}

.filter-options::-webkit-scrollbar-thumb:hover {
    background: #e6ba08;
}

/* Completely remove scrollbar buttons */
.filter-options::-webkit-scrollbar-button {
    display: none;
}

/* Firefox scrollbar styling */
.filter-options {
    scrollbar-width: thin;
    scrollbar-color: #FCCE09 #f1f1f1;
}

.filter-options::-webkit-scrollbar-button {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
}

/* Place Enquiry Now button at the bottom of the wishlist box, not floating */
.wishlist-enquiry-action {
    text-align: right !important;
    width: 100%;
    padding-right: 20px;
    background: none;
    box-shadow: none;
    position: static;
}
.wishlist-enquiry-action .enquiry-now-multi {
    padding: 5px 20px;
    background: #FDC70F;
    width: max-content;
    border-radius: 8px;
    color: #141617;
    border: none;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: background 0.2s;
}
.wishlist-enquiry-action .enquiry-now-multi:hover {
    background: #ffd84d;
}
@media screen and (max-width:768px){
	tr.audit-report-row {
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    align-items: flex-start !important;
}
	.audit-reports-table thead th{
		display:none;
	}
	.audit-reports-table td.audit-report-action {
    justify-content: flex-start;
}
}
.no-results-message {
    font-size: 16px !important;
    color: #555 !important;
    text-align: center !important;
    padding: 20px;
    font-family: 'Poppins' !important;
    margin: 0 auto !important;
}

.enquire-now-btn {
    background-color: #000;
    color: white;
    padding: 7px 20px;
    border: none;
    border-radius: 15px 0 15px 15px;
    cursor: pointer;
    margin-top: 20px;
    font-size: 16px;
    font-family: 'Poppins' !important;
}

.enquire-now-btn:hover {
    background-color: #fccd2b !important;
	color: #000 !important;
}

@media screen and (max-width: 1100px){
	.audit-reports-table td.audit-report-supplier {
		min-width: unset !important;
		width: 9rem;
		text-align: center;
	}
	table.audit-reports-table tr {
		width: 95% !important;
	}
}