/* =======================================================
   ===== ULTRA KOMPAKTNÍ TABULKY =========================
   ======================================================= */

.fi-ta table tbody tr > td,
.fi-ta table thead tr > th {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    font-size: 12px !important;
    line-height: 1.05 !important;
}

.fi-ta table tbody tr > td > div,
.fi-ta table thead tr > th > div {
    padding: 0 !important;
    margin: 0 !important;
}

.fi-ta table tbody tr > td input,
.fi-ta table tbody tr > td select {
    min-height: 22px !important;
    height: 22px !important;
    padding: 1px 4px !important;
    font-size: 12px !important;
}

.fi-ta table tbody tr > td:first-child,
.fi-ta table thead tr > th:first-child {
    padding-top: 1px !important;
    padding-bottom: 1px !important;
}

.fi-ta table tbody tr > td .fi-badge {
    padding-top: 1px !important;
    padding-bottom: 1px !important;
    font-size: 11px !important;
}

/* =======================================================
   ===== ReturnRecords row highlighting ==================
   ======================================================= */

tr.rr-row-paid > td {
    background-color: rgb(240 253 244) !important;
}

tr.rr-row-ready > td {
    background-color: rgb(254 249 195) !important;
}

tr.rr-row-stock > td {
    background-color: rgb(255 247 237) !important;
}

tr.rr-row-waiting > td {
    background-color: rgb(254 242 242) !important;
}

.dark tr.rr-row-paid > td {
    background-color: rgb(20 83 45 / 0.18) !important;
}

.dark tr.rr-row-ready > td {
    background-color: rgb(113 63 18 / 0.18) !important;
}

.dark tr.rr-row-stock > td {
    background-color: rgb(124 45 18 / 0.18) !important;
}

.dark tr.rr-row-waiting > td {
    background-color: rgb(127 29 29 / 0.18) !important;
}

tr.rr-row-paid:hover > td,
tr.rr-row-ready:hover > td,
tr.rr-row-stock:hover > td,
tr.rr-row-waiting:hover > td {
    filter: brightness(0.98);
}

/* =======================================================
   ===== Inventura – kompaktní inputy sklad / sajze ======
   ======================================================= */

.inv-compact-cell .fi-ta-text-input {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.inv-compact-cell .fi-input-wrp {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.inv-compact-cell .fi-input-wrp-content-ctn {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.inv-compact-cell .fi-input {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    text-align: right !important;
    box-sizing: border-box !important;
}

/* =======================================================
   ===== InventuraOverview – barva widgetu položky =======
   ======================================================= */

.inv-stat-ok {
    background-color: #dcfce7 !important;
    border: 1px solid #86efac !important;
    border-radius: 12px !important;
}

.inv-stat-alert {
    background-color: #fee2e2 !important;
    border: 1px solid #fca5a5 !important;
    border-radius: 12px !important;
}

.inv-stat-ok *,
.inv-stat-alert * {
    color: #1f2937 !important;
}

.dark .inv-stat-ok {
    background-color: rgba(20, 83, 45, 0.22) !important;
    border: 1px solid rgba(34, 197, 94, 0.35) !important;
}

.dark .inv-stat-alert {
    background-color: rgba(127, 29, 29, 0.22) !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
}

.dark .inv-stat-ok *,
.dark .inv-stat-alert * {
    color: #e5e7eb !important;
}