/* /Components/Canvas/DesignCanvas.razor.rz.scp.css */
/* DesignCanvas - scoped styles */

/* Container fills available space and enforces 16:9 via aspect-ratio */
.design_canvas_container[b-fnheh6r5ws] {
    background: #e0e0e0;
    overflow: auto;
}

/* The actual drawing surface at logical size, scaled to fit */
.design_canvas_surface[b-fnheh6r5ws] {
    position: relative;
    background-color: #fff;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

/* Individual object on the canvas */
.design_canvas_object[b-fnheh6r5ws] {
    position: absolute;
    box-sizing: border-box;
    cursor: move;
    user-select: none;
    border: 1px solid transparent;
    transition: box-shadow 0.1s ease;
}

.design_canvas_object:hover[b-fnheh6r5ws] {
    box-shadow: 0 0 0 1px rgba(37, 149, 210, 0.5);
}

.design_canvas_object_selected[b-fnheh6r5ws] {
    box-shadow: 0 0 0 2px #2595D2, 0 0 8px rgba(37, 149, 210, 0.4);
}

/* Resize handles - 4 corners */
.design_canvas_handle[b-fnheh6r5ws] {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #fff;
    border: 2px solid #2595D2;
    border-radius: 2px;
    z-index: 10;
    pointer-events: auto;
}

.design_canvas_handle_nw[b-fnheh6r5ws] {
    top: -5px;
    left: -5px;
    cursor: nw-resize;
}

.design_canvas_handle_ne[b-fnheh6r5ws] {
    top: -5px;
    right: -5px;
    cursor: ne-resize;
}

.design_canvas_handle_sw[b-fnheh6r5ws] {
    bottom: -5px;
    left: -5px;
    cursor: sw-resize;
}

.design_canvas_handle_se[b-fnheh6r5ws] {
    bottom: -5px;
    right: -5px;
    cursor: se-resize;
}
/* /Components/Layout/GuestLayout.razor.rz.scp.css */
/* Guest layout: dark base with gradient background and optional overlay (design from q.track) */
.guest-layout[b-it5p17bi34] {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: #323537;
    position: relative;
    box-sizing: border-box;
}

.guest-layout[b-it5p17bi34]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    z-index: 0;
    background-image: url('/images/background_dashboard_qtrack.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: min(100vw, 100dvh, 1920px);
}

@media (min-aspect-ratio: 16/9) {
    .guest-layout[b-it5p17bi34]::before {
        background-image: url('/images/background_dashboard_qtrack_1080p.png');
        background-size: min(100vw, 1920px) auto;
    }
}

@media (max-width: 1919px) and (max-height: 1919px) {
    .guest-layout[b-it5p17bi34]::before {
        background-size: cover;
    }
}

/* Overlay for readability (equivalent to q.track login_overlay) */
.guest-layout[b-it5p17bi34]::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.guest-layout main[b-it5p17bi34] {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 1 auto;
    position: relative;
    z-index: 2;
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-4po7ojxg9y] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main[b-4po7ojxg9y] {
    flex: 1;
}

.sidebar[b-4po7ojxg9y] {
    background-image: linear-gradient(180deg, #022 0%, #033 70%);
}

.top-row[b-4po7ojxg9y] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.top-row[b-4po7ojxg9y]  a, .top-row[b-4po7ojxg9y]  .btn-link {
    white-space: nowrap;
    margin-left: 1.5rem;
    text-decoration: none;
}

.top-row[b-4po7ojxg9y]  a:hover, .top-row[b-4po7ojxg9y]  .btn-link:hover {
    text-decoration: underline;
}

.content[b-4po7ojxg9y] {
    padding-top: 1.1rem;
}

@media (min-width: 641px) {
    .page[b-4po7ojxg9y] {
        flex-direction: row;
    }

    .sidebar[b-4po7ojxg9y] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-4po7ojxg9y] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-4po7ojxg9y]  a:first-child {
        display: none;
    }

    .top-row[b-4po7ojxg9y], article[b-4po7ojxg9y] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.nav-scrollable[b-6htatqctnm] {
    flex-direction: column;
    flex-wrap: nowrap;
    overflow-y: auto;
}

.nav-icon[b-6htatqctnm] {
    margin-right: 0.5rem;
}
/* /Pages/Dashboard/Dashboard.razor.rz.scp.css */
/* Dashboard page specific styles */

.btn-atualizar[b-8rbeklekli] {
    display: flex;
    align-items: center;
    background: #333 !important;
    border-color: #333 !important;
}

/* Waiting and suspended container */
.waiting-suspended-container[b-8rbeklekli] {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.waiting-suspended-container h4[b-8rbeklekli] {
    margin: 0 0 8px 0;
    font-size: 0.9em;
    color: #333;
    font-weight: 600;
}

.waiting-section[b-8rbeklekli],
.suspended-section[b-8rbeklekli] {
    flex: 1;
}
/* /Pages/License/Register.razor.rz.scp.css */
/* Register page – scoped styles. GuestLayout does not load dashboard.css,
   so we redefine the visual language (portal buttons, fields, tabs) here. */

.register-shell[b-r4xmpmmn63] {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px 16px;
    box-sizing: border-box;
    font-family: 'Montserrat', Arial, sans-serif;
    color: #323537;
    z-index: 10;
    position: relative;
}

.register-card[b-r4xmpmmn63] {
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ── Top bar ───────────────────────────────────────────────────────── */
.register-topbar[b-r4xmpmmn63] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 22px;
    background-color: #323537;
    border-bottom: 1px solid #1f2122;
}

.register-title[b-r4xmpmmn63] {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

.register-title-icon[b-r4xmpmmn63] {
    height: 30px;
    width: auto;
    display: block;
}

.register-langs[b-r4xmpmmn63] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.register-lang[b-r4xmpmmn63] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.85;
    transition: transform 0.15s ease, opacity 0.15s ease;
    text-decoration: none;
}

    .register-lang:hover[b-r4xmpmmn63] {
        opacity: 1;
        transform: translateY(-1px);
    }

    .register-lang img[b-r4xmpmmn63] {
        width: 18px;
        height: 18px;
        display: block;
    }

/* ── Loading ───────────────────────────────────────────────────────── */
.register-loading[b-r4xmpmmn63] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 0;
}

/* ── Body two-column layout ────────────────────────────────────────── */
.register-body[b-r4xmpmmn63] {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 28px;
    padding: 24px 28px 8px 28px;
}

.register-form-col[b-r4xmpmmn63] {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.register-welcome h2[b-r4xmpmmn63] {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: #323537;
}

.register-welcome p[b-r4xmpmmn63] {
    margin: 0;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.register-section-title[b-r4xmpmmn63] {
    margin-top: 6px;
    padding-bottom: 6px;
    border-bottom: 2px solid #2595D2;
    font-size: 13px;
    font-weight: 600;
    color: #323537;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.register-row[b-r4xmpmmn63] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.register-field[b-r4xmpmmn63] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.register-field-full[b-r4xmpmmn63] {
    grid-column: 1 / -1;
}

    .register-field label[b-r4xmpmmn63] {
        font-size: 12px;
        font-weight: 500;
        color: #555;
    }

.register-input[b-r4xmpmmn63] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d6d6d6;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    color: #323537;
    background-color: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .register-input:focus[b-r4xmpmmn63] {
        outline: none;
        border-color: #2595D2;
        box-shadow: 0 0 0 2px rgba(37, 149, 210, 0.15);
    }

.register-textarea[b-r4xmpmmn63] {
    min-height: 64px;
    resize: vertical;
}

.register-input-readonly[b-r4xmpmmn63] {
    background-color: #f5f5f5;
    color: #555;
    cursor: not-allowed;
}

/* ── Contact column ────────────────────────────────────────────────── */
.register-contact-col[b-r4xmpmmn63] {
    background-color: #f9f9f9;
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
}

.register-contact-header[b-r4xmpmmn63] {
    font-size: 13px;
    font-weight: 600;
    color: #323537;
    margin-bottom: 10px;
}

.register-tabs[b-r4xmpmmn63] {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 12px;
    gap: 0;
}

.register-tab[b-r4xmpmmn63] {
    flex: 1;
    padding: 8px 4px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
    font-family: inherit;
}

    .register-tab:hover[b-r4xmpmmn63] {
        color: #323537;
    }

    .register-tab.active[b-r4xmpmmn63] {
        color: #2595D2;
        border-bottom-color: #2595D2;
    }

.register-contact-list[b-r4xmpmmn63] {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.register-contact-item[b-r4xmpmmn63] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 8px;
    background-color: #fff;
    border: 1px solid #ececec;
}

.register-contact-label[b-r4xmpmmn63] {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.register-contact-value[b-r4xmpmmn63] {
    font-size: 13px;
    font-weight: 500;
    color: #323537;
    text-decoration: none;
    word-break: break-word;
}

    .register-contact-value:hover[b-r4xmpmmn63] {
        color: #2595D2;
        text-decoration: underline;
    }

.register-contact-footer[b-r4xmpmmn63] {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #ececec;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    min-width: 0;
}

    .register-contact-footer > .register-website + .register-website[b-r4xmpmmn63] {
        border-left: 1px solid #d6d6d6;
        padding-left: 10px;
    }

.register-website[b-r4xmpmmn63] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.15s ease;
    min-width: 0;
    flex-shrink: 1;
}

    .register-website:hover[b-r4xmpmmn63] {
        opacity: 0.75;
    }

.register-website_text[b-r4xmpmmn63] {
    font-size: 11px;
    font-weight: 600;
    color: #323537;
    white-space: nowrap;
}

.register-website-logo[b-r4xmpmmn63] {
    height: 28px;
    width: auto;
    max-width: 100%;
    display: block;
}

/* ── Action buttons (aligned with the rest of the app) ─────────────── */
.register-actions[b-r4xmpmmn63] {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 28px 22px 28px;
    border-top: 1px solid #eee;
    background-color: #fafafa;
}

.portal-botao[b-r4xmpmmn63] {
    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;
    font-weight: 500;
    height: 32px;
    padding: 0 18px;
    box-sizing: border-box;
    font-family: inherit;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

    .portal-botao:hover[b-r4xmpmmn63] {
        background-color: #242729;
    }

    .portal-botao:disabled[b-r4xmpmmn63] {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .portal-botao img[b-r4xmpmmn63] {
        width: 15px;
        height: 15px;
        filter: brightness(0) invert(1);
    }

.portal-botao_secondary[b-r4xmpmmn63] {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ccc;
}

    .portal-botao_secondary:hover[b-r4xmpmmn63] {
        background-color: #e8e8e8;
        border-color: #999;
    }

    .portal-botao_secondary img[b-r4xmpmmn63] {
        filter: brightness(0);
    }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .register-body[b-r4xmpmmn63] {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .register-row[b-r4xmpmmn63] {
        grid-template-columns: 1fr;
    }

    .register-actions[b-r4xmpmmn63] {
        padding: 14px 18px 18px 18px;
        flex-wrap: wrap;
    }

    .register-title-text[b-r4xmpmmn63] {
        font-size: 13px;
    }
}
/* /Pages/Login.razor.rz.scp.css */
/* Login styles - aligned with ASP Login.aspx / login.css (q.track blue #2595D2) */
:root[b-y81hnuylza] {
    --qtrack-blue: #2595D2;
    --qtrack-blue-dark: #1e7ab5;
    --qtrack-btn-dark: #323537;
}

.login_container[b-y81hnuylza] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    padding: 20px;
    position: relative;
    z-index: 10;
    font-family: 'Montserrat', Arial, sans-serif;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.login_logo[b-y81hnuylza] {
    margin-bottom: 0;
    text-align: center;
    background-color: var(--qtrack-blue);
    padding: 16px 0;
    width: 470px;
    max-width: 470px;
    border-radius: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.login_logo_img[b-y81hnuylza] {
    width: 170px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.login_logo_text[b-y81hnuylza] {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
}

.login_form_container[b-y81hnuylza] {
    background-color: #ffffff;
    border-radius: 0 0 20px 20px;
    width: 470px;
    max-width: 470px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.login_form[b-y81hnuylza] {
    padding: 30px;
}

.login_error[b-y81hnuylza] {
    background: #f8d7da;
    color: #721c24;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.login_info[b-y81hnuylza] {
    background: #d4edda;
    color: #155724;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.login_link_row[b-y81hnuylza] {
    text-align: center;
    margin-top: 0.5rem;
}

.login_forgot_link[b-y81hnuylza],
.login_back_link[b-y81hnuylza] {
    color: #323537;
    font-size: 14px;
    text-decoration: none;
    font-family: 'Montserrat', Arial, sans-serif;
}

.login_forgot_link:hover[b-y81hnuylza],
.login_back_link:hover[b-y81hnuylza] {
    text-decoration: underline;
}

.login_field[b-y81hnuylza] {
    position: relative;
    margin-bottom: 30px;
    padding-top: 10px;
}

.login_input[b-y81hnuylza] {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 18px;
    font-family: 'Montserrat', Arial, sans-serif;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.login_input:focus[b-y81hnuylza] {
    border-color: var(--qtrack-blue);
    outline: none;
}

.login_input[b-y81hnuylza]::placeholder {
    color: #999;
}

.login_icon[b-y81hnuylza] {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-35%);
    width: 24px;
    height: 24px;
    z-index: 1;
    pointer-events: none;
}

.password_toggle[b-y81hnuylza] {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-35%);
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password_toggle img[b-y81hnuylza] {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.password_toggle:hover img[b-y81hnuylza] {
    opacity: 1;
}

.login_remember[b-y81hnuylza] {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login_remember_label[b-y81hnuylza] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    color: #323537;
    margin: 0;
    cursor: pointer;
}

.login_remember_checkbox_input[b-y81hnuylza] {
    width: 16px;
    height: 16px;
    accent-color: var(--qtrack-blue);
}

.login_remember :deep(.e-checkbox-wrapper)[b-y81hnuylza] {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    color: #323537;
}

.login_remember :deep(.e-checkbox-wrapper .e-frame)[b-y81hnuylza] {
    border-radius: 4px;
}

.login_remember :deep(.e-checkbox-wrapper.e-checked .e-frame)[b-y81hnuylza] {
    background-color: var(--qtrack-blue);
    border-color: var(--qtrack-blue);
}

.login_button[b-y81hnuylza] {
    margin: 30px 0;
}

.login_submit[b-y81hnuylza] {
    width: 100%;
    padding: 15px;
    background-color: var(--qtrack-btn-dark);
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    font-family: 'Montserrat', Arial, sans-serif;
}

.login_submit:hover[b-y81hnuylza] {
    background-color: #242729;
}

.login_separator[b-y81hnuylza] {
    height: 5px;
    background-color: #f2f2f2;
    margin: 0 auto;
    width: 85%;
}

.login_languages[b-y81hnuylza] {
    display: flex;
    justify-content: center;
    padding: 15px 0;
}

.login_lang[b-y81hnuylza] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
    text-decoration: none;
    overflow: hidden;
}

.login_lang img[b-y81hnuylza] {
    width: 32px;
    height: 32px;
    display: block;
    border-radius: 50%;
}

.login_lang:hover[b-y81hnuylza] {
    transform: scale(1.1);
}

.login_copyright[b-y81hnuylza] {
    text-align: center;
    padding: 15px 0;
    color: #323537;
    font-size: 12px;
    font-family: 'Montserrat', Arial, sans-serif;
}

/* /Pages/QUser/QUser.razor.rz.scp.css */
/* ─────────────────────────────────────────────────────────────────────────────
   QUser - modern visual layer (Blazor scoped CSS).

   This file is scoped to QUser.razor: every selector below is automatically
   rewritten by the Blazor compiler to apply only to elements rendered by
   QUser (and descendants reached via ::deep). Global shell styles for the
   Syncfusion dialog, floating window and toolbar live in wwwroot/css/quser.css
   because they are rendered by MainLayout.razor, not by QUser.
   ────────────────────────────────────────────────────────────────────────── */

.quser_modern[b-49kcs9fst5] {
    --quser-accent: var(--qtrack-blue, #2595D2);
    --quser-accent-dark: var(--qtrack-blue-dark, #1e7ab5);
    --quser-accent-soft: rgba(37, 149, 210, 0.08);
    --quser-accent-soft-strong: rgba(37, 149, 210, 0.12);
    --quser-accent-border: rgba(37, 149, 210, 0.4);
    --quser-accent-shadow: rgba(37, 149, 210, 0.18);
    --quser-accent-bg-top: #e9f4fb;
    --quser-accent-bg-bottom: #bedff2;
    background: #ffffff;
    color: #1f2933;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    box-sizing: border-box;
    min-height: 0;
    overflow: hidden;
}

.quser_modern_embedded[b-49kcs9fst5] {
    padding: 10px;
    gap: 8px;
    height: 100%;
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.quser_modern :deep(input)[b-49kcs9fst5],
.quser_modern :deep(select)[b-49kcs9fst5],
.quser_modern :deep(textarea)[b-49kcs9fst5],
.quser_modern :deep(button)[b-49kcs9fst5],
.quser_modern :deep(label)[b-49kcs9fst5],
.quser_modern :deep(span)[b-49kcs9fst5],
.quser_modern :deep(p)[b-49kcs9fst5],
.quser_modern :deep(th)[b-49kcs9fst5],
.quser_modern :deep(td)[b-49kcs9fst5],
.quser_modern :deep(dt)[b-49kcs9fst5],
.quser_modern :deep(dd)[b-49kcs9fst5],
.quser_modern :deep(.e-input)[b-49kcs9fst5],
.quser_modern :deep(.e-dropdownlist)[b-49kcs9fst5],
.quser_modern :deep(.e-ddl)[b-49kcs9fst5],
.quser_modern :deep(.e-input-group)[b-49kcs9fst5],
.quser_modern :deep(.e-control-wrapper)[b-49kcs9fst5] {
    font-family: 'Montserrat', Arial, sans-serif;
}

.quser_copy_value[b-49kcs9fst5] {
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.quser_copy_value:hover[b-49kcs9fst5] {
    color: var(--quser-accent);
    background: var(--quser-accent-soft);
}

/* ── Setup state ── */
.quser_modern_setup[b-49kcs9fst5] {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #ffffff;
    border: 1px solid #e3e8ee;
    border-radius: 10px;
    padding: 20px 22px;
}

.quser_modern_setup_header[b-49kcs9fst5] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
}

.quser_modern_setup_title[b-49kcs9fst5] {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2933;
}

.quser_modern_setup_subtitle[b-49kcs9fst5] {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}

.quser_modern_setup_grid[b-49kcs9fst5] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.quser_modern_setup_field[b-49kcs9fst5] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quser_modern_setup_label[b-49kcs9fst5] {
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/*
   Syncfusion SfDropDownList copies the `CssClass` ("quser_modern_select") to BOTH the in-place
   trigger AND the floating popup that Syncfusion relocates to <body>. With scoped CSS this rule
   is automatically rewritten with the per-component attribute, so it only matches the trigger
   that lives inside the QUser DOM subtree — the body-level popup keeps its own sizing.
 */
.quser_modern_select[b-49kcs9fst5] {
    width: 100% !important;
}

.quser_modern_services[b-49kcs9fst5] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid #eef0f3;
    padding-top: 14px;
}

.quser_modern_services_header[b-49kcs9fst5] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quser_modern_services_title[b-49kcs9fst5] {
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.quser_modern_services_toggle[b-49kcs9fst5] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #1f2933;
}

.quser_modern_services_list[b-49kcs9fst5] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quser_modern_service_chip[b-49kcs9fst5] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #d8dde5;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    color: #1f2933;
    transition: background-color 0.12s, border-color 0.12s, color 0.12s;
}

    .quser_modern_service_chip:hover[b-49kcs9fst5] {
        border-color: var(--quser-accent);
    }

    .quser_modern_service_chip input[b-49kcs9fst5] {
        accent-color: var(--quser-accent);
    }

.quser_modern_service_chip_selected[b-49kcs9fst5] {
    background: var(--quser-accent-soft);
    border-color: var(--quser-accent);
    color: var(--quser-accent-dark);
    font-weight: 600;
}

.quser_modern_setup_actions[b-49kcs9fst5] {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ── KPI strip ── */
.quser_kpi_grid[b-49kcs9fst5] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.quser_kpi_grid_compact[b-49kcs9fst5] {
    gap: 6px;
}

.quser_kpi_card[b-49kcs9fst5] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 18px 12px;
    min-height: 92px;
    background: #ffffff;
    border: 1px solid #e3e8ee;
    border-radius: 10px;
    text-align: center;
}

.quser_kpi_card_compact[b-49kcs9fst5] {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 6px 8px;
    min-height: 0;
    text-align: left;
}

.quser_kpi_icon[b-49kcs9fst5] {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: block;
}

.quser_kpi_body[b-49kcs9fst5] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.quser_kpi_grid_compact .quser_kpi_value[b-49kcs9fst5] {
    font-size: 26px;
    text-align: left;
    width: auto;
}

.quser_kpi_grid_compact .quser_kpi_label[b-49kcs9fst5] {
    font-size: 9px;
    text-align: left;
    width: auto;
    line-height: 1.2;
}

.quser_kpi_grid_compact .quser_kpi_card_desk .quser_kpi_value[b-49kcs9fst5] {
    font-size: 26px;
    word-break: break-word;
}

.quser_kpi_card_warning[b-49kcs9fst5] {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(255, 251, 235, 0.65);
}

.quser_kpi_card_success[b-49kcs9fst5] {
    border-color: rgba(16, 185, 129, 0.35);
}

.quser_kpi_value[b-49kcs9fst5] {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 38px;
    font-weight: 700;
    color: #1f2933;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    width: 100%;
}

.quser_kpi_card_warning .quser_kpi_value[b-49kcs9fst5] {
    color: #d97706;
}

.quser_kpi_card_success .quser_kpi_value[b-49kcs9fst5] {
    color: #059669;
}

.quser_kpi_label[b-49kcs9fst5] {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.45px;
    line-height: 1.25;
    width: 100%;
}

.quser_kpi_card_desk .quser_kpi_value[b-49kcs9fst5] {
    font-size: 38px;
    line-height: 1;
    word-break: break-word;
}

/* ── Desk workspace: KPI + content (left), operations sidebar (right, from top) ── */
.quser_desk_workspace[b-49kcs9fst5] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 310px);
    grid-template-rows: minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
    transition: grid-template-columns 180ms ease;
}

.quser_desk_workspace_ops_collapsed[b-49kcs9fst5] {
    grid-template-columns: minmax(0, 1fr) 64px;
}

.quser_desk_left[b-49kcs9fst5] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.quser_desk_main[b-49kcs9fst5] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
    min-height: 0;
    width: 100%;
    overflow: hidden;
}

.quser_desk_operation_area[b-49kcs9fst5] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
    min-height: 0;
    overflow: hidden;
}

.quser_desk_ops_sidebar[b-49kcs9fst5] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
    overflow: hidden;
    border: 1px solid #e3e8ee;
    border-radius: 10px;
    background: #fafbfc;
    padding: 8px;
    box-sizing: border-box;
    transition: width 180ms ease, min-width 180ms ease, max-width 180ms ease, padding 180ms ease;
}

.quser_ops_header[b-49kcs9fst5] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
}

.quser_desk_ops_sidebar .quser_section_heading[b-49kcs9fst5] {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quser_ops_collapse_btn[b-49kcs9fst5] {
    width: 24px;
    height: 24px;
    border: 1px solid #dce4ec;
    border-radius: 8px;
    background: #ffffff;
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    flex: 0 0 auto;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.quser_ops_collapse_btn:hover[b-49kcs9fst5] {
    background: #eef7ff;
    border-color: #9cc9ee;
    color: #0b76bd;
}

.quser_desk_ops_sidebar_collapsed[b-49kcs9fst5] {
    padding: 8px 6px;
}

.quser_desk_ops_sidebar_collapsed .quser_ops_header[b-49kcs9fst5] {
    justify-content: center;
}

.quser_desk_ops_sidebar_collapsed .quser_section_heading[b-49kcs9fst5] {
    display: none;
}

.quser_tiles_sidebar[b-49kcs9fst5] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.quser_tile_sidebar[b-49kcs9fst5] {
    width: 100%;
    min-height: auto;
    gap: 8px;
    padding: 8px 10px;
    transition: padding 180ms ease, gap 180ms ease, justify-content 180ms ease, min-height 180ms ease;
}

    .quser_tile_sidebar .quser_menu_icon_tile[b-49kcs9fst5] {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        transition: width 180ms ease, height 180ms ease, flex-basis 180ms ease, margin 180ms ease;
    }

    .quser_tile_sidebar .quser_tile_body[b-49kcs9fst5] {
        gap: 2px;
        transition: opacity 140ms ease, max-width 180ms ease;
    }

    .quser_tile_sidebar .quser_tile_title[b-49kcs9fst5] {
        font-size: 12px;
        line-height: 1.2;
    }

    .quser_tile_sidebar .quser_tile_desc[b-49kcs9fst5] {
        font-size: 11px;
        line-height: 1.25;
        min-height: calc(11px * 1.25 * 2);
    }

.quser_desk_ops_sidebar_collapsed .quser_tiles_sidebar[b-49kcs9fst5] {
    overflow-x: visible;
}

.quser_desk_ops_sidebar_collapsed .quser_tile_sidebar[b-49kcs9fst5] {
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 8px 0;
    gap: 0;
}

.quser_desk_ops_sidebar_collapsed .quser_tile_sidebar .quser_menu_icon_tile[b-49kcs9fst5] {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    margin: 0 auto;
}

.quser_desk_ops_sidebar_collapsed .quser_tile_sidebar .quser_tile_body[b-49kcs9fst5] {
    opacity: 0;
    max-width: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
}

.quser_card_header_actions[b-49kcs9fst5] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.quser_desk_operation_area .quser_section_heading_row[b-49kcs9fst5] {
    flex: 0 0 auto;
}

.quser_desk_operation_area .quser_waiting_table_wrap[b-49kcs9fst5] {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
}

.quser_desk_operation_area > .quser_op_panel[b-49kcs9fst5] {
    grid-row: 1 / -1;
    margin-top: 0;
}

/* ── Main grid (office mode: current attendance + session card) ── */
.quser_modern_grid[b-49kcs9fst5] {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
}

.quser_modern_card[b-49kcs9fst5] {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e3e8ee;
    border-radius: 10px;
    overflow: hidden;
    min-height: 0;
}

.quser_modern_card_header[b-49kcs9fst5] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid #eef0f3;
    background: #fafbfc;
}

.quser_modern_card_title[b-49kcs9fst5] {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.quser_modern_card_body[b-49kcs9fst5] {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
}

.quser_current_card .quser_modern_card_body[b-49kcs9fst5] {
    padding: 8px 12px;
    gap: 6px;
}

/* Compact attendance card: full width of left column up to operations sidebar */
.quser_current_card_compact[b-49kcs9fst5] {
    flex: 0 0 auto;
    align-self: stretch;
    width: 100%;
}

.quser_current_card_compact .quser_current_card_header[b-49kcs9fst5] {
    padding: 6px 10px;
}

.quser_current_card_compact .quser_current_card_body[b-49kcs9fst5] {
    padding: 6px 10px 8px;
    gap: 0;
}

.quser_current_main_col[b-49kcs9fst5] {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    min-height: 0;
}

.quser_current_card_compact .quser_current_split[b-49kcs9fst5] {
    grid-template-columns: minmax(0, 1fr) minmax(148px, 220px);
    gap: 8px;
    align-items: stretch;
}

.quser_current_card_compact .quser_current_details[b-49kcs9fst5] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px 10px;
}

.quser_current_card_compact .quser_meta_item dt[b-49kcs9fst5] {
    font-size: 10px;
}

.quser_current_card_compact .quser_meta_item dd[b-49kcs9fst5] {
    font-size: 13px;
}

.quser_current_card_compact .quser_current_ticket_side[b-49kcs9fst5] {
    padding: 8px 10px;
    gap: 2px;
    border-radius: 10px;
    border-width: 1px;
    box-shadow: none;
}

.quser_current_card_compact .quser_current_ticket_side_active[b-49kcs9fst5] {
    box-shadow: none;
}

.quser_current_card_compact .quser_ticket_side_service[b-49kcs9fst5] {
    font-size: 12px;
    margin-bottom: 2px;
}

.quser_current_card_compact .quser_ticket_side_value[b-49kcs9fst5] {
    min-height: 0;
    font-size: 34px;
    flex: 1 1 auto;
    padding: 4px 0;
}

.quser_current_card_compact .quser_ticket_side_emission[b-49kcs9fst5] {
    font-size: 12px;
    padding-top: 2px;
    margin-top: 0;
}

.quser_action_bar_inline[b-49kcs9fst5] {
    padding-top: 0;
    border-top: none;
    gap: 4px;
    flex-wrap: nowrap;
}

.quser_current_card_compact .quser_action_bar_inline[b-49kcs9fst5] {
    justify-content: flex-start;
}

.quser_current_card_compact .quser_icon_btn_col[b-49kcs9fst5] {
    min-width: 0;
    flex: 1 1 0;
    gap: 3px;
    padding: 2px 4px;
}

    .quser_current_card_compact .quser_icon_btn_col .quser_menu_icon_op[b-49kcs9fst5] {
        width: 24px;
        height: 24px;
    }

    .quser_current_card_compact .quser_icon_btn_label[b-49kcs9fst5] {
        font-size: 10px;
        line-height: 1.15;
        text-align: center;
    }

/* Status pills (small inline state indicator on card headers) */
.quser_status_pill[b-49kcs9fst5] {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border: 1px solid #d8dde5;
    color: #6b7280;
    background: #f5f7fa;
}

.quser_status_pill_success[b-49kcs9fst5] {
    color: #047857;
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.4);
}

.quser_status_pill_neutral[b-49kcs9fst5] {
    color: #6b7280;
    background: #f5f7fa;
    border-color: #d8dde5;
}

.quser_status_pill_open[b-49kcs9fst5] {
    color: #0369a1;
    background: rgba(14, 165, 233, 0.08);
    border-color: rgba(14, 165, 233, 0.35);
}

/* Current attendance layout: ticket hero + secondary meta */
.quser_current_layout[b-49kcs9fst5] {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quser_current_layout_compact[b-49kcs9fst5] {
    gap: 12px;
}

.quser_current_split[b-49kcs9fst5] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(148px, 196px);
    gap: 14px;
    align-items: stretch;
}

.quser_current_details[b-49kcs9fst5] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 16px;
    margin: 0;
    align-content: center;
}

.quser_current_ticket_side[b-49kcs9fst5] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 10px 12px 12px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    background: #f5f7fa;
    text-align: center;
    min-height: 0;
}

.quser_current_ticket_side_active[b-49kcs9fst5] {
    border-color: var(--quser-accent);
    background: linear-gradient(180deg, var(--quser-accent-bg-top) 0%, var(--quser-accent-bg-bottom) 100%);
    box-shadow: 0 4px 14px var(--quser-accent-shadow);
}

.quser_current_ticket_side_idle[b-49kcs9fst5] {
    border-color: #e5e7eb;
    background: #f5f7fa;
    box-shadow: none;
}

.quser_ticket_side_label[b-49kcs9fst5],
.quser_ticket_side_service_label[b-49kcs9fst5] {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.2;
}

.quser_ticket_side_service[b-49kcs9fst5] {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    line-height: 1.25;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quser_ticket_side_value[b-49kcs9fst5] {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    color: var(--quser-accent-dark);
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

.quser_current_ticket_side_idle .quser_ticket_side_value[b-49kcs9fst5] {
    color: #9ca3af;
}

.quser_ticket_side_emission[b-49kcs9fst5] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1f2933;
    font-variant-numeric: tabular-nums;
    margin-top: auto;
    padding-top: 4px;
}

.quser_ticket_side_emission_label[b-49kcs9fst5] {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.quser_current_hero[b-49kcs9fst5] {
    display: flex;
    align-items: stretch;
    gap: 14px;
}

.quser_current_hero_single .quser_ticket_display[b-49kcs9fst5] {
    flex: 1 1 auto;
    padding: 12px 16px;
}

.quser_current_hero_single .quser_ticket_value[b-49kcs9fst5] {
    font-size: 48px;
}

.quser_ticket_display[b-49kcs9fst5],
.quser_desk_display[b-49kcs9fst5] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 20px;
    border-radius: 12px;
    flex: 1 1 0;
    min-width: 0;
}

.quser_ticket_display[b-49kcs9fst5] {
    border: 2px solid var(--quser-accent-bg-bottom);
    background: linear-gradient(180deg, var(--quser-accent-bg-top) 0%, var(--quser-accent-bg-bottom) 100%);
}

.quser_ticket_display_active[b-49kcs9fst5] {
    border-color: var(--quser-accent);
    box-shadow: 0 4px 14px var(--quser-accent-shadow);
}

.quser_ticket_display_idle[b-49kcs9fst5] {
    background: #f5f7fa;
    border-color: #e5e7eb;
    box-shadow: none;
}

.quser_desk_display[b-49kcs9fst5] {
    border: 2px solid #a7f3d0;
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
}

.quser_desk_display_active[b-49kcs9fst5] {
    border-color: #10b981;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.18);
}

.quser_desk_display_idle[b-49kcs9fst5] {
    background: #f5f7fa;
    border-color: #e5e7eb;
    box-shadow: none;
}

.quser_ticket_label[b-49kcs9fst5],
.quser_desk_label[b-49kcs9fst5] {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.9px;
}

.quser_ticket_value[b-49kcs9fst5] {
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    color: var(--quser-accent-dark);
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

.quser_desk_value[b-49kcs9fst5] {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.1;
    color: #047857;
    text-align: center;
    word-break: break-word;
}

.quser_ticket_display_idle .quser_ticket_value[b-49kcs9fst5],
.quser_desk_display_idle .quser_desk_value[b-49kcs9fst5] {
    color: #9ca3af;
}

.quser_current_meta[b-49kcs9fst5] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 16px;
    margin: 0;
    align-content: center;
}

.quser_current_meta_secondary[b-49kcs9fst5] {
    padding-top: 4px;
    border-top: 1px solid #eef0f3;
}

.quser_meta_item[b-49kcs9fst5] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
}

    .quser_meta_item dt[b-49kcs9fst5] {
        font-size: 11px;
        font-weight: 600;
        color: #9ca3af;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .quser_meta_item dd[b-49kcs9fst5] {
        margin: 0;
        font-size: 14px;
        font-weight: 600;
        color: #1f2933;
    }

.quser_action_bar[b-49kcs9fst5] {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid #eef0f3;
}

.quser_current_card .quser_action_bar[b-49kcs9fst5] {
    padding-top: 10px;
    gap: 12px;
}

/* QUser action buttons — icon + label only, no visible chrome */
.quser_icon_btn[b-49kcs9fst5] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
    margin: 0;
    border: none !important;
    outline: none;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    line-height: 1.25;
    appearance: none;
    -webkit-appearance: none;
    transition: opacity 0.15s ease;
}

.quser_icon_btn_col[b-49kcs9fst5] {
    flex-direction: column;
    min-width: 64px;
    padding: 2px 4px;
}

.quser_icon_btn_row[b-49kcs9fst5] {
    flex-direction: row;
    min-width: 0;
    white-space: nowrap;
}

    .quser_icon_btn:hover:not(:disabled)[b-49kcs9fst5] {
        opacity: 0.85;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    .quser_icon_btn:active:not(:disabled)[b-49kcs9fst5] {
        opacity: 0.75;
    }

    .quser_icon_btn:disabled[b-49kcs9fst5] {
        opacity: 0.45;
        cursor: not-allowed;
    }

    .quser_icon_btn:focus-visible[b-49kcs9fst5] {
        outline: 2px solid rgba(37, 149, 210, 0.4);
        outline-offset: 2px;
    }

    .quser_icon_btn img[b-49kcs9fst5] {
        display: block;
        filter: none !important;
        flex-shrink: 0;
    }

    .quser_icon_btn .quser_menu_icon_op[b-49kcs9fst5],
    .quser_icon_btn .quser_menu_icon_btn[b-49kcs9fst5],
    .quser_icon_btn .quser_menu_icon_toolbar[b-49kcs9fst5] {
        width: 36px;
        height: 36px;
    }

.quser_icon_btn_label[b-49kcs9fst5] {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    text-align: center;
    line-height: 1.25;
    max-width: 96px;
}

.quser_icon_btn_row .quser_icon_btn_label[b-49kcs9fst5] {
    text-align: left;
    max-width: none;
}

/* Legacy class aliases (same as quser_icon_btn_col / quser_icon_btn_label) */
.quser_op_btn[b-49kcs9fst5],
.quser_toolbar_icon_btn[b-49kcs9fst5],
.quser_custom_call_next_btn[b-49kcs9fst5],
.quser_stepper_play[b-49kcs9fst5] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
    margin: 0;
    border: none !important;
    outline: none;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
    font-family: 'Montserrat', Arial, sans-serif;
    appearance: none;
    -webkit-appearance: none;
    transition: opacity 0.15s ease;
}

.quser_op_btn[b-49kcs9fst5],
.quser_toolbar_icon_btn[b-49kcs9fst5],
.quser_custom_call_next_btn[b-49kcs9fst5],
.quser_stepper_play[b-49kcs9fst5] {
    flex-direction: column;
    min-width: 64px;
    padding: 2px 4px;
}

    .quser_op_btn:hover:not(:disabled)[b-49kcs9fst5],
    .quser_toolbar_icon_btn:hover:not(:disabled)[b-49kcs9fst5],
    .quser_custom_call_next_btn:hover:not(:disabled)[b-49kcs9fst5],
    .quser_stepper_play:hover:not(:disabled)[b-49kcs9fst5] {
        opacity: 0.85;
        background: transparent !important;
    }

    .quser_op_btn:disabled[b-49kcs9fst5],
    .quser_toolbar_icon_btn:disabled[b-49kcs9fst5],
    .quser_custom_call_next_btn:disabled[b-49kcs9fst5],
    .quser_stepper_play:disabled[b-49kcs9fst5] {
        opacity: 0.45;
        cursor: not-allowed;
    }

    .quser_op_btn img[b-49kcs9fst5],
    .quser_toolbar_icon_btn img[b-49kcs9fst5],
    .quser_custom_call_next_btn img[b-49kcs9fst5],
    .quser_stepper_play img[b-49kcs9fst5] {
        filter: none !important;
        display: block;
    }

.quser_op_btn_label[b-49kcs9fst5] {
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    text-align: center;
    line-height: 1.25;
    max-width: 96px;
}

/* Session card (right column) */
.quser_session_card[b-49kcs9fst5] {
    align-self: flex-start;
}

.quser_session_meta[b-49kcs9fst5] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Desk title group in card header: name is primary, subtitle secondary */
.quser_session_desk_title_group[b-49kcs9fst5] {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.quser_session_desk_label[b-49kcs9fst5] {
    font-size: 10px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.quser_session_desk_name[b-49kcs9fst5] {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quser_session_meta_subtitle[b-49kcs9fst5] {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.quser_session_meta_item[b-49kcs9fst5] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.quser_session_meta_label[b-49kcs9fst5] {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.quser_session_meta_value[b-49kcs9fst5] {
    font-size: 14px;
    font-weight: 600;
    color: #1f2933;
}

.quser_link_btn[b-49kcs9fst5] {
    background: transparent !important;
    border: none !important;
    color: var(--quser-accent) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    padding: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

    .quser_link_btn:hover:not(:disabled)[b-49kcs9fst5] {
        text-decoration: underline;
    }

/* ── Section headings (between blocks) ── */
.quser_section_heading[b-49kcs9fst5] {
    margin: 4px 0 0 0;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.quser_section_heading_count[b-49kcs9fst5] {
    color: #9ca3af;
    font-weight: 500;
    margin-left: 4px;
    font-size: 13px;
}

/* ── Operation tiles ── */
.quser_tiles_grid[b-49kcs9fst5] {
    display: grid;
    /* Auto-fill keeps tiles uniform in width and height regardless of how many we have (4, 5, 9 ...). */
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    grid-auto-rows: 1fr;
}

.quser_tile[b-49kcs9fst5] {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e3e8ee;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.12s, background-color 0.12s, transform 0.05s;
    color: inherit;
    font: inherit;
    height: 100%;
    min-height: 88px;
}

    .quser_tile:hover[b-49kcs9fst5] {
        border-color: var(--quser-accent);
        background: rgba(37, 149, 210, 0.03);
    }

    .quser_tile:active[b-49kcs9fst5] {
        transform: scale(0.99);
    }

.quser_tile_active[b-49kcs9fst5] {
    border-color: var(--quser-accent);
    background: rgba(37, 149, 210, 0.06);
}

    .quser_tile .quser_menu_icon_tile[b-49kcs9fst5] {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
    }

.quser_tile_letter[b-49kcs9fst5] {
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid #e3e8ee;
}

.quser_tile_active .quser_tile_letter[b-49kcs9fst5] {
    background: var(--quser-accent-soft-strong);
    color: var(--quser-accent-dark);
    border-color: var(--quser-accent-border);
}

.quser_tile_disabled[b-49kcs9fst5] {
    opacity: 0.65;
    cursor: not-allowed;
}

.quser_tile_disabled:hover[b-49kcs9fst5] {
    border-color: #e3e8ee;
    background: #fff;
    box-shadow: none;
}

.quser_tile_body[b-49kcs9fst5] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
    position: relative;
}

.quser_tile_title[b-49kcs9fst5] {
    font-size: 13px;
    font-weight: 600;
    color: #1f2933;
}

.quser_tile_desc[b-49kcs9fst5] {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
    /* Clamp description to 2 lines so every tile keeps the same visual height. */
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(12px * 1.4 * 2);
}

.quser_tile_badge[b-49kcs9fst5] {
    position: absolute;
    top: -2px;
    right: 0;
    min-width: 20px;
    height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: #f59e0b;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Prevent badge from overlapping tile title text */
.quser_tile_body:has(.quser_tile_badge) .quser_tile_title[b-49kcs9fst5] {
    padding-right: 28px;
}

/* ── Operation panel (active tile content) ── */
.quser_op_panel[b-49kcs9fst5] {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    margin-top: 4px;
    min-height: 0;
}

.quser_op_panel > .quser_modern_card_body[b-49kcs9fst5] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.quser_custom_call_header[b-49kcs9fst5] {
    flex-wrap: wrap;
    gap: 10px 16px;
}

.quser_custom_call_header_service[b-49kcs9fst5] {
    flex: 1 1 220px;
    min-width: 200px;
    max-width: 380px;
    margin-left: auto;
}

    .quser_custom_call_header_service .e-control-wrapper[b-49kcs9fst5],
    .quser_custom_call_header_service .e-input-group[b-49kcs9fst5] {
        width: 100%;
    }

.quser_custom_call_panel .quser_modern_card_body[b-49kcs9fst5] {
    padding: 10px 12px;
}

.quser_op_row[b-49kcs9fst5] {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.quser_op_action[b-49kcs9fst5] {
    display: flex;
    align-items: flex-end;
}

/* ── Personalised call: service | ticket stepper | call-next button in one row ── */
.quser_custom_call_row[b-49kcs9fst5] {
    width: 100%;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 0;
}

.quser_custom_call_field[b-49kcs9fst5] {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    min-width: 0;
}

.quser_custom_call_field_ticket[b-49kcs9fst5] {
    flex: 0 0 auto;
}

.quser_custom_call_field_action[b-49kcs9fst5] {
    flex: 0 0 auto;
    margin-left: auto;
}

.quser_custom_call_label[b-49kcs9fst5] {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
    display: block;
}

.quser_custom_call_stepper[b-49kcs9fst5] {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    max-width: 420px;
}

.quser_stepper_btn[b-49kcs9fst5] {
    flex: 0 0 40px;
    min-width: 40px;
    height: 44px;
    border: 1px solid #d8dde5;
    background: #ffffff;
    border-radius: 8px;
    color: #1f2933;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

    .quser_stepper_btn:hover:not(:disabled)[b-49kcs9fst5] {
        background: #f3f6fa;
        border-color: #b8c2cf;
    }

    .quser_stepper_btn:disabled[b-49kcs9fst5] {
        opacity: 0.5;
        cursor: not-allowed;
    }

.quser_stepper_display[b-49kcs9fst5] {
    flex: 1 1 auto;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    border: 1px solid #e3e8ee;
    border-radius: 8px;
    font-size: 22px;
    font-weight: 700;
    color: #1f2933;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
    min-width: 80px;
}

.quser_stepper_input[b-49kcs9fst5] {
    flex: 1 1 auto;
    min-width: 120px;
}

    .quser_stepper_input .e-control-wrapper[b-49kcs9fst5],
    .quser_stepper_input.e-control-wrapper[b-49kcs9fst5] {
        height: 44px;
    }

    .quser_stepper_input input.e-input[b-49kcs9fst5] {
        font-size: 18px;
        font-weight: 600;
        text-align: center;
    }

.quser_custom_call_field_action .quser_icon_btn_col[b-49kcs9fst5],
.quser_custom_call_field_action .quser_custom_call_next_btn[b-49kcs9fst5] {
    align-self: flex-end;
}

.quser_custom_call_stepper .quser_icon_btn_col[b-49kcs9fst5],
.quser_custom_call_stepper .quser_stepper_play[b-49kcs9fst5] {
    flex: 0 0 auto;
    min-width: 56px;
}

@media (max-width: 900px) {
    .quser_custom_call_header_service[b-49kcs9fst5] {
        flex: 1 1 100%;
        max-width: none;
        margin-left: 0;
    }

    .quser_custom_call_row[b-49kcs9fst5] {
        flex-direction: column;
        align-items: stretch;
    }

    .quser_custom_call_field_ticket[b-49kcs9fst5],
    .quser_custom_call_field_action[b-49kcs9fst5] {
        flex: 1 1 auto;
        width: 100%;
        margin-left: 0;
    }

    .quser_custom_call_stepper[b-49kcs9fst5] {
        width: 100%;
    }

}

/* ── Modern table ── */
.quser_modern_table_wrap[b-49kcs9fst5] {
    overflow-x: auto;
    border: 1px solid #e3e8ee;
    border-radius: 10px;
    background: #ffffff;
    min-height: 0;
}

.quser_waiting_table_wrap[b-49kcs9fst5] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
}

    .quser_waiting_table_wrap .quser_modern_table thead th[b-49kcs9fst5] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

.quser_waiting_table_wrap .quser_modern_table[b-49kcs9fst5] {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
}

.quser_waiting_table_wrap .quser_modern_table .quser_col_ticket[b-49kcs9fst5],
.quser_waiting_table_wrap .quser_modern_table .quser_col_date[b-49kcs9fst5],
.quser_waiting_table_wrap .quser_modern_table .quser_col_duration[b-49kcs9fst5],
.quser_waiting_table_wrap .quser_modern_table .quser_col_action[b-49kcs9fst5],
.quser_waiting_table_wrap .quser_modern_table .quser_col_priority[b-49kcs9fst5] {
    width: 1%;
    white-space: nowrap;
}

.quser_waiting_table_wrap .quser_modern_table .quser_col_service[b-49kcs9fst5] {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quser_waiting_table_wrap .quser_modern_table .quser_col_client[b-49kcs9fst5] {
    width: 12%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quser_waiting_table_wrap .quser_modern_table .quser_col_action[b-49kcs9fst5] {
    padding-left: 4px;
    padding-right: 4px;
}

.quser_modern_table[b-49kcs9fst5] {
    width: 100%;
    border-collapse: collapse;
    font-family: inherit;
    font-size: 13px;
}

    .quser_modern_table thead th[b-49kcs9fst5] {
        text-align: left;
        font-size: 11px;
        font-weight: 600;
        color: #6b7280;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        padding: 6px 10px;
        background: #fafbfc;
        border-bottom: 1px solid #e3e8ee;
        white-space: nowrap;
    }

    .quser_modern_table tbody td[b-49kcs9fst5] {
        padding: 5px 10px;
        border-bottom: 1px solid #eef0f3;
        color: #1f2933;
        vertical-align: middle;
    }

    .quser_modern_table tbody tr:last-child td[b-49kcs9fst5] {
        border-bottom: none;
    }

    .quser_modern_table tbody tr:hover td[b-49kcs9fst5] {
        background: #fafbfc;
    }

/* Alignment overrides for header / body cells.
   The base rules `.quser_modern_table thead th` and `.quser_modern_table tbody td`
   have specificity (1 class + 2 elements) and would otherwise win over a single-class
   selector, so we qualify these helpers to match their specificity. */
.quser_modern_table thead th.quser_modern_table_th_right[b-49kcs9fst5],
.quser_modern_table tbody td.quser_modern_table_td_right[b-49kcs9fst5] {
    text-align: right;
}

.quser_modern_table thead th.quser_modern_table_th_center[b-49kcs9fst5],
.quser_modern_table tbody td.quser_modern_table_td_center .quser_icon_btn_col[b-49kcs9fst5] {
    margin: 0 auto;
}

.quser_modern_table_td_center[b-49kcs9fst5] {
    text-align: center;
}

.quser_modern_table_empty[b-49kcs9fst5] {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 12px;
}

/* Compact listing actions: icon-only buttons inside tables */
.quser_modern_table .quser_icon_btn_label[b-49kcs9fst5] {
    display: none;
}

.quser_modern_table .quser_icon_btn_col[b-49kcs9fst5] {
    min-width: 0;
    padding: 0;
    flex-direction: row;
}

.quser_modern_table .quser_icon_btn .quser_menu_icon_btn[b-49kcs9fst5] {
    width: 24px;
    height: 24px;
}

.quser_modern_table .quser_ticket_pill[b-49kcs9fst5] {
    padding: 2px 8px;
}

.quser_ticket_pill[b-49kcs9fst5] {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--quser-accent-soft);
    color: var(--quser-accent-dark);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ── Section header with right-side controls (e.g. List / By service segmented) ── */
.quser_section_heading_row[b-49kcs9fst5] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 0 0;
}

    .quser_section_heading_row .quser_section_heading[b-49kcs9fst5] {
        margin: 0;
    }

/* ── Segmented toggle (small pill-style switch used inside cards / section headings) ── */
.quser_segmented[b-49kcs9fst5] {
    display: inline-flex;
    background: #f1f5f9;
    border: 1px solid #e3e8ee;
    border-radius: 999px;
    padding: 2px;
    gap: 2px;
}

.quser_segmented_btn[b-49kcs9fst5] {
    background: transparent;
    border: none;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: background-color 0.12s, color 0.12s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

    .quser_segmented_btn:hover:not(.quser_segmented_btn_active)[b-49kcs9fst5] {
        color: #1f2933;
    }

.quser_segmented_btn_active[b-49kcs9fst5] {
    background: #ffffff;
    color: var(--quser-accent-dark);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

/* ── "Coming soon" callout reused inside operation panels ── */
.quser_op_coming_soon[b-49kcs9fst5] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    color: #92400e;
    font-size: 12px;
    font-weight: 500;
}

/* ── Inline hint shown inside operation panels (eg. "no offices linked") ── */
.quser_op_hint[b-49kcs9fst5] {
    margin: 8px 0 0;
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

/* ── Mode toggle (Balcão | Gabinete) ── */
.quser_mode_toggle[b-49kcs9fst5] {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 0;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
    border: 1px solid #e5e7eb;
}

.quser_mode_toggle_embedded[b-49kcs9fst5] {
    display: flex;
    align-self: stretch;
    width: calc(100% + 24px);
    margin: 0 -12px 4px;
    padding: 8px 12px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: #323537;
    gap: 0;
}

.quser_mode_toggle_btn[b-49kcs9fst5] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    color: #4b5563;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

    .quser_mode_toggle_btn .quser_menu_icon_mode[b-49kcs9fst5] {
        width: 22px;
        height: 22px;
    }

.quser_mode_toggle_embedded .quser_mode_toggle_btn[b-49kcs9fst5] {
    flex: 1 1 0;
    justify-content: center;
    color: #ffffff;
    padding: 8px 14px;
}

.quser_mode_toggle_embedded .quser_mode_toggle_btn:not(.quser_mode_toggle_btn_active)[b-49kcs9fst5] {
    color: #ffffff;
    background: transparent;
}

.quser_mode_toggle_btn:hover:not([disabled])[b-49kcs9fst5] {
    color: #111827;
}

.quser_mode_toggle_embedded .quser_mode_toggle_btn:hover:not([disabled]):not(.quser_mode_toggle_btn_active)[b-49kcs9fst5] {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.quser_mode_toggle_btn[disabled][b-49kcs9fst5] {
    opacity: 0.6;
    cursor: not-allowed;
}

.quser_mode_toggle_btn_active[b-49kcs9fst5] {
    background: #ffffff;
    color: #111827;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.quser_mode_toggle_embedded .quser_mode_toggle_btn_active[b-49kcs9fst5] {
    background: #ffffff;
    color: #323537;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ── Extra status pill variants used by the Gabinete panel ── */
.quser_status_pill_info[b-49kcs9fst5] {
    color: var(--quser-accent-dark);
    background: var(--quser-accent-soft);
    border-color: var(--quser-accent-border);
}

/* Session card extras: thin separators and a bottom action zone for "Fechar gabinete" */
.quser_session_meta_separator[b-49kcs9fst5] {
    height: 1px;
    background: #eef0f3;
    margin: 4px 0;
}

.quser_session_meta_actions[b-49kcs9fst5] {
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

/* Hint text rendered next to a section heading (eg. "Selecione uma operação ...") */
.quser_section_heading_hint[b-49kcs9fst5] {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
    margin-left: auto;
}

/* Note block inside the current attendance card */
.quser_note_block[b-49kcs9fst5] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 8px;
    flex: 1;
    min-width: 200px;
    align-self: stretch;
}

.quser_note_label[b-49kcs9fst5] {
    font-size: 11px;
    font-weight: 600;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.quser_note_text[b-49kcs9fst5] {
    font-size: 13px;
    color: #1f2933;
    line-height: 1.4;
}

/* Priority pill — legacy QUser WPF triage colors (populatecomboPriorityServicesRedirect) */
.quser_priority_pill[b-49kcs9fst5] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid transparent;
    box-sizing: border-box;
}

.quser_priority_0[b-49kcs9fst5] {
    background: #d9ebf5;
    color: #475569;
    border-color: #b8d4e8;
}

.quser_priority_1[b-49kcs9fst5] {
    background: #e8f6fc;
    color: #0369a1;
    border-color: #00acee;
}

.quser_priority_2[b-49kcs9fst5] {
    background: #fff8e0;
    color: #b45309;
    border-color: #f3d878;
}

.quser_priority_3[b-49kcs9fst5] {
    background: #fff0e6;
    color: #e85d04;
    border-color: #f5c4a0;
}

.quser_priority_4[b-49kcs9fst5] {
    background: #fde8e0;
    color: #b91c1c;
    border-color: #f0b8a8;
}

.quser_priority_5[b-49kcs9fst5] {
    background: #fce8ea;
    color: #c61620;
    border-color: #e8a0a8;
}

.quser_priority_dropdown .e-input-group[b-49kcs9fst5] {
    min-height: 36px;
}

.quser_priority_dropdown .quser_priority_pill[b-49kcs9fst5] {
    width: 100%;
}

.quser_redirect_waiting_section[b-49kcs9fst5] {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eef0f3;
}

.quser_redirect_waiting_heading[b-49kcs9fst5] {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.quser_suspended_withdraw_row[b-49kcs9fst5] {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef0f3;
}

/* Tab bar used to choose the redirect destination type (Serviços / Gabinetes / Balcões) */
.quser_tabbar[b-49kcs9fst5] {
    display: inline-flex;
    background: #f1f5f9;
    border: 1px solid #e3e8ee;
    border-radius: 8px;
    padding: 2px;
    gap: 2px;
    margin-bottom: 12px;
}

.quser_tabbar_btn[b-49kcs9fst5] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: background-color 0.12s, color 0.12s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

    .quser_tabbar_btn .quser_menu_icon_tab[b-49kcs9fst5] {
        width: 18px;
        height: 18px;
    }

    .quser_tabbar_btn:hover:not(.quser_tabbar_btn_active)[b-49kcs9fst5] {
        color: #1f2933;
    }

.quser_tabbar_btn_active[b-49kcs9fst5] {
    background: #ffffff;
    color: var(--quser-accent-dark);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

/* ── Responsive collapse ── */
@media (max-width: 1100px) {
    .quser_kpi_grid[b-49kcs9fst5],
    .quser_kpi_grid_compact[b-49kcs9fst5] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quser_modern_grid[b-49kcs9fst5],
    .quser_desk_workspace[b-49kcs9fst5] {
        grid-template-columns: 1fr;
    }

    .quser_current_card_compact .quser_current_details[b-49kcs9fst5] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .quser_desk_ops_sidebar[b-49kcs9fst5] {
        position: static;
        max-height: none;
        order: -1;
    }

    .quser_tiles_sidebar[b-49kcs9fst5] {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 720px) {
    .quser_modern_setup_grid[b-49kcs9fst5] {
        grid-template-columns: 1fr;
    }

    .quser_current_hero[b-49kcs9fst5] {
        flex-direction: column;
    }

    .quser_current_card_compact .quser_current_split[b-49kcs9fst5] {
        grid-template-columns: 1fr;
    }

    .quser_current_card_compact .quser_action_bar_inline[b-49kcs9fst5] {
        flex-wrap: wrap;
    }

    .quser_current_card_compact .quser_ticket_side_value[b-49kcs9fst5] {
        font-size: 36px;
    }

    .quser_kpi_value[b-49kcs9fst5],
    .quser_kpi_card_desk .quser_kpi_value[b-49kcs9fst5] {
        font-size: 30px;
    }

    .quser_kpi_grid_compact .quser_kpi_value[b-49kcs9fst5],
    .quser_kpi_grid_compact .quser_kpi_card_desk .quser_kpi_value[b-49kcs9fst5] {
        font-size: 24px;
    }

    .quser_current_card_compact .quser_current_details[b-49kcs9fst5] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quser_current_meta[b-49kcs9fst5] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quser_kpi_grid[b-49kcs9fst5],
    .quser_kpi_grid_compact[b-49kcs9fst5] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* /Pages/Templates/EditTemplate.razor.rz.scp.css */
/* EditTemplate - toolbar + tabs + 3-panel layout */

/* ========== Wrapper ========== */
.template_editor_wrapper[b-oymjage11d] {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px);
    min-height: 500px;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f0f0;
}

/* ========== Top Toolbar ========== */
.template_editor_toolbar[b-oymjage11d] {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px 8px;
    background: #323537;
    border-bottom: 1px solid #222;
    flex-shrink: 0;
    min-height: 36px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.template_editor_toolbar_sep[b-oymjage11d] {
    width: 1px;
    height: 22px;
    background: #ccc;
    margin: 0 4px;
    flex-shrink: 0;
}

.template_editor_toolbar_btn[b-oymjage11d] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    transition: background 0.1s, border-color 0.1s;
    flex-shrink: 0;
}

.template_editor_toolbar_btn:hover[b-oymjage11d] {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.template_editor_toolbar_btn:active[b-oymjage11d] {
    background: rgba(37,149,210,0.2);
}

.template_editor_toolbar_btn:disabled[b-oymjage11d] {
    color: rgba(255, 255, 255, 0.35);
    cursor: default;
}

.template_editor_toolbar_btn:disabled:hover[b-oymjage11d] {
    background: transparent;
    border-color: transparent;
}

.template_editor_toolbar_btn img[b-oymjage11d] {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.template_editor_toolbar_btn:disabled img[b-oymjage11d] {
    opacity: 0.3;
}

/* ========== Tab Bar ========== */
.template_editor_tabbar[b-oymjage11d] {
    display: flex;
    align-items: flex-end;
    gap: 0;
    padding: 0 8px;
    background: #e0e0e0;
    border-bottom: 1px solid #ccc;
    flex-shrink: 0;
    min-height: 30px;
    overflow-x: auto;
}

.template_editor_tab[b-oymjage11d] {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 12px;
    color: #666;
    background: #d8d8d8;
    border: 1px solid #c0c0c0;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    user-select: none;
    margin-right: -1px;
    position: relative;
    top: 1px;
    transition: background 0.1s;
    white-space: nowrap;
    max-width: 200px;
}

.template_editor_tab:hover[b-oymjage11d] {
    background: #e8e8e8;
}

.template_editor_tab_active[b-oymjage11d] {
    background: #f0f0f0;
    color: #333;
    font-weight: 600;
    border-color: #ccc;
    z-index: 1;
}

.template_editor_tab_name[b-oymjage11d] {
    overflow: hidden;
    text-overflow: ellipsis;
}

.template_editor_tab_dirty[b-oymjage11d] {
    color: #e67e22;
    font-weight: 700;
    margin-left: -2px;
}

.template_editor_tab_close[b-oymjage11d] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 14px;
    color: #999;
    background: transparent;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.template_editor_tab_close:hover[b-oymjage11d] {
    background: rgba(0,0,0,0.1);
    color: #c0392b;
}

/* ========== Main 3-panel layout ========== */
.template_editor_main[b-oymjage11d] {
    display: flex;
    flex: 1;
    min-height: 0;
    gap: 0;
    overflow: hidden;
    background: #f0f0f0;
}

/* ========== LEFT: Toolbox ========== */
.template_editor_toolbox_wrap[b-oymjage11d] {
    flex: 0 0 52px;
    width: 52px;
    min-width: 52px;
    max-width: 52px;
    position: relative;
    z-index: 900;
    overflow: visible;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.template_editor_toolbox_wrap_expanded[b-oymjage11d] {
    flex: 0 0 186px;
    width: 186px;
    min-width: 186px;
    max-width: 186px;
    background: #fff;
    border-right: 0 none;
}

.template_editor_toolbox_toggle[b-oymjage11d] {
    width: 100%;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0 none;
    border-bottom: 0 none;
    background: #fff;
    color: #555;
    font-size: 11px;
    cursor: pointer;
    padding: 4px 6px;
    flex-shrink: 0;
}

.template_editor_toolbox_toggle:hover[b-oymjage11d] {
    background: #f5f5f5;
}

.template_editor_toolbox_toggle_icon[b-oymjage11d] {
    font-size: 13px;
    line-height: 1;
}

.template_editor_toolbox_toggle_text[b-oymjage11d] {
    display: none;
}

.template_editor_toolbox_wrap_expanded .template_editor_toolbox_toggle[b-oymjage11d] {
    justify-content: flex-start;
    padding: 5px 8px;
}

.template_editor_toolbox_wrap_expanded .template_editor_toolbox_toggle_text[b-oymjage11d] {
    display: inline;
}

.template_editor_toolbox[b-oymjage11d] {
    width: 52px;
    height: calc(100% - 28px);
    background: transparent;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 0;
    gap: 2px;
    box-sizing: border-box;
}

.template_editor_toolbox_btn[b-oymjage11d] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 46px;
    padding: 6px 2px;
    margin: 0;
    border: 0 none;
    border-radius: 6px;
    background: none;
    color: #666;
    font-size: 9px;
    font-weight: 400;
    cursor: pointer;
    line-height: 1.1;
    text-align: center;
    outline: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

.template_editor_toolbox_btn span[b-oymjage11d] {
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.template_editor_toolbox_btn:hover[b-oymjage11d] {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
}

.template_editor_toolbox_btn_active[b-oymjage11d] {
    color: #8b3dff;
    background: #f0ebff;
}

.template_editor_toolbox_btn:focus[b-oymjage11d] {
    outline: none;
    box-shadow: none;
}

.template_editor_toolbox_btn img[b-oymjage11d] {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.template_editor_toolbox_popup[b-oymjage11d] {
    position: absolute;
    left: 100%;
    width: 190px;
    background: rgba(255, 255, 255, 0.96);
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    z-index: 999999;
    overflow: hidden;
}

.template_editor_toolbox_expanded[b-oymjage11d] {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px 0 6px;
    background: #fff;
}

.template_editor_toolbox_expanded_group[b-oymjage11d] {
    margin-bottom: 2px;
}

.template_editor_toolbox_expanded_header[b-oymjage11d] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px;
    background: #d7e5ec;
    color: #1c2f3a;
    font-size: 12px;
    font-weight: 600;
    border: 0 none;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.template_editor_toolbox_expanded_header:hover[b-oymjage11d] {
    background: #cfe0e8;
}

.template_editor_toolbox_expanded_header_left[b-oymjage11d] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.template_editor_toolbox_expanded_toggle[b-oymjage11d] {
    display: inline-flex;
    width: 14px;
    justify-content: center;
    font-weight: 700;
}

.template_editor_toolbox_expanded_header img[b-oymjage11d] {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.template_editor_toolbox_expanded_item[b-oymjage11d] {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px 6px 12px;
    border: 0 none;
    background: transparent;
    text-align: left;
    font-size: 12px;
    color: #222;
    cursor: pointer;
}

.template_editor_toolbox_expanded_item img[b-oymjage11d] {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.template_editor_toolbox_expanded_item:hover[b-oymjage11d] {
    background: #ececec;
}

.template_editor_toolbox_expanded_item:disabled[b-oymjage11d] {
    color: #888;
    cursor: default;
}

.template_editor_toolbox_expanded_item:disabled img[b-oymjage11d] {
    opacity: 0.6;
}

.template_editor_toolbox_expanded_item:disabled:hover[b-oymjage11d] {
    background: transparent;
}

.template_editor_toolbox_popup_header[b-oymjage11d] {
    padding: 6px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #1c2f3a;
    background: #d7e5ec;
    border: 0 none;
}

.template_editor_toolbox_popup_list[b-oymjage11d] {
    padding: 2px 0;
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.template_editor_toolbox_item[b-oymjage11d] {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 5px 8px;
    font-size: 12px;
    color: #222;
    background: none;
    border: 0 none;
    text-align: left;
    cursor: pointer;
    outline: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    transition: background 0.1s;
}

.template_editor_toolbox_item img[b-oymjage11d] {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.template_editor_toolbox_item:hover[b-oymjage11d] {
    background: #ececec;
}

.template_editor_toolbox_item:focus[b-oymjage11d] {
    outline: none;
    box-shadow: none;
}

.template_editor_toolbox_item:disabled[b-oymjage11d] {
    color: #888;
    cursor: default;
}

.template_editor_toolbox_item:disabled img[b-oymjage11d] {
    opacity: 0.6;
}

.template_editor_toolbox_item:disabled:hover[b-oymjage11d] {
    background: transparent;
    color: #888;
}

/* ========== CENTER: Canvas area ========== */
.template_editor_center[b-oymjage11d] {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    height: 100%;
}

/* ========== RIGHT: Properties panel ========== */
.template_editor_properties[b-oymjage11d] {
    flex: 0 0 48px;
    min-width: 48px;
    max-width: 48px;
    overflow: hidden;
    border-left: 1px solid #ccc;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: flex-basis 0.15s ease, min-width 0.15s ease, max-width 0.15s ease;
}

.template_editor_properties_expanded[b-oymjage11d] {
    flex: 0 0 320px;
    min-width: 320px;
    max-width: 320px;
}

.template_editor_properties_collapsed[b-oymjage11d] {
    flex: 0 0 48px;
    min-width: 48px;
    max-width: 48px;
}

.template_editor_properties_visible[b-oymjage11d] {
    width: 320px;
    min-width: 320px;
    max-width: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px;
    box-sizing: border-box;
}

.template_editor_prop_header[b-oymjage11d] {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #2595D2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.template_editor_prop_close[b-oymjage11d] {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.template_editor_prop_close:hover[b-oymjage11d] {
    color: #333;
}

.template_editor_prop_section[b-oymjage11d] {
    margin-bottom: 14px;
}

.template_editor_prop_section_title[b-oymjage11d] {
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid #eee;
}

.template_editor_prop_actions[b-oymjage11d] {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.template_editor_action_btn[b-oymjage11d] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 16px;
    height: 30px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    background: #2595D2;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    width: auto;
    min-width: fit-content;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.2s;
}

.template_editor_action_btn:hover[b-oymjage11d] {
    background: #1e7fb5;
}

.template_editor_no_selection[b-oymjage11d] {
    color: #999;
    text-align: center;
    padding: 40px 16px;
    font-size: 13px;
}

/* ========== Color picker controls ========== */
.template_editor_color_row[b-oymjage11d] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.template_editor_color_swatch[b-oymjage11d] {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 1px solid #ccc;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}

.template_editor_color_swatch:hover[b-oymjage11d] {
    border-color: #2595D2;
    box-shadow: 0 0 0 2px rgba(37,149,210,0.2);
}

.template_editor_color_input[b-oymjage11d] {
    width: 0;
    height: 0;
    padding: 0;
    border: none;
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

.template_editor_color_hex[b-oymjage11d] {
    flex: 1;
    height: 30px;
    font-size: 12px;
    font-family: 'Consolas', 'Courier New', monospace;
    padding: 0 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fafafa;
    color: #333;
    text-transform: uppercase;
    min-width: 0;
    box-sizing: border-box;
    line-height: 28px;
}

.template_editor_color_hex:focus[b-oymjage11d] {
    border-color: #2595D2;
    outline: none;
    background: #fff;
}

.template_editor_opacity_row[b-oymjage11d] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.template_editor_opacity_slider[b-oymjage11d] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, transparent, var(--slider-color, #2595D2));
    border-radius: 3px;
    border: 1px solid #0000001a;
    outline: none;
    cursor: pointer;
}

.template_editor_opacity_slider[b-oymjage11d]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #2595D2;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.template_editor_opacity_slider[b-oymjage11d]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #2595D2;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.template_editor_opacity_value[b-oymjage11d] {
    font-size: 11px;
    min-width: 36px;
    text-align: right;
    color: #666;
    font-weight: 600;
}

.template_editor_radius_slider[b-oymjage11d] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #ddd, #888);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.template_editor_radius_slider[b-oymjage11d]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #666;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.template_editor_radius_slider[b-oymjage11d]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #666;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ========== Per-corner radius editor (Illustrator-style) ========== */
.template_editor_corners[b-oymjage11d] {
    display: flex;
    justify-content: center;
    padding: 4px 0 6px 0;
}

.template_editor_corner_grid[b-oymjage11d] {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 8px;
    row-gap: 8px;
    align-items: center;
    width: 100%;
    max-width: 240px;
}

.template_editor_corner_cell[b-oymjage11d] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.template_editor_corner_cell_tl[b-oymjage11d],
.template_editor_corner_cell_bl[b-oymjage11d] {
    grid-column: 1;
    justify-content: flex-start;
}

.template_editor_corner_cell_tr[b-oymjage11d],
.template_editor_corner_cell_br[b-oymjage11d] {
    grid-column: 3;
    justify-content: flex-end;
}

.template_editor_corner_cell_tl[b-oymjage11d] { grid-row: 1; }
.template_editor_corner_cell_tr[b-oymjage11d] { grid-row: 1; }
.template_editor_corner_cell_bl[b-oymjage11d] { grid-row: 2; }
.template_editor_corner_cell_br[b-oymjage11d] { grid-row: 2; }

.template_editor_corner_icon[b-oymjage11d] {
    color: #888;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.template_editor_corner_input[b-oymjage11d] {
    width: 56px;
    height: 26px;
    padding: 0 6px;
    font-size: 12px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #333;
    box-sizing: border-box;
}

.template_editor_corner_input:focus[b-oymjage11d] {
    outline: none;
    border-color: #2595D2;
    box-shadow: 0 0 0 2px rgba(37,149,210,0.15);
}

.template_editor_corner_link_wrap[b-oymjage11d] {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.template_editor_corner_link[b-oymjage11d] {
    width: 26px;
    height: 26px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f5f5f5;
    color: #888;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.template_editor_corner_link:hover[b-oymjage11d] {
    background: #ececec;
    color: #555;
}

.template_editor_corner_link_on[b-oymjage11d] {
    background: #2595D2;
    border-color: #2595D2;
    color: #fff;
}

.template_editor_corner_link_on:hover[b-oymjage11d] {
    background: #1f82ba;
    color: #fff;
}

/* ========== FontPicker / ImagePicker: no borders (override Bootstrap) ========== */
.template_editor_properties .font_picker_trigger[b-oymjage11d],
.template_editor_properties .font_picker_search[b-oymjage11d],
.template_editor_properties .font_picker_dropdown[b-oymjage11d],
.template_editor_properties .font_picker_item[b-oymjage11d],
.template_editor_properties .font_picker_search_clear[b-oymjage11d],
.template_editor_properties .img_picker_trigger[b-oymjage11d],
.template_editor_properties .img_picker_search[b-oymjage11d],
.template_editor_properties .img_picker_dropdown[b-oymjage11d],
.template_editor_properties .img_picker_item[b-oymjage11d],
.template_editor_properties .img_picker_preview[b-oymjage11d],
.template_editor_properties .img_picker_item_thumb[b-oymjage11d] {
    border: none !important;
}

.template_editor_properties .font_picker_trigger:focus[b-oymjage11d],
.template_editor_properties .font_picker_search:focus[b-oymjage11d],
.template_editor_properties .img_picker_trigger:focus[b-oymjage11d],
.template_editor_properties .img_picker_search:focus[b-oymjage11d] {
    outline: none !important;
    box-shadow: none !important;
}

/* ========== Responsive (tablet / mobile) ========== */
@media (max-width: 1024px) {
    .template_editor_wrapper[b-oymjage11d] {
        height: calc(100dvh - 56px);
        min-height: 0;
        border-radius: 0;
    }

    .template_editor_main[b-oymjage11d] {
        flex-direction: column;
    }

    .template_editor_toolbox_wrap[b-oymjage11d],
    .template_editor_toolbox_wrap_expanded[b-oymjage11d] {
        flex: 0 0 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #ddd;
        max-height: 220px;
    }

    .template_editor_toolbox[b-oymjage11d] {
        width: 100% !important;
        height: auto !important;
        max-height: 180px;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        padding: 6px 8px !important;
    }

    .template_editor_toolbox_btn[b-oymjage11d] {
        width: auto !important;
        min-width: 52px;
    }

    .template_editor_toolbox_popup[b-oymjage11d] {
        left: 8px !important;
        top: auto !important;
        margin-top: 4px;
        max-width: calc(100vw - 24px);
    }

    .template_editor_center[b-oymjage11d] {
        flex: 1 1 auto;
        min-height: 280px;
        width: 100%;
    }

    .template_editor_properties_expanded[b-oymjage11d],
    .template_editor_properties_collapsed[b-oymjage11d] {
        flex: 0 0 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        border-left: none !important;
        border-top: 1px solid #ccc;
    }

    .template_editor_properties_expanded[b-oymjage11d] {
        max-height: min(45vh, 420px);
    }

    .template_editor_properties_collapsed[b-oymjage11d] {
        max-height: 40px;
    }
}

@media (max-width: 768px) {
    .template_editor_toolbar[b-oymjage11d] {
        flex-wrap: nowrap;
        gap: 4px;
        padding: 6px 8px;
    }

    .template_editor_toolbar_btn[b-oymjage11d] {
        padding: 6px;
        font-size: 0;
    }

    .template_editor_toolbar_btn img[b-oymjage11d] {
        width: 18px;
        height: 18px;
        opacity: 0.9;
    }

    .template_editor_toolbar > span[b-oymjage11d] {
        display: none;
    }

    .template_editor_tab[b-oymjage11d] {
        max-width: 140px;
        padding: 5px 10px;
    }

    .template_editor_toolbox_wrap[b-oymjage11d],
    .template_editor_toolbox_wrap_expanded[b-oymjage11d] {
        max-height: 200px;
    }

    .template_editor_center[b-oymjage11d] {
        min-height: 240px;
    }
}
/* /Pages/Templates/FontPicker.razor.rz.scp.css */
.font_picker[b-lficch9921] {
    position: relative;
    width: 100%;
}

[b-lficch9921] .font_picker_dropdownlist.e-ddl,
[b-lficch9921] .font_picker_dropdownlist.e-control-wrapper {
    border: 1px solid #d1d5db !important;
    box-shadow: none !important;
    border-radius: 4px !important;
    background: #fff !important;
    min-height: 0 !important;
    height: auto !important;
}

[b-lficch9921] .font_picker_dropdownlist.e-input-group,
[b-lficch9921] .font_picker_dropdownlist.e-ddl.e-input-group {
    border: 1px solid #d1d5db !important;
    box-shadow: none !important;
    background: #fff !important;
}

[b-lficch9921] .font_picker_dropdownlist .e-input-value,
[b-lficch9921] .font_picker_dropdownlist .e-input {
    font-size: 14px !important;
    color: #333 !important;
}

[b-lficch9921] .font_picker_dropdownlist .e-input-value {
    display: flex !important;
    align-items: center !important;
    min-height: 0 !important;
    padding: 4px 0 !important;
}

[b-lficch9921] .font_picker_dropdownlist .e-ddl-icon {
    color: #888 !important;
}

[b-lficch9921] .font_picker_dropdownlist.e-popup {
    border: 0 none !important;
    border-radius: 6px !important;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12) !important;
}

[b-lficch9921] .font_picker_dropdownlist.e-popup .e-list-item {
    border: 0 none !important;
    padding: 6px 10px !important;
    line-height: 1.2 !important;
}

.font_picker_item_preview_sync[b-lficch9921],
.font_picker_value_preview_sync[b-lficch9921] {
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.font_picker_value_preview_sync[b-lficch9921] {
    padding-left: 6px;
}
/* /Pages/Templates/ImagePicker.razor.rz.scp.css */
.img_picker[b-of92chpvz1] {
    position: relative;
    width: 100%;
}

[b-of92chpvz1] .img_picker_dropdownlist.e-ddl,
[b-of92chpvz1] .img_picker_dropdownlist.e-control-wrapper {
    border: 1px solid #d1d5db !important;
    box-shadow: none !important;
    border-radius: 4px !important;
    background: #fff !important;
    min-height: 0 !important;
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
}

[b-of92chpvz1] .img_picker_dropdownlist.e-input-group,
[b-of92chpvz1] .img_picker_dropdownlist.e-ddl.e-input-group {
    border: 1px solid #d1d5db !important;
    box-shadow: none !important;
    background: #fff !important;
}

[b-of92chpvz1] .img_picker_dropdownlist .e-input-value,
[b-of92chpvz1] .img_picker_dropdownlist .e-input {
    font-size: 14px !important;
    color: #333 !important;
}

[b-of92chpvz1] .img_picker_dropdownlist .e-input-value {
    display: flex !important;
    align-items: center !important;
    min-height: 0 !important;
    min-width: 0 !important;
    padding: 4px 0 !important;
    overflow: hidden !important;
}

[b-of92chpvz1] .img_picker_dropdownlist .e-ddl-icon {
    color: #888 !important;
}

[b-of92chpvz1] .img_picker_dropdownlist.e-popup {
    border: 0 none !important;
    border-radius: 6px !important;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12) !important;
    max-width: 100% !important;
}

[b-of92chpvz1] .img_picker_dropdownlist.e-popup .e-content {
    overflow-x: hidden !important;
}

[b-of92chpvz1] .img_picker_dropdownlist.e-popup .e-list-item {
    border: 0 none !important;
    padding: 0 !important;
}

[b-of92chpvz1] .img_picker_value_sync {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding-left: 6px;
    overflow: hidden;
}

[b-of92chpvz1] .img_picker_value_thumb_sync {
    width: 16px;
    height: 16px;
    max-width: 16px;
    max-height: 16px;
    border-radius: 2px;
    object-fit: contain;
    flex-shrink: 0;
    background: #ededed;
}

[b-of92chpvz1] .img_picker_value_text_sync {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[b-of92chpvz1] .img_picker_item_sync {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 28px;
    padding: 4px 8px;
}

[b-of92chpvz1] .img_picker_item_thumb_sync {
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
    border-radius: 2px;
    object-fit: contain;
    flex-shrink: 0;
    background: #ececec;
}

[b-of92chpvz1] .img_picker_item_text_sync {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    color: #333;
}

/* /Pages/TemplateTickets/EditTicketTemplate.razor.rz.scp.css */
/* ═══════════════════════════════════════════════════
   EditTicketTemplate - scoped styles
   Layout is driven by inline styles (same as EditTemplate).
   This file handles hover/active/disabled states,
   toolbox visuals, ticket canvas, and property fields.
   ═══════════════════════════════════════════════════ */

/* ========== Toolbar button states ========== */

.template_editor_toolbar_btn:hover[b-m9ia5ua43e] {
    background: rgba(37, 149, 210, 0.1);
    border-color: rgba(37, 149, 210, 0.3);
}

.template_editor_toolbar_btn:active[b-m9ia5ua43e] {
    background: rgba(37, 149, 210, 0.2);
}

.template_editor_toolbar_btn:disabled[b-m9ia5ua43e] {
    color: rgba(255, 255, 255, 0.35);
    cursor: default;
}

.template_editor_toolbar_btn:disabled:hover[b-m9ia5ua43e] {
    background: transparent;
    border-color: transparent;
}

/* ========== LEFT: Toolbox ========== */

.template_editor_toolbox_wrap[b-m9ia5ua43e] {
    flex: 0 0 52px;
    width: 52px;
    min-width: 52px;
    max-width: 52px;
    position: relative;
    z-index: 50;
    overflow: visible;
    display: flex;
    flex-direction: column;
    background: transparent;
}

.template_editor_toolbox_wrap_expanded[b-m9ia5ua43e] {
    flex: 0 0 186px;
    width: 186px;
    min-width: 186px;
    max-width: 186px;
    background: #f3f3f3;
    border-right: 0 none;
}

.template_editor_toolbox_toggle[b-m9ia5ua43e] {
    width: 100%;
    border: 0 none;
    border-bottom: 0 none;
    background: #ececec;
    color: #555;
    font-size: 11px;
    cursor: pointer;
    flex-shrink: 0;
}

.template_editor_toolbox_toggle:hover[b-m9ia5ua43e] {
    background: #e3e3e3;
}

.template_editor_toolbox_wrap_expanded .template_editor_toolbox_toggle[b-m9ia5ua43e] {
    justify-content: flex-start;
    padding: 5px 8px;
}

/* -- Compact toolbox -- */

.template_editor_toolbox[b-m9ia5ua43e] {
    width: 52px;
    height: calc(100% - 28px);
    background: transparent;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 0;
    gap: 2px;
    box-sizing: border-box;
}

.template_editor_toolbox_btn[b-m9ia5ua43e] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 46px;
    padding: 6px 2px;
    margin: 0;
    border: 0 none;
    border-radius: 6px;
    background: none;
    color: #666;
    font-size: 9px;
    font-weight: 400;
    cursor: pointer;
    line-height: 1.1;
    text-align: center;
    outline: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

.template_editor_toolbox_btn:hover[b-m9ia5ua43e] {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
}

.template_editor_toolbox_btn_active[b-m9ia5ua43e] {
    color: #8b3dff;
    background: #f0ebff;
}

.template_editor_toolbox_btn:focus[b-m9ia5ua43e] {
    outline: none;
    box-shadow: none;
}

.template_editor_toolbox_btn img[b-m9ia5ua43e] {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* -- Compact popup -- */

.template_editor_toolbox_popup[b-m9ia5ua43e] {
    position: absolute;
    left: 100%;
    width: 190px;
    background: rgba(255, 255, 255, 0.96);
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    z-index: 999999;
    overflow: hidden;
}

.template_editor_toolbox_popup_header[b-m9ia5ua43e] {
    padding: 6px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #1c2f3a;
    background: #d7e5ec;
    border: 0 none;
}

.template_editor_toolbox_popup_list[b-m9ia5ua43e] {
    padding: 2px 0;
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.template_editor_toolbox_item[b-m9ia5ua43e] {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 5px 8px;
    font-size: 12px;
    color: #222;
    background: none;
    border: 0 none;
    text-align: left;
    cursor: pointer;
    outline: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    transition: background 0.1s;
}

.template_editor_toolbox_item img[b-m9ia5ua43e] {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.template_editor_toolbox_item:hover[b-m9ia5ua43e] {
    background: #ececec;
}

.template_editor_toolbox_item:focus[b-m9ia5ua43e] {
    outline: none;
    box-shadow: none;
}

/* -- Expanded toolbox -- */

.template_editor_toolbox_expanded[b-m9ia5ua43e] {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px 0 6px;
    background: #f3f3f3;
}

.template_editor_toolbox_expanded_group[b-m9ia5ua43e] {
    margin-bottom: 2px;
}

.template_editor_toolbox_expanded_header[b-m9ia5ua43e] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px;
    background: #d7e5ec;
    color: #1c2f3a;
    font-size: 12px;
    font-weight: 600;
    border: 0 none;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.template_editor_toolbox_expanded_header:hover[b-m9ia5ua43e] {
    background: #cfe0e8;
}

.template_editor_toolbox_expanded_header_left[b-m9ia5ua43e] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.template_editor_toolbox_expanded_toggle[b-m9ia5ua43e] {
    display: inline-flex;
    width: 14px;
    justify-content: center;
    font-weight: 700;
}

.template_editor_toolbox_expanded_header img[b-m9ia5ua43e] {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.template_editor_toolbox_expanded_item[b-m9ia5ua43e] {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px 6px 12px;
    border: 0 none;
    background: transparent;
    text-align: left;
    font-size: 12px;
    color: #222;
    cursor: pointer;
}

.template_editor_toolbox_expanded_item img[b-m9ia5ua43e] {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.template_editor_toolbox_expanded_item:hover[b-m9ia5ua43e] {
    background: #ececec;
}

/* ========== CENTER: Ticket canvas ========== */

.ticket_canvas_area[b-m9ia5ua43e] {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    padding: 24px 16px;
    background: #e0e0e0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    box-sizing: border-box;
}

.ticket_canvas_receipt[b-m9ia5ua43e] {
    width: 340px;
    min-height: 200px;
    flex-shrink: 0;
    align-self: flex-start;
    background: #fff;
    border-radius: 2px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.15),
        0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 20px 16px;
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    color: #000;
    position: relative;
}

.ticket_canvas_receipt[b-m9ia5ua43e]::before,
.ticket_canvas_receipt[b-m9ia5ua43e]::after {
    content: "";
    display: block;
    height: 8px;
    margin: 0 -16px;
}

.ticket_canvas_receipt[b-m9ia5ua43e]::before {
    margin-top: -20px;
    margin-bottom: 12px;
    background: repeating-linear-gradient(90deg, transparent, transparent 4px, #e0e0e0 4px, #e0e0e0 8px);
}

.ticket_canvas_receipt[b-m9ia5ua43e]::after {
    margin-bottom: -20px;
    margin-top: 12px;
    background: repeating-linear-gradient(90deg, transparent, transparent 4px, #e0e0e0 4px, #e0e0e0 8px);
}

.ticket_canvas_receipt_upside[b-m9ia5ua43e] {
    transform: rotate(180deg);
}

.ticket_canvas_empty[b-m9ia5ua43e] {
    padding: 40px 16px;
    text-align: center;
    color: #aaa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    margin: 8px 0;
}

.ticket_canvas_empty p[b-m9ia5ua43e] {
    margin: 4px 0;
}

.ticket_canvas_not_found[b-m9ia5ua43e] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #999;
    font-size: 14px;
}

/* -- Elements -- */

.ticket_canvas_element[b-m9ia5ua43e] {
    position: relative;
    padding: 6px 8px;
    margin: 0 -4px;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.ticket_canvas_element:hover[b-m9ia5ua43e] {
    border-color: rgba(37, 149, 210, 0.3);
    background: rgba(37, 149, 210, 0.02);
}

.ticket_canvas_element_selected[b-m9ia5ua43e] {
    border-color: #2595D2;
    background: rgba(37, 149, 210, 0.05);
    box-shadow: 0 0 0 1px rgba(37, 149, 210, 0.15);
}

/* -- Move buttons -- */

.ticket_canvas_element_actions[b-m9ia5ua43e] {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    opacity: 0;
    transition: opacity 0.15s;
}

.ticket_canvas_element:hover .ticket_canvas_element_actions[b-m9ia5ua43e],
.ticket_canvas_element_selected .ticket_canvas_element_actions[b-m9ia5ua43e] {
    opacity: 1;
}

.ticket_canvas_move_btn[b-m9ia5ua43e] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 18px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #aaa;
    font-size: 9px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.1s;
}

.ticket_canvas_move_btn:hover:not(:disabled)[b-m9ia5ua43e] {
    background: rgba(37, 149, 210, 0.12);
    color: #2595D2;
    transform: scale(1.15);
}

.ticket_canvas_move_btn:active:not(:disabled)[b-m9ia5ua43e] {
    background: rgba(37, 149, 210, 0.22);
    color: #1a7db5;
    transform: scale(0.95);
}

.ticket_canvas_move_btn:disabled[b-m9ia5ua43e] {
    opacity: 0.15;
    cursor: default;
}

.ticket_canvas_element_badge[b-m9ia5ua43e] {
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    background: rgba(37, 149, 210, 0.7);
    padding: 1px 5px;
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ticket_canvas_element:hover .ticket_canvas_element_badge[b-m9ia5ua43e],
.ticket_canvas_element_selected .ticket_canvas_element_badge[b-m9ia5ua43e] {
    opacity: 1;
}

/* Element content styling is handled via inline styles in the .razor file */

/* -- Feed spacing -- */

.ticket_canvas_feed[b-m9ia5ua43e] { position: relative; }

.ticket_canvas_feed_h_0[b-m9ia5ua43e] { height: 0; }
.ticket_canvas_feed_h_1[b-m9ia5ua43e] { height: 8px; }
.ticket_canvas_feed_h_2[b-m9ia5ua43e] { height: 16px; }
.ticket_canvas_feed_h_3[b-m9ia5ua43e] { height: 24px; }
.ticket_canvas_feed_h_4[b-m9ia5ua43e] { height: 32px; }
.ticket_canvas_feed_h_5[b-m9ia5ua43e] { height: 40px; }
.ticket_canvas_feed_h_6[b-m9ia5ua43e] { height: 48px; }
.ticket_canvas_feed_h_7[b-m9ia5ua43e] { height: 56px; }
.ticket_canvas_feed_h_8[b-m9ia5ua43e] { height: 64px; }
.ticket_canvas_feed_h_9[b-m9ia5ua43e] { height: 72px; }
.ticket_canvas_feed_h_10[b-m9ia5ua43e] { height: 80px; }
.ticket_canvas_feed_h_11[b-m9ia5ua43e] { height: 88px; }
.ticket_canvas_feed_h_12[b-m9ia5ua43e] { height: 96px; }
.ticket_canvas_feed_h_13[b-m9ia5ua43e] { height: 104px; }
.ticket_canvas_feed_h_14[b-m9ia5ua43e] { height: 112px; }
.ticket_canvas_feed_h_15[b-m9ia5ua43e] { height: 120px; }
.ticket_canvas_feed_h_16[b-m9ia5ua43e] { height: 128px; }
.ticket_canvas_feed_h_17[b-m9ia5ua43e] { height: 136px; }
.ticket_canvas_feed_h_18[b-m9ia5ua43e] { height: 144px; }
.ticket_canvas_feed_h_19[b-m9ia5ua43e] { height: 152px; }
.ticket_canvas_feed_h_20[b-m9ia5ua43e] { height: 160px; }

.ticket_canvas_feed_global[b-m9ia5ua43e] {
    border-top: 1px dashed #ccc;
}

.ticket_canvas_feed_label[b-m9ia5ua43e] {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 9px;
    color: #bbb;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* -- Cut line -- */

.ticket_canvas_cut_line[b-m9ia5ua43e] {
    border-top: 2px dashed #999;
    text-align: center;
    padding-top: 6px;
    margin-top: 6px;
    font-size: 11px;
    color: #999;
}

/* ========== RIGHT: Properties ========== */

.template_editor_prop_section[b-m9ia5ua43e] {
    margin-bottom: 4px;
}

.template_editor_prop_section + .template_editor_prop_section[b-m9ia5ua43e] {
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.template_editor_prop_section_title[b-m9ia5ua43e] {
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    color: #555;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #2595D2;
}

.template_editor_no_selection[b-m9ia5ua43e] {
    color: #999;
    text-align: center;
    padding: 40px 16px;
    font-size: 13px;
}

/* -- Property fields -- */

.ticket_prop_field[b-m9ia5ua43e] {
    margin-bottom: 12px;
}

.ticket_prop_field > label[b-m9ia5ua43e] {
    display: block;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ticket_prop_field .filter-select[b-m9ia5ua43e] {
    width: 100%;
}

.ticket_prop_textarea[b-m9ia5ua43e] {
    resize: vertical;
    min-height: 50px;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
}

.ticket_prop_field_row[b-m9ia5ua43e] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 12px;
    padding: 8px 10px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #eee;
}

.ticket_prop_field_row label[b-m9ia5ua43e] {
    font-size: 12px;
    font-weight: 500;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    cursor: pointer;
}

.ticket_prop_field_row label input[type="checkbox"][b-m9ia5ua43e] {
    margin: 0;
}

.ticket_prop_check_label[b-m9ia5ua43e] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #eee;
    transition: background 0.1s, border-color 0.1s;
}

.ticket_prop_check_label:hover[b-m9ia5ua43e] {
    background: #eef5fa;
    border-color: #d0e3ee;
}

.ticket_prop_check_label input[type="checkbox"][b-m9ia5ua43e] {
    margin: 0;
}

.ticket_prop_field_grid[b-m9ia5ua43e] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.ticket_prop_field_grid .ticket_prop_field[b-m9ia5ua43e] {
    margin-bottom: 0;
}

/* -- Variable buttons -- */

.ticket_prop_variables[b-m9ia5ua43e] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.ticket_prop_var_btn[b-m9ia5ua43e] {
    padding: 3px 7px;
    font-size: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f5f5f5;
    cursor: pointer;
    color: #555;
    font-family: "Courier New", Courier, monospace;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.ticket_prop_var_btn:hover[b-m9ia5ua43e] {
    background: #2595D2;
    color: #fff;
    border-color: #2595D2;
}

.ticket_prop_var_item[b-m9ia5ua43e] {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.ticket_prop_var_info[b-m9ia5ua43e] {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e8f4fc;
    color: #2595D2;
    font-size: 10px;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    flex-shrink: 0;
}

.ticket_prop_var_legend[b-m9ia5ua43e] {
    margin-bottom: 12px;
    padding: 8px 10px;
    background: #f7fbff;
    border: 1px solid #d6ebfa;
    border-radius: 4px;
}

.ticket_prop_var_legend_item[b-m9ia5ua43e] {
    display: grid;
    grid-template-columns: 16px auto 1fr;
    align-items: start;
    gap: 6px;
    font-size: 11px;
    margin-bottom: 4px;
}

.ticket_prop_var_legend_item:last-child[b-m9ia5ua43e] {
    margin-bottom: 0;
}

/* -- Schedule list block -- */

.ticket_schedule_section[b-m9ia5ua43e] {
    margin-top: 12px;
}

.ticket_schedule_hint[b-m9ia5ua43e] {
    font-size: 11px;
    color: #666;
    margin: 0 0 10px 0;
}

.ticket_schedule_legend_title[b-m9ia5ua43e] {
    font-size: 11px;
    font-weight: 700;
    color: #2595D2;
    margin-bottom: 8px;
}

.ticket_schedule_param_table[b-m9ia5ua43e] {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.ticket_schedule_param_table th[b-m9ia5ua43e] {
    text-align: left;
    font-weight: 600;
    color: #444;
    padding: 4px 6px 4px 0;
    border-bottom: 1px solid #d6ebfa;
}

.ticket_schedule_param_table td[b-m9ia5ua43e] {
    padding: 4px 6px 4px 0;
    vertical-align: top;
    color: #666;
    border-bottom: 1px solid #eef6fc;
}

.ticket_schedule_param_table tr:last-child td[b-m9ia5ua43e] {
    border-bottom: none;
}

.ticket_schedule_param_table code[b-m9ia5ua43e] {
    font-size: 10px;
    color: #333;
    white-space: nowrap;
}

.ticket_schedule_line_card[b-m9ia5ua43e] {
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fafafa;
}

.ticket_schedule_line_header[b-m9ia5ua43e] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.ticket_schedule_line_header label[b-m9ia5ua43e] {
    font-weight: 600;
    font-size: 12px;
    margin: 0;
}

.ticket_schedule_remove_btn[b-m9ia5ua43e] {
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #c0392b;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.ticket_schedule_remove_btn:hover[b-m9ia5ua43e] {
    background: #fdecea;
    border-color: #e74c3c;
}

.ticket_schedule_insert_label[b-m9ia5ua43e] {
    font-size: 10px;
    color: #888;
    margin-top: 6px;
    margin-bottom: 2px;
}

.ticket_schedule_line_options[b-m9ia5ua43e] {
    margin-top: 6px;
}

.ticket_schedule_line_feeds[b-m9ia5ua43e] {
    margin-top: 6px;
    margin-bottom: 0;
}

.ticket_schedule_add_row[b-m9ia5ua43e] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.ticket_schedule_add_btn[b-m9ia5ua43e] {
    padding: 6px 10px;
    font-size: 12px;
    border: 1px dashed #2595D2;
    border-radius: 4px;
    background: #f7fbff;
    color: #2595D2;
    cursor: pointer;
    font-weight: 600;
}

.ticket_schedule_add_btn:hover[b-m9ia5ua43e] {
    background: #e8f4fc;
}

.ticket_schedule_preset_select[b-m9ia5ua43e] {
    font-size: 11px;
}
/* /Pages/TemplateTickets/ListTicketTemplates.razor.rz.scp.css */
.ticket_list_group[b-myg69wgm79] {
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
}

.ticket_list_group_header[b-myg69wgm79] {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    background: var(--card-bg, #f8f9fa);
    border: 0 none !important;
    outline: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #333);
    text-align: left;
    transition: background 0.15s;
}

.ticket_list_group_header:focus[b-myg69wgm79],
.ticket_list_group_header:focus-visible[b-myg69wgm79],
.ticket_list_group_header:active[b-myg69wgm79] {
    border: 0 none !important;
    outline: none;
    box-shadow: none;
}

.ticket_list_group_header:hover[b-myg69wgm79] {
    background: var(--hover-bg, #eef1f5);
}

.ticket_list_group_arrow[b-myg69wgm79] {
    font-size: 10px;
    transition: transform 0.2s;
    color: var(--text-secondary, #888);
}

.ticket_list_group_arrow_open[b-myg69wgm79] {
    transform: rotate(90deg);
}

.ticket_list_group_name[b-myg69wgm79] {
    flex: 1;
}

.ticket_list_group_count[b-myg69wgm79] {
    color: var(--text-secondary, #888);
    font-weight: 400;
    font-size: 13px;
}

.ticket_list_group_content[b-myg69wgm79] {
    padding: 8px;
}

.ticket_list_group_content.template_grid[b-myg69wgm79] {
    gap: 12px;
}

.ticket_list_template_card[b-myg69wgm79] {
    min-height: auto;
    max-width: 200px;
}

.ticket_list_template_card[b-myg69wgm79]  .template_card_image_link {
    aspect-ratio: 9 / 11;
}

.ticket_list_template_card_inverse[b-myg69wgm79] {
    border: 1px solid #999;
}

.ticket_list_template_placeholder[b-myg69wgm79] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticket_list_template_placeholder_content[b-myg69wgm79] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #6c757d;
}

.ticket_list_template_placeholder_icon[b-myg69wgm79] {
    font-size: 26px;
    line-height: 1;
}

.ticket_list_template_placeholder_text[b-myg69wgm79] {
    font-size: 12px;
    font-weight: 600;
}

/* -- Ticket preview in card -- */

.ticket_preview_container[b-myg69wgm79] {
    --ticket-scale: 0.55;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #f5f5f5;
}

.ticket_preview_scaled[b-myg69wgm79] {
    width: 340px;
    padding: 10px 12px;
    background: #fff;
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    color: #000;
    transform: scale(var(--ticket-scale, 0.52));
    transform-origin: top center;
}

.ticket_preview_container[b-myg69wgm79]::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 24px;
    background: linear-gradient(transparent, #f5f5f5);
    pointer-events: none;
}

.ticket_list_card_badge[b-myg69wgm79] {
    display: inline-flex;
    align-items: center;
    margin-top: 4px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 3px;
    background: var(--text-secondary, #888);
    color: #fff;
    text-transform: uppercase;
    width: fit-content;
}
