/* XNBD Filament panel — koyu lacivert + altın dokunuşlar */
.dark .fi-body,
.dark .fi-main-ctn { background: #070d1a; }
.dark .fi-sidebar,
.dark .fi-topbar > nav { background: #0a1323 !important; border-color: rgba(217, 168, 78, .15) !important; }
.dark .fi-section,
.dark .fi-ta-ctn,
.dark .fi-wi-stats-overview-stat { background: #0f1a2e; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
.dark .fi-sidebar-item-active > a { background: rgba(217, 168, 78, .12) !important; }
.fi-simple-layout { background: radial-gradient(60% 60% at 70% 20%, rgba(217, 168, 78, .14), transparent 60%), #060c18 !important; }
.fi-simple-main { border: 1px solid rgba(217, 168, 78, .25); box-shadow: 0 30px 80px rgba(0, 0, 0, .55) !important; }
.xnbd-view-site {
    display: inline-flex; align-items: center; margin-inline-start: .75rem; padding: .4rem .9rem;
    border: 1px solid rgba(217, 168, 78, .6); border-radius: 999px; color: #e7bd63;
    font-size: .85rem; font-weight: 600; white-space: nowrap;
}
.xnbd-view-site:hover { background: rgba(217, 168, 78, .12); }

/* ===== Destek talebi yazışma görünümü ===== */
.xt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 22px; border-radius: 16px; border: 1px solid rgba(231, 189, 99, .2); background: linear-gradient(135deg, rgba(231, 189, 99, .08), transparent 60%); }
.xt-number { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: #d9a84e; }
.xt-subject { margin: 4px 0 6px; font-size: 20px; font-weight: 800; }
.xt-meta { margin: 0; font-size: 13px; opacity: .75; }
.xt-thread { display: flex; flex-direction: column; gap: 16px; }
.xt-msg { display: flex; gap: 12px; max-width: 820px; }
.xt-msg.is-mine { flex-direction: row-reverse; margin-left: auto; }
.xt-avatar { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: rgba(148, 163, 184, .2); }
.xt-msg.is-staff .xt-avatar { background: linear-gradient(135deg, #f6dc97, #b8862f); color: #1a1205; }
.xt-bubble { flex: 1; padding: 14px 18px; border-radius: 16px; border: 1px solid rgba(148, 163, 184, .2); background: rgba(148, 163, 184, .06); }
.xt-msg.is-staff .xt-bubble { border-color: rgba(231, 189, 99, .3); background: rgba(231, 189, 99, .07); }
.xt-bubble-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: 13px; }
.xt-bubble-head span { opacity: .6; }
.xt-body { white-space: pre-line; line-height: 1.65; font-size: 14px; }
.xt-attach { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 600; color: #d9a84e; }
.xt-closed { text-align: center; font-size: 13px; opacity: .65; }
.xt-head .fi-badge { width: fit-content; flex-shrink: 0; }

/* ===== Canlı destek ===== */
.xchat { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: calc(100vh - 220px); min-height: 480px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(148, 163, 184, .2); }
.xchat-list { overflow-y: auto; border-right: 1px solid rgba(148, 163, 184, .15); background: rgba(148, 163, 184, .03); }
.xchat-filter { display: flex; gap: 6px; padding: 12px; position: sticky; top: 0; background: inherit; backdrop-filter: blur(8px); z-index: 1; }
.xchat-filter button { flex: 1; padding: 6px; border-radius: 8px; font-size: 12px; font-weight: 700; border: 1px solid rgba(148, 163, 184, .2); }
.xchat-filter button.is-on { background: rgba(217, 168, 78, .15); border-color: #d9a84e; color: #d9a84e; }
.xchat-item { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; text-align: left; border-bottom: 1px solid rgba(148, 163, 184, .1); }
.xchat-item:hover { background: rgba(217, 168, 78, .06); }
.xchat-item.is-active { background: rgba(217, 168, 78, .12); box-shadow: inset 3px 0 0 #d9a84e; }
.xchat-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: rgba(148, 163, 184, .2); }
.xchat-item.is-unread .xchat-av { background: linear-gradient(135deg, #f6dc97, #b8862f); color: #1a1205; }
.xchat-meta { min-width: 0; }
.xchat-meta strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xchat-meta em { font-style: normal; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 99px; background: rgba(16, 185, 129, .15); color: #10b981; }
.xchat-meta small { display: block; font-size: 12px; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xchat-item.is-unread .xchat-meta small { opacity: 1; font-weight: 600; }
.xchat-time { font-size: 11px; opacity: .6; display: grid; justify-items: end; gap: 4px; }
.xchat-time b { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #ef4444; color: #fff; font-size: 10px; display: grid; place-items: center; opacity: 1; }
.xchat-empty { padding: 20px; font-size: 13px; opacity: .7; }
.xchat-main { display: flex; flex-direction: column; min-width: 0; }
.xchat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(148, 163, 184, .15); }
.xchat-head small { display: block; font-size: 12px; opacity: .65; }
.xchat-actions { display: flex; gap: 6px; }
.xchat-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.xchat-msg { display: grid; gap: 3px; justify-items: start; max-width: 75%; }
.xchat-msg.is-me { align-self: flex-end; justify-items: end; }
.xchat-bubble { padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: rgba(148, 163, 184, .12); white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.5; }
.xchat-msg.is-me .xchat-bubble { border-radius: 14px 14px 4px 14px; background: linear-gradient(135deg, #f6dc97, #d9a84e); color: #1a1205; }
.xchat-msg small { font-size: 11px; opacity: .55; }
.xchat-form { display: flex; gap: 10px; align-items: flex-end; padding: 12px 14px; border-top: 1px solid rgba(148, 163, 184, .15); }
.xchat-form textarea { flex: 1; resize: none; border-radius: 12px; border: 1px solid rgba(148, 163, 184, .25); background: transparent; padding: 10px 12px; font-size: 14px; }
.xchat-form textarea:focus { outline: none; border-color: #d9a84e; box-shadow: 0 0 0 3px rgba(217, 168, 78, .15); }
.xchat-err { padding: 0 14px 10px; color: #f87171; font-size: 12px; }
.xchat-placeholder { flex: 1; display: grid; place-items: center; align-content: center; gap: 8px; opacity: .5; }
@media (max-width: 900px) { .xchat { grid-template-columns: 1fr; height: auto; } .xchat-list { max-height: 260px; } .xchat-msgs { min-height: 320px; } }

/* ===== Takvim ===== */
.xcal-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.xcal-nav { display: flex; align-items: center; gap: 8px; }
.xcal-nav h2 { font-size: 20px; font-weight: 800; min-width: 160px; text-align: center; text-transform: capitalize; }
.xcal-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 12px; }
.xcal-legend span { display: inline-flex; align-items: center; gap: 6px; opacity: .8; }
.xcal-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.xcal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid rgba(148, 163, 184, .25); border-radius: 14px; overflow: hidden; }
.xcal-wd { padding: 8px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .6; text-align: center; border-bottom: 1px solid rgba(148, 163, 184, .25); }
.xcal-day { min-height: 112px; padding: 6px; border-right: 1px solid rgba(148, 163, 184, .15); border-bottom: 1px solid rgba(148, 163, 184, .15); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.xcal-day:nth-child(7n + 7) { border-right: 0; }
.xcal-day.is-out { opacity: .4; }
.xcal-day.is-today { background: rgba(217, 168, 78, .08); box-shadow: inset 0 0 0 2px rgba(217, 168, 78, .6); }
.xcal-num { font-size: 12px; font-weight: 700; opacity: .75; }
.xcal-ev { display: block; font-size: 11.5px; line-height: 1.3; padding: 3px 6px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.xcal-ev:hover { background: color-mix(in srgb, var(--c) 26%, transparent); }
.xcal-ev.is-done { text-decoration: line-through; opacity: .55; }
.xcal-more { font-size: 11px; opacity: .6; padding-left: 4px; }
.is-task { --c: #d9a84e; } .is-project { --c: #8b5cf6; } .is-renewal { --c: #0ea5e9; } .is-invoice { --c: #ef4444; }
@media (max-width: 900px) { .xcal-day { min-height: 80px; } .xcal-ev { font-size: 10px; padding: 2px 4px; } }
.xchat-depts { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 10px 10px; }
.xchat-depts button { font-size: 11px; padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(148, 163, 184, .3); }
.xchat-depts button.is-on { border-color: #d9a84e; color: #d9a84e; }
.xchat-dept { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgba(217, 168, 78, .15); color: #d9a84e; margin-top: 2px; }
/* Kurulum kuyruğu */
.xq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.xq-card { display: grid; gap: 10px; padding: 18px; border-radius: 16px; border: 1px solid rgba(148, 163, 184, .25); background: rgba(255, 255, 255, .02); }
.xq-head { display: flex; justify-content: space-between; font-size: 12px; opacity: .8; }
.xq-type { font-weight: 800; color: #d9a84e; text-transform: uppercase; letter-spacing: .08em; }
.xq-card h3 { font-size: 17px; font-weight: 800; margin: 0; }
.xq-cust { font-size: 13px; opacity: .75; margin: 0; }
.xq-steps { margin: 0; padding-left: 18px; font-size: 13px; display: grid; gap: 3px; list-style: decimal; opacity: .9; }
.xq-card textarea { width: 100%; font-size: 13px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(148, 163, 184, .3); background: transparent; }
/* Müşteri kartı */
.xcs { display: grid; gap: 14px; }
.xcs-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.xcs-stat { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(148, 163, 184, .2); border-left-width: 3px; }
.xcs-stat small { display: block; font-size: 11.5px; opacity: .7; }
.xcs-stat strong { font-size: 16px; }
.xcs-stat.is-success { border-left-color: #22c55e; } .xcs-stat.is-warning { border-left-color: #f59e0b; } .xcs-stat.is-danger { border-left-color: #ef4444; } .xcs-stat.is-primary { border-left-color: #d9a84e; }
.xcs-note { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 14px; border-radius: 12px; background: rgba(217, 168, 78, .08); font-size: 13px; }
.xcs-note p { margin: 0; flex-basis: 100%; }
.xcs-tag { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: rgba(217, 168, 78, .2); color: #d9a84e; }
.xcs-timeline summary { cursor: pointer; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.xcs-timeline ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.xcs-timeline li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 13px; padding: 6px 10px; border-radius: 8px; background: rgba(148, 163, 184, .06); }
.xcs-timeline li.is-success svg { color: #22c55e; } .xcs-timeline li.is-warning svg { color: #f59e0b; } .xcs-timeline li.is-info svg { color: #38bdf8; } .xcs-timeline li.is-primary svg { color: #d9a84e; }
.xcs-timeline time { font-size: 11.5px; opacity: .6; }
.xh-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.xh-list li { display: grid; grid-template-columns: auto minmax(180px, 280px) 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgba(148, 163, 184, .06); font-size: 14px; }
.xh-list li.is-ok svg { color: #22c55e; } .xh-list li.is-bad svg { color: #f59e0b; }
.xh-list li span { opacity: .75; font-size: 13px; }
.xh-info { display: grid; grid-template-columns: 160px 1fr; gap: 6px 12px; font-size: 13px; }
.xh-info dt { opacity: .6; }
@media (max-width: 700px) { .xh-list li { grid-template-columns: auto 1fr; } .xh-list li span { grid-column: 2; } }
.xren-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid rgba(148, 163, 184, .15); }
.xren-row:last-child { border-bottom: 0; }
.xren-row span { display: grid; } .xren-row small { font-size: 12px; opacity: .65; }
.xren-row time { text-align: right; display: grid; font-size: 13px; font-weight: 700; }
.xren-row time.is-soon { color: #f59e0b; } .xren-row time.is-late { color: #ef4444; }
.xact { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.xact li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.xact-ev { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(217, 168, 78, .15); color: #d9a84e; white-space: nowrap; }
.xact-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xact time { font-size: 11.5px; opacity: .6; white-space: nowrap; }
.xact-all { display: inline-block; margin-top: 10px; font-size: 13px; color: #d9a84e; }
