/**
 * Servicedesk Styles
 * ==================
 * Primärfarbe: #321f01 (Dunkles Braun)
 */

:root {
    --sd-primary: #321f01;
    --sd-primary-hover: #4a3418;
    --sd-border: #e5e7eb;
    --sd-muted: #6b7280;
    --sd-surface: #f9fafb;
}

/* === Allgemein / Titel === */
.sd-ticket-single h1,
.sd-ticket-single h2,
.sd-ticket-single h3,
.sd-ticket-header h1,
.sd-ticket-details h3,
.sd-ticket-actions h3,
.sd-ticket-history h3,
.sd-reply-box h3,
.sd-internal-notes h3,
.sd-quick-edit summary,
.sd-ticket-list h2 {
    color: var(--sd-primary);
}

.sd-notice {
    padding: 15px 20px;
    background: var(--sd-surface);
    border: 1px solid var(--sd-border);
    border-radius: 6px;
}

.sd-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--sd-muted);
}

.sd-required {
    color: #b91c1c;
}

.sd-checkbox {
    font-weight: 400 !important;
    display: flex !important;
    align-items: center;
    gap: 8px;
}

/* === Badges === */
.sd-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.sd-badge-ticket {
    background: var(--sd-primary);
    color: #fff;
}

.sd-badge-post {
    background: #f0f0f1;
    color: #3c434a;
}

.sd-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    background: #f3f4f6;
    color: #374151;
}

