/* Dashboard layout - modern, fluid, CSS variables */
:root {
    --dashboard-nav-width: 238px;
    --dashboard-nav-width-compact: 80px;
    --dashboard-transition-duration: 0.3s;
    --dashboard-header-height: 60px;
    --dashboard-nav-bg: #323537;
    --dashboard-header-bg: #2595D2;
    --dashboard-toolbar-bg: #ededed;
}

.dashboard {
    display: flex;
    min-height: 100vh;
}

.dashboard-app {
    display: flex;
    flex-direction: column;
    flex-grow: 2;
    margin-top: var(--dashboard-header-height);
}

.dashboard-content {
    flex-grow: 2;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.dashboard-nav {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--dashboard-nav-bg);
    width: var(--dashboard-nav-width);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -ms-overflow-style: none;
    scrollbar-width: none;
    z-index: 1050;
    transition: width var(--dashboard-transition-duration) ease, box-shadow var(--dashboard-transition-duration) ease;
}

    .dashboard-nav::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .dashboard-nav::-webkit-scrollbar-track,
    .dashboard-nav::-webkit-scrollbar-thumb,
    .dashboard-nav::-webkit-scrollbar-button {
        display: none;
    }

.dashboard-compact .dashboard-nav {
    width: var(--dashboard-nav-width-compact);
    overflow: hidden;
}

.dashboard-nav header {
    min-height: var(--dashboard-header-height);
    padding: 8px 27px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--dashboard-header-bg);
}

    .dashboard-nav header .menu-toggle {
        display: none;
        margin-right: auto;
    }

.dashboard-nav a {
    color: #fff;
    text-decoration: none;
}

    .dashboard-nav a:hover {
        text-decoration: none;
    }

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-open,
.logo-closed {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
}

/* Expanded menu: show full logo only; compact logo hidden by default */
.logo-closed {
    display: none;
}

    .logo-open img,
    .logo-closed img,
    .logo-open svg,
    .logo-closed svg {
        height: 100%;
        width: auto;
    }

.brand-logo:focus,
.brand-logo:active,
.brand-logo:hover {
    color: #dbdbdb;
    text-decoration: none;
}

.dashboard-nav-list {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.dashboard-nav-footer {
    margin-top: auto;
    flex-shrink: 0;
}

.dashboard-nav-item {
    min-height: 32px;
    padding-left: 0.5rem;
    display: flex;
    align-items: center;
    letter-spacing: 0.02em;
    transition: ease-out 0.5s;
    cursor: pointer;
}

    .dashboard-nav-item:hover {
        background: rgba(255, 255, 255, 0.04);
    }

    .dashboard-nav-item.active,
    .dashboard-nav-dropdown-item.active,
    .dashboard-nav-dropdown-toggle.active {
        color: #323537;
        font-weight: bold;
        border-left: none;
        position: relative;
        background: transparent;
    }

        .dashboard-nav-item.active::before,
        .dashboard-nav-dropdown-item.active::before,
        .dashboard-nav-dropdown-toggle.active::before {
            content: "";
            position: absolute;
            left: 5px;
            top: 50%;
            transform: translateY(-50%);
            height: 22px;
            width: calc(100% - 13px);
            background-color: rgba(221, 225, 232, 0.7);
            border-radius: 4px;
            z-index: -1;
        }

        .dashboard-nav-dropdown-item.active::before {
            left: 13px;
            width: calc(100% - 21px);
        }

.dashboard-compact .dashboard-nav-item.active,
.dashboard-compact .dashboard-nav-dropdown-toggle.active {
    color: #323537;
}

    /* Active background behind the icon in compact mode */
    .dashboard-compact .dashboard-nav-item.active::before,
    .dashboard-compact .dashboard-nav-dropdown-toggle.active::before {
        width: 50px;
        height: 40px;
        left: 50%;
        transform: translate(-50%, -50%);
        border-radius: 4px;
    }

.dashboard-nav-item.active .menu-icon,
.dashboard-nav-dropdown-toggle.active .menu-icon {
    filter: brightness(0.2);
}

html.page-loaded .dashboard-compact .dashboard-nav:hover .dashboard-nav-item.active .menu-icon,
html.page-loaded .dashboard-compact .dashboard-nav:hover .dashboard-nav-dropdown-item.active .menu-icon,
html.page-loaded .dashboard-compact .dashboard-nav:hover .dashboard-nav-dropdown-toggle.active .menu-icon {
    filter: brightness(0.2);
}

.dashboard-nav-item.active .menu-text,
.dashboard-nav-dropdown-item.active .menu-text,
.dashboard-nav-dropdown-toggle.active .menu-text {
    position: relative;
    z-index: 1;
}

.dashboard-nav-dropdown {
    display: flex;
    flex-direction: column;
}

    .dashboard-nav-dropdown.show > .dashboard-nav-dropdown-menu {
        display: flex;
    }

    .dashboard-nav-dropdown.show > .dashboard-nav-dropdown-toggle:after {
        background-image: url('/images/svg/arrow_down.svg');
        width: 10px;
        height: 10px;
        background-size: contain;
    }

.dashboard-nav-dropdown-toggle {
    position: relative;
    cursor: pointer;
}

    .dashboard-nav-dropdown-toggle:after {
        content: "";
        position: absolute;
        right: 10px;
        display: inline-block;
        width: 10px;
        height: 10px;
        background-image: url('/images/svg/arrow_left.svg');
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        border: none;
        filter: brightness(0.5) invert(0.5);
    }

    .dashboard-nav-dropdown-toggle.active::after {
        filter: brightness(0);
    }

.dashboard-nav-dropdown-menu {
    display: none;
    flex-direction: column;
    overflow: hidden;
    transition: opacity var(--dashboard-transition-duration) ease;
}

.dashboard-nav-dropdown-item {
    min-height: 20px;
    max-height: 20px;
    line-height: 11px;
    padding-left: 1rem;
    display: flex;
    align-items: center;
    transition: ease-out 0.5s;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
    position: relative;
}

    .dashboard-nav-dropdown-item:hover {
        background: rgba(255, 255, 255, 0.09);
    }

    .dashboard-nav-dropdown-item.menu_separator {
        min-height: 20px;
        max-height: 20px;
        padding-left: 1.35rem;
        font-weight: 600;
        color: #ffffff;
        background-color: #4a4d50;
        border-radius: 3px;
        margin: 1px 8px;
        cursor: default;
    }

        .dashboard-nav-dropdown-item.menu_separator:hover {
            background-color: #4a4d50;
        }

.menu-toggle {
    position: relative;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #323537;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}

    .menu-toggle img {
        width: 24px;
        height: 24px;
    }

    .menu-toggle:hover,
    .menu-toggle:active,
    .menu-toggle:focus {
        text-decoration: none;
        color: var(--dashboard-nav-bg);
    }

.dashboard-toolbar .menu-toggle {
    display: flex;
}

.dashboard-toolbar {
    min-height: var(--dashboard-header-height);
    background-color: var(--dashboard-toolbar-bg);
    display: flex;
    align-items: center;
    padding: 8px 27px;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1200;
}

.nav-item-divider {
    height: 1px;
    margin: 1rem auto;
    overflow: hidden;
    background-color: #aaaeb3;
    width: 95%;
}

.nav_lang {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 0.5rem;
    flex-wrap: wrap;
}

.nav_lang_flag {
    display: flex;
    padding: 2px;
}

    .nav_lang_flag img {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        object-fit: cover;
    }

.nav_tenant_info {
    padding: 0.25rem 1rem;
    color: #9ba8b7;
    font-size: 0.75rem;
}

.nav_about {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    color: #fff;
    text-decoration: none;
    min-height: 32px;
}

    .nav_about:hover {
        text-decoration: none;
        color: #dbdbdb;
    }

.nav_about_icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.nav_app_info {
    padding: 0.5rem 1rem 1rem;
    text-align: center;
}

.nav_app_info_logo {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.nav_app_info_logo_img {
    width: 110px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.nav_app_info_copyright {
    color: #aaaeb3;
    font-size: 11px;
}

.breadcrumb-container {
    display: flex;
    align-items: center;
    margin-left: 15px;
    flex-grow: 1;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
    background-color: transparent;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: #515151;
    font-size: 12px;
    white-space: nowrap;
}

    .breadcrumb-item a {
        color: #323537;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .breadcrumb-item a:hover {
            color: #323537;
            text-decoration: underline;
        }

    .breadcrumb-item.active {
        color: #515151;
    }

    .breadcrumb-item + .breadcrumb-item {
        padding-left: 8px;
    }

        .breadcrumb-item + .breadcrumb-item::before {
            display: inline-block;
            padding-right: 8px;
            color: #6c757d;
            content: ">";
        }

    .breadcrumb-item:empty {
        display: none;
    }

.header_user_info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    white-space: nowrap;
}

.dashboard_toolbar_actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 18px;
    min-width: 0;
    max-width: 100%;
}

.dashboard_toolbar_hidden_widgets {
    display: none;
    flex-wrap: wrap;
    align-content: center;
    gap: 2px 6px;
    flex: 1 1 auto;
    min-height: 0;
    margin-left: 4px;
    max-width: min(1100px, calc(100vw - 340px));
    max-height: none;
    overflow: visible;
}

.dashboard_toolbar_hidden_widgets_visible {
    display: flex;
}

.dashboard_toolbar_hidden_widget {
    border: 1px solid #1f83b8;
    background: #2595D2;
    color: #ffffff;
    border-radius: 10px;
    padding: 0 8px;
    font-size: 10px;
    line-height: 13px;
    white-space: nowrap;
    cursor: grab;
    user-select: none;
}

    .dashboard_toolbar_hidden_widget:active {
        cursor: grabbing;
    }

.dashboard_toolbar_action {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #4c545b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

    .dashboard_toolbar_action:hover {
        background: transparent;
    }

    .dashboard_toolbar_action img {
        width: 22px;
        height: 22px;
    }

.employee_name {
    font-size: 1rem;
    color: #515151;
}

.user_dropdown {
    position: relative;
}

.user_link {
    display: flex;
    align-items: center;
    cursor: pointer;
}

    .user_link img,
    .user_avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
        border: 1px solid #909192;
    }

.rounded-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid #909192;
}

.user_dropdown_menu {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    list-style: none;
    padding: 10px 0;
    min-width: 150px;
    z-index: 999999;
}

    .user_dropdown_menu.show {
        display: block;
    }

    .user_dropdown_menu li {
        padding: 8px 15px;
    }

        .user_dropdown_menu li a {
            color: #333;
            text-decoration: none;
            display: block;
        }

            .user_dropdown_menu li a:hover {
                background: #f5f5f5;
            }

.menu-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
    transition: width var(--dashboard-transition-duration), height var(--dashboard-transition-duration), margin var(--dashboard-transition-duration);
}

.dashboard-nav-dropdown-item .menu-icon {
    width: 18px;
    height: 18px;
}

.menu-text {
    font-size: 14px;
    font-weight: 400;
}

.menu-icon-selected {
    display: none;
}

.dashboard-nav-item.active .menu-icon-selected,
.dashboard-nav-dropdown-toggle.active .menu-icon-selected,
.dashboard-nav-dropdown-item.active .menu-icon-selected {
    display: inline-block;
}

.dashboard-nav-item.active .menu-icon-unselected,
.dashboard-nav-dropdown-toggle.active .menu-icon-unselected,
.dashboard-nav-dropdown-item.active .menu-icon-unselected {
    display: none;
}

.dashboard-compact .logo-open {
    display: none;
}

.dashboard-compact .logo-closed {
    display: block;
}

html.page-loaded .dashboard-compact .dashboard-nav:hover .logo-open {
    display: block;
}

html.page-loaded .dashboard-compact .dashboard-nav:hover .logo-closed {
    display: none;
}

.dashboard-compact .menu-icon {
    width: 28px;
    height: 28px;
    margin: 8px auto;
    transition: width var(--dashboard-transition-duration), height var(--dashboard-transition-duration), margin var(--dashboard-transition-duration);
}

html.page-loaded .dashboard-compact .dashboard-nav:hover .menu-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    margin-left: 0;
}

