:root {
    --section-gap: 12px;
    --hero-panel-height: 290px;
    --bg: #09111f;
    --panel: rgba(14, 25, 49, 0.88);
    --panel-alt: rgba(17, 31, 60, 0.78);
    --line: rgba(110, 146, 214, 0.24);
    --text: #eef4ff;
    --muted: #8ea4cb;
    --blue: #63c8ff;
    --green: #6cf0a7;
    --amber: #ffcb7a;
    --red: #ff7d8e;
    --purple: #a98bff;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(69, 122, 255, 0.20), transparent 28%),
        radial-gradient(circle at 100% 0%, rgba(100, 229, 176, 0.12), transparent 22%),
        linear-gradient(180deg, #0b1426 0%, #08101b 100%);
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(108, 240, 167, 0.95), rgba(108, 240, 167, 0.28));
    box-shadow:
        0 0 10px rgba(108, 240, 167, 0.38),
        0 0 28px rgba(108, 240, 167, 0.16);
    pointer-events: none;
    z-index: 999;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(108, 240, 167, 0.95), rgba(108, 240, 167, 0.28));
    box-shadow:
        0 0 10px rgba(108, 240, 167, 0.38),
        0 0 28px rgba(108, 240, 167, 0.16);
    pointer-events: none;
    z-index: 999;
}

.main-content {
    padding-top: 10px;
    padding-right: 28px;
    padding-bottom: 18px;
    padding-left: 28px;
}

.main-content-full {
    width: 100%;
    max-width: 100%;
}

.topbar-logout-link {
    text-decoration: none;
}

.login-body {
    min-height: 100vh;
    padding: 32px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.login-body::before,
.login-body::after {
    display: none;
}

.login-shell {
    width: min(420px, 100%);
}

.login-panel {
    position: relative;
    border: 1px solid rgba(112, 146, 214, 0.22);
    border-radius: 30px;
    overflow: hidden;
    box-shadow:
        0 22px 50px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.login-eyebrow,
.login-panel-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(99, 200, 255, 0.2);
    background: rgba(13, 26, 48, 0.72);
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.login-panel h2 {
    margin: 0;
    letter-spacing: -0.03em;
}
.login-panel p {
    margin: 18px 0 0;
    color: #a9bddf;
    line-height: 1.6;
}

.login-panel {
    padding: 34px 30px;
    background:
        linear-gradient(180deg, rgba(17, 31, 60, 0.96), rgba(9, 17, 31, 0.98));
}

.login-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 125, 142, 0.26);
    background: rgba(87, 20, 36, 0.36);
    color: #ffd4da;
    font-size: 14px;
    line-height: 1.45;
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-field {
    display: grid;
    gap: 8px;
}

.login-field span {
    color: #c7d4ec;
    font-size: 13px;
    font-weight: 700;
}

.login-field input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid rgba(112, 146, 214, 0.24);
    border-radius: 16px;
    outline: none;
    color: var(--text);
    font: inherit;
    background: rgba(7, 15, 29, 0.84);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.login-field input:focus {
    border-color: rgba(99, 200, 255, 0.62);
    box-shadow: 0 0 0 4px rgba(99, 200, 255, 0.12);
    transform: translateY(-1px);
}

.login-field input::placeholder {
    color: rgba(174, 191, 219, 0.52);
}

.login-submit {
    min-height: 54px;
    margin-top: 4px;
    border: 0;
    border-radius: 18px;
    color: #04101f;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    background:
        linear-gradient(135deg, #6cf0a7 0%, #63c8ff 50%, #ffcb7a 100%);
    box-shadow:
        0 20px 36px rgba(8, 15, 28, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.42);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.login-submit:hover {
    transform: translateY(-1px);
    box-shadow:
        0 24px 42px rgba(8, 15, 28, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.login-submit:active {
    transform: translateY(0);
}

@media (max-width: 980px) {
    .login-shell {
        width: min(420px, 100%);
    }
}

@media (max-width: 640px) {
    .login-body {
        padding: 16px;
    }

    .login-panel {
        padding: 24px 20px;
    }
}

.topbar h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
}

.topbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.topbar-unified {
    width: fit-content;
    max-width: 100%;
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    gap: 0;
    border: 1px solid rgba(122, 181, 236, 0.42);
    border-radius: 14px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(53, 82, 129, 0.72), rgba(24, 39, 67, 0.82)),
        radial-gradient(circle at top left, rgba(157, 234, 245, 0.12), transparent 40%);
    box-shadow:
        inset 0 1px 0 rgba(220, 244, 255, 0.12),
        0 8px 20px rgba(6, 12, 26, 0.18);
    min-height: 42px;
}

.topbar-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.topbar-copy > * {
    margin: 0;
}

.topbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.topbar-actions-stack {
    display: grid;
    justify-items: end;
    align-content: start;
    gap: 3px;
}

.topbar-actions-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.topbar-actions-segmented,
.top-tabs-segmented {
    display: inline-flex;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
}

.topbar-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.status-progress-group {
    display: grid;
    align-content: center;
    gap: 1px;
    width: 168px;
    min-width: 0;
    margin: 0;
    justify-items: start;
}

.top-tabs {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    margin-bottom: 0;
}

.top-tabs-inline {
    margin-top: 0;
    margin-bottom: 0;
}

.top-tabs-embedded,
.status-progress-embedded {
    min-width: 0;
}

.top-tabs-embedded,
.topbar-unified > .topbar-actions-row {
    border-right: 1px solid rgba(152, 204, 238, 0.24);
}

.status-progress-embedded {
    align-self: center;
    padding: 4px 8px;
}

.bot-top-strip {
    width: min(390px, calc(100% - 350px));
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding: 3px 10px;
    border: 1px solid rgba(103, 139, 204, 0.18);
    border-radius: 16px;
    background: rgba(18, 28, 52, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    flex: 0 1 auto;
}

.bot-top-strip[hidden] {
    display: none !important;
}

.bot-top-strip .banner-grid {
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    gap: 6px;
    min-height: 16px;
}

.bot-top-strip .banner-main,
.bot-top-strip .banner-inline-meta {
    display: flex;
    align-items: center;
    min-width: auto;
    gap: 6px;
}

.bot-top-strip .banner-title {
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.bot-top-strip .banner-subtitle {
    color: var(--muted);
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
}

.bot-top-strip .banner-chip {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 999px;
    border: 1px solid rgba(99, 200, 255, 0.24);
    color: var(--blue);
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.bot-top-strip .banner-source {
    display: none;
}

.main-content.bot-tab-active {
    padding-top: 10px;
}

.main-content.bot-tab-active #bot-cards {
    margin-top: 0;
    transform: translateY(2px);
}

.nav-tab, .refresh-button {
    border: 1px solid rgba(103, 139, 204, 0.18);
    background: rgba(18, 28, 52, 0.9);
    color: #caeef4;
    padding: 10px 12px;
    border-radius: 12px;
    text-align: left;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.refresh-button:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.nav-tab:hover, .refresh-button:hover, .nav-tab.active {
    transform: translateY(-1px);
    border-color: rgba(99, 200, 255, 0.45);
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.16);
}

.top-tabs .nav-tab,
.topbar-actions-segmented .refresh-button {
    min-width: 0;
    min-height: 40px;
    padding: 0 10px;
    border: 0;
    border-right: 1px solid rgba(152, 204, 238, 0.28);
    border-radius: 0;
    background: linear-gradient(180deg, rgba(78, 119, 176, 0.12), rgba(20, 34, 60, 0.12));
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.03em;
    text-align: center;
    white-space: nowrap;
}

.top-tabs-segmented .nav-tab:last-child,
.topbar-actions-segmented .refresh-button:last-child {
    border-right: 0;
}

.nav-tab.active {
    background: linear-gradient(180deg, rgba(106, 160, 219, 0.16), rgba(39, 62, 101, 0.16));
    border-color: transparent;
    color: #eefbfd;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 0 0 1px rgba(117, 194, 255, 0.12);
}

.sidebar-card {
    padding: 9px 12px;
    border: 1px solid rgba(102, 138, 200, 0.18);
    border-radius: 12px;
    background: rgba(16, 29, 54, 0.85);
}

.sidebar-card-inline {
    min-width: 170px;
}

.sidebar-label {
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.sidebar-value {
    margin-top: 3px;
    font-size: 12px;
    font-weight: 600;
}

.refresh-button-inline {
    min-width: 0;
    text-align: center;
    padding: 0 10px;
    align-self: stretch;
}

.refresh-button-subtle {
    min-width: 0;
    padding: 0 10px;
    background: linear-gradient(180deg, rgba(78, 119, 176, 0.12), rgba(20, 34, 60, 0.12));
    border-color: transparent;
    color: #caeef4;
    font-weight: 500;
}

.refresh-button-subtle.active {
    background: linear-gradient(180deg, rgba(37, 76, 145, 0.92), rgba(19, 43, 86, 0.92));
    border-color: rgba(117, 194, 255, 0.72);
    color: #f7fbff;
}

.nav-tab::before,
.topbar-actions-segmented .refresh-button::before {
    flex: 0 0 auto;
    display: inline-block;
    color: #b6edf1;
    line-height: 1;
}

.nav-tab[data-icon="grid"]::before {
    content: "▦";
    font-size: 18px;
}

.nav-tab[data-icon="message"]::before {
    content: "◫";
    font-size: 18px;
}

.refresh-button[data-icon="arrow-left"]::before {
    content: "‹";
    font-size: 24px;
    margin-top: -1px;
}

.refresh-button[data-icon="refresh"]::before {
    content: "↻";
    font-size: 20px;
}

.refresh-button[data-icon="logout"]::before {
    content: "⇥";
    font-size: 18px;
}

.status-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.progress-shell {
    display: grid;
    gap: 1px;
    width: 168px;
    margin-top: 0;
    margin-left: 0;
}

.progress-track {
    width: 100%;
    height: 2px;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid rgba(104, 152, 222, 0.18);
    background: rgba(10, 18, 35, 0.72);
    min-width: 0;
}

.progress-track,
.progress-bar {
    display: block;
}

.progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(86, 177, 255, 0.95), rgba(104, 241, 178, 0.95));
    box-shadow: 0 0 16px rgba(99, 200, 255, 0.35);
    transition: width 0.25s ease;
}

.progress-shell.is-loading .progress-bar {
    background:
        linear-gradient(90deg, rgba(86, 177, 255, 0.98), rgba(104, 241, 178, 0.98)),
        repeating-linear-gradient(
            -45deg,
            rgba(255, 255, 255, 0.18) 0 10px,
            rgba(255, 255, 255, 0.02) 10px 20px
        );
    background-size: 100% 100%, 28px 100%;
    animation: progress-stripes 0.9s linear infinite;
}

@keyframes progress-stripes {
    from { background-position: 0 0, 0 0; }
    to { background-position: 0 0, 28px 0; }
}

.progress-text {
    font-size: 6px;
    color: var(--muted);
    text-align: left;
    line-height: 1;
}

.progress-stamp {
    font-size: 9px;
    line-height: 1;
    color: #eef4ff;
    text-align: left;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #4fb8af;
    font-size: 10px;
    font-weight: 700;
}

.status-pill.muted { color: var(--muted); }
.tab-view { display: none; }
.tab-view.active { display: block; }
.hero-grid, .panel-grid, .ticket-card-grid { display: grid; gap: var(--section-gap); }
#view-bot:not(.active) { display: none !important; }
#view-bot:not(.active) #bot-info,
#view-bot:not(.active) #bot-cards,
#view-bot:not(.active) #bot-ticket-cards { display: none !important; }
#bot-ticket-cards { display: none; }
#view-bot.active #bot-ticket-cards { display: grid; }
#view-bot:not(.active) .bot-kanban-board,
#view-bot:not(.active) .bot-kanban-head,
#view-bot:not(.active) .bot-kanban-columns,
#view-bot:not(.active) .banner-chip {
    display: none !important;
}
.hero-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: var(--section-gap); }
.hero-grid-general {
    margin-top: 22px;
    margin-bottom: var(--section-gap);
}
.layout-board {
    display: grid;
    gap: var(--section-gap);
    margin-bottom: var(--section-gap);
}
.layout-board-geral {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
}
.layout-span-4 { grid-column: span 4; }
.layout-span-6 { grid-column: span 6; }
.layout-span-12 { grid-column: span 12; }
.layout-board > .panel {
    margin-bottom: 0;
}
.panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: var(--section-gap); align-items: start; }
.panel-grid-featured { grid-template-columns: 1fr; }
.panel-grid-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.panel-grid-chart-operator { align-items: stretch; }
.panel-grid-triple { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.panel-grid-triple > .panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.panel-grid-triple > .panel .stack-list {
    flex: 1;
    align-content: start;
}

#geral-status,
#geral-atendentes,
#geral-organizacoes {
    max-height: 650px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(210, 226, 248, 0.26) transparent;
}

#geral-status::-webkit-scrollbar,
#geral-atendentes::-webkit-scrollbar,
#geral-organizacoes::-webkit-scrollbar {
    width: 8px;
}

