:root {
    --le-bg: #ffffff;
    --le-panel: #ffffff;
    --le-panel-soft: #f7f9fc;
    --le-border: #d8e0eb;
    --le-border-strong: #b7c4d6;
    --le-text: #172033;
    --le-muted: #667085;
    --le-accent: var(--theme-700, #0f766e);
    --le-accent-soft: rgba(15, 118, 110, 0.11);
    --le-row-hover: rgba(15, 118, 110, 0.07);
    --le-row-selected: rgba(2, 106, 162, 0.13);
    --le-shadow: 0 18px 44px rgba(16, 24, 40, 0.14);
    --le-radius: 8px;
    --le-row-height: 38px;
    --le-cell-x: 10px;
    --le-cell-y: 7px;
}

body.candle-night,
body.dark-mode,
body.dark,
.skin-black,
.skin-black-light {
    --le-bg: #111827;
    --le-panel: #172033;
    --le-panel-soft: #202b3d;
    --le-border: #344154;
    --le-border-strong: #4d5d73;
    --le-text: #edf2f7;
    --le-muted: #a6b1c2;
    --le-accent-soft: rgba(56, 189, 248, 0.14);
    --le-row-hover: rgba(56, 189, 248, 0.09);
    --le-row-selected: rgba(45, 212, 191, 0.16);
    --le-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

@media (prefers-color-scheme: dark) {
    body:not(.skin-blue-light):not(.skin-green-light):not(.skin-purple-light):not(.skin-red-light):not(.skin-yellow-light) {
        --le-bg: #111827;
        --le-panel: #172033;
        --le-panel-soft: #202b3d;
        --le-border: #344154;
        --le-border-strong: #4d5d73;
        --le-text: #edf2f7;
        --le-muted: #a6b1c2;
        --le-accent-soft: rgba(56, 189, 248, 0.14);
        --le-row-hover: rgba(56, 189, 248, 0.09);
        --le-row-selected: rgba(45, 212, 191, 0.16);
        --le-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
    }
}

.le-shell {
    position: relative;
    margin-top: 6px;
}

.le-shell,
.le-shell *,
.le-shell *::before,
.le-shell *::after {
    box-sizing: border-box;
}

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

.le-shell .dataTables_wrapper {
    color: var(--le-text);
}

.le-shell [hidden] {
    display: none !important;
}

.le-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 10px;
    margin-bottom: 8px;
    background: var(--le-panel);
    border: 1px solid var(--le-border);
    border-radius: var(--le-radius);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.le-toolbar-left,
.le-toolbar-right,
.le-bulk-actions,
.le-filter-presets,
.le-column-filters,
.le-page-size-wrap,
.le-static-pager,
.le-density-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.le-toolbar-title {
    max-width: 260px;
    color: var(--le-text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.le-btn,
.le-density-btn,
.le-panel button,
.le-context-menu button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 9px;
    color: var(--le-text);
    background: var(--le-bg);
    border: 1px solid var(--le-border);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.le-btn:hover,
.le-density-btn:hover,
.le-panel button:hover,
.le-context-menu button:hover {
    background: var(--le-accent-soft);
    border-color: var(--le-accent);
}

.le-btn:focus-visible,
.le-density-btn:focus-visible,
.le-panel button:focus-visible,
.le-context-menu button:focus-visible,
.le-check input:focus-visible,
.le-panel input:focus-visible,
.le-panel select:focus-visible,
.le-filter-presets input:focus-visible,
.le-filter-presets select:focus-visible,
.le-column-filters input:focus-visible,
.le-static-page-size:focus-visible,
.le-table thead .le-sortable:focus-visible,
.le-static-table thead .le-sortable:focus-visible {
    outline: 2px solid var(--le-accent);
    outline-offset: 2px;
}

.le-btn.is-active,
.le-density-btn.is-active {
    color: #ffffff;
    background: var(--le-accent);
    border-color: var(--le-accent);
}

.le-btn.is-danger {
    color: #b42318;
    border-color: #f2b8b5;
}

.le-btn.is-danger:hover {
    color: #ffffff;
    background: #b42318;
    border-color: #b42318;
}

.le-btn:disabled,
.le-btn.is-disabled {
    cursor: not-allowed;
    opacity: 0.54;
}

.le-btn:disabled:hover,
.le-btn.is-disabled:hover {
    color: var(--le-text);
    background: var(--le-bg);
    border-color: var(--le-border);
}

.le-selection-count {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 8px;
    color: var(--le-text);
    background: var(--le-accent-soft);
    border: 1px solid color-mix(in srgb, var(--le-accent) 40%, transparent);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.le-filter-chips {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    max-width: min(520px, 100%);
}

.le-filter-chips[hidden] {
    display: none !important;
}

.le-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 24px;
    max-width: 220px;
    padding: 3px 7px;
    color: var(--le-text);
    background: var(--le-panel-soft);
    border: 1px solid var(--le-border);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.le-filter-chip:hover {
    background: var(--le-accent-soft);
    border-color: var(--le-accent);
}

.le-filter-chip span,
.le-filter-chip strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.le-filter-chip span {
    color: var(--le-muted);
}

.le-filter-chip strong {
    color: var(--le-text);
    font-weight: 800;
}

.le-filter-chip b {
    color: var(--le-muted);
    font-size: 13px;
    line-height: 1;
}

.le-filter-presets {
    max-width: min(760px, 100%);
    padding: 3px;
    background: var(--le-panel-soft);
    border: 1px solid var(--le-border);
    border-radius: 7px;
}

.le-filter-presets[hidden] {
    display: none !important;
}

.le-filter-presets input,
.le-filter-presets select {
    min-width: 112px;
    height: 28px;
    color: var(--le-text);
    background: var(--le-bg);
    border: 1px solid var(--le-border);
    border-radius: 6px;
    font-size: 12px;
}

.le-filter-presets input {
    width: 132px;
    padding: 4px 7px;
}

.le-filter-presets select {
    width: 128px;
    padding: 3px 6px;
}

.le-filter-presets input:disabled,
.le-filter-presets select:disabled,
.le-filter-presets button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.le-column-filters {
    align-items: stretch;
    max-width: min(720px, 100%);
    padding: 6px;
    background: var(--le-panel-soft);
    border: 1px solid var(--le-border);
    border-radius: 7px;
}

.le-column-filters[hidden] {
    display: none !important;
}

.le-column-filter-head {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 100%;
}

.le-column-filter-head strong,
.le-column-filter-item span {
    color: var(--le-text);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.le-column-filter-head input,
.le-column-filter-item select,
.le-column-filter-item input {
    height: 28px;
    color: var(--le-text);
    background: var(--le-bg);
    border: 1px solid var(--le-border);
    border-radius: 6px;
    font-size: 12px;
}

.le-column-filter-head input {
    flex: 1 1 180px;
    min-width: 140px;
    padding: 4px 7px;
}

.le-column-filter-item {
    display: inline-grid;
    grid-template-columns: minmax(70px, auto) minmax(106px, 116px) minmax(120px, 1fr);
    align-items: center;
    gap: 5px;
    flex: 1 1 338px;
    min-width: 300px;
}

.le-column-filter-item[hidden] {
    display: none !important;
}

.le-column-filter-item span {
    max-width: 118px;
    overflow: hidden;
    color: var(--le-muted);
    text-overflow: ellipsis;
}

.le-column-filter-item select,
.le-column-filter-item input {
    width: 100%;
    min-width: 0;
    padding: 4px 7px;
}

.le-page-size-wrap select,
.le-static-page-size {
    height: 28px;
    min-width: 66px;
    color: var(--le-text);
    background: var(--le-bg);
    border: 1px solid var(--le-border);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.le-static-pager {
    color: var(--le-muted);
    font-size: 12px;
    font-weight: 700;
}

.le-static-pager .le-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.le-bulk-actions[hidden],
.le-bulk-actions [hidden],
.le-selection-count[hidden] {
    display: none !important;
}

.le-panel {
    position: absolute;
    top: 42px;
    right: 0;
    z-index: 1040;
    display: none;
    width: min(420px, calc(100vw - 28px));
    max-height: min(620px, calc(100vh - 120px));
    overflow: auto;
    padding: 10px;
    color: var(--le-text);
    background: var(--le-panel);
    border: 1px solid var(--le-border);
    border-radius: var(--le-radius);
    box-shadow: var(--le-shadow);
}

.le-panel.is-open {
    display: block;
}

.le-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--le-border);
}

.le-panel-title {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
}

.le-column-search {
    width: 100%;
    height: 30px;
    margin-bottom: 8px;
    padding: 5px 8px;
    color: var(--le-text);
    background: var(--le-bg);
    border: 1px solid var(--le-border);
    border-radius: 6px;
    font-size: 12px;
}

.le-layout-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    align-items: center;
    padding: 8px;
    margin-bottom: 8px;
    background: var(--le-panel-soft);
    border: 1px solid var(--le-border);
    border-radius: 7px;
}

.le-layout-controls input,
.le-layout-controls select {
    min-width: 0;
    height: 28px;
    color: var(--le-text);
    background: var(--le-bg);
    border: 1px solid var(--le-border);
    border-radius: 6px;
    font-size: 12px;
}

.le-layout-controls input {
    grid-column: 1 / 2;
    padding: 4px 7px;
}

.le-layout-controls select {
    grid-column: 2 / 4;
}

.le-layout-controls button {
    width: 100%;
}

.le-layout-controls select {
    padding: 3px 6px;
}

.le-column-list {
    display: grid;
    gap: 6px;
}

.le-column-row {
    display: grid;
    grid-template-columns: minmax(106px, 1fr) 76px 54px 54px 36px;
    gap: 6px;
    align-items: center;
    padding: 7px;
    background: var(--le-panel-soft);
    border: 1px solid transparent;
    border-radius: 7px;
}

.le-column-row:hover {
    border-color: var(--le-border-strong);
}

.le-column-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: var(--le-text);
    font-size: 12px;
    font-weight: 700;
}

.le-column-name span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.le-column-row select,
.le-column-row input[type="number"],
.le-column-row input[type="color"] {
    min-width: 0;
    height: 28px;
    color: var(--le-text);
    background: var(--le-bg);
    border: 1px solid var(--le-border);
    border-radius: 6px;
    font-size: 12px;
}

.le-column-row input[type="number"] {
    width: 100%;
    padding: 2px 5px;
}

.le-column-row input[type="color"] {
    width: 34px;
    padding: 2px;
}

.le-column-row button {
    width: 100%;
    padding: 4px 5px;
    font-size: 11px;
}

.le-column-move {
    display: grid;
    grid-column: 1 / 3;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    min-width: 0;
}

.le-column-move button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.le-column-row [data-le-fit] {
    grid-column: 3 / 4;
}

.le-column-row [data-le-reset-column] {
    grid-column: 4 / 6;
}

.le-table {
    width: 100% !important;
    color: var(--le-text);
    background: var(--le-bg);
    border-collapse: separate !important;
    border-spacing: 0;
    table-layout: fixed;
}

.le-table th,
.le-table td {
    position: relative;
    max-width: 1px;
    height: var(--le-row-height);
    padding: var(--le-cell-y) var(--le-cell-x) !important;
    color: var(--le-text);
    border-color: var(--le-border) !important;
    font-size: 12px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap !important;
    vertical-align: middle !important;
}

.le-table thead th {
    position: sticky;
    top: 0;
    z-index: 4;
    color: var(--le-muted);
    background: var(--le-panel-soft) !important;
    border-bottom: 1px solid var(--le-border-strong) !important;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.le-table tbody tr {
    transition: background-color 120ms ease, box-shadow 120ms ease;
}

.le-table tbody tr:hover {
    background: var(--le-row-hover) !important;
}

.le-table tbody tr.le-row-selected {
    background: var(--le-row-selected) !important;
}

.le-table tbody tr.le-row-openable,
.le-static-table tbody tr.le-row-openable {
    cursor: pointer;
}

.le-table tbody tr:focus,
.le-table tbody tr:focus-visible {
    outline: 2px solid var(--le-accent);
    outline-offset: -2px;
}

.le-table td.dataTables_empty {
    height: 110px;
    color: var(--le-muted);
    background: linear-gradient(180deg, var(--le-panel-soft), var(--le-bg));
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.le-empty-state {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: min(320px, 100%);
    padding: 16px 18px;
    color: var(--le-muted);
    line-height: 1.35;
    text-align: center;
}

.le-empty-state strong {
    color: var(--le-text);
    font-size: 13px;
    font-weight: 800;
}

.le-empty-state span:not(.le-empty-mark) {
    max-width: 360px;
    font-size: 12px;
    font-weight: 600;
    white-space: normal;
}

.le-empty-mark {
    display: block;
    width: 34px;
    height: 34px;
    border: 1px solid color-mix(in srgb, var(--le-accent) 34%, var(--le-border));
    border-radius: 8px;
    background:
        linear-gradient(var(--le-accent-soft), var(--le-accent-soft)),
        linear-gradient(135deg, transparent 0 38%, color-mix(in srgb, var(--le-accent) 48%, transparent) 38% 46%, transparent 46% 100%),
        var(--le-bg);
    box-shadow: inset 0 0 0 5px var(--le-panel-soft);
}

.le-static-shell {
    color: var(--le-text);
}

.le-static-scroll {
    max-width: 100%;
    overflow: auto;
    border: 1px solid var(--le-border);
    border-radius: var(--le-radius);
    background: var(--le-bg);
}

.le-static-search-wrap {
    display: inline-flex;
    align-items: center;
}

.le-static-search {
    width: min(230px, 58vw);
    height: 30px;
    padding: 5px 9px;
    color: var(--le-text);
    background: var(--le-bg);
    border: 1px solid var(--le-border);
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.2;
}

.le-static-search:focus-visible {
    outline: 2px solid var(--le-accent);
    outline-offset: 2px;
}

.le-static-table {
    width: 100%;
    min-width: max-content;
    color: var(--le-text);
    background: var(--le-bg);
    border-collapse: separate !important;
    border-spacing: 0;
}

.le-static-table th,
.le-static-table td {
    position: relative;
    height: var(--le-row-height);
    padding: var(--le-cell-y) var(--le-cell-x) !important;
    color: var(--le-text);
    border-color: var(--le-border) !important;
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap !important;
    vertical-align: middle !important;
}

.le-static-table th:not(.le-has-controls),
.le-static-table td:not(.le-has-controls) {
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.le-static-table th.le-has-controls,
.le-static-table td.le-has-controls {
    overflow: visible;
}

.le-static-table thead th,
.le-static-table thead td {
    position: sticky;
    top: 0;
    z-index: 4;
    color: var(--le-muted);
    background: var(--le-panel-soft) !important;
    border-bottom: 1px solid var(--le-border-strong) !important;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.le-table thead .le-sortable,
.le-static-table thead .le-sortable {
    cursor: pointer;
}

.le-table thead .le-sortable::after,
.le-static-table thead .le-sortable::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    opacity: 0.45;
    vertical-align: middle;
}

.le-table thead .le-sort-asc::after,
.le-static-table thead .le-sort-asc::after {
    border-bottom: 5px solid currentColor;
    opacity: 0.9;
}

.le-table thead .le-sort-desc::after,
.le-static-table thead .le-sort-desc::after {
    border-top: 5px solid currentColor;
    opacity: 0.9;
}

.le-sort-priority {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    margin-left: 5px;
    padding: 0 4px;
    color: #ffffff;
    background: var(--le-accent);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    vertical-align: middle;
}

.le-static-table tbody tr {
    transition: background-color 120ms ease, box-shadow 120ms ease;
}

.le-static-table tbody tr:hover {
    background: var(--le-row-hover) !important;
}

.le-static-table tbody tr.le-row-selected {
    background: var(--le-row-selected) !important;
}

.le-static-table tbody tr:focus,
.le-static-table tbody tr:focus-visible {
    outline: 2px solid var(--le-accent);
    outline-offset: -2px;
}

.le-static-table .le-static-empty-row td {
    height: 96px;
    color: var(--le-muted);
    background: linear-gradient(180deg, var(--le-panel-soft), var(--le-bg));
    text-align: center;
}

.le-static-row-hidden,
.le-static-page-hidden,
.le-column-hidden {
    display: none !important;
}

.le-static-table thead .le-pinned-left,
.le-static-table thead .le-pinned-right {
    z-index: 8;
    background: var(--le-panel-soft) !important;
}

.le-density-comfortable {
    --le-row-height: 44px;
    --le-cell-x: 12px;
    --le-cell-y: 9px;
}

.le-density-compact {
    --le-row-height: 34px;
    --le-cell-x: 9px;
    --le-cell-y: 6px;
}

.le-density-tight {
    --le-row-height: 30px;
    --le-cell-x: 7px;
    --le-cell-y: 5px;
}

.le-resizer {
    position: absolute;
    top: 0;
    right: -3px;
    z-index: 7;
    width: 7px;
    height: 100%;
    cursor: col-resize;
    touch-action: none;
}

.le-resizer::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 3px;
    width: 1px;
    height: calc(100% - 16px);
    background: transparent;
    transition: background-color 120ms ease;
}

.le-resizer:hover::after,
.le-is-resizing .le-resizer::after {
    background: var(--le-accent);
}

.le-dragging {
    opacity: 0.55;
}

.le-drop-target {
    box-shadow: inset 2px 0 0 var(--le-accent);
}

.le-pinned-left,
.le-pinned-right {
    z-index: 5;
    background: var(--le-bg) !important;
    box-shadow: 1px 0 0 var(--le-border);
}

.le-table thead .le-pinned-left,
.le-table thead .le-pinned-right {
    z-index: 8;
    background: var(--le-panel-soft) !important;
}

.le-pinned-left {
    position: sticky !important;
}

.le-pinned-right {
    position: sticky !important;
    box-shadow: -1px 0 0 var(--le-border);
}

.le-cell-accent::before {
    content: "";
    position: absolute;
    top: 7px;
    bottom: 7px;
    left: 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--le-column-accent, var(--le-accent));
}

.le-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin: 0 6px 0 0;
    vertical-align: middle;
}

.le-check input {
    width: 15px;
    height: 15px;
    margin: 0;
    cursor: pointer;
}

.le-row-check {
    float: left;
}

.le-row-text {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.le-status-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    max-width: 100%;
    padding: 2px 8px !important;
    border: 1px solid transparent;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.le-status-paid,
.le-status-completed,
.le-status-approved,
.le-status-delivered,
.le-status-closed,
.le-status-restored {
    color: #05603a !important;
    background: #d1fadf !important;
    border-color: #a6f4c5 !important;
}

.le-status-due,
.le-status-overdue,
.le-status-rejected,
.le-status-cancelled,
.le-status-returned,
.le-status-deleted {
    color: #b42318 !important;
    background: #fee4e2 !important;
    border-color: #fecdca !important;
}

.le-status-partial,
.le-status-processing,
.le-status-open,
.le-status-pending {
    color: #b54708 !important;
    background: #fef0c7 !important;
    border-color: #fedf89 !important;
}

.le-status-draft,
.le-status-archived {
    color: #344054 !important;
    background: #eef2f6 !important;
    border-color: #d0d5dd !important;
}

body.candle-night .le-status-paid,
body.dark-mode .le-status-paid,
body.dark .le-status-paid,
body.candle-night .le-status-completed,
body.dark-mode .le-status-completed,
body.dark .le-status-completed,
body.candle-night .le-status-approved,
body.dark-mode .le-status-approved,
body.dark .le-status-approved,
body.candle-night .le-status-delivered,
body.dark-mode .le-status-delivered,
body.dark .le-status-delivered,
body.candle-night .le-status-closed,
body.dark-mode .le-status-closed,
body.dark .le-status-closed {
    color: #b5f5c8 !important;
    background: rgba(5, 96, 58, 0.32) !important;
    border-color: rgba(166, 244, 197, 0.34) !important;
}

body.candle-night .le-status-due,
body.dark-mode .le-status-due,
body.dark .le-status-due,
body.candle-night .le-status-overdue,
body.dark-mode .le-status-overdue,
body.dark .le-status-overdue,
body.candle-night .le-status-rejected,
body.dark-mode .le-status-rejected,
body.dark .le-status-rejected,
body.candle-night .le-status-cancelled,
body.dark-mode .le-status-cancelled,
body.dark .le-status-cancelled,
body.candle-night .le-status-returned,
body.dark-mode .le-status-returned,
body.dark .le-status-returned {
    color: #ffb4ad !important;
    background: rgba(180, 35, 24, 0.34) !important;
    border-color: rgba(254, 205, 202, 0.28) !important;
}

.le-highlight {
    padding: 0 2px;
    color: inherit;
    background: #fff1a8;
    border-radius: 3px;
}

body.candle-night .le-highlight,
body.dark-mode .le-highlight,
body.dark .le-highlight {
    background: #735c0f;
}

.le-context-menu {
    position: fixed;
    z-index: 1060;
    display: none;
    min-width: 170px;
    padding: 5px;
    background: var(--le-panel);
    border: 1px solid var(--le-border);
    border-radius: var(--le-radius);
    box-shadow: var(--le-shadow);
}

.le-context-menu.is-open {
    display: grid;
    gap: 4px;
}

.le-context-menu button {
    justify-content: flex-start;
    width: 100%;
    border-color: transparent;
}

.le-shell .dataTables_filter input,
.le-shell .dataTables_length select {
    height: 30px;
    color: var(--le-text);
    background: var(--le-bg);
    border: 1px solid var(--le-border);
    border-radius: 6px;
    font-size: 12px;
}

.le-shell .dataTables_info,
.le-shell .dataTables_paginate,
.le-shell .dataTables_length,
.le-shell .dataTables_filter {
    color: var(--le-muted) !important;
    font-size: 12px;
}

.le-shell .dt-buttons {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.le-shell .dt-button,
.le-shell .dt-buttons .tw-dw-btn {
    border-radius: 6px !important;
}

@media (max-width: 768px) {
    .le-toolbar {
        align-items: stretch;
    }

    .le-toolbar-left,
    .le-toolbar-right,
    .le-bulk-actions,
    .le-filter-presets,
    .le-column-filters,
    .le-page-size-wrap,
    .le-static-pager,
    .le-density-control {
        width: 100%;
        justify-content: flex-start;
    }

    .le-toolbar-title {
        max-width: 100%;
    }

    .le-static-search,
    .le-static-search-wrap {
        width: 100%;
    }

    .le-filter-presets input,
    .le-filter-presets select,
    .le-column-filter-head input,
    .le-column-filter-item {
        flex: 1 1 140px;
        width: auto;
    }

    .le-column-filter-item {
        grid-template-columns: 1fr;
        min-width: 100%;
    }

    .le-column-filter-item span {
        max-width: 100%;
    }

    .le-page-size-wrap select,
    .le-static-page-size {
        flex: 1 1 88px;
        width: 100%;
    }

    .le-static-pager .le-btn,
    .le-density-control .le-density-btn {
        flex: 1 1 88px;
    }

    .le-panel {
        left: 0;
        right: auto;
        width: min(420px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
    }

    .le-column-row {
        grid-template-columns: minmax(84px, 1fr) 66px 46px 46px 34px;
        gap: 4px;
    }

    .le-layout-controls {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
