/* ==========================================================================
   Helpdesk KB - Estilos Modernizados
   ========================================================================== */

.helpdeskkb-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, .8fr) auto auto;
    gap: 16px;
    align-items: end;
    margin: 0;
}

.helpdeskkb-toolbar .helpdeskkb-field {
    min-width: 0;
}

.helpdeskkb-toolbar .helpdeskkb-field-sort {
    min-width: 170px;
}

.helpdeskkb-toolbar label {
    display: block;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.helpdeskkb-toolbar input.inputbox, 
.helpdeskkb-toolbar select {
    width: 100%;
    box-sizing: border-box;
    min-height: 42px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    padding: 8px 12px;
    background-color: #ffffff;
    color: #334155;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.helpdeskkb-toolbar input.inputbox:focus, 
.helpdeskkb-toolbar select:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.helpdeskkb-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.helpdeskkb-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    color: #64748b;
}

.helpdeskkb-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 16px 0 0 0;
}

.helpdeskkb-active-filters-label {
    font-weight: 600;
    color: #475569;
}

.helpdeskkb-filter-chip {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    font-size: 0.9em;
    color: #334155;
    transition: all 0.2s ease;
}

.helpdeskkb-filter-chip:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.helpdeskkb-filter-chip a {
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
    color: #64748b;
    transition: color 0.2s ease;
}

.helpdeskkb-filter-chip a:hover {
    color: #ef4444;
}

.helpdeskkb-inline-search {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.helpdeskkb-inline-search-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.helpdeskkb-inline-search-row label {
    display: block;
    font-weight: 600;
    min-width: 220px;
    color: #475569;
}

.helpdeskkb-inline-search-row input.inputbox {
    flex: 1 1 320px;
    min-width: 220px;
}

.helpdeskkb-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.85em;
    font-weight: 500;
    border: 1px solid #bfdbfe;
}

.helpdeskkb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.helpdeskkb-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.helpdeskkb-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

.helpdeskkb-card h3, .helpdeskkb-card h4 {
    margin-top: 0;
    color: #1e293b;
    font-weight: 600;
}

.helpdeskkb-card p:last-child {
    margin-bottom: 0;
}

.helpdeskkb-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 16px 0;
}

.helpdeskkb-meta .helpdeskkb-pill {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
}

.helpdeskkb-articles {
    margin-top: 12px;
}

.helpdeskkb-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.helpdeskkb-link-list-wide {
    gap: 14px;
}

.helpdeskkb-link-list li {
    margin: 0;
    padding: 0;
}

.helpdeskkb-link-list .helpdeskkb-article-item-title {
    font-size: 1.05em;
    font-weight: 600;
    display: block;
    padding: 8px 0;
    text-decoration: none;
    line-height: 1.5;
    color: #2563eb;
    transition: color 0.2s ease;
}

.helpdeskkb-link-list .helpdeskkb-article-item-title:hover {
    color: #1d4ed8;
    text-decoration: none;
}

.helpdeskkb-link-list-compact {
    gap: 0;
}

.helpdeskkb-link-list-compact li {
    border-top: 1px solid #f1f5f9;
}

.helpdeskkb-link-list-compact li:first-child {
    border-top: 0;
}

.helpdeskkb-link-list-side li {
    border-top: 1px solid #f1f5f9;
    padding: 12px 0;
}

.helpdeskkb-link-list-side li:first-child {
    border-top: 0;
    padding-top: 0;
}

.helpdeskkb-link-list-category {
    gap: 0;
}

.helpdeskkb-link-list-category .helpdeskkb-list-row {
    border-top: 1px solid #f1f5f9;
    padding: 16px 0;
    transition: background-color 0.2s ease;
}

.helpdeskkb-link-list-category .helpdeskkb-list-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.helpdeskkb-category-listing {
    gap: 0;
}

.helpdeskkb-category-list-row {
    padding: 20px 0;
}

