/*|===| COLORS & THEMES |===|*/
:root {
    --background : #040F16;
    --text-para : #FFF9EC;
    --text-title : #FAFAFA;
    --highlight-dark : #041821;
    --highlight-button : #082f41;
    --highlight-light: #135075;

    --link-hover: #196a9c;
}


/*|===| GENERAL |===|*/
* {
    padding: 0;
    margin: 0;
}

html { 
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    overflow-y: hidden;

    background-color: var(--background);
    color: var(--text-para);

    font-family: "Urbanist", sans-serif;
}

/**|===| NOTIFICATION POP UP |===|*/
.toast {
    position: fixed;
    top: 70px;
    right: 20px;
    background-color: var(--highlight-light);
    color: var(--text-para);
    padding: 12px 18px;
    border-radius: 6px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10000;
    font-size: 14px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/*|===| PLACEMENT |===|*/
.flex { display: flex; }
.flex__center { display: flex; justify-content: center; align-items: center; }
.center { display: block; margin-left: auto; margin-right: auto; }

.site-wrapper { 
    width: 100vw;
    height: 100dvh;
    flex-direction: row;
}

@media screen and (max-width: 1023px) {
    .site-wrapper { 
        width: 100%;
        height: 100dvh;
        flex-direction: column;
    }    
}

/*|===| LOGIN PAGE |===|*/
.login-wrapper { width: 100vw; height: 100dvh; }

.login-container {
    width: 260px;
    height: auto;
    background-color: var(--highlight-dark);
    padding: 20px;
}

.login-header {
    text-align: center;
    color: var(--text-title);
    font-size: 22px;
}
.login-container hr {
    border: 0;
    height: 1px;
    background-color: var(--highlight-light);
    margin: 25px 0;
}

.login-form input {
    width: calc(100% - 20px);
    /* line-height: 30px; */
    padding: 10px;
    margin-bottom: 15px;

    background-color: var(--highlight-light);
    color: var(--text-para);

    border: none;
    border-radius: 5px;
}
.login-form input:disabled { cursor: not-allowed;}
.login-form input[type="submit"] { width: 100%; }
.login-form input[type="submit"]:hover {
    background-color: #0e3d5a;
    color: var(--text-title);
    cursor: pointer;
}
.login-error { text-align: center; }
.sp-hidden { display: none; }

/*|===| SIDEBAR NAVIGATION |===|*/
.sidebar-mobile { 
    width: calc(100% - 20px); 
    height: 80px;
    justify-content: space-between;
    padding-left: 10px; 
    padding-right: 10px;

    position: fixed;
    top: 0;

    display: none; 
    background-color: var(--background);
}
.sidebar-mobile .logo-container { 
    height: 60px;
    margin-top: 10px;
}
.sidebar-mobile .logo-container img {
    width: auto;
    height: 50px;
}
.sidebar-mobile .logo-container a, .sidebar-mobile .menu-open-button a {
    justify-content: center;
    gap: 15px;
    color: var(--text-para);
    text-decoration: none;
}
.sidebar-mobile .logo-container p, .sidebar-mobile .menu-open-button i {
    line-height: 50px;
    font-size: 22px;
    font-weight: 600;
}
.sidebar-mobile .menu-open-button i { line-height: 80px; }


.sidebar-wrapper { 
    width: 290px;
    height: 100dvh;
    overflow-y: auto;

    scrollbar-color: var(--highlight-light) var(--highlight-dark);
    scrollbar-width: 10px;
}

.sidebar-wrapper .logo-container {
    width: 100%;
    margin-top: 25px;
}
.sidebar-wrapper .logo-container a {
    justify-content: center;
    gap: 15px;
    color: var(--text-para);
    text-decoration: none;
}
.sidebar-wrapper .logo-container img {
    width: auto;
    height: 30px;
}
.sidebar-wrapper .logo-container p {
    line-height: 30px;
    font-size: 22px;
    font-weight: 600;
}

.sidebar-section { 

    width: calc(100% - 30px);
    padding-left: 15px;
    padding-right: 15px;
    margin-top: 25px;
}
.sbs-logout { margin-bottom: 25px; }

.sbs-header {
    font-size: 22px;
    color: var(--text-title)
}
.sbs-content {
    margin-top: 15px;
}
.sbs-content a { 
    gap: 10px;
    color: var(--text-para);
    text-decoration: none;
    font-size: 16px;
    padding: 5px;
}
.sbs-content a:hover {
    background-color: var(--link-hover);
    border-radius: 5px;
    cursor: pointer;
}

.pwd-set-already { 
    text-align: center; font-size: 12px; 
    color: var(--text-para);
}
.pwd-set-already a {
    color: var(--text-para);
}

@media screen and (max-width: 1023px) {
    .sidebar-mobile { display: flex; }

    .sidebar-wrapper { 
        width: 100%; height: calc(100dvh - 80px); display: none; 
        margin-top: 80px;
        z-index: 9999; /* Or higher */
        position: fixed;
        background-color: var(--background);
    }
    .sidebar-wrapper .logo-container { display: none; }
}


/*|===| Page Content |===|*/
.page-content-wrapper {
    width: calc(100% - 300px - 10px);
    height: calc(100dvh - 50px);
    overflow-y: auto;
    padding: 25px;

    scrollbar-color: var(--highlight-light) var(--highlight-dark);
    scrollbar-width: 10px;
}
@media screen and (max-width: 1023px) {
    .page-content-wrapper { 
        width: calc(100% - 30px);
        height: calc(100dvh - 80px);
        padding: 15px; 
        margin-top: 80px; 
    }

    .page-content-wrapper h1 { text-align: center; }
    
}

/*|===| USER MANAGEMENT PAGE |===|*/
.admin-user-manage .quick-actions {
    width: 100%;
    align-items: flex-end;
    justify-content: flex-end;
    margin-top: 25px;
}

.admin-user-manage .quick-actions a {
    padding: 10px 20px;
    background-color: var(--highlight-light);
    color: var(--text-para);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    text-decoration: none;
    font-weight: 600;
    gap: 10px;
}
.admin-user-manage .quick-actions a:hover {
    background-color: var(--link-hover);
    color: var(--text-title);
    cursor: pointer;
}

.admin-user-manage .user-list-table {
    width: 100%;
    margin-top: 25px;
}
.admin-user-manage .user-list-table table {
    width: 100%;
    border-collapse: collapse;
}
.admin-user-manage .user-list-table table th, .admin-user-manage .user-list-table table tfoot tr {
    background-color: var(--highlight-light);
    color: var(--text-para);
    padding: 10px;
    text-align: left;
}
.admin-user-manage .user-list-table table td {
    padding: 10px;
    border-bottom: 1px solid var(--highlight-dark);
    color: var(--text-para);
}
.admin-user-manage .user-list-table table tr:nth-child(even) {
    background-color: var(--highlight-dark);
}

.admin-user-manage .user-list-table table button { 
    padding: 10px 20px;
    background-color: var(--highlight-dark);
    color: var(--text-para);
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

@media screen and (max-width: 1023px) {
    .admin-user-manage .quick-actions {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .admin-user-manage .user-list-table {
        overflow-y: auto;

        scrollbar-color: var(--highlight-light) var(--highlight-dark);
        scrollbar-width: 10px;
    }
}

/*|===| MANAGE USER - CREATE POPUP |===|*/
.create-user-popup, .delete-user-popup {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);

    display: none;
}
.create-user-popup .cup-form, .delete-user-popup .dup-form {
    width: 300px;
    height: auto;
    background-color: var(--highlight-dark);
}

.cup-form-message, .dup-form-message { text-align: center; display: none; }

.create-user-popup .cup-form-body, .delete-user-popup .dup-form-body { 
    flex-direction: column; 
    align-items: center;
}
.create-user-popup .cup-form h3, .delete-user-popup .dup-form h3 {
    text-align: center;
    color: var(--text-title);
    font-size: 22px;
    margin-top: 15px;
}
.create-user-popup .cup-form hr, .delete-user-popup .dup-form hr {
    border: 0;
    height: 1px;
    background-color: var(--highlight-light);
    margin: 15px 0;
}
.create-user-popup .cup-form input {
    width: calc(100% - 50px);
    margin-top: 10px;
    padding: 10px;
    background-color: var(--highlight-light);
    color: var(--text-para);
    border: none;
    border-radius: 5px;
}
.create-user-popup .cup-form input[type="submit"], 
.create-user-popup .cup-form button,
.delete-user-popup .dup-form button {
    width: 100px;
    height: 40px;
    background-color: var(--highlight-light);
    color: var(--text-para);
    margin-top: 0;
    border: none;
    border-radius: 10px;;
}
.create-user-popup .cup-form-buttons, .delete-user-popup .dup-form-buttons { justify-content: space-around; margin-bottom: 10px;}
.create-user-popup .cup-form button { 
    background-color: var(--highlight-dark);
    cursor: pointer;
}
.create-user-popup .cup-form button:hover,
.create-user-popup .cup-form input[type="submit"]:hover,
.delete-user-popup .dup-form-buttons button:hover {
    background-color: var(--link-hover);
    color: var(--text-title);
    cursor: pointer;
}

/*|===| BUYER PROSPECTING |===|*/
.bp-create-import { 
    width: 100%;
    height: auto;
    margin-top: 25px;

    flex-direction: row;
    justify-content: end;
    gap: 25px;
}
.bp-create-import button {
    padding: 10px 20px;
    background-color: var(--highlight-light);
    color: var(--text-para);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    text-decoration: none;
    font-weight: 400;
}
.bp-create-import button:hover {
    background-color: var(--link-hover);
    color: var(--text-title);
    cursor: pointer;
}

.bp-filter-container {
    display: none;
    width: calc(100% - 30px);
    background-color: var(--highlight-dark);
    margin-top: 25px;
    padding: 15px;
    flex-flow: row wrap; 
    gap: 15px; 
}
.bp-filter-inputs { 
    margin-top: 25px; 
    width: calc(100% - 30px);
    flex-flow: row wrap; gap: 15px; 
}
.sp-filter-inputs { margin-top: 0px; flex-flow: row wrap; gap: 15px; }

.bp-filter-container label {
    color: var(--text-title);
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
}

.bp-filter-container input[type="date"],
.bp-filter-container input[type="text"],
.bp-filter-container input[type="number"] {
    width: 200px;
    padding: 10px;
    background-color: var(--highlight-light);
    color: var(--text-para);
    border: none;
    border-radius: 5px;
}

.bp-filter-container input[type="text"]::placeholder {
    color: rgba(255, 249, 236, 0.7);
}

.bp-filter-container .filter-status-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 220px;
}

.bp-filter-container .status-multiselect {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.bp-filter-container .status-multiselect label {
    background-color: var(--highlight-dark);
    color: var(--text-para);
    border: 1px solid var(--highlight-light);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
}

.bp-filter-container .status-multiselect input[type="checkbox"] {
    display: none;
}

.status-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.status-pills .pill {
    padding: 5px 10px;
    border: 1px solid var(--highlight-light);
    border-radius: 5px;
    cursor: pointer;
    background-color: var(--highlight-dark);
    transition: all 0.2s ease;
    user-select: none;
}

.status-pills .pill.selected {
    background-color: var(--highlight-light);
    color: var(--text-title);
    font-weight: 600;
    border-color: var(--highlight-light);
}

.bp-filter-container button#filter-search-btn {
    padding: 10px 20px;
    background-color: var(--highlight-light);
    color: var(--text-para);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    align-self: flex-end;
    margin-top: 24px;
}

.bp-filter-container button#filter-search-btn:hover {
    background-color: var(--link-hover);
    color: var(--text-title);
}

