.g41k-app {
    width: 100%;
    margin: 0;
    color: #172b4d;
    font-size: 13px;
}

.g41k-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 8px;
}

.g41k-controls {
    display: none;
    align-items: center;
    gap: 8px;
}

.g41k-controls.is-visible {
    display: flex;
}
 
.g41k-select,
.g41k-button {
    box-sizing: border-box;
    height: 36px;
    margin: 0;
    border: 1px solid #7a869a;
    border-radius: 3px;
    background: #fff;
    color: #172b4d;
    font: inherit;
}

.g41k-select {
    min-width: 210px;
    padding: 0 30px 0 10px;
}

.g41k-button {
    padding: 0 14px;
    cursor: pointer;
}

.g41k-button:hover:not(:disabled) {
    border-color: #0052cc;
    background: #f4f7fb;
}

.g41k-button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.g41k-reset {
    display: none;
}

.g41k-reset.is-visible {
    display: inline-block;
}

.g41k-message {
    position: fixed;
    right: 18px;
    top: 72px;
    z-index: 100000;
    display: none;
    max-width: 420px;
    padding: 10px 14px;
    border: 1px solid #abf5d1;
    border-radius: 4px;
    background: #e3fcef;
    color: #067647;
    box-shadow: 0 6px 18px rgb(9 30 66 / 20%);
    font-size: 13px;
    line-height: 1.35;
}

.g41k-message.is-visible {
    display: block;
}

.g41k-message.is-error {
    border-color: #fecdca;
    background: #fef3f2;
    color: #b42318;
}

.g41k-table-scroll {
    display: block;
    width: 100%;
    overflow: visible;
}

.g41k-table-scroll.is-compact {
    justify-content: initial;
}

.g41k-table {
    width: 100%;
    height: calc(100vh - 170px);
    min-height: 420px;
}

.g41k-app .tabulator {
    border: 1px solid #b8c2cc;
    font-size: 12px;
}

.g41k-app .tabulator .tabulator-header {
    background: #e9edf2;
    color: #344563;
    font-weight: 600;
}

.g41k-app .tabulator .tabulator-header .tabulator-col {
    min-height: 34px;
    background: #e9edf2;
}

.g41k-app .tabulator .tabulator-header .tabulator-col-content {
    padding: 4px 5px;
}

.g41k-app .tabulator .tabulator-header-filter {
    margin-top: 3px;
}

.g41k-app .tabulator .tabulator-header-filter input,
.g41k-filter-button {
    box-sizing: border-box;
    width: 100%;
    height: 28px;
    padding: 2px 6px;
    border: 1px solid #97a0af;
    border-radius: 2px;
    background: #fff;
    color: #172b4d;
    font: inherit;
    text-align: left;
}

.g41k-filter-button {
    cursor: pointer;
}

.g41k-app .tabulator-row {
    min-height: 28px;
}

.g41k-app .tabulator-row .tabulator-cell {
    min-height: 28px;
    padding: 5px 5px;
    line-height: 17px;
}

.g41k-app .tabulator-row.g41k-row-active,
.g41k-app .tabulator-row.g41k-row-active.tabulator-row-even {
    background: #e8f8e8;
}

.g41k-app .tabulator-row .tabulator-cell.g41k-cell-completion-warning {
    background: #ffd9d6 !important;
    color: #8a1c13;
    font-weight: 600;
}

.g41k-app .tabulator-row .tabulator-cell.g41k-cell-required-error {
    background: #ffd9d6 !important;
    color: #8a1c13 !important;
    font-weight: 600;
}

.g41k-app .tabulator-row .tabulator-cell.g41k-cell-required-error svg,
.g41k-app .tabulator-row .tabulator-cell.g41k-cell-required-error svg path {
    stroke: #8a1c13 !important;
}

.g41k-app .tabulator-row:hover {
    background: #eef4ff;
}

.g41k-filter-popup {
    position: fixed;
    z-index: 100000;
    min-width: 240px;
    max-width: 350px;
    max-height: 400px;
    overflow: auto;
    padding: 8px;
    border: 1px solid #7a869a;
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 4px 14px rgb(9 30 66 / 25%);
}

.g41k-filter-clear {
    width: 100%;
    margin: 0 0 6px;
    padding: 6px 8px;
    border: 1px solid #97a0af;
    background: #f4f5f7;
    cursor: pointer;
}

.g41k-filter-empty {
    padding: 8px;
    color: #6b778c;
}

.g41k-filter-option {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 4px;
    cursor: pointer;
}

.g41k-filter-option:hover,
.location-search-option:hover {
    background: #eef4ff;
}

.g41k-location-input {
    box-sizing: border-box;
    width: 100%;
}

.location-search-list {
    position: absolute;
    z-index: 99999;
    width: min(500px, calc(100vw - 20px));
    max-height: 250px;
    overflow: auto;
    border: 1px solid #97a0af;
    background: #fff;
    box-shadow: 0 4px 12px rgb(9 30 66 / 20%);
}

.location-search-option {
    padding: 6px 8px;
    cursor: pointer;
}

.location-search-option.is-oblast-center {
    font-weight: 700;
}

.g41k-app .tabulator .tabulator-col[tabulator-field="signal_sent"] .tabulator-col-title {
    display: flex;
    justify-content: center;
}

.g41k-signal-head {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0 auto;
    line-height: 1;
}

.g41k-signal-head img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.g41k-signal-checkbox {
    display: block;
    width: 16px;
    height: 16px;
    margin: 1px auto 0;
    cursor: pointer;
    accent-color: #2d7ff9;
}

.g41k-signal-dialog {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgb(9 30 66 / 45%);
}

.g41k-signal-dialog-box {
    width: min(760px, 100%);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 16px 48px rgb(9 30 66 / 32%);
}

.g41k-signal-dialog-box h3 {
    margin: 0;
    font-size: 18px;
}

.g41k-signal-dialog-box textarea {
    width: 100%;
    min-height: 360px;
    resize: vertical;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #97a0af;
    border-radius: 4px;
    font: 14px/1.45 Arial, sans-serif;
}

.g41k-signal-dialog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.g41k-signal-dialog-errors {
    color: #b42318;
    font-size: 12px;
}
.g41k-sticky-scroll {
    position: sticky;
    top: 0;
    z-index: 9999;
    height: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    background: #f4f5f7;
    border: 1px solid #c1c7d0;
    border-bottom: 0;
    display: none;
}

.g41k-sticky-scroll.is-visible {
    display: block;
}

.g41k-sticky-scroll-inner {
    height: 1px;
}

@media (max-width: 700px) {
    .g41k-toolbar,
    .g41k-controls {
        align-items: stretch;
    }

    .g41k-select,
    .g41k-button {
        min-width: 0;
        /*height: auto;*/
    }
}
