.main-container {
    padding: var(--main-container-padding) 0 50px;
    box-sizing: border-box;
}

.main-container .row {
    margin-left: 0;
    margin-right: 0;
}

/* ===== TOPBAR CONTAINER ===== */
.app-topbar {
    background: var(--color-secondary-100);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    font-family: sans-serif;
    border-radius: 24px;
    margin-bottom: 24px;
}

/* ===== SEARCH BAR ===== */
.app-topbar__search {
    position: relative;
    width: 436px;
}

input[type="text"].app-topbar__search-input {
    -webkit-appearance: none;
    appearance: none;

    width: 100%;
    height: 40px;
    padding: 0 44px 0 16px;

    border-radius: 24px !important;
    border: 1px solid var(--color-neutral-200);

    outline: none;
    background: transparent;

    font-size: 16px !important;
    color: var(--color-neutral-400) !important; /* text color */
}

input[type="text"].app-topbar__search-input::-webkit-input-placeholder {
    color: inherit !important;
    opacity: 1 !important;
}

input[type="text"].app-topbar__search-input::placeholder {
    color: var(--color-neutral-400) !important;
    opacity: 1 !important;
    font-size: 16px !important;
}

input[type="text"].app-topbar__search-input::-moz-placeholder {
    color: var(--color-neutral-400) !important;
    opacity: 1 !important;
    font-size: 16px !important;
}

input[type="text"].app-topbar__search-input:-ms-input-placeholder {
    color: var(--color-neutral-400) !important;
    opacity: 1 !important;
    font-size: 16px !important;
}