/* === Status === */
.sd-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.sd-status-neu { background: #e0f2fe; color: #0369a1; }
.sd-status-in-bearbeitung { background: #fef3c7; color: #92400e; }
.sd-status-warten { background: #f3e8ff; color: #7c3aed; }
.sd-status-geloest { background: #dcfce7; color: #166534; }
.sd-status-geschlossen { background: #f3f4f6; color: #4b5563; }
.sd-status-archiviert { background: #e5e7eb; color: #6b7280; text-decoration: line-through; }

/* === Priorität === */
.sd-priority {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    background: #f3f4f6;
    color: #374151;
}

.sd-priority-niedrig { background: #dcfce7; color: #166534; }
.sd-priority-normal { background: #e0f2fe; color: #0369a1; }
.sd-priority-hoch { background: #fef3c7; color: #92400e; }
.sd-priority-kritisch { background: #fee2e2; color: #991b1b; font-weight: bold; }

.sd-date,
.sd-ticket-number {
    font-size: 12px;
    color: var(--sd-muted);
    align-self: center;
}

.sd-ticket-number {
    font-weight: 700;
    color: var(--sd-primary);
}

/* === Tabellen === */
.sd-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.sd-table th,
.sd-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--sd-border);
}

.sd-table th {
    background: var(--sd-surface);
    font-weight: 600;
    color: var(--sd-primary);
}

.sd-table tr:hover {
    background: var(--sd-surface);
}

.sd-pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.sd-pagination .page-numbers {
    padding: 6px 12px;
    border: 1px solid var(--sd-border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--sd-primary);
}

.sd-pagination .page-numbers.current {
    background: var(--sd-primary);
    color: #fff;
    border-color: var(--sd-primary);
}

/* === Ticket-Formular === */
.sd-ticket-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--sd-border);
    border-radius: 8px;
}

/* Mit Page Builder braucht das Formular mehr Platz. */
.sd-ticket-form-wrapper.sd-has-builder {
    max-width: 980px;
}

.sd-ticket-form-wrapper h2 {
    color: var(--sd-primary);
    margin-top: 0;
}

.sd-form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
}

.sd-form-message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.sd-form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* === Einzelnes Ticket === */
.sd-ticket-single {
    max-width: 980px;
    margin: 0 auto;
}

.sd-ticket-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--sd-border);
}

.sd-ticket-meta {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.sd-ticket-content {
    margin-bottom: 30px;
    line-height: 1.7;
    color: var(--sd-primary);
}

.sd-ticket-details,
.sd-ticket-actions,
.sd-ticket-history,
.sd-reply-box {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--sd-surface);
    border-radius: 8px;
}

.sd-ticket-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sd-ticket-details li {
    padding: 5px 0;
    border-bottom: 1px solid var(--sd-border);
    color: var(--sd-primary);
}

.sd-internal-notes {
    margin-bottom: 30px;
    padding: 16px 20px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
}

.sd-internal-notes h3 {
    margin-top: 0;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* === Verlauf & Konversation === */
.sd-ticket-history ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sd-history-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--sd-border);
}

.sd-history-item:last-child {
    border-bottom: none;
}

.sd-history-head {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.sd-history-type {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 2px 8px;
    border-radius: 3px;
    background: #e5e7eb;
    color: #4b5563;
}

.sd-history-reply .sd-history-type {
    background: #e0f2fe;
    color: #0369a1;
}

.sd-history-note .sd-history-type {
    background: #fef3c7;
    color: #92400e;
}

.sd-history-note {
    background: #fffbeb;
    border-radius: 6px;
    padding: 12px;
}

.sd-history-author {
    font-weight: 600;
    font-size: 13px;
    color: var(--sd-primary);
}

.sd-history-date {
    font-size: 12px;
    color: var(--sd-muted);
}

.sd-history-body {
    line-height: 1.6;
}

/* === Buttons === */
.sd-btn-primary,
.sd-ticket-actions button,
.sd-filter-form button[type="submit"] {
    display: inline-block;
    padding: 10px 24px;
    background: var(--sd-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    text-decoration: none;
}

.sd-btn-primary:hover,
.sd-ticket-actions button:hover,
.sd-filter-form button[type="submit"]:hover {
    background: var(--sd-primary-hover);
    color: #fff;
}

.sd-btn-primary[disabled] {
    opacity: .6;
    cursor: not-allowed;
}

.sd-btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background: #f3f4f6;
    color: var(--sd-primary);
    border: 1px solid #d1d5db;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s;
}

.sd-btn-secondary:hover {
    background: #e5e7eb;
}

/* === Schnellbearbeitung === */
.sd-quick-edit {
    margin-bottom: 30px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.sd-quick-edit summary {
    padding: 14px 20px;
    font-weight: 600;
    cursor: pointer;
    background: #f0f0f1;
    list-style: none;
    user-select: none;
    color: var(--sd-primary);
}

.sd-quick-edit summary::-webkit-details-marker {
    display: none;
}

.sd-quick-edit-inner {
    padding: 25px;
}

/* === Formularzeilen === */
.sd-form-row {
    margin-bottom: 18px;
}

.sd-form-row > label,
.sd-ticket-form-wrapper label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--sd-primary);
}

.sd-form-row input[type="text"],
.sd-form-row input[type="email"],
.sd-form-row input[type="date"],
.sd-form-row select,
.sd-form-row textarea,
.sd-ticket-form-wrapper input[type="text"],
.sd-ticket-form-wrapper input[type="email"],
.sd-ticket-form-wrapper select,
.sd-ticket-form-wrapper textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
}

.sd-form-row textarea,
.sd-plain-editor {
    resize: vertical;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
}

.sd-form-row-half {
    display: flex;
    gap: 20px;
}

.sd-form-row-half > div {
    flex: 1;
}

/* === Meldungen === */
.sd-alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 500;
}

.sd-alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.sd-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.sd-ticket-locked {
    margin: 20px 0;
    padding: 15px 20px;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 6px;
}

.sd-ticket-locked .dashicons {
    vertical-align: middle;
}

/* === Frontend-Filter === */
.sd-filter-form {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--sd-surface);
    border: 1px solid var(--sd-border);
    border-radius: 8px;
}

.sd-filter-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.sd-filter-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sd-filter-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--sd-primary);
}

.sd-filter-field select {
    min-width: 180px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    color: var(--sd-primary);
}

