.pagination {
    text-align: center;
    margin: 20px 0;
}

.pagination ul {
    list-style: none;
    padding: 0;
    display: inline-block;
}

.pagination ul li {
    display: inline-block;
    margin: 0 4px;
}

.pagination ul li a,
.pagination ul li span {
    display: block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    color: #0073aa;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
}

.pagination ul li a:hover {
    background: #0073aa;
    color: #fff;
}

.pagination ul li .current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
    font-weight: bold;
}

.pagination ul li .dots {
    border: none;
    background: none;
    color: #666;
    padding: 8px 12px;
    font-weight: bold;
}

.pagination ul li .prev,
.pagination ul li .next {
    font-weight: bold;
}


.table-row {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.table-row.show {
    opacity: 1;
    transform: translateY(0);
}

#clear-filters {
    display: none;
}

.total-records {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#brokers-table tr td {
    width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* vertical-align: middle; */
}

.sort-link {
    color: #777;
}

.sort-link.active {
    color: blue;
    font-weight: bold;
}

.broker-pic {
    width: 40px;
    height: 40px;
}

.no-record-found {
    padding: 20px;
    background-color: #fff;
    color: #3a3a3a;
    border-radius: 5px;
    box-shadow: 2px 5px 10px rgba(0, 0, 0, .2);
    border: 1px solid #ccc;
    border-left: 4px solid #dba62b;
    margin-bottom: 20px;
    text-align: center;
    display: none;
}

.list-tabs {
    margin-bottom: 15px;
}

.list-tabs .nav-tab-wrapper {
    border-bottom: 2px solid #ccc;
}

.list-tabs .nav-tab {
    background: #f8f8f8;
    border: 1px solid #ccc;
    padding: 8px 15px;
    margin-right: 0px;
    text-decoration: none;
    position: relative;
    bottom: -1;
    border-radius: 5px 5px 0 0;
    outline: none;
}

.list-tabs .nav-tab-active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
    outline: none;
    position: relative
}

.list-tabs .nav-tab-active::after {
    content: "";
    position: absolute;
    bottom: -7px;
    /* Adjust to align the triangle */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #0073aa;
    /* Matches tab color */
}

.list-tabs .nav-tab:active,
.list-tabs .nav-tab:focus {
    outline: none;
    box-shadow: none;
}

/* Broker details on listing */
.broker-row-details {
    background-color: #fefeff !important;
    position: relative;
}

.broker-row-details .broker-row-info {
    position: relative;
}

.broker-row-details td {
    padding: 0;
}

.broker-row-details td::before {
    content: " ";
    position: absolute;
    top: -15px;
    left: 200px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid #fefeff;
}

.open-row {
    background-color: #ffffdf !important;
}

.broker-row-content {
    display: flex;
    flex-direction: row;
    gap: 15px;
    padding: 15px 0;
}

.broker-row-content div {
    border-right: 1px solid #ccc;
    padding: 15px;
    text-align: left;
    width: 25%;
}

.broker-row-content div:last-child {
    border: 0;
}

.ul-circle ul {
    list-style: circle;
    margin-left: 15px;
}

.broker-row-content ul li {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.close-row-broker-details {
    text-decoration: none;
    display: inline-block;
    position: absolute;
    right: 15px;
    top: 15px;
}

/* Confirmation Popup Styles */
.confirmation-modal,
.broker-review-modal {
    position: fixed;
    background-color: rgba(0, 0, 0, .7);
    z-index: 9998;
    display: none;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
}

.confirmation-popup,
.broker-review-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 9999;
}

.confirmation-popup .popup-header,
.broker-review-popup .popup-header {
    font-weight: bold;
    margin-top: 0;
}

.popup-header img,
.popup-header svg{
    vertical-align: middle;
    height:20px;
}