.helpdeskkb-category-summary {
    margin: 8px 0 0 0;
    line-height: 1.6;
    font-size: 0.95em;
    color: #475569;
}

.helpdeskkb-list-meta {
    display: block;
    font-size: 0.85em;
    color: #94a3b8;
    margin-top: 6px;
}

.helpdeskkb-article-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
    flex-wrap: wrap;
}

.helpdeskkb-muted {
    color: #64748b;
}

.helpdeskkb-empty {
    padding: 32px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    text-align: center;
    color: #64748b;
}

.helpdeskkb-empty-inline {
    padding: 16px;
    margin-top: 12px;
    border-width: 1px;
}

.helpdeskkb-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 12px 0 8px;
}

.helpdeskkb-hero-classic {
    align-items: flex-end;
}

.helpdeskkb-hero-text {
    flex: 1 1 420px;
}

.helpdeskkb-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.helpdeskkb-content {
    line-height: 1.8;
    font-size: 1.05em;
    color: #334155;
}

.helpdeskkb-content h2, .helpdeskkb-content h3 {
    margin-top: 1.5em;
    color: #0f172a;
}

.helpdeskkb-vote {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.helpdeskkb-vote-feedback {
    margin-top: 12px;
    color: #16a34a;
    font-weight: 500;
}

.helpdeskkb-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #64748b;
}

.helpdeskkb-breadcrumb-sep {
    color: #cbd5e1;
}

.helpdeskkb-kicker {
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3b82f6;
    margin: 0 0 8px 0;
}

.helpdeskkb-article-lead {
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 920px;
    color: #475569;
}

.panel .helpdeskkb-article-lead, .panel p.helpdeskkb-article-lead {
    font-size: 1.1em;
    line-height: 1.6;
    font-weight: 400;
    margin: 8px 0 0 0;
}

.helpdeskkb-content-card {
    padding: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
}

.helpdeskkb-grid-two {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.helpdeskkb-nav-card {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.helpdeskkb-section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.helpdeskkb-section-panel {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.helpdeskkb-section-panel .inner {
    padding: 20px;
}

.helpdeskkb-section-title {
    margin: 0;
    line-height: 1.3;
    color: #0f172a;
}

.helpdeskkb-stack {
    display: grid;
    gap: 16px;
}

.helpdeskkb-home-layout, .helpdeskkb-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.62fr) minmax(270px, .92fr);
    gap: 24px;
}

.helpdeskkb-home-main, .helpdeskkb-home-side, 
.helpdeskkb-two-col-main, .helpdeskkb-two-col-side {
    min-width: 0;
}

.helpdeskkb-home-side, .helpdeskkb-two-col-side {
    display: grid;
    gap: 20px;
    align-content: start;
    align-self: start;
}

.helpdeskkb-category-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.68fr) minmax(270px, .86fr);
    gap: 24px;
}

.helpdeskkb-category-main, .helpdeskkb-category-side {
    min-width: 0;
}

.helpdeskkb-category-side {
    display: grid;
    gap: 20px;
    align-content: start;
    align-self: start;
}

.helpdeskkb-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(270px, .82fr);
    gap: 24px;
    margin-top: 20px;
}

.helpdeskkb-article-main, .helpdeskkb-article-side {
    min-width: 0;
}

.helpdeskkb-article-side {
    display: grid;
    gap: 20px;
    align-content: start;
    align-self: start;
}

.helpdeskkb-meta-article-top {
    margin-top: 0;
}

.helpdeskkb-vote-side {
    flex-direction: column;
    align-items: stretch;
}

.helpdeskkb-vote-side .button1, .helpdeskkb-vote-side .button2 {
    width: 100%;
}

.helpdeskkb-vote-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1em;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background-color: #fff;
    color: #475569;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    outline: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.helpdeskkb-vote-icon {
    font-size: 1.2em;
    line-height: 1;
}

.helpdeskkb-vote-count {
    font-weight: 700;
    line-height: 1;
}