.sd-filter-buttons {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.sd-no-results {
    padding: 30px;
    text-align: center;
    color: var(--sd-muted);
    background: var(--sd-surface);
    border-radius: 8px;
}

/* =========================================================
   FRONTEND PAGE BUILDER
   ========================================================= */

/* Editor an die Servicedesk-Farben anpassen. */
.sd-ticket-single .fpb-app,
.sd-ticket-form-wrapper .fpb-app {
    --fpb-accent: #321f01;
    --fpb-accent-soft: rgba(50, 31, 1, .12);
}

.sd-ticket-single .fpb-field-wrap,
.sd-ticket-form-wrapper .fpb-field-wrap {
    margin-bottom: 6px;
}

/*
 * Lesemodus: Der Builder liefert sein Widget-CSS nur mit, wenn ein Editor auf
 * der Seite steht. Für die reine Anzeige gespeicherter Inhalte werden die
 * benötigten Klassen hier nachgebildet – und die Editor-Bedienelemente
 * (Toolbar, Löschen-/Hinzufügen-Buttons, Hover-Rahmen) ausgeblendet.
 */
.sd-fpb-content .fpb-widget {
    position: relative;
    padding: 8px 0;
    outline: none !important;
    cursor: default;
}

.sd-fpb-content .fpb-widget-toolbar,
.sd-fpb-content .fpb-w-group-del,
.sd-fpb-content .fpb-w-group-add,
.sd-fpb-content .fpb-empty-hint {
    display: none !important;
}

.sd-fpb-content .fpb-w-heading {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.sd-fpb-content .fpb-w-text {
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

.sd-fpb-content .fpb-w-button {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 4px;
    background: var(--sd-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.sd-fpb-content .fpb-w-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.sd-fpb-content .fpb-w-divider {
    border: none;
    border-top: 2px solid #dfe2e6;
}

.sd-fpb-content .fpb-w-icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    text-align: center;
}

.sd-fpb-content .fpb-w-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(50, 31, 1, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sd-primary);
}

.sd-fpb-content .fpb-w-icon-circle svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.sd-fpb-content .fpb-w-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.sd-fpb-content .fpb-w-list {
    margin: 0;
    padding-left: 22px;
    font-size: 15px;
    line-height: 1.7;
}

.sd-fpb-content .fpb-w-grouplist {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sd-fpb-content .fpb-w-group-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.sd-fpb-content .fpb-w-group-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(50, 31, 1, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sd-primary);
}

.sd-fpb-content .fpb-w-group-icon svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
}

.sd-fpb-content .fpb-w-group-title {
    font-size: 14.5px;
    font-weight: 700;
    margin: 0 0 2px;
}

.sd-fpb-content .fpb-w-group-text {
    font-size: 13.5px;
    line-height: 1.55;
    color: #5b5f66;
}

.sd-fpb-content .fpb-w-yesno {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 700;
}

.sd-fpb-content .fpb-w-yesno[data-value="ja"] { background: #e3f6e8; color: #1e7d3a; }
.sd-fpb-content .fpb-w-yesno[data-value="nein"] { background: #fbe6e7; color: #c62839; }

/* =========================================================
   ADMIN
   ========================================================= */

.column-sd_status,
.column-sd_priority,
.column-sd_assigned,
.column-sd_ticket {
    width: 120px;
}

.sd-admin-filter {
    margin: 15px 0;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.sd-inline-form {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    margin-right: 8px;
}

.sd-inline-form select {
    max-width: 130px;
}

.sd-admin .sd-tab-content {
    margin-top: 20px;
}

/* === Mobile === */
@media (max-width: 600px) {
    .sd-form-row-half {
        flex-direction: column;
        gap: 0;
    }
    .sd-filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    .sd-filter-field select {
        width: 100%;
    }
    .sd-filter-buttons {
        margin-left: 0;
        width: 100%;
    }
    .sd-filter-buttons .sd-btn-primary,
    .sd-filter-buttons .sd-btn-secondary {
        flex: 1;
        text-align: center;
    }
    .sd-fpb-content .fpb-w-columns {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   ANHÄNGE
   ========================================================= */

.sd-ticket-attachments {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--sd-surface);
    border-radius: 8px;
}

.sd-ticket-attachments h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sd-attachments {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sd-attachment {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid var(--sd-border);
    border-radius: 4px;
}

.sd-attachment > a {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: var(--sd-primary);
}

.sd-attachment > a:hover .sd-attachment-name {
    text-decoration: underline;
}

.sd-attachment .dashicons {
    flex: 0 0 auto;
    color: var(--sd-muted);
}

.sd-attachment-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.sd-attachment-size {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--sd-muted);
}

.sd-attachment-del {
    flex: 0 0 auto;
    border: none;
    background: transparent;
    color: #c1c5cb;
    cursor: pointer;
    padding: 2px;
    line-height: 1;
    border-radius: 3px;
}

.sd-attachment-del:hover {
    color: #b91c1c;
    background: #fee2e2;
}

.sd-history-body .sd-attachments {
    margin-top: 10px;
    margin-bottom: 0;
}

.sd-upload-row input[type="file"] {
    display: block;
    width: 100%;
    padding: 10px;
    border: 1px dashed #c9cdd3;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
    box-sizing: border-box;
    cursor: pointer;
}

.sd-upload-row input[type="file"]:hover {
    border-color: var(--sd-primary);
}

.sd-upload-error {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #991b1b;
}

.sd-alert-list {
    margin: 6px 0 0;
    padding-left: 20px;
}

.sd-alert-list li {
    margin-bottom: 3px;
}

/* =========================================================
   SPAM-SCHUTZ
   ========================================================= */

/* Honeypot: für Menschen unsichtbar, für Bots ein Pflichtfeld. */
.sd-hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* =========================================================
   FRONTEND-VERWALTUNG [sd_admin]
   ========================================================= */

.sd-admin-app {
    max-width: 1000px;
    margin: 0 auto;
}

.sd-admin-head {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--sd-border);
}

.sd-admin-head h2 {
    margin: 0 0 4px;
    color: var(--sd-primary);
}

.sd-admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--sd-border);
}

.sd-admin-tab {
    padding: 10px 16px;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    background: transparent;
    color: var(--sd-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: -1px;
}

.sd-admin-tab:hover {
    color: var(--sd-primary);
    background: var(--sd-surface);
}

.sd-admin-tab.is-active {
    background: #fff;
    color: var(--sd-primary);
    border-color: var(--sd-border);
    border-bottom: 1px solid #fff;
}

.sd-admin-panel {
    display: none;
}

.sd-admin-panel.is-active {
    display: block;
}

.sd-admin-panel > h3 {
    margin-top: 0;
}

.sd-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
    margin-bottom: 20px;
}

.sd-admin-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--sd-primary);
}

.sd-admin-field input[type="text"],
.sd-admin-field input[type="email"],
.sd-admin-field input[type="password"],
.sd-admin-field input[type="number"],
.sd-admin-field select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
}

