* {
    font-family: ui-sans-serif, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
    --company-root-background-color: #FFFFFF;
    --company-background-color: rgba(129, 144, 158, 0.10);
    --company-button-background-color: #C2B8AF59;
    --company-primary-accent: #1D3270;
    --company-secondary-accent: #D9B157;
    --company-secondary-accent-highlight: #E3CB7A;

}

/* 
main {
    background-color: #f2f0ee;
} */

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

nav {
    display: flex;
    align-items: center;
    height: 50px;
    gap: 10px;
    padding: 0 10px 0 10px;

    border-bottom: 1px solid black;
    overflow: hidden;
}

nav> :nth-child(2) {
    margin-left: auto;
}


nav>div {
    display: flex;
    align-items: center;
    gap: 3px;
}

#nav_bar_button_container {
    gap: 10px;
}

#nav_bar_user_info {
    border-left: 1px solid rgb(229, 231, 235);
    padding-left: 16px;
    height: 20px;
}

#nav_logo {
    /* max-width: 50px; */
    max-height: 50px;
}


.navButton {
    cursor: pointer;
    font-size: .875rem;
    font-weight: 500;

    padding-top: .5rem;
    padding-bottom: .5rem;
    border-radius: calc(0.5rem - 2px);
    background-color: rgb(243, 244, 246);
    border: none;
}

#side_panel {
    left: 0;
    top: 0;
    margin: 0;
    background-color: #f2f0ee;
    width: 260px;
}

.side-panel-section {
    width: calc(100% - 2rem);
    display: flex;
    flex-direction: column;
    justify-content: center;

    margin-top: 8px;
    margin-bottom: 8px;
    padding: 1rem;

    border-bottom: 1px solid #000;
}

.side-panel-btn {
    width: 100%;
}

/* WebKit */
::-webkit-scrollbar {
    width: 9px;
    height: 9px;
    background-color: transparent;
}

/* REMOVE scrollbar buttons (carets / arrows) */
::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

/* Track */
::-webkit-scrollbar-track {
    background: transparent;
}

/* Thumb */
::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 999px;
    opacity: 0;
    transition: opacity 160ms ease, background-color 160ms ease;
    border: 2px solid #fff;
    background-clip: padding-box;
}

/* Show thumb on container hover */
:hover::-webkit-scrollbar-thumb {
    opacity: 1;
}

/* Thumb hover */
::-webkit-scrollbar-thumb:hover {
    background-color: #555;
    opacity: 1;
}

/* Firefox hover */
.info-entry-container:hover {
    scrollbar-color: #888 #fff;
}

.object-flex-row {
    display: flex;
    flex-direction: row;
    height: 100%;
    max-height: 50vh;

    margin: 1rem;

    outline: none;
    user-select: auto;

    gap: 1rem;
    align-items: stretch;
}

body {
    overflow: hidden;
}

#main_app_body {
    width: 100%;
    height: 100vh;
    overflow: scroll;
}

#object_page_main {
    background-color: #f2f0ee;
    display: flex;
}

#info_page {
    overflow-y: hidden;
    margin-top: 1em;
    margin-left: 1em;
    margin-bottom: 10em;
}


.info-page-title-container {
    margin: 1rem;
    display: flex;
    justify-content: space-between;

}

.info-container {
    flex: 1 1 0;
    /* equal-width columns */
    min-width: 0;
    /* prevents content from forcing width */

    border-radius: 15px;
    background-color: #fff;

    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 0.5rem;

    overflow: hidden;
}

.info-table-container {}

.info-table-label-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.opacity-1 {
    opacity: 1 !important;
}

.info-table-label-sort-icon {
    padding-left: 5px;
    opacity: 0;
}

.info-entry-container {
    height: 80%;
    overflow-y: scroll;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: transparent #fff;
}

.info-title {
    text-align: center;
    height: 10%;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    margin: 0;
    font-size: 1.5rem;
}

.info-entry {
    display: grid;
    grid-template-columns: 40% 60%;
    /* adjust as needed */
    column-gap: 1rem;

    align-items: start;
    padding: 1em 10px 1em 0;
    border-bottom: 1px solid #efeef0;

    width: 100%;
    box-sizing: border-box;
}

.field-name {
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 0;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: inherit;
    font-size: 0.875em;
    min-height: 0;
}

.field-text-container {
    width: 100%;
    min-height: 2rem;

    display: block;
    overflow: visible;
}