.app-topbar__search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* ===== RIGHT SIDE ICONS ===== */
.app-topbar__right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.app-topbar__icon-btn {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.app-topbar__icon-svg {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* ===== SEARCH MENU BAR ===== */
.app-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/*UTILITY CLASSES*/
.w-100 {
    width: 100%;
}

.d-flex {
    display: flex;
}

.flex-1 {
    flex: 1 1 0 !important;
}

.flex-column {
    flex-direction: column;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-end {
    justify-content: flex-end;
}

.justify-content-center {
    justify-content: center;
}

.align-items-center {
    align-items: center;
}

.align-items-end {
    align-items: flex-end;
}

.d-none {
    display: none !important;
}

.pb-16 {
    padding-bottom: 16px;
}

.pt-16 {
    padding-top: 16px;
}

.pb-24 {
    padding-bottom: 24px;
}

.pt-24 {
    padding-top: 24px;
}

.pl-8 {
    padding-left: 8px;
}

.pl-16 {
    padding-left: 16px;
}

/* =======================================
OVERRIDES FOR IQ REDESIGN 2025 THEME
======================================= */
html {
    background: var(--color-secondary-0);
    scroll-behavior: smooth;
}

body {
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    background: var(--color-secondary-0);
}

h2, h3, h4, h5, h6 {
    font-family: "Manrope", sans-serif;
    margin: 0;
}

p {
    margin: 0;
}

.main-content {
    padding-left: 0;
    padding-right: var(--main-container-padding);
}

@media (min-width: 992px) {
    .main-content {
        padding-left: 16px;
    }
}

.sidebar + .main-content {
    margin-left: calc(var(--sidebar-width) + var(--main-container-padding));
}

.page-content {
    background: var(--color-secondary-0);
}

.navbar-fixed-top.disable-navbar-fixed-top {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    z-index: auto;
}

.sidebar.menu-min + .main-content {
    margin-left: calc(var(--sidebar-menu-min-width) + var(--main-container-padding));
}

.top-action-bar {
    width: 100%;
}

.top-action-bar > div {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.filled-btn {
    display: inline-block;
    width: 100%;
    padding: 0 24px;
    background: var(--color-primary-900);
    border: none;
    border-radius: 999px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
    height: 48px;
    line-height: 1;
}

.filled-btn:hover {
    opacity: 0.6;
}

.filled-btn:active {
    transform: scale(0.98);
}

.filled-btn:disabled,
.filled-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;

    &.smallBtn {
        height: 48px;
        font-size: 14px;
    }
}

.outlined-btn {
    width: 100%;
    height: 48px;
    border-radius: 32px;
    background: white;
    color: #1F1F1F;
    font-size: 16px;
    font-weight: 500;
    border: 1px solid #747775;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    padding: 0 12px;

    &.smallBtn {
        height: 48px;
        font-size: 14px;
    }
}

.input-label {
    text-transform: none;
}

.input-label::first-letter {
    text-transform: uppercase;
}

.capitalize-first::first-letter {
    text-transform: uppercase;
}

.fs-16 {
    font-size: 16px;
}

.nav-tabs {
    border: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-tabs::before,
.nav-tabs::after {
    display: none !important;
    content: none !important;
}

.nav-tabs > li > a {
    font-size: 12px;
    border-radius: 24px !important;
    background: transparent;
    border: 1px solid var(--color-primary-100);
    color: var(--color-secondary-900);
    cursor: pointer;
    line-height: 1.2;
    display: flex;
    align-items: center;
    padding: 0 6px 0 12px;
    height: 32px;
}

.nav-tabs > li.dropdown > a {
    padding-right: 12px;
}

.nav-tabs > li > a:hover {
    border-color: transparent;
    border-radius: 24px;
    background: var(--color-primary-50);
    color: var(--color-secondary-900);
}

.nav-tabs > li > a:focus {
    color: var(--color-secondary-900);
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    color: var(--color-secondary-900);
    border-color: transparent;
    background: var(--color-primary-50);
    line-height: 1.2;
    box-shadow: none;
    cursor: pointer;
}

.nav-tabs > li.open .dropdown-toggle {
    border-color: transparent;
    background: var(--color-primary-50);
    color: var(--color-secondary-900);
}

.nav-tabs > li.open .dropdown-toggle > .ace-icon {
    color: var(--color-secondary-900) !important;
}

.widget-toolbar > .nav-tabs {
    margin-top: 0 !important;
}

.widget-toolbar > .nav-tabs > li > a {
    height: 38px;
}

.transparent > .widget-header > .widget-toolbar > .nav-tabs > li.active > a {
    position: relative;
    color: var(--color-secondary-900);
    border: none;
    background: var(--color-primary-50);
    cursor: pointer;
    padding: 0 16px;
    border-radius: 0 !important;
}

.transparent > .widget-header > .widget-toolbar > .nav-tabs > li.active > a::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 3px;
    background: var(--color-primary-900);
    border-radius: 4px 4px 0 0;
}

.widget-toolbar > .nav-tabs > li {
    margin-bottom: 0;
    background: var(--color-secondary-20);
}

.transparent > .widget-header > .widget-toolbar > .nav-tabs > li > a {
    font-size: 14px;
}

.widget-box.transparent > .widget-header {
    background: var(--color-secondary-20);
    color: var(--color-secondary-900);
    font-weight: 600;
}

.tab-content {
    border: none;
    background: #ffffff;
    margin-top: 32px;
}

.tab-content.invalid textarea {
    border-color: var(--error-color) !important;
}

.tabs-below > .tab-content.invalid ~ .nav-tabs > li > a {
    border-color: var(--error-color) !important;
}

.form-group textarea {
    border: 1px solid var(--color-primary-100) !important;
}

.tabs-below {
    .tab-content {
        margin-top: 0;
    }

    .nav-tabs > li > a {
        border-radius: 0 !important;
    }
}

.tab-close-icon {
    padding-left: 5px;
}

.ui-jqgrid .ui-jqgrid-labels,
.ui-jqgrid .ui-jqgrid-htable thead,
.ui-jqgrid .ui-jqgrid-labels {
    background: var(--color-secondary-100);
}

.ui-jqgrid .ui-jqgrid-hdiv {
    background: transparent;
}

.ui-jqgrid .ui-jqgrid-bdiv {
    border-top: none;
}

.table-hamburger-icon {
    min-width: 32px;
    width: 32px;
}

.ui-jqgrid .ui-jqgrid-labels {
    border-left: none !important;
}

.ui-th-ltr, .ui-jqgrid .ui-jqgrid-htable th.ui-th-ltr {
    border: none;
}

.ui-jqgrid-hdiv .ui-jqgrid-htable {
    border-top: none;
}

.ui-jqgrid .ui-jqgrid-labels th {
    border-right: none !important;
}

.ui-jqgrid-sortable {
    color: var(--color-neutral-500);
    font-size: 16px;
    font-weight: 600;
    min-width: 32px;
    width: 32px;
}

.ui-jqgrid tr.ui-row-ltr td, .ui-jqgrid tr.ui-row-rtl td {
    border-right: none !important;
    height: 40px;
    border-bottom-color: var(--color-neutral-100);
    padding: 0 4px;
}

.ui-jqgrid-btable .ui-widget-content.ui-priority-secondary {
    background: var(--color-secondary-100);
}

.ui-jqgrid-btable .ui-widget-content.ui-state-highlight {
    background: var(--color-secondary-300);
}

.ui-jqgrid-btable .ui-widget-content.ui-state-hover:not(.ui-state-highlight) {
    background-color: var(--color-secondary-200);
}

.ui-jqgrid .ui-jqgrid-btable {
    border-left: none;
}

.widget-toolbar {
    display: flex;
    align-items: center;
    height: 39px;
    background: var(--color-secondary-20);
}

.widget-toolbar .nav-tabs > li > a {
    padding: 0 16px;
}

.widget-toolbar a i.fa.fa-chevron-up, .widget-toolbar a i.fa.fa-chevron-down {
    display: none;
}

.widget-toolbar a[data-action="make-form-bigger"],
.widget-toolbar a[data-action="make-form-smaller"] {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

.widget-toolbar a[data-action="make-form-bigger"] {
    background-image: url('/packages/common_app_dart/assets/images/icons/arrow-up.svg');
}

.widget-toolbar a[data-action="make-form-smaller"] {
    background-image: url('/packages/common_app_dart/assets/images/icons/arrow-down.svg');
}

.widget-toolbar:before {
    display: none;
    content: none;
}

.iq-select {
    position: relative;
    width: auto;
    height: 36px;
}

.iq-select select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 100%;
    padding: 0 28px 0 12px;
    border-radius: 6px;
    border: 1px solid var(--color-neutral-200);
    background-color: #ffffff;
    font-size: 14px;
    cursor: pointer;
}

.iq-select__icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--color-neutral-500);
    pointer-events: none;
}

.iq-select select:hover {
    border-color: var(--color-neutral-300);
}

.iq-select select:focus {
    outline: none;
    border-color: var(--color-neutral-300);
    box-shadow: none;
}

.user-info {
    line-height: 1.2;
    margin-right: 8px;
}

/* ===== ENTITY IMAGE MANAGEMENT ===== */

.eim-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0 12px;
}