.helpdeskkb-vote-button:hover {
    transform: translateY(-2px);
    background-color: #f8fafc;
    border-color: #94a3b8;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.helpdeskkb-vote-button:focus, .helpdeskkb-vote-button:active {
    outline: none;
    transform: translateY(0);
}

.helpdeskkb-vote-button:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.helpdeskkb-vote-button-yes.button1 {
    color: #16a34a;
    border-color: #bbf7d0;
    background-color: #f0fdf4;
}

.helpdeskkb-vote-button-yes.button1:hover {
    background-color: #dcfce7;
    border-color: #86efac;
}

.helpdeskkb-vote-button-no.button2 {
    color: #dc2626;
    border-color: #fecaca;
    background-color: #fef2f2;
}

.helpdeskkb-vote-button-no.button2:hover {
    background-color: #fee2e2;
    border-color: #fca5a5;
}

.helpdeskkb-side-panel .helpdeskkb-section-title {
    font-size: 1.1em;
    color: #1e293b;
}

.helpdeskkb-side-panel .helpdeskkb-muted {
    margin: 6px 0 0 0;
}

.helpdeskkb-side-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.helpdeskkb-side-actions .button1, .helpdeskkb-side-actions .button2 {
    margin: 0;
}

.helpdeskkb-side-panel .helpdeskkb-article-item-title {
    padding: 0;
}

.helpdeskkb-side-panel .helpdeskkb-kicker {
    margin-bottom: 6px;
}

.helpdeskkb-side-list li {
    border-top: 1px solid #f1f5f9;
    padding: 10px 0;
}

.helpdeskkb-side-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.helpdeskkb-side-stat {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #f1f5f9;
    color: #475569;
}

.helpdeskkb-side-stat:first-child {
    border-top: 0;
    padding-top: 0;
}

.helpdeskkb-side-search .helpdeskkb-inline-search {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.helpdeskkb-side-search .helpdeskkb-inline-search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: end;
}

.helpdeskkb-side-search .helpdeskkb-inline-search-row label {
    min-width: 0;
}

.helpdeskkb-side-search .helpdeskkb-inline-search-row input.inputbox {
    min-width: 0;
    width: 100%;
}

.helpdeskkb-side-stats {
    display: grid;
    gap: 0;
}

.helpdeskkb-active-filters-side {
    margin: 0;
}

.helpdeskkb-active-filters-side .helpdeskkb-filter-chip {
    background: #fff;
}

.helpdeskkb-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.helpdeskkb-featured-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
}

.helpdeskkb-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

.helpdeskkb-featured-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.helpdeskkb-featured-head h4 {
    margin: 0;
    flex: 1 1 auto;
    color: #1e293b;
}

.helpdeskkb-featured-article {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.helpdeskkb-category-lead {
    margin: 12px 0 16px 0;
    padding: 18px 20px;
    border: 1px solid #e0e7ff;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
}

.helpdeskkb-category-lead-title {
    display: block;
    font-size: 1.15em;
    font-weight: 700;
    margin: 4px 0 8px 0;
    text-decoration: none;
    color: #1e40af;
}

.helpdeskkb-category-lead-title:hover {
    text-decoration: underline;
}

.helpdeskkb-home-badge, .helpdeskkb-inline-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e0e7ff;
    color: #3730a3;
    font-size: 0.85em;
    font-weight: 600;
}

.helpdeskkb-inline-badge {
    margin-left: 10px;
    font-weight: 500;
    background: #f1f5f9;
    color: #475569;
}

.helpdeskkb-category-directory {
    display: grid;
    gap: 20px;
}