#geral-status::-webkit-scrollbar-track,
#geral-atendentes::-webkit-scrollbar-track,
#geral-organizacoes::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 999px;
}

#geral-status::-webkit-scrollbar-thumb,
#geral-atendentes::-webkit-scrollbar-thumb,
#geral-organizacoes::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(233, 241, 252, 0.32), rgba(184, 203, 231, 0.14));
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

#geral-status::-webkit-scrollbar-thumb:hover,
#geral-atendentes::-webkit-scrollbar-thumb:hover,
#geral-organizacoes::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(241, 247, 255, 0.42), rgba(194, 214, 240, 0.2));
}

.ticket-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

#bot-ticket-cards {
    grid-template-columns: 1fr;
}

.hero-card, .panel, .ticket-list-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(21, 34, 63, 0.96), rgba(12, 22, 42, 0.92)),
        radial-gradient(circle at top right, rgba(98, 198, 255, 0.14), transparent 28%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

[data-layout-container] > [data-layout-item="true"] {
    cursor: default;
}

.layout-draggable {
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.layout-draggable:hover {
    transform: translateY(-2px);
}

.layout-dragging {
    position: fixed !important;
    z-index: 999;
    margin: 0;
    opacity: 0.96;
    transform: scale(1.02) rotate(1deg);
    box-shadow: 0 36px 70px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    transition: none;
}

.layout-placeholder {
    grid-column: span 12;
    border-radius: 22px;
    border: 1px dashed rgba(159, 214, 255, 0.22);
    background: rgba(99, 200, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(159, 214, 255, 0.05);
}

.layout-span-4.layout-placeholder { grid-column: span 4; }
.layout-span-6.layout-placeholder { grid-column: span 6; }
.layout-span-12.layout-placeholder { grid-column: span 12; }

.layout-drag-handle {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(159, 214, 255, 0.12);
    border-radius: 999px;
    background: rgba(7, 14, 29, 0.12);
    backdrop-filter: blur(4px);
    cursor: grab;
    touch-action: none;
    opacity: 0;
    pointer-events: auto;
    transition: opacity 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.layout-draggable:focus-within .layout-drag-handle,
.layout-drag-handle:hover,
.layout-drag-handle:focus-visible,
.layout-drag-handle:active {
    opacity: 1;
    background: rgba(7, 14, 29, 0.3);
    border-color: rgba(159, 214, 255, 0.22);
}

.layout-drag-handle:active {
    cursor: grabbing;
}

body.layout-sorting,
body.layout-sorting * {
    user-select: none;
}

.hero-card {
    min-height: 144px;
    padding: 4px 16px 8px;
    isolation: isolate;
    background:
        linear-gradient(180deg, rgba(29, 46, 82, 0.94), rgba(10, 21, 40, 0.97)),
        radial-gradient(circle at 84% 12%, rgba(111, 220, 255, 0.18), transparent 22%);
    box-shadow:
        inset 0 0 42px rgba(112, 180, 255, 0.06),
        0 18px 36px rgba(0, 0, 0, 0.24);
}

.hero-card-general {
    min-height: 222px;
    padding: 4px 12px 10px;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(35, 49, 87, 0.96), rgba(13, 23, 44, 0.98)),
        radial-gradient(circle at 84% 12%, rgba(111, 220, 255, 0.16), transparent 24%);
    box-shadow:
        inset 0 0 24px rgba(130, 185, 255, 0.08),
        0 8px 20px rgba(0, 0, 0, 0.28);
}

.hero-grid-general .hero-card::after {
    border-radius: 19px;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: none;
    pointer-events: none;
    z-index: 0;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 21px;
    border: 1px solid rgba(159, 214, 255, 0.08);
    pointer-events: none;
    z-index: 0;
}

.hero-status,
.hero-title,
.hero-badges,
.hero-metric,
.hero-chart-wrap {
    position: relative;
    z-index: 1;
}

.hero-card-static {
    transform: none !important;
}

.hero-status {
    margin-bottom: 2px;
    text-align: center;
    font-size: 9px;
    letter-spacing: 0.02em;
    color: rgba(216, 233, 255, 0.82);
    text-shadow: none;
}

.hero-grid-general .hero-status {
    margin-bottom: 4px;
    font-size: 9px;
}

.hero-glow {
    position: absolute;
    inset: auto -12% -42% -12%;
    height: 64%;
    background: radial-gradient(circle at 50% 0%, currentColor 0%, transparent 62%);
    opacity: 0.18;
    filter: blur(24px);
    pointer-events: none;
    z-index: 0;
}

.hero-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.hero-title-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.hero-expand-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid rgba(159, 214, 255, 0.18);
    background: rgba(7, 14, 29, 0.2);
    color: #dfeafc;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.hero-expand-button:hover,
.hero-expand-button:focus-visible {
    background: rgba(18, 31, 56, 0.56);
    border-color: rgba(159, 214, 255, 0.34);
    transform: translateY(-1px);
}
.hero-kicker { font-size: 15px; color: #e9f2ff; font-weight: 500; }
.hero-grid-general .hero-title { margin-bottom: 0; }
.hero-grid-general .hero-kicker { font-size: 14px; font-weight: 700; }
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 22px;
    margin-top: 4px;
    margin-bottom: 0;
    padding-right: 0;
}
.hero-badges-buttons {
    display: grid;
    gap: 6px;
    margin-top: 6px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 3px 7px;
    border-radius: 999px;
    border: 1px solid rgba(145, 202, 255, 0.2);
    background: rgba(9, 17, 31, 0.48);
    color: rgba(226, 239, 255, 0.9);
    font-size: 10px;
    line-height: 1;
}
.hero-badge-main {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.hero-badge-button {
    width: 100%;
    justify-content: space-between;
    padding: 7px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.hero-badge-button:hover {
    transform: translateY(-1px);
    border-color: rgba(180, 223, 255, 0.32);
    background: rgba(16, 26, 49, 0.9);
    box-shadow: 0 0 0 1px rgba(139, 208, 255, 0.08), 0 6px 14px rgba(0, 0, 0, 0.24);
}
.hero-badge-button:focus-visible {
    outline: 2px solid rgba(143, 215, 255, 0.65);
    outline-offset: 2px;
}
.hero-badge-value {
    font-weight: 800;
    color: #f3f8ff;
}
.hero-badge-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 92px;
    color: rgba(211, 227, 249, 0.82);
}
.hero-grid-general .hero-badge-label {
    max-width: 146px;
}
.hero-badge-arrow {
    flex: 0 0 auto;
    font-size: 18px;
    line-height: 1;
    color: rgba(229, 240, 255, 0.88);
}
.hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 700;
    color: inherit;
    border: 1px solid currentColor;
    background: rgba(6, 13, 27, 0.58);
    box-shadow:
        0 0 14px currentColor,
        0 0 0 6px rgba(255, 255, 255, 0.01);
}
.hero-grid-general .hero-icon {
    width: 42px;
    height: 42px;
    font-size: 14px;
}

.hero-metric { display: flex; gap: 12px; align-items: center; min-height: 52px; }
.hero-value {
    font-size: clamp(44px, 3.5vw, 56px);
    line-height: 0.9;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-shadow: none;
}
.hero-value-compact {
    font-size: clamp(32px, 3vw, 46px);
    line-height: 0.95;
}
.hero-subtitle {
    font-size: 12px;
    line-height: 1.35;
    color: rgba(223, 234, 252, 0.84);
    max-width: 210px;
    padding-top: 0;
}
.hero-grid-general .hero-subtitle {
    max-width: 154px;
}

.hero-chart-wrap {
    position: relative;
    margin-top: -4px;
    height: 60px;
}
.hero-grid-general .hero-chart-wrap {
    margin-top: -2px;
    height: 60px;
}

.hero-chart-grid {
    position: absolute;
    inset: 2px 0 10px;
    border-radius: 16px;
    background:
        linear-gradient(to right, rgba(118, 155, 218, 0.18) 1px, transparent 1px) 0 0 / 28px 100%,
        linear-gradient(to top, rgba(118, 155, 218, 0.14) 1px, transparent 1px) 0 100% / 100% 10px;
    clip-path: polygon(0 62%, 100% 48%, 100% 100%, 0 100%);
    opacity: 0.58;
}
.hero-grid-general .hero-chart-grid {
    inset: 8px 4px 12px;
}

.hero-spark { width: 100%; height: 60px; display: block; filter: none; }
.hero-grid-general .hero-spark { height: 60px; }
.hero-card.metric-blue { color: var(--blue); }
.hero-card.metric-green { color: var(--green); }
.hero-card.metric-amber { color: var(--amber); }
.hero-card.metric-red { color: var(--red); }
.hero-card.metric-purple { color: var(--purple); }

#bot-cards {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
}

#bot-cards .hero-card {
    min-height: 116px;
    padding: 6px 10px 11px;
    border-radius: 18px;
}

#bot-cards .hero-card::after {
    border-radius: 17px;
}

