.g41k-settings {
    color: #172b4d;
    font-size: 13px;
}

.g41k-settings-head {
    margin-bottom: 12px;
}

.g41k-settings-head h2 {
    margin: 0 0 4px;
}

.g41k-settings-head p {
    margin: 0;
    color: #5e6c84;
}

.g41k-settings-message {
    min-height: 0;
    margin-bottom: 8px;
    color: #067647;
}

.g41k-settings-message.is-error {
    color: #b42318;
}

.g41k-settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
    border-bottom: 1px solid #c1c7d0;
}

.g41k-settings-tabs button {
    padding: 8px 12px;
    border: 1px solid transparent;
    border-bottom: 0;
    background: transparent;
    color: #172b4d;
    cursor: pointer;
    font: inherit;
}

.g41k-settings-tabs button.is-active {
    border-color: #c1c7d0;
    border-radius: 4px 4px 0 0;
    background: #fff;
    font-weight: 600;
}

.g41k-settings-panel {
    display: none;
}

.g41k-settings-panel.is-active {
    display: block;
}

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

.g41k-settings-toolbar input,
.g41k-settings-toolbar select,
.g41k-settings-toolbar button {
    box-sizing: border-box;
    min-height: 34px;
    border: 1px solid #97a0af;
    border-radius: 3px;
    background: #fff;
    color: #172b4d;
    font: inherit;
}

.g41k-settings-toolbar input,
.g41k-settings-toolbar select {
    min-width: 190px;
    padding: 4px 8px;
}

.g41k-settings-toolbar button {
    padding: 4px 14px;
    cursor: pointer;
}

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

.g41k-settings-check {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 34px;
    min-width: 120px;
    padding: 4px 10px;
    border: 1px solid #97a0af;
    border-radius: 3px;
    background: #fff;
    color: #172b4d;
    font: inherit;
    cursor: pointer;
}

.g41k-settings-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.g41k-settings-feature {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #97a0af;
    border-radius: 3px;
    background: #fff;
    color: #172b4d;
    font-weight: 600;
}

.g41k-settings-feature input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.g41k-settings-toolbar .g41k-settings-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.g41k-settings-toolbar button.g41k-settings-primary {
    border-color: #0c66e4;
    background: #0c66e4;
    color: #fff;
    font-weight: 600;
}

.g41k-settings-toolbar button.g41k-settings-primary:hover {
    border-color: #0055cc;
    background: #0055cc;
}

.g41k-settings .tabulator {
    border: 1px solid #c1c7d0;
    font-size: 12px;
    max-width: 100%;
}

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

.g41k-settings .tabulator-row .tabulator-cell {
    padding: 5px 6px;
}

.g41k-settings .tabulator-footer {
    font-size: 12px;
}

.g41k-settings .tabulator-paginator label,
.g41k-settings .tabulator-page-size {
    margin-right: 6px;
}

.g41k-settings-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #1f5fbf;
    text-decoration: none;
}

.g41k-settings-link-icon:hover {
    color: #0b3d91;
}

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

    .g41k-settings-toolbar input,
    .g41k-settings-toolbar select,
    .g41k-settings-toolbar button,
    .g41k-settings-check {
        width: 100%;
        min-width: 0;
    }

    .g41k-settings-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
    }

    .g41k-settings-tabs button {
        white-space: nowrap;
    }
}