.bp-prospect-table { 
    width: 100%;
    height: auto;
    margin-top: 25px;
}

.data-mine-table a { 
    color: var(--text-para);
}
.data-mine-table td:nth-child(3) { width: 50px; }
.data-mine-table td:nth-child(1) { width: 150px; }
.dm-owner-details { flex-flow: row nowrap; gap: 10px; }
.dm-owner-details input { 
    width: 200px;
    background-color: transparent;
    border: 1px solid var(--highlight-light);
    color: var(--text-para);
    padding: 5px;
}
.data-mine-table button:disabled {
    opacity: 0.1;
    cursor: not-allowed;
}

.bp-prospect-table table {
    width: 100%;
    border-collapse: collapse;
}
.bp-prospect-table table th, .bp-prospect-table table tfoot tr {
    background-color: var(--highlight-light);
    color: var(--text-para);
    padding: 10px;
    text-align: left;
}
.bp-prospect-table table td:last-child {
    width: 100px; /* Fixed width for actions */
}
.bp-prospect-table table td {
    padding: 10px;
    border-bottom: 1px solid var(--highlight-dark);
    color: var(--text-para);
}
.bp-prospect-table table tr:nth-child(even) {
    background-color: var(--highlight-dark);
}
.bp-prospect-table table button { 
    padding: 10px 20px;
    background-color: var(--highlight-button);
    color: var(--text-para);
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}
.bp-prospect-table table button:hover {
    background-color: var(--link-hover);
    color: var(--text-title);
    cursor: pointer;
}