/* Value text */
.field-text {
    font-size: 0.875em;
    line-height: 1.4;

    white-space: normal;
    word-break: break-word;
}

.entry-form-primary-container {
    height: 90%;
    width: 90%;
    max-width: 800px;
    background-color: #fff;
    border-radius: 1rem;
    background-color: #f7f6f5;
}

.entry-form-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem 1rem 1.5rem;

    border-bottom: 2px solid #eee;
}

.entry-form-title h2 {
    margin: 0;
    padding: 0;
    font-weight: 600;
}

.entry-form-container {
    display: flex;
    justify-content: center;
    height: 80%;
    overflow-y: scroll;
}

.entry-form {
    width: calc(80% - 2rem);
    background-color: #fff;
    margin: 2rem 0 2rem 0;
    padding: 2rem;
    border-radius: 1rem;
    overflow-y: scroll;
}

.entry-form-creation-btn {
    height: 30px;
    font-size: large;
    margin-bottom: 2px;
}

.entry-form-field-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.entry-form-field-container input {
    max-width: 60%;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.entry-form-field-container select {
    max-width: 60%;
    padding: 0.5rem;
    border-radius: 0.5rem;
}


.entry-form-submit-container {
    display: flex;
    align-items: center;
    justify-content: right;
    gap: 10px;
    padding: 1rem 1.5rem 1rem 1.5rem;

    border-top: 2px solid #eee;

}

.entry-form-container-background {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;

    backdrop-filter: blur(2px);
    width: 100%;
    height: 100%;
    background: blur;
    background-color: #8888;

    display: flex;
    align-items: center;
    justify-content: center;
}

.pop-up-dialogue-container {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 9999;

    backdrop-filter: blur(2px);
    width: 100%;
    height: 100%;
    background: blur;
    background-color: #8888;

    display: flex;
    align-items: center;
    justify-content: center;
}

.pop-up-dialogue {
    width: 35em;
    padding: 1em;
    border-radius: 15px;
    background-color: #fff;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.pop-up-dialogue-btn-container {
    width: 100%;
    display: flex;
    justify-content: right;
    gap: 10px;
}

.btn {
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;

    min-height: 40px;
    min-width: 80px;
    padding-top: .5rem;
    padding-bottom: .5rem;
    border-radius: calc(0.5rem - 2px);
    background-color: var(--company-background-color);
    border: none;
}

.btn-passive {
    background-color: var(--company-button-background-color);
    color: var(--company-primary-accent);
}

.btn-active {
    background-color: var(--company-primary-accent);
    color: #fff;
}

.object-table-main-container {
    margin: 0;
    width: 100%;
    border-radius: 0.5rem;
    background-color: #fff;
    overflow: hidden;
}

.object-table-body-container {
    display: grid;
    gap: 0.25rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.object-table-head-container {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 1rem 0 1rem;
    margin-bottom: 0;

    border-bottom: 1px solid gray;
    /* border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem; */
}

.object-table-footer-container {
    padding: 0 1rem 0 1rem;

    border-top: 1px solid gray;
    /* border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem; */
    min-height: 2rem;

}

.object-table-head-search-container {
    display: flex;
    gap: 10px;
}

.object-table-search-box {
    padding-left: 25px;
    background: url("assets/search_icon.png") no-repeat left;
    background-size: 25px;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
}




/* Search table */

.search-field-container {
    margin: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}


.scroll-table-wrap {
    max-height: 40vh;
    border: 1px solid #ddd;
    overflow-y: scroll;
}

.sticky-table {
    width: 100%;
    max-height: 100%;
    border-collapse: collapse;
}

.sticky-table th,
.sticky-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.sticky-table tr:hover {
    background-color: #f9fbff;
}

.sticky-table td>div {
    max-height: 5em;
    min-width: 2em;
    overflow-y: scroll;
}

.sticky-table th:hover,
.sticky-table td:hover {
    background-color: #eaf2fd
}

.sticky-table thead th {
    position: sticky;
    z-index: 2;
    top: 0;
    font-size: 0.875rem;

    /* padding-left: 0.5em; */

    cursor: pointer;
    user-select: none;

    background: white;
    border-bottom: 1px solid #ddd;
    border-left: 1px solid #ddd;
}



.login-page-background-container {
    position: absolute;
    left: 0;
    top: 0;

    padding-top: 50px;

    width: 100%;
    height: 100%;
    background-color: #8888;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-form-title {
    font-weight: normal;
    font-size: 25px;
}

.login-form-input-container {
    display: flex;
    flex-direction: column;
}

#login_form {
    width: 425px;
    padding: 24px 48px 24px 48px;
    border-radius: 15px;
    background-color: #fff;

    margin-top: 50px;

}

#login_form > * {
    margin: 0.5rem;
}