/* Compact mode hover expand */
@media (min-width: 1280px) {
    .dashboard-app {
        margin-left: var(--dashboard-nav-width);
    }

    .dashboard-compact .dashboard-app {
        margin-left: var(--dashboard-nav-width-compact);
    }

    .dashboard-toolbar {
        left: var(--dashboard-nav-width);
    }

    .dashboard-compact .dashboard-toolbar {
        left: var(--dashboard-nav-width-compact);
    }

    .dashboard-compact .dashboard-nav {
        width: var(--dashboard-nav-width-compact);
        overflow: hidden;
        z-index: 1500;
    }

    html.page-loaded .dashboard-compact .dashboard-nav:hover {
        width: var(--dashboard-nav-width);
        box-shadow: 4px 0 10px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
        position: fixed;
    }

        html.page-loaded .dashboard-compact .dashboard-nav:hover .dashboard-nav-item span {
            display: inline-block;
        }

        html.page-loaded .dashboard-compact .dashboard-nav:hover .dashboard-nav-dropdown-toggle::after {
            display: inline-block;
        }

        html.page-loaded .dashboard-compact .dashboard-nav:hover .dashboard-nav-dropdown.show > .dashboard-nav-dropdown-menu {
            display: flex;
        }

        html.page-loaded .dashboard-compact .dashboard-nav:hover .dashboard-nav-dropdown.show {
            background: rgba(255, 255, 255, 0.04);
        }

        /* Restore active background to expanded bar shape on compact hover */
        html.page-loaded .dashboard-compact .dashboard-nav:hover .dashboard-nav-item.active::before,
        html.page-loaded .dashboard-compact .dashboard-nav:hover .dashboard-nav-dropdown-toggle.active::before {
            width: calc(100% - 16px);
            height: 28px;
            left: 8px;
            transform: translateY(-50%);
            border-radius: 4px;
        }

        html.page-loaded .dashboard-compact .dashboard-nav:hover .dashboard-nav-dropdown-item.active::before {
            left: 16px;
            width: calc(100% - 24px);
        }

        html.page-loaded .dashboard-compact .dashboard-nav:hover .dashboard-nav-item {
            text-align: left;
            justify-content: flex-start;
            padding-left: 0.5rem;
        }

        html.page-loaded .dashboard-compact .dashboard-nav:hover .menu-icon {
            margin-right: 10px;
            margin-left: 0;
        }

        html.page-loaded .dashboard-compact .dashboard-nav:hover .nav-item-divider,
        html.page-loaded .dashboard-compact .dashboard-nav:hover .nav_app_info {
            display: block;
        }

        html.page-loaded .dashboard-compact .dashboard-nav:hover .nav_lang {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
        }

        html.page-loaded .dashboard-compact .dashboard-nav:hover .nav_about {
            justify-content: flex-start;
            padding-left: 1rem;
        }

        html.page-loaded .dashboard-compact .dashboard-nav:hover .nav_about_text {
            display: inline;
        }

    .dashboard-compact .dashboard-nav-item {
        text-align: center;
        justify-content: center;
        padding-left: 0;
    }

        .dashboard-compact .dashboard-nav-item span {
            display: none;
        }

    /* When compressed: only parents visible; sub-menus always hidden (override .show) */
    .dashboard-compact .dashboard-nav-dropdown-menu,
    .dashboard-compact .dashboard-nav-dropdown.show > .dashboard-nav-dropdown-menu {
        display: none;
    }

    .dashboard-compact .dashboard-nav-dropdown-toggle::after {
        display: none;
    }

    .dashboard-compact .nav-item-divider,
    .dashboard-compact .nav_lang,
    .dashboard-compact .nav_app_info {
        display: none;
    }

    /* Acerca: compact = icon only; centered like other nav items */
    .dashboard-compact .nav_about {
        justify-content: center;
        padding-left: 0;
    }

    .dashboard-compact .nav_about_text {
        display: none;
    }
}

@media (max-width: 1279px) {
    .dashboard-nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        z-index: 1070;
    }

        .dashboard-nav.mobile-show {
            display: flex;
            flex-direction: column;
            z-index: 1500;
        }

        .dashboard-nav header .menu-toggle {
            display: flex;
        }
}

@media (max-width: 768px) {
    .dashboard-content {
        padding: 15px 10px;
    }

    .breadcrumb-container {
        display: none;
    }

    .filter-container {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        align-items: end;
    }

        .filter-container .filter-item,
        .filter-container .filter-item_short,
        .filter-container .filter-item_period {
            min-width: 0;
            max-width: none;
            width: 100%;
            flex: 1 1 auto;
        }

        .filter-container .filter-item_period {
            grid-column: 1 / -1;
        }

        .filter-container .filter-select,
        .filter-container .filter-input {
            width: 100%;
        }

    .page-actions .portal-botao {
        min-width: 32px;
        height: 32px;
        padding: 6px;
        gap: 0;
        justify-content: center;
        font-size: 0;
        line-height: 0;
    }

        .page-actions .portal-botao img {
            width: 14px;
            height: 14px;
        }
}

/* Page structure (from REGRAS) */
.page-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
    min-width: 0;
}

.page-header {
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ededed;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.page-title-text {
    font-size: 24px;
    font-weight: 600;
    color: #323537;
}

.page-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}


.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 10px;
    align-items: flex-end;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    width: 100%;
}

.filter-item {
    display: flex;
    flex-direction: column;
    min-width: 10%;
    max-width: 30%;
}

    .filter-item label {
        margin-bottom: 5px;
        font-weight: 500;
    }

/* =========================================================
   Shared filter rules (reusable across pages)
   Use these classes in any page with filters:
   - filter-item_short
   - filter-item_period
   - dashboard_date_range
   ========================================================= */


.filter-container .filter-item_short {
    min-width: 150px;
    max-width: 200px;
}

.filter-container .filter-item_period {
    min-width: 285px;
    max-width: 350px;
    flex: 0 0 300px;
}

.filter-container .dashboard_date_range {
    width: 100%;
}


.schedule_report_filters .schedule_report_filter_item_short {
    min-width: 150px;
    max-width: 170px;
}

.schedule_report_filters .schedule_report_filter_item_period {
    min-width: 285px;
    max-width: 350px;
    flex: 0 0 300px;
}

.schedule_report_filters {
    margin-bottom: 14px;
}

.portal-botao {
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    background-color: #323537;
    color: #fff;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 13px !important;
    font-weight: 500;
    height: 30px;
    padding: 0 18px !important;
    box-sizing: border-box;
}

    .portal-botao:hover {
        background-color: #242729;
    }

    .portal-botao img {
        width: 15px;
        height: 15px;
        filter: brightness(0) invert(1);
    }

.form-label {
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

.employee_data_col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

    .employee_data_col .form-row {
        display: flex;
        flex-wrap: wrap;
        gap: 16px 24px;
        margin-bottom: 16px;
        align-items: flex-end;
    }

    .employee_data_col .form-group {
        display: flex;
        flex-direction: column;
        min-width: 120px;
        flex: 1;
        max-width: 280px;
    }

        .employee_data_col .form-group:empty {
            max-width: none;
            flex: 0 0 0;
        }

    .employee_data_col .form-control {
        padding: 6px 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 14px;
        width: 100%;
    }

    .employee_data_col .separator {
        margin: 24px 0 12px;
        border-top: 1px solid #e0e0e0;
        padding-top: 12px;
    }

    .employee_data_col .label-separator {
        font-weight: 600;
        font-size: 16px;
        color: #323537;
    }

.employee-photo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-label_check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
}

    .form-label_check input[type="checkbox"] {
        width: auto;
    }

.form-radio_group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

    .form-radio_group label {
        display: flex;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        font-weight: 400;
    }

.form-check_list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

    .form-check_list .form-label_check {
        display: flex;
        align-items: center;
        gap: 6px;
        cursor: pointer;
    }

.form-message {
    padding: 16px;
    color: #666;
    border-radius: 4px;
}

.form-message_success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message_error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* List selector actions (select all, clear) */
.list-selector_actions {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

/* Multi-select list control */
.form-control_list {
    min-height: 180px;
    max-width: none;
}

/* Add/Edit form tabs (separadores) */
.addedit_tabs {
    margin-top: 12px;
}

.addedit_tab_nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0;
    padding: 0;
    list-style: none;
}

.addedit_tab_btn {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    color: #666;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    margin-bottom: -1px;
}

    .addedit_tab_btn:hover {
        color: #323537;
        background: #eee;
    }

.addedit_tab_btn_active {
    color: #2595D2;
    background: #fff;
    border-color: #e0e0e0;
    border-bottom: 1px solid #fff;
}

.addedit_tab_content {
    padding: 20px 0 0;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    background: #fff;
}

.addedit_tab_panel {
    display: none;
    padding: 0 20px 20px;
}

.addedit_tab_panel_visible {
    display: block;
}


.portal-grid_wrapper {
    width: 100%;
    overflow-x: auto;
}

    /* DevExpress DxGrid inside portal wrapper - optional overrides to align with portal-grid look */
    .portal-grid_wrapper.dx-grid-override .portal-grid_btn {
        padding: 4px;
        border: none;
        background: transparent;
        cursor: pointer;
    }

    /* Syncfusion SfGrid - hide internal header_table id text that appears when theme loads late (e.g. after refresh) */
    .portal-grid_wrapper.syncfusion-grid-override .e-grid .e-gridheader caption,
    .portal-grid_wrapper.syncfusion-grid-override .e-grid .e-columnheader .e-label:empty,
    .portal-grid_wrapper.syncfusion-grid-override .e-grid [id$="_header_table"] + .e-label,
    .portal-grid_wrapper.syncfusion-grid-override .e-grid .e-headercelldiv .e-label[id$="_header_table"] {
        display: none !important;
        font-size: 0 !important;
        line-height: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
    }

    /* Syncfusion SfGrid inside portal wrapper - match portal-grid visual and app font */
    .portal-grid_wrapper.syncfusion-grid-override .e-grid,
    .portal-grid_wrapper.syncfusion-grid-override .e-grid .e-headercell,
    .portal-grid_wrapper.syncfusion-grid-override .e-grid .e-rowcell,
    .portal-grid_wrapper.syncfusion-grid-override .e-grid .e-pager,
    .portal-grid_wrapper.syncfusion-grid-override .e-grid .e-input {
        font-family: 'Montserrat', sans-serif;
    }
    /* Grid separator lines: thinnest possible (0.5px), override theme */
    .portal-grid_wrapper.syncfusion-grid-override .e-grid {
        font-size: 11px;
        border: 0.5px solid #e0e0e0 !important;
    }

        .portal-grid_wrapper.syncfusion-grid-override .e-grid .e-gridheader,
        .portal-grid_wrapper.syncfusion-grid-override .e-grid .e-gridheader .e-headercell {
            border-width: 0.5px !important;
            border-color: #e0e0e0 !important;
        }

        .portal-grid_wrapper.syncfusion-grid-override .e-grid .e-gridheader {
            background-color: #f5f5f5;
            border-bottom: 0.5px solid #e0e0e0 !important;
        }

        .portal-grid_wrapper.syncfusion-grid-override .e-grid .e-headercell {
            background-color: #f5f5f5;
            font-weight: bold;
            padding: 10px 12px;
            border: none !important;
            border-right: 0.5px solid #e0e0e0 !important;
            border-bottom: 0.5px solid #e0e0e0 !important;
        }

        .portal-grid_wrapper.syncfusion-grid-override .e-grid .e-headercelldiv {
            font-size: 11px;
            color: inherit;
        }

        .portal-grid_wrapper.syncfusion-grid-override .e-grid .e-rowcell {
            padding: 10px 12px;
            border: none !important;
            border-bottom: 0.5px solid #e0e0e0 !important;
            border-right: 0.5px solid #e0e0e0 !important;
        }

        .portal-grid_wrapper.syncfusion-grid-override .e-grid .e-row:hover .e-rowcell {
            background-color: #fafafa;
        }

        .portal-grid_wrapper.syncfusion-grid-override .e-grid .e-pager {
            padding: 12px;
            border-top: 0.5px solid #e0e0e0 !important;
            background: #fff;
        }

        .portal-grid_wrapper.syncfusion-grid-override .e-grid .e-toolbar {
            background: #fff !important;
            border: none !important;
            box-shadow: none !important;
            padding: 0 !important;
        }

            .portal-grid_wrapper.syncfusion-grid-override .e-grid .e-toolbar .e-toolbar-items {
                justify-content: flex-start;
            }

    .portal-grid_wrapper.syncfusion-grid-override .portal-grid_btn {
        padding: 4px;
        border: none;
        background: transparent;
        cursor: pointer;
    }

.portal-grid {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    table-layout: fixed;
}

.portal-grid_th,
.portal-grid_td {
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}

.portal-grid_th {
    font-weight: bold;
    background-color: #f5f5f5;
}

.portal-grid_th_sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    padding-right: 20px;
    position: relative;
}

    .portal-grid_th_sortable:hover {
        background-color: #ebebeb;
    }

    .portal-grid_th_sortable::after {
        content: "";
        position: absolute;
        right: 6px;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0.35;
        border: 4px solid transparent;
        border-top-color: currentColor;
        border-bottom: none;
        margin-top: -2px;
    }

.portal-grid_th_sort_asc::after {
    opacity: 1;
    border-bottom-color: currentColor;
    border-top: none;
    margin-top: 2px;
}

.portal-grid_th_sort_desc::after {
    opacity: 1;
    margin-top: -2px;
}

.portal-grid_sort_link {
    color: inherit;
    text-decoration: none;
}

    .portal-grid_sort_link:hover {
        text-decoration: underline;
    }

.portal-grid_th_center,
.portal-grid_td_center {
    text-align: center;
}

.portal-grid_tr:hover {
    background-color: #fafafa;
}

.portal-grid_empty {
    text-align: center;
    color: #666;
    padding: 24px;
}

.portal-grid-imagem {
    width: 24px;
    height: 24px;
    object-fit: contain;
    vertical-align: middle;
}

.portal-grid-imagem_thumb {
    width: 40px;
    height: 40px;
}

.portal-grid_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

    .portal-grid_btn:hover {
        opacity: 0.8;
    }

    .portal-grid_btn img {
        display: block;
    }

.grid-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
}

.grid-pager_left {
    font-size: 14px;
    color: #515151;
}

.grid-pager_center {
    display: flex;
    align-items: center;
    gap: 8px;
}

.grid-pager_btn {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
}

    .grid-pager_btn:hover:not(:disabled) {
        background: #f0f0f0;
    }

    .grid-pager_btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

a.grid-pager_btn {
    text-decoration: none;
    color: inherit;
}

.grid-pager_btn_disabled {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f5f5f5;
    font-size: 14px;
    opacity: 0.6;
    cursor: default;
}

.grid-pager_size_form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.grid-pager_page {
    padding: 6px 12px;
    font-weight: 600;
}

.grid-pager_right {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .grid-pager_right label {
        font-size: 14px;
        margin: 0;
    }

.grid-pager_select {
    min-width: 60px;
}

.portal-modal_backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1040;
}

.portal-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    min-width: 320px;
}

.portal-modal_actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    justify-content: flex-end;
}

.portal-botao_secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ccc;
}

    .portal-botao_secondary:hover {
        background: #e8e8e8;
        border-color: #999;
    }