@media screen and (max-width: 1023px) {
    .bp-prospect-table { 
        overflow-x: auto;
        scrollbar-color: var(--highlight-light) var(--highlight-dark);
        scrollbar-width: 10px;
        margin-bottom: 30px; 
    }

    .bp-prospect-table table {
        width: max-content;
        min-width: 100%;
    }

    .bp-prospect-table td:nth-child(1) { width: 150px; }
    .bp-prospect-table td:nth-child(2) { width: 100px; }
    .bp-prospect-table td:nth-child(3) { width: 100px; }
    
}


.pagination-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
    margin-bottom: 15px;
}

.page-btn {
    padding: 5px 9px;
    border: 1px solid var(--highlight-light);
    background: var(--highlight-dark);
    color: var(--text-para);
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.page-btn:hover {
    background: var(--link-hover);
}

.page-btn.active {
    background: var(--highlight-light);
    color: var(--text-para);
    border-color: var(--highlight-light);
}

/*|===| Create Contact pop up |===|*/
.create-contact-popup {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);

    display: none;
}
.create-contact-popup .ccp-form {
    width: 280px;
    height: auto;
    background-color: var(--highlight-dark);
    padding: 10px;
    border-radius: 10px;
}

.create-contact-popup .ccp-form h2 {
    text-align: center;
    color: var(--text-title);
    font-size: 22px;
    margin-top: 15px;
}
.create-contact-popup .ccp-form hr  {
    border: 0;
    height: 1px;
    background-color: var(--highlight-light);
    margin: 15px 0;
}
.create-contact-popup .ccp-form input {
    width: calc(100% - 20px);
    margin-top: 10px;
    padding: 10px;
    background-color: var(--highlight-light);
    color: var(--text-para);
    border: none;
    border-radius: 5px;
}

.create-contact-popup .ccp-form button {
    width: 150px;
    height: 40px;
    background-color: var(--highlight-light);
    color: var(--text-para);
    margin-top: 0;
    border: none;
    border-radius: 10px;
}
.create-contact-popup .ccp-form button:hover {
    background-color: var(--link-hover);
    color: var(--text-title);
    cursor: pointer;
}
.create-contact-popup .ccp-footer {
    gap: 50px;
}
.create-contact-popup .ccp-form .ccp-close-btn { background-color: transparent; }
.create-contact-popup .ccp-message {
    text-align: center;
    margin-top: 10px;
    display: none;
}

/*|===| VIEW CONTACT |===|*/
.view-contact-popup {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background-color: rgba(67, 67, 67, 0.3);
    backdrop-filter: blur(5px);

    justify-content: space-between;

    display: none;
}

.vc-sidebar { 
    width: 450px;
    height: calc(100dvh - 40px);
    padding: 20px;
    background-color: var(--highlight-dark);
    border-radius: 0 25px 25px 0;

    overflow-y: auto;
    scrollbar-color: var(--highlight-light) var(--highlight-dark);
    scrollbar-width: 10px;

    visibility: hidden;
}
.vc-new-note { display: none; }
.vc-edit-note { display: none; }
.vc-new-enquiry { display: none; }

.vc-new-note-date {
    width: 100%;
    height: auto;
    margin-top: 15px;
    justify-content: space-around;
}
.vc-new-note-date input {
    width: 125px;
    border: 1px solid var(--highlight-light);
    background-color: var(--highlight-light);
    color: var(--text-para);
    padding: 5px;
    margin-top: 10px;
}

.vc-new-note-answered { flex-direction: column; }

