/* Global compact view toggle */
.table-toolbar {
    padding-left: 15px;
    padding-right: 15px;
}

.table-toolbar .compact-toggle label {
    font-size: 12px;
    color: #6c757d;
    cursor: pointer;
}

.compact-table table.dataTable tbody td,
.compact-table table.dataTable tbody th {
    padding: 6px 8px !important;
    font-size: 13px;
}

.compact-table table.dataTable thead th {
    padding: 8px 8px !important;
}

@media (max-width: 767px) {
    .compact-table table.dataTable tbody td {
        font-size: 12px;
    }
}

/* Chat enhancements */
#js-deepflow-chat-wrapper {
    width: 420px;
    height: 520px;
    box-shadow: 0 20px 55px rgba(15, 30, 90, 0.18);
    border: 1px solid rgba(9, 30, 66, 0.1);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 120ms ease;
}

#js-deepflow-chat-wrapper .deepflow-chat-header {
    cursor: move;
}

.chat-resize-handle {
    position: absolute;
    bottom: 4px;
    right: 6px;
    width: 18px;
    height: 18px;
    opacity: 0.55;
    cursor: nwse-resize;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-resize-handle:after {
    content: "";
    width: 12px;
    height: 12px;
    border-bottom: 2px solid #9aa4b2;
    border-right: 2px solid #9aa4b2;
    transform: rotate(0deg);
}

.deepflow-chat-wrapper.compact-drag-active {
    box-shadow: 0 20px 55px rgba(15, 30, 90, 0.32);
}

@media (max-width: 767px) {
    #js-deepflow-chat-wrapper {
        width: calc(100% - 30px);
        height: calc(100% - 40px);
        border-radius: 12px;
        left: 15px !important;
        right: 15px !important;
        top: 20px !important;
    }
    .chat-resize-handle {
        display: none;
    }
}