.client_delete_dialog .portal-modal_actions .e-btn.portal-botao_secondary:first-child,
.client_delete_dialog .portal-modal_actions .portal-botao.portal-botao_secondary:first-child {
    background: #2595D2 !important;
    color: #fff !important;
    border: 1px solid #2595D2 !important;
}

    .client_delete_dialog .portal-modal_actions .e-btn.portal-botao_secondary:first-child:hover,
    .client_delete_dialog .portal-modal_actions .e-btn.portal-botao_secondary:first-child:focus,
    .client_delete_dialog .portal-modal_actions .e-btn.portal-botao_secondary:first-child:active,
    .client_delete_dialog .portal-modal_actions .portal-botao.portal-botao_secondary:first-child:hover,
    .client_delete_dialog .portal-modal_actions .portal-botao.portal-botao_secondary:first-child:focus,
    .client_delete_dialog .portal-modal_actions .portal-botao.portal-botao_secondary:first-child:active {
        background: #1f88bf !important;
        color: #fff !important;
        border-color: #1f88bf !important;
    }

.client_delete_dialog .portal-modal_actions .e-btn.portal-botao_secondary:last-child,
.client_delete_dialog .portal-modal_actions .portal-botao.portal-botao_secondary:last-child {
    background: #f5f5f5 !important;
    color: #333 !important;
    border: 1px solid #ccc !important;
}

    .client_delete_dialog .portal-modal_actions .e-btn.portal-botao_secondary:last-child:hover,
    .client_delete_dialog .portal-modal_actions .e-btn.portal-botao_secondary:last-child:focus,
    .client_delete_dialog .portal-modal_actions .e-btn.portal-botao_secondary:last-child:active,
    .client_delete_dialog .portal-modal_actions .portal-botao.portal-botao_secondary:last-child:hover,
    .client_delete_dialog .portal-modal_actions .portal-botao.portal-botao_secondary:last-child:focus,
    .client_delete_dialog .portal-modal_actions .portal-botao.portal-botao_secondary:last-child:active {
        background: #ececec !important;
        color: #333 !important;
        border-color: #bdbdbd !important;
    }

.client_import_dialog .portal-modal_actions .e-btn.portal-botao:not(.portal-botao_secondary) {
    background: #2595D2 !important;
    color: #fff !important;
    border: 1px solid #2595D2 !important;
}

    .client_import_dialog .portal-modal_actions .e-btn.portal-botao:not(.portal-botao_secondary):hover,
    .client_import_dialog .portal-modal_actions .e-btn.portal-botao:not(.portal-botao_secondary):focus,
    .client_import_dialog .portal-modal_actions .e-btn.portal-botao:not(.portal-botao_secondary):active {
        background: #1f88bf !important;
        color: #fff !important;
        border-color: #1f88bf !important;
    }

.client_import_dialog .portal-modal_actions .e-btn.portal-botao.portal-botao_secondary {
    background: #f5f5f5 !important;
    color: #333 !important;
    border: 1px solid #ccc !important;
}

    .client_import_dialog .portal-modal_actions .e-btn.portal-botao.portal-botao_secondary:hover,
    .client_import_dialog .portal-modal_actions .e-btn.portal-botao.portal-botao_secondary:focus,
    .client_import_dialog .portal-modal_actions .e-btn.portal-botao.portal-botao_secondary:active {
        background: #ececec !important;
        color: #333 !important;
        border-color: #bdbdbd !important;
    }

    .portal-botao_secondary img {
        filter: none;
    }

.portal-botao_danger {
    background-color: #dc3545;
    color: #fff;
}

    .portal-botao_danger:hover {
        background-color: #c82333;
    }

.portal-botao_success {
    background-color: #5cb85c;
    color: #fff;
    border: 1px solid transparent;
}

    .portal-botao_success:hover {
        background-color: #449d44;
    }

.portal-botao_warning {
    background-color: #f0ad4e;
    color: #fff;
    border: 1px solid transparent;
}

    .portal-botao_warning:hover {
        background-color: #ec971f;
    }

.portal-botao_info {
    background-color: #5bc0de;
    color: #fff;
    border: 1px solid transparent;
}

    .portal-botao_info:hover {
        background-color: #31b0d5;
    }

/* Report Toolbar */
.report-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.report-toolbar_left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.report-toolbar_right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* .report-toolbar_right .portal-botao inherits from .portal-botao */

.report-total {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

/* Report grid full height */
.report-grid-fullheight {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

    .report-grid-fullheight .e-grid {
        flex: 1;
        min-height: 0;
    }

/* Report placeholder */
.report-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 200px;
    background-color: #f9f9f9;
    border: 1px dashed #ccc;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
}

/* Permissions Tree */
.permissions-tree {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    background-color: #fafafa;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    align-content: flex-start;
}

.tree-node {
    margin-bottom: 0;
    min-width: 280px;
    flex: 1 1 320px;
}

.tree-node_parent {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background-color: #e9ecef;
    border-radius: 6px;
    font-weight: 600;
}

    .tree-node_parent input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
    }

.tree-node_label {
    cursor: pointer;
    user-select: none;
}

.tree-node_children {
    margin-left: 30px;
    margin-top: 5px;
    border-left: 2px solid #ddd;
    padding-left: 15px;
}

.tree-node_child {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 4px;
}

    .tree-node_child:hover {
        background-color: #f0f0f0;
    }

    .tree-node_child input[type="checkbox"] {
        width: 16px;
        height: 16px;
        cursor: pointer;
    }

        .tree-node_child input[type="checkbox"]:disabled {
            cursor: not-allowed;
            opacity: 0.6;
        }

    .tree-node_child .text-muted {
        color: #999;
    }

/* Large Modal for Import */
.portal-modal_large {
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.portal-modal_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
}

    .portal-modal_header h3 {
        margin: 0;
        font-size: 18px;
        color: #333;
    }

.portal-modal_close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
}

    .portal-modal_close:hover {
        color: #333;
    }

.portal-modal_body {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.import-preview-grid {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.import-summary {
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 15px;
}

    .import-summary p {
        margin: 0;
        font-size: 14px;
        color: #666;
    }

.form-help {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.form-error {
    color: #dc3545;
}

.form-success {
    color: #28a745;
}

.form-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.form-readonly-list {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 0.88em;
    color: #495057;
    line-height: 1.8;
}

/* Tabs Styles */
.tabs-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    flex-wrap: wrap;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.tab-button {
    padding: 12px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

    .tab-button:hover {
        background-color: #e8e8e8;
        color: #333;
    }

    .tab-button.active {
        background-color: #fff;
        color: #323537;
        border-bottom-color: #323537;
        font-weight: 500;
    }

.tabs-content {
    padding: 20px;
}

.tab-panel h3 {
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
    font-size: 18px;
}

.tab-panel h4 {
    margin: 20px 0 15px 0;
    color: #666;
    font-size: 15px;
}

/* Password Strength Indicators */
.strength-unacceptable {
    color: #dc3545;
}

.strength-weak {
    color: #fd7e14;
}

.strength-acceptable {
    color: #ffc107;
}

.strength-strong {
    color: #28a745;
}

.strength-safe {
    color: #20c997;
}

/* Configuration Page Styles */
.config-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.config-column {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

    .config-column h4 {
        margin: 20px 0 15px 0;
        color: #333;
        font-size: 15px;
        border-bottom: 1px solid #eee;
        padding-bottom: 8px;
    }

.fieldset-section {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.fieldset-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 16px;
    color: #333;
}

/* Configuration Form Styles */
.tab-panel .form-group {
    margin-bottom: 20px;
}

    .tab-panel .form-group label {
        display: block;
        margin-bottom: 6px;
        color: #555;
        font-weight: 500;
    }

.tab-panel .form-group_checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

    .tab-panel .form-group_checkbox input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin: 0;
        cursor: pointer;
        accent-color: #323537;
    }

    .tab-panel .form-group_checkbox label {
        display: inline;
        margin-bottom: 0;
        cursor: pointer;
        font-weight: normal;
    }

.tab-panel .form-control {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

    .tab-panel .form-control:focus {
        outline: none;
        border-color: #323537;
        box-shadow: 0 0 0 2px rgba(50, 53, 55, 0.1);
    }

.tab-panel select.form-control {
    background-color: #fff;
}

.config-column .form-group {
    margin-bottom: 18px;
}

/* Template info button and panel */
.btn-info-template {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 8px;
    border: 1px solid #323537;
    border-radius: 50%;
    background-color: #323537;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    font-style: italic;
    cursor: pointer;
    vertical-align: middle;
}

    .btn-info-template:hover {
        background-color: #4a4d50;
    }

.template-info-panel {
    margin-top: 10px;
    margin-bottom: 15px;
    padding: 12px 16px;
    background-color: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 4px;
    font-size: 13px;
}

    .template-info-panel ul {
        margin: 8px 0 0 0;
        padding-left: 20px;
    }

    .template-info-panel li {
        margin-bottom: 4px;
    }

    .template-info-panel code {
        background-color: #fff;
        padding: 1px 5px;
        border-radius: 3px;
        font-family: 'Courier New', monospace;
        font-size: 12px;
    }

/* Image upload container */
.image-upload-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.image-preview {
    position: relative;
    display: inline-block;
}

.btn-delete-image {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    padding: 4px;
    border: none;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

    .btn-delete-image:hover {
        background-color: #fee;
    }

/* Success/error text colors */
.text-success {
    color: #28a745;
}

.text-danger {
    color: #dc3545;
}

/* Sub-tabs for template selection */
.sub-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.sub-tab-button {
    padding: 8px 16px;
    border: none;
    background-color: transparent;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

    .sub-tab-button:hover {
        color: #323537;
        background-color: #f5f5f5;
    }

    .sub-tab-button.active {
        color: #323537;
        border-bottom-color: #323537;
        font-weight: 600;
    }

/* ============================================
   DASHBOARD WIDGETS GRID LAYOUT
   ============================================ */

/* Dashboard Grid - 3 columns layout for proper spanning */
.dashboard-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
    margin-top: 15px;
}

/* 2 columns on medium screens */
@media (max-width: 1600px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* 1 column on smaller screens */
@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Dashboard Widget Card - subtle border */
.dashboard-widget {
    background: #ffffff;
    border: 1px solid #e6eaee;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    box-shadow: none;
    transition: box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}

    .dashboard-widget:hover {
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
        border-color: #d7dee6;
    }

    .dashboard-widget.dragging {
        opacity: 0.7;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        transform: scale(1.01);
        z-index: 1000;
    }

    .dashboard-widget.minimized {
        min-height: auto;
    }

/* Widget column spans */
.widget-width-1 {
    grid-column: span 1;
}

.widget-width-2 {
    grid-column: span 2;
}

.widget-width-3 {
    grid-column: span 3;
}

/* Widget row spans */
.widget-height-2 {
    grid-row: span 2;
    min-height: 580px;
}

/* Responsive adjustments for column spans */
@media (max-width: 1600px) {
    .widget-width-3 {
        grid-column: span 2;
    }
}

@media (max-width: 900px) {
    .widget-width-2,
    .widget-width-3 {
        grid-column: span 1;
    }
}

/* Widget header - qtrack blue color */
.dashboard-widget .widget-header {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    background: #ffffff;
    border-bottom: 5px solid #edf0f3;
    cursor: grab;
    user-select: none;
    min-height: 28px;
    border-radius: 10px 10px 0 0;
}

    .dashboard-widget .widget-header:active {
        cursor: grabbing;
    }

.dashboard-widget .widget-title {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    color: #6e7a86;
    text-transform: none;
    letter-spacing: 0.2px;
}

.dashboard-widget .widget-actions {
    display: flex;
    gap: 4px;
}

.dashboard-widget .widget-btn {
    background: transparent;
    border: none;
    padding: 0 3px;
    cursor: pointer;
    border-radius: 0;
    font-size: 12px;
    font-weight: 700;
    color: #9aa3ac;
    transition: all 0.2s ease;
    line-height: 1;
}

    .dashboard-widget .widget-btn:hover {
        background: transparent;
        color: #6e7a86;
    }

.dashboard-widget .widget-btn-close:hover {
    background: transparent;
    color: #6e7a86;
}

/* Widget content */
.dashboard-widget .widget-content {
    flex: 1;
    padding: 12px;
    overflow: auto;
    min-height: 200px;
    background: #fff;
    border-radius: 0 0 10px 10px;
}

/* Dashboard filters */
.dashboard-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    padding: 4px 0 0 0;
    border-bottom: none;
    margin-bottom: 0;
}

.dashboard_page_container {
    margin-bottom: 0;
    min-width: 0;
    overflow-x: hidden;
}

.dashboard_top_row {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 6px;
    margin-bottom: 6px;
}

    .dashboard_top_row .dashboard-filters {
        flex: 1;
        margin-bottom: 0;
    }

.dashboard_top_datetime {
    width: 280px;
    min-width: 280px;
    border: 1px solid #d8dce0;
    border-radius: 4px;
    background: #ffffff;
    align-self: stretch;
    display: flex;
}

    .dashboard_top_datetime .dashboard_datetime_widget {
        align-items: center;
        justify-content: center;
        min-height: 100%;
        height: 100%;
        width: 100%;
        padding: 4px 10px;
    }

    .dashboard_top_datetime .dashboard_datetime_date {
        font-size: 11px;
        text-transform: uppercase;
    }

    .dashboard_top_datetime .dashboard_datetime_time {
        font-size: 34px;
    }

.dashboard-filters .filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .dashboard-filters .filter-group.filter-period {
        min-width: 285px;
        max-width: 330px;
    }

    .dashboard-filters .filter-group label {
        font-weight: 600;
        font-size: 1rem;
        color: #333;
    }

.dashboard-filters .filter-checkbox {
    align-self: center;
    padding-top: 14px;
    margin-bottom: -33px;
}

.dashboard-filters .filter-actions {
    align-self: flex-end;
}

/* Preferences button */
.preferences-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    margin-left: 15px;
    padding: 4px 8px;
    border-radius: 4px;
}

    .preferences-btn:hover {
        background: rgba(0, 0, 0, 0.1);
    }

.dashboard_legend_icon {
    height: 20px;
    vertical-align: middle;
}

.dashboard_legend_button_icon {
    height: 27px;
    margin-bottom: 8px;
    vertical-align: middle;
}

.dashboard_update_icon {
    height: 14px;
    margin-right: 5px;
}

.dashboard_trash_zone {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 4px 0;
    padding: 8px 12px;
    border: 1px dashed #bfc6cc;
    border-radius: 6px;
    color: #5e656b;
    background: #f8f9fa;
}

.dashboard_trash_zone_active {
    border-color: #dc3545;
    background: #fff0f1;
    color: #a8202d;
}

.dashboard-grid-stack {
    margin-top: 6px;
    overflow-x: hidden;
}

    .dashboard-grid-stack .grid-stack-item-content {
        border-radius: 8px;
        overflow: hidden;
        background: transparent;
    }

    .dashboard-grid-stack .dashboard-widget {
        min-height: 100%;
        height: 100%;
    }

.dashboard_datetime_widget {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 6px;
}

.dashboard_datetime_date {
    font-size: 14px;
    color: #495057;
}

.dashboard_datetime_time {
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
    color: #323537;
}

.dashboard-filters .dxbl-edit,
.dashboard-filters .dxbl-date-edit,
.dashboard-filters .dxbl-dropdown,
.dashboard-filters .dxbl-list-box,
.dashboard-filters .dxbl-btn {
    font-size: 16px !important;
    min-height: 34px;
}

.dashboard-filters .dxbl-input,
.dashboard-filters .dxbl-edit-input {
    font-size: 16px !important;
}

.dashboard-filters .e-btn,
.dashboard-filters .e-checkbox-wrapper {
    font-size: 16px;
    min-height: 34px;
}

.dashboard-filters .dashboard_date_range.e-control.e-daterangepicker {
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
}

.schedule_report_filters .dashboard_date_range {
    width: 100%;
}

@media (max-width: 900px) {
    .dashboard_page_container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .dashboard_top_row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding-bottom: 8px;
    }

    .dashboard_top_datetime {
        order: -1;
        width: 100%;
        min-width: 0;
    }

    .dashboard-filters {
        order: 1;
        gap: 8px;
        align-items: stretch;
    }

        .dashboard-filters .filter-group {
            width: 100%;
            min-width: 0;
        }

            .dashboard-filters .filter-group.filter-period {
                min-width: 0;
            }

        .dashboard-filters .dashboard_date_range.e-control.e-daterangepicker {
            width: 100%;
            min-width: 0;
        }

        .dashboard-filters .e-btn,
        .dashboard-filters .e-checkbox-wrapper {
            width: 100%;
        }

        .dashboard-filters .filter-checkbox {
            align-self: stretch;
            flex: 0 0 100%;
            width: 100%;
            padding-top: 0;
            margin-bottom: 0;
        }

        .dashboard-filters .filter-actions {
            align-self: center;
            width: auto;
            margin-left: 0;
        }

            .dashboard-filters .filter-actions .e-btn {
                justify-content: center;
            }

    .dashboard-widget .widget-header {
        min-height: 36px;
        padding: 8px 10px;
    }

    .dashboard-widget .widget-title {
        font-size: 14px;
    }

    .dashboard-widget .widget-content {
        padding: 10px;
    }

    /* Estado Geral de Atendimento: reduce text/icon scale on mobile */
    #widget1 .stats-header-inline {
        font-size: 10px;
        padding: 5px 6px;
    }

    #widget1 .stats-icon-inline img {
        height: 42px;
    }

    #widget1 .stats-body-inline {
        padding: 6px 8px;
    }

    #widget1 .stats-row-inline {
        font-size: 11px;
        padding: 2px 0;
    }

    #widget1 .dashboard-stats-inline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .waiting-location-text {
        max-width: 70px;
    }
}