.sd-admin-field .sd-input-small {
    max-width: 140px;
}

.sd-admin-toggle {
    display: flex !important;
    align-items: flex-start;
    gap: 9px;
    font-weight: 600;
    cursor: pointer;
}

.sd-admin-toggle input {
    margin-top: 3px;
    flex: 0 0 auto;
}

.sd-admin-field.is-disabled {
    opacity: .55;
}

.sd-admin-actions {
    padding-top: 5px;
}

.sd-admin-subactions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.sd-admin-note {
    margin-top: 20px;
    padding: 14px 18px;
    background: var(--sd-surface);
    border-left: 3px solid var(--sd-primary);
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    line-height: 1.6;
}

.sd-admin-note p:last-child {
    margin-bottom: 0;
}

.sd-admin-search {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.sd-admin-search input {
    flex: 1;
    max-width: 340px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

/* Status- und Kategorieverwaltung */
.sd-admin-termblock {
    margin-bottom: 30px;
    padding: 18px 20px;
    background: var(--sd-surface);
    border-radius: 8px;
}

.sd-admin-termblock h4 {
    margin: 0 0 12px;
    color: var(--sd-primary);
}

.sd-term-list {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
}

.sd-term-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid var(--sd-border);
    border-radius: 4px;
    margin-bottom: 6px;
}

.sd-term-name {
    font-weight: 600;
    color: var(--sd-primary);
}

.sd-term-count {
    margin-left: auto;
    font-size: 12px;
    color: var(--sd-muted);
}

.sd-term-locked .dashicons {
    color: #c1c5cb;
}

.sd-term-add {
    display: flex;
    gap: 8px;
}

.sd-term-add input {
    flex: 1;
    max-width: 300px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

/* Diagnose */
.sd-diagnostics {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sd-diagnostics li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border: 1px solid var(--sd-border);
    border-radius: 6px;
    margin-bottom: 8px;
    background: #fff;
}

.sd-diagnostics li > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sd-diagnostics li span:last-child {
    font-size: 13.5px;
    color: var(--sd-muted);
}

.sd-diagnostics .is-ok .dashicons {
    color: #1e7d3a;
}

.sd-diagnostics .is-warn .dashicons {
    color: #b45309;
}

.sd-diagnostics li.is-warn {
    background: #fffbeb;
    border-color: #fde68a;
}

@media (max-width: 782px) {
    .sd-admin-grid {
        grid-template-columns: 1fr;
    }
    .sd-admin-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    .sd-admin-tab {
        white-space: nowrap;
    }
}