.helpdeskkb-home-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.helpdeskkb-home-directory-grid .helpdeskkb-category-row {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.helpdeskkb-home-directory-grid .helpdeskkb-category-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.helpdeskkb-home-directory-grid .helpdeskkb-row-link {
    margin-top: auto;
    padding-top: 14px;
}

.helpdeskkb-category-row {
    padding: 0 0 18px 0;
    border-bottom: 1px solid #f1f5f9;
}

.helpdeskkb-category-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.helpdeskkb-category-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.helpdeskkb-category-title-wrap {
    flex: 1 1 420px;
    min-width: 0;
}

.helpdeskkb-category-title-wrap h4 {
    margin: 0 0 6px 0;
    color: #0f172a;
}

.helpdeskkb-category-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: #64748b;
}

.helpdeskkb-row-link {
    margin-top: 10px;
    font-size: 0.95em;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s ease;
}

.helpdeskkb-row-link:hover {
    color: #1d4ed8;
}

.helpdeskkb-search-results {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
}

.helpdeskkb-search-result-item {
    padding: 20px 0;
    border-top: 1px solid #f1f5f9;
}

.helpdeskkb-search-result-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.helpdeskkb-search-snippet {
    margin: 8px 0 0 0;
    line-height: 1.6;
    font-size: 0.95em;
    color: #475569;
}

.helpdeskkb-hit {
    background: #fef08a;
    color: #854d0e;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 500;
}

.helpdeskkb-search-context {
    margin: 10px 0 0 0;
    font-size: 0.9em;
    color: #94a3b8;
}