/* Stats cards inside widget */
.dashboard-stats-inline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.stats-card-inline {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.stats-header-inline {
    background: #f6f7f9;
    color: #3a4147;
    padding: 6px 8px;
    font-weight: 600;
    font-size: 12px;
    text-align: center;
    text-transform: uppercase;
    border-bottom: 1px solid #e4e7eb;
}

.stats-icon-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    background: transparent;
    border-bottom: 1px solid #edf0f3;
}

    .stats-icon-inline img {
        height: 60px;
        width: auto;
        object-fit: contain;
    }

.stats-body-inline {
    padding: 8px 10px;
    flex: 1;
}

.stats-row-inline {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
    border-bottom: 1px solid #f5f5f5;
}

    .stats-row-inline:last-child {
        border-bottom: none;
    }

    .stats-row-inline span {
        color: #666;
    }

.waiting-location-text {
    display: inline-block;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
}

.stats-row-inline strong {
    color: #333;
}

/* Placeholder widget */
.placeholder-widget {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    color: #888;
    font-style: italic;
    background: #fafafa;
    border-radius: 8px;
}

/* ============================================
   DASHBOARD PREFERENCES PANEL
   ============================================ */

.preferences-panel {
    padding: 10px 0;
}

.preferences-hint {
    color: #666;
    font-size: 13px;
    margin-bottom: 15px;
}

.preferences-list {
    max-height: 400px;
    overflow-y: auto;
}

.preference-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin-bottom: 6px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

    .preference-item:hover {
        background: #e9ecef;
    }

.preference-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

    .preference-checkbox input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: #2595D2;
        cursor: pointer;
    }

    .preference-checkbox label {
        cursor: pointer;
        font-size: 13px;
        color: #333;
        font-weight: 500;
    }

.preference-size {
    flex-shrink: 0;
}

    .preference-size select {
        padding: 5px 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 12px;
        background: #fff;
        cursor: pointer;
        min-width: 100px;
    }

        .preference-size select:focus {
            outline: none;
            border-color: #2595D2;
        }

/* ============================================
   WIDGET RESIZE HANDLE
   ============================================ */

/* Resize handle in bottom-right corner */
.dashboard-widget .resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    cursor: se-resize;
    background: linear-gradient(135deg, transparent 50%, #2595D2 50%);
    border-radius: 0 0 7px 0;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.dashboard-widget:hover .resize-handle {
    opacity: 0.8;
}

.dashboard-widget .resize-handle:hover {
    opacity: 1;
}

/* Widget state during resize */
.dashboard-widget.resizing {
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(37, 149, 210, 0.3);
    border-color: #2595D2;
}

/* Ensure widget has relative positioning for resize handle */
.dashboard-widget {
    position: relative;
}

/* Smooth transition for grid changes */
.dashboard-grid {
    transition: none;
}

.dashboard-widget {
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

/* =====================================================
   Report page styles
   ===================================================== */

/* Service tree dropdown */
.service-tree_dropdown {
    position: relative;
    width: 100%;
}

.service-tree_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    min-height: 34px;
    font-size: 14px;
}

    .service-tree_header:hover {
        border-color: #999;
    }

.service-tree_arrow {
    font-size: 10px;
    color: #666;
}

.service-tree_panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 280px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.service-tree_item {
    padding: 4px 12px;
}

    .service-tree_item label {
        cursor: pointer;
        font-size: 13px;
    }

.service-tree_child {
    padding-left: 32px;
}

/* Report summary bar */
.report-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 20px;
    background: #f4f6f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 16px;
}

.report-summary_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.report-summary_label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-summary_value {
    font-size: 20px;
    font-weight: 600;
    color: #323537;
}

/* Report container */
.report-container {
    margin-top: 16px;
    overflow: hidden;
}

/* DevExpress Report Viewer wrapper - full width */
.report-viewer_wrapper {
    min-height: 700px;
}

    .report-viewer_wrapper .dx-reportviewer {
        width: 100%;
        height: 700px;
    }

/* =============================================
   DevExpress Report Viewer color overrides
   --dxbrv-primary-color: controls loading, progress bar, focus, bricks
   .dxbrv-tabs: sidebar tab strip (purple -> gray #323537)
   ============================================= */

/* Override primary color: purple -> qtrack blue (loading, progress, focus) */
.qtrack-report-viewer {
    --dxbrv-primary-color: #2595D2;
}

    /* Loading indicator - override on the element itself */
    .qtrack-report-viewer .dxbl-wait-indicator {
        --dxbl-wait-indicator-color: #2595D2 !important;
    }

    .qtrack-report-viewer .dxbl-loading-panel-message {
        --dxbl-loading-panel-message-color: #2595D2 !important;
    }

    /* Loading animation dots (report viewer specific) */
    .qtrack-report-viewer .dxv-blazor-loading-animation div:after {
        background: #2595D2 !important;
    }

    /* Native checkboxes inside report viewer: accent-color overrides purple */
    .qtrack-report-viewer input[type="checkbox"],
    .qtrack-report-viewer input[type="radio"] {
        accent-color: #2595D2;
    }

    /* DevExpress Blazor checkboxes (if used elsewhere) */
    .qtrack-report-viewer .dxbl-checkbox {
        --dxbl-checkbox-check-element-checked-bg: #2595D2 !important;
        --dxbl-checkbox-check-element-checked-hover-bg: #1d7aab !important;
        --dxbl-checkbox-checked-focus-shadow-color: rgba(37, 149, 210, 0.5) !important;
        --dxbl-checkbox-unchecked-focus-shadow-color: rgba(37, 149, 210, 0.5) !important;
    }

        .qtrack-report-viewer .dxbl-checkbox.dxbl-checkbox-checked .dxbl-checkbox-check-element {
            background-color: #2595D2 !important;
        }

    /* Sidebar tab strip: purple -> gray (same as portal-botao #323537) */
    .qtrack-report-viewer .dxbrv-tabs {
        background-color: #323537 !important;
    }

        /* Active tab on gray sidebar: slightly darker */
        .qtrack-report-viewer .dxbrv-tabs .dxbrv-active-tab {
            background: rgba(0, 0, 0, 0.3) !important;
        }

        /* Tab icon hover */
        .qtrack-report-viewer .dxbrv-tabs .dxbrv-tab-icon:hover {
            background: rgba(0, 0, 0, 0.15);
        }

/* Hidden file input inside upload button */
.portal-file_hidden {
    display: none;
}

/* Legacy ListTemplates layout classes migrated from WebQtrack.css */
.princ_col {
    width: 100%;
}

    .princ_col .one_col {
        width: 100%;
    }

    .princ_col li {
        list-style: none;
        float: left;
        margin-right: 8px;
    }

        .princ_col li.name {
            min-width: 110px;
            padding-top: 8px;
        }

.pagebgTitle {
    color: #616161;
    font-size: 16px;
    font-weight: 500;
}

.top_filter {
    width: 100%;
    margin-top: 10px;
}

.PanelDevicesFormat tr {
    float: none;
}

.PanelDevicesFormat .OnePanelTemplate {
    border: 0;
}

.PanelDevicesFormat .TemplateEdite {
    background-color: #e6e6e6 !important;
    border-top: 1px solid #616161 !important;
    border-right: 1px solid #616161 !important;
    width: 55.5px !important;
}

.PanelDevicesFormat .TemplateName {
    width: 97.5%;
    font-weight: bold;
    color: white !important;
    background-color: #616161 !important;
    border-bottom: 1px solid #ccc !important;
}

.PanelDevicesFormat .TemplateImageDefault img,
.PanelDevicesFormat .TemplateImageDefault input {
    max-width: 244px;
    max-height: 137px;
    height: auto !important;
    width: auto !important;
}

.ComponetUpload .IconUpload {
    padding: 5px 10px 5px 10px;
    float: left;
    z-index: 10;
}

.upload-btn-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

    .upload-btn-wrapper button {
        padding: 5px 8px 5px 8px;
        text-align: center;
        cursor: pointer;
        border: 1px solid #c4c4c4;
        font-weight: 300;
        font-size: 14px;
        border-radius: 3px !important;
        color: black;
        background: linear-gradient(to bottom, rgba(235, 235, 235, 1) 0%, rgba(205, 205, 205, 1) 100%);
        box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.35);
    }

    .upload-btn-wrapper input[type=file] {
        font-size: 20px !important;
        position: absolute;
        left: 0;
        top: 0;
        margin-left: -41px;
        opacity: 0;
    }

        .upload-btn-wrapper input[type=file]:hover {
            cursor: pointer;
        }

/* Warning message */
.form-message_warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    padding: 10px 16px;
    border-radius: 4px;
    margin-bottom: 12px;
}

/* ===== Template List - Modern Card Grid ===== */
.template_toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 16px;
    gap: 12px;
}

.template_upload_btn {
    cursor: pointer;
    gap: 6px;
}

.template_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

@media (max-width: 1200px) {
    .template_grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .template_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .template_grid {
        grid-template-columns: 1fr;
    }
}

.template_card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

    .template_card:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }

.template_card_image_link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f0f2f5;
    overflow: hidden;
    position: relative;
}

.template_card_image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.template_card_placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8ecf1, #f5f7fa);
}

.template_card_placeholder_icon {
    width: 48px;
    height: 48px;
    opacity: 0.35;
}

.canvas_preview_container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.template_card_body {
    padding: 6px 10px 4px 10px;
    flex: 1;
}

.template_card_name {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
}

    .template_card_name:hover {
        color: #3498db;
    }

.template_card_actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    padding: 4px 8px 6px 8px;
    border-top: 1px solid #f0f0f0;
}

.template_card_action_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    padding: 0;
    text-decoration: none;
}

    .template_card_action_btn:hover {
        background-color: #f0f2f5;
    }

.template_card_action_btn_danger:hover {
    background-color: #fdecea;
}

.template_card_action_btn img {
    width: 18px;
    height: 18px;
    display: block;
}

