.label.warning{
    background: #2563eb;
    font-weight: normal;
    font-size: 14px;
    padding: 17px 10px;
    width: 100%;
    text-align: left;
}

/* Chamados: linguagem visual inspirada na interface Base44 */
.helpdesk-page {
    --helpdesk-ink: #111827;
    --helpdesk-muted: #6b7280;
    --helpdesk-border: #e5e7eb;
    --helpdesk-soft: #f8fafc;
    --helpdesk-accent: #2563eb;
    --helpdesk-accent-dark: #1d4ed8;
    --helpdesk-accent-soft: #eff6ff;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.theme-blue {
    --app-primary: #2563eb;
    --app-primary-dark: #1d4ed8;
    --app-primary-soft: #eff6ff;
}

body.theme-blue .navbar {
    background-color: var(--app-primary) !important;
}

body.theme-blue .nav.navbar,
body.theme-blue .navbar .navbar-brand,
body.theme-blue .navbar-brand {
    background-color: var(--app-primary) !important;
    color: #fff !important;
}

body.theme-blue .sidebar .user-info .user-helper-dropdown,
body.theme-blue .sidebar .user-info .user-helper-dropdown i,
body.theme-blue .sidebar .user-info .btn-group,
body.theme-blue .sidebar .user-info .btn-group i {
    background-color: var(--app-primary) !important;
    color: #fff !important;
}

body.theme-blue .sidebar .user-info .user-helper-dropdown,
body.theme-blue .sidebar .user-info .btn-group {
    border-radius: 999px;
}

body.theme-blue .sidebar .user-info .image img {
    border-color: var(--app-primary) !important;
    box-shadow: 0 0 0 3px var(--app-primary) !important;
}

body.theme-blue .sidebar .menu .list li.active > :first-child,
body.theme-blue .sidebar .menu .list li.active > a,
body.theme-blue .sidebar .menu .list li.active a.toggled,
body.theme-blue .sidebar .menu .list a.toggled:not(.menu-toggle) {
    background: var(--app-primary) !important;
    border-radius: 8px;
    color: #fff !important;
}

body.theme-blue .sidebar .menu .list li.active > :first-child i,
body.theme-blue .sidebar .menu .list li.active > :first-child span,
body.theme-blue .sidebar .menu .list li.active > a i,
body.theme-blue .sidebar .menu .list li.active > a span,
body.theme-blue .sidebar .menu .list li.active a.toggled:not(.menu-toggle),
body.theme-blue .sidebar .legal .copyright {
    color: #fff !important;
}

body.theme-blue .sidebar .legal .copyright,
body.theme-blue .sidebar .legal .copyright a {
    color: #93c5fd !important;
}

body.theme-blue .pagination .page-item.active .page-link,
body.theme-blue .pagination .active.page-item .page-link,
body.theme-blue .pagination li.active a,
body.theme-blue .pagination li.active span,
body.theme-blue .pagination > .active > a,
body.theme-blue .pagination > .active > span,
body.theme-blue .pagination > li.active > a,
body.theme-blue .pagination > li.active > span {
    background-color: var(--app-primary) !important;
    border-color: var(--app-primary) !important;
    color: #fff !important;
}

body.theme-blue .btn-primary,
body.theme-blue .bg-blue {
    background-color: var(--app-primary) !important;
    border-color: var(--app-primary) !important;
}