#bot-cards .hero-status {
    margin-bottom: 0;
    font-size: 8px;
}

#bot-cards .hero-title {
    margin-bottom: 2px;
    gap: 8px;
}

#bot-cards .hero-title-actions {
    gap: 6px;
}

#bot-cards .hero-kicker {
    font-size: 11px;
    font-weight: 700;
}

#bot-cards .hero-expand-button {
    width: 18px;
    height: 18px;
    font-size: 12px;
    border-color: rgba(159, 214, 255, 0.16);
    background: rgba(7, 14, 29, 0.12);
}

#bot-cards .hero-icon {
    display: none;
}

#bot-cards .hero-metric {
    gap: 8px;
    align-items: flex-start;
    min-height: 0;
}

#bot-cards .hero-value {
    font-size: clamp(24px, 2vw, 34px);
    line-height: 0.95;
}

#bot-cards .hero-value-compact {
    font-size: clamp(20px, 1.8vw, 28px);
}

#bot-cards .hero-subtitle {
    font-size: 10px;
    line-height: 1.2;
    max-width: none;
}

#bot-cards .hero-chart-wrap {
    display: none;
}

#bot-cards .hero-badges {
    display: none;
}

#bot-cards .hero-card:has(.hero-mini-list) {
    min-height: 206px;
}

#bot-cards .hero-mini-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
    margin-top: 8px;
    max-height: 118px;
    overflow: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(210, 226, 248, 0.26) transparent;
}

#bot-cards .hero-mini-list::-webkit-scrollbar {
    width: 6px;
}

#bot-cards .hero-mini-list::-webkit-scrollbar-track {
    background: transparent;
}

#bot-cards .hero-mini-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(233, 241, 252, 0.32), rgba(184, 203, 231, 0.14));
    border-radius: 999px;
}

#bot-cards .hero-mini-item {
    display: grid;
    gap: 4px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--item-color, #63c8ff) 24%, rgba(118, 160, 225, 0.14));
    background: rgba(16, 28, 51, 0.86);
}

#bot-cards .hero-mini-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
}

#bot-cards .hero-mini-item-id {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--item-color, #63c8ff) 85%, white 15%);
    color: var(--item-color, #63c8ff);
    font-size: 10px;
    font-weight: 800;
}

#bot-cards .hero-mini-item-status {
    color: color-mix(in srgb, var(--item-color, #63c8ff) 78%, white 22%);
    font-size: 9px;
    text-align: right;
}

#bot-cards .hero-mini-item-title {
    color: #eef4ff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

#bot-cards .hero-mini-empty {
    padding: 10px;
    border-radius: 12px;
    border: 1px dashed rgba(126, 167, 228, 0.2);
    color: #9fb3d8;
    font-size: 11px;
    line-height: 1.3;
    background: rgba(16, 28, 51, 0.5);
}
.hero-card.metric-blue {
    border-color: rgba(112, 201, 255, 0.34);
    box-shadow: inset 0 0 42px rgba(112, 180, 255, 0.08), 0 0 0 1px rgba(104, 195, 255, 0.08), 0 18px 36px rgba(0, 0, 0, 0.24);
}
.hero-card.metric-green {
    border-color: rgba(110, 240, 167, 0.34);
    box-shadow: inset 0 0 42px rgba(108, 240, 167, 0.08), 0 0 0 1px rgba(108, 240, 167, 0.08), 0 18px 36px rgba(0, 0, 0, 0.24);
}
.hero-card.metric-amber {
    border-color: rgba(255, 203, 122, 0.34);
    box-shadow: inset 0 0 42px rgba(255, 203, 122, 0.08), 0 0 0 1px rgba(255, 203, 122, 0.08), 0 18px 36px rgba(0, 0, 0, 0.24);
}

.panel, .ticket-list-card { padding: 16px; }
.panel-banner { margin-bottom: var(--section-gap); }
.panel-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.panel-header-actions {
    align-items: flex-start;
    margin-bottom: 10px;
}
.panel-header h3 { margin: 0; font-size: 17px; }
.panel-header p { margin: 6px 0 0; color: var(--muted); }
.panel-header-inline { align-items: center; }
.operator-handling-header-inline {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
.operator-handling-header-inline p {
    margin: 0;
    white-space: nowrap;
}
.panel-icon-button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(150, 188, 245, 0.22);
    background: rgba(14, 24, 44, 0.84);
    color: #eaf2ff;
    font-size: 16px;
    cursor: pointer;
}
.panel-chip-button {
    min-width: 92px;
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(150, 188, 245, 0.22);
    background: rgba(14, 24, 44, 0.84);
    color: #eaf2ff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.panel-chip-button:hover,
.panel-chip-button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(173, 206, 255, 0.38);
    background: rgba(18, 31, 58, 0.92);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.16);
}
.panel-chip-button.active {
    border-color: rgba(108, 240, 167, 0.42);
    background: rgba(32, 92, 66, 0.9);
    color: #eafff3;
    box-shadow:
        0 12px 22px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.panel-chip-button.active:hover,
.panel-chip-button.active:focus-visible {
    border-color: rgba(132, 246, 183, 0.6);
    background: rgba(39, 111, 79, 0.96);
}
.chart-panel { min-height: 270px; padding: 14px 16px; align-self: start; }
.chart-panel-compare {
    height: var(--hero-panel-height);
    min-height: var(--hero-panel-height);
    display: flex;
    flex-direction: column;
}
.chart-panel-full { margin-bottom: var(--section-gap); }
.chart-panel-half {
    height: var(--hero-panel-height);
    min-height: var(--hero-panel-height);
    position: relative;
    display: flex;
    flex-direction: column;
}
.chart-mode-button {
    border: 1px solid rgba(112, 148, 214, 0.24);
    background: rgba(14, 24, 44, 0.72);
    color: #cfe0ff;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.chart-mode-button:hover {
    transform: translateY(-1px);
    border-color: rgba(136, 182, 255, 0.34);
    background: rgba(18, 31, 58, 0.88);
}

.chart-mode-button.active {
    color: #effff6;
    border-color: rgba(111, 245, 167, 0.58);
    background: linear-gradient(180deg, rgba(29, 93, 55, 0.96), rgba(20, 66, 40, 0.96));
    box-shadow: 0 0 16px rgba(51, 223, 120, 0.2);
}

.chart-mode-button-inline {
    position: absolute;
    top: 56px;
    right: 20px;
    z-index: 3;
}

.panel-grid-chart-operator > .panel {
    height: var(--hero-panel-height);
    align-self: stretch;
    min-height: var(--hero-panel-height);
}
.operator-handling-panel {
    height: var(--hero-panel-height);
    min-height: var(--hero-panel-height);
    display: flex;
    flex-direction: column;
}

.operator-handling-shell {
    position: relative;
    flex: 1;
    padding-bottom: 0;
    min-height: 0;
}

#geral-chart {
    width: 100%;
    min-height: 0;
    height: 216px;
    flex: 1;
    cursor: pointer;
}

.chart-totals {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 8px;
}

.chart-totals-inline {
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 3;
    margin: 0;
    max-width: 260px;
    justify-content: flex-end;
    pointer-events: none;
}

.chart-total-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(122, 160, 221, 0.2);
    background: rgba(14, 24, 44, 0.56);
    color: #a9bddf;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.chart-total-item strong {
    color: #eef4ff;
    font-size: 13px;
}

.chart-total-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.chart-total-open .chart-total-dot {
    background: #63c8ff;
    box-shadow: 0 0 10px rgba(99, 200, 255, 0.28);
}

.chart-total-closed .chart-total-dot {
    background: #6cf0a7;
    box-shadow: 0 0 10px rgba(108, 240, 167, 0.24);
}

.operator-handling-list {
    display: block;
    height: 100%;
    max-height: 216px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 2px;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(226, 232, 244, 0.12) transparent;
}

.operator-handling-list::-webkit-scrollbar {
    height: 6px;
}

.operator-handling-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.015);
    border-radius: 999px;
}

.operator-handling-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(238, 243, 252, 0.14), rgba(210, 220, 238, 0.08));
    border-radius: 999px;
    border: none;
}

.operator-handling-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(243, 247, 255, 0.2), rgba(219, 229, 244, 0.12));
}

.operator-handling-chart {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(72px, 1fr);
    align-items: end;
    gap: 10px;
    min-height: 204px;
    padding: 0 4px 144px 2px;
}

