* {
    font-family: 'Montserrat', serif;
    font-weight: 400;
}

nav.header {
    position: sticky;
    top: 0;
    z-index: 9999;
}

.navbar-logo {
    height: 35px;
    padding: 5px;
}

.bg-handshake {
    background-color: #2f3131;
}

.bg-handshake-lighter {
    background-color: #404545 !important;
}

.grey-header {
    background-color: #d3d3d3;
    color: black;
    padding: 10px;
    font-size: 24px;
    width: 100%;
    height: 7%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.custom-header-1 {
    color: black;
    padding-top: 25px;
    padding-bottom: 30px;
    font-size: 24px;
    text-align: center;
    background-color: #eeeeee;
    margin-left: -30px;
    margin-right: -30px;
    margin-top: -30px;
    margin-bottom: 30px;
}

.container-main {
    padding: 30px;
}

.container-manager {
    flex-grow: 1;
    background-color: #fff;
}

html,
main,
body {
    height: 100%;
    min-width: 1280px;
    overflow: auto;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.create-form-wrapper {
    overflow: auto;
}

.create-form-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

    & td {
        padding-bottom: 5px;
        font-weight: bold;
    }
}

.create-form {
    padding: 15px;
    background-color: #c1c8d0;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    background-color: rgba(248, 249, 250, 1);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
}

.create-form-section {
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;

    h3 {
        padding-bottom: 10px;
        font-size: 1.5rem;
    }

    td {
        padding-right: 10px;
    }
}


.multi-select-input {
}

.multi-select-input > div {
    height: 100px;
    overflow: auto;
    border-radius: 0.25rem;
    background-color: #fff;
    padding: 5px 5px 10px;
    white-space: nowrap;
    border: 1px solid #ced4da;
}

.add-button {
    margin-top: 20px;
}

.form-error-message {
    margin-top: 20px;
    color: red;
}

.form-success-message {
    margin-top: 20px;
    color: rgb(13, 69, 0);
}

.my-structure-with-view {
    flex-grow: 1;
    display: flex;
    width: 100%;
}

.my-structure-wrapper {
    max-height: calc(100vh - 56px);
    position: sticky;
    top: 56px;
    z-index: 9999;

    & ul {
        list-style-type: none;
    }

    & li {
        margin: 5px 5px 5px 0;
    }
}

.my-structure {
    padding-left: 5px;
    padding-right: 5px;
    overflow: auto;
    max-height: 100%;
}

.do-not-break-text {
    white-space: nowrap;
}

.main-list-structure {
    padding-left: 5px;
}

.agent-node-structure {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.dot {
    height: 7px;
    margin-right: 7px;
    padding-left: 2px;
}

.arrow {
    height: 7px;
    margin-right: 5px;
}

.handshake-primary-color {
    background-color: #2f3131 !important;
}

.handshake-secondary-color {
    background-color: #c03a27 !important;
    color: white !important;
}

.filters {
    display: flex;
    align-items: end;
    width: 100%;
    padding-bottom: 50px;
}

.filters-form {
    display: flex;
    align-items: end;

    & .form-group {
        margin-right: 20px;
        position: relative;

        & small {
            position: absolute;
            top: 100%;
            left: 0;
        }
    }
}

.filter-form-buttons {
    display: flex;
    align-items: end;
    gap: 10px;
    margin-right: 10px;
}

#id_search_field {
    min-width: 250px;
}

#div_id_real_estate_type {
    max-width: 400px;
}

#div_id_status {
    max-width: 350px;
}

.status-select {
    display: block;
    width: 100%;
    padding: 0.25rem 0.5rem;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    appearance: none;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

select.status-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.status-select.disabled:hover {
    cursor: not-allowed !important;
    opacity: 0.6;
}

.status-select:hover {
    cursor: pointer;
}

.details-container {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    height: 300px;
}

.details-description-container {
    width: 68%;
    padding: 10px;
    border-radius: 0.25rem;
    overflow: auto;
    margin-right: 6px;
    border: 1px solid #ced4da;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
    background-color: rgba(248, 249, 250, 1);
}

.details-section {
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;

    h3 {
        padding-bottom: 10px;
        font-size: 1.5rem;
    }

    td {
        padding-right: 10px;
    }
}

.details-updates-container {
    width: 40%;
    padding: 10px;
    border-radius: 0.25rem;
    border: 1px solid #ced4da;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
    background-color: rgba(248, 249, 250, 1);
}

.updates {
    background-color: white;
    height: 80%;
    margin-bottom: 10px;
    padding: 5px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: auto;
    border: 1px solid #ced4da;
}

.update {
    padding: 4px 10px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    margin-bottom: 4px;
}

.my-update {
    background-color: rgba(0, 128, 0, 0.2);
}

.other-user-update {
    background-color: rgba(0, 0, 255, 0.2);
}

.update-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-size: 13px;
}

