/* =====================================================================
   INNO PISTON ERP — arayüz stilleri
   Marka: turuncu #F15A24, grafit #4A4A4A
   ===================================================================== */
:root {
  --brand: #f15a24;
  --brand-600: #d94a17;
  --brand-50: #fff3ee;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-2: #eef0f3;
  --bg: #f4f5f7;
  --card: #ffffff;
  --side: #16181d;
  --side-2: #1e2128;
  --side-ink: #a9afbb;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --bs-primary: #f15a24;
  --bs-primary-rgb: 241, 90, 36;
  --bs-link-color: #d94a17;
  --bs-link-hover-color: #b83c10;
  --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-body-font-size: .875rem;
  --bs-body-color: #1f2937;
  --bs-border-color: #e5e7eb;
}
html, body { background: var(--bg); }
body { font-feature-settings: "cv02", "cv03", "cv04", "cv11", "tnum"; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
.num, .table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82em; letter-spacing: -.01em; }

/* ---------------------------------------------------------------- Layout */
.app-side {
  position: fixed; inset: 0 auto 0 0; width: 252px; background: var(--side); color: var(--side-ink);
  display: flex; flex-direction: column; z-index: 1040; transition: transform .2s ease;
}
.app-side .brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.app-side .brand img { height: 34px; width: auto; background: #fff; border-radius: 8px; padding: 3px 6px; }
.app-side .brand .t1 { color: #fff; font-weight: 700; letter-spacing: .3px; font-size: 15px; line-height: 1.1; }
.app-side .brand .t2 { font-size: 11px; color: #7c8494; }
.app-side nav { flex: 1; overflow-y: auto; padding: 8px 10px 20px; scrollbar-width: thin; scrollbar-color: #333843 transparent; }
.app-side .sec { font-size: 10.5px; font-weight: 600; letter-spacing: .9px; text-transform: uppercase; color: #5f6675; padding: 16px 10px 6px; }
.app-side nav a {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px; margin: 1px 0; border-radius: 8px;
  color: var(--side-ink); font-size: 13.5px; font-weight: 500; position: relative;
}
.app-side nav a i { font-size: 16px; width: 18px; text-align: center; opacity: .85; }
.app-side nav a:hover { background: var(--side-2); color: #fff; }
.app-side nav a.active { background: rgba(241, 90, 36, .14); color: #fff; }
.app-side nav a.active::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.app-side nav a.active i { color: var(--brand); opacity: 1; }
.app-side nav a .cnt { margin-left: auto; font-size: 11px; background: #2a2e37; color: #cbd2dc; border-radius: 20px; padding: 1px 7px; }
.app-side nav a .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.app-side .side-foot { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.06); font-size: 11.5px; color: #5f6675; }

.app-main { margin-left: 252px; min-height: 100vh; display: flex; flex-direction: column; }
.app-top {
  position: sticky; top: 0; z-index: 1030; height: 60px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 24px;
}
.app-top .search { flex: 1; max-width: 460px; position: relative; }
.app-top .search input { padding-left: 36px; height: 38px; border-radius: 10px; background: #f3f4f6; border-color: transparent; }
.app-top .search input:focus { background: #fff; border-color: #f7b49b; box-shadow: 0 0 0 3px rgba(241,90,36,.12); }
.app-top .search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9ca3af; }
.app-top .kur { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.app-top .kur b { color: var(--ink-2); font-weight: 600; }
.app-top .icon-btn { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); position: relative; border: 0; background: transparent; }
.app-top .icon-btn:hover { background: #f3f4f6; }
.app-top .icon-btn .badge { position: absolute; top: 4px; right: 3px; font-size: 9.5px; padding: 3px 5px; }
.app-top .user { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; border-radius: 10px; color: var(--ink); }
.app-top .user:hover { background: #f3f4f6; }
.avatar { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, #f15a24, #f7931e); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.app-top .user .n { font-weight: 600; font-size: 13px; line-height: 1.1; }
.app-top .user .r { font-size: 11px; color: var(--muted); }
.app-content { padding: 22px 24px 40px; flex: 1; }
.app-foot { padding: 14px 24px; color: #9ca3af; font-size: 12px; border-top: 1px solid var(--line); background: #fff; }
.side-backdrop { display: none; }

@media (max-width: 991.98px) {
  .app-side { transform: translateX(-100%); }
  .app-side.show { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.35); }
  .side-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(15,17,21,.45); z-index: 1035; }
  .app-main { margin-left: 0; }
  .app-top { padding: 0 14px; }
  .app-content { padding: 16px 14px 32px; }
  .app-top .kur { display: none; }
}

/* ---------------------------------------------------------------- Page head */
.page-head { margin-bottom: 18px; }
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs i { font-size: 10px; opacity: .6; }
.page-title { font-size: 21px; font-weight: 700; letter-spacing: -.3px; color: var(--ink); margin: 0; }
.page-sub { color: var(--muted); font-size: 13px; margin-top: 3px; }

/* ---------------------------------------------------------------- Cards */
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--card); }
.card-header { background: transparent; border-bottom: 1px solid var(--line-2); padding: 13px 18px; font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-header .sub { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.card-body { padding: 18px; }
.card-footer { background: #fafbfc; border-top: 1px solid var(--line-2); padding: 10px 18px; }
.card-title-ico { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-50); color: var(--brand); margin-right: 8px; }

/* KPI */
.kpi { position: relative; overflow: hidden; padding: 16px 18px; }
.kpi .lbl { font-size: 12px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.kpi .val { font-size: 24px; font-weight: 700; letter-spacing: -.5px; color: var(--ink); margin-top: 6px; line-height: 1.15; }
.kpi .val small { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi .foot { font-size: 12px; color: var(--muted); margin-top: 4px; }
.kpi .ico { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 19px; }
.ico-orange { background: #fff1ea; color: #f15a24; }
.ico-blue { background: #eaf2ff; color: #2563eb; }
.ico-green { background: #e9f9f0; color: #16a34a; }
.ico-purple { background: #f3edff; color: #7c3aed; }
.ico-red { background: #feecec; color: #dc2626; }
.ico-slate { background: #eef1f5; color: #475569; }
.ico-amber { background: #fff7e6; color: #d97706; }

/* ---------------------------------------------------------------- Tables */
.table { --bs-table-bg: transparent; margin-bottom: 0; font-size: 13px; }
.table > :not(caption) > * > * { padding: .6rem .75rem; border-bottom-color: var(--line-2); }
.table thead th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; color: #6b7280; font-weight: 600; background: #f9fafb; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: #fafafa; background: #fff8f5; }
.table-sm > :not(caption) > * > * { padding: .4rem .55rem; }
.table tfoot td, .table tfoot th { background: #f9fafb; font-weight: 600; }
.table-sticky thead th { position: sticky; top: 60px; z-index: 2; }
.table .row-link { color: inherit; }
.table .row-link:hover { color: var(--brand); }
.table td .code { font-weight: 600; color: var(--ink); }
.table td.actions { white-space: nowrap; text-align: right; width: 1%; }
.card > .table-responsive > .table, .card > .table { border-radius: 0 0 var(--radius) var(--radius); }

/* ---------------------------------------------------------------- Forms & buttons */
.form-label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.form-control, .form-select { border-radius: 9px; font-size: 13.5px; border-color: #dfe2e7; }
.form-control:focus, .form-select:focus { border-color: #f7a383; box-shadow: 0 0 0 3px rgba(241,90,36,.13); }
.form-control-sm, .form-select-sm { border-radius: 7px; font-size: 12.5px; }
.form-text { font-size: 11.5px; }
.input-group-text { background: #f6f7f9; border-color: #dfe2e7; font-size: 12.5px; color: var(--muted); }
.btn { border-radius: 9px; font-weight: 500; font-size: 13.5px; padding: .45rem .9rem; display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
.btn-sm { font-size: 12.5px; padding: .3rem .65rem; border-radius: 7px; }
.btn-primary { --bs-btn-bg: #f15a24; --bs-btn-border-color: #f15a24; --bs-btn-hover-bg: #d94a17; --bs-btn-hover-border-color: #d94a17; --bs-btn-active-bg: #c4410f; --bs-btn-active-border-color: #c4410f; --bs-btn-disabled-bg: #f6a283; --bs-btn-disabled-border-color: #f6a283; }
.btn-outline-primary { --bs-btn-color: #e2531e; --bs-btn-border-color: #f3b39b; --bs-btn-hover-bg: #f15a24; --bs-btn-hover-border-color: #f15a24; --bs-btn-active-bg: #d94a17; }
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: #dfe2e7; --bs-btn-hover-bg: #f5f6f8; --bs-btn-hover-border-color: #d3d7de; color: var(--ink-2); }
.btn-dark { --bs-btn-bg: #1f2329; --bs-btn-border-color: #1f2329; }
.btn-icon { width: 30px; height: 30px; padding: 0; border-radius: 7px; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.nav-tabs .nav-link { color: var(--muted); font-weight: 500; border: 0; border-bottom: 2px solid transparent; padding: .7rem 1rem; }
.nav-tabs .nav-link.active { color: var(--brand); border-bottom-color: var(--brand); background: transparent; }
.nav-tabs { border-bottom: 1px solid var(--line); }
.nav-pills .nav-link { color: var(--ink-2); border-radius: 8px; font-weight: 500; }
.nav-pills .nav-link.active { background: var(--brand); }
.pagination { --bs-pagination-active-bg: #f15a24; --bs-pagination-active-border-color: #f15a24; --bs-pagination-color: #374151; }

/* ---------------------------------------------------------------- Badges */
.badge { font-weight: 600; font-size: 11px; padding: .35em .6em; border-radius: 6px; letter-spacing: .1px; }
.badge-soft-primary { background: #eaf2ff; color: #1d4ed8; }
.badge-soft-secondary { background: #f1f3f6; color: #4b5563; }
.badge-soft-success { background: #e7f8ee; color: #15803d; }
.badge-soft-danger { background: #fdecec; color: #b91c1c; }
.badge-soft-warning { background: #fff4e0; color: #b45309; }
.badge-soft-info { background: #e6f6fb; color: #0e7490; }
.badge-soft-dark { background: #e9eaee; color: #111827; }
.badge-soft-light { background: #f8f9fa; color: #6b7280; border: 1px solid var(--line); }
.badge-soft-brand { background: #fff1ea; color: #c2410c; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; background: #f3f4f6; font-size: 11.5px; color: var(--ink-2); font-weight: 500; }

/* ---------------------------------------------------------------- Misc */
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state i { font-size: 40px; color: #d1d5db; display: block; margin-bottom: 10px; }
.empty-state h5 { color: var(--ink); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-bar .form-control, .filter-bar .form-select { height: 36px; }
.stat-mini { display: flex; flex-direction: column; }
.stat-mini .l { font-size: 11.5px; color: var(--muted); }
.stat-mini .v { font-size: 15px; font-weight: 700; color: var(--ink); }
.dl-grid { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; font-size: 13px; }
.dl-grid dt { color: var(--muted); font-weight: 500; }
.dl-grid dd { margin: 0; color: var(--ink); font-weight: 500; }
.section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 0 0 10px; }
.price-box { border: 1px dashed #e5e7eb; border-radius: 8px; padding: 4px 8px; font-size: 12px; }
.text-brand { color: var(--brand) !important; }
.bg-brand { background: var(--brand) !important; }
.progress { height: 7px; border-radius: 6px; background: #eef0f3; }
.progress-bar { background: var(--brand); }
.tree { list-style: none; padding-left: 0; margin: 0; }
.tree ul { list-style: none; padding-left: 26px; margin: 0; position: relative; }
.tree ul::before { content: ""; position: absolute; left: 11px; top: 0; bottom: 14px; border-left: 1.5px dashed #d6dae1; }
.tree li { position: relative; }
.tree ul > li::before { content: ""; position: absolute; left: -15px; top: 19px; width: 13px; border-top: 1.5px dashed #d6dae1; }
.tree .node { display: flex; align-items: center; gap: 10px; padding: 7px 10px; margin: 3px 0; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.tree .node:hover { border-color: #f6b9a2; }
.tree .node .ico { width: 28px; height: 28px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; flex: 0 0 auto; }
.tree .node.root { background: #1f2329; color: #fff; border-color: #1f2329; }
.select2-container { width: 100% !important; }
.select2-container--bootstrap-5 .select2-selection { border-radius: 9px; border-color: #dfe2e7; font-size: 13.5px; min-height: 38px; }
.select2-container--bootstrap-5.select2-container--focus .select2-selection, .select2-container--bootstrap-5.select2-container--open .select2-selection { border-color: #f7a383; box-shadow: 0 0 0 3px rgba(241,90,36,.13); }
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--highlighted { background: #fff1ea; color: #9a3412; }
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--selected { background: #f15a24; color: #fff; }
.select2-selection.s2-sm { min-height: 31px !important; font-size: 12.5px !important; padding: 2px 8px !important; border-radius: 7px !important; }
.toast-wrap { position: fixed; right: 18px; bottom: 18px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.toast-item { background: #1f2329; color: #fff; padding: 10px 14px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.2); font-size: 13px; display: flex; gap: 8px; align-items: center; animation: tin .2s ease; }
.toast-item.err { background: #b91c1c; }
@keyframes tin { from { transform: translateY(8px); opacity: 0 } to { transform: none; opacity: 1 } }
.station-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; color: #fff; }
.route { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.route .st { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); background: #fff; }
.route .st.devam { border-color: #f59e0b; color: #b45309; background: #fffbeb; }
.route .st.tamamlandi { border-color: #86efac; color: #15803d; background: #f0fdf4; }
.route .arr { color: #cbd5e1; font-size: 10px; }
@media print { .app-side, .app-top, .app-foot, .no-print { display: none !important; } .app-main { margin: 0; } body { background: #fff; } }