.operator-handling-chart-horizontal {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    min-height: auto;
    padding: 4px 2px 4px 2px;
}

.operator-handling-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 78px;
    align-items: center;
    gap: 2px;
    width: 100%;
}

.operator-handling-row-label {
    font-size: 12px;
    font-weight: 700;
    color: #eef4ff;
    line-height: 1.1;
    white-space: nowrap;
}

.operator-handling-row-bars {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    padding: 1px 0;
}

.operator-handling-row-grid {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    pointer-events: none;
    background-image: linear-gradient(to right, rgba(121, 145, 190, 0.16) 1px, transparent 1px);
    background-size: calc(100% / 6) 100%;
    opacity: 0.75;
}

.operator-handling-row-line {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px;
}

.operator-handling-row-track {
    position: relative;
    height: 12px;
    border-radius: 999px;
    background: rgba(23, 39, 72, 0.3);
    border: 1px solid rgba(99, 125, 182, 0.12);
    overflow: hidden;
}

.operator-handling-row-track-secondary {
    height: 10px;
    background: rgba(23, 39, 72, 0.22);
}

.operator-handling-row-fill {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #e1b347, #ffd38b);
    box-shadow: 0 0 16px rgba(255, 203, 122, 0.22);
}

.operator-handling-row-fill-secondary {
    background: linear-gradient(90deg, #4aaee3, #92dbff);
    box-shadow: 0 0 16px rgba(99, 200, 255, 0.2);
}

.operator-handling-row-value {
    font-size: 11px;
    font-weight: 800;
    color: #ffcb7a;
    white-space: nowrap;
}

.operator-handling-row-value-secondary {
    color: #7dd9ff;
}

.operator-handling-button-inline {
    width: 34px;
    height: 34px;
    min-width: 0;
    max-width: 34px;
    margin: 0;
    justify-self: end;
    padding: 0;
    font-size: 15px;
    line-height: 1;
}

.operator-handling-button-spacer {
    width: 34px;
    height: 34px;
}

.panel-expand-placeholder {
    visibility: hidden;
    pointer-events: none;
    border-radius: 22px;
}

.panel-expand-host {
    position: absolute;
    inset: 0 auto auto 0;
    width: 0;
    height: 0;
    z-index: 90;
    pointer-events: none;
}

.operator-handling-panel.is-expanded {
    position: absolute;
    left: var(--panel-expand-left, 24px);
    top: var(--panel-expand-top, 24px);
    width: var(--panel-expand-width, 100%);
    height: auto;
    min-height: 0;
    z-index: 90;
    overflow: visible;
    background:
        linear-gradient(135deg, rgb(20, 33, 61), rgb(11, 20, 39)),
        radial-gradient(circle at top right, rgba(98, 198, 255, 0.08), transparent 28%);
    background-color: rgb(12, 22, 42);
    backdrop-filter: none;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
    pointer-events: auto;
}

.operator-handling-panel.is-expanded .operator-handling-shell {
    flex: 0 0 auto;
    min-height: auto;
    overflow: visible;
}

.operator-handling-panel.is-expanded .operator-handling-list {
    height: auto;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    padding-bottom: 0;
}

.operator-handling-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 1px;
    min-height: 100%;
}

.operator-handling-value {
    font-size: 12px;
    font-weight: 800;
    color: var(--row-color, #ffcb7a);
    text-align: center;
    min-height: 22px;
    margin-bottom: 0;
}

.operator-handling-average-value {
    font-size: 11px;
    font-weight: 800;
    color: #7dd9ff;
    text-align: center;
    line-height: 1;
    min-height: 14px;
    margin-top: -1px;
}

.operator-handling-count {
    font-size: 15px;
    font-weight: 800;
    color: #eef4ff;
    text-align: center;
    line-height: 1;
    min-height: 12px;
    margin-top: -1px;
    margin-bottom: 4px;
}

.operator-handling-bar-group {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 6px;
    min-height: 96px;
}

.operator-handling-bar-rail {
    position: relative;
    width: 24px;
    height: 96px;
    border-radius: 999px;
    background: rgba(37, 58, 99, 0.42);
    overflow: hidden;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.26);
}

.operator-handling-bar-rail-average {
    background: rgba(32, 53, 98, 0.5);
}

.operator-handling-bar-fill {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--row-color, #ffcb7a) 72%, #ffffff), var(--row-color, #ffcb7a));
    box-shadow: 0 0 14px color-mix(in srgb, var(--row-color, #ffcb7a) 24%, transparent);
}

.operator-handling-bar-fill-average {
    background: linear-gradient(180deg, #9fe6ff, #63c8ff);
    box-shadow: 0 0 14px rgba(99, 200, 255, 0.26);
}

.operator-handling-label {
    font-size: 13px;
    font-weight: 700;
    color: #eef4ff;
    text-align: center;
    line-height: 1.15;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    margin-top: 2px;
}

.operator-handling-button {
    width: 34px;
    min-width: 34px;
    max-width: 34px;
    height: 34px;
    margin: 8px auto 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--row-color, #ffcb7a) 20%, rgba(120, 156, 220, 0.18));
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.14), transparent 38%),
        linear-gradient(180deg, rgba(16, 28, 51, 0.96), rgba(11, 20, 38, 0.92));
    color: #eef4ff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 10px 22px rgba(0, 0, 0, 0.22);
}

.operator-handling-button:hover {
    transform: translateY(-1px);
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.18), transparent 40%),
        linear-gradient(180deg, rgba(18, 31, 56, 0.98), rgba(12, 22, 41, 0.94));
    border-color: color-mix(in srgb, var(--row-color, #ffcb7a) 36%, rgba(120, 156, 220, 0.18));
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.operator-handling-button > span:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.operator-handling-arrow {
    display: none;
}

@media (max-width: 960px) {
    .operator-handling-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .operator-handling-row-label {
        white-space: normal;
    }

    .operator-handling-button-inline,
    .operator-handling-button-spacer {
        width: 100%;
        max-width: none;
    }
}

.organization-handling-panel {
    min-height: 292px;
    margin-bottom: var(--section-gap);
    display: flex;
    flex-direction: column;
}

.layout-board > .support-summary-panel,
.layout-board > .support-compare-panel,
.layout-board > .organization-handling-panel {
    margin-bottom: 0;
}

.organization-handling-shell {
    position: relative;
    flex: 1;
}

.organization-handling-list {
    display: block;
    height: 100%;
    max-height: 222px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 2px;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(226, 232, 244, 0.12) transparent;
}

.organization-handling-list::-webkit-scrollbar {
    height: 6px;
}

.organization-handling-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.015);
    border-radius: 999px;
}

.organization-handling-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(238, 243, 252, 0.14), rgba(210, 220, 238, 0.08));
    border-radius: 999px;
    border: none;
}

.organization-handling-chart {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(138px, 1fr);
    align-items: end;
    gap: 12px;
    min-height: 214px;
    padding: 0 4px 56px 2px;
}

.organization-handling-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    min-height: 100%;
}

.organization-handling-value {
    font-size: 12px;
    font-weight: 800;
    color: var(--row-color, #6cf0a7);
    text-align: center;
    min-height: 28px;
}

.organization-handling-bar-rail {
    position: relative;
    width: 32px;
    height: 108px;
    border-radius: 999px;
    background: rgba(37, 58, 99, 0.42);
    overflow: hidden;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.26);
}