.update-text {
    word-break: break-word;
    white-space: pre-wrap;
}

.update-form {
    display: flex;
    justify-content: space-between;
    align-self: flex-end;
    height: 15%;
}

.add-update-input {
    display: block;
    width: 68%;
    padding: 0.2rem 0.6rem;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    appearance: none;
    border-radius: 0.25rem;
}

.add-update-button {
    width: 30%;
    font-size: 13px !important;
}

.actions {
    width: 100%;
    text-align: left;
    padding-left: 10px;
    padding-right: 10px;
    white-space: nowrap;
    text-decoration: none;
    overflow: auto;
    font-size: 20px;
    vertical-align: middle;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.table-date {
    display: block;
    width: 100%;
    padding: 0.25rem 0.5rem;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

#notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.notification {
    padding: 10px 20px;
    margin: 10px 0;
    border-radius: 5px;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: fadeout 4s forwards;
}

.notification.success {
    background-color: #4caf50;
}

/* Green */
.notification.info {
    background-color: #2196f3;
}

/* Blue */
.notification.warning {
    background-color: #ff9800;
}

/* Orange */
.notification.error {
    background-color: #f44336;
}

/* Red */

@keyframes fadeout {
    0% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent black */
    z-index: 1040; /* Just below the modal (Bootstrap modals use 1050) */
    backdrop-filter: blur(3px); /* Blur effect */
    -webkit-backdrop-filter: blur(3px); /* For Safari support */
    display: flex;
    align-items: center;
    justify-content: center;
}

.bold-label {
    font-weight: bold;
}

.modal {
    text-wrap: auto;
}

#description_event_detail {
    white-space: pre-wrap;
}

textarea.add-update-input {
    height: 40px; /* Fixed height */
    resize: none; /* Prevents manual resizing */
    padding: 6px 10px; /* Optional horizontal padding */
    box-sizing: border-box; /* Ensures padding is included in the height */
}

table.table thead th.asc {
    background: url(caret-up-fill.svg) no-repeat center right;
}

table.table thead th.desc {
    background: url(caret-down-fill.svg) no-repeat center right;
}

.table-container table {
    max-width: 100%;
    table-layout: fixed;
}

.table-container table tr th {
    white-space: nowrap;
    overflow: auto;
    font-size: 16px;
    vertical-align: middle;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 4px;
    box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.05);
    font-size: 16px;
    font-weight: 500;
}

.table-container table tr th a {
    text-decoration: none;
    color: inherit;
    font-weight: inherit;
}

.table-container table tr td {
    white-space: nowrap;
    overflow: auto;
    font-size: 16px;
    vertical-align: middle;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 4px;
    font-size: 16px;
}

.table-hover > tbody > tr:not(:hover) > * {
    box-shadow: none;
}

.max-w-800 {
    width: 800px;
    max-width: 100%;
    margin: 0 auto;
}

.folder-toggle {
    cursor: pointer;
}

/* style form elements same as boostrap */
form input[type="text"],
form input[type="password"],
form input[type="number"],
form input[type="date"],
form input[type="datetime-local"],
form input[type="url"],
form textarea {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    appearance: none;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

form select {
    display: block;
    width: 100%;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    appearance: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input[type="checkbox"] {
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid rgba(0, 0, 0, 0.25);
    appearance: none;
    border-radius: 0.25em;
    -webkit-print-color-adjust: exact;
}

input[type="checkbox"]:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
    background-image: url("data:image/svg+xml,%3csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 20 20\'%3e%3cpath fill=\'none\' stroke=\'%23fff\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'3\' d=\'M6 10l3 3l6-6\'/%3e%3c/svg%3e");
}

input[type="checkbox"]:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, .25);
}