.eim-toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--color-primary-100);
    background: var(--color-secondary-0);
    color: var(--color-secondary-900);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.3;
}

.eim-toolbar-btn:hover {
    background: var(--color-primary-50);
    border-color: var(--color-primary-300);
    color: var(--color-secondary-900);
    text-decoration: none;
}

.eim-toolbar-btn:active {
    transform: scale(0.97);
}

.eim-toolbar-btn i {
    font-size: 14px;
}

.eim-toolbar-btn.eim-toolbar-btn--danger {
    color: var(--error-color);
    border-color: var(--error-color);
}

.eim-toolbar-btn.eim-toolbar-btn--danger:hover {
    background: #fef2f2;
}

.eim-main {
    display: flex;
    gap: 16px;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.eim-sidebar {
    width: 140px;
    min-width: 140px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px;
}

.eim-preview {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
    background: var(--color-secondary-20);
    border-radius: 12px;
    padding: 12px;
}

.eim-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.eim-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 4px 8px;
}

.eim-groups label {
    font-size: 12px;
    margin-bottom: 0;
}

/* Thumbnail card */
.eim-thumb {
    border-radius: 8px;
    border: 2px solid var(--color-neutral-100);
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    position: relative;
}

.eim-thumb:hover {
    border-color: var(--color-primary-300);
    box-shadow: 0 2px 8px rgba(0, 0, 64, 0.08);
}

.eim-thumb-img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}

.eim-thumb-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    padding: 4px 4px 3px;
    min-height: 22px;
}

.eim-thumb-groups .label {
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 4px;
    line-height: 1.4;
}

/* Selected state — applied by HtmlListViewWidget via .selected class on .list-view-item */
.entity-images-view .list-view-item.selected .eim-thumb {
    border-color: var(--color-primary-400);
    box-shadow: 0 0 0 2px var(--color-primary-100), 0 2px 8px rgba(0, 0, 64, 0.12);
}

/* ===== UPLOAD VIEW ===== */