.organization-handling-bar-fill {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--row-color, #6cf0a7) 72%, #ffffff), var(--row-color, #6cf0a7));
    box-shadow: 0 0 14px color-mix(in srgb, var(--row-color, #6cf0a7) 24%, transparent);
}

.organization-handling-label {
    font-size: 13px;
    font-weight: 700;
    color: #eef4ff;
    text-align: center;
    line-height: 1.15;
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 30px;
}

.organization-handling-button {
    width: 100%;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 26px;
    padding: 4px 28px 4px 10px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--row-color, #6cf0a7) 20%, rgba(120, 156, 220, 0.18));
    background: rgba(12, 21, 39, 0.64);
    color: #eef4ff;
    font-size: 9px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.organization-handling-button span:first-child {
    width: 100%;
    text-align: center;
}

.organization-handling-button:hover {
    transform: translateY(-1px);
    background: rgba(15, 26, 47, 0.88);
    border-color: color-mix(in srgb, var(--row-color, #6cf0a7) 36%, rgba(120, 156, 220, 0.18));
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.organization-handling-arrow {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    line-height: 1;
    color: color-mix(in srgb, var(--row-color, #6cf0a7) 82%, #ffffff);
}

.support-compare-panel {
    min-height: 254px;
    margin-bottom: var(--section-gap);
}

.support-summary-panel {
    margin-bottom: var(--section-gap);
    padding: 14px 16px;
}

.support-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.support-summary-item {
    min-height: 78px;
    padding: 8px 12px 7px;
    border-radius: 18px;
    border: 1px solid rgba(112, 148, 214, 0.18);
    background: linear-gradient(180deg, rgba(18, 31, 58, 0.9), rgba(14, 25, 46, 0.84));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
}

.support-summary-label {
    color: #c9d8f3;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
}

.support-summary-value {
    color: #eef4ff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.support-summary-note {
    color: #8fa7ce;
    font-size: 10px;
    line-height: 1.15;
    white-space: normal;
}

.support-summary-blue .support-summary-value {
    color: #63c8ff;
}

.support-summary-green .support-summary-value {
    color: #33df78;
}

.support-summary-amber .support-summary-value {
    color: #ffcb7a;
    font-size: 20px;
}

.support-summary-amber .support-summary-note {
    font-size: 10px;
    line-height: 1;
}

.support-summary-purple .support-summary-value {
    color: #a98bff;
}

.support-summary-red .support-summary-value {
    color: #ff6b67;
}

.support-compare-shell {
    position: relative;
    width: 100%;
    min-height: 194px;
}

.support-compare-list {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(226, 232, 244, 0.12) transparent;
}

.support-compare-list::-webkit-scrollbar {
    height: 6px;
}

.support-compare-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.015);
    border-radius: 999px;
}

.support-compare-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(238, 243, 252, 0.14), rgba(210, 220, 238, 0.08));
    border-radius: 999px;
}

.support-compare-chart {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(172px, 1fr);
    align-items: stretch;
    gap: 14px;
    min-height: 204px;
    padding: 2px 2px 8px;
}

.support-compare-column {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    min-height: 100%;
    padding: 10px 10px 8px;
    border-radius: 18px;
    border: 1px solid rgba(112, 148, 214, 0.16);
    background: linear-gradient(180deg, rgba(18, 31, 58, 0.76), rgba(12, 22, 41, 0.72));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.support-compare-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.support-compare-chart.is-two-metrics .support-compare-header {
    justify-content: flex-start;
}

.support-compare-total {
    flex: 1;
    min-width: 0;
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    padding: 6px 7px;
    border-radius: 11px;
    border: 1px solid rgba(120, 156, 220, 0.16);
    background: rgba(9, 18, 35, 0.62);
    color: #eaf3ff;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.support-compare-chart.is-two-metrics .support-compare-total {
    flex: 0 0 calc((100% - 12px) / 3);
}

.support-compare-total:hover {
    transform: translateY(-1px);
    background: rgba(13, 24, 44, 0.9);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.support-compare-total-open {
    border-color: rgba(99, 200, 255, 0.2);
}

.support-compare-total-closed {
    border-color: rgba(51, 223, 120, 0.22);
}

.support-compare-total-handling {
    border-color: rgba(255, 193, 92, 0.24);
}

.support-compare-total-value {
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    max-width: 100%;
    white-space: nowrap;
}

.support-compare-total-label {
    font-size: 10px;
    font-weight: 700;
    color: #9fb4d8;
    line-height: 1.1;
}

.support-compare-total-open .support-compare-total-value {
    color: #63c8ff;
}

.support-compare-total-closed .support-compare-total-value {
    color: #6cf0a7;
}

.support-compare-total-handling .support-compare-total-value {
    color: #ffc15c;
}

.support-compare-day-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(18px, 1fr));
    gap: 6px;
    align-items: end;
    min-height: 148px;
}

.support-compare-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    gap: 5px;
    min-width: 0;
}

.support-compare-day-values {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    min-height: 24px;
}

.support-compare-day-value {
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.support-compare-day-value-open {
    color: #7dd9ff;
}

.support-compare-day-value-closed {
    color: #7cf6b7;
}

.support-compare-day-bars {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 3px;
    height: 104px;
    width: 100%;
}

.support-compare-day-bar {
    width: 6px;
    min-height: 4px;
    border-radius: 999px 999px 4px 4px;
}

.support-compare-day-bar-open {
    background: linear-gradient(180deg, #93ddff, #63c8ff);
    box-shadow: 0 0 10px rgba(99, 200, 255, 0.18);
}

.support-compare-day-bar-closed {
    background: linear-gradient(180deg, #74f7b0, #33df78);
    box-shadow: 0 0 12px rgba(51, 223, 120, 0.22);
}

.support-compare-day-label {
    font-size: 10px;
    font-weight: 700;
    color: #88a2cb;
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-align: center;
}

.support-compare-label {
    max-width: 100%;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #eef4ff;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.support-status-inline {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 8px;
    min-height: 58px;
    width: 100%;
    margin-top: -4px;
    padding-top: 0;
}

.support-status-inline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    gap: 3px;
    width: 16px;
    min-height: 58px;
}

.support-status-value-inline {
    min-height: 14px;
    font-size: 10px;
}

.support-status-bar-inline {
    width: 100%;
    min-height: 8px;
}

.support-compare-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 14px;
    margin-top: 4px;
    color: #9cb2d8;
    font-size: 11px;
    font-weight: 700;
}

.support-compare-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.support-apoio-classification-list {
    margin: 0 0 12px;
    display: block;
}

.support-apoio-classification-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px 2px 6px;
}

.support-apoio-classification-title {
    flex: 0 0 auto;
    color: #a9bad8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.support-apoio-classification-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(112, 148, 214, 0.18);
    background: linear-gradient(180deg, rgba(18, 31, 58, 0.9), rgba(14, 25, 46, 0.84));
    color: #eef4ff;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.support-apoio-classification-pill:hover {
    transform: translateY(-1px);
    border-color: rgba(112, 148, 214, 0.32);
    background: linear-gradient(180deg, rgba(22, 37, 68, 0.94), rgba(16, 28, 52, 0.9));
}

.support-apoio-classification-pill strong {
    color: #63c8ff;
    font-size: 13px;
}

.support-apoio-classification-pill-total strong {
    color: #ffcb7a;
}

.support-apoio-classification-card {
    width: min(420px, 100%);
    border: 1px solid rgba(112, 148, 214, 0.18);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(18, 31, 58, 0.9), rgba(14, 25, 46, 0.84));
    overflow: hidden;
}

.support-apoio-classification-head,
.support-apoio-classification-row,
.support-apoio-classification-foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 12px;
    align-items: center;
    padding: 10px 14px;
}

.support-apoio-classification-head {
    color: #a9bad8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(112, 148, 214, 0.2);
}

.support-apoio-classification-body {
    display: grid;
}

.support-apoio-classification-row {
    color: #eef4ff;
    font-size: 14px;
    border-top: 1px solid rgba(112, 148, 214, 0.12);
}

.support-apoio-classification-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

.support-apoio-classification-row strong,
.support-apoio-classification-foot strong {
    justify-self: end;
}

.support-apoio-classification-foot {
    color: #eef4ff;
    font-size: 14px;
    font-weight: 800;
    border-top: 1px solid rgba(112, 148, 214, 0.2);
}

@media (max-width: 1200px) {
    .support-compare-chart {
        grid-auto-columns: minmax(152px, 1fr);
        gap: 12px;
    }

    .support-compare-column {
        padding: 9px 8px 8px;
    }

    .support-compare-day-grid {
        gap: 5px;
    }

    .support-compare-day-bar {
        width: 5px;
    }
}

.legend-swatch {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.legend-open {
    background: #63c8ff;
    box-shadow: 0 0 10px rgba(99, 200, 255, 0.26);
}

.legend-closed {
    background: #33df78;
    box-shadow: 0 0 12px rgba(51, 223, 120, 0.32);
}

.legend-status {
    background: #a98bff;
    box-shadow: 0 0 10px rgba(169, 139, 255, 0.24);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.support-status-panel {
    min-height: 286px;
    margin-bottom: var(--section-gap);
}

.support-status-shell {
    position: relative;
    width: 100%;
    min-height: 224px;
}

.support-status-list {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(226, 232, 244, 0.12) transparent;
}

.support-status-list::-webkit-scrollbar {
    height: 6px;
}

.support-status-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.015);
    border-radius: 999px;
}

.support-status-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(238, 243, 252, 0.14), rgba(210, 220, 238, 0.08));
    border-radius: 999px;
}

.support-status-chart {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(132px, 1fr);
    align-items: end;
    gap: 18px;
    min-height: 214px;
    padding: 4px 2px 6px;
}

.support-status-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: 100%;
}

.support-status-bars {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 8px;
    height: 140px;
    width: 100%;
}

.support-status-bar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    gap: 4px;
    width: 18px;
    height: 100%;
}

