/* Uzser Deploy'a özgü kurallar. Ortak tasarım sistemi uzser.css'te (AI Engine ile aynı jetonlar). */

/* ---- Logo: Uzser işareti + ürün adı ---- */
a.uzser-brand, a.uzser-brand:hover { text-decoration: none; }
.uz-logo { gap: 9px; }
.uz-logo-urun {
    font-weight: 700; font-size: 19px; letter-spacing: -.3px; line-height: 1;
    color: #223a65; white-space: nowrap;
}
.uz-logo-urun b { color: #fc5f00; font-weight: 800; }
@media (prefers-color-scheme: dark) {
    :root:not([data-uz-theme="light"]) .uz-logo-urun { color: #fff; }
}
:root[data-uz-theme="dark"] .uz-logo-urun { color: #fff; }
.uz-giris-marka .uz-logo { height: 52px; }
.uz-giris-marka .uz-logo-urun { color: #fff; font-size: 32px; }

/* ---- Izgara hücre çizgileri: DevExpress temasının dikey çizgileri koyu temada fazla parlak ---- */
.dxbl-grid td, .dxbl-grid th { border-color: var(--uz-border-soft) !important; }

/* ---- Sayfa başlığı: alt başlık ---- */
.uzser-page-title { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.uzser-page-sub { margin: 0; padding-left: 15px; font-size: 13px; color: var(--uz-ink-soft); }

/* ---- KPI kartı bağlantı olarak ---- */
a.uzser-kpi { color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.uzser-kpi:hover { border-color: var(--uz-brand); box-shadow: var(--uz-shadow-card); }
.uzser-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 22px; }

/* ---- Bölüm başlığı (sayfa içi) ---- */
.uzser-section-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 15px; font-weight: 600; color: var(--uz-ink); margin: 6px 0 12px;
}
.uzser-section-title .bi { color: var(--uz-ink-soft); }

/* ---- Tanım listesi (makine ayrıntısı vb.) ---- */
.uzser-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 22px; }
.uzser-facts .k { font-size: 12px; color: var(--uz-ink-soft); font-weight: 500; }
.uzser-facts .v { font-size: 14px; color: var(--uz-ink); word-break: break-word; }

/* ---- Yan menü: başlıklı gruplar (NavMenu). Renkler kenar çubuğu jetonlarından: açık/koyu temada aynı. ---- */
.uzn { display: flex; flex-direction: column; padding: 4px 10px 8px; }
.uzn-section { display: flex; flex-direction: column; gap: 2px; }
.uzn-section + .uzn-section { margin-top: 10px; }
.uzn-title {
    font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--uz-sidebar-muted); padding: 6px 12px 4px; white-space: nowrap;
}
.uzn-item {
    display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--uz-radius-sm);
    border-left: var(--uz-stripe) solid transparent; color: var(--uz-sidebar-fg); text-decoration: none;
    font-size: .875rem; line-height: 1.25; white-space: nowrap;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.uzn-item:hover { background: var(--uz-sidebar-hover-bg); color: var(--uz-sidebar-hover-fg); }
.uzn-item.active { background: var(--uz-sidebar-active-bg); color: var(--uz-sidebar-active-fg); border-left-color: var(--uz-sidebar-accent); font-weight: 600; }
.uzn-item:focus-visible { outline: 2px solid var(--uz-sidebar-accent); outline-offset: -2px; }
.uzn-item .bi { width: 18px; text-align: center; font-size: 1rem; opacity: .9; flex: 0 0 auto; }
.uzn-text { overflow: hidden; text-overflow: ellipsis; }
.uzn-foot { padding: 12px 22px 4px; font-size: 11px; color: var(--uz-sidebar-muted); white-space: nowrap; }

/* Simge modu: başlık ve metin gizlenir, gruplar ince çizgiyle ayrılır. */
.uzser-shell.dar .uzser-sidebar:not(:hover):not(:focus-within) .uzn { padding-inline: 8px; }
.uzser-shell.dar .uzser-sidebar:not(:hover):not(:focus-within) .uzn-title,
.uzser-shell.dar .uzser-sidebar:not(:hover):not(:focus-within) .uzn-text,
.uzser-shell.dar .uzser-sidebar:not(:hover):not(:focus-within) .uzn-foot { display: none; }
.uzser-shell.dar .uzser-sidebar:not(:hover):not(:focus-within) .uzn-section + .uzn-section {
    border-top: 1px solid var(--uz-sidebar-border); padding-top: 8px;
}
.uzser-shell.dar .uzser-sidebar:not(:hover):not(:focus-within) .uzn-item { justify-content: center; padding-inline: 0; gap: 0; }
/* Uzun klasör yollarını tek satırda kısalt; tam yol title ile görünür. */
.path-cell {
    display: inline-block; max-width: 320px; overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; vertical-align: bottom;
}

/* Kod / komut kutuları (token, kurulum komutu). */
.uzser-code {
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 12.5px;
    background: var(--uz-surface-sunk); color: var(--uz-ink);
    border: 1px solid var(--uz-border); border-radius: var(--uz-radius-sm);
}

.blazor-error-boundary {
    background: var(--uz-danger-soft); color: var(--uz-danger); padding: 1rem 1.25rem;
    border-radius: var(--uz-radius); border: 1px solid var(--uz-danger);
}
.blazor-error-boundary::after { content: "Bu bölüm yüklenirken bir hata oluştu."; }

h1:focus { outline: none; }

/* Yapılandırma sayfası: ürün / müşteri / ayar dosyası seçimi */
.config-toolbar {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(200px, 1fr) minmax(260px, 1.4fr);
    gap: 16px;
    align-items: end;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .config-toolbar { grid-template-columns: 1fr; }
}

/* Bildirim zili ve açılır listesi (hesap menüsüyle aynı jetonlar: koyu temada da doğru renk). */
.uzser-bell { position: relative; cursor: pointer; }
.uzser-bell i { font-size: 18px; }
.uzser-bell-badge {
    position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px;
    border-radius: 9px; background: #dc2626; color: #fff; font-size: 10px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.uzser-notif-pop {
    position: absolute; right: 0; top: 46px; width: 360px; max-width: calc(100vw - 32px);
    background: var(--uz-surface-alt); border: 1px solid var(--uz-border);
    border-radius: var(--uz-radius); box-shadow: var(--uz-shadow-float); z-index: 50; overflow: hidden;
}
.uzser-notif-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--uz-border); color: var(--uz-ink); }
.uzser-notif-empty { padding: 18px 14px; color: var(--uz-ink-soft); font-size: 13px; }
.uzser-notif-item {
    display: block; width: 100%; text-align: left; background: none; border: 0; border-left: 3px solid transparent;
    padding: 9px 14px; border-bottom: 1px solid var(--uz-border); color: var(--uz-ink); cursor: pointer;
}
.uzser-notif-item:hover { background: var(--uz-brand-soft); }
.uzser-notif-item.unread { background: color-mix(in srgb, var(--uz-brand-soft) 55%, transparent); }
.uzser-notif-item.unread .t { font-weight: 700; }
.uzser-notif-item.sev-error { border-left-color: #dc2626; }
.uzser-notif-item.sev-warning { border-left-color: #d97706; }
.uzser-notif-item.sev-success { border-left-color: #16a34a; }
.uzser-notif-item.sev-info { border-left-color: #2563eb; }
.uzser-notif-item .t { font-size: 13px; }
.uzser-notif-item .m { font-size: 12px; color: var(--uz-ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uzser-notif-item .d { font-size: 11px; color: var(--uz-ink-soft); margin-top: 2px; }
.uzser-notif-all { display: block; text-align: center; padding: 10px; font-size: 13px; font-weight: 600; }
/* Özet ekranı */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; margin-bottom: 18px; }
@media (max-width: 520px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-card { display: flex; flex-direction: column; min-width: 0; }
.dash-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.dash-card-head h3 { font-size: 15px; font-weight: 700; margin: 0; color: var(--uz-ink); }
.dash-card-head h3 i { color: var(--uz-brand); margin-right: 6px; }
.dash-empty { color: var(--uz-ink-soft); font-size: 13px; padding: 18px 0; }
.dash-empty i { color: #16a34a; }

.dash-chart { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 6px; border-bottom: 1px solid var(--uz-border); }
.dash-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; position: relative; }
.dash-bar-stack { display: flex; flex-direction: column; border-radius: 4px 4px 0 0; overflow: hidden; min-height: 2px; background: var(--uz-border); }
.dash-bar-ok { background: #16a34a; }
.dash-bar-fail { background: #dc2626; }
.dash-bar-label { position: absolute; bottom: -18px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--uz-ink-soft); }
.dash-legend { display: flex; gap: 16px; margin-top: 24px; font-size: 12px; color: var(--uz-ink-soft); }
.dash-dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.dash-dot.ok { background: #16a34a; }
.dash-dot.fail { background: #dc2626; }

.dash-list { display: flex; flex-direction: column; max-height: 290px; overflow-y: auto; }
.dash-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 6px; border-bottom: 1px solid var(--uz-border); color: var(--uz-ink); text-decoration: none; border-radius: 6px; }
.dash-item:hover { background: var(--uz-brand-soft); }
.dash-item > i { font-size: 16px; margin-top: 1px; }
.dash-item.sev-error > i { color: #dc2626; }
.dash-item.sev-warning > i { color: #d97706; }
.dash-item.sev-info > i { color: #2563eb; }
.dash-item .t { font-size: 13px; font-weight: 600; }
.dash-item .m { font-size: 12px; color: var(--uz-ink-soft); }

.dash-product { padding: 8px 0; border-bottom: 1px solid var(--uz-border); }
.dash-product:last-child { border-bottom: 0; }
.dash-product-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.dash-progress { height: 8px; border-radius: 4px; background: var(--uz-border); overflow: hidden; }
.dash-progress > div { height: 100%; border-radius: 4px; }
.dash-progress .ok { background: #16a34a; }
.dash-progress .mid { background: #d97706; }
.dash-progress .low { background: #dc2626; }
.dash-versions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
/* Devre dışı düzenleyici: blazing-berry onu ::after katmanıyla düz BEYAZ boyuyor; açık temada görünmüyor, koyu temada
   beyaz kutu olarak çıkıyordu (Yapılandırma'da ürün seçilmeden müşteri kutusu). Katman kaldırılır, devre dışı hali iki
   temada da soluklukla verilir. */
.dxbl-text-edit.dxbl-disabled::after { background-color: transparent !important; }
.dxbl-text-edit.dxbl-disabled { opacity: .55; }