.griffinforms-settings-header {
    text-align: left;
    margin: 0 0 1rem;
    border-bottom: none;
}

.griffinforms-settings-tabs-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    margin-bottom: 0px;
    border-bottom: 1px solid #dcdcde;
}

.griffinforms-settings-title-section {
    display: flex;
    align-items: start;
    justify-content: start;
    clear: both;
    padding-top: 8px;
}

.griffinforms-settings-title-section h1 {
    display: inline-block;
    font-weight: 600;
    margin: 0 .8rem 1rem;
    font-size: 23px;
    padding: 9px 0 4px;
    line-height: 1.3;
}

.griffinforms-settings-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.85rem;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    flex: 0 0 auto;
    min-width: 80px;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    justify-content: center;
    text-decoration: none;
    color: #32373c;
    background: transparent;
    border: none;
    border-radius: 0;
    transition: color 0.2s ease;
}

.griffinforms-settings-tab:hover {
    color: #1d2327;
}

.griffinforms-settings-tab.active {
    box-shadow: none;
}

.griffinforms-settings-tabs {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.griffinforms-settings-tab-indicator {
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--wp-admin-theme-color, #3858e9);
    border-radius: 3px;
    opacity: 0;
    transform: translateX(0);
    transition: transform 0.2s ease, width 0.2s ease, opacity 0.2s ease;
}

.griffinforms-settings-tabs-overflow {
    position: relative;
    flex: 0 0 auto;
}

.griffinforms-settings-tabs-more {
    display: none;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.85rem;
    border: none;
    background: transparent;
    color: #32373c;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0;
}

.griffinforms-settings-tabs-wrapper.has-overflow .griffinforms-settings-tabs-more {
    display: inline-flex;
}

.griffinforms-settings-tabs-more:hover {
    color: #1d2327;
}

.griffinforms-settings-tabs-more:focus,
.griffinforms-settings-tabs-more:active {
    outline: none;
    box-shadow: none;
    background: transparent;
    border: none;
}

.griffinforms-settings-tabs-more:focus-visible {
    outline: 2px solid var(--wp-admin-theme-color, #3858e9);
    outline-offset: 2px;
}

.griffinforms-settings-tabs-more-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 180px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 6px 0;
    z-index: 10;
}

.griffinforms-settings-tabs-more-menu a {
    display: block;
    padding: 8px 14px;
    color: #1d2327;
    text-decoration: none;
    font-size: 13px;
}

.griffinforms-settings-tabs-more-menu a:hover,
.griffinforms-settings-tabs-more-menu a.active {
    background: #f6f7f7;
}

.griffinforms-settings-tab.is-overflow {
    display: none;
}

.griffinforms-settings-notice {
    border-width: 1px 1px 1px 5px;
    border-style: solid;
    border-color: #ccc;
    padding: 0.25rem 1rem;
    background-color: white;
    font-weight: 500;
    display: none;
}

.griffinforms-settings-notice-errors {
    border-left-color: #d63638;
}

.griffinforms-settings-notice-success {
    border-left-color: #23a012;
}

.gf-is-dismissible {
    position: relative;
    padding-right: 2em;
}
.gf-dismiss-notice {
    position: absolute;
    top: 0.5em;
    right: 0.5em;
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
}

.griffinforms-settings-error-formcontrol {
    border: 1px solid #d63638 !important;
}

.griffinforms-settings-option-history {
    padding: 0.25rem 0 0 0;
    font-size: 85%;
    display: inline-block;
    color: rgb(45, 45, 45);
}

.griffinforms-settings-option-history img {
    vertical-align: middle;
    border-radius: 100%;
    width: 15px;
    height: 15px;
    margin: 0 2px;
}

.griffinforms-settings-option-history code {
    font-size: 90%;
}

.griffinforms-settings-option-history .dashicons {
    font-size: 15px;
}

.griffinforms-settings-option-history .gf-settings-history-toggle {
    margin-left: 6px;
    font-size: 12px;
}

.griffinforms-settings-option-history .gf-settings-history-list {
    margin-top: 6px;
}

.griffinforms-settings-option-history .gf-settings-history-items {
    margin: 0;
    padding-left: 18px;
    font-size: 12px;
}

.griffinforms-settings-option-history .gf-settings-history-item {
    margin: 2px 0;
}

.form-table td fieldset label, .form-table td fieldset li, .form-table td fieldset p {
    font-size: 13px;
}

.griffinforms-settings-form-table td {
    padding-left: 0;
}

.griffinforms-hidden-option {
    display: none;
}

.gf-device-platform {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gf-device-user-head {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.gf-device-user-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    color: #1d2327;
}

.gf-device-user-subtitle {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.35;
    color: #667085;
}

.gf-device-platform-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 4px;
}

.gf-device-platform-label {
    line-height: 1.2;
}

.gf-device-id-code {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    font-size: 12px;
}

.griffinforms-settings-form-table .gf-device-admin-table {
    width: 100%;
    table-layout: fixed;
}

.griffinforms-settings-form-table .gf-device-admin-table td,
.griffinforms-settings-form-table .gf-device-admin-table th {
    vertical-align: middle;
}

.griffinforms-settings-form-table .gf-device-admin-table td:nth-child(6),
.griffinforms-settings-form-table .gf-device-admin-table th:nth-child(6) {
    white-space: nowrap;
}

.griffinforms-settings-form-table .gf-device-admin-table-wrap table th:first-child,
.griffinforms-settings-form-table .gf-device-admin-table-wrap table td:first-child {
    width: 38px;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.griffinforms-settings-form-table .gf-device-admin-table-wrap .gf-device-select-all,
.griffinforms-settings-form-table .gf-device-admin-table-wrap .gf-device-select {
    display: block;
    margin: 0 auto;
}

.gf-device-state-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    border: 1px solid transparent;
    white-space: nowrap;
}

.gf-device-state-active {
    background: #e7f6ec;
    color: #0a6b2f;
    border-color: #b8e0c6;
}

.gf-device-state-inactive {
    background: #f1f5f9;
    color: #334155;
    border-color: #d6dee7;
}

.gf-device-state-unregistered {
    background: #fff5e8;
    color: #8a4b00;
    border-color: #ffd7a8;
}

.gf-device-state-invalid {
    background: #fdecec;
    color: #a61b1b;
    border-color: #f6c0c0;
}

.gf-device-state-unknown {
    background: #f3f4f6;
    color: #4b5563;
    border-color: #d5d9df;
}