.eim-drop-zone {
    border: 2px dashed var(--color-primary-300);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    color: var(--color-neutral-400);
    font-size: 16px;
    font-weight: 500;
    transition: background 0.15s, border-color 0.15s;
    cursor: pointer;
    margin: 12px 0;
}

.eim-drop-zone:hover,
.eim-drop-zone.hover {
    background: var(--color-primary-20);
    border-color: var(--color-primary-400);
    color: var(--color-neutral-500);
}

.eim-upload-options {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 8px 0;
    flex-wrap: wrap;
}

.eim-upload-options label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-secondary-900);
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.eim-upload-options select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 4px 28px 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--color-neutral-200);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23596780'/%3E%3C/svg%3E") no-repeat right 10px center;
    font-size: 13px;
    cursor: pointer;
}

.eim-upload-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px;
    border: 1px solid var(--color-neutral-100);
    border-radius: 10px;
    background: #fff;
    margin-bottom: 10px;
}

.eim-upload-card img[data-content-id="image-preview"] {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.eim-upload-card .eim-upload-card__info {
    flex: 1 1 0;
    font-size: 13px;
    color: var(--color-neutral-400);
    line-height: 1.6;
}

.eim-upload-card .eim-upload-card__info p {
    margin: 0 0 2px;
}

.eim-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border-radius: 999px;
    border: none;
    background: var(--color-primary-900);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
    text-decoration: none;
    margin-top: 8px;
}

.eim-upload-btn:hover {
    opacity: 0.75;
    color: #fff;
    text-decoration: none;
}

.eim-remove-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid var(--error-color);
    background: transparent;
    color: var(--error-color);
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    margin-top: 6px;
}

.eim-remove-btn:hover {
    background: #fef2f2;
    color: var(--error-color);
    text-decoration: none;
}