.helpdesk-base44-list.card.panel {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.helpdesk-base44-list > .panel-heading {
    align-items: center;
    background: transparent !important;
    border: 0 !important;
    display: flex;
    min-height: 76px;
    padding: 0 0 18px !important;
}

.helpdesk-page-heading h1 {
    color: var(--helpdesk-ink);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.2;
    margin: 0 0 5px;
}

.helpdesk-page-heading p {
    color: var(--helpdesk-muted);
    font-size: 14px;
    font-weight: 400;
    margin: 0;
}

.helpdesk-base44-list > .panel-body {
    background: #fff;
    border: 1px solid var(--helpdesk-border);
    border-radius: 12px 12px 0 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
    overflow-x: auto;
    overflow-y: hidden;
    padding: 16px !important;
    scrollbar-color: #cbd5e1 transparent;
    scrollbar-width: thin;
}

.helpdesk-base44-list > .panel-body::-webkit-scrollbar {
    height: 8px;
}

.helpdesk-base44-list > .panel-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.helpdesk-base44-list .datagrid-header-actions {
    align-items: center;
    border-bottom: 1px solid var(--helpdesk-border);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -16px -16px 12px;
    padding: 14px 16px;
}

.helpdesk-base44-list .datagrid-header-actions-left-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.helpdesk-base44-list .datagrid-header-actions .btn {
    background: #fff;
    border: 1px solid var(--helpdesk-border);
    border-radius: 8px;
    box-shadow: none !important;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    min-height: 38px;
    padding: 8px 13px;
}

.helpdesk-base44-list .datagrid-header-actions .helpdesk-primary-action {
    background: var(--helpdesk-accent) !important;
    border-color: var(--helpdesk-accent) !important;
    color: #fff !important;
}

.helpdesk-base44-list .datagrid-header-actions .helpdesk-primary-action i {
    color: #fff !important;
}

.helpdesk-base44-list table.table {
    border-collapse: separate;
    border-spacing: 0 7px;
    margin: 0;
    min-width: 1040px;
    width: 100%;
}

.helpdesk-base44-list table.table thead th {
    background: transparent !important;
    border: 0 !important;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    padding: 8px 12px;
    text-transform: uppercase;
}

.helpdesk-base44-list table.table tbody td {
    background: #fff !important;
    border-bottom: 1px solid var(--helpdesk-border) !important;
    border-top: 1px solid var(--helpdesk-border) !important;
    color: #374151;
    padding: 14px 12px !important;
    vertical-align: middle;
    white-space: normal;
}

.helpdesk-base44-list table.table tbody td:first-child {
    border-left: 1px solid var(--helpdesk-border) !important;
    border-radius: 9px 0 0 9px;
}

.helpdesk-base44-list table.table tbody td:last-child {
    border-radius: 0 9px 9px 0;
    border-right: 1px solid var(--helpdesk-border) !important;
}

.helpdesk-base44-list table.table tbody tr:hover td {
    background: var(--helpdesk-soft) !important;
}

.helpdesk-base44-list .label {
    border-radius: 999px !important;
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    min-width: 90px;
    padding: 6px 10px;
    width: auto !important;
}

.helpdesk-priority-badge {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    color: #4b5563;
    display: inline-flex;
    font-size: 11px;
    font-weight: 600;
    gap: 6px;
    padding: 5px 9px;
    white-space: nowrap;
}

.helpdesk-priority-badge > span {
    border-radius: 50%;
    height: 8px;
    width: 8px;
}

.helpdesk-base44-list table.table {
    border-collapse: collapse;
    border-spacing: 0;
    min-width: 0;
}

.helpdesk-base44-list table.table thead {
    display: none;
}

.helpdesk-base44-list table.table tbody tr,
.helpdesk-base44-list table.table tbody tr:hover {
    background: transparent !important;
}

.helpdesk-base44-list table.table tbody td {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 0 12px !important;
}

.helpdesk-base44-list table.table tbody td:first-child,
.helpdesk-base44-list table.table tbody td:last-child {
    border: 0 !important;
    border-radius: 0;
}

.helpdesk-ticket-card {
    align-items: stretch;
    background: #fff;
    border: 1px solid #f2c94c;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(120, 53, 15, .06);
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 18px 20px;
    width: 100%;
}

.helpdesk-ticket-main {
    min-width: 0;
}

.helpdesk-ticket-content {
    min-width: 0;
}

.helpdesk-ticket-topline {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 8px;
}

.helpdesk-card-id {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.helpdesk-card-pill,
.helpdesk-card-status {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    gap: 6px;
    line-height: 1;
    min-height: 24px;
    padding: 6px 9px;
    text-decoration: none !important;
    white-space: nowrap;
}

.helpdesk-card-pill {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
}

.helpdesk-card-pill i:not(.fas):not(.far) {
    background: var(--pill-color, #f59e0b);
    border-radius: 50%;
    height: 8px;
    width: 8px;
}

.helpdesk-card-pill.muted {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #475569;
    font-weight: 600;
}

.helpdesk-card-status {
    background: color-mix(in srgb, var(--status-color, #64748b) 12%, white);
    border: 1px solid color-mix(in srgb, var(--status-color, #64748b) 35%, white);
    color: var(--status-color, #64748b);
}

.helpdesk-ticket-card h2 {
    color: #7c2d12;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.35;
    margin: 0;
    overflow-wrap: anywhere;
}

.helpdesk-ticket-card p {
    color: #475569;
    font-size: 13px;
    line-height: 1.6;
    margin: 7px 0 0;
    overflow-wrap: anywhere;
}

.helpdesk-ticket-meta {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(5, minmax(110px, 1fr));
    margin-top: 15px;
}

.helpdesk-ticket-meta span {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 8px;
    min-width: 0;
    padding: 9px 10px;
}

.helpdesk-ticket-meta small {
    color: #94a3b8;
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.helpdesk-ticket-meta strong {
    color: #334155;
    display: block;
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.helpdesk-ticket-actions {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.helpdesk-ticket-action {
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #334155 !important;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    text-decoration: none !important;
    width: 34px;
}

.helpdesk-ticket-action:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.helpdesk-ticket-action.success {
    color: #059669 !important;
}

.helpdesk-ticket-action.danger {
    color: #dc2626 !important;
}

.helpdesk-ticket-action.note {
    color: #f97316 !important;
}

.helpdesk-base44-list > .panel-footer {
    background: #fff !important;
    border: 1px solid var(--helpdesk-border);
    border-radius: 0 0 12px 12px;
    border-top: 0;
    padding: 12px 16px !important;
}

.helpdesk-base44-list > .panel-footer .pagination {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 6px;
}

.helpdesk-filter-form.card.panel,
.helpdesk-base44-form.card.panel {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .18);
    color: #111827;
    margin: 0;
    overflow: hidden;
}

.helpdesk-base44-form > .panel-heading,
.helpdesk-filter-form > .panel-heading {
    align-items: center;
    background: #fff !important;
    border-bottom: 1px solid #e5e7eb !important;
    display: flex;
    min-height: 62px;
    padding: 14px 24px !important;
}

.helpdesk-base44-form > .panel-heading .panel-title {
    flex: 1;
}

.helpdesk-form-heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.helpdesk-form-heading strong {
    color: #111827;
    font-size: 18px;
    font-weight: 700;
}

.helpdesk-form-heading span {
    color: #6b7280;
    font-size: 12px;
    font-weight: 400;
}

.helpdesk-base44-form > form > .panel-body,
.helpdesk-filter-form > form > .panel-body {
    background: #fff;
    padding: 20px 24px !important;
}

.helpdesk-base44-form .form-group,
.helpdesk-filter-form .form-group {
    margin-bottom: 14px !important;
}

.helpdesk-base44-form label,
.helpdesk-filter-form label {
    color: #111827;
    font-size: 13px !important;
    font-weight: 600;
    margin-bottom: 7px;
}

.helpdesk-base44-form input.form-control,
.helpdesk-base44-form select.form-control,
.helpdesk-base44-form .select2-container .select2-selection,
.helpdesk-filter-form input.form-control,
.helpdesk-filter-form select.form-control,
.helpdesk-filter-form .select2-container .select2-selection {
    border: 1px solid #dfe3e8 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    min-height: 40px;
}

.helpdesk-base44-form input.form-control:focus,
.helpdesk-base44-form .select2-container--focus .select2-selection,
.helpdesk-filter-form input.form-control:focus,
.helpdesk-filter-form .select2-container--focus .select2-selection {
    border-color: var(--helpdesk-accent) !important;
}

.helpdesk-base44-form .note-editor {
    border: 1px solid #dfe3e8 !important;
    border-radius: 9px;
    box-shadow: none !important;
    overflow: hidden;
}

.helpdesk-base44-form .note-toolbar {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding: 6px 8px;
}

.helpdesk-base44-form .note-editable {
    color: #374151;
    font-size: 14px;
    line-height: 1.55;
    min-height: 150px;
    padding: 12px 14px;
}

.helpdesk-base44-form > form > .panel-footer {
    background: #fff !important;
    border-top: 1px solid #e5e7eb !important;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    overflow: visible;
    padding: 14px 24px !important;
}

.helpdesk-base44-form > form > .panel-footer .btn {
    border-radius: 8px;
    box-shadow: none !important;
    font-weight: 600;
    min-height: 40px;
    padding: 8px 16px;
}

.helpdesk-base44-form .helpdesk-save-action {
    align-items: center;
    background: var(--helpdesk-accent) !important;
    border-color: var(--helpdesk-accent) !important;
    color: #fff !important;
    display: inline-flex !important;
    visibility: visible !important;
}

.helpdesk-base44-form .helpdesk-close-action {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #6b7280;
}

.helpdesk-product-selector {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    min-height: 126px;
    padding: 8px 48px 8px 8px;
    position: relative;
}

.helpdesk-product-checklist {
    max-height: 210px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 2px 6px 2px 2px;
    scrollbar-color: #9ca3af transparent;
    scrollbar-width: thin;
}

.helpdesk-product-checklist::-webkit-scrollbar,
.helpdesk-filter-form [tcheckgroup="produtos"]::-webkit-scrollbar {
    width: 7px;
}

.helpdesk-product-checklist::-webkit-scrollbar-thumb,
.helpdesk-filter-form [tcheckgroup="produtos"]::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 999px;
}

.helpdesk-product-checklist [tcheckgroup="produtos"] > div,
.helpdesk-filter-form [tcheckgroup="produtos"] > div {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-sizing: border-box;
    display: inline-flex !important;
    margin: 0 0 7px;
    min-height: 42px;
    padding: 8px 10px;
    width: 100%;
}

.helpdesk-product-checklist [tcheckgroup="produtos"] > br,
.helpdesk-filter-form [tcheckgroup="produtos"] > br {
    display: none;
}

.helpdesk-product-checklist [tcheckgroup="produtos"] label,
.helpdesk-filter-form [tcheckgroup="produtos"] label {
    cursor: pointer;
    flex: 1;
    font-size: 13px !important;
    font-weight: 500;
    margin: 0 0 0 8px;
}

.helpdesk-product-checklist [tcheckgroup="produtos"] > div:has(input:checked),
.helpdesk-filter-form [tcheckgroup="produtos"] > div:has(input:checked) {
    background: #f0fdf4;
    border-color: #86efac;
}

.helpdesk-checklist-scroll-controls {
    align-items: center;
    border-left: 1px solid #e5e7eb;
    bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    padding-left: 7px;
    position: absolute;
    right: 8px;
    top: 8px;
}

.helpdesk-checklist-scroll-controls button {
    align-items: center;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    color: #4b5563;
    display: flex;
    height: 32px;
    justify-content: center;
    padding: 0;
    transition: background .15s ease, color .15s ease;
    width: 32px;
}

.helpdesk-checklist-scroll-controls button:hover {
    background: var(--helpdesk-accent);
    color: #fff;
}

.helpdesk-filter-form [tcheckgroup="produtos"] {
    display: block;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-color: #9ca3af transparent;
    scrollbar-width: thin;
    width: 100%;
}

@media (max-width: 767px) {
    .label.warning {
        border-radius: 8px;
        font-size: 12px;
        line-height: 1.35;
        padding: 12px;
        white-space: normal;
    }

    .helpdesk-page-heading h1 {
        font-size: 24px;
    }

    .helpdesk-page-heading p {
        font-size: 13px;
        line-height: 1.35;
    }

    .helpdesk-base44-list > .panel-heading {
        min-height: auto;
        padding-bottom: 12px !important;
    }

    .helpdesk-base44-list > .panel-body {
        border-radius: 10px 10px 0 0;
        overflow: visible;
        padding: 12px !important;
    }

    .helpdesk-base44-list .datagrid-header-actions {
        align-items: stretch;
        flex-direction: column;
        margin: -12px -12px 12px;
        padding: 12px;
    }

    .helpdesk-base44-list .datagrid-header-actions-left-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .helpdesk-base44-list .datagrid-header-actions-left-actions:last-child {
        display: block;
    }

    .helpdesk-base44-list .datagrid-header-actions .btn {
        align-items: center;
        display: inline-flex;
        justify-content: center;
        min-width: 0;
        width: 100%;
    }

    .helpdesk-base44-list table.table,
    .helpdesk-base44-list table.table tbody,
    .helpdesk-base44-list table.table tr,
    .helpdesk-base44-list table.table td {
        display: block;
        min-width: 0;
        width: 100%;
    }

    .helpdesk-base44-list table.table {
        border-collapse: collapse;
        border-spacing: 0;
    }

    .helpdesk-base44-list table.table thead {
        display: none;
    }

    .helpdesk-base44-list table.table tbody tr {
        background: #fff;
        border: 1px solid var(--helpdesk-border);
        border-radius: 10px;
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 12px;
        overflow: hidden;
        padding: 10px;
    }

    .helpdesk-base44-list table.table tbody td {
        align-items: start;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        display: grid;
        gap: 8px;
        grid-template-columns: minmax(88px, 34%) minmax(0, 1fr);
        padding: 8px 4px !important;
        word-break: break-word;
    }

    .helpdesk-base44-list table.table tbody td::before {
        color: #6b7280;
        content: '';
        font-size: 10px;
        font-weight: 700;
        letter-spacing: .05em;
        text-transform: uppercase;
    }

    .helpdesk-base44-list table.table tbody td:nth-child(-n+5) {
        align-items: center;
        display: inline-flex;
        justify-content: center;
        padding: 7px 9px !important;
        width: auto;
    }

    .helpdesk-base44-list table.table tbody td:nth-child(-n+5)::before {
        display: none;
    }

    .helpdesk-base44-list table.table tbody td[colspan] {
        display: block;
        padding: 18px 8px !important;
        text-align: center;
        width: 100%;
    }

    .helpdesk-base44-list table.table tbody td[colspan]::before {
        display: none;
    }

    .helpdesk-base44-list table.table tbody td:nth-child(6) {
        border-top: 1px solid var(--helpdesk-border) !important;
        margin-top: 8px;
        padding-top: 12px !important;
    }

    .helpdesk-base44-list table.table tbody td:nth-child(6)::before { content: 'Prioridade'; }
    .helpdesk-base44-list table.table tbody td:nth-child(7)::before { content: 'ID'; }
    .helpdesk-base44-list table.table tbody td:nth-child(8)::before { content: 'Abertura'; }
    .helpdesk-base44-list table.table tbody td:nth-child(9)::before { content: 'Título'; }
    .helpdesk-base44-list table.table tbody td:nth-child(10)::before { content: 'Solicitante'; }
    .helpdesk-base44-list table.table tbody td:nth-child(11)::before { content: 'Responsável'; }
    .helpdesk-base44-list table.table tbody td:nth-child(12)::before { content: 'Produto'; }
    .helpdesk-base44-list table.table tbody td:nth-child(13)::before { content: 'Categoria'; }
    .helpdesk-base44-list table.table tbody td:nth-child(14)::before { content: 'Situação'; }

    .helpdesk-base44-list .label,
    .helpdesk-priority-badge {
        justify-self: start;
        min-width: 0;
        max-width: 100%;
    }

    .helpdesk-base44-form > form > .panel-body,
    .helpdesk-filter-form > form > .panel-body {
        padding: 16px !important;
    }

    .helpdesk-product-selector {
        padding-right: 44px;
    }
}

@media (max-width: 480px) {
    .helpdesk-base44-list .datagrid-header-actions-left-actions {
        grid-template-columns: 1fr;
    }

    .helpdesk-base44-list table.table tbody td {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .helpdesk-base44-list > .panel-footer {
        padding: 10px !important;
    }
}

@media (max-width: 900px) {
    .helpdesk-ticket-card {
        grid-template-columns: 1fr;
    }

    .helpdesk-ticket-actions {
        border-top: 1px solid #f1f5f9;
        flex-direction: row;
        justify-content: flex-end;
        padding-top: 12px;
    }

    .helpdesk-ticket-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .helpdesk-base44-list table.table tbody tr {
        border: 0 !important;
        border-radius: 0 !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .helpdesk-base44-list table.table tbody td,
    .helpdesk-base44-list table.table tbody td:first-child {
        display: block !important;
        padding: 0 0 12px !important;
        width: 100% !important;
    }

    .helpdesk-base44-list table.table tbody td::before {
        display: none !important;
    }

    .helpdesk-ticket-card {
        padding: 15px;
    }

    .helpdesk-ticket-card h2 {
        font-size: 16px;
    }
}

@media (max-width: 520px) {
    .helpdesk-ticket-meta {
        grid-template-columns: 1fr;
    }

    .helpdesk-ticket-actions {
        justify-content: space-between;
    }
}

.helpdesk-analysis-page {
    background: #fff9e8;
    min-height: calc(100vh - 85px);
    padding: 24px 28px 48px;
}

.helpdesk-analysis-header {
    margin: 0 auto 22px;
    max-width: 980px;
}

.helpdesk-analysis-header span {
    color: #f59e0b;
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.helpdesk-analysis-header h1 {
    color: #431407;
    font-size: 42px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.1;
    margin: 0;
}

.helpdesk-analysis-header p {
    color: #64748b;
    font-size: 14px;
    margin: 10px 0 0;
}

.helpdesk-analysis-card,
.helpdesk-analysis-list {
    margin: 0 auto 30px;
    max-width: 980px;
}

.helpdesk-analysis-card {
    background: #fff;
    border: 1px solid #f2c94c;
    border-radius: 14px;
    padding: 22px 24px;
}

.helpdesk-analysis-card-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.helpdesk-analysis-card-header h2,
.helpdesk-analysis-list h2 {
    color: #431407;
    font-size: 20px;
    font-weight: 500;
    margin: 0;
}

.helpdesk-analysis-card-header p {
    color: #9a3412;
    margin: 6px 0 0;
}

.helpdesk-analysis-filter.card.panel {
    background: transparent;
    border: 0;
    box-shadow: none;
    margin: 0 0 18px;
}

.helpdesk-analysis-filter > .panel-heading {
    display: none;
}

.helpdesk-analysis-filter > form > .panel-body {
    background: transparent;
    padding: 0 !important;
}

.helpdesk-analysis-filter > form > .panel-footer {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    text-align: right;
}

.helpdesk-analysis-filter .form-group {
    margin-bottom: 10px !important;
}

.helpdesk-analysis-filter label {
    color: #7c2d12;
    font-size: 12px !important;
    font-weight: 700;
}

.helpdesk-analysis-filter .btn-primary {
    background: #92400e !important;
    border-color: #92400e !important;
    border-radius: 999px;
    box-shadow: none !important;
    font-weight: 700;
    min-height: 38px;
    padding: 8px 18px;
}

.helpdesk-analysis-chart-wrap {
    overflow-x: auto;
    padding-top: 6px;
}

.helpdesk-analysis-chart {
    min-width: 760px;
    width: 100%;
}

.helpdesk-analysis-chart line {
    stroke: #fde68a;
    stroke-dasharray: 3 5;
    stroke-width: 1;
}

.helpdesk-analysis-chart text {
    fill: #9a3412;
    font-size: 12px;
}

.helpdesk-analysis-chart polyline {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.helpdesk-analysis-chart circle {
    stroke: #fff;
    stroke-width: 2;
}

.helpdesk-analysis-legend {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 4px;
}

.helpdesk-analysis-legend span {
    align-items: center;
    color: #475569;
    display: inline-flex;
    font-size: 12px;
    gap: 6px;
}

.helpdesk-analysis-legend i,
.helpdesk-analysis-category-head i {
    border-radius: 50%;
    display: inline-block;
    height: 10px;
    width: 10px;
}

.helpdesk-analysis-category {
    background: #fff;
    border: 1px solid #f2c94c;
    border-radius: 14px;
    margin-top: 14px;
    padding: 18px;
}

.helpdesk-analysis-category-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.helpdesk-analysis-category-head div {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.helpdesk-analysis-category-head strong {
    color: #431407;
    font-size: 15px;
}

.helpdesk-analysis-category-head span {
    color: #94a3b8;
    font-size: 12px;
}

.helpdesk-analysis-category-head b {
    background: #f59e0b;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    padding: 5px 10px;
}

.helpdesk-analysis-items {
    display: grid;
    gap: 9px;
    margin-top: 16px;
}

.helpdesk-analysis-items div {
    border-top: 1px solid #fff7ed;
    padding-top: 9px;
}

.helpdesk-analysis-items strong {
    color: #334155;
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.helpdesk-analysis-items small {
    color: #9a3412;
    display: block;
    font-size: 12px;
    margin-top: 4px;
}

.helpdesk-analysis-empty {
    background: #fff;
    border: 1px dashed #f2c94c;
    border-radius: 14px;
    color: #92400e;
    margin-top: 12px;
    padding: 20px;
}

@media (max-width: 767px) {
    .helpdesk-analysis-page {
        padding: 18px 12px 36px;
    }

    .helpdesk-analysis-header h1 {
        font-size: 32px;
    }

    .helpdesk-analysis-card {
        padding: 16px;
    }
}