/* Toggle switch base */
.switch {
    margin-top: 15px;
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Base switch remains the same */
.switch {
    margin-top: 15px;
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Slider background */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background-color: var(--highlight-dark);
    border: 1px solid var(--highlight-light);
    transition: 0.3s;
    text-align: center;
    line-height: 22px;
    font-size: 16px;
    color: transparent;
}

/* Remove old circle dot */
.slider::before {
    display: none;
}

/* Change background and show tick when checked */
.switch input:checked + .slider {
    background-color: var(--highlight-light);
    color: var(--text-para); /* Visible tick color */
    font-weight: bold;
}

/* Show tick as content using `✔` character */
.switch input:checked + .slider::after {
    content: "✔";
    display: inline-block;
}





.vc-new-enquiry input, .vc-new-enquiry select, .vc-send-proposal input, .vc-send-proposal select {
    width: calc(100% - 20px);
    border: 1px solid var(--highlight-light);
    background-color: transparent;
    color: var(--text-para);
    padding: 10px;
    margin-top: 10px;
}
.vc-new-enquiry select {
    width: 100%;
}
.vc-new-enquiry textarea, .vc-send-proposal textarea {
    width: calc(100% - 20px);
    height: 200px;
    background-color: transparent;
    color: var(--text-para);
    padding: 10px;
    border: 1px solid var(--highlight-light);
    margin-top: 10px;
    resize: none;
}
.vc-new-note textarea, .vc-edit-note textarea {
    width: calc(100% - 20px);
    height: calc(100dvh - 125px - 23px - 100px - 50px);
    background-color: transparent;
    color: var(--text-para);
    padding: 10px;
    border: 1px solid var(--highlight-light);
    margin-top: 10px;
    resize: none;
}

.scp-details { margin-top: 25px; display: none; }
.send-client-proposal { display: none; }
.send-client-proposal hr {
    border: 0;
    height: 1px;
    background-color: var(--highlight-light);
    margin: 5px 0;
}

.vc-new-note button, .vc-new-enquiry button, .vc-edit-note button, .vc-send-proposal button {
    width: 100%;
    height: 40px;
    background-color: var(--highlight-light);
    color: var(--text-para);
    border: none;
    font-size: 16px;
    text-decoration: none;
    font-weight: 400;
    margin-top: 15px;
}
.vc-new-note button:hover, .vc-new-enquiry button:hover, .vc-edit-note button:hover, .vc-send-proposal button:hover {
    background-color: var(--link-hover);
    color: var(--text-title);
    cursor: pointer;
}
.vc-nn-message { text-align: center; margin-top: 15px; display: none; }
.vc-en-message { text-align: center; margin-top: 15px; display: none; }

.view-contact-popup .vc-details {
    width: 750px;
    height: calc(100dvh - 40px);

    overflow-y: auto;
    background-color: var(--highlight-dark);
    padding: 20px;
    border-radius: 25px 0 0 25px;

    scrollbar-color: var(--highlight-light) var(--highlight-dark);
    scrollbar-width: 10px;
}
.vc-details h3 { margin-top: 25px; margin-bottom: 15px; }

.vc-header { 
    width: 100%;
    height: auto;
    justify-content: space-between;
    line-height: 32px;
}
.vc-header a {
    color: var(--text-para);
    text-decoration: none;
    font-size: 32px;
}

.vc-quick-actions { justify-content: space-evenly; margin-top: 25px; }
.vc-quick-actions button, .vc-edit-note-btn {
    padding: 5px 15px;
    background-color: var(--highlight-light);
    color: var(--text-para);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    text-decoration: none;
    font-weight: 400;
}
.vc-quick-actions button:hover, .vc-edit-note-btn:hover {
    background-color: var(--link-hover);
    color: var(--text-title);
    cursor: pointer;
}
.vc-edit-note-btn { 
    margin-top: 10px;
    border-radius: 0px;;
}

.vc-contact-owners { margin-top: 15px; }
.vc-contact-owners .owner-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.vc-contact-owners .pill {
  padding: 5px 10px;
  border: 1px solid var(--highlight-light);
  border-radius: 5px;
  cursor: pointer;
  background-color: var(--highlight-dark);
  transition: all 0.2s ease;
  user-select: none;
}

.vc-contact-owners .pill.selected {
  background-color: var(--highlight-light);
  color: var(--text-title);
  font-weight: 600;
  border-color: var(--highlight-light);
}

select {
    width: 223px;
    height: 40px;
    background-color: transparent;
    border: 1px solid var(--highlight-light);
    color: var(--text-para);
    padding: 5px;
}
option {
    background-color: var(--highlight-dark);
    color: var(--text-para);
}

.vc-contact-details { 
    width: 100%;
    height: auto;
    margin-top: 25px;
}
.vc-contact-info { 
    width: 100%; 
    height: auto;
    margin-top: 15px;
    gap: 25px;
}
.vc-contact-personal-details { 
    flex-flow: row wrap; gap: 25px;
}
.vc-ci-data p { margin-bottom: 5px; }
.vc-owner-details { 
    flex-flow: row wrap;
    gap: 25px;
}

.vc-contact { line-height: 30px; }
.vc-contact i {
    font-size: 22px;
    background-color: var(--highlight-light);
    padding: 5px;
    padding-right: 10px;
}
.vc-contact input {
    width: 175px;
    background-color: transparent;
    border: 1px solid var(--highlight-light);
    color: var(--text-para);
    padding: 5px;
}
.vp-property-details input { width: 75px; }

.vc-fees-quoted, .vc-contact-dates {
    width: 100%;
    height: auto;
    margin-top: 25px;
}

.vc-enquiry-history, .vc-contact-history {
    width: 100%;
    height: auto;
    margin-top: 25px;
}
.vc-enquiry-history table, .vc-contact-history table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    vertical-align: top;
}
.vc-enquiry-history table th, .vc-enquiry-history table tfoot tr,
.vc-contact-history table th, .vc-contact-history table tfoot tr {
    background-color: var(--highlight-button);
    color: var(--text-para);
    padding: 10px;
    text-align: left;
    vertical-align: top;
}
.vc-enquiry-history table td, .vc-contact-history table td {
    padding: 10px;
    border-bottom: 1px solid var(--highlight-light);
    color: var(--text-para);
    vertical-align: top;
}