/* Document upload preview */
.eim-doc-icon {
    width: 72px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 8px;
    background: var(--color-primary-50, #eff6ff);
    color: var(--color-primary-400, #60a5fa);
}

.eim-doc-icon i {
    font-size: 28px;
}

.eim-doc-ext {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary-500, #3b82f6);
}

.eim-doc-filename {
    font-weight: 500;
    color: var(--color-secondary-900, #1e293b);
    margin-bottom: 4px !important;
}

.eim-doc-description-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-neutral-400, #94a3b8);
    margin-top: 6px;
    margin-bottom: 0;
}

.eim-doc-description {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 6px 10px;
    border: 1px solid var(--color-neutral-100, #e2e8f0);
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s;
}

.eim-doc-description:focus {
    border-color: var(--color-primary-300, #93c5fd);
    box-shadow: 0 0 0 2px var(--color-primary-50, #eff6ff);
}

/* Document list thumb */
.eim-doc-thumb {
    padding: 8px;
    cursor: pointer;
}

.eim-doc-thumb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    font-size: 24px;
    color: var(--color-primary-400, #60a5fa);
}

.eim-doc-thumb-name {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-secondary-900, #1e293b);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 2px 0;
}

.eim-doc-thumb-desc {
    font-size: 10px;
    color: var(--color-neutral-400, #94a3b8);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.entity-documents-view .list-view-item.selected .eim-thumb {
    border-color: var(--color-primary-400);
    box-shadow: 0 0 0 2px var(--color-primary-100), 0 2px 8px rgba(0, 0, 64, 0.12);
}

/* Make preview iframe/image fill the container */
.entity-documents-view .eim-preview iframe,
.entity-documents-view .eim-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.locale-btn-mini {
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 76, 0.13);
    background: #f5f5f5;
    color: rgba(0, 0, 76, 0.50);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.locale-btn-mini.active {
    background: var(--color-primary-900);
    border-color: var(--color-primary-900);
    color: #ffffff;
}

.locale-btn-mini:hover:not(.active) {
    background: #e8e8e8;
}

.group-grid-item {
    -moz-border-radius: 24px;
    border-radius: 24px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    border: 1px solid var(--color-secondary-300);
}

th[aria-selected=true] .ui-jqgrid-sortable {
    position: absolute;
    left: 10px;

    .s-ico {
        top: 11px;
        left: 2px;
        position: absolute;
    }
}

.agent-nav.nav-pills > li.active > a,
.agent-nav.nav-pills > li.active > a:hover,
.agent-nav.nav-pills > li.active > a:focus {
    background-color: var(--color-primary-100);
    border-radius: 6px;
}

.agent-nav.nav-pills > li > a {
    color: var(--color-primary-900);
    padding: 8px 12px;
    font-weight: 500;
    font-size: 16px;
}

.agent-nav.nav > li > a:hover, .nav > li > a:focus {
    background-color: var(--color-primary-50);
}

ul.agent-nav.nav-pills {
    margin-left: 0;
}

ul.agent-nav.nav-pills > li + li {
    margin-left: 32px;
}

.app-topbar__search.agent-topbar-search {
    width: 362px;
}

.agent-user-dropdown {
    position: relative;
    display: inline-block;
}

.agent-user-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--color-secondary-200);
    border: none;
    border-radius: 50px;
    padding: 4px 12px 4px 4px;
    cursor: pointer;
}

.agent-user-chevron {
    transition: transform 0.2s ease;
}

.agent-open .agent-user-chevron {
    transform: rotate(180deg);
}

.agent-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.agent-user-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 4px 0;
    min-width: 160px;
    list-style: none;
    margin: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.agent-user-menu li a {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
}

.agent-user-menu li a:hover {
    background: #f5f5fb;
}

.agent-open .agent-user-menu {
    display: block;
}

.agent-stat-card {
    background: #fff;
    box-shadow: 0 1px 3px rgba(166, 175, 195, 0.40);
    border-radius: 12px;
    padding: 16px 16px 8px 16px;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.agent-stat-inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.agent-stat-icon .agent-stat-icon-img {
    width: 40px;
    height: 40px;
}

.agent-stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.agent-stat-title {
    color: #0D121F;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.agent-stat-trend {
    display: flex;
    align-items: center;
    gap: 4px;
}

.agent-stat-change {
    color: var(--color-neutral-400);
    font-size: 14px;
    font-weight: 600;
}

.agent-stat-period {
    color: var(--color-neutral-400);
    font-size: 14px;
    font-weight: 500;
}

.agent-stat-value {
    color: var(--color-neutral-700);
    font-size: 32px;
    font-weight: 700;
    line-height: 48px;
}

.agent-page-content > .row > [class*="col-"]:first-child {
    padding-left: 0;
}

.agent-page-content > .row > [class*="col-"]:last-child {
    padding-right: 0;
}

.agent-page-content .col-md-8 > .row > [class*="col-"] {
    padding-left: 7.5px;
    padding-right: 7.5px;
}

.agent-page-content .col-md-8 > .row > [class*="col-"]:first-child {
    padding-left: 0;
}

.agent-page-content .col-md-8 > .row > [class*="col-"]:last-child {
    padding-right: 0;
}

.agent-tabs-card {
    box-shadow: 0 1px 3px 0 rgba(166, 175, 195, 0.40);
    background: #fff;
}

.agent-tabs-header {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-secondary-20);
    border-bottom: 1px solid var(--color-neutral-200);
    border-radius: 6px 6px 0 0;
    padding: 0 16px;
}

.agent-tabs {
    display: flex;
    align-items: center;
}

.agent-tab {
    cursor: pointer;
    height: 48px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--color-primary-900);
    font-size: 14px;
    font-weight: 600;
    line-height: 21px;
    white-space: nowrap;
}

.agent-tab--active {
    background: var(--color-primary-50);
}

.agent-tab--active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 2px;
    right: 2px;
    height: 2px;
    background: var(--color-primary-900);
    border-radius: 100px 100px 0 0;
}

.agent-tab:hover:not(.agent-tab--active) {
    background: #EFEFFF;
}

.agent-tabs-content {
    background: #fff;
    border-radius: 0 0 6px 6px;
    padding: 28px 0 0 0;
}

.agent-tab-panel--hidden {
    display: none;
}

.agent-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 16px;
}

.agent-toolbar__filters {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agent-dropdown {
    position: relative;
}

.agent-dropdown__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 8px 8px 12px;
    background: #fff;
    border: none;
    outline: 1px solid var(--color-neutral-200);
    border-radius: 6px;
    cursor: pointer;
}

.agent-dropdown__label {
    color: var(--color-neutral-700);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    white-space: nowrap;
}

.agent-dropdown__chevron {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.agent-dropdown--open .agent-dropdown__chevron {
    transform: rotate(180deg);
}

.agent-dropdown__menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 100%;
    background: #fff;
    border: 1px solid var(--color-neutral-200);
    border-radius: 6px;
    padding: 4px 0;
    margin: 0;
    list-style: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 100;
}

.agent-dropdown--open .agent-dropdown__menu {
    display: block;
}

.agent-dropdown__menu li a {
    display: block;
    padding: 8px 16px;
    color: var(--color-neutral-700);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.agent-dropdown__menu li a:hover {
    background: var(--color-secondary-0);
}

.agent-listing-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 1px 3px 0 rgba(166, 175, 195, 0.40);
    margin-bottom: 2px;
}

.agent-listing-card__image-placeholder {
    width: 138px;
    height: 102px;
    border-radius: 12px;
    flex-shrink: 0;
    background: var(--color-secondary-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.agent-listing-card__image-placeholder-logo {
    width: 80px;
    opacity: 0.35;
}

.agent-listing-card__image {
    width: 138px;
    height: 102px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.agent-listing-card__body {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}

.agent-listing-card__meta {
    font-size: 16px;
    line-height: 24px;
}

.agent-listing-card__id {
    color: var(--color-neutral-400);
    font-weight: 500;
}

.agent-listing-card__location {
    color: var(--color-neutral-700);
    font-weight: 600;
}

.agent-listing-card__price {
    color: var(--color-neutral-700);
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
}

.agent-listing-card__stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agent-listing-card__stat {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--color-neutral-400);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.agent-listing-card__stat-icon {
    width: 24px;
    height: 24px;
}

.agent-badge {
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    white-space: nowrap;
}

.agent-badge--success {
    background: var(--color-emerald-100);
    color: var(--color-emerald-800);
}

.agent-badge--in-progress {
    background: #FEF9D2;
    color: #9C6800;
}

.agent-badge--draft {
    background: var(--color-neutral-100);
    color: var(--color-neutral-400);
}

.agent-listing-card__actions {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}

.agent-listing-card__more {
    width: 24px;
    height: 24px;
}

.agent-listing-card-background {
    background: #fff;
    max-height: 60vh;
    overflow-y: auto;
}

.agent-cart-with-section-header {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(166, 175, 195, 0.40);
}

.agent-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: var(--color-secondary-0);
}

.agent-section-header__title {
    color: var(--color-neutral-700);
    font-size: 24px;
    font-weight: 700;
}

.agent-section-header__action {
    height: 20px;
    padding: 3px 0;
    color: var(--color-primary-700);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.agent-section-header__action:hover {
    background: #F0F0FF;
    color: var(--color-primary-700);
}

.agent-section-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agent-section-header__refresh {
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.agent-section-header__refresh:hover {
    opacity: 1;
}

.agent-loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 0;
}

.agent-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--color-neutral-200);
    border-top-color: var(--color-primary-700);
    border-radius: 50%;
    animation: agent-spin 0.7s linear infinite;
}

@keyframes agent-spin {
    to {
        transform: rotate(360deg);
    }
}

.agent--section-body {
    padding: 12px 20px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 20vh;
    overflow-y: auto;
}

.agent-task-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    border-radius: 8px;
}

.agent-task-item__avatar {
    cursor: pointer;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--color-secondary-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-neutral-500);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.agent-task-item__body {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.agent-task-item__name {
    color: var(--color-neutral-500);
    font-size: 16px;
    font-family: Manrope, sans-serif;
    font-weight: 600;
    line-height: 24px;
}

.agent-task-item__desc {
    color: var(--color-neutral-400);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agent-task-item__time {
    color: var(--color-neutral-400);
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
}

.agent-task-item__chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    align-self: center;
}

.agent-row--narrow {
    margin-left: -8px;
    margin-right: -8px;
}

.agent-row--narrow > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

.agent-right-body-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.agent-notify-item {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 64px;
    padding: 8px 0;
    border-radius: 8px;
}

.agent-notify-item__icon-img {
    width: 40px;
    height: 40px;
}

.agent-notify-item__body {
    flex: 1 1 0;
    overflow: hidden;
}

.agent-notify-item__text {
    color: var(--color-neutral-500);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.agent-task-item__chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.agent-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    border-radius: 8px;
}

.agent-contact-item__avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--color-secondary-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-neutral-500);
    font-size: 16px;
    font-weight: 600;
}