.template_empty {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 15px;
}

/* ===== Device List - Modern Card Grid ===== */
.device_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

@media (max-width: 1200px) {
    .device_grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .device_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .device_grid {
        grid-template-columns: 1fr;
    }
}

.device_card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

    .device_card:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }

.device_card_header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px 8px 14px;
}

.device_card_status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.device_card_status_active {
    background-color: #28a745;
    box-shadow: 0 0 6px rgba(40, 167, 69, 0.4);
}

.device_card_status_inactive {
    background-color: #dc3545;
    box-shadow: 0 0 6px rgba(220, 53, 69, 0.3);
}

.device_card_name {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    line-height: 1.4;
}

    .device_card_name:hover {
        color: #3498db;
    }

.device_card_number {
    font-size: 12px;
    color: #95a5a6;
    font-weight: 500;
    flex-shrink: 0;
}

.device_card_image_link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f0f2f5;
    overflow: hidden;
    position: relative;
}

.device_card_image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.device_card_placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8ecf1, #f5f7fa);
}

.device_card_placeholder_icon {
    width: 48px;
    height: 48px;
    opacity: 0.35;
}

.device_card_info {
    padding: 10px 14px 4px 14px;
    flex: 1;
}

.device_card_meta {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 12px;
    line-height: 1.5;
}

.device_card_meta_template {
    align-items: center;
}

.device_card_meta_label {
    color: #95a5a6;
    flex-shrink: 0;
}

.device_card_meta_value {
    color: #2c3e50;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.device_card_actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    padding: 6px 10px 10px 10px;
    border-top: 1px solid #f0f0f0;
}

.device_card_action_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    padding: 0;
    text-decoration: none;
}

    .device_card_action_btn:hover {
        background-color: #f0f2f5;
    }

.device_card_action_btn_danger:hover {
    background-color: #fdecea;
}

.device_card_action_btn img {
    width: 18px;
    height: 18px;
    display: block;
}

.device_list_export_grid_hidden {
    display: none;
}

.grid_export_actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

.grid_export_icon_btn {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .grid_export_icon_btn img {
        width: 28px;
        height: 28px;
        display: block;
    }

.device_grid_export_actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

.device_grid_export_icon_btn {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .device_grid_export_icon_btn img {
        width: 28px;
        height: 28px;
        display: block;
    }

.device_card_template_select {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    border: 1px solid #dce1e6;
    border-radius: 4px;
    background: #fff;
    color: #2c3e50;
    cursor: pointer;
    transition: border-color 0.15s ease;
    max-width: 100%;
}

.device_card_template_edit_btn {
    width: 28px;
    height: 28px;
    align-self: center;
}

.device_card_template_select:hover {
    border-color: #3498db;
}

.device_card_template_select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.15);
}

.device_general_layout {
    display: grid;
    grid-template-columns: 96px 1fr 320px;
    gap: 20px;
    align-items: start;
}

.device_general_type_image {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20px;
}

.device_general_type_image_img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.device_general_fields .form-group {
    max-width: none;
}

.device_general_preview .form-group {
    max-width: none;
}

.device_printing_layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 12px;
    align-items: start;
}

.device_printing_fields .form-group {
    max-width: none;
}

.device_printing_preview .form-group {
    max-width: none;
}

.device_edit_page .employee_data_col .form-row {
    gap: 10px 18px;
    margin-bottom: 10px;
}

.device_edit_page .tab-panel .form-group {
    margin-bottom: 12px;
}

.device_printing_preview .template_card {
    height: 100%;
}

.device_printing_preview .template_card_image_link {
    aspect-ratio: auto;
    height: min(56vh, 420px);
    align-items: flex-start;
    overflow: auto;
}

.device_ticket_receipt {
    width: 100%;
    min-height: fit-content;
    background: #fff;
    padding: 10px 8px;
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    color: #000;
    box-sizing: border-box;
    overflow: auto;
}

.device_ticket_receipt_upside_down {
    transform: rotate(180deg);
}

.device_ticket_imagetext_block {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}

.device_ticket_image_icon {
    font-size: 28px;
    line-height: 1;
}

.device_ticket_image_label {
    font-size: 10px;
    color: #999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (max-width: 1200px) {
    .device_general_layout {
        grid-template-columns: 72px 1fr;
    }

    .device_general_preview {
        grid-column: 2;
    }

    .device_printing_layout {
        grid-template-columns: 1fr;
    }

    .device_printing_preview .template_card_image_link {
        height: min(50vh, 360px);
    }
}

@media (max-width: 900px) {
    .device_edit_page .tabs-content {
        padding: 14px;
    }

    .device_edit_page .tabs-header {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .device_edit_page .tab-button {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 10px 14px;
    }

    .device_edit_page .sub-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .device_edit_page .sub-tab-button {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .device_edit_page .device_general_layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .device_edit_page .device_general_type_image {
        justify-content: flex-start;
        padding-top: 0;
    }

    .device_edit_page .device_general_type_image_img {
        width: 48px;
        height: 48px;
    }

    .device_edit_page .device_general_preview {
        grid-column: auto;
    }

    .device_edit_page .device_printing_layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .device_edit_page .device_printing_preview .template_card_image_link {
        height: min(46vh, 320px);
    }

    .device_edit_page .employee_data_col .form-row {
        gap: 12px;
        margin-bottom: 12px;
    }

    .device_edit_page .employee_data_col .form-group {
        min-width: 100%;
        max-width: none;
    }
}

/* ═══════════════════════════════════════════════════
   Survey Dashboard
   ═══════════════════════════════════════════════════ */

.survey_radio_group {
    display: flex;
    gap: 16px;
    align-items: center;
}

.survey_radio_label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #2c3e50;
    cursor: pointer;
    white-space: nowrap;
}

    .survey_radio_label input[type="radio"] {
        accent-color: #3498db;
        margin: 0;
    }

.survey_summary {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    padding: 10px 16px;
    background: #f0f8ff;
    border: 1px solid #d6eaf8;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #2c3e50;
}

.survey_summary_item {
    font-weight: 500;
}

.survey_chart_container {
    background: #fff;
    border: 1px solid #e8edf1;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    min-height: 400px;
}

.survey_chart_title {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.survey_loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    font-size: 0;
    color: transparent;
    position: relative;
}

    .survey_loading::before {
        content: "";
        width: 40px;
        height: 40px;
        border: 4px solid #e0e0e0;
        border-top: 4px solid #0097da;
        border-radius: 50%;
        animation: ticket_spin 0.8s linear infinite;
    }

    .survey_loading::after {
        content: "";
        position: absolute;
        width: min(560px, 80%);
        height: 80px;
        bottom: 34px;
        border-radius: 10px;
        background: linear-gradient(90deg, #edf0f2 25%, #f8f9fa 40%, #edf0f2 65%);
        background-size: 200% 100%;
        animation: loading_skeleton_band 1.3s linear infinite;
    }

@media (max-width: 768px) {
    .survey_dashboard_page .filter-container {
        grid-template-columns: 1fr;
    }

        .survey_dashboard_page .filter-container .filter-item,
        .survey_dashboard_page .filter-container .filter-item_short,
        .survey_dashboard_page .filter-container .filter-item_period {
            grid-column: auto;
        }

    .survey_dashboard_page .survey_radio_group {
        flex-wrap: wrap;
        gap: 8px 14px;
        align-items: flex-start;
    }

    .survey_dashboard_page .survey_radio_label {
        white-space: normal;
    }

    .survey_dashboard_page .survey_chart_container {
        padding: 10px;
        overflow-x: auto;
    }

    .survey_dashboard_page .survey_chart_title {
        font-size: 13px;
        line-height: 1.25;
    }

    .survey_inquiry_page .filter-container {
        grid-template-columns: 1fr;
    }

        .survey_inquiry_page .filter-container .filter-item {
            min-width: 0;
            max-width: none;
            width: 100%;
        }

    .survey_mobile_page .filter-container {
        grid-template-columns: 1fr;
    }

        .survey_mobile_page .filter-container .filter-item,
        .survey_mobile_page .filter-container .filter-item_short,
        .survey_mobile_page .filter-container .filter-item_period {
            min-width: 0;
            max-width: none;
            width: 100%;
            grid-column: auto;
        }

    .survey_mobile_page .portal-grid_wrapper {
        overflow-x: auto;
    }

    .common_mobile_page .filter-container {
        grid-template-columns: 1fr;
    }

        .common_mobile_page .filter-container .filter-item,
        .common_mobile_page .filter-container .filter-item_short,
        .common_mobile_page .filter-container .filter-item_period {
            min-width: 0;
            max-width: none;
            width: 100%;
            grid-column: auto;
        }

    .common_mobile_page .form-row {
        flex-direction: column;
        gap: 12px;
    }

    .common_mobile_page .form-group {
        min-width: 0;
        max-width: none;
        width: 100%;
    }

    .common_mobile_page .config-columns {
        grid-template-columns: 1fr;
    }

    .common_mobile_page .tabs-header {
        overflow-x: auto;
        white-space: nowrap;
    }

    .common_mobile_page .portal-grid_wrapper {
        overflow-x: auto;
    }

    .alert_location_mobile_page .filter-container {
        grid-template-columns: 1fr;
    }

        .alert_location_mobile_page .filter-container .filter-item,
        .alert_location_mobile_page .filter-container .filter-item_short,
        .alert_location_mobile_page .filter-container .filter-item_period {
            min-width: 0;
            max-width: none;
            width: 100%;
            grid-column: auto;
        }

    .alert_location_mobile_page .form-row {
        flex-direction: column;
        gap: 12px;
    }

    .alert_location_mobile_page .form-group {
        min-width: 0;
        max-width: none;
        width: 100%;
    }

    .alert_location_mobile_page .tabs-header {
        overflow-x: auto;
        white-space: nowrap;
    }

    .alert_location_mobile_page .portal-grid_wrapper {
        overflow-x: auto;
    }

    .service_mobile_page .filter-container {
        grid-template-columns: 1fr;
    }

        .service_mobile_page .filter-container .filter-item,
        .service_mobile_page .filter-container .filter-item_short,
        .service_mobile_page .filter-container .filter-item_period {
            min-width: 0;
            max-width: none;
            width: 100%;
            grid-column: auto;
        }

    .service_mobile_page .form-row {
        flex-direction: column;
        gap: 12px;
    }

    .service_mobile_page .form-group {
        min-width: 0;
        max-width: none;
        width: 100%;
    }

    .service_mobile_page .tabs-header {
        overflow-x: auto;
        white-space: nowrap;
    }

    .service_mobile_page .portal-grid_wrapper {
        overflow-x: auto;
    }

    .staff_mobile_page .filter-container {
        grid-template-columns: 1fr;
    }

        .staff_mobile_page .filter-container .filter-item,
        .staff_mobile_page .filter-container .filter-item_short,
        .staff_mobile_page .filter-container .filter-item_period {
            min-width: 0;
            max-width: none;
            width: 100%;
            grid-column: auto;
        }

    .staff_mobile_page .form-row {
        flex-direction: column;
        gap: 12px;
    }

    .staff_mobile_page .form-group {
        min-width: 0;
        max-width: none;
        width: 100%;
    }

    .staff_mobile_page .employee_data_col .form-group:empty {
        display: none;
    }

    .staff_mobile_page .tabs-header {
        overflow-x: auto;
        white-space: nowrap;
    }

    .staff_mobile_page .portal-grid_wrapper {
        overflow-x: auto;
    }

    .user_edit_mobile_page .page-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
    }

    .user_edit_mobile_page .page-title {
        min-width: 0;
        gap: 8px;
    }

    .user_edit_mobile_page .page-title-text {
        font-size: 18px;
    }

    .user_edit_mobile_page .page-actions {
        margin-left: 0;
    }

    .user_edit_mobile_page .tabs-content {
        padding: 12px;
    }

    .user_edit_mobile_page .tabs-header {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .user_edit_mobile_page .tab-button {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 10px 12px;
    }

    .quser_mobile_page .form-section,
    .quser_mobile_page .form-container {
        padding: 12px;
        margin-top: 10px;
    }

    .quser_mobile_page .form-row {
        gap: 10px;
    }

    .quser_mobile_page .form-group {
        min-width: 0;
        max-width: none;
        width: 100%;
    }

    .quser_mobile_page .page-actions {
        width: 100%;
        gap: 8px;
    }

    .quser_mobile_page > .page-header .quser_header_actions {
        width: auto;
        margin-left: auto;
        justify-content: flex-end;
    }

    .quser_mobile_page .form-section-title {
        margin-bottom: 10px;
    }

    .quser_mobile_page .quser_inline_action_btn {
        min-width: 32px;
        height: 32px;
        padding: 6px;
        gap: 0;
        justify-content: center;
        font-size: 0;
        line-height: 0;
    }

        .quser_mobile_page .quser_inline_action_btn img {
            width: 14px;
            height: 14px;
            margin: 0;
        }

    .quser_mobile_page .quser_action_group {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-self: flex-end;
    }

    .quser_mobile_page .quser_action_label_spacer {
        visibility: hidden;
        margin-bottom: 5px;
    }
}

/* ── Inquiry Structure tree styles ── */
.struct_tree_container {
    background: #fff;
    border: 1px solid #e8edf1;
    border-radius: 8px;
    padding: 12px;
    margin-top: 16px;
}

.struct_tree_row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-bottom: 1px solid #f0f2f5;
    transition: background-color 0.15s;
    min-height: 38px;
}

    .struct_tree_row:last-child {
        border-bottom: none;
    }

    .struct_tree_row:hover {
        background-color: #f5f8fc;
    }

.struct_tree_row_inquiry {
    font-weight: 600;
    background-color: #f8fafb;
}

.struct_tree_row_question {
    font-weight: 500;
}

.struct_tree_row_answer {
    font-size: 13px;
    color: #555;
}

.struct_tree_indent {
    flex-shrink: 0;
}

.struct_tree_drag_handle {
    cursor: grab;
    color: #aab4c0;
    font-size: 14px;
    padding: 0 2px;
    user-select: none;
    flex-shrink: 0;
}

    .struct_tree_drag_handle:hover {
        color: #667085;
    }

.struct_tree_type_badge {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 10px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    min-width: 70px;
    text-align: center;
}

.struct_tree_badge_inquiry {
    background-color: #e0edff;
    color: #1a56db;
}

.struct_tree_badge_question {
    background-color: #fef3cd;
    color: #856404;
}

.struct_tree_badge_answer {
    background-color: #d4edda;
    color: #155724;
}

.struct_tree_name {
    font-size: 14px;
    color: #2c3e50;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.struct_tree_order {
    font-size: 12px;
    color: #95a5a6;
    min-width: 30px;
    flex-shrink: 0;
}

.struct_tree_inactive {
    font-size: 11px;
    color: #e74c3c;
    font-style: italic;
    flex-shrink: 0;
}

.struct_tree_dest {
    font-size: 12px;
    color: #7f8c9b;
    flex-shrink: 0;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.struct_tree_actions {
    display: flex;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.15s;
    flex-shrink: 0;
}

.struct_tree_row:hover .struct_tree_actions {
    opacity: 1;
}

/* Inline editing */
.struct_tree_edit_input {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 13px;
    outline: none;
}

    .struct_tree_edit_input:focus {
        border-color: #1a56db;
        box-shadow: 0 0 0 2px rgba(26, 86, 219, 0.15);
    }

.struct_tree_edit_name {
    flex: 1;
    min-width: 150px;
}

.struct_tree_edit_order {
    width: 70px;
    flex-shrink: 0;
}

.struct_tree_edit_dest {
    min-width: 180px;
    max-width: 280px;
}

.struct_tree_page {
    font-size: 11px;
    color: #6c757d;
    background: #f0f2f5;
    padding: 1px 6px;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Drag & drop states */
.struct_tree_row_dragging {
    opacity: 0.4;
    background-color: #e8f0fe !important;
}

.struct_tree_row_drop_target {
    background-color: #dbeafe !important;
    border-top: 2px solid #1a56db;
}

/* ── Form styles for survey pages ── */
.form-container {
    background: #fff;
    border: 1px solid #e8edf1;
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

    .form-group label {
        display: block;
        font-size: 13px;
        font-weight: 500;
        color: #555;
        margin-bottom: 4px;
    }

.form-control {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

    .form-control:focus {
        border-color: #3498db;
        outline: none;
        box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.15);
    }

.checkbox-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    cursor: pointer;
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 16px;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Device vertical list for inquiry edit */
.device_list_vertical {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.device_list_item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

    .device_list_item:hover {
        background-color: #f5f8fa;
    }

.device_list_item_selected {
    background-color: #e8f4fd;
}

    .device_list_item_selected:hover {
        background-color: #d6ecf8;
    }

.device_list_item_check {
    flex-shrink: 0;
}

    .device_list_item_check input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
        accent-color: #323537;
    }

.device_list_item_icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

    .device_list_item_icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.device_list_item_name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.device_tab_badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-left: 6px;
    border-radius: 10px;
    background-color: #323537;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

/* ── Schedule Service Edit styles ── */
.form-section {
    background: #fff;
    border: 1px solid #e8edf1;
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
}

.form-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #323537;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8edf1;
}

.quser_section_toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.quser_section_toggle_icon {
    margin-left: auto;
    flex-shrink: 0;
}

.schedule_type_cards {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.schedule_type_card {
    flex: 1;
    min-width: 180px;
    max-width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px solid #e8edf1;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafbfc;
}

    .schedule_type_card:hover {
        border-color: #3498db;
        background: #f0f7ff;
    }

.schedule_type_card_selected {
    border-color: #1a56db;
    background: #e8f0fe;
    box-shadow: 0 0 0 2px rgba(26, 86, 219, 0.15);
}

.schedule_type_card_icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.schedule_type_card_label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.schedule_multiselect_container {
    border: 1px solid #e8edf1;
    border-radius: 6px;
    overflow: hidden;
}

.schedule_multiselect_header {
    background: #f7f8fa;
    padding: 8px 12px;
    border-bottom: 1px solid #e8edf1;
}

.schedule_multiselect_toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #555;
}

.schedule_multiselect_list {
    max-height: 200px;
    overflow-y: auto;
    padding: 4px 0;
}

.schedule_multiselect_item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: background 0.15s;
}

    .schedule_multiselect_item:hover {
        background: #f0f7ff;
    }

.schedule_multiselect_item_selected {
    background: #e8f0fe;
}

.schedule_weekdays_container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.schedule_weekdays_grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.schedule_weekday_item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #e8edf1;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: all 0.15s;
    background: #fafbfc;
}

    .schedule_weekday_item:hover {
        border-color: #3498db;
        background: #f0f7ff;
    }

.schedule_weekday_item_selected {
    background: #e8f0fe;
    border-color: #1a56db;
    color: #1a56db;
    font-weight: 500;
}

.schedule_checkbox_label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
}

    .schedule_checkbox_label input[type="checkbox"] {
        width: 16px;
        height: 16px;
        accent-color: #1a56db;
    }