.helpdeskkb-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.helpdeskkb-pagination-pages {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.helpdeskkb-page-link, .helpdeskkb-page-current {
    display: inline-flex;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    font-weight: 500;
    transition: all 0.2s ease;
}

.helpdeskkb-page-link:hover {
    text-decoration: none;
    background: #f1f5f9;
    border-color: #94a3b8;
}

.helpdeskkb-page-current {
    font-weight: 700;
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
}

.helpdeskkb-page-ellipsis {
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    color: #94a3b8;
}

.helpdeskkb-sort-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.helpdeskkb-sort-form label {
    font-weight: 600;
    color: #475569;
}

.helpdeskkb-sort-form select {
    min-width: 180px;
}

.helpdeskkb-keyword-box {
    margin: 16px 0 0 0;
    padding: 16px;
    border: 1px solid #e0e7ff;
    border-radius: 12px;
    background: #f8fafc;
}

.helpdeskkb-keyword-box strong {
    display: block;
    margin-bottom: 10px;
    color: #1e293b;
}

.helpdeskkb-keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.helpdeskkb-keyword-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.helpdeskkb-keyword-chip:hover {
    text-decoration: none;
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.helpdeskkb-no-results-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0 20px;
}

.helpdeskkb-no-results-tips {
    margin: 20px 0;
}

.helpdeskkb-no-results-tips h4, .helpdeskkb-no-results-col h4 {
    margin: 0 0 10px;
    color: #1e293b;
}

.helpdeskkb-no-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.helpdeskkb-no-results-col {
    background: #f8fafc;
    border-radius: 12px;
    padding: 18px;
    border: 1px solid #e2e8f0;
}

@media (min-width: 901px) {
    .helpdeskkb-home-side, .helpdeskkb-two-col-side, .helpdeskkb-category-side, .helpdeskkb-article-side {
        position: sticky;
        top: 20px;
    }
}

@media (max-width: 1100px) {
    .helpdeskkb-toolbar {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
    .helpdeskkb-actions {
        grid-column: 1 / -1;
    }
    .helpdeskkb-toolbar .helpdeskkb-field-sort {
        min-width: 0;
    }
}

@media (max-width: 900px) {
    .helpdeskkb-home-layout, .helpdeskkb-two-col, .helpdeskkb-category-layout, .helpdeskkb-article-layout, .helpdeskkb-home-directory-grid {
        grid-template-columns: 1fr;
    }
    .helpdeskkb-home-side, .helpdeskkb-two-col-side, .helpdeskkb-category-side, .helpdeskkb-article-side {
        position: static;
    }
    .helpdeskkb-toolbar {
        grid-template-columns: 1fr;
    }
    .helpdeskkb-home-directory-grid .helpdeskkb-category-row {
        padding: 16px;
    }
}

.helpdeskkb-posting-panel {
    margin-top: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.helpdeskkb-posting-panel h4 {
    margin: 0 0 8px 0;
    color: #0f172a;
}

.helpdeskkb-posting-panel p {
    margin: 0 0 12px 0;
    color: #475569;
}

.helpdeskkb-posting-list {
    display: grid;
    gap: 12px;
}

.helpdeskkb-posting-item {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 14px;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

.helpdeskkb-posting-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.helpdeskkb-posting-item-title {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1e293b;
}

.helpdeskkb-posting-item-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 10px;
}

.helpdeskkb-posting-status {
    font-size: 0.9em;
    color: #64748b;
    font-weight: 500;
}

.helpdeskkb-summary-text {
    margin: 8px 0 0 0;
    line-height: 1.6;
    font-size: 0.95em;
    color: #475569;
}

.panel .helpdeskkb-summary-text, .panel p.helpdeskkb-summary-text {
    font-size: 0.95em;
    line-height: 1.6;
    font-weight: 400;
    margin: 8px 0 0 0;
}

.helpdeskkb-vote-button {
    -webkit-tap-highlight-color: transparent;
    appearance: none;
}

.helpdeskkb-vote-button::-moz-focus-inner {
    border: 0;
    padding: 0;
}

/* ========================================================================
   Flatboots visual layer for Help Desk KB pages
   ======================================================================== */
.helpdeskkb-flatboots-page {
    --kb-fb-surface: #ffffff;
    --kb-fb-border: #dce6f2;
    --kb-fb-text: #304055;
    --kb-fb-muted: #6b7c93;
    --kb-fb-accent: #3f6ea5;
    --kb-fb-accent-strong: #244568;
    --kb-fb-shadow: 0 10px 28px rgba(31, 56, 88, 0.07);
}

.helpdeskkb-flatboots-page .panel,
.helpdeskkb-flatboots-page .helpdeskkb-card,
.helpdeskkb-flatboots-page .helpdeskkb-section-panel,
.helpdeskkb-flatboots-page .helpdeskkb-side-panel,
.helpdeskkb-flatboots-page .helpdeskkb-content-card,
.helpdeskkb-flatboots-page .helpdeskkb-posting-panel,
.helpdeskkb-flatboots-page .helpdeskkb-no-results-col {
    background: var(--kb-fb-surface);
    border: 1px solid var(--kb-fb-border);
    border-radius: 16px;
    box-shadow: var(--kb-fb-shadow);
}

.helpdeskkb-flatboots-page .panel .inner {
    padding: 20px;
}

.helpdeskkb-flatboots-page .helpdeskkb-kicker,
.helpdeskkb-flatboots-page .helpdeskkb-muted,
.helpdeskkb-flatboots-page .helpdeskkb-list-meta,
.helpdeskkb-flatboots-page .helpdeskkb-summary-text,
.helpdeskkb-flatboots-page .helpdeskkb-search-snippet,
.helpdeskkb-flatboots-page .helpdeskkb-category-summary {
    color: var(--kb-fb-muted);
}

.helpdeskkb-flatboots-page .helpdeskkb-breadcrumbs {
    margin-bottom: 18px;
    color: var(--kb-fb-muted);
}

.helpdeskkb-flatboots-page .helpdeskkb-breadcrumbs a,
.helpdeskkb-flatboots-page .helpdeskkb-article-item-title,
.helpdeskkb-flatboots-page .helpdeskkb-row-link,
.helpdeskkb-flatboots-page .helpdeskkb-page-link {
    color: var(--kb-fb-accent-strong);
}

.helpdeskkb-flatboots-page .helpdeskkb-hero {
    padding: 4px 0 8px;
}

.helpdeskkb-flatboots-page .helpdeskkb-hero-text h2,
.helpdeskkb-flatboots-page .helpdeskkb-section-title,
.helpdeskkb-flatboots-page .helpdeskkb-card h3,
.helpdeskkb-flatboots-page .helpdeskkb-card h4,
.helpdeskkb-flatboots-page .helpdeskkb-article-item-title {
    color: #213247;
}

.helpdeskkb-flatboots-page .helpdeskkb-toolbar,
.helpdeskkb-flatboots-page .helpdeskkb-inline-search-row {
    gap: 14px;
}

.helpdeskkb-flatboots-page input.inputbox,
.helpdeskkb-flatboots-page select {
    border-radius: 12px;
    border: 1px solid #c8d6e7;
    min-height: 42px;
    box-shadow: inset 0 1px 2px rgba(31, 56, 88, 0.03);
}

.helpdeskkb-flatboots-page input.inputbox:focus,
.helpdeskkb-flatboots-page select:focus {
    border-color: #8eb1d9;
    box-shadow: 0 0 0 3px rgba(98, 143, 197, 0.14);
}

.helpdeskkb-flatboots-page .button1,
.helpdeskkb-flatboots-page .button2,
.helpdeskkb-flatboots-page a.button1,
.helpdeskkb-flatboots-page a.button2 {
    border-radius: 999px;
    border: 1px solid #c6d8ea;
    min-height: 38px;
    padding: 8px 14px;
    background: linear-gradient(180deg, #ffffff 0%, #edf4fb 100%);
    color: var(--kb-fb-accent-strong);
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(36, 69, 104, 0.06);
}

.helpdeskkb-flatboots-page .button1,
.helpdeskkb-flatboots-page .helpdeskkb-vote-button-yes {
    background: linear-gradient(180deg, #5c88bc 0%, #476f9e 100%);
    border-color: #40668f;
    color: #fff;
}

.helpdeskkb-flatboots-page .helpdeskkb-filter-chip,
.helpdeskkb-flatboots-page .helpdeskkb-pill,
.helpdeskkb-flatboots-page .helpdeskkb-inline-badge,
.helpdeskkb-flatboots-page .helpdeskkb-home-badge,
.helpdeskkb-flatboots-page .helpdeskkb-keyword-chip {
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}

.helpdeskkb-flatboots-page .helpdeskkb-keyword-chip {
    background: #eef4fb;
    color: #2c537c;
    border: 1px solid #d3e1f0;
}

.helpdeskkb-flatboots-page .helpdeskkb-keyword-chip:hover {
    background: #e2edf9;
    text-decoration: none;
}

.helpdeskkb-flatboots-page .helpdeskkb-featured-card,
.helpdeskkb-flatboots-page .helpdeskkb-category-row,
.helpdeskkb-flatboots-page .helpdeskkb-search-result-item,
.helpdeskkb-flatboots-page .helpdeskkb-category-list-row {
    border-radius: 14px;
    border: 1px solid #e5edf6;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 6px 18px rgba(31, 56, 88, 0.04);
}

.helpdeskkb-flatboots-page .helpdeskkb-category-row,
.helpdeskkb-flatboots-page .helpdeskkb-search-result-item {
    padding: 16px;
}

.helpdeskkb-flatboots-page .helpdeskkb-content {
    color: var(--kb-fb-text);
}

.helpdeskkb-flatboots-page .helpdeskkb-content h2,
.helpdeskkb-flatboots-page .helpdeskkb-content h3,
.helpdeskkb-flatboots-page .helpdeskkb-content h4 {
    color: #213247;
}

.helpdeskkb-flatboots-page .helpdeskkb-content a {
    color: var(--kb-fb-accent);
}

.helpdeskkb-flatboots-page .helpdeskkb-pagination {
    margin-top: 18px;
}

.helpdeskkb-flatboots-page .helpdeskkb-page-current,
.helpdeskkb-flatboots-page .helpdeskkb-page-link,
.helpdeskkb-flatboots-page .helpdeskkb-page-ellipsis {
    border-radius: 999px;
}

.helpdeskkb-flatboots-page .helpdeskkb-side-stats {
    gap: 10px;
}

.helpdeskkb-flatboots-page .helpdeskkb-side-stat {
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    border: 1px solid #e0eaf5;
}

@media (max-width: 700px) {
    .helpdeskkb-flatboots-page .panel .inner {
        padding: 16px;
    }

    .helpdeskkb-flatboots-page .helpdeskkb-hero-actions,
    .helpdeskkb-flatboots-page .helpdeskkb-actions,
    .helpdeskkb-flatboots-page .helpdeskkb-side-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .helpdeskkb-flatboots-page .button1,
    .helpdeskkb-flatboots-page .button2,
    .helpdeskkb-flatboots-page a.button1,
    .helpdeskkb-flatboots-page a.button2 {
        width: 100%;
        text-align: center;
    }
}

html[data-theme="dark"] .helpdeskkb-flatboots-page,
body[data-theme="dark"] .helpdeskkb-flatboots-page,
.dark-theme .helpdeskkb-flatboots-page,
body.dark .helpdeskkb-flatboots-page,
body.phpbb-dark .helpdeskkb-flatboots-page {
    --kb-fb-surface: #1c2634;
    --kb-fb-border: rgba(148, 163, 184, 0.18);
    --kb-fb-text: #edf2f7;
    --kb-fb-muted: #b7c4d4;
    --kb-fb-shadow: 0 12px 32px rgba(2, 8, 23, 0.34);
}

html[data-theme="dark"] .helpdeskkb-flatboots-page .helpdeskkb-featured-card,
body[data-theme="dark"] .helpdeskkb-flatboots-page .helpdeskkb-featured-card,
.dark-theme .helpdeskkb-flatboots-page .helpdeskkb-featured-card,
body.dark .helpdeskkb-flatboots-page .helpdeskkb-featured-card,
body.phpbb-dark .helpdeskkb-flatboots-page .helpdeskkb-featured-card,
html[data-theme="dark"] .helpdeskkb-flatboots-page .helpdeskkb-category-row,
body[data-theme="dark"] .helpdeskkb-flatboots-page .helpdeskkb-category-row,
.dark-theme .helpdeskkb-flatboots-page .helpdeskkb-category-row,
body.dark .helpdeskkb-flatboots-page .helpdeskkb-category-row,
body.phpbb-dark .helpdeskkb-flatboots-page .helpdeskkb-category-row,
html[data-theme="dark"] .helpdeskkb-flatboots-page .helpdeskkb-search-result-item,
body[data-theme="dark"] .helpdeskkb-flatboots-page .helpdeskkb-search-result-item,
.dark-theme .helpdeskkb-flatboots-page .helpdeskkb-search-result-item,
body.dark .helpdeskkb-flatboots-page .helpdeskkb-search-result-item,
body.phpbb-dark .helpdeskkb-flatboots-page .helpdeskkb-search-result-item,
html[data-theme="dark"] .helpdeskkb-flatboots-page .helpdeskkb-side-stat,
body[data-theme="dark"] .helpdeskkb-flatboots-page .helpdeskkb-side-stat,
.dark-theme .helpdeskkb-flatboots-page .helpdeskkb-side-stat,
body.dark .helpdeskkb-flatboots-page .helpdeskkb-side-stat,
body.phpbb-dark .helpdeskkb-flatboots-page .helpdeskkb-side-stat {
    background: linear-gradient(180deg, #1c2634 0%, #1a2230 100%);
}

html[data-theme="dark"] .helpdeskkb-flatboots-page .button2,
body[data-theme="dark"] .helpdeskkb-flatboots-page .button2,
.dark-theme .helpdeskkb-flatboots-page .button2,
body.dark .helpdeskkb-flatboots-page .button2,
body.phpbb-dark .helpdeskkb-flatboots-page .button2 {
    background: linear-gradient(180deg, #243447 0%, #1d2a39 100%);
    color: #e7eef7;
}
