
.celltable input.cell{
    transition: 
        border 0s,
        box-shadow 0s!important;
}
.celltable input.cell:disabled{
    color: #999;
    background: rgba(127,127,127,0.15)!important;
}






.celltable.light {
    --celltable-outer-color: #dddddd;

    --celltable-cell-background: #FFFFFF;
    --celltable-cell-border: #E0E0E0;

    --celltable-leftcell-background: #F0F0F0;
    --celltable-leftcell-background-2: #d3d2d2;
    --celltable-leftcell-border: #ABABAB;

    --celltable-text-color: black;
    --celltable-lefttext-color: #444444;

    --celltable-focuscell-color: #217346;
}
:root {
    --celltable-outer-color: #222222;

    --celltable-cell-background: #000000;
    --celltable-cell-border: #1F1F1F;

    --celltable-leftcell-background: #161616;
    --celltable-leftcell-background-2: #252525;
    --celltable-leftcell-border: #545454;

    --celltable-text-color: #FFFFFF;
    --celltable-lefttext-color: #BBBBBB;

    --celltable-focuscell-color: #1F954A;
    
    --celltable-check-color: #a2a6b1;
    --celltable-check-checked-color: #e0e2eb;
}
.celltable {
    border-spacing: 0;
    border: none;
    color: var(--celltable-text-color);
    border: 5px solid var(--celltable-outer-color);
    cursor: crosshair;
}
.celltable tbody,
.celltable tr,
.celltable td {
    height: 100%;
}
.celltable tr:has(.multiselect_field) > td{
    border-bottom-width: 3px;
    border-top-width: 3px;
}
table.celltable td {
    border: 1px solid var(--celltable-cell-border);
    background-color: var(--celltable-cell-background);
    border-collapse: collapse;
    position: relative;
}
.celltable .input.cell,
input.cell input {
    margin: 0;
    border-radius: 0;
    background: none;
    border: none;
    box-sizing: content-box;
    color: var(--celltable-text-color);
    cursor: crosshair;
    height: 100%;
    width: 100%;
}
.celltable td.wide {
    min-width: 200px;
}
.celltable td.cell_left {
    background-color: var(--celltable-leftcell-background);
    border-right: 1px solid var(--celltable-leftcell-border);
    padding: 0.2em;
    vertical-align: center;
    text-align: center;
    color: var(--celltable-lefttext-color);
}
.celltable tr:nth-child(even) td.cell_left{
    background-color: var(--celltable-leftcell-background-2);
}
.celltable td.cell_left,
.celltable td.cell_padded {
    padding: 5px;
}
button.cell_button {
    padding: 0.2em;
    background: none;
    border: none;
    color: var(--celltable-text-color);
    border-radius: 0;
}
button.cell_button:not(:disabled):hover {
    padding: 0.2em;
    background: none;
    border: none;
    color: var(--celltable-text-color);
    cursor: pointer;
    background-color: #999;
}
.selection-overlay {
    position: absolute;
    border: 2px solid var(--celltable-focuscell-color);
    pointer-events: none;
    /* doesn’t block clicks */
    background-color: rgba(55, 150, 63, 0.007);
    /* optional highlight */
    z-index: 200;
    transition:
        top 0.07s ease,
        left 0.07s ease,
        width 0.07s ease,
        height 0.07s ease;
}
.celltable-container {
    position: relative;
}
.lowleft_corner {
    width: 7px;
    height: 7px;
    background-color: var(--celltable-focuscell-color);
    position: absolute;
    right: -4px;
    bottom: -4px;
    border: 1px solid var(--celltable-cell-background);
    z-index: 200;
    display: block;
    z-index: 300;
}
