/* Uygulama içi yardım: yan panel, belge görünümü ve Yardım Merkezi. */

.kobi-help-side .rz-dialog-side-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.kobi-help-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.kobi-help-panel__header {
    display: flex;
    align-items: center;
    gap: .25rem;
    padding: .5rem .75rem;
    border-bottom: 1px solid var(--rz-base-300);
    background: var(--rz-base-50);
}

.kobi-help-panel__title {
    flex: 1;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kobi-help-panel__body {
    flex: 1;
    overflow-y: auto;
    padding: .75rem 1rem 2rem 1rem;
    min-height: 0;
}

.kobi-help-doc {
    font-size: .9rem;
    line-height: 1.55;
}

.kobi-help-doc__menu {
    color: var(--rz-text-secondary-color);
    font-size: .8rem;
    margin-bottom: .5rem;
}

.kobi-help-doc__toc {
    border: 1px solid var(--rz-base-300);
    border-radius: 6px;
    padding: .5rem .75rem;
    margin: .5rem 0 1rem 0;
    background: var(--rz-base-50);
}

.kobi-help-doc__toc-title {
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    color: var(--rz-text-secondary-color);
    margin-bottom: .25rem;
}

.kobi-help-doc__toc a {
    display: block;
    cursor: pointer;
    padding: 1px 0;
    color: var(--rz-primary);
    text-decoration: none;
}

.kobi-help-doc__toc a.level-3 {
    padding-left: 1rem;
    font-size: .85rem;
}

.kobi-help-doc table {
    border-collapse: collapse;
    width: 100%;
    margin: .5rem 0 1rem 0;
    font-size: .85rem;
}

/* RadzenMarkdown tabloları veri ızgarası stiliyle (rz-grid-table) çizer: sabit kolon genişliği,
   tek satır ve "…" ile kesme. Yardım metninde kesilen içerik anlamsızdır; kolonlar içeriğe göre
   genişler, metin alt satıra geçer. */
.kobi-help-doc .rz-grid-table,
.kobi-help-doc .rz-grid-table-fixed {
    table-layout: auto !important;
    width: 100% !important;
}

.kobi-help-doc .rz-grid-table th,
.kobi-help-doc .rz-grid-table td,
.kobi-help-doc .rz-grid-table thead th,
.kobi-help-doc .rz-grid-table .rz-cell-data,
.kobi-help-doc .rz-grid-table .rz-column-title,
.kobi-help-doc .rz-grid-table .rz-column-title-content {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: normal;
    overflow-wrap: anywhere;
}

.kobi-help-doc .rz-grid-table thead th {
    position: static !important;
    vertical-align: bottom;
}

.kobi-help-doc .rz-grid-table td {
    vertical-align: top;
}

.kobi-help-doc th,
.kobi-help-doc td {
    border: 1px solid var(--rz-base-300);
    padding: .3rem .45rem;
    vertical-align: top;
    text-align: left;
}

.kobi-help-doc th {
    background: var(--rz-base-100);
}

.kobi-help-doc h2 {
    font-size: 1.15rem;
    margin: 1.4rem 0 .5rem 0;
    padding-bottom: .2rem;
    border-bottom: 1px solid var(--rz-base-300);
}

.kobi-help-doc h3 {
    font-size: 1rem;
    margin: 1rem 0 .4rem 0;
}

.kobi-help-doc blockquote {
    margin: .5rem 0;
    padding: .4rem .75rem;
    border-left: 4px solid var(--rz-info);
    background: var(--rz-info-lighter);
}

.kobi-help-doc code {
    background: var(--rz-base-100);
    padding: 0 .25rem;
    border-radius: 3px;
}

.kobi-help-doc img {
    max-width: 100%;
    border: 1px solid var(--rz-base-300);
    border-radius: 4px;
}

.kobi-help-doc__related {
    margin-top: 1.5rem;
    padding-top: .5rem;
    border-top: 1px solid var(--rz-base-300);
}

.kobi-help-doc__related a {
    display: inline-block;
    margin: 0 .75rem .25rem 0;
    cursor: pointer;
    color: var(--rz-primary);
}

.kobi-help-empty {
    color: var(--rz-text-secondary-color);
    padding: 1rem 0;
}

/* Yardım Merkezi — kendi düzeni (HelpLayout) ekranı tam kaplar; sayfa kaymaz. */
.kobi-help-layout {
    position: fixed;
    inset: 0;
    padding: .75rem 1rem;
    overflow: hidden;
    background: var(--rz-base-background-color);
    color: var(--rz-text-color);
    /* RadzenLayout kullanılmadığı için temanın yazı tipi burada açıkça verilir; verilmezse
       başlıklar ve sol liste tarayıcının varsayılan (tırnaklı) yazı tipine düşer. */
    font-family: var(--rz-text-font-family);
    font-size: var(--rz-body-font-size, 0.875rem);
    line-height: var(--rz-body-line-height, 1.5);
}

.kobi-help-layout h1,
.kobi-help-layout h2,
.kobi-help-layout h3,
.kobi-help-layout h4 {
    font-family: var(--rz-text-font-family);
    font-weight: 500;
    color: var(--rz-text-title-color, var(--rz-text-color));
}

.kobi-help-center {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1rem;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.kobi-help-center__nav {
    overflow-y: auto;
    border-right: 1px solid var(--rz-base-300);
    padding-right: .75rem;
}

.kobi-help-center__nav h4 {
    font-size: .72rem;
    letter-spacing: .04em;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--rz-text-secondary-color);
    margin: 1rem 0 .25rem 0;
}

.kobi-help-center__nav a {
    display: block;
    font-size: .875rem;
    line-height: 1.4;
    cursor: pointer;
    padding: 2px 0;
    color: var(--rz-text-color);
    text-decoration: none;
}

.kobi-help-center__nav a.active {
    color: var(--rz-primary);
    font-weight: 600;
}

.kobi-help-center__main {
    overflow-y: auto;
    min-height: 0;
    padding-right: 1rem;
}

.kobi-help-hit {
    padding: .5rem 0;
    border-bottom: 1px solid var(--rz-base-200);
    cursor: pointer;
}

.kobi-help-hit__title {
    color: var(--rz-primary);
    font-weight: 600;
}

.kobi-help-hit__snippet {
    font-size: .85rem;
    color: var(--rz-text-secondary-color);
}

@media print {
    .kobi-help-center__nav,
    .kobi-help-center__search {
        display: none;
    }

    .kobi-help-center {
        display: block;
    }
}

/* Yardım Merkezi sol ağacı: uygulama menüsüyle aynı modül → kategori → ekran düzeni. */
.kobi-help-tree a {
    display: block;
    font-size: .875rem;
    line-height: 1.5;
    cursor: pointer;
    color: var(--rz-text-color);
    text-decoration: none;
    padding-top: 2px;
    padding-bottom: 2px;
}

.kobi-help-tree__module {
    font-weight: 600;
    margin-top: .35rem;
}

.kobi-help-tree__group:hover,
.kobi-help-tree__leaf:hover {
    color: var(--rz-primary);
}

.kobi-help-tree__leaf.active {
    color: var(--rz-primary);
    font-weight: 600;
}