.support-status-value {
    font-size: 11px;
    font-weight: 800;
    color: var(--status-color, #63c8ff);
    min-height: 16px;
    text-align: center;
}

.support-status-bar {
    width: 100%;
    min-height: 10px;
    border: 0;
    border-radius: 999px 999px 8px 8px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--status-color, #63c8ff) 78%, #ffffff), var(--status-color, #63c8ff));
    box-shadow: 0 0 14px color-mix(in srgb, var(--status-color, #63c8ff) 22%, transparent);
    cursor: pointer;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.support-status-bar:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

.support-status-caption {
    font-size: 10px;
    font-weight: 800;
    color: var(--status-color, #63c8ff);
    text-align: center;
    line-height: 1;
}

.support-status-operator {
    max-width: 120px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #eef4ff;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stack-list { display: grid; gap: 10px; }
.stack-row {
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--row-color, #63c8ff) 18%, rgba(112, 145, 205, 0.15));
    background:
        linear-gradient(180deg, rgba(25, 38, 67, 0.94), rgba(13, 23, 43, 0.96)),
        radial-gradient(circle at 86% 10%, color-mix(in srgb, var(--row-color, #63c8ff) 12%, transparent), transparent 26%);
    box-shadow:
        inset 0 0 18px color-mix(in srgb, var(--row-color, #63c8ff) 5%, transparent),
        0 10px 22px rgba(0, 0, 0, 0.16);
}
.stack-row-neon {
    padding: 11px 16px 13px;
    border-radius: 20px;
    border: 1px solid var(--row-color);
    background:
        linear-gradient(180deg, rgba(28, 40, 54, 0.88), rgba(17, 29, 44, 0.82)),
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.04), transparent 55%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        0 0 10px color-mix(in srgb, var(--row-color) 58%, transparent),
        0 0 36px rgba(0, 0, 0, 0.14);
}
.stack-row-card {
    position: relative;
    overflow: hidden;
}
.stack-row-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid color-mix(in srgb, var(--row-color, #63c8ff) 10%, transparent);
    pointer-events: none;
}
.stack-row-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; align-items: center; }
.stack-row-neon .stack-row-head { margin-bottom: 9px; }
.stack-row-label { font-weight: 600; font-size: 14px; color: #f3f8ff; }
.stack-row-neon .stack-row-label { font-weight: 500; font-size: 14px; }
.stack-row-value {
    color: var(--blue);
    font-weight: 700;
    font-size: 14px;
}
.stack-row-neon .stack-row-value {
    color: var(--row-color);
    font-size: 14px;
    text-shadow: 0 0 7px color-mix(in srgb, var(--row-color) 55%, transparent);
}
.stack-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(38, 58, 98, 0.52);
    overflow: hidden;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.28);
}
.stack-row-neon .stack-bar { height: 10px; background: rgba(51, 71, 102, 0.55); }
.stack-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(69, 127, 255, 0.6), rgba(102, 216, 255, 0.95));
}
.stack-row-neon .stack-bar-fill {
    background: linear-gradient(90deg, var(--row-color), var(--row-color));
    box-shadow:
        0 0 7px color-mix(in srgb, var(--row-color) 62%, transparent),
        0 0 12px color-mix(in srgb, var(--row-color) 28%, transparent);
}

.status-totalizer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(116, 162, 230, 0.22);
    background: rgba(14, 24, 44, 0.62);
    color: #dce9ff;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.status-panel-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.status-panel-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid rgba(116, 162, 230, 0.16);
    background: rgba(10, 19, 36, 0.58);
}
.status-panel-toggle-button {
    border: 0;
    border-radius: 999px;
    padding: 7px 12px;
    background: transparent;
    color: #9fb4d8;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.status-panel-toggle-button.active {
    background: rgba(24, 44, 78, 0.9);
    color: #eef6ff;
    box-shadow: inset 0 0 0 1px rgba(111, 156, 228, 0.22);
}
.stack-row-card .stack-bar {
    height: 10px;
    background: rgba(39, 59, 98, 0.5);
}
.stack-row-card .stack-bar-fill {
    box-shadow: 0 0 14px color-mix(in srgb, var(--row-color, #63c8ff) 24%, transparent);
}
.stack-row-button {
    margin-top: 10px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--row-color, #63c8ff) 18%, rgba(120, 156, 220, 0.18));
    background: rgba(12, 21, 39, 0.64);
    color: #eaf3ff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.stack-row-button:hover {
    transform: translateY(-1px);
    background: rgba(15, 26, 47, 0.9);
    border-color: color-mix(in srgb, var(--row-color, #63c8ff) 38%, rgba(120, 156, 220, 0.18));
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}
.stack-row-arrow {
    font-size: 18px;
    line-height: 1;
    color: color-mix(in srgb, var(--row-color, #63c8ff) 82%, #ffffff);
}

.search-input {
    width: min(360px, 100%);
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(111, 146, 211, 0.18);
    background: rgba(10, 19, 36, 0.86);
    color: var(--text);
}

.table-wrap { overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 980px; }
.data-table th, .data-table td { padding: 12px 10px; border-bottom: 1px solid rgba(106, 138, 197, 0.12); text-align: left; font-size: 13px; }
.data-table th { color: #d4e0f7; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.data-table td { color: #c7d5ef; }

.ticket-list-card { min-height: 240px; }
.ticket-scroll { display: grid; gap: 10px; max-height: 980px; overflow: auto; padding-right: 8px; }
.ticket-item { padding: 12px; border-radius: 16px; border: 1px solid rgba(112, 146, 211, 0.16); background: linear-gradient(180deg, rgba(18, 30, 54, 0.88), rgba(14, 24, 44, 0.88)); }
.ticket-item-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.ticket-chip { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; border: 1px solid currentColor; font-weight: 700; }
.ticket-status { color: #bfd0ed; font-size: 12px; font-weight: 600; flex: 1; text-align: center; }
.ticket-title { margin: 10px 0 8px; font-size: 18px; font-weight: 700; color: #dce7fb; }
.ticket-meta-line { margin-top: 8px; color: #9ab0d8; }
.ticket-go { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 17px; border: 1px solid currentColor; color: inherit; }

.bot-kanban-board {
    display: grid;
    gap: 4px;
}

.bot-kanban-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.bot-kanban-head-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.bot-kanban-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bot-kanban-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bot-kanban-search-submit {
    border: 1px solid rgba(255, 214, 107, 0.28);
    background: rgba(14, 25, 45, 0.92);
    color: #ffd66b;
    border-radius: 999px;
    font-weight: 800;
}

.bot-kanban-search-panel {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px;
    border-radius: 999px;
    border: 1px solid rgba(118, 160, 225, 0.18);
    background: rgba(9, 18, 34, 0.9);
}

.bot-kanban-search-input {
    width: 170px;
    height: 30px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #eef4ff;
    padding: 0 12px;
    font-size: 13px;
}

.bot-kanban-search-input::placeholder {
    color: #8ea7d1;
}

.bot-kanban-search-submit {
    height: 30px;
    padding: 0 12px;
    font-size: 11px;
}

.bot-kanban-search-feedback {
    min-height: 0;
    white-space: nowrap;
    color: rgba(255, 214, 107, 0.92);
    font-size: 12px;
    font-weight: 700;
    opacity: 0;
    transition: opacity 160ms ease;
}

.bot-kanban-search-feedback.is-visible {
    opacity: 1;
}

.bot-kanban-search-feedback.is-error {
    color: #ff8798;
}

.bot-kanban-head h3 {
    margin: 0;
    font-size: 20px;
}

.bot-kanban-head p {
    margin: 4px 0 0;
    color: var(--muted);
}

.bot-kanban-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    align-items: start;
    padding-bottom: 6px;
}

.bot-kanban-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(126, 167, 228, 0.16);
    background: linear-gradient(180deg, rgba(18, 31, 56, 0.94), rgba(10, 21, 40, 0.96));
}

.bot-kanban-column-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.bot-kanban-column-meta {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.bot-kanban-column-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.bot-kanban-column-availability {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 10px currentColor;
}

.bot-kanban-column-availability.is-available {
    color: #69f0ae;
    background: #69f0ae;
}

.bot-kanban-column-availability.is-unavailable {
    color: #ff6f8c;
    background: #ff6f8c;
}

.bot-kanban-column-availability.is-warning {
    color: #ffd166;
    background: #ffd166;
}

.bot-kanban-column-availability.is-unknown {
    color: rgba(161, 186, 223, 0.78);
    background: rgba(161, 186, 223, 0.78);
    box-shadow: none;
}

.bot-kanban-column-title {
    font-size: 15px;
    font-weight: 800;
    color: #eef4ff;
    min-width: 0;
}

.bot-kanban-column-stats {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.bot-kanban-column-stat {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid rgba(126, 167, 228, 0.18);
    background: rgba(11, 20, 38, 0.38);
    color: #a9bddf;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.bot-kanban-column-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(99, 200, 255, 0.24);
    background: rgba(11, 20, 38, 0.64);
    color: var(--blue);
    font-weight: 800;
}

.bot-kanban-ticket-list {
    display: grid;
    gap: 10px;
    max-height: 520px;
    overflow: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(210, 226, 248, 0.26) transparent;
}

.bot-kanban-ticket-list::-webkit-scrollbar {
    width: 8px;
}

.bot-kanban-ticket-list::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 999px;
}

.bot-kanban-ticket-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(233, 241, 252, 0.32), rgba(184, 203, 231, 0.14));
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.bot-kanban-ticket-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(241, 247, 255, 0.42), rgba(194, 214, 240, 0.2));
}

.bot-kanban-ticket {
    --ticket-status-color: #63c8ff;
    display: grid;
    gap: 8px;
    position: relative;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--ticket-status-color) 24%, rgba(118, 160, 225, 0.14));
    background:
        linear-gradient(180deg, rgba(18, 30, 54, 0.88), rgba(12, 22, 42, 0.9)),
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--ticket-status-color) 14%, transparent), transparent 34%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ticket-status-color) 8%, transparent);
    isolation: isolate;
}

.bot-kanban-ticket.is-urgent {
    --ticket-status-color: #ff5f73;
    border-color: rgba(255, 95, 115, 0.82);
    box-shadow:
        inset 0 0 0 1px rgba(255, 95, 115, 0.18),
        0 0 0 1px rgba(255, 95, 115, 0.18),
        0 0 18px rgba(255, 68, 92, 0.26);
    animation: urgentTicketPulse 1.15s ease-in-out infinite;
}

.bot-kanban-ticket.is-search-match {
    border-color: rgba(255, 214, 107, 0.96);
    box-shadow:
        0 0 0 1px rgba(255, 214, 107, 0.28),
        0 0 14px rgba(255, 214, 107, 0.22),
        0 0 34px rgba(255, 204, 64, 0.48);
    animation: botKanbanSearchPulse 1s ease-in-out infinite;
}

.bot-kanban-ticket.is-search-match::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 8px;
    bottom: 8px;
    width: 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 237, 159, 0.98), rgba(255, 204, 64, 1));
    box-shadow:
        0 0 12px rgba(255, 214, 107, 0.62),
        0 0 24px rgba(255, 204, 64, 0.82),
        0 0 40px rgba(255, 204, 64, 0.46);
}

.bot-kanban-ticket.is-search-match::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 22px;
    border: 2px solid rgba(255, 222, 116, 0.92);
    box-shadow:
        0 0 0 1px rgba(255, 237, 159, 0.18),
        0 0 18px rgba(255, 214, 107, 0.34),
        0 0 34px rgba(255, 204, 64, 0.4);
    opacity: 0.95;
    z-index: -1;
    pointer-events: none;
}

@keyframes botKanbanSearchPulse {
    0%,
    100% {
        border-color: rgba(255, 214, 107, 0.74);
        box-shadow:
            0 0 0 1px rgba(255, 214, 107, 0.22),
            0 0 12px rgba(255, 214, 107, 0.18),
            0 0 22px rgba(255, 204, 64, 0.28);
    }
    50% {
        border-color: rgba(255, 228, 148, 1);
        box-shadow:
            0 0 0 1px rgba(255, 228, 148, 0.3),
            0 0 18px rgba(255, 228, 148, 0.24),
            0 0 40px rgba(255, 204, 64, 0.62);
    }
}

@keyframes urgentTicketPulse {
    0%,
    100% {
        border-color: rgba(255, 95, 115, 0.72);
        box-shadow:
            inset 0 0 0 1px rgba(255, 95, 115, 0.14),
            0 0 0 1px rgba(255, 95, 115, 0.12),
            0 0 14px rgba(255, 68, 92, 0.18);
    }
    50% {
        border-color: rgba(255, 131, 143, 1);
        box-shadow:
            inset 0 0 0 1px rgba(255, 131, 143, 0.24),
            0 0 0 1px rgba(255, 131, 143, 0.22),
            0 0 26px rgba(255, 68, 92, 0.38);
    }
}

.bot-kanban-ticket-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.bot-kanban-ticket-id {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--ticket-status-color) 85%, white 15%);
    color: var(--ticket-status-color);
    font-weight: 800;
}

