@media (min-width: 992px) {
    html,
    body {
        min-height: 100%;
        overflow-x: hidden;
    }

    .app-shell {
        display: block;
        min-height: 100vh;
        padding-left: 250px;
    }

    .deznav {
        background: #ffffff;
        bottom: 0;
        box-shadow: 16px 0 35px rgba(0, 0, 0, .04);
        left: 0;
        position: fixed;
        top: 0;
        transform: none;
        width: 250px;
        z-index: 30;
    }

    .nav-header {
        height: 92px;
        width: 250px;
    }

    .deznav-scroll {
        height: calc(100vh - 76px);
        overflow-x: hidden;
        overflow-y: auto;
    }

    .main-panel {
        background: #f4f5fa;
        min-height: 100vh;
        min-width: 0;
        width: 100%;
    }

    .header {
        left: 250px;
        min-height: 76px;
        position: sticky;
        right: 0;
        top: 0;
        z-index: 20;
    }

    .content-body {
        max-width: 100%;
        padding: 18px 22px;
    }

    body {
        font-size: 12px;
    }

    .ticket-chat-page {
        --ticket-chat-header-height: 76px;
    }

    .nav-header {
        height: 76px;
        padding: 0 18px;
    }

    .brand-title {
        font-size: 20px;
        letter-spacing: -.5px;
    }

    .ticket-logo {
        font-size: 18px;
        height: 36px;
        width: 46px;
    }

    .deznav-scroll {
        padding: 18px 16px;
    }

    .metismenu {
        gap: 6px;
    }

    .has-arrow {
        font-size: 12px;
        gap: 10px;
        min-height: 40px;
        padding: 4px 10px;
    }

    .has-arrow > i:first-child {
        flex-basis: 32px;
        font-size: 16px;
        height: 32px;
    }

    .submenu {
        margin-left: 50px;
    }

    .submenu a,
    .submenu-button {
        font-size: 11.5px;
        padding: 5px 7px;
    }

    .dashboard-bar {
        font-size: 18px;
    }

    .search-area {
        padding: 5px 10px;
    }

    .search-area input {
        font-size: 12px;
        width: 150px;
    }

    .profile-chip {
        font-size: 12px;
        padding: 5px 10px;
    }

    .live-status-chip {
        min-width: 190px;
        padding: 5px 8px;
    }

    .live-status-chip.has-weather.has-clock {
        width: 350px;
    }

    .live-status-chip.has-weather:not(.has-clock) {
        width: 200px;
    }

    .live-status-chip.has-clock:not(.has-weather) {
        width: 128px;
    }

    .live-weather {
        width: 208px;
    }

    .live-clock {
        width: 100px;
    }

    .live-status-chip strong {
        font-size: 11px;
    }

    .live-status-chip small {
        font-size: 9.5px;
    }

    .avatar {
        height: 28px;
        width: 28px;
    }

    .welcome-banner {
        margin-bottom: 16px;
        padding: 18px 24px;
    }

    .welcome-banner h2 {
        font-size: 18px;
    }

    .welcome-banner p {
        font-size: 12px;
        margin-bottom: 0;
    }

    .primary-btn,
    .outline-btn,
    .orange-btn {
        font-size: 12px;
        min-height: 34px;
        padding: 6px 10px;
    }

    .stats-grid {
        gap: 12px;
        margin-bottom: 16px;
    }

    .stat-card {
        padding: 14px;
    }

    .stat-card span {
        font-size: 11px;
    }

    .stat-card strong {
        font-size: 22px;
    }

    .stat-card i {
        font-size: 20px;
        right: 14px;
        top: 14px;
    }

    .content-card {
        padding: 16px;
    }

    .card-title-row h3,
    .form-card-header h2 {
        font-size: 16px;
    }

    .card-title-row {
        margin-bottom: 10px;
    }

    .form-card-header {
        padding: 14px 18px;
    }

    .form-card-header p {
        font-size: 11.5px;
    }

    .form-card form {
        padding: 18px;
    }

    .form-grid {
        gap: 12px 18px;
    }

    .form-grid label,
    .stacked-fields label {
        font-size: 12px;
        gap: 6px;
    }

    .form-grid input,
    .form-grid select,
    .form-grid textarea,
    .stacked-fields select,
    .content-card textarea {
        font-size: 12px;
        min-height: 36px;
        padding: 7px 10px;
    }

    .table-toolbar,
    .action-toolbar {
        gap: 8px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .table-toolbar {
        padding-top: 16px;
    }

    .action-toolbar {
        padding-bottom: 14px;
    }

    .entries-control,
    .search-control {
        font-size: 12px;
        gap: 7px;
    }

    .entries-control select,
    .search-control input,
    .status-filter select {
        font-size: 12px;
        min-height: 34px;
        padding: 6px 8px;
    }

    .search-box-icon {
        padding: 6px 9px;
    }

    .acara-table th {
        font-size: 12px;
        padding: 10px 14px;
    }

    .acara-table {
        min-width: 760px;
    }

    .search-control input {
        min-width: 280px;
    }

    .action-toolbar .outline-btn,
    .action-toolbar .primary-btn {
        white-space: nowrap;
    }

    .acara-table th span {
        font-size: 9px;
    }

    .acara-table td {
        font-size: 12px;
        padding: 10px 14px;
    }

    .pill,
    .status {
        font-size: 10.5px;
        padding: 4px 8px;
    }

    .icon-btn {
        height: 30px;
        width: 34px;
    }

    .table-footer {
        font-size: 11.5px;
        padding: 10px 16px;
    }

    .page-title-block h1 {
        font-size: 20px;
    }

    .page-title-block nav {
        font-size: 12px;
    }

    .menu-toggle .app-shell {
        padding-left: 96px;
    }

    .menu-toggle .deznav {
        width: 96px;
    }

    .menu-toggle .nav-header {
        justify-content: center;
        padding: 0 16px;
        width: 96px;
    }

    .menu-toggle .brand-title {
        display: none;
    }

    .menu-toggle .ticket-logo {
        font-size: 22px;
        height: 44px;
        width: 54px;
    }

    .menu-toggle .header {
        left: 96px;
    }

    .menu-toggle .has-arrow {
        justify-content: center;
    }

    .menu-toggle .has-arrow > i:first-child {
        flex-basis: 44px;
    }
}

.search-select {
    position: relative;
}

.search-select-native {
    height: 1px !important;
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 100%;
    width: 1px !important;
}

.search-select-control {
    align-items: center;
    background: #ffffff;
    border: 1px solid #cfd6df;
    border-radius: 7px;
    display: flex;
    min-height: 36px;
    position: relative;
}

.search-select-control input {
    background: transparent;
    border: 0 !important;
    flex: 1;
    font: inherit;
    min-height: 34px !important;
    outline: 0;
    padding: 7px 32px 7px 10px !important;
    width: 100%;
}

.search-select-control::after {
    border-bottom: 2px solid #111827;
    border-right: 2px solid #111827;
    content: "";
    height: 8px;
    pointer-events: none;
    position: absolute;
    right: 13px;
    top: 12px;
    transform: rotate(45deg);
    width: 8px;
}

.search-select-options {
    background: #ffffff;
    border: 1px solid #cfd6df;
    border-radius: 8px;
    box-shadow: 0 18px 34px rgba(15, 23, 42, .14);
    display: none;
    left: 0;
    max-height: 230px;
    overflow-y: auto;
    padding: 6px;
    position: absolute;
    right: 0;
    top: calc(100% + 5px);
    z-index: 60;
}

.search-select.open .search-select-options {
    display: block;
}

.search-select-option {
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    padding: 8px 10px;
}

.search-select-option:hover,
.search-select-option.active {
    background: #ececff;
    color: var(--primary);
}

.search-select-empty {
    color: #7b8190;
    font-size: 12px;
    padding: 8px 10px;
}

.note-editor.note-frame {
    border: 1px solid #cfd6df;
    border-radius: 8px;
    overflow: hidden;
}

.note-toolbar {
    background: #ffffff;
    border-bottom: 1px solid #dbe1ec;
    padding: 6px 8px;
}

.note-btn {
    border-radius: 6px !important;
    font-size: 12px !important;
    padding: 4px 8px !important;
}

.note-editable {
    font-size: 12px;
    min-height: 180px;
}

.conversation-shell {
    display: block;
    position: relative;
}

.ticket-chat-page {
    --ticket-chat-header-height: 92px;
    overflow: hidden;
}

.ticket-unread-badge {
    align-items: center;
    background: var(--primary);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 10px;
    font-weight: 700;
    height: 19px;
    justify-content: center;
    margin-left: 7px;
    min-width: 19px;
    padding: 0 6px;
    vertical-align: middle;
}

.theme-picker {
    display: grid;
    gap: 12px;
}

.theme-picker-main {
    align-items: center;
    border: 1px solid #d6dce8;
    border-radius: 12px;
    display: grid;
    gap: 12px;
    grid-template-columns: 54px minmax(0, 1fr) 44px;
    min-height: 58px;
    padding: 7px 10px;
}

.theme-native-input {
    border: 0;
    cursor: pointer;
    height: 42px;
    padding: 0;
    width: 42px;
}

.theme-native-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.theme-native-input::-webkit-color-swatch {
    border: 0;
    border-radius: 10px;
}

.theme-text-input {
    border: 0 !important;
    min-height: 40px !important;
    padding: 0 !important;
}

.theme-preview {
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #d6dce8;
    height: 34px;
    width: 34px;
}

.theme-preset-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.theme-preset {
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #d8deea, 0 6px 14px rgba(16, 24, 40, .08);
    cursor: pointer;
    height: 32px;
    transition: transform .2s ease, box-shadow .2s ease;
    width: 32px;
}

.theme-preset:hover,
.theme-preset.active {
    box-shadow: 0 0 0 2px var(--primary), 0 8px 18px rgba(16, 24, 40, .14);
    transform: translateY(-1px);
}

.ticket-chat-page .content-body {
    height: calc(100vh - var(--ticket-chat-header-height));
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    padding-bottom: 18px;
}

.ticket-chat-page .soft-alert {
    flex: 0 0 auto;
    margin-bottom: 0;
}

.ticket-chat-page .conversation-shell {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
}

.ticket-chat-page .chat-panel {
    height: 100%;
    min-height: 0;
}

.chat-panel,
.chat-side-panel {
    background: #ffffff;
    border: 1px solid #dbe1ec;
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(26, 29, 72, .05);
    min-width: 0;
}

.chat-panel {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 128px);
    overflow: hidden;
}