.vc-contact-history table th:first-child, .vc-contact-history table td:first-child {
    width: 100px;
}
.vc-contact-history tbody .agent-name { 
    margin-bottom: 10px;
}
.vc-enquiry-history p { margin-top: 15px; }

.view-contact-popup input:disabled, 
.view-contact-popup textarea:disabled, 
.view-contact-popup select:disabled, 
.view-contact-popup option:disabled, 
.view-contact-popup button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.delete-contact-popup, .close-contact-view-popup {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);

    display: none;
}

.dcp-content, .ccvp-content {
    width: 400px;
    height: auto;
    background-color: var(--highlight-dark);
    padding: 20px;
    border-radius: 10px;
}
.dcp-content p, .ccvp-content p { margin-top: 25px; margin-bottom: 25px; }

.dc-actions, .ccvp-actions {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-between;
}

.dcp-actions button, .ccvp-actions button {
    padding: 10px 20px;
    background-color: var(--highlight-light);
    color: var(--text-para);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    text-decoration: none;
    font-weight: 400;
}
.dcp-actions button:hover {
    background-color: var(--link-hover);
    color: var(--text-title);
    cursor: pointer;
}


@media screen and (max-width: 1023px) {
    .view-contact-popup {
        flex-direction: column-reverse;
        height: 100dvh;
        overflow: hidden;
    }

    .vc-sidebar, .vc-details {
        width: calc(100% - 20px);
        flex: 0 0 auto;
        height: 0;
        overflow: hidden;
    }

    .vc-sidebar[style*="visibility: visible"],
    .vc-details[style*="visibility: visible"] {
        height: calc(100% - 20px);
        overflow-y: auto;
    }

    .vc-new-note textarea, .vc-edit-note textarea {
        height: calc(100dvh - 125px - 23px - 100px - 50px - 60px);
    }

    .vc-contact input  { width: 250px; }
    select { width: 300px; }
    .vc-quick-actions { flex-flow: row wrap; gap: 10px;  }

    .vc-sidebar {
        padding: 10px;
        border-radius: 0px;
    }

    .view-contact-popup .vc-details {
        padding: 10px;
        border-radius: 0px;
        width: calc(100% - 20px);
    }

    .vc-new-note {
        display: block;
    }

    .vc-new-note-date {
        flex-direction: column;
    }

    .vc-new-note-date input {
        width: calc(100% - 10px);
    }

    .vc-new-note-date div {
        margin-bottom: 15px;
    }

    .vc-contact-history table td:first-child { width: 80px; }
    .vc-enquiry-history { overflow-x: auto;}
    .vc-enquiry-history table { 
        width: max-content;
        min-width: 100%; 
    }
}


/*|===|  |===|*/
.upload-form {
    width: 100%;
    margin-top: 50px;

    flex-direction: column;
    align-items: center;
}


.upload-form input {
    width: calc(300px - 20px);
    padding: 10px;
    background-color: transparent;
    color: var(--text-para);
    border: 1px solid var(--highlight-light);
    margin-top: 15px;
}

.upload-form select {
    width: calc(300px);
    padding: 10px;
    background-color: transparent;
    color: var(--text-para);
    border: 1px solid var(--highlight-light);
    margin-top: 15px;
}

.upload-form  option {
    background-color: var(--highlight-dark);
    color: var(--text-para);
}

.upload-form button {
    width: calc(300px);
    height: 40px;
    background-color: var(--highlight-light);
    color: var(--text-para);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    text-decoration: none;
    font-weight: 400;
    margin-top: 15px;
}
.upload-form button:hover {
    background-color: var(--link-hover);
    color: var(--text-title);
    cursor: pointer;
}

.upload-form input:disabled, .upload-form select:disabled, .upload-form option:disabled, .upload-form button:disabled {
    opacity: 0.5;
}

.upload-status { text-align: center; margin-top: 15px; display: none; }

/*|===| Referral Reports |===|*/
.referral-report-agent-select {
    width: 100%;
    height: auto;
    margin-top: 25px;
}
.referral-report-agent-select select {
    width: calc(100% - 20px);
    padding: 10px;
    background-color: transparent;
    color: var(--text-para);
    border: 1px solid var(--highlight-light);
    margin-top: 15px;
}

.referral-report-summary { 
    margin-top: 25px;
    width: 100%;
    height: auto;
}

.referral-report-summary table, .dash-to-do table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
}
.dash-to-do table { margin-top: 0px; }
.referral-report-summary table th, .referral-report-summary table tfoot tr,
.dash-to-do table th, .dash-to-do table tfoot tr {
    background-color: var(--highlight-button);
    color: var(--text-para);
    padding: 10px;
    text-align: left;
}
.referral-report-summary table td, .dash-to-do table td {
    padding: 10px;
    border-bottom: 1px solid var(--highlight-light);
    color: var(--text-para);
}
.rr-property-list { margin-top: 15px; }
.rr-property-list h3 { margin-bottom: 5px; }