.bot-kanban-ticket-status {
    font-size: 11px;
    line-height: 1.15;
    color: color-mix(in srgb, var(--ticket-status-color) 78%, white 22%);
    text-align: center;
    align-self: center;
    max-width: 92px;
    text-wrap: balance;
}

.bot-kanban-ticket-title {
    font-size: 15px;
    font-weight: 800;
    color: #eef4ff;
}

.bot-kanban-ticket-meta {
    font-size: 12px;
    color: #9fb3d8;
}

.bot-kanban-ticket.is-archived {
    opacity: 0.96;
}

.bot-kanban-extra-group {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(122, 153, 206, 0.18);
}

.bot-kanban-extra-group[open] {
    padding-bottom: 2px;
}

.bot-kanban-extra-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
    color: #b5c7e7;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bot-kanban-extra-summary::-webkit-details-marker {
    display: none;
}

.bot-kanban-extra-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bot-kanban-extra-label::before {
    content: "";
    width: 18px;
    height: 1px;
    background: rgba(125, 255, 191, 0.55);
}

.bot-kanban-extra-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(125, 255, 191, 0.28);
    color: #7dffbf;
    background: rgba(18, 34, 53, 0.74);
}

.bot-kanban-extra-list {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

#geral-panels-double,
[data-layout-id="geral-departamentos-panel"],
[data-layout-id="geral-finalizados-org-panel"] {
    display: none !important;
}

@media (max-width: 900px) {
    .bot-kanban-columns {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 640px) {
    .bot-kanban-columns {
        grid-template-columns: 1fr;
    }

    .bot-kanban-head,
    .bot-kanban-head-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .bot-kanban-head-title {
        align-items: stretch;
        flex-direction: column;
    }

    .bot-kanban-search-panel {
        width: 100%;
        flex-wrap: wrap;
    }

    .bot-kanban-search-input {
        width: 100%;
        min-width: 0;
    }
}

.panel-banner .banner-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
}

.banner-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.banner-title {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.banner-inline-meta {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.banner-subtitle, .banner-source {
    color: var(--muted);
    margin-top: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10px;
    line-height: 1;
}

.banner-subtitle {
    flex: 0 0 auto;
}

.banner-source {
    flex: 1;
}

.banner-chip {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    border-radius: 999px;
    border: 1px solid rgba(99, 200, 255, 0.24);
    color: var(--blue);
    font-weight: 700;
    font-size: 10px;
    line-height: 1;
}

.panel-banner {
    padding: 2px 10px;
    border-radius: 14px;
}

#bot-info .banner-chip {
    padding: 1px 6px;
    font-size: 9px;
}

#view-bot {
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 0;
    margin-top: 0;
}

#view-bot > .panel {
    display: none;
}

#bot-ticket-cards {
    width: 100%;
    justify-self: stretch;
}

#view-bot > .panel > .panel-header,
#bot-status {
    display: none;
}

#bot-info.panel-banner {
    display: none;
}

#bot-info .banner-grid {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    justify-content: start;
    gap: 6px;
    min-height: 18px;
}

#bot-info .banner-main {
    flex: 0 1 auto;
    gap: 6px;
}

#bot-info .banner-inline-meta {
    flex: 0 1 auto;
    min-width: 0;
    gap: 6px;
}

#bot-info .banner-source {
    display: none;
}

#bot-info .banner-subtitle {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#bot-cards {
    margin-top: 0;
    transform: translateY(2px);
}

@media (max-width: 980px) {
    .panel-banner .banner-grid,
    .banner-main,
    .banner-inline-meta {
        flex-wrap: wrap;
    }

    #bot-cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    #bot-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

body.drawer-open {
    overflow: hidden;
}

.department-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 10, 20, 0.52);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    z-index: 90;
}

.department-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.operator-filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 20, 0.54);
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    z-index: 92;
}

.operator-filter-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.operator-filter-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(520px, 92vw);
    max-height: min(78vh, 680px);
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(144, 197, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(18, 30, 56, 0.98), rgba(10, 19, 36, 0.98)),
        radial-gradient(circle at top right, rgba(255, 203, 122, 0.12), transparent 24%);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.32);
    transform: translate(-50%, -48%) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 93;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.operator-filter-modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.operator-filter-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.operator-filter-eyebrow {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--amber);
}

.operator-filter-title {
    margin: 6px 0 0;
    font-size: 26px;
}

.operator-filter-subtitle {
    margin: 8px 0 0;
    color: var(--muted);
}

.operator-filter-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(164, 205, 255, 0.24);
    background: rgba(16, 26, 47, 0.85);
    color: #f4f8ff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.operator-filter-actions,
.operator-filter-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.operator-filter-action,
.operator-filter-cancel,
.operator-filter-apply {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(144, 197, 255, 0.18);
    background: rgba(13, 22, 42, 0.76);
    color: #eaf2ff;
    font-weight: 700;
    cursor: pointer;
}

.operator-filter-apply {
    border-color: rgba(255, 203, 122, 0.24);
    color: #14233d;
    background: linear-gradient(180deg, rgba(255, 213, 143, 0.96), rgba(255, 194, 87, 0.94));
}

.operator-filter-list {
    display: grid;
    gap: 8px;
    overflow: auto;
    padding-right: 4px;
}

.operator-filter-option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(136, 170, 226, 0.14);
    background: rgba(14, 23, 42, 0.72);
}

.operator-filter-option input {
    width: 16px;
    height: 16px;
}

.operator-filter-option-label {
    color: #eef4ff;
    font-weight: 700;
}

.operator-filter-option-value {
    color: var(--amber);
    font-weight: 800;
}

.department-drawer {
    --drawer-accent: #63c8ff;
    position: fixed;
    top: 0;
    right: 0;
    width: min(560px, 94vw);
    height: 100vh;
    padding: 10px 18px 18px;
    background:
        linear-gradient(180deg, rgba(16, 27, 50, 0.98), rgba(9, 16, 31, 0.99)),
        radial-gradient(circle at top right, rgba(99, 200, 255, 0.16), transparent 28%);
    border-left: 1px solid color-mix(in srgb, var(--drawer-accent) 48%, rgba(130, 190, 255, 0.18));
    box-shadow:
        -24px 0 48px rgba(0, 0, 0, 0.34),
        -1px 0 0 color-mix(in srgb, var(--drawer-accent) 72%, transparent),
        0 0 0 1px color-mix(in srgb, var(--drawer-accent) 14%, transparent) inset;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.department-drawer.active {
    transform: translateX(0);
}

.department-drawer::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, transparent, var(--drawer-accent), transparent);
    box-shadow: 0 0 24px color-mix(in srgb, var(--drawer-accent) 90%, transparent);
}

.department-drawer-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 8px 12px 6px;
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--drawer-accent) 20%, rgba(140, 190, 255, 0.08));
    background:
        linear-gradient(180deg, rgba(23, 36, 63, 0.92), rgba(12, 20, 38, 0.9)),
        radial-gradient(circle at top right, color-mix(in srgb, var(--drawer-accent) 24%, transparent), transparent 30%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 18px 30px rgba(0, 0, 0, 0.18);
}

.department-drawer-topline {
    display: none;
}

.department-drawer-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
    gap: 6px;
    align-items: start;
}

.department-drawer-hero-copy {
    display: grid;
    gap: 3px;
}

.department-drawer-count-wrap {
    display: grid;
    gap: 0;
}

.department-drawer-count {
    font-size: 48px;
    line-height: 0.95;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #f7fbff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
}

.department-drawer-count-label {
    font-size: 9px;
    color: #aebfdf;
    letter-spacing: 0.01em;
}

.department-drawer-filter-label {
    display: none;
}

.department-drawer-eyebrow {
    display: none;
}

.department-drawer-title {
    display: none;
}

.department-drawer-subtitle {
    margin: 0;
    max-width: 44ch;
    color: #d2def4;
    font-size: 9px;
    line-height: 1.2;
}

.department-drawer-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(164, 205, 255, 0.24);
    background: rgba(16, 26, 47, 0.85);
    color: #f4f8ff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.department-drawer-meta {
    display: grid;
    gap: 6px;
    margin-top: 0;
    align-content: end;
}

.department-drawer-stat {
    position: relative;
    display: grid;
    gap: 3px;
    min-height: 52px;
    padding: 7px 12px;
    border-radius: 16px;
    border: 1px solid rgba(141, 210, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(21, 34, 60, 0.94), rgba(13, 22, 40, 0.9)),
        radial-gradient(circle at top center, color-mix(in srgb, var(--drawer-accent) 16%, transparent), transparent 34%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 12px 22px rgba(0, 0, 0, 0.16);
}

.department-drawer-stat::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--drawer-accent) 84%, white), transparent);
    opacity: 0.75;
}

.department-drawer-stat-kicker {
    font-size: 7px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #8ea7d3;
    font-weight: 700;
}

.department-drawer-stat-value {
    font-size: 11px;
    line-height: 1.15;
    color: #eff5ff;
    font-weight: 700;
}

.department-drawer-stat.is-primary .department-drawer-stat-value {
    font-size: 13px;
    color: #ffffff;
}

.department-drawer-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
    margin-top: -2px;
    border-radius: 18px;
    border: 1px solid rgba(141, 210, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(196, 202, 213, 0.92), rgba(162, 170, 183, 0.9)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 2px, rgba(0, 0, 0, 0.03) 2px 4px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 12px 24px rgba(0, 0, 0, 0.18);
}

.department-filter-field {
    display: grid;
    gap: 3px;
    position: relative;
}

.department-filter-field span {
    padding-left: 4px;
    font-size: 8px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(39, 50, 71, 0.72);
    font-weight: 800;
}

