﻿/* Duzenleme formlari */

/* ---- Düzenleme sayfası (öğrenci / personel formu) ---- */
.dk-edit-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(22rem, 36%);
    gap: 1rem;
    align-items: start;
}

/* Yan panel yoksa (örn. ürün formu) kart tüm genişliği kaplasın */
.dk-edit-page:not(:has(.dk-edit-sidebar)) {
    grid-template-columns: minmax(0, 1fr);
}

.dk-edit-main {
    min-width: 0;
}

.dk-edit-sidebar {
    min-width: 0;
}

/* Öğrenci / personel — alt eylem çubuğu sayfanın en altında tam genişlik */
.dk-edit-page-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.dk-edit-page-form-wrapper > .edit-form-footer {
    box-sizing: border-box;
    flex-shrink: 0;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border: 1px solid var(--dk-sidebar-border, #e6e8ec);
    border-radius: 10px;
    box-shadow: var(--rz-card-shadow, 0 1px 2px rgba(16, 24, 40, .04));
}

.dk-edit-card.rz-card {
    padding: 1.15rem 1.25rem 1.25rem;
}

.dk-detail-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dk-entity-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.15rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid var(--dk-sidebar-border, #e6e8ec);
}

.dk-entity-head-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 12px;
    background: var(--dk-accent-soft, #e8f0ff);
    color: var(--dk-accent, #1d63ed);
}

.dk-entity-head-icon .rzi {
    font-size: 2rem;
}

.dk-entity-head-body {
    flex: 1 1 auto;
    min-width: 0;
}

.dk-entity-head-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--rz-text-color, #1c2330);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dk-entity-head-sub {
    margin: 0.2rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: var(--dk-statusbar-fg, #64748b);
}

.dk-entity-head-aside {
    flex: 0 0 auto;
    align-self: flex-start;
}

.dk-cari-profile-card.rz-card {
    padding: 0;
    overflow: hidden;
}

.dk-cari-profile-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid var(--dk-sidebar-border, #e6e8ec);
    background: #fff;
}

.dk-cari-profile-hero-main {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    flex: 1 1 auto;
}

.dk-cari-profile-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 12px;
    background: var(--dk-accent-soft, #e8f0ff);
    color: var(--dk-accent, #1d63ed);
}

.dk-cari-profile-icon .rzi {
    font-size: 1.65rem;
}

.dk-cari-profile-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.dk-cari-profile-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem 0.65rem;
}

.dk-cari-profile-title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--rz-text-color, #1c2330);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dk-cari-profile-meta {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: #64748b;
}

.dk-cari-profile-stat {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.15rem;
    min-width: 9.5rem;
    max-width: 14rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--dk-sidebar-border, #e6e8ec);
    border-radius: 10px;
    background: #fafbfc;
}

.dk-cari-profile-stat-head {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.dk-cari-profile-stat-label {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--rz-text-color, #1c2330);
}

.dk-cari-profile-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
    color: var(--rz-text-color, #1c2330);
}

.dk-cari-profile-stat-value.is-debt {
    color: #b91c1c;
}

.dk-cari-profile-stat-value.is-credit {
    color: #15803d;
}

.dk-cari-profile-stat-hint {
    font-size: 0.75rem;
    line-height: 1.35;
    color: #64748b;
    text-align: right;
}

.dk-cari-profile-body {
    padding: 1rem 1.25rem 1.2rem;
}

.dk-cari-profile-section-head {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.dk-cari-profile-section-title {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--rz-text-color, #1c2330);
}

.dk-cari-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.25rem;
}

.dk-cari-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-width: 0;
}

.dk-cari-meta-item.is-wide {
    grid-column: 1 / -1;
}

.dk-cari-meta-label {
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #94a3b8;
}

.dk-cari-meta-value {
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--rz-text-color, #1c2330);
    word-break: break-word;
}

.dk-cari-meta-value.is-link {
    color: var(--dk-accent, #1d63ed);
    text-decoration: none;
}

.dk-cari-meta-value.is-link:hover {
    text-decoration: underline;
}

.dk-cari-balance-amount {
    font-size: 1.375rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    color: var(--rz-text-color, #1c2330);
}

.dk-cari-balance-amount.is-debt {
    color: #b91c1c;
}

.dk-cari-balance-amount.is-credit {
    color: #15803d;
}

.dk-cari-balance-hint {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: #64748b;
}

.dk-detail-ledger {
    min-width: 0;
}

.dk-detail-ledger-card.rz-card {
    padding: 1.15rem 1.25rem 1.25rem;
}

.dk-detail-ledger-card .dk-form-section {
    margin: 0;
}

/* Segment sekmeler — kompakt pill toggle */
.dk-segment-tabs {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 0.65rem;
    padding: 0.2rem;
    border: 1px solid var(--dk-sidebar-border, #e2e8f0);
    border-radius: 8px;
    background: #e8edf3;
}

.dk-segment-tab {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0.18rem 0.55rem;
    border: 0;
    border-radius: 6px;
    background: transparent;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: normal;
    text-transform: none;
    color: var(--dk-btn-muted, #64748b);
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.dk-segment-tab:hover:not(:disabled):not(.is-active) {
    color: #475569;
    background: rgba(255, 255, 255, 0.65);
}

.dk-segment-tab.is-active {
    color: var(--dk-accent, #1d63ed);
    background: var(--dk-accent-soft, #e8f0ff);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dk-accent, #1d63ed) 22%, transparent);
}

.dk-segment-tab.is-active:hover:not(:disabled) {
    color: var(--dk-brand-deep, #0e3fa8);
    background: color-mix(in srgb, var(--dk-accent-soft, #e8f0ff) 75%, #fff);
}

.dk-segment-tab:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.dk-segment-tab:focus-visible {
    outline: 2px solid var(--dk-accent, #1d63ed);
    outline-offset: 1px;
}

.dk-segment-tab-panel.is-hidden {
    display: none;
}

.dk-detail-grid.rz-data-grid {
    box-shadow: none;
    border: 1px solid var(--dk-sidebar-border, #e6e8ec);
    border-radius: 8px;
}

.dk-detail-grid .rz-numeric {
    width: 100%;
}

.dk-detail-grid .rz-numeric-input {
    text-align: right;
    min-height: 32px;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
}

.dk-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Outlined FormField — boş ve odak dışı alanda label ortada, soluk (shell + dialog) */
.dk-shell .rz-form-field.rz-variant-outlined:not(.rz-state-focused) .rz-form-field-content > .rz-state-empty ~ .rz-form-field-label,
.rz-dialog .rz-form-field.rz-variant-outlined:not(.rz-state-focused) .rz-form-field-content > .rz-state-empty ~ .rz-form-field-label {
    color: #94a3b8 !important;
}

.dk-shell .rz-form-field.rz-variant-outlined:not(.rz-state-focused) .rz-form-field-content > .rz-dropdown.rz-state-empty ~ .rz-form-field-label,
.dk-shell .rz-form-field.rz-variant-outlined:not(.rz-state-focused) .rz-form-field-content > .rz-numeric.rz-state-empty ~ .rz-form-field-label,
.rz-dialog .rz-form-field.rz-variant-outlined:not(.rz-state-focused) .rz-form-field-content > .rz-dropdown.rz-state-empty ~ .rz-form-field-label,
.rz-dialog .rz-form-field.rz-variant-outlined:not(.rz-state-focused) .rz-form-field-content > .rz-numeric.rz-state-empty ~ .rz-form-field-label {
    color: #94a3b8 !important;
}

.edit-form-toolbar-hint {
    font-size: 0.8125rem;
    line-height: 1.35;
    color: var(--dk-statusbar-fg, #64748b);
}

/* Yalnızca ipucu — üst çubuk daha kompakt */
.edit-form-toolbar:not(:has(.report-toolbar-actions)) {
    min-height: 0;
}

.edit-form-toolbar .report-toolbar-page-actions .rz-button.rz-primary {
    min-width: 6.5rem;
}

.edit-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0;
    padding: 0.85rem 1.15rem;
    border-top: 1px solid var(--dk-sidebar-border, #e6e8ec);
    background: #fafbfc;
    box-sizing: border-box;
}

.edit-form-footer-start,
.edit-form-footer-end {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.edit-form-footer-end {
    margin-left: auto;
}

.edit-form-footer .edit-form-footer-submit {
    min-width: 6.75rem;
}

/* Standart düzenleme kartı — alt bant kart kenarına hizalı */
.dk-edit-card:not(.dk-product-form) > .edit-form-footer {
    margin: 0 -1.25rem -1.25rem;
    padding: 1rem 1.25rem 1.15rem;
}

.detail-form-toolbar .report-toolbar-filters {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.detail-form-toolbar-start {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    flex: 1 1 auto;
    min-width: 0;
}

.detail-form-toolbar-leading {
    flex-wrap: wrap;
}

.detail-form-toolbar-meta {
    font-size: 0.8125rem;
    line-height: 1.35;
    color: var(--dk-statusbar-fg, #64748b);
}

/* Detay alanları — form bölümleriyle hizalı salt okunur */
.dk-detail-field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-height: 3.25rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--dk-sidebar-border, #e6e8ec);
    border-radius: 8px;
    background: #fff;
}

.dk-detail-field-label {
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
    color: #64748b;
}

.dk-detail-field-value {
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--rz-text-color, #1c2330);
    word-break: break-word;
}

.dk-detail-field-value.is-empty {
    color: #94a3b8;
    font-weight: 400;
}

.dk-detail-empty {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 0.75rem;
    border: 1px dashed var(--dk-sidebar-border, #e6e8ec);
    border-radius: 8px;
    font-size: 0.8125rem;
    color: #64748b;
    background: #f8fafc;
}

.dk-detail-empty .rzi {
    font-size: 1.125rem;
    color: #94a3b8;
}

.dk-detail-guardian-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.dk-detail-guardian-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.7rem 0.75rem;
    border: 1px solid var(--dk-sidebar-border, #e6e8ec);
    border-radius: 10px;
    background: #fff;
}

.dk-detail-guardian-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    flex: 0 0 auto;
}

.dk-detail-guardian-name {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--rz-text-color, #1c2330);
}

.dk-detail-guardian-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    margin-top: 0.2rem;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: #64748b;
}

.dk-detail-limit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
}

.dk-detail-limit-label {
    font-size: 0.8125rem;
    color: #64748b;
}

.dk-detail-limit-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--rz-text-color, #1c2330);
}

.dk-detail-limit-value.is-muted {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
}

.dk-detail-limit-value.is-debt,
.detail-form-toolbar-meta.is-debt {
    color: #b91c1c;
}

.detail-form-toolbar-meta.is-debt {
    font-weight: 600;
}

.dk-report-type-chip.is-warning {
    background: #fef3c7;
    color: #b45309;
}

.dk-report-type-chip.is-info {
    background: #e8f0ff;
    color: #1353d3;
}

.dk-detail-restrictions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.dk-detail-restriction-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.dk-detail-tag-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.dk-detail-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.dk-photo-field.dk-photo-field--readonly {
    margin-bottom: 1.15rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid var(--dk-sidebar-border, #e6e8ec);
}

.dk-photo-field--readonly .dk-photo-tile:hover {
    border-color: var(--dk-sidebar-border, #e6e8ec);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transform: none;
}

.dk-photo-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #94a3b8;
}

.dk-photo-placeholder .rzi {
    font-size: 2.5rem;
}

.dk-form-section + .dk-form-section {
    margin-top: 0.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--dk-sidebar-border, #e6e8ec);
}

.dk-form-section-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
    overflow: visible;
}

.dk-form-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: var(--dk-accent-soft, #e8f0ff);
    color: var(--dk-accent, #1d63ed);
    flex: 0 0 auto;
}

.dk-form-section-icon .rzi {
    font-size: 1.125rem;
}

.dk-form-section-text {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
}

.dk-form-section-actions {
    margin-left: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.dk-form-section-head:has(.dk-form-section-actions) {
    align-items: flex-start;
}

.dk-form-section-title-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.dk-form-section-title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--rz-text-color, #1c2330);
}

/* Form bölümü açıklamaları ? ipucunda — daha geniş metin */
.dk-form-section-help[data-tooltip]::after {
    max-width: min(320px, 90vw);
    text-align: left;
}

.dk-form-section-body .rz-row {
    row-gap: 0.25rem;
}

.dk-form-subpanel {
    padding: 0.85rem 1rem;
    border: 1px solid var(--dk-sidebar-border, #e6e8ec);
    border-radius: 10px;
    background: #f8fafc;
}

.dk-form-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--dk-sidebar-border, #e6e8ec);
    border-radius: 8px;
    background: #f8fafc;
}

.rz-form-field-helper .dk-form-hint {
    margin-top: 0.625rem;
}

.dk-form-hint-icon.rzi {
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 16px;
    color: #64748b;
}

.dk-form-hint-text {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #64748b;
}

.dk-form-hint-danger {
    border-color: #fecdca;
    background: #fef3f2;
}

.dk-form-hint-danger .dk-form-hint-icon.rzi,
.dk-form-hint-danger .dk-form-hint-text {
    color: #b42318;
}

.dk-form-hint-warning {
    border-color: #fedf89;
    background: linear-gradient(180deg, #fffbeb 0%, #fff7e6 100%);
}

.dk-form-hint-warning .dk-form-hint-icon.rzi,
.dk-form-hint-warning .dk-form-hint-text {
    color: #b54708;
}

.dk-form-hint-info {
    border-color: #b2ddff;
    background: linear-gradient(180deg, #f5faff 0%, #eff8ff 100%);
}

.dk-form-hint-info .dk-form-hint-icon.rzi,
.dk-form-hint-info .dk-form-hint-text {
    color: #175cd3;
}

.dk-form-hint-success {
    border-color: #abefc6;
    background: linear-gradient(180deg, #f6fef9 0%, #ecfdf3 100%);
}

.dk-form-hint-success .dk-form-hint-icon.rzi,
.dk-form-hint-success .dk-form-hint-text {
    color: #067647;
}

.pnl-panel-notice {
    margin: 0;
}

.pnl-panel-notice-spaced {
    margin-top: 0.75rem;
}

.pnl-panel-notice-block .pnl-panel-notice-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
}

/* Radzen Alert — panel içi (dk-form-hint ile aynı dil) */
.dk-shell .rz-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--dk-sidebar-border, #e6e8ec);
    border-radius: 8px;
    box-shadow: none;
    font-size: 0.8125rem;
    line-height: 1.45;
    background: #f8fafc;
    color: #64748b;
}

.dk-shell .rz-alert .rz-alert-content,
.dk-shell .rz-alert .notranslate.rz-alert-content {
    flex: 1;
    min-width: 0;
    padding: 0;
}

.dk-shell .rz-alert > .rzi:first-child {
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 16px;
    color: inherit;
    opacity: 0.95;
}

.dk-shell .rz-alert.rz-success {
    border-color: #abefc6;
    background: linear-gradient(180deg, #f6fef9 0%, #ecfdf3 100%);
    color: #067647;
}

.dk-shell .rz-alert.rz-danger {
    border-color: #fecdca;
    background: #fef3f2;
    color: #b42318;
}

.dk-shell .rz-alert.rz-warning {
    border-color: #fedf89;
    background: linear-gradient(180deg, #fffbeb 0%, #fff7e6 100%);
    color: #b54708;
}

.dk-shell .rz-alert.rz-info {
    border-color: #b2ddff;
    background: linear-gradient(180deg, #f5faff 0%, #eff8ff 100%);
    color: #175cd3;
}

.dk-form-hint-extra {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: inherit;
    opacity: 0.9;
}

.dk-page-hint {
    margin-bottom: 0.75rem;
}

.dk-cari-dialog-summary {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--dk-sidebar-border, #e6e8ec);
    border-radius: 10px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.dk-cari-dialog-summary-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--dk-accent-soft, #e8f0ff);
    color: var(--dk-accent, #1d63ed);
}

.dk-cari-dialog-summary-icon .rzi {
    font-size: 20px;
}

.dk-cari-dialog-summary-body {
    flex: 1;
    min-width: 0;
}

.dk-cari-dialog-summary-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--rz-text-color, #1c2330);
}

.dk-cari-dialog-summary-balance {
    flex-shrink: 0;
    text-align: right;
}

.dk-cari-dialog-summary-label {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.dk-cari-dialog-summary-amount {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    color: #475569;
}

.dk-cari-dialog-summary-amount.has-debt {
    color: #b91c1c;
}

/* Fotoğraf alanı — mülakat mk-photo stili */
.dk-photo-field-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid var(--dk-sidebar-border, #e6e8ec);
}

.dk-photo-field {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    flex: 1 1 auto;
}

.dk-photo-field-aside {
    flex: 0 0 auto;
    align-self: center;
}

.dk-photo-field-aside:empty {
    display: none;
}

.dk-photo-status-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--dk-sidebar-border, #e6e8ec);
    border-radius: 10px;
    background: #f8fafc;
    white-space: nowrap;
}

.dk-photo-status-toggle.is-full-width {
    display: flex;
    width: 100%;
    justify-content: space-between;
    white-space: normal;
}

.dk-photo-status-toggle.is-full-width .dk-photo-status-label {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 0.75rem;
}

.dk-photo-status-toggle.is-full-width .rz-switch {
    flex: 0 0 auto;
}

.dk-photo-status-label {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--rz-text-color, #1c2330);
}

.dk-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dk-form-actions .rz-button {
    text-transform: none;
    letter-spacing: normal;
}

.dk-dialog-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e2e8f0;
}

/* Dialog portalı .dk-shell dışında — toolbar ile aynı sm filled görünüm */
.dk-dialog-actions .rz-button {
    height: var(--dk-btn-h-sm, 32px);
    min-height: var(--dk-btn-h-sm, 32px);
    padding: 0 0.7rem;
    border-radius: var(--dk-btn-radius, 6px);
    font-size: 0.8125rem;
    font-weight: 500;
    box-shadow: none !important;
    text-transform: none;
    letter-spacing: normal;
}

.dk-dialog-actions .rz-button .rzi {
    font-size: 15px;
}

.dk-dialog-actions .rz-button.rz-primary.rz-variant-filled {
    background: var(--dk-btn-primary, #1353d3) !important;
    border-color: var(--dk-btn-primary, #1353d3) !important;
    color: #fff !important;
}

.dk-dialog-actions .rz-button.rz-primary.rz-variant-filled:hover:not(:disabled) {
    background: var(--dk-btn-primary-hover, #1146b5) !important;
    border-color: var(--dk-btn-primary-hover, #1146b5) !important;
}

.dk-dialog-actions .rz-button.rz-light.rz-variant-filled {
    background: #fff !important;
    border: 1px solid var(--dk-btn-border, #e2e8f0) !important;
    color: var(--dk-btn-fg, #0f172a) !important;
}

.dk-dialog-actions .rz-button.rz-light.rz-variant-filled:hover:not(:disabled) {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

.dk-dialog-actions .rz-button:disabled {
    opacity: 0.5;
}

.dk-dialog-actions.is-single {
    justify-content: flex-end;
}

/* Lisans karşılama modalı */
.dk-license-welcome-dialog {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 1.25rem 0;
    min-width: 0;
}

.dk-license-welcome-hero {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.05rem;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
}

.dk-license-welcome-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #fdba74;
    color: #ea580c;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.12);
}

.dk-license-welcome-hero-icon .rzi {
    font-size: 1.35rem;
}

.dk-license-welcome-hero-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.dk-license-welcome-eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #c2410c;
}

.dk-license-welcome-title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: #7c2d12;
}

.dk-license-welcome-lead {
    margin: 0.4rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #9a3412;
}

.dk-license-welcome-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.dk-license-welcome-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dk-license-welcome-stat.is-accent {
    border-color: #fdba74;
    background: #fff7ed;
}

.dk-license-welcome-stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
    color: #0f172a;
    word-break: break-word;
}

.dk-license-welcome-stat.is-accent .dk-license-welcome-stat-value {
    font-size: 1.5rem;
    color: #c2410c;
}

.dk-license-welcome-stat-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.dk-license-welcome-org {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    align-self: flex-start;
    max-width: 100%;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #475569;
}

.dk-license-welcome-org .rzi {
    flex-shrink: 0;
    font-size: 1rem;
    color: #64748b;
}

.dk-license-welcome-org span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dk-license-welcome-dialog .dk-dialog-actions {
    margin-top: 0.25rem;
    margin-inline: -1.25rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

/* Uyarı dialogunda Tamam butonu — theme-forms birincil mavi override'ını geçersiz kılar */
.rz-dialog.dk-dialog-warning .dk-license-welcome-dialog .dk-dialog-actions .rz-button.rz-primary.rz-variant-filled {
    background: var(--dk-dialog-accent, #ea580c) !important;
    border-color: var(--dk-dialog-accent, #ea580c) !important;
    color: #fff !important;
}

.rz-dialog.dk-dialog-warning .dk-license-welcome-dialog .dk-dialog-actions .rz-button.rz-primary.rz-variant-filled:hover:not(:disabled) {
    background: var(--dk-dialog-accent-hover, #c2410c) !important;
    border-color: var(--dk-dialog-accent-hover, #c2410c) !important;
}

.rz-dialog.dk-dialog-warning .dk-license-welcome-dialog .dk-dialog-actions .rz-button.rz-light.rz-variant-filled:hover:not(:disabled) {
    border-color: #fdba74 !important;
    color: #c2410c !important;
    background: #fff7ed !important;
}

@media (max-width: 520px) {
    .dk-license-welcome-stats {
        grid-template-columns: 1fr;
    }

    .dk-license-welcome-org span {
        white-space: normal;
    }
}

/* Grid pager — kompakt, Türkçe özet ile uyumlu */
.report-print-area .rz-data-grid .rz-pager,
.dk-shell .rz-data-grid .rz-pager {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0.65rem 0 0;
    padding: 0.45rem 0.55rem;
    border: 1px solid var(--dk-sidebar-border, #e6e8ec);
    border-radius: 10px;
    background: #fafbfc;
    box-shadow: none;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.report-print-area .rz-data-grid .rz-pager-pages,
.dk-shell .rz-data-grid .rz-pager-pages {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin: 0;
    padding: 0;
}

.report-print-area .rz-data-grid .rz-pager-element,
.report-print-area .rz-data-grid .rz-pager-page,
.dk-shell .rz-data-grid .rz-pager-element,
.dk-shell .rz-data-grid .rz-pager-page {
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    font-size: 0.8125rem;
    line-height: 1;
}

.report-print-area .rz-data-grid .rz-pager-element .rz-button,
.report-print-area .rz-data-grid .rz-pager-page .rz-button,
.dk-shell .rz-data-grid .rz-pager-element .rz-button,
.dk-shell .rz-data-grid .rz-pager-page .rz-button {
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border-radius: var(--dk-btn-radius, 6px);
    box-shadow: none !important;
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.8125rem;
    font-weight: 500;
}

.report-print-area .rz-data-grid .rz-pager-element .rzi,
.report-print-area .rz-data-grid .rz-pager-page .rzi,
.dk-shell .rz-data-grid .rz-pager-element .rzi,
.dk-shell .rz-data-grid .rz-pager-page .rzi {
    font-size: 18px;
}

.report-print-area .rz-data-grid .rz-pager-summary,
.dk-shell .rz-data-grid .rz-pager-summary {
    font-size: 0.8125rem;
    line-height: 1.35;
    color: var(--dk-statusbar-fg, #64748b);
    white-space: nowrap;
}

.dk-photo-tile {
    position: relative;
    width: 84px;
    height: 104px;
    flex: 0 0 auto;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    border: 1px dashed #c9d2de;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.dk-photo-tile.has-image {
    border-style: solid;
    border-color: var(--dk-sidebar-border, #e6e8ec);
    background: #0f172a;
}

.dk-photo-tile:hover {
    border-color: color-mix(in srgb, var(--dk-accent, #1d63ed) 45%, #c9d2de);
    box-shadow: 0 0 0 3px rgba(29, 99, 237, 0.08);
}

.dk-photo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dk-photo-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    margin: 0;
    cursor: pointer;
    background: transparent;
    color: transparent;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.dk-photo-tile.is-empty .dk-photo-overlay {
    color: #64748b;
}

.dk-photo-tile.is-empty:hover .dk-photo-overlay {
    background: rgba(29, 99, 237, 0.06);
    color: var(--dk-accent, #1d63ed);
}

.dk-photo-tile.has-image .dk-photo-overlay {
    background: rgba(15, 23, 42, 0);
    color: transparent;
}

.dk-photo-tile.has-image:hover .dk-photo-overlay,
.dk-photo-tile.has-image:focus-within .dk-photo-overlay {
    background: rgba(15, 23, 42, 0.48);
    color: #fff;
}

.dk-photo-overlay-inner {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    pointer-events: none;
    opacity: 0;
    transform: translateY(2px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.dk-photo-tile.is-empty .dk-photo-overlay-inner,
.dk-photo-tile.has-image:hover .dk-photo-overlay-inner,
.dk-photo-tile.has-image:focus-within .dk-photo-overlay-inner {
    opacity: 1;
    transform: translateY(0);
}

.dk-photo-overlay-inner .rzi {
    font-size: 20px;
}

.dk-photo-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.15s ease, transform 0.15s ease, background-color 0.12s ease;
}

.dk-photo-tile:hover .dk-photo-remove,
.dk-photo-remove:focus-visible {
    opacity: 1;
    transform: scale(1);
}

.dk-photo-remove:hover {
    background: var(--dk-err, #dc2626);
}

.dk-photo-remove .rzi {
    font-size: 14px;
}

.dk-photo-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.dk-photo-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.dk-photo-meta-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1c2330;
    line-height: 1.25;
}

.dk-photo-meta-sub {
    font-size: 0.6875rem;
    color: var(--dk-statusbar-fg, #64748b);
    line-height: 1.35;
}

.dk-photo-meta-status {
    margin-top: 0.2rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--dk-accent, #1d63ed);
}

.dk-photo-meta-status.is-ok {
    color: #15803d;
}

/* Yan panel kartları */
.dk-sidebar-panel.rz-card {
    padding: 1rem 1.1rem;
}

.dk-sidebar-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    margin-bottom: 0.75rem;
    overflow: visible;
}

.dk-sidebar-panel-head-main {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    flex: 1 1 auto;
}

.dk-sidebar-panel-head-actions {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.dk-sidebar-panel-title-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.dk-sidebar-panel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    flex: 0 0 auto;
}

.dk-sidebar-panel-icon .rzi {
    font-size: 1rem;
}

.dk-sidebar-panel-title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--rz-text-color, #1c2330);
}

.dk-sidebar-panel-fields .rz-form-field {
    --rz-form-field-margin-block: 0.35rem;
}

.dk-summary-table {
    width: 100%;
    border: 1px solid var(--dk-sidebar-border, #e6e8ec);
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    font-size: 0.8125rem;
}

.dk-summary-table th,
.dk-summary-table td {
    padding: 0.55rem 0.75rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--dk-sidebar-border, #e6e8ec);
}

.dk-summary-table tr:last-child th,
.dk-summary-table tr:last-child td {
    border-bottom: 0;
}

.dk-summary-table th {
    width: 40%;
    font-weight: 500;
    color: #64748b;
    background: #f8fafc;
}

.dk-summary-table td {
    font-weight: 500;
    color: var(--rz-text-color, #1c2330);
    word-break: break-word;
}

.dk-summary-table td.is-empty {
    color: #94a3b8;
    font-weight: 400;
}

.dk-summary-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.85rem;
    padding: 0.6rem 0.85rem;
    margin-bottom: 1rem;
    border: 1px solid var(--dk-sidebar-border, #e6e8ec);
    border-radius: 8px;
    background: #f8fafc;
    font-size: 0.8125rem;
    line-height: 1.35;
}

.dk-summary-strip-item {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    min-width: 0;
}

.dk-summary-strip-label {
    color: #64748b;
    font-weight: 500;
}

.dk-summary-strip-value {
    color: var(--rz-text-color, #1c2330);
    font-weight: 600;
}

.dk-summary-strip-value.is-empty {
    color: #94a3b8;
    font-weight: 400;
}

.dk-summary-strip-sep {
    color: #cbd5e1;
    user-select: none;
}

/* Stok sayımı detay — özet paneli */
.dk-stock-count-summary {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--dk-sidebar-border, #e2e8f0);
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 55%, #fff 100%);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.dk-stock-count-summary-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    align-self: center;
    border-radius: 11px;
    background: var(--dk-accent-soft, #e8f0ff);
    color: var(--dk-accent, #1d63ed);
}

.dk-stock-count-summary-icon .rzi {
    font-size: 22px;
}

.dk-stock-count-summary-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
}

.dk-stock-count-summary-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.75rem;
}

.dk-stock-count-summary-scope {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    min-width: 0;
    font-size: 0.9375rem;
    line-height: 1.35;
}

.dk-stock-count-summary-scope-kind {
    font-weight: 500;
    color: #64748b;
}

.dk-stock-count-summary-scope-category {
    font-weight: 600;
    color: var(--rz-text-color, #1c2330);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: min(280px, 40vw);
}

.dk-stock-count-summary-scope-sub {
    color: #475569;
    font-weight: 500;
}

.dk-stock-count-summary-scope-sep {
    color: #cbd5e1;
    user-select: none;
}

.dk-stock-count-summary-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    color: #64748b;
}

.dk-stock-count-summary-meta .rzi {
    font-size: 16px;
    opacity: 0.85;
}

.dk-stock-count-summary-metrics {
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    padding-left: 0.75rem;
    border-left: 1px solid var(--dk-sidebar-border, #e2e8f0);
}

.dk-stock-count-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 4.5rem;
    padding: 0.35rem 0.65rem;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid transparent;
}

.dk-stock-count-metric-value {
    font-size: 1.125rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    color: var(--rz-text-color, #1c2330);
}

.dk-stock-count-metric-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-top: 0.15rem;
}

.dk-stock-count-metric.has-variance {
    background: #fffbeb;
    border-color: #fde68a;
}

.dk-stock-count-metric.has-variance .dk-stock-count-metric-value {
    color: #b45309;
}

.dk-stock-count-metric.is-positive {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.dk-stock-count-metric.is-positive .dk-stock-count-metric-value {
    color: #15803d;
}

.dk-stock-count-metric.is-negative {
    background: #fef2f2;
    border-color: #fecaca;
}

.dk-stock-count-metric.is-negative .dk-stock-count-metric-value {
    color: #b91c1c;
}

@media (max-width: 768px) {
    .dk-stock-count-summary {
        flex-wrap: wrap;
    }

    .dk-stock-count-summary-metrics {
        flex: 1 1 100%;
        border-left: 0;
        padding-left: 0;
        padding-top: 0.65rem;
        border-top: 1px solid var(--dk-sidebar-border, #e2e8f0);
        justify-content: space-between;
    }

    .dk-stock-count-metric {
        flex: 1;
        min-width: 0;
    }
}

.dk-summary-bar {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.dk-summary-chip {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--dk-sidebar-border, #e2e8f0);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dk-summary-chip-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
    line-height: 1.2;
}

.dk-summary-chip-value {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--rz-text-color, #1c2330);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dk-summary-chip-value.is-empty {
    color: #94a3b8;
    font-weight: 500;
}

@media (max-width: 1100px) {
    .dk-summary-bar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .dk-summary-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.dk-line-add {
    display: grid;
    grid-template-columns: minmax(240px, 1.1fr) auto minmax(0, 2fr);
    gap: 1rem;
    align-items: end;
}

.dk-line-add-scan {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.dk-line-add-scan-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--dk-accent, #1d63ed);
}

.dk-line-add-scan-label .rzi {
    font-size: 1rem;
}

.dk-line-add-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 0.55rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
}

.dk-line-add-manual {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
    min-width: 0;
}

.dk-line-add-manual > .rz-form-field {
    flex: 1 1 200px;
    min-width: 0;
    --rz-form-field-margin-block: 0;
}

@media (max-width: 900px) {
    .dk-line-add {
        grid-template-columns: 1fr;
    }

    .dk-line-add-divider {
        padding-bottom: 0;
    }
}

.dk-currency-amount-wrap {
    --load-control-h: 46px;
    --load-accent: var(--dk-accent, #1d63ed);
    --load-soft: var(--dk-accent-soft, #e8f0ff);
    --load-border: var(--dk-sidebar-border, #e6e8ec);
    --load-ink: var(--rz-text-color, #1c2330);
}

.dk-sidebar-currency-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
}

.dk-sidebar-currency-label-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.dk-sidebar-currency-label {
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--rz-text-secondary-color, #64748b);
}

/* Bağlı kartlar paneli */
.dk-linked-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dk-linked-cards-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 1.35rem 0.85rem;
    border: 1px dashed #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.8125rem;
    line-height: 1.4;
    text-align: center;
}

.dk-linked-cards-empty .rzi {
    font-size: 1.75rem;
    color: #94a3b8;
}

.dk-linked-cards-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.dk-linked-card-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.6rem;
    align-items: center;
    padding: 0.6rem 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.dk-linked-card-item:hover {
    border-color: color-mix(in srgb, var(--dk-accent, #1d63ed) 22%, #e2e8f0);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.dk-linked-card-media {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    background: var(--dk-accent-soft, #e8f0ff);
    color: var(--dk-accent, #1d63ed);
    flex: 0 0 auto;
}

.dk-linked-card-media .rzi {
    font-size: 1.125rem;
}

.dk-linked-card-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.dk-linked-card-uid {
    display: block;
    font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: 0.02em;
    word-break: break-all;
}

.dk-linked-card-status {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dk-linked-card-status.is-active {
    background: #ecfdf5;
    color: #15803d;
}

.dk-linked-card-status.is-blocked {
    background: #fef2f2;
    color: #dc2626;
}

.dk-linked-card-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.05rem;
    padding: 0.1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    flex: 0 0 auto;
}

.dk-linked-card-actions .rz-button {
    width: 1.75rem;
    min-width: 1.75rem;
    height: 1.75rem;
    min-height: 1.75rem;
    padding: 0;
    opacity: 1;
}

.dk-linked-card-actions .rz-button.rz-warning.rz-variant-text {
    color: #d97706;
}

.dk-linked-card-actions .rz-button.rz-warning.rz-variant-text:hover:not(:disabled) {
    background: #fffbeb;
    color: #b45309;
}

.dk-linked-card-actions .rz-button.rz-success.rz-variant-text {
    color: #16a34a;
}

.dk-linked-card-actions .rz-button.rz-success.rz-variant-text:hover:not(:disabled) {
    background: #ecfdf5;
    color: #15803d;
}

.dk-linked-card-actions .rz-button.rz-danger.rz-variant-text {
    color: #dc2626;
}

.dk-linked-card-actions .rz-button.rz-danger.rz-variant-text:hover:not(:disabled) {
    background: #fef2f2;
    color: #b91c1c;
}

.dk-linked-cards-footer {
    margin-top: 0.15rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--dk-sidebar-border, #e6e8ec);
}

.dk-linked-cards-add {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.dk-linked-cards-add-trigger {
    width: 100%;
    justify-content: center;
    text-transform: none;
    letter-spacing: normal;
}

.dk-linked-cards-add-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.dk-linked-cards-add-head .rz-button {
    flex: 0 0 auto;
}

.dk-linked-cards-add-label {
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.dk-linked-cards-add-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.dk-linked-cards-add-row .rz-textbox {
    flex: 1 1 auto;
    min-width: 0;
}

.dk-linked-cards-add-row .rz-button.rz-primary {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* Kart tarihçesi dialog */
.dk-card-history-dialog {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.dk-card-history-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--dk-sidebar-border, #e6e8ec);
    border-radius: 12px;
    background: #fafbfc;
}

.dk-card-history-summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    background: var(--dk-accent-soft, #e8f0ff);
    color: var(--dk-accent, #1d63ed);
    flex: 0 0 auto;
}

.dk-card-history-summary-icon .rzi {
    font-size: 1.25rem;
}

.dk-card-history-summary-text {
    min-width: 0;
    flex: 1 1 auto;
}

.dk-card-history-uid {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--rz-text-color, #1c2330);
    word-break: break-all;
}

.dk-card-history-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: var(--dk-statusbar-fg, #64748b);
}

.dk-card-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    max-height: min(52vh, 420px);
    overflow: auto;
    padding: 0.1rem 0.15rem 0.15rem;
}

.dk-card-history-item {
    --history-accent: #1353d3;
    --history-soft: #f0f5ff;

    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--dk-sidebar-border, #e6e8ec);
    border-left: 3px solid var(--history-accent);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.dk-card-history-item.is-positive {
    --history-accent: #15803d;
    --history-soft: #ecfdf5;
}

.dk-card-history-item.is-danger {
    --history-accent: #dc2626;
    --history-soft: #fef2f2;
}

.dk-card-history-item.is-neutral {
    --history-accent: #64748b;
    --history-soft: #f8fafc;
}

.dk-card-history-item.is-info {
    --history-accent: #1353d3;
    --history-soft: #f0f5ff;
}

.dk-card-history-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: var(--history-soft);
    color: var(--history-accent);
    flex: 0 0 auto;
}

.dk-card-history-item-icon .rzi {
    font-size: 1.05rem;
}

.dk-card-history-item-body {
    min-width: 0;
}

.dk-card-history-item-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.dk-card-history-item-title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--rz-text-color, #1c2330);
}

.dk-card-history-item-time {
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    color: var(--dk-statusbar-fg, #64748b);
    white-space: nowrap;
}

.dk-card-history-item-note {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--dk-statusbar-fg, #64748b);
}

.dk-card-history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 2rem 1rem;
    border: 1px dashed var(--dk-sidebar-border, #e6e8ec);
    border-radius: 12px;
    color: var(--dk-statusbar-fg, #64748b);
    font-size: 0.875rem;
    text-align: center;
}

.dk-card-history-empty .rzi {
    font-size: 1.75rem;
    opacity: 0.55;
}

.dk-card-history-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.15rem;
}

.dk-card-history-footer .rz-button {
    text-transform: none;
    letter-spacing: normal;
}

/* Stok hareketi detay — fiş tarzı dialog */
.dk-stock-receipt-dialog {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 0;
}

.dk-stock-receipt-head {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed var(--dk-sidebar-border, #e2e8f0);
}

.dk-stock-receipt-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--rz-text-color, #1c2330);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dk-stock-receipt-variant {
    margin: 0;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.3;
}

.dk-stock-receipt-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #64748b;
}

.dk-stock-receipt-qty {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid var(--dk-sidebar-border, #e2e8f0);
}

.dk-stock-receipt-qty-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #64748b;
}

.dk-stock-receipt-qty-value {
    font-size: 1.375rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: var(--rz-text-color, #1c2330);
}

.dk-stock-receipt-qty.is-in {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.dk-stock-receipt-qty.is-in .dk-stock-receipt-qty-value {
    color: #15803d;
}

.dk-stock-receipt-qty.is-out {
    background: #fef2f2;
    border-color: #fecaca;
}

.dk-stock-receipt-qty.is-out .dk-stock-receipt-qty-value {
    color: #b91c1c;
}

.dk-stock-receipt-lines {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.dk-stock-receipt-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.35;
}

.dk-stock-receipt-line dt {
    margin: 0;
    flex: 0 0 auto;
    color: #64748b;
    font-weight: 500;
}

.dk-stock-receipt-line dd {
    margin: 0;
    min-width: 0;
    text-align: right;
    font-weight: 600;
    color: var(--rz-text-color, #1c2330);
}

.dk-stock-receipt-note {
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: #fafbfc;
    border: 1px solid var(--dk-sidebar-border, #e6e8ec);
}

.dk-stock-receipt-note-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.dk-stock-receipt-note-text {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #334155;
    word-break: break-word;
}

/* Satış fişi detay dialogu */
.dk-sale-receipt-dialog {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.dk-sale-receipt-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--dk-sidebar-border, #e6e8ec);
}

.dk-sale-receipt-head-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    background: var(--dk-accent-soft, #e8f0ff);
    color: var(--dk-accent, #1d63ed);
}

.dk-sale-receipt-head-icon .rzi {
    font-size: 1.35rem;
}

.dk-sale-receipt-head-body {
    flex: 1 1 auto;
    min-width: 0;
}

.dk-sale-receipt-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.dk-sale-receipt-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--rz-text-color, #1c2330);
    font-variant-numeric: tabular-nums;
}

.dk-sale-receipt-date {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.35;
}

.dk-sale-receipt-ref {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.35;
}

.dk-sale-receipt-summary {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--dk-sidebar-border, #e6e8ec);
    border-radius: 10px;
    background: #f8fafc;
    overflow: hidden;
}

.dk-sale-receipt-summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--dk-sidebar-border, #e6e8ec);
}

.dk-sale-receipt-summary-row:last-child {
    border-bottom: 0;
}

.dk-sale-receipt-summary-row.is-total {
    background: #fff;
}

.dk-sale-receipt-summary-label {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
}

.dk-sale-receipt-summary-value {
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--rz-text-color, #1c2330);
    text-align: right;
    word-break: break-word;
}

.dk-sale-receipt-summary-row.is-total .dk-sale-receipt-summary-label {
    font-size: 0.8125rem;
    color: #334155;
}

.dk-sale-receipt-summary-row.is-total .dk-sale-receipt-summary-value {
    font-size: 0.9375rem;
    font-weight: 700;
}

.dk-sale-receipt-dialog .dk-report-receipt-detail {
    margin-top: 0.1rem;
}

.dk-form-kind-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
}

.dk-form-kind-field .dk-segment-tabs {
    display: flex;
    width: 100%;
    margin-bottom: 0;
}

.dk-form-kind-field .dk-segment-tab {
    flex: 1 1 0;
    min-width: 0;
}

/* ---- Ürün düzenleme formu ---- */
.dk-product-form.dk-edit-card.rz-card {
    padding: 0;
    overflow: hidden;
}

.dk-product-form-hero {
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid var(--dk-sidebar-border, #e6e8ec);
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.dk-product-form-hero .dk-photo-field-wrap {
    margin-bottom: 0;
}

.dk-product-form-aside {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 11rem;
}

.dk-product-kind-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--dk-accent-soft, #e8f0ff);
    color: var(--dk-accent, #1d63ed);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.dk-product-form-body {
    padding: 1.1rem 1.35rem 1.4rem;
}

/* Ürün formu: bölümler arasında tutarlı dikey boşluk (genel .dk-form-section kuralını geçersiz kılar) */
.dk-product-form-body > .dk-form-section + .dk-form-section,
.dk-product-form-body > .dk-product-form-split,
.dk-product-form-body > .dk-product-form-split + .dk-form-section {
    margin-top: 1.35rem;
    padding-top: 1.35rem;
    border-top: 1px solid var(--dk-sidebar-border, #e6e8ec);
}

/* Yan yana fiyat / stok — iç bölümlerde tekrar ayırıcı olmasın */
.dk-product-form-split .dk-form-section,
.dk-product-form-split .dk-form-section + .dk-form-section {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.dk-product-form-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 2rem;
    align-items: start;
}

.dk-product-form-body .dk-form-section-head {
    margin-bottom: 1rem;
}

.dk-product-form-body .dk-form-section-body {
    min-width: 0;
}

.dk-product-form-body .dk-form-section-body .rz-row {
    row-gap: 0.5rem;
}

.dk-product-form-body .dk-form-subpanel {
    margin-top: 0.15rem;
}

.dk-product-form-body .dk-category-path {
    margin-top: 0.15rem;
}

.dk-product-form-body .dk-form-hint {
    margin-top: 0.1rem;
}

.dk-segment-tabs-wide {
    display: flex;
    width: 100%;
    max-width: none;
}

.dk-segment-tabs-wide .dk-segment-tab {
    flex: 1 1 0;
    min-height: 36px;
    font-size: 0.8125rem;
}

.dk-segment-tabs-wide .dk-segment-tab:not(.is-active) {
    color: #64748b;
}

.dk-segment-tabs-wide .dk-segment-tab.is-active {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dk-accent, #1d63ed) 18%, transparent);
}

.dk-category-path {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: var(--dk-accent-soft, #e8f0ff);
    color: var(--dk-accent, #1d63ed);
    font-size: 0.8125rem;
    font-weight: 600;
}

.dk-category-path .rzi {
    font-size: 1rem;
}

/* ---- Varyantlar (ürün formu) ---- */
.dk-variant-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.dk-variant-panel {
    border: 1px solid var(--dk-sidebar-border, #e6e8ec);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    min-width: 0;
}

.dk-variant-panel.is-muted {
    background: #f8fafc;
}

.dk-variant-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 0.95rem 1.1rem;
    border-bottom: 1px solid var(--dk-sidebar-border, #e6e8ec);
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.dk-variant-panel.is-muted .dk-variant-panel-head {
    background: #f1f5f9;
}

.dk-variant-panel-intro {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
    flex: 1 1 16rem;
}

.dk-variant-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: var(--dk-accent-soft, #e8f0ff);
    color: var(--dk-accent, #1d63ed);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
}

.dk-variant-panel-title-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.dk-variant-panel-title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--dk-btn-fg, #0f172a);
}

.dk-variant-panel-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem 0.75rem;
    flex: 0 0 auto;
}

.dk-variant-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.55rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--dk-accent, #1d63ed);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.dk-variant-link-btn .rzi {
    font-size: 1rem;
}

.dk-variant-link-btn:hover:not(:disabled) {
    background: var(--dk-accent-soft, #e8f0ff);
}

.dk-variant-link-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.dk-variant-row-count {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--dk-btn-muted, #64748b);
}

.dk-variant-panel-body {
    padding: 1rem 1.1rem 1.1rem;
    min-width: 0;
}

.dk-variant-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
    gap: 0.65rem;
}

.dk-variant-type-card {
    appearance: none;
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    width: 100%;
    min-height: 3.25rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--dk-sidebar-border, #e2e8f0);
    border-radius: 10px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.12s ease, background-color 0.12s ease, box-shadow 0.12s ease;
}

.dk-variant-type-card:hover:not(:disabled) {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.dk-variant-type-card.is-active {
    border-color: var(--dk-accent, #1d63ed);
    background: var(--dk-accent-soft, #e8f0ff);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--dk-accent, #1d63ed) 18%, transparent);
}

.dk-variant-type-card:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.dk-variant-type-card-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #94a3b8;
    margin-top: 0.05rem;
}

.dk-variant-type-card-check .rzi {
    font-size: 1.125rem;
}

.dk-variant-type-card.is-active .dk-variant-type-card-check {
    color: var(--dk-accent, #1d63ed);
}

.dk-variant-type-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.dk-variant-type-card-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dk-btn-fg, #0f172a);
    line-height: 1.25;
}

.dk-variant-type-card-meta {
    font-size: 0.75rem;
    color: var(--dk-btn-muted, #64748b);
}

.dk-variant-selected-summary {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.85rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 0.8125rem;
}

.dk-variant-selected-summary .rzi {
    font-size: 1rem;
}

.dk-variant-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 1.5rem 1rem;
    text-align: center;
}

.dk-variant-empty.is-compact {
    padding: 1.15rem 0.75rem;
}

.dk-variant-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.dk-variant-empty-icon .rzi {
    font-size: 1.35rem;
}

.dk-variant-empty-title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--dk-btn-fg, #0f172a);
}

.dk-variant-empty-text {
    margin: 0 0 0.5rem;
    max-width: 26rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--dk-btn-muted, #64748b);
}

.dk-variant-table-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--dk-sidebar-border, #e6e8ec);
    border-radius: 10px;
    background: #fff;
}

.dk-variant-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.dk-variant-table th,
.dk-variant-table td {
    padding: 0.45rem 0.5rem;
    border-bottom: 1px solid var(--dk-sidebar-border, #e6e8ec);
    vertical-align: middle;
}

.dk-variant-table-attr-col {
    min-width: 5.75rem;
    width: 5.75rem;
}

.dk-variant-table-num-col {
    min-width: 4.5rem;
    width: 4.5rem;
}

.dk-variant-table th {
    background: #f8fafc;
    color: var(--dk-btn-muted, #64748b);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.dk-variant-table tbody tr:last-child td {
    border-bottom: 0;
}

.dk-variant-table tbody tr:hover {
    background: #fafbfc;
}

.dk-variant-table-stock {
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    color: var(--dk-btn-fg, #0f172a);
    white-space: nowrap;
    min-width: 3rem;
    width: 3rem;
}

.dk-variant-table-barcode-col {
    min-width: 12.5rem;
    width: 12.5rem;
}

.dk-variant-table .dk-variant-barcode-field {
    margin: 0;
}

.dk-variant-table .dk-variant-barcode-field .rz-form-field-content {
    min-width: 0;
}

.dk-variant-table .dk-variant-barcode-field .rz-inputtext {
    min-width: 0;
}

.dk-variant-table-actions-col {
    min-width: 2.5rem;
    width: 2.5rem;
    text-align: center;
}

.dk-variant-row-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #dc2626;
    cursor: pointer;
    transition: background-color 0.12s ease;
}

.dk-variant-row-delete .rzi {
    font-size: 1.125rem;
}

.dk-variant-row-delete:hover:not(:disabled) {
    background: #fef2f2;
}

.dk-variant-row-delete:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 960px) {
    .dk-variant-panel-head {
        flex-direction: column;
        align-items: stretch;
    }

    .dk-variant-panel-actions {
        justify-content: flex-start;
    }

    .dk-variant-type-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .dk-variant-type-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .dk-product-form-split {
        grid-template-columns: 1fr;
        gap: 1.35rem;
    }

    /* Mobilde fiyat / stok alt alta — araya ayırıcı */
    .dk-product-form-split .dk-form-section + .dk-form-section {
        margin-top: 1.35rem;
        padding-top: 1.35rem;
        border-top: 1px solid var(--dk-sidebar-border, #e6e8ec);
    }

    .dk-product-form-aside {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 1100px) {
    .dk-edit-page {
        grid-template-columns: 1fr;
    }

    .dk-cari-profile-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .dk-cari-profile-stat {
        align-items: flex-start;
        max-width: none;
        width: 100%;
    }

    .dk-cari-profile-stat-hint {
        text-align: left;
    }

    .dk-cari-meta-grid {
        grid-template-columns: 1fr;
    }
}

/* Outlined FormField yanındaki aksiyon butonu — dropdown ile alt hizalı (AlimYeni vb.) */
.dk-field-with-action {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    width: 100%;
}

.dk-field-with-action > .rz-form-field {
    flex: 1 1 auto;
    min-width: 0;
}

.dk-field-with-action > .rz-form-field .rz-form-field-content {
    margin-bottom: 0;
}

.dk-field-with-action > .rz-button {
    flex: 0 0 auto;
    align-self: flex-end;
    margin-bottom: 0;
    min-height: var(--rz-input-size-md, 2.5rem);
    min-width: var(--rz-input-size-md, 2.5rem);
    width: var(--rz-input-size-md, 2.5rem);
    padding: 0;
}

/* FormField içi + — listede yoksa hızlı ekle */
.dk-form-field-inline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.75rem;
    height: 1.75rem;
    margin-inline-end: 0.15rem;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--dk-accent, #1d63ed);
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease, opacity 0.12s ease;
}

.dk-form-field-inline-btn .rzi {
    font-size: 1.25rem;
}

.dk-form-field-inline-btn:hover:not(:disabled) {
    background: var(--dk-accent-soft, #e8f0ff);
    color: var(--dk-accent, #1d63ed);
}

.dk-form-field-inline-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--dk-accent, #1d63ed) 22%, transparent);
}

.dk-form-field-inline-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Form alanı içinde barkod vb. yanında kompakt anahtar */
.dk-form-field-inline-toggle .dk-photo-status-toggle {
    padding: 0.35rem 0.55rem;
    border-radius: 8px;
    gap: 0.4rem;
}

.dk-form-field-inline-toggle .dk-photo-status-label {
    font-size: 0.8125rem;
}

/* Alış faturası — toplam özeti satırları */
.dk-purchase-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--dk-btn-muted, #64748b);
}

.dk-purchase-summary-row strong {
    font-variant-numeric: tabular-nums;
    color: var(--dk-btn-fg, #0f172a);
}

.dk-purchase-summary-row.is-discount strong {
    color: #dc2626;
}

.dk-purchase-summary-row.is-grand {
    margin-top: 0.25rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--dk-sidebar-border, #e6e8ec);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--dk-btn-fg, #0f172a);
}

.dk-purchase-summary-row.is-grand strong {
    font-size: 1rem;
    color: var(--dk-accent, #1d63ed);
}

/* Alış faturası — kalem ekle satırı */
.dk-purchase-add-panel .dk-inline-form-row {
    align-items: flex-end;
    gap: 0.75rem;
}

.dk-purchase-add-barcode {
    flex: 0 0 11rem;
    min-width: 9rem;
}

.dk-purchase-add-product {
    flex: 1 1 16rem;
    min-width: 12rem;
}

.dk-purchase-add-variant {
    flex: 0 1 14rem;
    min-width: 10rem;
}

.dk-purchase-add-panel .dk-inline-form-actions {
    flex: 0 0 auto;
    padding-bottom: 0.1rem;
}

.dk-purchase-add-panel .dk-inline-form-actions .dk-btn {
    min-height: 2.5rem;
    padding-inline: 1rem;
}

@media (max-width: 768px) {
    .dk-purchase-add-panel .dk-inline-form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .dk-purchase-add-barcode,
    .dk-purchase-add-product,
    .dk-purchase-add-variant {
        flex: 1 1 auto;
        min-width: 0;
    }

    .dk-purchase-add-panel .dk-inline-form-actions {
        padding-bottom: 0;
    }

    .dk-purchase-add-panel .dk-inline-form-actions .dk-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Stok hareketleri — manuel düzeltme paneli */
.dk-stock-adjust-panel .dk-inline-form-row {
    align-items: flex-end;
    gap: 0.75rem;
}

.dk-stock-adjust-actions-row {
    margin-top: 0.75rem;
}

.dk-stock-adjust-product {
    flex: 1.5 1 14rem;
    min-width: 12rem;
}

.dk-stock-adjust-variant {
    flex: 1 1 12rem;
    min-width: 10rem;
}

.dk-stock-adjust-qty {
    flex: 0 0 7.5rem;
    min-width: 6.5rem;
}

.dk-stock-adjust-desc {
    flex: 1 1 auto;
    min-width: 12rem;
}

.dk-stock-adjust-panel .dk-inline-form-actions {
    flex: 0 0 auto;
    padding-bottom: 0.1rem;
}

.dk-stock-adjust-panel .dk-inline-form-actions .dk-btn {
    min-height: 2.5rem;
    padding-inline: 1rem;
}

@media (max-width: 768px) {
    .dk-stock-adjust-panel .dk-inline-form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .dk-stock-adjust-product,
    .dk-stock-adjust-variant,
    .dk-stock-adjust-qty,
    .dk-stock-adjust-desc {
        flex: 1 1 auto;
        min-width: 0;
    }

    .dk-stock-adjust-panel .dk-inline-form-actions {
        padding-bottom: 0;
    }

    .dk-stock-adjust-panel .dk-inline-form-actions .dk-btn {
        width: 100%;
        justify-content: center;
    }
}

.dk-field-action-btn {
    border: 1px solid var(--dk-btn-border, #e2e8f0) !important;
    border-radius: var(--dk-btn-radius, 6px) !important;
    background: #fff !important;
    color: var(--dk-accent, #1d63ed) !important;
    box-shadow: none !important;
    transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.dk-field-action-btn .rzi {
    font-size: 1.25rem;
}

.dk-field-action-btn:hover:not(.rz-state-disabled):not(:disabled) {
    background: var(--dk-accent-soft, #e8f0ff) !important;
    border-color: color-mix(in srgb, var(--dk-accent, #1d63ed) 28%, var(--dk-btn-border, #e2e8f0)) !important;
    color: var(--dk-accent, #1d63ed) !important;
}

.dk-field-action-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--dk-accent, #1d63ed) 22%, transparent) !important;
}

.dk-field-action-btn.rz-state-disabled,
.dk-field-action-btn:disabled {
    opacity: 0.45;
    background: #f8fafc !important;
    color: var(--dk-btn-muted, #64748b) !important;
    border-color: var(--dk-btn-border, #e2e8f0) !important;
}

/* ---- Blazor ErrorBoundary — kullanıcı dostu hata kartı ---- */
.dk-error-fallback {
    box-sizing: border-box;
    max-width: 32rem;
    margin: 1.5rem auto;
    padding: 1.5rem 1.25rem;
    border: 1px solid var(--dk-sidebar-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--rz-card-shadow);
    text-align: center;
}

.dk-error-fallback-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
    border-radius: 12px;
    background: #fef2f2;
    color: #dc2626;
}

.dk-error-fallback-icon .rzi {
    font-size: 28px;
}

.dk-error-fallback-title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dk-btn-fg);
}

.dk-error-fallback-text {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--dk-btn-muted);
}

.dk-error-fallback-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.dk-error-fallback-details {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--dk-sidebar-border);
    text-align: left;
}

.dk-error-fallback-details summary {
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--dk-btn-muted);
}

.dk-error-fallback-message,
.dk-error-fallback-stack {
    margin: 0.65rem 0 0;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid var(--dk-sidebar-border);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.72rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    color: #334155;
    overflow-x: auto;
}

.dk-sheet-print-meta {
    display: none;
    font-size: 0.875rem;
    color: var(--rz-text-secondary-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.dk-sheet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    background: var(--rz-base-background-color);
    box-shadow: var(--rz-shadow-1);
}

.dk-sheet-table th,
.dk-sheet-table td {
    border: 1px solid var(--rz-border-color);
    padding: 0.45rem 0.55rem;
    vertical-align: middle;
}

.dk-sheet-table th {
    background: var(--rz-base-100);
    font-weight: 600;
    text-align: left;
}

.dk-sheet-col-no {
    width: 2.5rem;
    text-align: center;
}

.dk-sheet-col-barcode {
    width: 8.5rem;
    font-family: ui-monospace, monospace;
    font-size: 0.8125rem;
}

.dk-sheet-col-variant {
    width: 8rem;
}

.dk-sheet-col-unit {
    width: 3.5rem;
    text-align: center;
}

.dk-sheet-col-system {
    width: 4.5rem;
    text-align: end;
}

.dk-sheet-col-count {
    width: 5rem;
    min-height: 1.75rem;
}

@media print {
    .dk-sidebar,
    .dk-header,
    .report-toolbar,
    .no-print,
    .dk-sidebar-toggle {
        display: none !important;
    }

    .dk-body {
        display: block !important;
    }

    .dk-main {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .report-print-area {
        width: 100% !important;
    }

    .report-print-title {
        font-size: 1.25rem;
        font-weight: 700;
        margin-bottom: 0.75rem;
    }

    .only-print {
        display: block !important;
    }

    .dk-sheet-print-meta {
        display: block !important;
    }

    .dk-sheet-table {
        box-shadow: none;
        font-size: 10pt;
    }

    .dk-sheet-table th {
        background: #f3f4f6 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .dk-sheet-col-count {
        min-height: 1.5rem;
    }
}

/* ---- Ayarlar sayfası ---- */
.dk-settings-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 12rem;
    padding: 2rem;
}

.dk-settings-loading.is-inline {
    min-height: 6rem;
}

.dk-settings-page {
    display: grid;
    grid-template-columns: minmax(11rem, 13.5rem) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.dk-settings-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    position: sticky;
    top: 0.75rem;
    padding: 0.5rem;
    border: 1px solid var(--dk-sidebar-border, #e6e8ec);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dk-settings-nav-item {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
    color: #64748b;
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.dk-settings-nav-item .rzi {
    font-size: 1.125rem;
    flex-shrink: 0;
}

.dk-settings-nav-item:hover:not(.is-active) {
    background: #f8fafc;
    color: #334155;
}

.dk-settings-nav-item.is-active {
    background: var(--dk-accent-soft, #e8f0ff);
    color: var(--dk-accent, #1d63ed);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dk-accent, #1d63ed) 18%, transparent);
}

.dk-settings-nav-item:focus-visible {
    outline: 2px solid var(--dk-accent, #1d63ed);
    outline-offset: 1px;
}

.dk-settings-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dk-settings-section-head {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dk-settings-section-title-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.dk-settings-section-title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--rz-text-color, #1c2330);
}

.dk-settings-toggle-title-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.dk-settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(20rem, 34%);
    gap: 1rem;
    align-items: start;
}

.dk-settings-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.dk-settings-card.rz-card {
    padding: 0;
    overflow: hidden;
    height: 100%;
}

.dk-settings-card-head {
    padding: 1rem 1.15rem 0.85rem;
    border-bottom: 1px solid var(--dk-sidebar-border, #e6e8ec);
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.dk-settings-card-head .dk-panel-head-title {
    width: 100%;
}

.dk-settings-card-body {
    padding: 1rem 1.15rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.dk-settings-card-head .dk-panel-head-text,
.dk-settings-toggle-title-row {
    overflow: visible;
}

.dk-settings-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}

.dk-settings-form-grid.is-single-col {
    grid-template-columns: 1fr;
}

.dk-settings-form-grid .is-wide {
    grid-column: 1 / -1;
}

.dk-settings-form-grid .is-wide.is-spaced {
    margin-bottom: 0.5rem;
}

.dk-settings-form-grid .rz-form-field {
    --rz-form-field-margin-block: 0;
}

.dk-settings-narrow-field {
    max-width: 16rem;
}

.dk-settings-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--dk-sidebar-border, #e6e8ec);
    border-radius: 10px;
    background: #f8fafc;
}

.dk-settings-toggle-copy {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    flex: 1 1 auto;
}

.dk-settings-toggle-title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--rz-text-color, #1c2330);
}

.dk-settings-toggle .rz-switch {
    flex: 0 0 auto;
}

.dk-settings-divider {
    height: 1px;
    margin: 0.15rem 0;
    background: var(--dk-sidebar-border, #e6e8ec);
}

.dk-settings-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.35rem;
}

.dk-settings-actions.is-compact {
    padding-top: 0;
}

.dk-settings-actions .rz-button {
    text-transform: none;
    letter-spacing: normal;
}

.dk-settings-api-key {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--dk-sidebar-border, #e6e8ec);
    border-radius: 10px;
    background: #0f172a;
}

.dk-settings-api-key-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.dk-settings-api-key-value {
    display: block;
    font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #e2e8f0;
    word-break: break-all;
}

.dk-settings-ip-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dk-settings-ip-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--dk-sidebar-border, #e6e8ec);
    border-radius: 10px;
    background: #f8fafc;
}

.dk-settings-ip-value {
    font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--rz-text-color, #1c2330);
    word-break: break-all;
}

.dk-settings-port-hint {
    font-size: 0.8125rem;
    color: #64748b;
}

.dk-settings-connected-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.dk-settings-connected {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
}

.dk-settings-connected-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--dk-accent, #1d63ed);
}

.dk-settings-connected-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--rz-text-color, #1c2330);
}

.dk-settings-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.dk-settings-mode-card {
    appearance: none;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--dk-sidebar-border, #e2e8f0);
    border-radius: 10px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.12s ease, background-color 0.12s ease, box-shadow 0.12s ease;
}

.dk-settings-mode-card:hover:not(.is-active) {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.dk-settings-mode-card.is-active {
    border-color: var(--dk-accent, #1d63ed);
    background: var(--dk-accent-soft, #e8f0ff);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--dk-accent, #1d63ed) 18%, transparent);
}

.dk-settings-mode-card:focus-visible {
    outline: 2px solid var(--dk-accent, #1d63ed);
    outline-offset: 1px;
}

.dk-settings-mode-card-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: #fff;
    color: var(--dk-accent, #1d63ed);
}

.dk-settings-mode-card.is-active .dk-settings-mode-card-icon {
    background: #fff;
}

.dk-settings-mode-card-icon .rzi {
    font-size: 1.125rem;
}

.dk-settings-mode-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.dk-settings-mode-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--rz-text-color, #1c2330);
}

.dk-license-status {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.45;
}

.dk-license-status .rzi {
    flex-shrink: 0;
    font-size: 1.125rem;
    margin-top: 0.05rem;
}

.dk-license-status.is-success {
    border: 1px solid #abefc6;
    background: #ecfdf3;
    color: #067647;
}

.dk-license-status.is-warning {
    border: 1px solid #fedf89;
    background: #fffbeb;
    color: #b54708;
}

.dk-license-status.is-danger {
    border: 1px solid #fecdca;
    background: #fef3f2;
    color: #b42318;
}

.dk-license-status.is-info {
    border: 1px solid #b2ddff;
    background: #eff8ff;
    color: #175cd3;
}

.dk-settings-card-full {
    max-width: 52rem;
}

.dk-settings-card-device,
.dk-settings-card-license {
    max-width: 42rem;
}

@media (max-width: 1100px) {
    .dk-settings-layout {
        grid-template-columns: 1fr;
    }

    .dk-settings-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dk-settings-page {
        grid-template-columns: 1fr;
    }

    .dk-settings-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .dk-settings-nav-item {
        flex: 1 1 calc(50% - 0.2rem);
        min-width: 9rem;
        justify-content: center;
        text-align: center;
    }

    .dk-settings-nav-item span:last-child {
        display: none;
    }

    .dk-settings-form-grid,
    .dk-settings-mode-grid {
        grid-template-columns: 1fr;
    }
}