/*|===| DASHBOARD |===|*/
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto auto;
    gap: 20px;
    margin-top: 50px;
    align-items: start; /* Prevents column height syncing */
}

.dashboard-grid h3 { margin-bottom: 25px; }

.dash-lead-stats {
    grid-column: 1 / 2;
    grid-row: 1;
}

.dash-lead-follow-up {
    grid-column: 1 / 2;
    grid-row: 2;
}

.dash-gci-buyer-calculator {
    grid-column: 1 / 2;
    grid-row: 3;
}

.dash-gci-sale-calculator {
    grid-column: 1 / 2;
    grid-row: 4;
}

.dash-to-do {
    grid-column: 2 / 3;
    grid-row: 1 / 6; /* Span all 5 rows on the left */
}

.dashboard-grid .dash-lead-follow-up {
    width: 100%;
    border-collapse: collapse;
}
.dashboard-grid .dash-lead-stats { 
    width: 100%; 
    border-collapse: collapse; 
}
.dashboard-grid table th, .dashboard-grid table tfoot tr {
    background-color: var(--highlight-light);
    color: var(--text-para);
    padding: 10px;
    text-align: left;
}
.dashboard-grid table td {
    padding: 10px;
    border-bottom: 1px solid var(--highlight-dark);
    color: var(--text-para);
}
.dashboard-grid table tr:nth-child(even) {
    background-color: var(--highlight-dark);
}

.dtd-header { 
    flex-direction: row; 
    justify-content: space-between; 
    margin-bottom: 20px; 
}
.dtd-header h3 { margin-bottom: 0; }
.dash-to-do .to-do-create { 
    background-color: var(--highlight-light);
    color: var(--text-para);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    text-decoration: none;
    padding: 5px 10px;
    gap: 5px;
}
.dash-to-do .to-do-create:hover {
    background-color: var(--link-hover);
    color: var(--text-title);
    cursor: pointer;
}
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1); /* this makes it white-ish, use with dark backgrounds */
}

.td-create-popup {
    width: 100vw;
    height: 100dvh; 
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0; 
    left: 0; 

    display: none;
}
.td-create-content { 
    width: 320px; 
    height: auto;
    background-color: var(--highlight-dark);
    padding: 15px;
}

.td-create-content input {
    width: 125px;
    border: 1px solid var(--highlight-light);
    background-color: var(--highlight-light);
    color: var(--text-para);
    padding: 5px;
    margin-top: 10px;
}
.td-create-content input {
    width: calc(100% - 20px);
    border: 1px solid var(--highlight-light);
    background-color: transparent;
    color: var(--text-para);
    padding: 10px;
    margin-top: 10px;
}
.td-create-content textarea {
    width: calc(100% - 20px);
    height: 250px;
    background-color: transparent;
    color: var(--text-para);
    padding: 10px;
    border: 1px solid var(--highlight-light);
    margin-top: 10px;
    resize: vertical;
}

.td-create-content button {
    width: 100%;
    height: 40px;
    background-color: var(--highlight-light);
    color: var(--text-para);
    border: none;
    font-size: 16px;
    text-decoration: none;
    font-weight: 400;
    margin-top: 15px;
}
.td-create-content button:hover {
    background-color: var(--link-hover);
    color: var(--text-title);
    cursor: pointer;
}

.dash-td-list button { 
    background-color: var(--highlight-light);
    color: var(--text-para);
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
}
.dash-td-list button:hover {
    background-color: var(--link-hover);
    color: var(--text-title);
    cursor: pointer;
}
.dash-td-list th:nth-child(2) {
  min-width: 100px; /* or whatever works best */
  white-space: nowrap; /* prevents text wrapping */
}
.to-do-delete:disabled { cursor: not-allowed; }

.dgci-input { width: 140px; }
.dgci-clac { flex-flow: row wrap; gap: 10px; }
.dash-gci-calculator input {
    width: 120px; 
    padding: 5px;
    background-color: transparent;
    border: 1px solid var(--highlight-light);
    color: var(--text-para);
    margin-top: 10px;
    margin-bottom: 10px;

}

@media screen and (max-width: 1023px) {
    .dashboard-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 30px;
    }

    .dash-lead-follow-up,
    .dash-lead-stats,
    .dash-to-do {
        grid-column: auto;
        grid-row: auto;
        width: 100%;
    }

    .dash-lead-stats, .dash-lead-follow-up { 
        overflow-x: auto; 
        width: max-content;
        min-width: 100%; 
    }
    .dash-to-do { margin-bottom: 30px; }

    .dtd-header {
        flex-direction: column;
        gap: 10px;
    }

    .dtd-header h3 {
        margin-bottom: 10px;
    }

    .dash-to-do .to-do-create {
        width: 100%;
        text-align: center;
    }

    .td-create-content {
        width: 280px; 
        max-width: 100%;
    }

    .td-create-content input,
    .td-create-content textarea {
        width: 260px;
    }

    .dash-td-list th:nth-child(2) {
        min-width: unset;
        white-space: normal;
    }
}



/*|===|  |===|*/
.suburb-manager-table {
    width: 100%;
    height: auto;
    margin-top: 25px;
}