.schedule_inactive_container {
    margin-top: 4px;
}

.schedule_inactive_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    .schedule_inactive_table th {
        background: #f7f8fa;
        padding: 8px 12px;
        text-align: left;
        font-weight: 600;
        color: #555;
        border-bottom: 2px solid #e8edf1;
    }

    .schedule_inactive_table td {
        padding: 8px 12px;
        border-bottom: 1px solid #e8edf1;
        vertical-align: middle;
    }

    .schedule_inactive_table tr:hover td {
        background: #f9fafc;
    }

.schedule_inactive_actions {
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   User Schedule Wizard (public page)
   ═══════════════════════════════════════════════════════════════ */

.schedule_user_container {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.schedule_user_logo {
    display: block;
    max-height: 60px;
    margin: 0 auto 10px;
}

.schedule_user_title {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #323537;
    margin-bottom: 24px;
}

/* Language selector */
.schedule_user_lang {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

    .schedule_user_lang button {
        background: none;
        border: 2px solid transparent;
        border-radius: 4px;
        padding: 2px;
        cursor: pointer;
        opacity: 0.6;
        transition: opacity 0.2s, border-color 0.2s;
    }

        .schedule_user_lang button:hover,
        .schedule_user_lang button.active {
            opacity: 1;
            border-color: #323537;
        }

        .schedule_user_lang button img {
            width: 28px;
            height: 20px;
            display: block;
        }

/* Stepper indicator */
.schedule_user_stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
}

.schedule_user_step {
    display: flex;
    align-items: center;
    gap: 0;
}

.schedule_user_step_circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    background: #e0e0e0;
    color: #999;
    transition: all 0.3s;
    flex-shrink: 0;
}

.schedule_user_step_active .schedule_user_step_circle {
    background: #2595D2;
    color: #fff;
}

.schedule_user_step_done .schedule_user_step_circle {
    background: #2595D2;
    color: #fff;
}

.schedule_user_step_line {
    width: 40px;
    height: 3px;
    background: #e0e0e0;
    transition: background 0.3s;
}

.schedule_user_step_done + .schedule_user_step .schedule_user_step_line,
.schedule_user_step_done .schedule_user_step_line {
    background: #2595D2;
}

.schedule_user_step_label {
    display: none;
}

/* Step title */
.schedule_user_step_title {
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #555;
    margin-bottom: 20px;
}

/* Cards grid (locations / services) */
.schedule_user_cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.schedule_user_card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

    .schedule_user_card:hover {
        border-color: #2595D2;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

.schedule_user_card_selected {
    border-color: #2595D2;
    background: #2595D2;
    color: #fff;
}

/* Date picker section */
.schedule_user_date_section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

    .schedule_user_date_section label {
        font-size: 14px;
        font-weight: 500;
        color: #555;
    }

    .schedule_user_date_section input[type="date"] {
        padding: 10px 14px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        font-size: 15px;
        color: #333;
        min-width: 200px;
        text-align: center;
    }

        .schedule_user_date_section input[type="date"]:focus {
            outline: none;
            border-color: #2595D2;
        }

/* Time slots grid */
.schedule_user_slots_title {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-bottom: 12px;
}

.schedule_user_slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-bottom: 24px;
}

.schedule_user_slot {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

    .schedule_user_slot:hover {
        border-color: #2595D2;
    }

.schedule_user_slot_selected {
    border-color: #2595D2;
    background: #2595D2;
    color: #fff;
}

.schedule_user_slot_unavailable {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
    border-color: #eee;
}

.schedule_user_no_slots {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 20px;
}

/* Form (personal details) */
.schedule_user_form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

    .schedule_user_form label {
        font-size: 13px;
        font-weight: 500;
        color: #555;
        margin-bottom: 4px;
        display: block;
    }

    .schedule_user_form input,
    .schedule_user_form textarea {
        width: 100%;
        padding: 10px 12px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        font-size: 14px;
        color: #333;
        box-sizing: border-box;
        transition: border-color 0.2s;
    }

        .schedule_user_form input:focus,
        .schedule_user_form textarea:focus {
            outline: none;
            border-color: #2595D2;
        }

    .schedule_user_form textarea {
        resize: vertical;
        min-height: 80px;
    }

.schedule_user_form_required {
    color: #dc3545;
    margin-left: 2px;
}

.schedule_user_form_error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 2px;
}

/* Confirmation ticket card */
.schedule_user_ticket {
    background: #fff;
    border: 2px solid #2595D2;
    border-radius: 14px;
    padding: 30px 20px;
    text-align: center;
    max-width: 360px;
    margin: 0 auto 24px;
}

.schedule_user_ticket_icon {
    font-size: 40px;
    color: #2595D2;
    margin-bottom: 10px;
}

.schedule_user_ticket_number {
    font-size: 36px;
    font-weight: 700;
    color: #323537;
    margin: 10px 0;
}

.schedule_user_ticket_service {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.schedule_user_ticket_datetime {
    background: #2595D2;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
    font-weight: 600;
    font-size: 14px;
    margin: 12px 0;
}

.schedule_user_ticket_location {
    font-size: 13px;
    color: #999;
    margin-top: 8px;
}

.schedule_user_ticket_msg {
    font-size: 13px;
    color: #555;
    margin-top: 16px;
    line-height: 1.5;
}

/* Summary row */
.schedule_user_summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #555;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

    .schedule_user_summary strong {
        color: #323537;
    }

/* Navigation buttons */
.schedule_user_nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.schedule_user_btn {
    padding: 10px 24px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.schedule_user_btn_primary {
    background: #2595D2;
    color: #fff;
}

    .schedule_user_btn_primary:hover {
        background: #1e7fb5;
    }

    .schedule_user_btn_primary:disabled {
        background: #999;
        cursor: not-allowed;
    }

.schedule_user_btn_secondary {
    background: #e0e0e0;
    color: #333;
}

    .schedule_user_btn_secondary:hover {
        background: #ccc;
    }

.schedule_user_btn_success {
    background: #2595D2;
    color: #fff;
}

    .schedule_user_btn_success:hover {
        background: #1e7fb5;
    }

/* Loading spinner */
.schedule_user_loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    font-size: 0;
    color: transparent;
}

    .schedule_user_loading::before {
        content: "";
        width: 32px;
        height: 32px;
        border: 3px solid #dfe3e7;
        border-top: 3px solid #0097da;
        border-radius: 50%;
        animation: ticket_spin 0.8s linear infinite;
    }

/* Error message */
.schedule_user_error {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px 16px;
    text-align: center;
    font-size: 14px;
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 480px) {
    .schedule_user_container {
        padding: 16px 12px;
    }

    .schedule_user_cards {
        grid-template-columns: 1fr;
    }

    .schedule_user_slots {
        grid-template-columns: repeat(3, 1fr);
    }

    .schedule_user_step_line {
        width: 20px;
    }
}

/* ═══════════════════════════════════════════════
   TICKET STATE - Service state display page
   ═══════════════════════════════════════════════ */

.ticket_state_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    min-height: 100vh;
    background: #f5f7fa;
}

.ticket_state_header {
    text-align: center;
    margin-bottom: 24px;
}

.ticket_state_logo {
    height: 56px;
    margin-bottom: 12px;
}

.ticket_state_title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0097da;
    margin: 0;
}

.ticket_state_filters {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.ticket_state_filter_group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticket_state_filter_label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
}

.ticket_state_filter_select {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.875rem;
    background: #fff;
    color: #495057;
    min-width: 200px;
    cursor: pointer;
    transition: border-color 0.2s;
}

    .ticket_state_filter_select:focus {
        border-color: #0097da;
        outline: none;
        box-shadow: 0 0 0 3px rgba(0, 151, 218, 0.15);
    }

.ticket_state_filter_toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
}

    .ticket_state_filter_toggle input[type="checkbox"] {
        accent-color: #0097da;
        width: 16px;
        height: 16px;
    }

/* Loading */
.ticket_state_loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 0;
}

.ticket_state_spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #0097da;
    border-radius: 50%;
    animation: ticket_spin 0.8s linear infinite;
}

.ticket_state_spinner_small {
    width: 16px;
    height: 16px;
    border-width: 2px;
    display: inline-block;
    vertical-align: middle;
}

.loading_skeleton {
    display: grid;
    gap: 12px;
    width: 100%;
}

.loading_skeleton_row {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #e9ecef;
}

    .loading_skeleton_row::after {
        content: "";
        position: absolute;
        inset: 0;
        transform: translateX(-100%);
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
        animation: loading_skeleton_shimmer 1.2s infinite;
    }

