/* /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, low-opacity background image, 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;
}

/* Background image with ~10% opacity: horizontal for Web, vertical for mobile */
.guest-layout[b-it5p17bi34]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/background_qtrack_h.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 0;
}

@media (max-width: 768px) {
    .guest-layout[b-it5p17bi34]::before {
        background-image: url('/images/background_qtrack_v.png');
    }
}

/* 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/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;
    padding: 20px;
    position: relative;
    z-index: 10;
    font-family: 'Montserrat', Arial, sans-serif;
}

.login_logo[b-y81hnuylza] {
    margin-bottom: 0;
    text-align: center;
    background-color: var(--qtrack-blue);
    padding: 20px 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: 250px;
    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_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_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] {
    margin: 0 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.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;
}

@media (max-width: 480px) {
    .login_logo[b-y81hnuylza] {
        width: 100%;
        max-width: 100%;
        padding: 16px 0;
    }

    .login_form_container[b-y81hnuylza] {
        width: 100%;
        max-width: 100%;
    }

    .login_form[b-y81hnuylza] {
        padding: 20px;
    }

    .login_logo_img[b-y81hnuylza] {
        width: clamp(180px, 62vw, 230px);
    }
}
/* /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: linear-gradient(to bottom, #f8f8f8, #e8e8e8);
    border-bottom: 1px solid #ccc;
    flex-shrink: 0;
    min-height: 36px;
}

.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: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: 11px;
    color: #444;
    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;
}

.template_editor_toolbar_btn:hover[b-oymjage11d] {
    background: rgba(37,149,210,0.1);
    border-color: rgba(37,149,210,0.3);
}

.template_editor_toolbar_btn:active[b-oymjage11d] {
    background: rgba(37,149,210,0.2);
}

.template_editor_toolbar_btn:disabled[b-oymjage11d] {
    color: #bbb;
    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] {
    width: 0;
    min-width: 0;
    overflow: hidden;
    border-left: 1px solid #ccc;
    background: #fff;
    transition: width 0.2s ease, min-width 0.2s ease;
    flex-shrink: 0;
}

.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_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;
    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);
}

/* ========== 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 ========== */
@media (max-width: 1024px) {
    .template_editor_main[b-oymjage11d] {
        flex-direction: column;
        height: auto;
    }

    .template_editor_toolbox[b-oymjage11d] {
        width: 100%;
        min-width: 0;
        max-height: 200px;
        border-bottom: 1px solid #ddd;
    }

    .template_editor_properties_visible[b-oymjage11d] {
        width: 100%;
        min-width: 0;
        max-height: 400px;
    }
}
/* /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;
}
/* /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;
}