.department-native-select {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.department-custom-select {
    position: relative;
}

.department-custom-select-button {
    appearance: none;
    width: 100%;
    min-height: 38px;
    padding: 7px 34px 7px 13px;
    border-radius: 16px;
    border: 1px solid rgba(84, 99, 128, 0.24);
    background:
        linear-gradient(180deg, rgba(210, 214, 222, 0.94), rgba(183, 190, 201, 0.9)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 2px, rgba(0, 0, 0, 0.02) 2px 4px);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.42);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.38),
        0 8px 16px rgba(0, 0, 0, 0.14);
    background-image:
        linear-gradient(180deg, rgba(210, 214, 222, 0.94), rgba(183, 190, 201, 0.9)),
        linear-gradient(45deg, transparent 50%, #44506a 50%),
        linear-gradient(135deg, #44506a 50%, transparent 50%);
    background-position:
        0 0,
        calc(100% - 20px) calc(50% - 4px),
        calc(100% - 12px) calc(50% - 4px);
    background-size:
        100% 100%,
        10px 10px,
        10px 10px;
    background-repeat: no-repeat;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    text-align: left;
    cursor: pointer;
}

.department-filter-field:first-child .department-custom-select-button {
    min-height: 31px;
    padding: 5px 30px 5px 12px;
    border-radius: 14px;
    font-size: 13px;
}

.department-filter-field:first-child .department-custom-select-caret {
    right: 12px;
    width: 10px;
    height: 10px;
    margin-top: -5px;
}

.department-filter-field:first-child .department-custom-select-caret::before,
.department-filter-field:first-child .department-custom-select-caret::after {
    width: 8px;
}

.department-custom-select-value {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.department-custom-select-caret {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    pointer-events: none;
}

.department-custom-select-caret::before,
.department-custom-select-caret::after {
    content: "";
    position: absolute;
    top: 2px;
    width: 9px;
    height: 2px;
    border-radius: 999px;
    background: #44506a;
}

.department-custom-select-caret::before {
    left: 0;
    transform: rotate(45deg);
}

.department-custom-select-caret::after {
    right: 0;
    transform: rotate(-45deg);
}

.department-custom-select-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 12;
    display: grid;
    gap: 4px;
    max-height: 240px;
    overflow: auto;
    padding: 8px;
    border-radius: 18px;
    border: 1px solid rgba(147, 199, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(21, 34, 60, 0.98), rgba(11, 20, 37, 0.98)),
        radial-gradient(circle at top right, color-mix(in srgb, var(--drawer-accent) 14%, transparent), transparent 28%);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.department-custom-select.active .department-custom-select-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.department-custom-select-option {
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #eaf2ff;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.department-custom-select-option:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.department-custom-select-option.active {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--drawer-accent) 28%, rgba(40, 79, 132, 0.9)), rgba(29, 58, 96, 0.92));
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 18px rgba(0, 0, 0, 0.18);
}

.department-custom-select.active .department-custom-select-button,
.department-custom-select-button:hover,
.department-custom-select-button:focus {
    outline: none;
    border-color: rgba(84, 99, 128, 0.34);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.42),
        0 0 0 3px color-mix(in srgb, var(--drawer-accent) 14%, transparent),
        0 12px 18px rgba(0, 0, 0, 0.16);
}

.department-drawer-list {
    flex: 1;
    overflow: auto;
    display: grid;
    gap: 12px;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(214, 232, 255, 0.24) transparent;
}

.department-drawer-list::-webkit-scrollbar {
    width: 6px;
}

.department-drawer-list::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 999px;
}

.department-drawer-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(226, 240, 255, 0.28), rgba(176, 198, 228, 0.12));
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(6px);
}

.department-drawer-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(236, 247, 255, 0.42), rgba(184, 206, 234, 0.18));
}

.department-ticket-card {
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(123, 174, 244, 0.16);
    background:
        linear-gradient(180deg, rgba(19, 31, 56, 0.96), rgba(12, 22, 40, 0.94)),
        radial-gradient(circle at top right, rgba(99, 200, 255, 0.1), transparent 26%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.department-ticket-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.department-ticket-protocol,
.department-ticket-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--status-color, var(--drawer-accent)) 14%, rgba(12, 20, 38, 0.9));
    border: 1px solid color-mix(in srgb, var(--status-color, var(--drawer-accent)) 46%, rgba(130, 191, 255, 0.14));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.02),
        0 0 18px color-mix(in srgb, var(--status-color, var(--drawer-accent)) 24%, transparent);
    font-size: 12px;
    font-weight: 700;
    color: var(--status-color, var(--drawer-accent));
}

.department-ticket-subject {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 12px;
    color: #eef5ff;
}

.department-ticket-highlight {
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 203, 122, 0.22);
    background:
        linear-gradient(180deg, rgba(255, 203, 122, 0.14), rgba(255, 186, 82, 0.08)),
        rgba(16, 25, 42, 0.9);
    box-shadow:
        inset 0 0 18px rgba(255, 203, 122, 0.08),
        0 10px 20px rgba(0, 0, 0, 0.14);
}

.department-ticket-highlight-label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f3c66d;
}

.department-ticket-highlight-value {
    display: block;
    font-size: 26px;
    line-height: 1;
    color: #ffd486;
}

.department-ticket-highlight-meta {
    display: block;
    margin-top: 6px;
    color: #f6d79a;
    font-size: 11px;
    font-weight: 700;
}

.department-ticket-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
}

.department-ticket-grid span {
    display: block;
    margin-bottom: 4px;
    color: #8ea7d3;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.department-ticket-grid strong {
    display: block;
    color: #e4edfb;
    font-size: 13px;
    line-height: 1.35;
}

.empty-state { padding: 18px; color: var(--muted); border: 1px dashed rgba(110, 146, 214, 0.18); border-radius: 18px; text-align: center; }

#geral-status,
#geral-atendentes,
#geral-organizacoes,
#bot-cards .hero-mini-list,
.operator-handling-list,
.organization-handling-list,
.support-compare-list,
.support-status-list,
.table-wrap,
.ticket-scroll,
.bot-kanban-ticket-list,
.department-drawer-list,
.department-custom-select-menu {
    scrollbar-width: thin;
    scrollbar-color: rgba(214, 232, 255, 0.22) transparent;
}

#geral-status::-webkit-scrollbar,
#geral-atendentes::-webkit-scrollbar,
#geral-organizacoes::-webkit-scrollbar,
#bot-cards .hero-mini-list::-webkit-scrollbar,
.operator-handling-list::-webkit-scrollbar,
.organization-handling-list::-webkit-scrollbar,
.support-compare-list::-webkit-scrollbar,
.support-status-list::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar,
.ticket-scroll::-webkit-scrollbar,
.bot-kanban-ticket-list::-webkit-scrollbar,
.department-drawer-list::-webkit-scrollbar,
.department-custom-select-menu::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

#geral-status::-webkit-scrollbar-track,
#geral-atendentes::-webkit-scrollbar-track,
#geral-organizacoes::-webkit-scrollbar-track,
#bot-cards .hero-mini-list::-webkit-scrollbar-track,
.operator-handling-list::-webkit-scrollbar-track,
.organization-handling-list::-webkit-scrollbar-track,
.support-compare-list::-webkit-scrollbar-track,
.support-status-list::-webkit-scrollbar-track,
.table-wrap::-webkit-scrollbar-track,
.ticket-scroll::-webkit-scrollbar-track,
.bot-kanban-ticket-list::-webkit-scrollbar-track,
.department-drawer-list::-webkit-scrollbar-track,
.department-custom-select-menu::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 999px;
}

#geral-status::-webkit-scrollbar-thumb,
#geral-atendentes::-webkit-scrollbar-thumb,
#geral-organizacoes::-webkit-scrollbar-thumb,
#bot-cards .hero-mini-list::-webkit-scrollbar-thumb,
.operator-handling-list::-webkit-scrollbar-thumb,
.organization-handling-list::-webkit-scrollbar-thumb,
.support-compare-list::-webkit-scrollbar-thumb,
.support-status-list::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb,
.ticket-scroll::-webkit-scrollbar-thumb,
.bot-kanban-ticket-list::-webkit-scrollbar-thumb,
.department-drawer-list::-webkit-scrollbar-thumb,
.department-custom-select-menu::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(226, 240, 255, 0.26), rgba(176, 198, 228, 0.1));
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

#geral-status::-webkit-scrollbar-thumb:hover,
#geral-atendentes::-webkit-scrollbar-thumb:hover,
#geral-organizacoes::-webkit-scrollbar-thumb:hover,
#bot-cards .hero-mini-list::-webkit-scrollbar-thumb:hover,
.operator-handling-list::-webkit-scrollbar-thumb:hover,
.organization-handling-list::-webkit-scrollbar-thumb:hover,
.support-compare-list::-webkit-scrollbar-thumb:hover,
.support-status-list::-webkit-scrollbar-thumb:hover,
.table-wrap::-webkit-scrollbar-thumb:hover,
.ticket-scroll::-webkit-scrollbar-thumb:hover,
.bot-kanban-ticket-list::-webkit-scrollbar-thumb:hover,
.department-drawer-list::-webkit-scrollbar-thumb:hover,
.department-custom-select-menu::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(236, 247, 255, 0.38), rgba(184, 206, 234, 0.16));
}

@media (max-width: 1380px) {
    .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .panel-grid, .ticket-card-grid, .panel-grid-hero, .panel-grid-triple { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
    .main-content { padding: 18px; }
    .topbar { flex-direction: column; }
    .topbar-unified { grid-template-columns: 1fr; }
    .topbar-actions { width: 100%; flex-direction: column; align-items: stretch; }
    .topbar-tools { width: 100%; flex-direction: column; flex-wrap: wrap; }
    .topbar-unified > .topbar-actions-row,
    .top-tabs-embedded { border-right: 0; border-bottom: 1px solid rgba(152, 204, 238, 0.24); }
    .status-strip { flex-wrap: wrap; }
    .status-progress-group { min-width: 0; width: 100%; }
    .progress-shell { width: 100%; margin-left: 0; }
    .progress-text { text-align: left; }
    .sidebar-card-inline, .refresh-button-inline { width: 100%; min-width: 0; }
    .top-tabs { flex-direction: column; }
    .top-tabs .nav-tab { width: 100%; min-width: 0; }
    .hero-grid { grid-template-columns: 1fr; }
    .department-drawer-hero { grid-template-columns: 1fr; }
    .department-drawer-count { font-size: 58px; }
    .department-drawer-filters { grid-template-columns: 1fr; }
    .department-custom-select-button { min-height: 48px; font-size: 18px; }
    .department-custom-select-option { font-size: 16px; }
}