.agent-contact-item__body {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.agent-contact-item__name {
    color: var(--color-neutral-500);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.agent-contact-item__sub,
.agent-contact-item__time {
    color: var(--color-neutral-400);
    font-size: 14px;
    font-weight: 500;
}

.agent-contact-item__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    align-self: center;
}

.agent-contact-item__action-btn {
    width: 40px;
    height: 40px;
}

.agent-contact-item__action-btn:hover {
    background: #E8E8FF;
}

.agent-separator {
    width: 100%;
    height: 1px;
    background: var(--color-neutral-200);
}

.floating-tutorial {
    width: 364px;
    background: var(--color-secondary-0);
    border-radius: 12px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
    display: inline-flex;
    padding: 16px;
    border: 1px solid var(--color-neutral-250);
    line-height: 1.2;
}

.floating-tutorial__header {
    width: 100%;
    background: var(--color-secondary-20);
    justify-content: space-between;
    align-items: center;
    display: inline-flex;
    padding-bottom: 24px;
}

.floating-tutorial__header-title {
    color: var(--color-neutral-600);
    font-size: 24px;
    font-weight: 700;
}

.floating-tutorial__header-close {
    width: 44px;
    height: 44px;
    position: relative;
    cursor: pointer;
}

.floating-tutorial__header-close-icon {
    width: 32px;
    height: 32px;
    left: 6px;
    top: 6px;
    position: absolute;
}

.floating-tutorial__input-wrap {
    width: 100%;
    padding-left: 8px;
    padding-right: 4px;
    background: var(--color-primary-20);
    overflow: hidden;
    border-radius: 6px;
    outline: 1px solid var(--color-primary-400);
    outline-offset: -1px;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    display: inline-flex;
    margin-bottom: 24px;
}

.floating-tutorial__input-field {
    flex: 1 1 0;
    height: 40px;
    padding-right: 12px;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    display: flex;
}

.floating-tutorial__input-placeholder {
    flex: 1 1 0;
    color: var(--color-neutral-400);
    font-size: 14px;
    font-weight: 500;
    word-wrap: break-word;
}

.floating-tutorial__input-icon-wrap {
    padding: 8px;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    display: flex;
}

.floating-tutorial__section-header {
    align-self: stretch;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    display: inline-flex;
}

.floating-tutorial__section-title {
    color: var(--color-neutral-900);
    font-size: 20px;
    font-weight: 700;
    word-wrap: break-word;
    margin-bottom: 16px;
}

.floating-tutorial__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.floating-tutorial__item {
    align-self: stretch;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    outline: 1px solid var(--color-neutral-250);
    outline-offset: -1px;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    display: flex;
    cursor: pointer;
}

.floating-tutorial__item-icon {
    width: 24px;
    height: 24px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
}

.floating-tutorial__item-content {
    flex: 1 1 0;
    height: 44px;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
    display: flex;
}

.floating-tutorial__item-row {
    flex: 1 1 0;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
    display: flex;
}

.floating-tutorial__item-label {
    flex: 1 1 0;
    overflow: hidden;
    color: var(--color-neutral-600);
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    word-wrap: break-word;
}

.floating-tutorial__item-arrow img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.floating-tutorial__empty {
    display: none;
    padding: 20px;
    text-align: center;
    color: var(--color-neutral-400);
    font-size: 13px;
}

#lpToastHr, #lpToastEn, #lpToastDe, #lpToastIt, #lpToastSl,
#lpToastErrorHr, #lpToastErrorEn, #lpToastErrorDe, #lpToastErrorIt, #lpToastErrorSl {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    background: #fff;
    color: #1a1a1a;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 280px;
    max-width: 360px;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

#lpToastHr .lp-toast__title, #lpToastEn .lp-toast__title, #lpToastDe .lp-toast__title, #lpToastIt .lp-toast__title, #lpToastSl .lp-toast__title,
.lp-toast--error .lp-toast__title {
    margin: 0;
    font-weight: 600;
    font-size: 15px;
}

#lpToastHr .lp-toast__subtitle, #lpToastEn .lp-toast__subtitle, #lpToastDe .lp-toast__subtitle, #lpToastIt .lp-toast__subtitle, #lpToastSl .lp-toast__subtitle,
.lp-toast--error .lp-toast__subtitle {
    margin: 4px 0 0;
    font-size: 13px;
    color: #666;
}

.lp-toast--error {
    border-left: 4px solid #e74c3c;
}

.lp-toast--error .lp-toast__title {
    color: #e74c3c;
}