.suburb-manager-table table {
    width: 100%;
    border-collapse: collapse;
}
.suburb-manager-table table th, .suburb-manager-table table tfoot tr {
    background-color: var(--highlight-light);
    color: var(--text-para);
    padding: 10px;
    text-align: left;
}
.suburb-manager-table table td {
    padding: 10px;
    border-bottom: 1px solid var(--highlight-dark);
    color: var(--text-para);
}
.suburb-manager-table table tr:nth-child(even) {
    background-color: var(--highlight-dark);
}
.suburb-manager-table table td:last-child,
.suburb-manager-table table th:nth-child(2) {
    width: 100px;
}
.suburb-manager-table table th:nth-child(1) { width: 150px; }
.suburb-manager-table table td {
    padding: 10px;
    border-bottom: 1px solid var(--highlight-light);
    color: var(--text-para);
}
.suburb-manager-table table button { 
    padding: 10px 20px;
    background-color: var(--highlight-button);
    color: var(--text-para);
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}
.suburb-manager-table table button:hover {
    background-color: var(--link-hover);
    color: var(--text-title);
    cursor: pointer;
}
.suburb-manager-table h3 { 
    margin-top: 25px; 
    margin-bottom: 15px; 
    color: var(--text-title);
}
.suburb-manager-table a {
    color: var(--text-para);
    text-decoration: none;
}

.suburb-manager-table input{
    width: calc(100% - 20px);
    padding: 10px;
    background-color: transparent;
    color: var(--text-para);
    border: 1px solid var(--highlight-light);
    border-radius: 5px;
    margin-top: 10px;
}

.agent-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.agent-btn.selected {
    background: var(--link-hover); 
    color: var(--text-para);
    border-color: var(--link-hover);
}


/*|===| PROPOSAL TEMPLATES |===|*/
.template-hero-header {
    width: 100%;
    height: auto;
    margin-top: 15px;
    padding-top: 10px;
    gap: 15px;
    flex-flow: row wrap;

    position: sticky;
    top: -25px;
    background-color: var(--background);
    z-index: 10;
}
.template-hero-header select { width: 150px; }
.template-hero-header input { 
    width: 150px;
    padding: 10px;
    background-color: transparent;
    color: var(--text-para);
    border: 1px solid var(--highlight-light);
}
.template-hero-header button {
    width: 100px;
    height: 40px;
    background-color: var(--highlight-light);
    color: var(--text-para);
    border: none;
    font-size: 16px;
    text-decoration: none;
    font-weight: 400;
}

.template-editor {
    width: 100%; 
    height: auto;
    margin-top: 25px;
}

.ql-editor {
  font-size: 16px; /* Adjust as needed */
}

.template-editor input {
    width: calc(100% - 20px);
    padding: 10px;
    background-color: transparent;
    color: var(--text-para);
    border: 1px solid var(--highlight-light);
}
.wysiwyg-editor, .ql-toolbar, .template-section { margin-top: 10px; }

/*|===| PROPOSAL PREVIEW PAGE |===|*/
.proposal-view {
    overflow-y: auto;
    scrollbar-color: #135075 #041821;
    scrollbar-width: 10px;   
}
.pp-logo-container { margin-bottom: 25px; }
.pp-view-wrapper hr {
    border: 0;
    height: 1px;
    background-color: var(--highlight-light);
    margin: 25px 0;
}
.pp-view-wrapper img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
    margin-top: 25px; 
}
.pp-view-wrapper { 
    padding: 50px 100px;
    max-width: 1500px;
}
@media screen and (max-width: 1023px) { 
    .pp-view-wrapper {
        padding: 50px 20px;
    }
}
.proposal-view h1 {
  font-size: 2em;
  font-weight: bold;
  margin: 1em 0 0.5em;
}
.proposal-view h2 {
  font-size: 1.5em;
  font-weight: bold;
  margin: 1em 0 0.5em;
}
.proposal-view h3 {
  font-size: 1.17em;
  font-weight: bold;
  margin: 1em 0 0.5em;
}
.proposal-view p {
  font-size: 1.07em;
  margin: 0.5em 0;
}
.proposal-view strong {
  font-weight: bold;
}
.proposal-view em {
  font-style: italic;
}
.proposal-view u {
  text-decoration: underline;
}

/* Lists */
.proposal-view ol {
  list-style: decimal;
  margin: 1em 0;
  padding-left: 2em;
}
.proposal-view ul {
  list-style: disc;
  margin: 1em 0;
  padding-left: 2em;
}

/* Alignment (Quill classes) */
.proposal-view .ql-align-center {
  text-align: center;
}
.proposal-view .ql-align-right {
  text-align: right;
}
.proposal-view .ql-align-justify {
  text-align: justify;
}

/* Hyperlinks */
.proposal-view a {
  color: #135075;
  text-decoration: underline;
}
.proposal-view a:hover {
  text-decoration: none;
}

/* Optional line spacing on breaks */
.proposal-view p > br {
  line-height: 1em;
}

.pv-section-header { 
    font-size: 14px;
    font-weight: 300;
    font-style: italic;
}


/*|===| fee table |===|*/
.fee-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.fee-table th, .fee-table td {
    padding: 10px 10px;
    border: 1px solid var(--highlight-light);
}

.fee-table th {
    background-color: var(--highlight-light);
    color: var(--text-para);
}

.fee-table tr:nth-child(even) {
    background-color: var(--background);
}

.fee-table input[type="text"] {
    width: calc(100% - 20px);
    padding: 8px;
    border: 1px solid var(--highlight-light);
    border-radius: 5px;
    background-color: transparent;
    color: var(--text-para);
    font-size: 18px;
}
.fee-table input:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.fee-table-wrapper button {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: var(--highlight-light);
    color: var(--text-para);
    border: none;
    font-size: 14px;
    cursor: pointer;
}
.fee-table-wrapper button:hover {
    background-color: var(--link-hover);
    color: var(--text-title);
    cursor: pointer;
}

.fee-table-wrapper button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/*|===|  |===|*/
/* === Referral Report v2 Styles === */