.chat-header {
    align-items: center;
    border-bottom: 1px solid #e5e9f2;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 14px 18px;
}

.chat-info-toggle,
.ticket-panel-close {
    align-items: center;
    background: var(--primary);
    border: 1px solid rgba(34, 47, 185, .14);
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(34, 47, 185, .18);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 18px;
    height: 40px;
    justify-content: center;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
    width: 40px;
}

.chat-info-toggle:hover,
.ticket-panel-close:hover {
    background: #172098;
    box-shadow: 0 12px 24px rgba(34, 47, 185, .24);
    transform: translateY(-1px);
}

.chat-person {
    align-items: center;
    display: flex;
    gap: 12px;
    min-width: 0;
}

.chat-avatar {
    align-items: center;
    background: linear-gradient(135deg, #ff9aa7, #ffccd2);
    border-radius: 50%;
    color: #ffffff;
    display: inline-flex;
    font-size: 18px;
    font-weight: 700;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.chat-person strong {
    color: #080f22;
    display: block;
    font-size: 15px;
    line-height: 1.2;
}

.chat-person-copy {
    display: block;
    min-width: 0;
}

.chat-person small {
    align-items: center;
    color: #6f7684;
    display: flex;
    font-size: 11.5px;
    gap: 5px;
}

.chat-person small i {
    background: #10b935;
    border-radius: 50%;
    display: inline-flex;
    height: 8px;
    width: 8px;
}

.chat-person em {
    color: #7a8292;
    display: block;
    font-size: 10.5px;
    font-style: normal;
    margin-top: 3px;
    max-width: 540px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.send-btn {
    background: var(--primary);
}

.chat-body {
    background: #ffffff;
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 22px 18px;
}

.chat-date {
    color: #677184;
    font-size: 11.5px;
    margin: 8px 0 20px;
    text-align: center;
}

.chat-history-loader {
    align-items: center;
    background: #f4f6fb;
    border: 1px solid #e2e7f1;
    border-radius: 999px;
    color: #657083;
    cursor: pointer;
    display: inline-flex;
    font-size: 11.5px;
    font-weight: 600;
    gap: 8px;
    justify-content: center;
    margin: 0 auto 16px;
    min-height: 34px;
    padding: 6px 14px;
}

.chat-history-loader[hidden] {
    display: none;
}

.chat-history-loader span {
    align-items: center;
    display: inline-flex;
    gap: 3px;
}

.chat-history-loader i {
    animation: typingPulse 1.1s infinite ease-in-out;
    background: #657083;
    border-radius: 50%;
    display: inline-flex;
    height: 5px;
    width: 5px;
}

.chat-history-loader i:nth-child(2) {
    animation-delay: .15s;
}

.chat-history-loader i:nth-child(3) {
    animation-delay: .3s;
}

.message-row {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    max-width: 82%;
    min-width: 0;
}

.message-row.outgoing {
    align-items: flex-end;
    margin-left: auto;
}

.chat-bubble {
    background: #f3f4f8;
    border-radius: 7px;
    color: #687080;
    font-size: 12px;
    line-height: 1.55;
    max-width: 100%;
    min-width: 0;
    padding: 10px 14px;
}

.message-row.outgoing .chat-bubble {
    background: var(--primary);
    color: #ffffff;
}

.bubble-title,
.bubble-author {
    color: #101827;
    font-weight: 700;
    margin-bottom: 4px;
}

.message-row.outgoing .bubble-title,
.message-row.outgoing .bubble-author {
    color: #ffffff;
}

.bubble-body p:last-child {
    margin-bottom: 0;
}

.message-time {
    color: #6f7684;
    font-size: 10.5px;
    margin-top: 5px;
}

.bubble-files {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
    max-width: 100%;
}

.bubble-files a {
    align-items: center;
    background: rgba(255, 255, 255, .7);
    border-radius: 9px;
    color: #1f2f78;
    display: grid;
    font-size: 11px;
    gap: 7px;
    grid-template-columns: 48px minmax(0, 1fr);
    max-width: min(240px, 100%);
    min-width: 0;
    overflow: hidden;
    padding: 7px 9px;
    text-decoration: none;
}

.bubble-files a > i {
    align-items: center;
    background: rgba(34, 47, 185, .14);
    border-radius: 7px;
    color: rgb(34, 47, 185);
    display: inline-flex;
    flex: 0 0 30px;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.bubble-files a span {
    display: block;
    flex: 1;
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bubble-files a small {
    color: #758098;
    display: block;
    font-size: 9.5px;
    font-weight: 700;
    grid-column: 2;
    line-height: 1;
    text-transform: uppercase;
}

.bubble-files a img {
    border-radius: 6px;
    flex: 0 0 48px;
    grid-row: span 2;
    height: 38px;
    object-fit: cover;
    width: 48px;
}

.message-row.outgoing .bubble-files a {
    background: rgba(255, 255, 255, .18);
    color: #ffffff;
}

.message-row.outgoing .bubble-files a > i {
    background: rgba(255, 255, 255, .18);
    color: #ffffff;
}

.message-row.outgoing .bubble-files a small {
    color: rgba(255, 255, 255, .72);
}

.typing-indicator {
    align-items: center;
    display: flex;
    gap: 9px;
    margin: 8px 0 16px;
}

.typing-indicator[hidden] {
    display: none;
}

.typing-indicator span {
    align-items: center;
    background: #f0f2f6;
    border-radius: 14px;
    display: inline-flex;
    gap: 4px;
    height: 34px;
    justify-content: center;
    width: 62px;
}

.typing-indicator i {
    animation: typingPulse 1.1s infinite ease-in-out;
    background: #111827;
    border-radius: 50%;
    display: inline-flex;
    height: 6px;
    opacity: .35;
    width: 6px;
}

.typing-indicator i:nth-child(2) {
    animation-delay: .15s;
}

.typing-indicator i:nth-child(3) {
    animation-delay: .3s;
}

.typing-indicator strong {
    color: #657083;
    font-size: 12px;
    font-weight: 600;
}

@keyframes typingPulse {
    0%, 80%, 100% {
        opacity: .35;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

.chat-empty,
.side-empty {
    color: #858b98;
    font-size: 12px;
    margin: 0;
}

.chat-composer {
    border-top: 1px solid #e5e9f2;
    flex: 0 0 auto;
    padding: 14px 18px;
}

.composer-box {
    background: #ffffff;
    border: 1px solid #e1e6ef;
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(34, 47, 185, .1);
    display: grid;
    gap: 8px;
    padding: 10px;
    position: relative;
}

.composer-preview {
    background: #f7f8fc;
    border: 1px solid #e5eaf3;
    border-radius: 18px;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    max-height: 154px;
    overflow-y: auto;
    padding: 8px;
}

.composer-preview[hidden] {
    display: none;
}

.composer-preview-item {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e7f1;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
    display: flex;
    gap: 7px;
    max-width: 100%;
    min-height: 42px;
    padding: 6px 8px;
    position: relative;
}

.composer-preview-item.image {
    align-items: flex-end;
    min-height: 92px;
    overflow: hidden;
    padding: 0;
}

.composer-preview-item img {
    border-radius: inherit;
    height: 92px;
    object-fit: cover;
    width: 100%;
}

.composer-preview-item > i {
    align-items: center;
    background: rgba(34, 47, 185, .1);
    border-radius: 12px;
    color: rgb(34, 47, 185);
    display: inline-flex;
    flex: 0 0 40px;
    font-size: 20px;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.composer-preview-item strong {
    color: #1f2937;
    font-size: 11px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.composer-preview-copy {
    display: grid;
    flex: 1;
    gap: 1px;
    min-width: 0;
}

.composer-preview-item.image .composer-preview-copy {
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, .78));
    bottom: 0;
    left: 0;
    padding: 24px 34px 8px 10px;
    position: absolute;
    right: 0;
}

.composer-preview-item.image .composer-preview-copy strong,
.composer-preview-item.image .composer-preview-copy small {
    color: #ffffff;
}

.composer-preview-copy small {
    color: #7b8190;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.composer-preview-item button {
    align-items: center;
    background: rgba(15, 23, 42, .72);
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    height: 22px;
    justify-content: center;
    position: absolute;
    right: 7px;
    top: 7px;
    width: 22px;
}

.composer-preview-item:not(.image) button {
    background: #eef1f7;
    color: #657083;
    position: static;
}

.composer-error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 12px;
    color: #be123c;
    font-size: 11.5px;
    font-weight: 600;
    padding: 8px 10px;
}

.composer-error[hidden] {
    display: none;
}

.composer-upload-status {
    align-items: center;
    background: #f4f6fb;
    border: 1px solid #e1e6ef;
    border-radius: 12px;
    color: #657083;
    display: grid;
    gap: 6px 10px;
    grid-template-columns: 1fr auto;
    padding: 8px 10px;
}

.composer-upload-status[hidden] {
    display: none;
}

.composer-upload-status span,
.composer-upload-status strong {
    font-size: 11px;
    font-weight: 700;
}

.composer-upload-status em {
    background: #dfe5f2;
    border-radius: 999px;
    grid-column: 1 / -1;
    height: 5px;
    overflow: hidden;
}

.composer-upload-status i {
    background: var(--primary);
    border-radius: inherit;
    display: block;
    height: 100%;
    transition: width .18s ease;
    width: 0;
}

.chat-composer.is-sending .composer-box {
    border-color: rgba(34, 47, 185, .34);
}

.chat-composer.is-sending .send-btn i {
    animation: sendPulse .8s infinite ease-in-out;
}

@keyframes sendPulse {
    0%, 100% {
        transform: translateX(0) scale(1);
    }
    50% {
        transform: translateX(2px) scale(.92);
    }
}

.chat-composer textarea {
    background: transparent;
    border: 0;
    font-size: 13px;
    min-height: 42px;
    outline: 0;
    padding: 8px 10px;
    resize: none;
    width: 100%;
}

.composer-row {
    align-items: center;
    display: flex;
    gap: 8px;
    position: relative;
}

.composer-menu-wrap {
    position: relative;
}

.composer-round-btn {
    align-items: center;
    background: #f4f6fb;
    border: 0;
    border-radius: 50%;
    color: #182033;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 19px;
    height: 40px;
    justify-content: center;
    margin: 0;
    transition: background .2s ease, color .2s ease, transform .2s ease;
    width: 40px;
}

.composer-round-btn:hover,
.composer-menu-wrap.open .composer-round-btn {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-1px);
}

.composer-attach-menu,
.composer-emoji-menu {
    background: #ffffff;
    border: 1px solid #e1e6ef;
    border-radius: 16px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, .16);
    position: absolute;
    z-index: 30;
}

.composer-attach-menu {
    bottom: 50px;
    display: grid;
    gap: 4px;
    left: 0;
    min-width: 210px;
    padding: 10px;
}

.composer-attach-menu[hidden],
.composer-emoji-menu[hidden] {
    display: none;
}

.composer-attach-menu label {
    align-items: center;
    border-radius: 10px;
    color: #2f3747;
    cursor: pointer;
    display: flex;
    font-size: 13px;
    font-weight: 600;
    gap: 12px;
    margin: 0;
    padding: 10px 12px;
}

.composer-attach-menu label:hover {
    background: #f5f7fb;
}

.composer-attach-menu i {
    align-items: center;
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.composer-attach-menu label:first-child i {
    background: #725cff;
}

.composer-attach-menu label:nth-child(2) i {
    background: #1683ff;
}

.composer-attach-menu input,
.composer-master-input {
    display: none;
}

.composer-emoji-menu {
    bottom: 50px;
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(8, 30px);
    left: 48px;
    padding: 10px;
}

.composer-emoji-menu button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    font-size: 18px;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.composer-emoji-menu button:hover {
    background: #f0f2f7;
}

.send-btn {
    align-items: center;
    background: #eef1f7;
    border: 1px solid #e1e6ef;
    border-radius: 50%;
    box-shadow: none;
    color: #9aa3b4;
    cursor: default;
    display: inline-flex;
    font-size: 18px;
    font-weight: 700;
    gap: 7px;
    flex: 0 0 46px;
    height: 46px;
    justify-content: center;
    opacity: 0;
    padding: 0;
    pointer-events: none;
    transform: scale(.92);
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease, opacity .2s ease, transform .2s ease;
    visibility: hidden;
    width: 46px;
}

.send-btn i {
    transform: translateX(1px);
}

.chat-composer.is-ready .send-btn {
    background: var(--primary);
    border-color: rgb(34, 47, 185);
    box-shadow: 0 12px 26px rgba(34, 47, 185, .28);
    color: #ffffff;
    cursor: pointer;
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    visibility: visible;
}

.chat-composer.is-ready .send-btn:hover {
    box-shadow: 0 15px 30px rgba(34, 47, 185, .34);
    transform: translateY(-1px) scale(1);
}

.chat-composer.is-sending .send-btn,
.chat-composer.is-sending .send-btn:hover {
    cursor: wait;
    opacity: .74;
    transform: scale(.96);
}

.chat-side-panel {
    bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: min(390px, calc(100vw - 32px));
    overflow-y: auto;
    padding: 18px 18px 22px;
    position: fixed;
    right: 18px;
    top: 110px;
    transform: translateX(calc(100% + 28px));
    transition: transform .25s ease;
    width: 390px;
    z-index: 40;
}

.ticket-panel-open .chat-side-panel {
    transform: translateX(0);
}

.ticket-panel-backdrop {
    background: rgba(15, 23, 42, .28);
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity .2s ease;
    z-index: 39;
}

.ticket-panel-open .ticket-panel-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.ticket-panel-close {
    align-self: flex-end;
    background: #eef0ff;
    border-color: #dfe3ff;
    box-shadow: none;
    color: rgb(34, 47, 185);
    height: 38px;
    margin-bottom: 2px;
    width: 38px;
}

.ticket-panel-close:hover {
    background: var(--primary);
    color: #ffffff;
}

.ticket-mini-card {
    align-items: flex-start;
    background: #f7f8fc;
    border-radius: 10px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 12px;
}

.ticket-mini-card small,
.ticket-info-list small,
.file-card small {
    color: #7a8292;
    display: block;
    font-size: 10.5px;
}

.ticket-mini-card strong {
    color: #111827;
    display: block;
    font-size: 12.5px;
    margin-top: 2px;
}

.chat-side-section h3,
.ticket-update-card h3 {
    color: #080f22;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

.ticket-info-list {
    display: grid;
    gap: 8px;
}

.ticket-info-list span {
    background: #f7f8fc;
    border-radius: 8px;
    color: #111827;
    font-size: 12px;
    font-weight: 600;
    padding: 9px 10px;
}

.media-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, 1fr);
}

.media-thumb {
    aspect-ratio: 1;
    border-radius: 7px;
    display: block;
    overflow: hidden;
}

.media-thumb img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

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

.file-card {
    align-items: center;
    background: #f7f8fc;
    border-radius: 9px;
    color: #111827;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 118px;
    padding: 14px 10px;
    text-align: center;
    text-decoration: none;
}

.file-card > i {
    font-size: 26px;
}

.file-card strong {
    font-size: 11.5px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-pink {
    color: #f065c7 !important;
}

.text-purple {
    color: #9b6cff !important;
}

.ticket-update-card {
    border-top: 1px solid #e5e9f2;
    padding-top: 16px;
}

.ticket-update-card label {
    color: #172033;
    display: grid;
    font-size: 11.5px;
    font-weight: 600;
    gap: 6px;
    margin-bottom: 10px;
}

.ticket-update-card select {
    border: 1px solid #d6dce8;
    border-radius: 8px;
    font-size: 12px;
    min-height: 36px;
    padding: 7px 10px;
}

.attachment-preview-open {
    overflow: hidden;
}

.attachment-preview-modal[hidden] {
    display: none;
}

.attachment-preview-modal {
    inset: 0;
    position: fixed;
    z-index: 90;
}

.attachment-preview-backdrop {
    background: rgba(15, 23, 42, .58);
    inset: 0;
    position: absolute;
}

.attachment-preview-dialog {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .26);
    display: flex;
    flex-direction: column;
    height: min(82vh, 760px);
    left: 50%;
    overflow: hidden;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(920px, calc(100vw - 34px));
}

.attachment-preview-head {
    align-items: center;
    border-bottom: 1px solid #e5eaf3;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 14px 16px;
}

.attachment-preview-head span {
    color: #7b8190;
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.attachment-preview-head strong {
    color: #111827;
    display: block;
    font-size: 14px;
    max-width: min(650px, 62vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-preview-head button {
    align-items: center;
    background: var(--primary);
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 40px;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.attachment-preview-body {
    align-items: center;
    background: #f5f6fb;
    display: flex;
    flex: 1;
    justify-content: center;
    min-height: 0;
    overflow: auto;
    padding: 16px;
}

.attachment-preview-body img {
    border-radius: 12px;
    box-shadow: 0 16px 44px rgba(15, 23, 42, .16);
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.attachment-preview-body iframe {
    background: #ffffff;
    border: 0;
    border-radius: 12px;
    height: 100%;
    width: 100%;
}

.attachment-preview-body video {
    background: #111827;
    border-radius: 12px;
    max-height: 100%;
    max-width: 100%;
}

.attachment-audio-preview {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e1e6ef;
    border-radius: 16px;
    box-shadow: 0 16px 44px rgba(15, 23, 42, .1);
    display: grid;
    gap: 14px;
    justify-items: center;
    max-width: 420px;
    padding: 28px;
    width: min(100%, 420px);
}

.attachment-audio-preview i {
    align-items: center;
    background: rgba(34, 47, 185, .1);
    border-radius: 16px;
    color: rgb(34, 47, 185);
    display: inline-flex;
    font-size: 34px;
    height: 72px;
    justify-content: center;
    width: 72px;
}

.attachment-audio-preview strong {
    color: #111827;
    font-size: 16px;
}

.attachment-audio-preview audio {
    width: 100%;
}

.attachment-preview-fallback {
    align-items: center;
    background: #ffffff;
    border: 1px dashed #cfd7e6;
    border-radius: 16px;
    color: #657083;
    display: grid;
    gap: 8px;
    justify-items: center;
    max-width: 380px;
    padding: 34px 22px;
    text-align: center;
}

.attachment-preview-fallback i {
    color: rgb(34, 47, 185);
    font-size: 42px;
}

.attachment-preview-fallback strong {
    color: #111827;
    font-size: 15px;
}

.attachment-preview-fallback span {
    font-size: 12px;
}

.attachment-preview-actions {
    align-items: center;
    border-top: 1px solid #e5eaf3;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 12px 16px;
}

.menu-direct {
    text-decoration: none;
}

.dashboard-report-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) 180px;
    margin-bottom: 16px;
}

.dashboard-hero-report,
.dashboard-summary-card,
.report-stat-card {
    background: #ffffff;
    border: 1px solid #e2e7f1;
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(16, 24, 40, .04);
}

.dashboard-hero-report {
    align-items: center;
    display: flex;
    justify-content: space-between;
    overflow: hidden;
    padding: 22px 26px;
    position: relative;
}

.dashboard-hero-report::after {
    background: rgba(34, 47, 185, .08);
    border-radius: 50%;
    content: "";
    height: 180px;
    position: absolute;
    right: 110px;
    top: -95px;
    width: 180px;
}

.dashboard-hero-report span {
    color: rgb(34, 47, 185);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.dashboard-hero-report h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 6px 0;
}

.dashboard-hero-report p {
    color: #7b8190;
    font-size: 12px;
    margin: 0;
}

.dashboard-summary-card {
    display: grid;
    place-content: center;
    text-align: center;
}

.dashboard-summary-card small,
.dashboard-summary-card span {
    color: #7b8190;
    font-size: 11px;
}

.dashboard-summary-card strong {
    color: rgb(34, 47, 185);
    font-size: 34px;
    line-height: 1;
}

.report-stat-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 16px;
}

.report-stat-card {
    min-height: 112px;
    padding: 16px;
    position: relative;
}

.report-stat-link {
    color: inherit;
    display: block;
    text-decoration: none;
    transition: box-shadow .18s ease, transform .18s ease;
}

.report-stat-link:hover {
    box-shadow: 0 18px 34px rgba(34, 47, 185, .12);
    transform: translateY(-2px);
}

.report-stat-link:focus-visible {
    outline: 3px solid rgba(34, 47, 185, .24);
    outline-offset: 3px;
}

.report-stat-card i {
    align-items: center;
    background: #ececff;
    border-radius: 10px;
    color: rgb(34, 47, 185);
    display: inline-flex;
    font-size: 18px;
    height: 36px;
    justify-content: center;
    position: absolute;
    right: 14px;
    top: 14px;
    width: 36px;
}

.report-stat-card span,
.report-stat-card em {
    color: #7b8190;
    display: block;
    font-size: 11px;
    font-style: normal;
}

.report-stat-card strong {
    color: #111827;
    display: block;
    font-size: 26px;
    line-height: 1.1;
    margin: 18px 0 5px;
}

.report-stat-card.blue {
    background: var(--primary);
    color: #ffffff;
}

.report-stat-card.blue i {
    background: rgba(255, 255, 255, .18);
    color: #ffffff;
}

.report-stat-card.blue span,
.report-stat-card.blue em,
.report-stat-card.blue strong {
    color: #ffffff;
}

.dashboard-main-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .75fr);
}

.report-chart-card {
    grid-row: span 2;
}

.report-chip {
    background: #eef1ff;
    border-radius: 999px;
    color: rgb(34, 47, 185);
    font-size: 10.5px;
    font-weight: 700;
    padding: 5px 9px;
}

.bar-chart {
    align-items: end;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    min-height: 220px;
    padding: 20px 4px 0;
}

.bar-item {
    align-items: center;
    display: grid;
    gap: 8px;
    justify-items: center;
}

.bar-item strong,
.bar-item small {
    color: #7b8190;
    font-size: 11px;
}

.bar-item span {
    background: linear-gradient(180deg, rgb(34, 47, 185), #646dff);
    border-radius: 999px 999px 6px 6px;
    display: block;
    min-height: 8px;
    width: min(44px, 72%);
}

.status-donut {
    align-items: center;
    border-radius: 50%;
    display: flex;
    height: 160px;
    justify-content: center;
    margin: 12px auto 18px;
    width: 160px;
}

.status-donut div {
    align-items: center;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    height: 104px;
    justify-content: center;
    width: 104px;
}

.status-donut strong {
    font-size: 26px;
    line-height: 1;
}

.status-donut span {
    color: #7b8190;
    font-size: 11px;
}

.status-legend {
    display: grid;
    gap: 8px;
}

.status-legend span {
    align-items: center;
    color: #667085;
    display: flex;
    font-size: 11.5px;
    gap: 8px;
}

.status-legend i {
    border-radius: 50%;
    height: 9px;
    width: 9px;
}

.status-legend strong {
    color: #111827;
    margin-left: auto;
}

.progress-report-list,
.bank-report-list {
    display: grid;
    gap: 12px;
}

.progress-report-list div {
    display: grid;
    gap: 7px;
}

.progress-report-list span,
.bank-report-list a {
    align-items: center;
    color: #667085;
    display: flex;
    font-size: 12px;
    justify-content: space-between;
}

.progress-report-list strong,
.bank-report-list strong {
    color: #111827;
}

.progress-report-list em {
    background: #eef1f7;
    border-radius: 999px;
    display: block;
    height: 8px;
    overflow: hidden;
}

.progress-report-list em i {
    background: var(--primary);
    border-radius: inherit;
    display: block;
    height: 100%;
}

.bank-report-list a {
    background: #f7f8fc;
    border-radius: 9px;
    padding: 10px 12px;
}

.bank-report-list span {
    max-width: 78%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-btn {
    align-items: center;
    background: #ffffff;
    border: 0;
    border-radius: 50%;
    color: rgb(34, 47, 185);
    display: inline-flex;
    height: 38px;
    justify-content: center;
    position: relative;
    width: 38px;
}

.notification-btn span {
    align-items: center;
    background: #ff3045;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 9px;
    font-weight: 700;
    height: 17px;
    justify-content: center;
    min-width: 17px;
    padding: 0 4px;
    position: absolute;
    right: -4px;
    top: -4px;
}

.live-status-chip {
    align-items: center;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
    color: #ffffff;
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    min-height: 46px;
    padding: 6px 10px;
}

.live-status-chip.has-weather.has-clock {
    width: 380px;
}

.live-status-chip.has-weather:not(.has-clock) {
    width: 220px;
}

.live-status-chip.has-clock:not(.has-weather) {
    width: 142px;
}

.live-status-chip > span {
    align-items: center;
    display: grid;
    gap: 1px;
    min-width: 0;
}

.live-weather {
    border-right: 1px solid rgba(255, 255, 255, .24);
    grid-template-columns: 26px minmax(0, 1fr);
    padding-right: 9px;
    width: 230px;
}

.live-weather i {
    align-items: center;
    background: rgba(255, 255, 255, .18);
    border-radius: 50%;
    display: inline-flex;
    font-size: 14px;
    grid-row: span 2;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.live-clock {
    width: 112px;
}

.live-status-chip strong {
    display: block;
    font-size: 12px;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.live-status-chip small {
    color: rgba(255, 255, 255, .78);
    display: block;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-dropdown {
    border: 1px solid #e2e7f1;
    border-radius: 10px;
    box-shadow: 0 18px 42px rgba(16, 24, 40, .14);
    max-height: min(620px, calc(100vh - 120px));
    min-width: 330px;
    overflow: hidden;
    padding: 0;
}

.notification-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 12px 14px;
}

.notification-head strong {
    font-size: 13px;
}

.notification-head button {
    background: transparent;
    border: 0;
    color: rgb(34, 47, 185);
    font-size: 11px;
    font-weight: 700;
}

.notification-list {
    max-height: min(430px, calc(100vh - 245px));
    overflow-y: auto;
    overscroll-behavior: contain;
}

.notification-list::-webkit-scrollbar {
    width: 7px;
}

.notification-list::-webkit-scrollbar-track {
    background: #f4f6fb;
}

.notification-list::-webkit-scrollbar-thumb {
    background: #c8cfdd;
    border-radius: 999px;
}

.notification-item {
    border-top: 1px solid #eef1f6;
    color: #111827;
    display: grid;
    gap: 3px;
    padding: 11px 14px;
}

.notification-item.unread {
    background: #f4f5ff;
}

.notification-item strong {
    font-size: 12px;
}

.notification-item span,
.notification-item small,
.notification-empty {
    color: #7b8190;
    font-size: 11px;
}

.notification-empty {
    border-top: 1px solid #eef1f6;
    padding: 14px;
}

.notification-footer {
    align-items: center;
    background: #ffffff;
    border-top: 1px solid #eef1f6;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    padding: 10px 14px;
}

.notification-footer a,
.notification-footer button {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--primary);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    padding: 0;
    text-decoration: none;
}

.notification-footer button {
    color: #ef4444;
}

.notification-page-list {
    display: grid;
    gap: 10px;
    padding: 18px 28px 24px;
}

.notification-page-item {
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #e6ebf4;
    border-radius: 12px;
    color: #111827;
    display: flex;
    gap: 12px;
    padding: 14px;
}

.notification-page-item.unread {
    background: #f4f5ff;
    border-color: color-mix(in srgb, var(--primary) 26%, #e6ebf4);
}

.notification-page-icon {
    align-items: center;
    background: color-mix(in srgb, var(--primary) 10%, #ffffff);
    border-radius: 50%;
    color: var(--primary);
    display: inline-flex;
    flex: 0 0 36px;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.notification-page-item strong,
.notification-page-item small,
.notification-page-item em {
    display: block;
}

.notification-page-item strong {
    font-size: 14px;
}

.notification-page-item small,
.notification-page-item em {
    color: #6b7280;
    font-size: 12px;
    font-style: normal;
    margin-top: 3px;
}

.danger-outline-btn {
    align-items: center;
    background: #ffffff;
    border: 1px solid #ef4444;
    border-radius: 8px;
    color: #ef4444;
    display: inline-flex;
    font-weight: 700;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
}

.empty-state,
.pagination-wrap {
    padding: 18px 28px 24px;
}

.notification-help-box {
    background: #f7f8fc;
    border: 1px solid #e2e7f1;
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 28px 0;
    padding: 12px;
}

.notification-help-box strong {
    font-size: 12px;
    width: 100%;
}

.notification-help-box span {
    background: #ffffff;
    border: 1px solid #dde3ee;
    border-radius: 999px;
    color: rgb(34, 47, 185);
    font-size: 11px;
    padding: 5px 8px;
}

.login-body {
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--login-primary, var(--primary)) 6%, transparent) 0, color-mix(in srgb, var(--login-primary, var(--primary)) 6%, transparent) 28%, transparent 28%),
        #f4f5fa;
}

.tixia-login-card {
    border: 1px solid #e2e7f1;
    border-radius: 0;
    box-shadow: 0 28px 60px rgba(16, 24, 40, .12);
    grid-template-columns: .9fr 1fr;
    max-width: 980px;
    min-height: 560px;
}

.tixia-login-card .login-brand {
    background: var(--login-primary, var(--primary));
    gap: 96px;
    justify-content: flex-start;
    min-height: 560px;
    padding: 42px;
}

.login-brand-logo {
    align-items: center;
}

.login-brand-logo .brand-title {
    color: #ffffff;
    font-size: 28px;
}

.login-brand-copy span {
    color: rgba(255, 255, 255, .72);
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.login-brand-copy h1 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 14px;
}

.login-brand-copy p {
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    line-height: 1.7;
    margin: 0;
}

.login-metrics {
    display: grid;
    gap: 10px;
}

.login-metrics span {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 10px;
    color: rgba(255, 255, 255, .72);
    display: flex;
    font-size: 12px;
    justify-content: space-between;
    padding: 11px 12px;
}

.login-metrics strong {
    color: #ffffff;
}

.tixia-login-card .login-form-panel {
    padding: 54px 60px;
}

.tixia-login-card .mini-logo {
    border-radius: 14px;
    height: 52px;
    width: 62px;
}

.tixia-login-card .welcome {
    font-size: 13px;
    margin-top: 26px;
}

.tixia-login-card .login-form-panel h2 {
    font-size: 28px;
    margin-bottom: 26px;
}

.tixia-login-card .input-icon {
    border-radius: 10px;
    margin-bottom: 16px;
}

.tixia-login-card .input-icon i {
    min-width: 48px;
    text-align: center;
}

.tixia-login-card .primary-btn {
    background: var(--login-button, var(--primary));
    border-color: var(--login-button, var(--primary));
    border-radius: 10px;
    min-height: 48px;
}

.image-logo {
    background: rgba(255, 255, 255, .1);
    overflow: hidden;
    padding: 6px;
}

.image-logo img,
.mini-logo img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

@media (max-width: 1199px) {
    .conversation-shell {
        grid-template-columns: 1fr;
    }

    .report-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .tixia-login-card {
        border-radius: 16px;
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .tixia-login-card .login-brand {
        display: none;
    }

    .tixia-login-card .login-form-panel {
        padding: 32px;
    }
}

@media (max-width: 767px) {
    .dashboard-report-grid,
    .report-stat-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero-report {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .bar-chart {
        gap: 8px;
    }

    .conversation-shell {
        gap: 12px;
    }

    .chat-panel {
        min-height: calc(100vh - 118px);
    }

    .chat-header,
    .chat-body,
    .chat-composer,
    .chat-side-panel {
        padding-left: 14px;
        padding-right: 14px;
    }

    .message-row {
        max-width: 92%;
    }

    .chat-person em {
        max-width: 230px;
    }

    .chat-composer {
        align-items: stretch;
    }

    .chat-composer textarea {
        min-width: 0;
    }

    .composer-preview-item {
        max-width: 100%;
    }

    .composer-preview-item img {
        height: 44px;
        width: 54px;
    }

    .send-btn {
        padding: 0;
    }

    .media-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .file-grid {
        grid-template-columns: 1fr;
    }
}

.customer-sol-panel[hidden] {
    display: none;
}

.customer-sol-panel .form-grid {
    margin-top: 14px;
}

.ckt-assignment-box {
    background: #f8f9fc;
    border: 1px solid #edf1f6;
    border-top: 0;
    border-radius: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    display: grid;
    gap: 7px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: 210px;
    overflow: auto;
    padding: 10px 12px 12px;
}

.assignment-toolbar {
    align-items: center;
    background: #ffffff;
    border: 1px solid #edf1f6;
    border-bottom-color: #e5eaf3;
    border-radius: 10px 10px 0 0;
    display: flex;
    gap: 10px;
    margin-top: 14px;
    padding: 10px 12px;
}

.assignment-toolbar strong {
    color: #111827;
    font-size: 13px;
}

.assignment-toolbar span {
    color: #7b8190;
    font-size: 12px;
    margin-right: auto;
}

.assignment-action {
    background: var(--primary);
    border: 1px solid rgb(34, 47, 185);
    border-radius: 7px;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    min-height: 30px;
    padding: 5px 10px;
}

.assignment-action.muted {
    background: #ffffff;
    border-color: #d8deea;
    color: #657083;
}

.assignment-check {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5eaf3;
    border-radius: 8px;
    color: #111827;
    display: flex;
    font-size: 12px;
    font-weight: 600;
    gap: 7px;
    margin: 0;
    min-height: 34px;
    padding: 7px 9px;
}

.assignment-check input {
    flex: 0 0 auto;
    height: 16px;
    width: 16px;
}

.assignment-empty,
.form-help {
    color: #7b8190;
    font-size: 12px;
}

.assignment-empty {
    grid-column: 1 / -1;
    padding: 6px;
}

@media (max-width: 767px) {
    .assignment-toolbar {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .assignment-toolbar span {
        flex-basis: 100%;
        order: 3;
    }

    .ckt-assignment-box {
        grid-template-columns: 1fr;
    }
}

.delete-review-body {
    display: grid;
    gap: 18px;
    padding: 24px 28px;
}

.delete-user-summary {
    align-items: center;
    background: #f8f9fc;
    border: 1px solid #edf1f6;
    border-radius: 10px;
    display: flex;
    gap: 12px;
    padding: 14px;
}

.delete-user-summary strong,
.delete-user-summary small {
    display: block;
}

.delete-user-summary small {
    color: #7b8190;
    font-size: 12px;
}

.impact-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.impact-grid div {
    background: #ffffff;
    border: 1px solid #e4e9f2;
    border-radius: 10px;
    padding: 14px;
}

.impact-grid span,
.impact-grid small {
    color: #7b8190;
    display: block;
    font-size: 12px;
}

.impact-grid strong {
    color: #111827;
    display: block;
    font-size: 24px;
    margin: 4px 0;
}

.delete-warning {
    align-items: center;
    background: #fff4f4;
    border: 1px solid #ffd6d6;
    border-radius: 10px;
    color: #b42318;
    display: flex;
    font-size: 13px;
    gap: 8px;
    padding: 12px 14px;
}

.delete-review-body h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 6px 0 -6px;
}

.danger-btn {
    background: #ff3045;
    border-color: #ff3045;
}

.sol-overview-body {
    display: grid;
    gap: 14px;
    grid-template-columns: 220px minmax(0, 1fr) auto;
    padding: 22px 28px;
}

.sol-summary-card,
.sol-recent-card,
.sol-action-card {
    background: #f8f9fc;
    border: 1px solid #e8edf5;
    border-radius: 12px;
    padding: 14px;
}

.sol-summary-card span,
.sol-summary-card small,
.sol-recent-card span {
    color: #7b8190;
    display: block;
    font-size: 11.5px;
}

.sol-summary-card strong {
    color: rgb(34, 47, 185);
    display: block;
    font-size: 30px;
    line-height: 1.1;
    margin: 5px 0;
}

.sol-recent-card {
    display: grid;
    gap: 8px;
}

.sol-recent-card h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

.sol-recent-card div {
    min-width: 0;
}

.sol-recent-card strong {
    color: #111827;
    display: block;
    font-size: 12px;
}

.sol-recent-card span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sol-action-card {
    align-content: center;
    display: grid;
    gap: 10px;
    min-width: 210px;
}

.preview-table-wrap {
    border: 1px solid #e5eaf3;
    border-radius: 12px;
    max-height: 360px;
    overflow: auto;
}

.import-history-table .acara-table {
    min-width: 1080px;
}

.import-sol-list {
    color: #111827;
    font-size: 12px;
    line-height: 1.55;
    max-height: 150px;
    max-width: 560px;
    overflow: auto;
    white-space: normal;
}

.import-sol-list span,
.import-sol-list em,
.import-counts {
    color: #7b8190;
    display: block;
    font-size: 11px;
    font-style: normal;
    margin-top: 3px;
}

@media (max-width: 767px) {
    .impact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    html,
    body {
        min-height: 100%;
        overflow-x: hidden;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .app-shell {
        display: block;
        min-height: 100dvh;
    }

    .deznav {
        border-radius: 0 22px 22px 0;
        box-shadow: 22px 0 60px rgba(15, 23, 42, .18);
        max-width: 320px;
        overflow: hidden;
        width: min(84vw, 320px);
        z-index: 60;
    }

    .nav-header {
        height: 70px;
        padding: 0 18px;
    }

    .brand-logo {
        gap: 12px;
        min-width: 0;
    }

    .brand-title {
        font-size: 22px;
        letter-spacing: -.4px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ticket-logo {
        border-radius: 9px;
        flex: 0 0 48px;
        font-size: 20px;
        height: 38px;
        width: 48px;
    }

    .deznav-scroll {
        height: calc(100dvh - 70px);
        padding: 16px 14px 24px;
    }

    .metismenu {
        gap: 8px;
    }

    .has-arrow {
        font-size: 13px;
        gap: 12px;
        min-height: 46px;
        padding: 5px 10px;
    }

    .has-arrow > i:first-child {
        flex: 0 0 36px;
        font-size: 17px;
        height: 36px;
        width: 36px;
    }

    .submenu {
        margin-left: 54px;
    }

    .submenu a,
    .submenu-button {
        font-size: 12px;
        padding: 7px 9px;
    }

    .sidebar-open .mobile-backdrop {
        backdrop-filter: blur(2px);
        z-index: 55;
    }

    .main-panel {
        min-height: 100dvh;
    }

    .header {
        gap: 10px;
        min-height: 62px;
        padding: 8px 12px;
        position: sticky;
        top: 0;
        z-index: 45;
    }

    .hamburger {
        background: rgba(255, 255, 255, .14);
        border-radius: 14px;
        gap: 5px;
        height: 42px;
        place-content: center;
        width: 42px;
    }

    .hamburger span {
        height: 2px;
        width: 21px;
    }

    .dashboard-bar {
        flex: 1;
        font-size: 17px;
        line-height: 1.15;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .header-right {
        gap: 7px;
        margin-left: 0;
    }

    .notification-btn {
        height: 38px;
        width: 38px;
    }

    .notification-dropdown {
        max-height: calc(100vh - 96px);
        min-width: min(340px, calc(100vw - 24px));
    }

    .notification-list {
        max-height: calc(100vh - 230px);
    }

    .live-status-chip {
        background: rgba(255, 255, 255, .14);
        border-radius: 14px;
        min-height: 38px;
        min-width: 70px;
        padding: 5px 8px;
    }

    .live-status-chip.has-weather.has-clock,
    .live-status-chip.has-weather:not(.has-clock),
    .live-status-chip.has-clock:not(.has-weather) {
        width: 78px;
    }

    .live-status-chip.has-clock .live-weather {
        display: none !important;
    }

    .live-clock {
        width: 60px;
    }

    .live-status-chip strong {
        font-size: 10.5px;
    }

    .live-status-chip small {
        font-size: 8.5px;
    }

    .profile-chip {
        border-radius: 14px;
        gap: 0;
        min-height: 38px;
        padding: 4px;
    }

    .profile-chip .avatar {
        height: 30px;
        width: 30px;
    }

    .profile-chip > span:not(.avatar),
    .profile-chip::after {
        display: none;
    }

    .content-body {
        padding: 12px;
    }

    .soft-alert {
        border-radius: 12px;
        font-size: 12px;
        margin-bottom: 12px;
        padding: 10px 12px;
    }
}

@media (max-width: 767px) {
    body {
        background: #f5f6fb;
        font-size: 12px;
    }

    .page-title-block {
        margin-bottom: 12px;
    }

    .page-title-block h1 {
        font-size: 20px;
        line-height: 1.2;
        margin-bottom: 4px;
    }

    .page-title-block nav {
        flex-wrap: wrap;
        font-size: 12px;
        gap: 8px;
    }

    .dashboard-report-grid,
    .report-stat-grid,
    .stats-grid,
    .form-grid,
    .permission-grid,
    .meta-grid,
    .ticket-detail-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero-report,
    .dashboard-summary-card,
    .report-stat-card,
    .content-card,
    .data-card,
    .form-card {
        border-radius: 14px;
        box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
    }

    .dashboard-hero-report,
    .content-card,
    .form-card-header,
    .form-card form {
        padding: 16px;
    }

    .dashboard-hero-report h2,
    .card-title-row h3,
    .form-card-header h2 {
        font-size: 18px;
        line-height: 1.2;
    }

    .dashboard-hero-report p,
    .form-card-header p {
        font-size: 12px;
    }

    .report-stat-card {
        min-height: 92px;
        padding: 14px;
    }

    .form-grid {
        gap: 14px;
    }

    .form-grid label,
    .stacked-fields label {
        font-size: 12.5px;
        gap: 7px;
    }

    .form-grid input,
    .form-grid select,
    .form-grid textarea,
    .stacked-fields select,
    .content-card textarea {
        border-radius: 10px;
        font-size: 12.5px;
        min-height: 42px;
        padding: 8px 12px;
    }

    .form-actions {
        gap: 9px;
        margin-top: 18px;
        padding-top: 14px;
    }

    .form-actions .primary-btn,
    .form-actions .outline-btn,
    .form-actions .orange-btn {
        flex: 1;
    }

    .table-toolbar,
    .action-toolbar,
    .status-filter {
        padding-left: 14px;
        padding-right: 14px;
    }

    .table-toolbar,
    .action-toolbar {
        gap: 9px;
    }

    .entries-control,
    .search-control,
    .status-filter select {
        font-size: 12px;
    }

    .entries-control select,
    .search-control input,
    .status-filter select {
        min-height: 40px;
    }

    .search-box-icon {
        padding: 9px 12px;
    }

    .table-responsive {
        border-top: 1px solid #e5eaf3;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .acara-table {
        min-width: 760px;
    }

    .acara-table th,
    .acara-table td {
        font-size: 12px;
        padding: 12px 14px;
        white-space: nowrap;
    }

    .table-footer {
        font-size: 12px;
        padding: 12px 14px;
    }

    .icon-btn {
        height: 34px;
        width: 36px;
    }

    .ticket-chat-page {
        --ticket-chat-header-height: 62px;
        height: 100dvh;
        overflow: hidden;
    }

    .ticket-chat-page .main-panel {
        height: 100dvh;
        overflow: hidden;
    }

    .ticket-chat-page .content-body {
        display: flex;
        flex-direction: column;
        gap: 0;
        height: calc(100dvh - var(--ticket-chat-header-height));
        overflow: hidden;
        padding: 0;
    }

    .ticket-chat-page .soft-alert {
        border-radius: 0;
        flex: 0 0 auto;
        margin: 0;
    }

    .ticket-chat-page .conversation-shell {
        flex: 1 1 auto;
        height: auto;
        min-height: 0;
    }

    .ticket-chat-page .chat-panel {
        border-radius: 0;
        border-width: 0;
        height: 100%;
        min-height: 0;
    }

    .ticket-chat-page .chat-panel {
        box-shadow: none;
    }

    .chat-header {
        background: #ffffff;
        gap: 10px;
        min-height: 66px;
        padding: 9px 12px;
    }

    .chat-avatar {
        flex: 0 0 38px;
        font-size: 14px;
        height: 38px;
        width: 38px;
    }

    .chat-person {
        gap: 9px;
    }

    .chat-person strong {
        font-size: 13px;
    }

    .chat-person small {
        font-size: 10.5px;
    }

    .chat-person em {
        max-width: 210px;
    }

    .chat-info-toggle {
        border-radius: 12px;
        font-size: 16px;
        height: 36px;
        width: 36px;
    }

    .chat-body {
        padding: 14px 10px 12px;
    }

    .chat-date {
        font-size: 10.5px;
        margin: 6px 0 14px;
    }

    .message-row {
        margin-bottom: 12px;
        max-width: 88%;
    }

    .chat-bubble {
        border-radius: 13px;
        font-size: 11.5px;
        line-height: 1.45;
        padding: 8px 10px;
    }

    .message-time {
        font-size: 10px;
    }

    .bubble-files {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .bubble-files a {
        max-width: 100%;
        width: min(245px, 100%);
    }

    .message-row.outgoing .bubble-files a {
        width: min(255px, 100%);
    }

    .chat-composer {
        background: #ffffff;
        padding: 8px 10px 10px;
    }

    .composer-box {
        border-radius: 22px;
        box-shadow: 0 8px 24px rgba(34, 47, 185, .12);
        padding: 8px;
    }

    .composer-row {
        gap: 6px;
    }

    .composer-round-btn {
        font-size: 17px;
        height: 36px;
        width: 36px;
    }

    .chat-composer textarea {
        font-size: 12.5px;
        min-height: 36px;
        padding: 7px 6px;
    }

    .send-btn {
        border-radius: 50%;
        flex: 0 0 42px;
        height: 42px;
        width: 42px;
    }

    .composer-preview {
        grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
        max-height: 128px;
        overflow-y: auto;
        padding: 7px;
        scrollbar-width: none;
    }

    .composer-preview::-webkit-scrollbar {
        display: none;
    }

    .composer-preview-item {
        max-width: 190px;
    }

    .composer-preview-item.image {
        min-height: 76px;
    }

    .composer-preview-item img {
        height: 76px;
    }

    .composer-preview-item strong {
        max-width: 104px;
    }

    .composer-attach-menu {
        bottom: 44px;
        min-width: 190px;
    }

    .composer-emoji-menu {
        bottom: 44px;
        grid-template-columns: repeat(6, 30px);
        left: 0;
        max-width: calc(100vw - 28px);
    }

    .chat-side-panel {
        border-radius: 22px 22px 0 0;
        bottom: 0;
        left: 0;
        max-width: none;
        padding: 14px 14px 22px;
        right: 0;
        top: auto;
        transform: translateY(calc(100% + 24px));
        width: 100%;
    }

    .ticket-panel-open .chat-side-panel {
        transform: translateY(0);
    }

    .ticket-panel-close {
        border-radius: 13px;
        height: 36px;
        width: 36px;
    }

    .media-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .file-grid {
        grid-template-columns: 1fr;
    }

    .attachment-preview-dialog {
        border-radius: 18px 18px 0 0;
        bottom: 0;
        height: min(86dvh, 720px);
        left: 0;
        top: auto;
        transform: none;
        width: 100%;
    }

    .attachment-preview-head {
        padding: 12px;
    }

    .attachment-preview-head strong {
        max-width: calc(100vw - 88px);
    }

    .attachment-preview-head button {
        flex-basis: 36px;
        height: 36px;
        width: 36px;
    }

    .attachment-preview-body {
        padding: 10px;
    }

    .attachment-preview-actions {
        padding: 10px 12px 14px;
    }

    .attachment-preview-actions .outline-btn,
    .attachment-preview-actions .primary-btn {
        flex: 1;
    }

    .sol-overview-body {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .sol-action-card {
        min-width: 0;
    }

    .preview-table-wrap {
        max-height: 320px;
    }
}

/* Adaptive header widgets: keep all enabled widgets from overflowing. */
.header {
    min-width: 0;
}

.dashboard-bar {
    flex: 0 1 auto;
    min-width: 0;
}

.header-right {
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
}

.header-right .search-area {
    flex: 0 1 270px;
    min-width: 190px;
}

.header-right .search-area input {
    min-width: 0;
    width: 100%;
}

.profile-chip {
    flex: 0 1 260px;
    max-width: 260px;
    min-width: 0;
    overflow: hidden;
}

.profile-chip > span:not(.avatar) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-status-chip {
    max-width: 100%;
}

@media (min-width: 992px) and (max-width: 1540px) {
    .header {
        gap: 14px;
        padding-inline: 20px;
    }

    .header-right {
        gap: 10px;
    }

    .header-right .search-area {
        flex-basis: 220px;
        min-width: 180px;
    }

    .live-status-chip.has-weather.has-clock {
        width: 330px;
    }

    .live-weather {
        width: 188px;
    }

    .live-clock {
        width: 92px;
    }

    .profile-chip {
        flex-basis: 210px;
        max-width: 210px;
    }
}

@media (min-width: 992px) and (max-width: 1280px) {
    .header-right .search-area {
        display: none;
    }

    .dashboard-bar {
        max-width: 210px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (min-width: 992px) and (max-width: 1120px) {
    .profile-chip {
        flex: 0 0 auto;
        max-width: 44px;
        padding: 5px;
    }

    .profile-chip > span:not(.avatar),
    .profile-chip::after {
        display: none;
    }
}

@media (max-width: 991px) {
    .header {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 8px;
    }

    .dashboard-bar {
        min-width: 0;
    }

    .header-right {
        flex: 0 0 auto;
        gap: 6px;
        min-width: 0;
    }

    .live-status-chip.has-weather.has-clock,
    .live-status-chip.has-weather:not(.has-clock),
    .live-status-chip.has-clock:not(.has-weather) {
        width: 74px;
    }

    .notification-btn,
    .profile-chip {
        flex: 0 0 auto;
    }
}

@media (max-width: 520px) {
    .live-status-chip {
        display: none !important;
    }
}

/* Role permission matrix */
.permission-matrix-panel {
    padding-top: 22px;
}

.permission-matrix-head {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.permission-matrix-head h3 {
    margin: 0;
}

.permission-matrix-head p {
    color: #7b8190;
    font-size: 13px;
    margin: 4px 0 0;
}

.permission-search {
    align-items: center;
    border: 1px solid #dbe1ec;
    border-radius: 999px;
    color: #7b8190;
    display: flex !important;
    flex: 0 1 280px;
    gap: 8px !important;
    padding: 0 14px;
}

.permission-search input {
    border: 0 !important;
    min-height: 42px !important;
    outline: 0;
    padding: 8px 0 !important;
    width: 100%;
}

.permission-matrix-wrap {
    border: 1px solid #eadfd4;
    border-radius: 12px;
    overflow: hidden;
}

.permission-groups {
    background: #fff;
}

.permission-section + .permission-section {
    border-top: 1px solid #ded7ef;
}

.permission-section-head {
    background: #f7f6ff;
    border-bottom: 1px solid #e5e0f4;
    padding: 16px 26px;
}

.permission-section-head h4 {
    color: var(--primary);
    font-size: 17px;
    font-weight: 800;
    margin: 0;
}

.permission-group {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(220px, 30%) 1fr;
    padding: 24px 26px;
}

.permission-group + .permission-group {
    border-top: 1px solid #eee4da;
}

.permission-group-title {
    align-content: start;
    display: grid;
    gap: 16px;
}

.permission-group-title h5 {
    color: #111a34;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.permission-group-title small {
    color: #7b8190;
    display: block;
    font-size: 12px;
    margin-top: 5px;
}

.permission-items {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.permission-select-all,
.permission-item {
    align-items: center;
    color: #34436a;
    cursor: pointer;
    display: inline-flex !important;
    gap: 14px !important;
    line-height: 1.25;
    margin: 0;
}

.permission-item strong {
    color: #34436a;
    font-size: 15px;
    font-weight: 500;
}

.permission-select-all strong {
    color: #34436a;
    font-size: 15px;
    font-weight: 500;
}

.permission-select-all input,
.permission-item input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.permission-select-all > span:first-of-type,
.permission-item > span {
    background: #fff;
    border: 1px solid #dccabd;
    border-radius: 2px;
    display: inline-flex;
    flex: 0 0 24px;
    height: 24px;
    width: 24px;
}

.permission-select-all input:checked + span,
.permission-item input:checked + span {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 24%, transparent);
}

.permission-select-all input:checked + span::after,
.permission-item input:checked + span::after {
    color: #fff;
    content: "\F26E";
    font-family: "bootstrap-icons";
    font-size: 15px;
    line-height: 24px;
    text-align: center;
    width: 24px;
}

.permission-select-all input:indeterminate + span {
    background: color-mix(in srgb, var(--primary) 18%, #fff);
    border-color: var(--primary);
}

.permission-select-all input:indeterminate + span::after {
    color: var(--primary);
    content: "\F2EA";
    font-family: "bootstrap-icons";
    font-size: 14px;
    line-height: 24px;
    text-align: center;
    width: 24px;
}

@media (max-width: 767px) {
    .permission-matrix-head {
        align-items: stretch;
        flex-direction: column;
    }

    .permission-search {
        flex-basis: auto;
        width: 100%;
    }

    .permission-group {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .permission-items {
        grid-template-columns: 1fr;
    }
}

/* Settings: Chat History cleanup */
.chat-history-summary {
    align-items: center;
    background: #f6f7ff;
    border: 1px solid #e1e5f6;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    margin: 0 28px 16px;
    padding: 16px 18px;
}

.chat-history-summary strong,
.chat-history-summary span {
    display: block;
}

.chat-history-summary strong {
    color: #111827;
    font-size: 17px;
    font-weight: 800;
}

.chat-history-summary span {
    color: #7b8190;
    font-size: 13px;
    margin-top: 3px;
}

.chat-history-message-heading {
    margin-top: 24px;
}

.chat-history-table td {
    vertical-align: top;
}

.chat-history-table td strong,
.chat-history-table td span,
.chat-history-table td small {
    display: block;
}

.chat-history-table td small {
    color: #7b8190;
    font-size: 11px;
    margin-top: 4px;
}

.chat-history-message {
    max-width: 340px;
    white-space: normal;
}

.chat-history-file {
    align-items: center;
    background: #f4f6fb;
    border: 1px solid #e2e7f1;
    border-radius: 999px;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 7px;
    min-width: 240px;
    padding: 7px 8px 7px 12px;
}

.chat-history-file span {
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-history-file form {
    flex: 0 0 auto;
}

.chat-history-file button {
    align-items: center;
    background: #fff;
    border: 1px solid #ef4444;
    border-radius: 50%;
    color: #ef4444;
    display: inline-flex;
    height: 26px;
    justify-content: center;
    width: 26px;
}