.confirmation-popup .popup-footer,
.broker-review-popup .popup-footer {
    text-align: right;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.popup-footer .action-buttons{
    display: contents;
    justify-content: space-between;
    gap: 10px;
}

.confirmation-popup .popup-footer.delete-align {
    justify-content: space-between;
}

.confirmation-popup .popup-footer .action-buttons .broker-review-popup .popup-footer .action-buttons {
    text-align: right;
}

.confirmation-popup .popup-content {
    gap: 15px;
    text-align: center;
}

.confirmation-popup .profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.confirmation-popup .broker-details {
    flex: 1;
    padding: 20px;
    background: #fafafa;
    margin-bottom: 15px;
}

.confirmation-popup .broker-details p {
    margin: 5px 0;
    font-size: 14px;
}

.confirmation-popup .popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.confirmation-popup .` {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

.confirmation-popup .btn.cancel {
    background: #ddd;
    color: #333;
}

.confirmation-popup .button {
    vertical-align: middle;
}

.confirmation-popup .button-danger,
.button-danger {
    background: #d9534f !important;
    border-color: #d9534f !important;
    color: #fff !important;
}

.confirmation-popup .button-danger:hover
.button-danger:hover {
    background: #c6423e;
    border-color: #d9534f;
}

.broker-review-popup label {
    display: block;
    font-weight: 600;
}

form#filter-form {
    margin-bottom: 10px;
}

.hfg-admin-notices {
    padding: 10px 10px 10px 20px !important;
    background-color: #fff;
    border: 1px solid #ccc;
    border-left: 4px solid #46b450;
    display: none;
}

.profile-pic {
    cursor: pointer;
    width: 150px;
    height: 150px;
}

#profile_image {
    display: none;
}

#image-preview {
    max-width: 500px;
    max-height: 500px;
}

.modal-header {
    text-align: left;
    margin: 0 0 15px 0;
}

#cropper-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

#cropper-modal .modal-content {
    background: #fff;
    border-radius: 10px;
    text-align: center;
    position: relative;
    margin: 100px auto;
}

#cropper-modal .modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

#cropper-container {
    max-width: 100%;
    max-height: 100%;
    height: 300px;
    overflow: hidden;
    margin-bottom: 15px;
}

.inline-block {
    display: inline-block !important;
}

#cropper-modal .cropper-wrap-box {
    padding: 20px !important;
}

/* Form errors */
.field-error {
    color: #c6423e;
    font-size: 13px;
    display: block;
    margin-top: 5px;
}

.color-danger,
a.color-danger {
    color: #c6423e;
}

.long-textarea {
    height: 300px;
    width: 100%;
    max-width: 600px;
    height: 300px;
}

.broker-form table tr td {
    vertical-align: middle;
}

.broker-form input[type="text"],
.broker-form input[type="password"],
.broker-form input[type="date"],
.broker-form input[type="datetime"],
.broker-form input[type="datetime-local"],
.broker-form input[type="email"],
.broker-form input[type="month"],
.broker-form input[type="number"],
.broker-form input[type="search"],
.broker-form input[type="tel"],
.broker-form input[type="time"],
.broker-form input[type="url"],
.broker-form input[type="week"],
.broker-form textarea,
.broker-form select {
    /* Add your styles here */
    min-width: 320px;
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s ease-in-out;
}

.broker-review-form textarea {
    width: 100% !important;
    height: 120px;
}

.broker-review-form input[type="text"] {
    width: auto;
    min-width: auto;
    max-width: auto;
}

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

dfn {
    color: #999;
}

.broker-review-fields {
    margin-bottom: 15px;
}

.broker-form input:focus {
    border-color: #0073aa;
    /* Example focus color */
}

.broker-form label {
    display: block;
}

.broker-form th dfn {
    font-weight: normal;
}

.broker-form .width-auto {
    min-width: auto;
    padding-right: 35px;
}

textarea.brief-input {
    min-height: 120px;
}

input::placeholder,
textarea::placeholder {
    color: #ccc;
}

/* Autocomplete */
.ui-autocomplete {
    box-shadow: 0 5px 5px rgba(0, 0, 0, .1);
    border-radius: 0 0 5px 5px;
    padding: 0;
    max-height: 150px;
    overflow: hidden;
    overflow-y: auto;
}

.ui-autocomplete .ui-menu-item {
    padding: 7px;
}

.ui-autocomplete .ui-menu-item:hover {
    background: #fafaff;
}

.ui-autocomplete .ui-menu-item div,
.ui-autocomplete .ui-menu-item:hover div {
    padding: 0;
    border: none;
    background: none;
}

/* Broker reviews */
.broker-filter {
    background: #fafafb;
    padding: 10px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 15px;
}

.broker-filter-input {
    display: inline-block;
    padding: 10px;
    border: 1px solid #ccc;
    box-shadow: none;
    min-width: 200px;
    height: 40px;
}

.broker-card-container {
    display: flex;
    flex-direction: column;
    gap: 15px;    
}

.broker-card {
    background: #fff;
    /* padding: 15px; */
    /* border: 1px solid #ccc; */
    box-shadow:0 0 5px rgba(0, 0, 0, .2);
    border-radius: 7px;
    overflow: hidden;
}

.broker-card-body,
.broker-card-header,
.broker-card-footer{
    padding:15px;
}

.broker-card p {
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: normal;
}

.broker-card-header{
    display:flex;
    justify-content: space-between;
    background-color: #fcfcfc;
    /* border-radius:7px; */
}

.broker-card-footer {
    border-top: 1px solid #d0d7dd;
    margin: .75rem 0 0 0;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

.broker-card-author {
    font-weight: 600;
    line-height: normal;
    color: #4a4a4a;
}

.brokers-cards-container {
    display: flex;
    flex-direction: row;
    margin-top: 15px;
    gap: 15px;
}

.broker-list-reviews {
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    box-shadow: 2px 0 3px rgba(0, 0, 0, .2);
}

.hidden-review,
.hidden-review .broker-card-footer {
    background: #fafafa;
    border: none;
    color: #aaa;
}

.australian-states {
    width: 100%;
}

.search-container {
    position: relative;
    display: inline-block;
    width: 100%;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

.sort-link.sortable {
    color: #eee;
}

.broker-list-ratings a {
    display: inline-block;
    vertical-align: top;
}

.broker-list-ratings a span {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background-color: #eee;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%,
            68% 57%, 79% 91%, 50% 70%,
            21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.broker-list-ratings.gold a span {
    background-color: gold;
}

.review-search-input {
    padding: 8px 30px 8px 10px;
    /* Space for icon */
    border: none;
    border-radius: 4px;
    width: 100%;
}

.dashicons-search {
    position: absolute;
    right: 8px;
    top: 17px;
    transform: translateY(-50%);
    font-size: 16px;
    color: #666;
    cursor: pointer;
}

.broker-list-reviews ul {
    width: 250px;
    height: 90vh;
    padding: 0;
    margin: 0;
    overflow: hidden;
    overflow-y: auto;
}

.broker-list-reviews ul li {
    margin: 0;
    padding: 0;
}

.broker-list-reviews ul li a {
    color: #AAA;
    font-size: 13px;
    border-bottom: 1px solid #ccc;
    display: block;
    padding: 10px 0;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    position: relative;
}

.mark-has-star {
    position: absolute;
    top: 5px;
    left: 0px;
    width: 12px;
    height: 12px;
}

.broker-list-reviews ul li img {
    margin-right: 10px;
}

.broker-list-reviews ul li a.active,
.broker-list-reviews ul li a.active:hover {
    background: #f0f8ff;
    padding-left: 5px;
    outline: none;
}

.broker-list-reviews ul li a:active {
    outline: none;
    box-shadow: none;
}

.broker-list-reviews ul li a:hover {
    background: #fefefa;
    cursor: pointer;
    padding-left: 5px;
    transition: all .2s;
}

.broker-list-reviews ul li a .broker-review-name {
    font-weight: 600;
    color: #4a4a4a;
    font-size: 15px;
}

.broker-list-reviews ul li a .broker-review-name span {
    font-size: 10px;
    display: inline-block;
    background: #777;
    color: #fff;
    padding: 2px 10px;
    border-radius: 15px;
}

.broker-list-reviews ul li a span {
    white-space: nowrap;
    /* Prevents text from wrapping */
    overflow: hidden;
    /* Hides overflowing content */
    text-overflow: ellipsis;
    /* Adds "..." when text overflows */
}

.brokers-cards-container {
    display: flex;
    gap: 15px;
}

.brokers-cards-container>.column-30 {
    flex: 0 0 23%;
    /* Fixed 30% width */
    flex-direction: column;
}

.brokers-cards-container>.column-70 {
    flex: 0 0 74%;
    /* Fixed 70% width */
    flex-direction: row;
}

.broker-review-list-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.broker-review-list-header p {
    margin: 0;
    padding: 0;

}

.broker-card-star-ratings img {
    height: 13px;
    margin-right: 2px;
}

.broker-rating-header {
    font-size: 15px;
    color: #4a4a4a;
    margin: 0 0 20px 0;
}

.broker-card-filters {
    margin-bottom: 10px;
}

.broker-review-form .star-rating {
    display: flex;
    gap: 5px;
    font-size: 30px;
    cursor: pointer;
    color: #ccc;
    /* Default color */
    margin-bottom: 15px;
}

.broker-review-form .star {
    transition: color 0.3s;
    color: #eee;
}

.broker-review-form .star.selected,
.broker-review-form .star.hover {
    color: #ffcc00;
}

/* Broker reviews */

.color-777 {
    color: #AAA;
}

/** Profile state effects */
.broker-row div.broker-image{
    position:relative;
}
.visibility-badge{
    position: absolute;
    left:0;
    top:0;
    background-color: green;
    width:8px;
    height:8px;
    border-radius:10px;
}

.broker-row.broker-hidden div.broker-image .visibility-badge{
    background:red;
}

.highlighted {
  border: 2px solid #ff8a23;
  background-color: #fffbe6;
}

.review-flag{
    color:#DD9955;
    font-size:15px;
    text-decoration: none;
    vertical-align: middle;
    display: inline-block;
    margin-bottom:10px;
}

.review-flag svg{
    vertical-align: middle;
}
.broker-review-flag{
    background:#fffbe6;
    padding:20px;
    border-radius:5px;
    margin-bottom:10px;
}

.broker-review-reported{
    background:#fafafa;
    padding:20px;
    border-radius:5px;
}