/* Filters bar */
.filters-bar {
  background: var(--highlight-dark);
  padding: 15px;
  margin-top: 25px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: flex-end;
}
.filters-row .filter label {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
  color: var(--text-title);
}
.filters-row .filter input,
.filters-row .filter select {
  padding: 8px;
  border: 1px solid var(--highlight-light);
  background: transparent;
  color: var(--text-para);
  border-radius: 5px;
}
.filters-row .filter.actions {
  display: flex;
  gap: 10px;
}
.filters-row .filter.actions button {
  padding: 8px 14px;
  background: var(--highlight-light);
  border: none;
  border-radius: 5px;
  color: var(--text-para);
  cursor: pointer;
}
.filters-row .filter.actions button.secondary {
  background: var(--highlight-dark);
  border: 1px solid var(--highlight-light);
}
.filters-row .filter.actions button.ghost {
  background: transparent;
  border: 1px solid var(--highlight-light);
}

/* KPI cards */
.kpi-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 15px;
  margin-top: 25px;
}
.kpi-card {
  background: var(--highlight-dark);
  border: 1px solid var(--highlight-light);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}
.kpi-card .kpi-label {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text-title);
}
.kpi-card .kpi-value {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-para);
}

/* Data tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 25px;
}
.data-table th {
  background: var(--highlight-button);
  color: var(--text-para);
  padding: 10px;
  text-align: left;
}
.data-table td {
  padding: 10px;
  border-bottom: 1px solid var(--highlight-light);
  color: var(--text-para);
}
.data-table tr:nth-child(even) {
  background: var(--highlight-dark);
}
.data-table .badge {
  background: var(--highlight-light);
  color: var(--text-title);
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Pills */
.pill {
  display: inline-block;
  background: var(--highlight-light);
  color: var(--text-para);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  margin-right: 5px;
}
.pill.more {
  background: transparent;
  border: 1px solid var(--highlight-light);
}

/* Drawer */
.drawer {
  position: fixed;
  top: 0; right: 0;
  width: 480px;
  height: 100dvh;
  background: var(--highlight-dark);
  box-shadow: -2px 0 8px rgba(0,0,0,0.6);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 2000;
  display: flex;
  flex-direction: column;
}
body.drawer-open .drawer {
  transform: translateX(0);
}
.drawer-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.6);
  z-index: 1999;
}
.drawer-header {
  padding: 15px;
  border-bottom: 1px solid var(--highlight-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-body {
  padding: 15px;
  flex: 1;
  overflow-y: auto;
}
.drawer-footer {
  padding: 15px;
  border-top: 1px solid var(--highlight-light);
  display: flex;
  gap: 10px;
}
.drawer-footer .spacer { flex: 1; }

/* Tabs inside drawer */
.tabs {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}
.tabs .tab {
  padding: 6px 12px;
  border: 1px solid var(--highlight-light);
  border-radius: 5px;
  background: var(--highlight-dark);
  color: var(--text-para);
  cursor: pointer;
}
.tabs .tab.active {
  background: var(--highlight-light);
  color: var(--text-title);
}
.tab-panels .tab-panel {
  display: none;
}
.tab-panels .tab-panel[hidden] {
  display: none;
}
.tab-panels .tab-panel:not([hidden]) {
  display: block;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin: 15px 0;
  gap: 8px;
}
.page-btn {
  padding: 6px 10px;
  border: 1px solid var(--highlight-light);
  background: var(--highlight-dark);
  color: var(--text-para);
  cursor: pointer;
  border-radius: 4px;
}
.page-btn.current {
  background: var(--highlight-light);
  color: var(--text-title);
}
.page-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/*|===|  |===|*/
/* === Referral Report Enhancements === */

/* Partner info panel */
.rr-partner-info {
  background: var(--highlight-dark);
  border: 1px solid var(--highlight-light);
  border-radius: 6px;
  padding: 12px 15px;
  margin-top: 15px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.rr-partner-info p {
  margin: 4px 0;
}

/* Property list table */
#rr-property-table {
  margin-top: 10px;
}
#rr-property-table td,
#rr-property-table th {
  text-align: left;
}

/* Breakdowns section */
.rr-breakdowns {
  margin-top: 25px;
}
.rr-breakdowns h3 {
  margin-bottom: 10px;
  color: var(--text-title);
}

/* Status breakdown table */
#rr-status-breakdown td,
#rr-status-breakdown th {
  text-align: left;
}
#rr-status-breakdown tr:nth-child(even) {
  background-color: var(--highlight-dark);
}

/* === Agent Call Report (additions) === */
.admin-call-report .filters-bar {
  margin-top: 15px;
  position: sticky;
  top: 0;                /* keeps filters visible while scrolling */
  z-index: 5;
}

.admin-call-report .kpi-cards { 
  margin-top: 20px; 
}

.admin-call-report h3 { 
  margin-top: 25px; 
  margin-bottom: 10px; 
  color: var(--text-title);
}

/* Column sizing hints for readability */
#cr-agent-table th:first-child { min-width: 180px; }
#cr-days-table  th:first-child { min-width: 120px; }
#cr-hours-table th:first-child { width: 80px; }

/* Responsive scrolling for data tables on mobile */
.admin-call-report .cr-agent-breakdown,
.admin-call-report .cr-daily-trend,
.admin-call-report .cr-hours-trend {
  overflow-x: auto;
  scrollbar-color: var(--highlight-light) var(--highlight-dark);
  scrollbar-width: 10px;
}

@media screen and (max-width: 1023px) {
  #cr-agent-table,
  #cr-days-table,
  #cr-hours-table {
    width: max-content;
    min-width: 100%;
  }
}




/*|===|  |===|*/