.loading_skeleton_table .loading_skeleton_row {
    height: 42px;
}

.loading_skeleton_cards {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

    .loading_skeleton_cards .loading_skeleton_row {
        height: 120px;
    }

.loading_skeleton_form .loading_skeleton_row {
    height: 36px;
}

@keyframes loading_skeleton_shimmer {
    100% {
        transform: translateX(100%);
    }
}

@keyframes marquee_scroll_rtl {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes marquee_scroll_ltr {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes marquee_scroll_ttb {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100%);
    }
}

@keyframes marquee_scroll_btt {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes ticket_spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ========== RSS Feed Manager Popup ========== */
.rss_manager_overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rss_manager_popup {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    width: 820px;
    max-width: 95vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.rss_manager_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.rss_manager_title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.rss_manager_close {
    background: none;
    border: none;
    font-size: 22px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

    .rss_manager_close:hover {
        color: #c00;
    }

.rss_manager_body {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.rss_manager_left {
    flex: 1;
    padding: 12px;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rss_manager_right {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rss_manager_section_title {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

.rss_manager_tree {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 4px 0;
    min-height: 200px;
    max-height: 320px;
}

.rss_manager_cat_header {
    padding: 5px 8px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .rss_manager_cat_header:hover {
        background: #f0f4f8;
    }

.rss_manager_cat_arrow {
    font-size: 10px;
    width: 14px;
    text-align: center;
    color: #888;
}

.rss_manager_feed_item {
    padding: 3px 8px 3px 26px;
    cursor: pointer;
    user-select: none;
    font-size: 12px;
    color: #444;
    display: flex;
    align-items: center;
}

    .rss_manager_feed_item:hover {
        background: #e8f0fe;
    }

.rss_manager_feed_selected {
    background: #e0edfa;
    font-weight: 600;
}

.rss_manager_selected_list {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    min-height: 200px;
    max-height: 380px;
}

.rss_manager_selected_item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-bottom: 1px solid #f0f0f0;
}

    .rss_manager_selected_item:last-child {
        border-bottom: none;
    }

.rss_manager_drag_handle {
    cursor: grab;
    color: #bbb;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
    padding: 0 2px;
    user-select: none;
}

    .rss_manager_drag_handle:hover {
        color: #666;
    }

.rss_manager_dragging {
    opacity: 0.5;
    background: #f0f4f8;
}

.rss_manager_drag_over {
    border-top: 2px solid #2595D2;
}

.rss_manager_footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 18px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
}

/* ── Multimedia Manager ── */
.multimedia_manager_popup {
    background: #fff;
    border-radius: 10px;
    width: 880px;
    max-width: 95vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    overflow: hidden;
}

.multimedia_manager_body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.multimedia_manager_toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.multimedia_manager_toolbar_right {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.multimedia_upload_btn {
    font-size: 12px;
    padding: 6px 14px;
    cursor: pointer;
    white-space: nowrap;
}

.multimedia_duration_input {
    width: 60px;
    font-size: 12px;
    padding: 4px 6px;
}

.multimedia_animation_select {
    width: 100px;
    font-size: 12px;
    padding: 4px 6px;
}

.multimedia_manager_uploading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #e8f4fd;
    border-radius: 6px;
    font-size: 12px;
    color: #2595D2;
}

.multimedia_manager_list_container {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    min-height: 180px;
}

.multimedia_manager_empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

.multimedia_manager_list_header {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    background: #f5f7fa;
    border-bottom: 1px solid #e0e0e0;
    font-size: 11px;
    font-weight: 600;
    color: #555;
}

.multimedia_manager_list_body {
    max-height: 280px;
    overflow-y: auto;
}

.multimedia_manager_row {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 12px;
}

    .multimedia_manager_row:hover {
        background: #f8fafe;
    }

.multimedia_manager_row_selected {
    background: #e8f0fe;
}

.mm_col_drag {
    width: 24px;
    flex-shrink: 0;
    text-align: center;
}

.mm_col_preview {
    width: 50px;
    flex-shrink: 0;
    text-align: center;
}

.mm_col_name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mm_col_type {
    width: 60px;
    flex-shrink: 0;
    text-align: center;
}

.mm_col_duration {
    width: 80px;
    flex-shrink: 0;
}

.mm_col_animation {
    width: 100px;
    flex-shrink: 0;
}

.mm_col_sound {
    width: 36px;
    flex-shrink: 0;
    text-align: center;
}

.mm_col_actions {
    width: 30px;
    flex-shrink: 0;
    text-align: center;
}

.multimedia_thumb {
    width: 40px;
    height: 28px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #ddd;
}

.multimedia_thumb_video {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 28px;
    background: #333;
    color: #fff;
    border-radius: 3px;
    font-size: 14px;
}

.multimedia_thumb_placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 28px;
    background: #f0f0f0;
    border-radius: 3px;
    color: #ccc;
}

.multimedia_inline_input {
    font-size: 11px;
    padding: 2px 4px;
    height: 26px;
}

.multimedia_delete_btn {
    background: none;
    border: none;
    color: #c00;
    cursor: pointer;
    font-size: 18px;
    padding: 0 4px;
    line-height: 1;
}

    .multimedia_delete_btn:hover {
        color: #900;
    }

.multimedia_preview_panel {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    max-height: 200px;
    background: #1a1a2e;
    border-radius: 6px;
    overflow: hidden;
}

.multimedia_preview_img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.multimedia_preview_video {
    max-width: 100%;
    max-height: 200px;
}

.multimedia_preview_placeholder {
    color: #666;
    font-size: 12px;
    padding: 20px;
}

/* ── HTML Manager ── */
.html_manager_popup {
    background: #fff;
    border-radius: 10px;
    width: 760px;
    height: 520px;
    max-width: 95vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    overflow: hidden;
}

.html_manager_content {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.html_manager_left {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    gap: 8px;
    min-height: 0;
    overflow: hidden;
}

.html_manager_field {
    display: flex;
    align-items: center;
    gap: 8px;
}

.html_manager_field_grow {
    flex: 1;
    align-items: flex-start;
    min-height: 0;
}

.html_manager_label {
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    min-width: 70px;
}

.html_manager_textarea {
    flex: 1;
    min-height: 0;
    height: 100%;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 12px;
    resize: none;
    white-space: pre;
    tab-size: 4;
}

.html_manager_right {
    width: 280px;
    min-width: 280px;
    border-left: 1px solid #e0e0e0;
    overflow-y: auto;
    background: #fff;
}

.html_manager_accordion {
    border-bottom: 1px solid #e8e8e8;
}

.html_manager_accordion_header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #2595d2;
    background: #f0f7fc;
    border-bottom: 1px solid #d4e8f5;
    user-select: none;
}

    .html_manager_accordion_header:hover {
        background: #e4f0f9;
    }

    .html_manager_accordion_header span:first-child {
        font-size: 10px;
    }

.html_manager_accordion_body {
    padding: 6px 0;
    background: #fff;
}

.html_manager_link {
    display: block;
    padding: 4px 16px;
    font-size: 12px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .html_manager_link:hover {
        background: #f0f7fc;
        color: #2595d2;
    }

.html_manager_footer {
    display: flex;
    gap: 8px;
    padding: 12px 18px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.html_manager_preview_overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 10100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.html_manager_preview_window {
    background: #fff;
    border-radius: 10px;
    width: 700px;
    height: 500px;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    overflow: hidden;
}

.html_manager_preview_frame {
    flex: 1;
    overflow: hidden;
}

.html_manager_preview_empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    font-size: 13px;
}

/* Empty state */
.ticket_state_empty {
    text-align: center;
    padding: 60px 20px;
    color: #9ba8b7;
}

    .ticket_state_empty i {
        font-size: 3rem;
        margin-bottom: 12px;
        display: block;
    }

    .ticket_state_empty p {
        font-size: 1rem;
        margin: 0;
    }

/* Card Grid */
.ticket_state_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ticket_state_card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

    .ticket_state_card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    }

.ticket_state_card_badge {
    background: linear-gradient(135deg, #0097da, #0077b6);
    color: #fff;
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    padding: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ticket_state_card_body {
    padding: 16px 20px;
    flex: 1;
}

.ticket_state_card_service {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.3;
}

.ticket_state_card_info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ticket_state_card_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.ticket_state_card_label {
    color: #6c757d;
    font-weight: 500;
}

.ticket_state_card_ticket {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0097da;
    font-family: 'Courier New', monospace;
}

.ticket_state_card_value {
    font-weight: 600;
    color: #2c3e50;
}

.ticket_state_card_waiting {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e67e22;
    background: #fef5e7;
    padding: 2px 10px;
    border-radius: 12px;
}

.ticket_state_card_footer {
    padding: 10px 20px;
    background: #f8f9fa;
    font-size: 0.78rem;
    color: #8e99a4;
    border-top: 1px solid #eee;
}

    .ticket_state_card_footer i {
        margin-right: 4px;
    }

/* Refresh indicator */
.ticket_state_refresh_indicator {
    text-align: center;
    margin-top: 24px;
    color: #adb5bd;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

    .ticket_state_refresh_indicator i {
        animation: ticket_spin 2s linear infinite;
    }

/* TicketState Responsive */
@media (max-width: 992px) {
    .ticket_state_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .ticket_state_grid {
        grid-template-columns: 1fr;
    }

    .ticket_state_container {
        padding: 16px 12px;
    }

    .ticket_state_title {
        font-size: 1.2rem;
    }

    .ticket_state_filters {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .ticket_state_filter_select {
        min-width: unset;
        width: 100%;
    }

    .ticket_state_card_badge {
        font-size: 2rem;
        padding: 12px;
    }

    .ticket_state_card_ticket {
        font-size: 1.3rem;
    }
}


/* ═══════════════════════════════════════════════
   QRCODE TICKET - Digital ticket display page
   ═══════════════════════════════════════════════ */

.qrcode_ticket_container {
    max-width: 480px;
    margin: 0 auto;
    padding: 32px 20px;
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    min-height: 100vh;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qrcode_ticket_loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 0;
    font-size: 0;
    color: transparent;
}

    .qrcode_ticket_loading::before {
        content: "";
        width: 40px;
        height: 40px;
        border: 4px solid #e0e0e0;
        border-top: 4px solid #0097da;
        border-radius: 50%;
        animation: ticket_spin 0.8s linear infinite;
    }

@keyframes loading_skeleton_band {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: 0 0;
    }
}

/* Error state */
.qrcode_ticket_error {
    text-align: center;
    padding: 40px 20px;
}

.qrcode_ticket_error_icon {
    font-size: 4rem;
    color: #e74c3c;
    margin-bottom: 16px;
}

.qrcode_ticket_error h2 {
    font-size: 1.2rem;
    color: #495057;
    margin-bottom: 24px;
    font-weight: 600;
}

/* Digital Ticket Card */
.qrcode_ticket_card {
    width: 100%;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.qrcode_ticket_card_header {
    background: linear-gradient(135deg, #0097da, #0077b6);
    color: #fff;
    padding: 28px 24px;
    text-align: center;
}

.qrcode_ticket_card_header_icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
    opacity: 0.9;
}

.qrcode_ticket_card_header_title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.qrcode_ticket_number_section {
    text-align: center;
    padding: 32px 24px 16px;
}

.qrcode_ticket_number_label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #9ba8b7;
    font-weight: 600;
    margin-bottom: 4px;
}

.qrcode_ticket_number {
    font-size: 4rem;
    font-weight: 800;
    color: #0097da;
    font-family: 'Courier New', monospace;
    letter-spacing: 4px;
    line-height: 1;
}

.qrcode_ticket_details {
    padding: 0 24px 16px;
    text-align: center;
}

.qrcode_ticket_detail_row {
    padding: 4px 0;
}

.qrcode_ticket_detail_value {
    font-size: 0.9rem;
    color: #495057;
}

.qrcode_ticket_date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #9ba8b7;
    font-size: 0.8rem;
    margin-top: 8px;
}

.qrcode_ticket_divider {
    margin: 0 24px;
    border-top: 2px dashed #e0e0e0;
    position: relative;
}

    .qrcode_ticket_divider::before,
    .qrcode_ticket_divider::after {
        content: '';
        position: absolute;
        top: -14px;
        width: 28px;
        height: 28px;
        background: #f5f7fa;
        border-radius: 50%;
    }

    .qrcode_ticket_divider::before {
        left: -38px;
    }

    .qrcode_ticket_divider::after {
        right: -38px;
    }

/* Email Section */
.qrcode_ticket_email_section {
    padding: 24px;
}

.qrcode_ticket_email_label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.qrcode_ticket_email_input_group {
    display: flex;
    gap: 8px;
}

.qrcode_ticket_email_input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

    .qrcode_ticket_email_input:focus {
        border-color: #0097da;
        outline: none;
        box-shadow: 0 0 0 3px rgba(0, 151, 218, 0.15);
    }

    .qrcode_ticket_email_input:disabled {
        background: #f8f9fa;
        cursor: not-allowed;
    }

/* Buttons */
.qrcode_ticket_btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

    .qrcode_ticket_btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.qrcode_ticket_btn_primary {
    background: #0097da;
    color: #fff;
}

    .qrcode_ticket_btn_primary:hover:not(:disabled) {
        background: #0077b6;
    }

.qrcode_ticket_btn_secondary {
    background: #6c757d;
    color: #fff;
}

    .qrcode_ticket_btn_secondary:hover:not(:disabled) {
        background: #5a6268;
    }

.qrcode_ticket_btn_outline {
    background: transparent;
    color: #0097da;
    border: 2px solid #0097da;
}

    .qrcode_ticket_btn_outline:hover:not(:disabled) {
        background: #0097da;
        color: #fff;
    }

/* Email Messages */
.qrcode_ticket_email_message {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

.qrcode_ticket_success {
    background: #d4edda;
    color: #155724;
}

.qrcode_ticket_error_msg {
    background: #f8d7da;
    color: #721c24;
}

/* Actions */
.qrcode_ticket_actions {
    margin-top: 24px;
    text-align: center;
}

/* QRCodeTicket Responsive */
@media (max-width: 520px) {
    .qrcode_ticket_container {
        padding: 16px 12px;
        justify-content: flex-start;
        padding-top: 24px;
    }

    .qrcode_ticket_number {
        font-size: 3rem;
    }

    .qrcode_ticket_card_header {
        padding: 20px 16px;
    }

    .qrcode_ticket_email_input_group {
        flex-direction: column;
    }

    .qrcode_ticket_btn {
        width: 100%;
        justify-content: center;
    }

    .qrcode_ticket_divider::before {
        left: -30px;
        width: 24px;
        height: 24px;
        top: -12px;
    }

    .qrcode_ticket_divider::after {
        right: -30px;
        width: 24px;
        height: 24px;
        top: -12px;
    }
}


/* ═══════════════════════════════════════════════
   QRCODE PREVIEW - AddOrEditService QR Code section
   ═══════════════════════════════════════════════ */

.qrcode_preview_card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    max-width: 320px;
}

.qrcode_preview_img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
}

.qrcode_preview_link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #f0f7fc;
    border: 1px solid #d0e8f5;
    border-radius: 8px;
    font-size: 0.8rem;
    word-break: break-all;
    width: 100%;
}

    .qrcode_preview_link i {
        color: #0097da;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .qrcode_preview_link a {
        color: #0077b6;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
    }

        .qrcode_preview_link a:hover {
            color: #0097da;
            text-decoration: underline;
        }

/* ═══════════════════════════════════════════════════════════
   QUser Floating Window — 3 modes: full, expanded, minimized
   ═══════════════════════════════════════════════════════════ */

.quser_window {
    position: fixed;
    z-index: 1050;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    touch-action: none;
}

/* Backdrop behind full mode */
.quser_window_backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1040;
}

/* ── Full modal mode ── */
.quser_window_full {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 780px;
    max-width: 90vw;
    max-height: 85vh;
    min-width: 420px;
    min-height: 180px;
}

/* ── Expanded bottom bar mode ── */
.quser_window_expanded {
    bottom: 8px;
    left: auto;
    right: 16px;
    top: auto;
    transform: none;
    width: auto;
    max-width: 680px;
    border-radius: 8px;
    max-height: none;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

    .quser_window_expanded .quser_window_body {
        padding: 6px 12px 8px;
    }

/* ── Minimized pill badge ── */
.quser_window_minimized {
    bottom: 16px;
    right: 16px;
    left: auto;
    top: auto;
    transform: none;
    width: auto;
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

    .quser_window_minimized .quser_window_header {
        border-radius: 24px;
        cursor: pointer;
        padding: 6px 16px;
    }

    .quser_window_minimized .quser_window_body {
        display: none;
    }

/* ── Window header (title bar) ── */
.quser_window_header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #323537;
    color: #fff;
    padding: 6px 12px;
    user-select: none;
    flex-shrink: 0;
}

.quser_window_title {
    flex: 1;
    font-weight: 600;
    font-size: 13px;
    cursor: move;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quser_window_controls {
    display: flex;
    gap: 2px;
    align-items: center;
}

.quser_window_btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    padding: 2px 7px;
    border-radius: 4px;
    line-height: 1;
    opacity: 0.75;
    transition: opacity 0.15s, background 0.15s;
}

    .quser_window_btn:hover {
        opacity: 1;
        background: rgba(255, 255, 255, 0.15);
    }

/* ── Window body ── */
.quser_window_body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* ── Waiting count badge ── */
.quser_badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc3545;
    color: #fff;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    line-height: 1;
}

.quser_badge_zero {
    background: #6c757d;
}

.quser_badge_pulse {
    animation: quser_pulse 1.5s ease-in-out infinite;
}

@keyframes quser_pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.6);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* ── Toolbar mode (expanded bottom bar content) ── */
.quser_toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.quser_toolbar_info {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #333;
}

.quser_toolbar_info_item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.quser_toolbar_info_label {
    font-weight: 500;
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
}

.quser_toolbar_info_value {
    font-weight: 700;
    color: #323537;
    font-size: 14px;
}

.quser_toolbar_actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.quser_toolbar_separator {
    width: 1px;
    height: 24px;
    background: #ddd;
    margin: 0 4px;
}

/* ── Icon-only compact button for toolbar ── */
.quser_toolbar_icon_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    line-height: 1;
}

    .quser_toolbar_icon_btn:hover:not(:disabled) {
        opacity: 0.85;
        transform: scale(1.08);
    }

    .quser_toolbar_icon_btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

/* ── Uniform-size action buttons inside QUser window ── */
.quser_window .page-actions {
    flex-wrap: wrap;
}

    .quser_window .page-actions .portal-botao {
        flex: 1 1 0;
        min-width: 100px;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }

/* EditTemplate toolbox fallback styles:
   Keep the left menu compact and vertical even when scoped CSS is not applied. */
.template_editor_wrapper .template_editor_toolbox_wrap {
    flex: 0 0 52px !important;
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    position: relative !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    z-index: 999 !important;
}

.template_editor_wrapper .template_editor_toolbox_wrap_expanded {
    flex: 0 0 186px !important;
    width: 186px !important;
    min-width: 186px !important;
    max-width: 186px !important;
    background: #fff !important;
    border-right: 0 none !important;
}

.template_editor_wrapper .template_editor_toolbox_toggle {
    width: 100% !important;
    min-height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    border: 0 none !important;
    border-bottom: 0 none !important;
    background: #fff !important;
    color: #555 !important;
    font-size: 11px !important;
    cursor: pointer !important;
    padding: 4px 6px !important;
    flex-shrink: 0 !important;
}

.template_editor_wrapper .template_editor_toolbox_toggle_text {
    display: none !important;
}

.template_editor_wrapper .template_editor_toolbox_wrap_expanded .template_editor_toolbox_toggle {
    justify-content: flex-start !important;
    padding: 5px 8px !important;
}

.template_editor_wrapper .template_editor_toolbox_wrap_expanded .template_editor_toolbox_toggle_text {
    display: inline !important;
}

.template_editor_wrapper .template_editor_toolbox {
    width: 52px !important;
    height: calc(100% - 28px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 6px 0 !important;
    gap: 2px !important;
    background: transparent !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border-right: none !important;
    box-sizing: border-box !important;
}

.template_editor_wrapper .template_editor_toolbox_btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    width: 46px !important;
    margin: 0 !important;
    padding: 6px 2px !important;
    background: none !important;
    border: 0 none !important;
    border-radius: 6px !important;
    color: #666 !important;
    font-size: 9px !important;
    line-height: 1.1 !important;
    text-align: center !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

    .template_editor_wrapper .template_editor_toolbox_btn span {
        display: block !important;
        width: 100% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .template_editor_wrapper .template_editor_toolbox_btn img {
        width: 22px !important;
        height: 22px !important;
        object-fit: contain !important;
    }

.template_editor_wrapper .template_editor_toolbox_popup {
    position: absolute !important;
    left: 100% !important;
    width: 190px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
    z-index: 999999 !important;
    overflow: hidden !important;
}

.template_editor_wrapper .template_editor_toolbox_popup_header {
    padding: 6px 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #1c2f3a !important;
    background: #d7e5ec !important;
    border: 0 none !important;
}

.template_editor_wrapper .template_editor_toolbox_popup_list {
    padding: 2px 0 !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

.template_editor_wrapper .template_editor_toolbox_item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 5px 8px !important;
    font-size: 12px !important;
    color: #222 !important;
    background: none !important;
    border: 0 none !important;
    text-align: left !important;
}

    .template_editor_wrapper .template_editor_toolbox_item img {
        width: 16px !important;
        height: 16px !important;
        object-fit: contain !important;
        flex-shrink: 0 !important;
    }

    .template_editor_wrapper .template_editor_toolbox_item:hover {
        background: #ececec !important;
    }

    .template_editor_wrapper .template_editor_toolbox_item:disabled {
        color: #888 !important;
        cursor: default !important;
    }

        .template_editor_wrapper .template_editor_toolbox_item:disabled img {
            opacity: 0.6 !important;
        }

.template_editor_wrapper .template_editor_toolbox_expanded {
    flex: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 2px 0 6px !important;
    background: #fff !important;
}

.template_editor_wrapper .template_editor_toolbox_expanded_header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 6px 8px !important;
    background: #d7e5ec !important;
    color: #1c2f3a !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    width: 100% !important;
    cursor: pointer !important;
    text-align: left !important;
    border: 0 none !important;
}

.template_editor_wrapper .template_editor_toolbox_expanded_header_left {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.template_editor_wrapper .template_editor_toolbox_expanded_toggle {
    display: inline-flex !important;
    width: 14px !important;
    justify-content: center !important;
    font-weight: 700 !important;
}

.template_editor_wrapper .template_editor_toolbox_expanded_header img {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain !important;
}

.template_editor_wrapper .template_editor_toolbox_expanded_item {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 6px 8px 6px 12px !important;
    border: 0 none !important;
    background: transparent !important;
    text-align: left !important;
    font-size: 12px !important;
    color: #222 !important;
}

    .template_editor_wrapper .template_editor_toolbox_expanded_item img {
        width: 18px !important;
        height: 18px !important;
        object-fit: contain !important;
    }

.img_picker_value_sync {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    padding-left: 6px !important;
}

.font_picker_value_preview_sync {
    display: flex !important;
    align-items: center !important;
    padding-left: 6px !important;
    font-size: 14px !important;
}

.about_panel {
    width: 100%;
    background: #ededed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    font-family: 'Montserrat', Arial, sans-serif;
}

.about_modal_header {
    background: #2595d2;
    border-radius: 6px 6px 0 0;
    margin: -20px -20px 15px;
    padding: 8px 12px;
    border-bottom: none;
}

    .about_modal_header #about-modal-title {
        color: #fff;
        font-family: 'Montserrat-Bold', sans-serif;
    }

    .about_modal_header .portal-modal_close {
        color: #fff;
    }

.about_modal_title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.about_modal_title_icon {
    width: 18px;
    height: 18px;
}

.about_card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin: 10px 0 16px;
    padding: 15px;
    width: 95%;
    display: flex;
    flex-direction: column;
}

.about_card_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
}

.about_logo img {
    height: 40px;
    width: auto;
}

.about_title {
    font-size: 22px;
    font-family: 'Montserrat-Bold', sans-serif;
    color: #323537;
    text-align: right;
}

.about_card_body {
    width: 100%;
    margin-top: 15px;
}

.about_stats {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.about_stats_col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

    .about_stats_col:nth-child(1) {
        flex: 0.12;
    }

    .about_stats_col:nth-child(2) {
        flex: 0.28;
    }

    .about_stats_col:nth-child(3) {
        flex: 0.60;
    }

    .about_stats_col:not(:last-child) {
        border-right: 4px solid #ededed;
    }

.about_stats_value {
    font-size: 16px;
    font-family: 'Montserrat-Bold', sans-serif;
    color: #323537;
    line-height: 1.25;
}

.about_stats_label {
    font-size: 12px;
    font-family: 'Montserrat-Bold', sans-serif;
    color: #777;
    margin-top: 6px;
}

.about_sms_icon_row {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 16px;
}

.about_sms_icon_img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.about_sms_data_row {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.about_sms_data_col {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
}

.about_stats_modules {
    align-items: flex-start;
}

.about_modules_container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 16px;
    width: 100%;
}

.about_module_item {
    display: flex;
    width: 100%;
    align-items: center;
    margin-bottom: 0;
}

.about_module_icon {
    width: 52px;
    height: 52px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.about_module_icon_cloudservice {
    background-image: url('../images/svg/about/icon_sobre_accesstrack.svg');
}

.about_module_text_col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about_module_label {
    font-size: 12px;
    font-family: 'Montserrat-Bold', sans-serif;
    color: #323537;
}

.about_module_status {
    font-size: 10px;
    font-family: 'Montserrat-Bold', sans-serif;
    border-radius: 4px;
    width: 78px;
    min-width: 78px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-transform: lowercase;
}

.about_status_active {
    background: #93c949;
    color: #fff;
}

.about_status_inactive {
    background: #ef3f32;
    color: #fff;
}

.about_links {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 95%;
    margin-bottom: 5px;
    padding: 15px 0;
}

.about_link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: #323537;
    text-decoration: none;
    font-family: 'Montserrat-Bold', sans-serif;
    width: 33.33%;
}

.about_link_text {
    font-family: 'Montserrat-Bold', sans-serif;
}

.about_link:hover {
    color: #ef3f32;
}

.about_link_icon {
    width: 48px;
    height: 48px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.about_link_icon_web {
    background-image: url('../images/svg/about/icon_sobre_site.svg');
}

.about_link_icon_helpdesk {
    background-image: url('../images/svg/about/icon_sobre_helpdesk.svg');
}

.about_footer {
    padding: 15px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 95%;
}

.about_footer_info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    color: #323537;
    width: 50%;
}

.about_footer_version {
    font-size: 16px;
    font-family: 'Montserrat-Bold', sans-serif;
}

.about_footer_hardware {
    font-size: 16px;
    color: #777;
}

.about_footer_copyright {
    font-size: 16px;
    color: #777;
}

.about_footer_spacer {
    margin-top: 10px;
}

.about_footer_hardware,
.about_footer_copyright {
    font-family: 'Montserrat-Bold', sans-serif;
}

.about_footer_apps {
    display: flex;
    width: 25%;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

    .about_footer_apps img {
        max-width: 100%;
        width: auto;
        height: auto;
    }
