/*
 * Generated helper stylesheet for the DashCode conversion.
 *
 * The DashCode download ships a pre-built app.css that only contains the
 * Tailwind classes its demo pages use. This file adds (a) the missing utility
 * classes the Supportix screens need, (b) Bootstrap colour aliases still
 * referenced by older markup, and (c) the Supportix widget rules that used to
 * live in assets/style.css.
 *
 * Re-generate with tools/convert/gen_gaps.php after changing a converted view.
 */

/* ---- missing utilities ---- */
.opacity-75{ opacity: 0.75; }
.gap-1{ gap: 0.25rem; }
.font-mono{ font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.mx-3{ margin-left: 0.75rem; margin-right: 0.75rem; }
.gap-x-6{ column-gap: 1.5rem; }
.gap-y-2{ row-gap: 0.5rem; }
.ml-1{ margin-left: 0.25rem; }
.pt-5{ padding-top: 1.25rem; }
.btn-lg{ padding: 0.75rem 1.25rem; font-size: 1rem; border-radius: 0.5rem; }

@media (min-width: 640px) {
    .sm\:col-span-6{ grid-column: span 6 / span 6; }
    .sm\:items-center{ align-items: center; }
    .sm\:flex-wrap{ flex-wrap: wrap; }
    .sm\:flex-none{ flex: none; }
}

@media (min-width: 768px) {
    .md\:p-4{ padding: 1rem; }
    .md\:col-span-5{ grid-column: span 5 / span 5; }
    .md\:col-span-4{ grid-column: span 4 / span 4; }
    .md\:w-auto{ width: auto; }
    .md\:col-span-3{ grid-column: span 3 / span 3; }
    .md\:text-right{ text-align: right; }
    .md\:gap-4{ gap: 1rem; }
    .md\:col-span-6{ grid-column: span 6 / span 6; }
    .md\:mx-4{ margin-left: 1rem; margin-right: 1rem; }
    .md\:col-span-8{ grid-column: span 8 / span 8; }
    .md\:p-6{ padding: 1.5rem; }
    .md\:py-5{ padding-top: 1.25rem; padding-bottom: 1.25rem; }
}

@media (min-width: 1024px) {
    .lg\:col-span-6{ grid-column: span 6 / span 6; }
    .lg\:items-center{ align-items: center; }
    .lg\:justify-between{ justify-content: space-between; }
}

@media (min-width: 1280px) {
    .xl\:col-span-7{ grid-column: span 7 / span 7; }
    .xl\:flex-row{ flex-direction: row; }
    .xl\:items-start{ align-items: flex-start; }
    .xl\:justify-between{ justify-content: space-between; }
    .xl\:flex-none{ flex: none; }
    .xl\:justify-end{ justify-content: flex-end; }
    .xl\:text-right{ text-align: right; }
}

/* ---- Bootstrap colour aliases ---- */
.border-danger{ border-color: #ef4444; }
.text-danger{ color: #ef4444; }
.bg-warning-subtle{ background-color: #fff7e6; }
.bg-success{ background-color: #10b981; }
.bg-info{ background-color: #0ea5e9; }
.bg-warning{ background-color: #f59e0b; }
.border-warning-subtle{ border-color: #fde68a; }
.border-danger-subtle{ border-color: #fecaca; }
.border-success-subtle{ border-color: #bbf7d0; }
.border-secondary-subtle{ border-color: #e2e8f0; }
.fs-2{ font-size: 2rem; line-height: 1.2; }
.bg-success-subtle{ background-color: #e9fbf1; }

/* ---- Supportix widgets carried over from assets/style.css ---- */
.ticket-table > tbody > tr > *{
--bs-table-bg-state: transparent;
            transition: background-color 0.12s ease, color 0.12s ease;
}
.ticket-table > tbody > tr:hover > *{
--bs-table-bg-state: #f8fbff;
            background-color: #f8fbff !important;
}
.metric-icon{
width: 2.6rem;
            height: 2.6rem;
            border-radius: 0.85rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(37, 99, 235, 0.12);
            color: var(--supportix-primary);
            font-size: 1.15rem;
}
.ticket-table > tbody > tr > *{
--bs-table-bg-state: transparent;
            transition: background-color 0.12s ease, color 0.12s ease;
}
.ticket-table > tbody > tr:hover > *{
--bs-table-bg-state: #f8fbff;
            background-color: #f8fbff !important;
}
.reply-message p:last-child,
        .reply-message ul:last-child,
        .reply-message ol:last-child,
        .reply-message blockquote:last-child{
margin-bottom: 0;
}
.reply-message blockquote{
border-left: 3px solid currentColor;
            margin: 0;
            padding-left: 0.75rem;
            opacity: 0.9;
}
.reply-message img{
display: block;
            width: min(100%, 420px);
            max-height: 320px;
            object-fit: contain;
            border-radius: 0.75rem;
            border: 1px solid rgba(15, 23, 42, 0.12);
            background: #ffffff;
}
.reply-toolbar .btn{
min-width: 2.25rem;
}
.rating-page-body{
min-height: 100vh;
    color: #0f172a;
    background: #f5f7fb;
}
.rating-page-shell{
min-height: 100vh;
}
.rating-minimal-card{
width: min(100%, 680px);
    padding: clamp(1.25rem, 4vw, 2.25rem);
    border: 1px solid #e5eaf2;
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}
.rating-minimal-logo{
display: block;
    width: min(220px, 70vw);
    height: auto;
    margin-inline: auto;
}
.rating-ticket-chip{
display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.38rem 0.75rem;
    border: 1px solid #dbe5f3;
    border-radius: 999px;
    color: #2563eb;
    background: #f8fbff;
    font-size: 0.82rem;
    font-weight: 800;
}
.rating-minimal-title{
color: #0f172a;
    font-size: clamp(1.65rem, 4vw, 2.15rem);
    line-height: 1.14;
    font-weight: 850;
    letter-spacing: -0.035em;
}
.rating-minimal-copy{
color: #64748b;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.rating-section-title{
color: #0f172a;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 800;
}
.rating-page-body .rating-stars-wrap{
padding: 1rem;
    border: 1px solid #e5eaf2;
    border-radius: 1rem;
    background: #fbfdff;
}
.rating-page-body .rating-stars-bar{
display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    width: max-content;
    max-width: 100%;
    margin-left: auto;
}
.rating-page-body .rating-star-btn{
appearance: none;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    color: #f5b301;
    background: transparent;
    font-size: 2.2rem;
    line-height: 1;
    opacity: 0.38;
    transition: transform 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}
.rating-page-body .rating-star-btn:hover,
.rating-page-body .rating-star-btn:focus-visible{
transform: translateY(-1px) scale(1.05);
    opacity: 0.72;
}
.rating-page-body .rating-star-btn.active{
color: #f5b301;
    opacity: 1;
}
.rating-page-body .rating-star-btn:focus-visible{
outline: 2px solid rgba(37, 99, 235, 0.45);
    outline-offset: 3px;
    border-radius: 0.55rem;
}
.rating-page-body .rating-meta{
display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.92rem;
}
.rating-stars-value{
color: #0f172a;
    font-weight: 850;
}
.rating-stars-caption{
color: #64748b;
    font-weight: 600;
}
.rating-remarks{
resize: vertical;
    min-height: 7rem;
    border-color: #dbe5f3;
    border-radius: 0.9rem;
    background: #fbfdff;
}
.rating-remarks:focus{
border-color: #93c5fd;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}
.rating-submit-btn{
min-height: 3.1rem;
    border-radius: 0.9rem;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}
.rating-submit-btn:hover{
transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.24);
}
.rating-privacy-note{
color: #64748b;
    font-size: 0.88rem;
}
@media (max-width: 575.98px) {
.rating-minimal-card{
border-radius: 1rem;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}
.rating-page-body .rating-stars-bar{
justify-content: center;
        width: 100%;
        margin-left: 0;
}
.rating-page-body .rating-star-btn{
width: 2.35rem;
        height: 2.35rem;
        font-size: 2rem;
}
}
.ticket-sort-controls{
flex-wrap: wrap;
}
.ticket-sort-select{
width: 180px;
}
@media (max-width: 575.98px) {
.topbar-right,
            .ticket-sort-controls{
justify-content: flex-start;
                width: 100%;
}
.ticket-sort-select{
width: 100%;
}
}
.toolbar-block{
border-bottom: 1px solid var(--supportix-border);
}
.toolbar-title{
font-size: 1.05rem;
            font-weight: 500;
            margin: 0;
}
.visitor-table-wrap{
border-top: 1px solid var(--supportix-border);
}
.visitor-table{
margin-bottom: 0;
            min-width: 980px;
}
.visitor-table thead th{
font-size: 0.74rem;
            color: var(--supportix-muted);
            text-transform: uppercase;
            letter-spacing: 0.08em;
            font-weight: 500;
            border-bottom-color: #dfe7f4;
            white-space: nowrap;
            background: #f8fbff;
            padding-top: 0.8rem;
            padding-bottom: 0.8rem;
}
.visitor-table tbody td{
border-bottom-color: #e9eff8;
            vertical-align: middle;
            padding-top: 0.8rem;
            padding-bottom: 0.8rem;
            color: #0f172a;
}
.visitor-table thead th:first-child,
        .visitor-table tbody td:first-child{
padding-left: 1.4rem;
}
.visitor-table thead th:last-child,
        .visitor-table tbody td:last-child{
padding-right: 1.4rem;
}
.visitor-table tbody tr{
transition: background-color 0.2s ease;
}
.visitor-table tbody tr:hover{
background: #f8fbff;
}
.visitor-name{
font-weight: 400;
            margin: 0;
            line-height: 1.35;
}
.visitor-meta{
color: var(--supportix-muted);
            font-size: 0.8rem;
            margin: 0;
}
.page-url{
color: #0f766e;
            text-decoration: none;
            font-weight: 500;
            word-break: break-word;
            overflow-wrap: anywhere;
}
.page-url:hover,
        .page-url:focus{
color: #115e59;
            text-decoration: underline;
}
.country-cell{
display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            white-space: nowrap;
}
.country-flag{
display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 1.35rem;
            height: 1.35rem;
            font-size: 1rem;
            line-height: 1;
            border-radius: 50%;
            background: #eef4ff;
            box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}
.country-flag-empty::before{
content: "?";
            color: var(--supportix-muted);
            font-size: 0.75rem;
            font-weight: 700;
}
.status-pill{
display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0;
            border-radius: 0;
            font-size: 0.82rem;
            font-weight: 500;
}
.live-console{
display: flex;
            flex-direction: column;
            height: calc(100vh - var(--live-console-top, 360px) - 1.5rem);
            min-height: 420px;
            max-height: 760px;
            overflow: hidden;
}
.live-console.panel-card:hover{
transform: none !important;
            box-shadow: 0 14px 35px rgba(15, 23, 42, 0.05);
}
.live-session-item{
width: 100%;
            border: 0;
            border-bottom: 1px solid var(--supportix-border);
            background: #ffffff;
            padding: 0.9rem 1rem;
            text-align: left;
            transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.live-session-name{
line-height: 1.25;
            overflow-wrap: anywhere;
}
.live-session-item:hover,
        .live-session-item:focus,
        .live-session-item.active{
background: #f8fbff;
            box-shadow: inset 3px 0 0 #2563eb;
            outline: none;
}
.live-session-item:hover{
transform: translateX(1px);
}
.live-session-item.is-ringing{
background: #fff7ed;
            box-shadow: inset 4px 0 0 #f59e0b;
            animation: live-chat-ring 1.1s ease-in-out infinite;
}
@keyframes live-chat-ring {
0%,
            100% {
                transform: translateX(0);
            }

            18% {
                transform: translateX(3px);
            }

            36% {
                transform: translateX(-2px);
            }

            54% {
                transform: translateX(2px);
            }
}
.live-status-badge{
border-radius: 999px;
            font-weight: 700;
            flex: 0 0 auto;
}
.live-status-badge.status-open{
background: #dcfce7;
            color: #166534;
}
.live-status-badge.status-pending{
background: #fef3c7;
            color: #92400e;
}
.live-status-badge.status-assigned{
background: #dbeafe;
            color: #1d4ed8;
}
.live-status-badge.status-closed{
background: #e5e7eb;
            color: #374151;
}
.live-tabs-card{
overflow: hidden;
}
.live-tabs-header{
display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            padding: 0.85rem 1rem;
            background: #ffffff;
}
.live-workspace-tabs{
gap: 0.5rem;
}
.live-workspace-tabs .nav-link{
display: inline-flex;
            align-items: center;
            border-radius: 0.7rem;
            color: #475569;
            font-weight: 800;
}
.live-workspace-tabs .nav-link.active{
background: #2563eb;
            color: #ffffff;
}
.live-workspace-tabs .nav-link.active .badge{
background: rgba(255, 255, 255, 0.2) !important;
            color: #ffffff !important;
}
.live-visitors-pane-table{
max-height: calc(100vh - 360px);
            overflow: auto;
}
.live-chat-header{
background: #ffffff;
            flex: 0 0 auto;
            padding: 1rem 1.25rem !important;
}
.live-message-thread{
flex: 1 1 0;
            max-height: none;
            min-height: 0;
            overflow-y: auto;
            padding: 1.1rem 1.25rem;
            background: linear-gradient(180deg, #f8fafc 0%, #f3f6fb 100%);
}
.live-chat-pane{
height: 100%;
            min-height: 0;
            position: relative;
            overflow: hidden;
}
.live-chat-pane.has-fixed-composer .live-message-thread{
padding-bottom: 1.1rem;
}
.live-message-thread .reply-bubble{
width: auto;
            max-width: min(76%, 780px);
            padding: 0.8rem 0.95rem;
            line-height: 1.45;
            box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}
.live-message-thread .reply-row-agent .reply-bubble{
max-width: min(72%, 760px);
}
.live-message-thread .reply-row-customer .reply-bubble{
background: #ffffff;
}
.live-message-meta{
display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            margin-bottom: 0.35rem;
            font-size: 0.82rem;
            font-weight: 700;
}
.live-message-time{
flex: 0 0 auto;
            color: #64748b;
            font-size: 0.74rem;
            font-weight: 700;
            white-space: nowrap;
}
.reply-bubble-agent .live-message-time{
color: rgba(255, 255, 255, 0.82);
}
.live-composer{
background: #ffffff;
            flex: 0 0 auto !important;
            
            position: relative;
            bottom: 0;
            left: auto;
            width: 100%;
            padding: 0.9rem 1rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
            z-index: 2;
            box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.05);
}
.live-composer-shell{
border: 1px solid #d9e3f2;
            border-radius: 0.85rem;
            background: #ffffff;
            overflow: hidden;
            box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}
.live-composer-shell.is-dragover{
border-color: #2563eb;
            background: #eff6ff;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12), 0 12px 28px rgba(15, 23, 42, 0.05);
}
.live-composer-input{
min-height: 76px;
            max-height: 130px;
            border: 0;
            border-radius: 0;
            resize: vertical;
            padding: 0.85rem 0.95rem;
            background: #ffffff;
            box-shadow: none !important;
}
.live-composer-input:focus{
background: #ffffff;
}
.live-composer-bar{
display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.85rem;
            padding: 0.65rem 0.75rem;
            border-top: 1px solid #edf2f7;
            background: #f8fafc;
}
.live-composer-tools{
display: flex;
            align-items: center;
            gap: 0.6rem;
            min-width: 0;
            flex: 1 1 auto;
}
.live-attach-btn{
display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            flex: 0 1 auto;
            min-width: 0;
            max-width: min(46vw, 280px);
            min-height: 2.5rem;
            border: 1px solid #e2e8f0;
            border-radius: 0.65rem;
            color: #475569;
            background: #ffffff;
            font-weight: 700;
            padding: 0.5rem 0.75rem;
}
.live-attach-btn span{
min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
}
.live-composer-hint{
flex: 1 1 10rem;
            min-width: 0;
            color: #718096;
            font-size: 0.8rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
}
.live-send-btn{
flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.45rem;
            min-width: 5.8rem;
            min-height: 2.75rem;
            border-radius: 0.75rem;
            font-weight: 800;
            box-shadow: 0 10px 18px rgba(37, 99, 235, 0.18);
}
.live-console > .row{
flex: 1 1 auto;
            height: 100% !important;
            min-height: 0;
}
.live-console > .row > [class*="col-"]{
min-height: 0;
}
.live-console .d-flex.flex-column{
height: 100%;
            min-height: 0;
}
@media (max-width: 991.98px) {
.live-tabs-header{
align-items: stretch;
                flex-direction: column;
}
.live-workspace-tabs{
width: 100%;
}
.live-workspace-tabs .nav-item{
flex: 1 1 0;
}
.live-workspace-tabs .nav-link{
justify-content: center;
                width: 100%;
}
.live-visitors-pane-table{
max-height: none;
}
.live-console{
height: auto;
                min-height: 0;
}
.live-message-thread{
min-height: 360px;
}
.live-message-thread .reply-bubble,
            .live-message-thread .reply-row-agent .reply-bubble{
max-width: 96%;
}
.live-composer{
padding: 0.75rem;
}
.live-composer-bar{
align-items: stretch;
}
.live-composer-tools{
flex-direction: column;
                align-items: stretch;
                gap: 0.45rem;
}
.live-attach-btn{
max-width: none;
                justify-content: center;
}
.live-composer-hint{
flex-basis: auto;
                text-align: center;
}
.live-send-btn{
min-width: 3rem;
                width: 3rem;
                padding-inline: 0;
}
.live-send-btn span{
display: none;
}
}
.category-chip{
border: 1px solid #c7d2fe;
            background: #eef2ff;
            color: #3730a3;
            font-weight: 600;
            border-radius: 999px;
            padding: 0.23rem 0.6rem;
            font-size: 0.77rem;
            display: inline-block;
            margin: 0.14rem 0.2rem 0.14rem 0;
}
.smtp-host-label{
max-width: 220px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            display: inline-block;
            vertical-align: bottom;
}
.form-hint{
font-size: 0.78rem;
            color: #64748b;
}
.brands-command-actions,
        .brand-directory-tools{
display: flex;
            align-items: center;
            gap: 0.65rem;
            flex-wrap: wrap;
}
.brands-counts{
display: flex;
            align-items: center;
            gap: 0.75rem;
            flex-wrap: wrap;
            color: var(--supportix-muted);
            font-size: 0.9rem;
}
.brands-counts span{
border: 1px solid var(--supportix-border);
            border-radius: 999px;
            background: #ffffff;
            padding: 0.4rem 0.75rem;
}
.brands-counts strong{
color: #0f172a;
}
.brands-tabs .nav-link{
border-radius: 0.6rem;
            font-weight: 600;
}
.brand-directory-card{
overflow: hidden;
}
.brand-directory-header{
display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            padding: 1rem 1.25rem;
            border-bottom: 1px solid var(--supportix-border);
            background: #ffffff;
}
.brand-directory-tools .input-group{
width: min(360px, 100%);
}
.brand-directory-table,
        .brand-mini-table{
min-width: 760px;
}
.brand-directory-table thead th,
        .brand-mini-table thead th{
color: #64748b;
            font-size: 0.72rem;
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            background: #f8fbff;
            border-bottom-color: #dbe5f3;
            white-space: nowrap;
}
.brand-directory-table tbody td,
        .brand-mini-table tbody td{
border-bottom-color: #edf2f7;
            padding-top: 0.95rem;
            padding-bottom: 0.95rem;
            vertical-align: middle;
}
.brand-directory-table tbody tr:hover,
        .brand-mini-table tbody tr:hover{
background: #f8fbff;
}
@media (max-width: 767.98px) {
.brands-command-strip,
            .brand-directory-header{
align-items: stretch;
                flex-direction: column;
}
.brands-command-actions,
            .brands-command-actions .btn,
            .brand-directory-tools,
            .brand-directory-tools .btn,
            .brand-directory-tools .input-group{
width: 100%;
}
.smtp-host-label{
max-width: 140px;
}
}
.status-pill{
border-radius: 999px;
            padding: 0.24rem 0.66rem;
            font-size: 0.74rem;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
}
.status-pill::before{
content: "";
            width: 0.42rem;
            height: 0.42rem;
            border-radius: 999px;
            display: inline-block;
}
.settings-code-box{
resize: none;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.85rem;
}
.settings-copy-btn{
position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}
.settings-brand-snippet{
border-top: 1px solid var(--supportix-border);
    padding-top: 1rem;
    margin-top: 1rem;
}
.settings-brand-snippet:first-of-type{
border-top: 0;
    padding-top: 0;
    margin-top: 0;
}
.settings-icon-badge{
align-items: center;
    background: #e0f2fe;
    border-radius: 10px;
    color: #0369a1;
    display: inline-flex;
    font-size: 1.1rem;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
}