#login_email_input, #login_password_input {
    padding: 0.25rem;
    border-radius: 0.5rem;
}
















/* Custom select */

:root {
    --ss-font: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    --ss-control-h: 30px;
    --ss-radius: 10px;
    --ss-border: #c7c7c7;
    --ss-border-hover: #9aa0a6;
    --ss-border-focus: #2563eb;
    --ss-bg: #fff;
    --ss-bg-hover: #f8fafc;
    --ss-bg-active: #eef2ff;
    --ss-text: #111827;
    --ss-muted: #6b7280;
    --ss-shadow: 0 10px 25px rgba(0, 0, 0, 0.10);
    --ss-ring: 0 0 0 3px rgba(37, 99, 235, 0.22);
}

/* Root */
.ss-root {
    position: relative;
    width: 360px;
}

/* Control wrapper (native-select-ish) */
.ss-control {
    box-sizing: border-box;
    width: 100%;
    min-height: var(--ss-control-h);
    /* padding: 6px 42px 6px 8px; */
    /* room for chevron */
    border-radius: var(--ss-radius);
    border: 1px solid var(--ss-border);
    background-color: var(--ss-bg);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    cursor: text;
    transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;

    /* chevron */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20'%3E%3Cpath fill='%236b7280' d='M5.3 7.7a1 1 0 0 1 1.4 0L10 11l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
}

.ss-control:hover {
    border-color: var(--ss-border-hover);
    background-color: var(--ss-bg-hover);
}

.ss-control:focus-within {
    border-color: var(--ss-border-focus);
    box-shadow: var(--ss-ring);
    background-color: var(--ss-bg);
}

/* The actual text input inside the control */
.ss-input {
    all: unset;
    flex: 1 1 120px;
    min-width: 80px;
    height: 26px;
    padding: 0 4px;
    font-size: 14px;
    color: var(--ss-text);
    line-height: 1;
}

.ss-input::placeholder {
    color: var(--ss-muted);
    opacity: 1;
}

/* Selected chips (for multi) */
.ss-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef2ff;
    border: 1px solid rgba(37, 99, 235, 0.20);
    color: #1f2937;
    font-size: 13px;
    line-height: 1;
    user-select: none;
}

.ss-chip-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}

.ss-chip-x {
    all: unset;
    cursor: pointer;
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    color: #374151;
}

.ss-chip-x:hover {
    background: rgba(17, 24, 39, 0.08);
}

.ss-chip-x:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
}

/* Dropdown */
.ss-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius);
    background: var(--ss-bg);
    box-shadow: var(--ss-shadow);
    display: none;
    z-index: 1000;
    overflow: hidden;
    /* keeps rounded corners on scroll */
}

.ss-list {
    height: 280px;
    overflow: auto;
    position: relative;
    overscroll-behavior: contain;
}

/* Option rows */
.ss-option {
    height: var(--ss-control-h);
    display: flex;
    align-items: center;
    padding: 3px 12px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    background: transparent;
    transition: background-color 90ms ease;
}

.ss-option:hover {
    background: #f3f4f6;
}

/* selected highlight (multi + single) */
.ss-option.selected {
    background: var(--ss-bg-active);
    font-weight: 600;
}

/* keyboard active row */
.ss-option.active {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.35);
    background: rgba(37, 99, 235, 0.08);
}

/* Subtle separators */
.ss-option+.ss-option {
    border-top: 1px solid rgba(17, 24, 39, 0.06);
}

/* Scrollbar (webkit) */
.ss-list::-webkit-scrollbar {
    width: 10px;
}

.ss-list::-webkit-scrollbar-track {
    background: transparent;
}

.ss-list::-webkit-scrollbar-thumb {
    background: rgba(17, 24, 39, 0.18);
    border-radius: 999px;
    border: 3px solid transparent;
    background-clip: padding-box;
}

.ss-list::-webkit-scrollbar-thumb:hover {
    background: rgba(17, 24, 39, 0.28);
}