/* Uvi arayüz katmanı — şablonun (app.min.css) üzerine yüklenir.
   Renkler uvicollection.com temasından: koyu petrol #072835, marka kırmızısı #C4301C, nötr griler.
   İlke: ERP ekranı. Yoğun ama okunaklı, düz yüzeyler, ince kenarlıklar, süs yok; hareket yalnızca geri bildirim için. */
:root {
  --bg: #F4F6F7;
  --surface: #FFFFFF;
  --surface-2: #F8F9FA;
  --ink: #0B1F28;
  --ink-2: #33444D;
  --muted: #5F7079;
  --border: #DFE3E6;
  --border-soft: #ECEFF1;
  --nav: #072835;
  --nav-ink: #C7D2D7;
  --brand: #C4301C;
  --brand-dark: #A32716;
  --brand-tint: #FDF1EF;
  --primary: #0D3A4C;
  --primary-dark: #072835;
  --success: #17794A;
  --danger: #B42318;
  --radius: 8px;
  --radius-sm: 6px;
  --head-h: 56px;
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body { background: var(--bg); color: var(--ink-2); font-family: var(--font); font-size: 13px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-family: var(--font); font-weight: 600; letter-spacing: -0.005em; }
::selection { background: rgba(196,48,28,.18); }

/* ---------- İskelet ---------- */
#page-topbar, body[data-topbar=dark] #page-topbar { background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: none; }
.navbar-header { height: var(--head-h); padding-right: 12px; }
.navbar-brand-box, body[data-topbar=dark] .navbar-brand-box { background: var(--nav); height: var(--head-h); padding: 0 16px; display: flex; align-items: center; }
.header-item, body[data-topbar=dark] .header-item { height: var(--head-h); color: var(--ink-2) !important; font-weight: 500; font-size: 13px; box-shadow: none !important; }
.header-item:hover { color: var(--ink) !important; background: var(--surface-2); }
#vertical-menu-btn { font-size: 20px !important; padding: 0 14px !important; }
.uvi-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.uvi-brand-mark { width: 28px; height: 28px; border-radius: 6px; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.uvi-brand-text { color: #fff; font-weight: 600; font-size: 15px; white-space: nowrap; }
.vertical-collpsed .uvi-brand-text { display: none; }
.vertical-menu { background: var(--nav); top: var(--head-h); border-right: 0; box-shadow: none; }
.page-content { padding: calc(var(--head-h) + 20px) 12px 72px; }
.footer { background: transparent; color: var(--muted); border-top: 1px solid var(--border); font-size: 12px; height: auto; min-height: 48px; padding: 14px 24px; }
.footer a { color: inherit; text-decoration: underline; }
.dropdown-menu { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 24px -8px rgba(11,31,40,.25); padding: 4px; font-size: 13px; }
.dropdown-item { border-radius: 4px; padding: 7px 10px; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--surface-2); color: var(--ink); }

/* ---------- Yan menü ---------- */
#sidebar-menu { padding: 8px 0 24px; }
#sidebar-menu .menu-title { color: #7F97A1 !important; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 16px 20px 6px !important; opacity: 1; }
#sidebar-menu ul li a { color: var(--nav-ink) !important; font-size: 13px; font-weight: 500; padding: 9px 12px; margin: 1px 8px; border-radius: var(--radius-sm); transition: background-color .12s, color .12s; }
#sidebar-menu ul li a i { color: #8FA6B0 !important; font-size: 17px; min-width: 1.75rem; transition: color .12s; }
#sidebar-menu ul li a:hover { color: #fff !important; background: rgba(255,255,255,.06); }
#sidebar-menu ul li a:hover i { color: #fff !important; background: none; }
#sidebar-menu ul li ul.sub-menu { padding: 2px 0 6px; }
#sidebar-menu ul li ul.sub-menu li a { padding: 7px 12px 7px 40px; font-size: 12.5px; font-weight: 400; color: #AEBDC4 !important; }
#sidebar-menu .mm-active > a { color: #fff !important; }
#sidebar-menu .mm-active > a i { color: #fff !important; }
#sidebar-menu ul li a.active, #sidebar-menu ul.sub-menu li a.active { color: #fff !important; background: rgba(255,255,255,.10); font-weight: 500; box-shadow: inset 3px 0 0 var(--brand); }
#sidebar-menu ul li a.active i { color: #fff !important; }
.vertical-collpsed .vertical-menu #sidebar-menu > ul > li > a { margin: 1px 4px; }
.vertical-collpsed #sidebar-menu .menu-title { display: none !important; }

/* ---------- Sayfa başlığı ---------- */
.page-title-box { padding: 0 0 14px; display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.page-title-box .breadcrumb { margin: 0 !important; padding: 0; font-size: 12px; background: none; }
.page-title-box > .breadcrumb { flex-basis: 100%; }                 /* yeni sayfalar: konum satırı başlığın üstünde */
.page-title-box .page-title-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } /* eski sayfalar */
.breadcrumb-item, .breadcrumb-item a { color: var(--muted); }
.breadcrumb-item.active { color: var(--muted); }
.page-title-box h4, .page-title-box .page-title, .uvi-page-title { font-size: 20px !important; font-weight: 600 !important; line-height: 1.3; color: var(--ink) !important; text-transform: none; margin: 0; }
.uvi-pagebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: -4px 0 14px; }
.uvi-pagebar-note { margin: 0; color: var(--muted); font-size: 12.5px; }

/* ---------- Kart ---------- */
.card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: none; margin-bottom: 16px; }
.card-header { background: transparent; border-bottom: 1px solid var(--border-soft); padding: 12px 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-radius: var(--radius) var(--radius) 0 0 !important; }
.card-body { padding: 16px; }
.card-title, .uvi-card-title, .card-header h5, .card-header h4, .card-body > h4, .card-body > h5 { font-size: 14px; font-weight: 600; margin: 0; color: var(--ink); }
.uvi-card-meta { color: var(--muted); font-size: 12px; }
.uvi-empty { color: var(--muted); margin: 0; padding: 12px 0; }

/* ---------- Form ve buton ---------- */
label, .form-label, .col-form-label { color: var(--ink-2); font-weight: 500; font-size: 12.5px; margin-bottom: 4px; }
.form-control, .form-select { border: 1px solid #C9D0D4; border-radius: var(--radius-sm); color: var(--ink); min-height: 36px; font-size: 13px; padding: 6px 10px; transition: border-color .12s, box-shadow .12s; }
.form-select { padding-right: 30px; }
.form-control:hover, .form-select:hover { border-color: #9FAAB0; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,58,76,.14); }
.form-control::placeholder { color: #8A979E; }
.form-check-input { border-color: #AEB8BD; }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-text { color: var(--muted); font-size: 12px; }
.btn { border-radius: var(--radius-sm); font-weight: 500; font-size: 13px; padding: 7px 14px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; transition: background-color .12s, border-color .12s, color .12s; box-shadow: none !important; }
.btn i { font-size: 15px; line-height: 1; }
.btn-sm { min-height: 32px; padding: 5px 10px; font-size: 12.5px; }
.btn-primary, .uviBtn, .btn-dark { background: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; }
.btn-primary:hover, .uviBtn:hover, .btn-dark:hover { background: var(--primary-dark) !important; border-color: var(--primary-dark) !important; }
.btn-accent { background: var(--brand); border: 1px solid var(--brand); color: #fff; }
.btn-accent:hover, .btn-accent:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-success { background-color: var(--success); border-color: var(--success); }
.btn-danger { background-color: var(--danger); border-color: var(--danger); }
.btn-outline-secondary, .btn-outline-primary, .btn-outline-info, .btn-outline-dark, .btn-light { border: 1px solid #C9D0D4; color: var(--ink-2); background: var(--surface); }
.btn-outline-secondary:hover, .btn-outline-primary:hover, .btn-outline-info:hover, .btn-outline-dark:hover, .btn-light:hover,
.btn-outline-secondary:focus, .btn-outline-primary:focus { background: var(--surface-2); border-color: #9FAAB0; color: var(--ink); }
.btn-outline-success { border: 1px solid #C9D0D4; color: var(--success); background: var(--surface); }
.btn-outline-success:hover { background: var(--success); border-color: var(--success); color: #fff; }
.btn-outline-danger { border: 1px solid #E7B4AE; color: var(--danger); background: var(--surface); }
.btn-outline-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-outline-warning { border: 1px solid #C9D0D4; color: #8A5A00; background: var(--surface); }
.btn-outline-warning:hover { background: #FFF7E6; border-color: #D9A441; color: #6B4500; }
.btn:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; }
.uvi-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: var(--radius-sm); color: var(--muted); font-size: 16px; text-decoration: none; transition: background-color .12s, color .12s; }
.uvi-icon-btn:hover { background: #E9EDEF; color: var(--ink); }
.uvi-icon-btn.is-danger:hover { background: #FCE9E7; color: var(--danger); }
.alert { border-radius: var(--radius); border-width: 1px; font-size: 13px; padding: 10px 14px; }

/* ---------- Araç çubuğu, sekme, bölüm seçici ---------- */
.uvi-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border-soft); border-radius: var(--radius) var(--radius) 0 0; }
.uvi-toolbar .uvi-field { width: 120px; }
.uvi-toolbar .form-label { font-size: 12px; }
.uvi-toolbar-note { color: var(--muted); font-size: 12.5px; padding-bottom: 8px; }
.uvi-toolbar-note strong { color: var(--ink-2); font-weight: 600; }
.card-body > .uvi-toolbar, .card-body > form.uvi-toolbar { margin: -16px -16px 16px; }

.uvi-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin: 0; padding: 0 8px; list-style: none; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.uvi-tabs::-webkit-scrollbar { display: none; }
.uvi-tabs li { flex: none; }
.uvi-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 11px 12px; color: var(--muted); font-weight: 500; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .12s, border-color .12s; }
.uvi-tabs a:hover { color: var(--ink); }
.uvi-tabs a.active { color: var(--ink); font-weight: 600; border-bottom-color: var(--brand); }
.card-body > .uvi-tabs { margin: -16px -16px 16px; }
.uvi-count { background: #E9EDEF; color: var(--ink-2); border-radius: 10px; font-size: 11px; font-weight: 600; padding: 1px 7px; font-variant-numeric: tabular-nums; }
.uvi-tabs a.active .uvi-count { background: var(--ink); color: #fff; }
.nav-tabs-custom .nav-item .nav-link { font-weight: 500; color: var(--muted); }
.nav-tabs-custom .nav-item .nav-link.active { color: var(--ink); font-weight: 600; }
.nav-tabs-custom .nav-item .nav-link::after { background: var(--brand); height: 2px; }

.uvi-segment { display: inline-flex; border: 1px solid #C9D0D4; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.uvi-segment a { padding: 6px 12px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; border-right: 1px solid #C9D0D4; white-space: nowrap; transition: background-color .12s; }
.uvi-segment a:last-child { border-right: 0; }
.uvi-segment a:hover { background: var(--surface-2); }
.uvi-segment a.active { background: var(--primary); color: #fff; }
.uvi-segment a span { opacity: .7; margin-left: 4px; font-variant-numeric: tabular-nums; }

.uvi-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.uvi-search { position: relative; flex: 1 1 260px; max-width: 380px; }
.uvi-search i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; pointer-events: none; }
.uvi-search .form-control { padding-left: 32px; }
.uvi-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }
.uvi-selcount { color: var(--muted); font-size: 12.5px; margin-right: 4px; }
.uvi-selcount strong { color: var(--ink); }

/* ---------- Tablolar ---------- */
.table { color: var(--ink-2); font-size: 13px; margin-bottom: 0; }
.table > thead > tr > th, .table thead th, .table thead td, .table-topbar th, thead.table-topbar, .table thead.table-light th {
  background: var(--surface-2) !important; color: var(--muted) !important; font-weight: 600; font-size: 11.5px; text-transform: none; letter-spacing: 0;
  border-bottom: 1px solid var(--border) !important; border-top: 0 !important; white-space: nowrap; padding: 9px 12px;
}
.table > :not(caption) > * > * { padding: 9px 12px; vertical-align: middle; border-color: var(--border-soft); }
.table > tbody > tr:last-child > * { border-bottom-color: var(--border-soft); }
.table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-accent-bg: transparent !important; }
.table tbody tr:hover > * { background-color: #F3F6F8 !important; }
.table-bordered > :not(caption) > * > * { border-width: 0 0 1px; }
.table td h4 { font-size: 13px; margin: 0; }
.uvi-table-compact > :not(caption) > * > * { padding: 7px 12px; }
.uvi-table-compact td:first-child, .uvi-table-compact th:first-child { padding-left: 16px; }
.uvi-table-compact td:last-child, .uvi-table-compact th:last-child { padding-right: 16px; }
.uvi-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.uvi-link { color: var(--primary); font-weight: 600; text-decoration: none; }
.uvi-link:hover { color: var(--brand-dark); text-decoration: underline; }
.uvi-sub { display: block; color: var(--muted); font-size: 11.5px; font-weight: 400; }
.uvi-dash { color: #A9B4BA; }
.uvi-col-check { width: 34px; }
.uvi-col-products { min-width: 220px; max-width: 420px; }
.uvi-col-products > div > div + div { margin-top: 2px; }
.uvi-truncate { max-width: 0; width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uvi-table-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; color: var(--muted); font-size: 12.5px; }
.uvi-table-foot .dataTables_info { padding: 0 !important; margin-right: auto; }
.uvi-table-foot .dataTables_length label, .uvi-table-foot .dataTables_length select { margin: 0; font-weight: 400; }
div.dataTables_wrapper div.dataTables_length select { border-radius: var(--radius-sm); min-height: 32px; padding: 3px 26px 3px 8px; }
div.dataTables_wrapper div.dataTables_filter input { border: 1px solid #C9D0D4; border-radius: var(--radius-sm); width: 280px; max-width: 100%; min-height: 34px; padding: 5px 10px; }
div.dataTables_wrapper div.dataTables_paginate ul.pagination { margin: 0; }
div.dataTables_wrapper div.dataTables_processing { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 24px -8px rgba(11,31,40,.25); font-size: 13px; padding: 10px 16px; margin-top: -20px; width: auto; left: 50%; transform: translateX(-50%); margin-left: 0; }
.page-link { color: var(--ink-2); border: 1px solid transparent; border-radius: var(--radius-sm) !important; margin: 0 1px; min-width: 30px; text-align: center; padding: 4px 8px; font-size: 12.5px; }
.page-link:hover { background: #E9EDEF; color: var(--ink); }
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-item.disabled .page-link { color: #A9B4BA; background: transparent; }
.dt-buttons .btn { margin-right: 4px; border-radius: var(--radius-sm) !important; }

/* ---------- Durum rozetleri (renk + metin) ---------- */
.uvi-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 4px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: #E9EDEF; color: var(--ink-2); }
.uvi-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.uvi-badge.is-new { background: #E5EEFB; color: #1A4FA0; }
.uvi-badge.is-processing { background: #FFF2D6; color: #8A5A00; }
.uvi-badge.is-production { background: #FBE9DD; color: #9A3F0A; }
.uvi-badge.is-shipped { background: #E9E7FB; color: #4338A8; }
.uvi-badge.is-delivered, .uvi-badge.is-ok { background: #DFF3E7; color: #17653F; }
.uvi-badge.is-cancelled { background: #FCE4E1; color: #A32716; }
.badge { border-radius: 4px; padding: 4px 8px; font-weight: 600; font-size: 11.5px; }

/* ---------- Anasayfa: KPI, grafik, ölçer ---------- */
.uvi-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.uvi-kpi { padding: 14px 16px; border-right: 1px solid var(--border-soft); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.uvi-kpi:last-child { border-right: 0; }
.uvi-kpi .lbl { color: var(--muted); font-size: 12px; font-weight: 500; }
.uvi-kpi .num { color: var(--ink); font-size: 22px; font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; white-space: nowrap; }
.uvi-kpi .sub { color: var(--muted); font-size: 11.5px; }
.uvi-delta { font-size: 11.5px; font-weight: 600; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.uvi-delta small { font-weight: 400; color: var(--muted); margin-left: 3px; font-size: 11px; }
.uvi-delta.is-up { color: var(--success); }
.uvi-delta.is-down { color: var(--danger); }
.uvi-chart { min-height: 280px; }
.apexcharts-tooltip { border: 1px solid var(--border) !important; box-shadow: 0 8px 24px -8px rgba(11,31,40,.25) !important; border-radius: var(--radius-sm) !important; }
.apexcharts-tooltip-title { background: var(--surface-2) !important; border-bottom: 1px solid var(--border-soft) !important; font-weight: 600 !important; }
.uvi-meter { margin-bottom: 12px; }
.uvi-meter:last-child { margin-bottom: 0; }
.uvi-meter-head { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; margin-bottom: 4px; }
.uvi-meter-head strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.uvi-meter-track { height: 6px; background: #E9EDEF; border-radius: 3px; overflow: hidden; }
.uvi-meter-fill { height: 100%; background: var(--primary); border-radius: 3px; }
.uvi-modcard { display: block; padding: 14px 16px; text-decoration: none; color: inherit; transition: border-color .12s; }
.uvi-modcard:hover { border-color: #9FAAB0; color: inherit; }
.uvi-modcard-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--ink); font-size: 14px; margin-bottom: 10px; }
.uvi-modcard-head i { color: var(--muted); font-size: 16px; }
.uvi-modcard-stats { display: flex; flex-wrap: wrap; gap: 20px; }
.uvi-modcard-stats .num { display: block; font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.2; font-variant-numeric: tabular-nums; }
.uvi-modcard-stats .lbl { color: var(--muted); font-size: 12px; }

/* ---------- Giriş ---------- */
.uvi-auth { min-height: 100vh; margin: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: var(--surface); }
.uvi-auth-side { background: var(--nav); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.uvi-auth-side h2 { color: #fff; font-size: 26px; font-weight: 600; line-height: 1.3; margin: 0 0 10px; max-width: 420px; }
.uvi-auth-side p { color: var(--nav-ink); margin: 0; max-width: 420px; font-size: 14px; }
.uvi-auth-side ul { list-style: none; padding: 0; margin: 24px 0 0; color: var(--nav-ink); font-size: 13.5px; }
.uvi-auth-side li { padding: 6px 0; display: flex; align-items: center; gap: 10px; }
.uvi-auth-side li i { color: #fff; font-size: 16px; }
.uvi-auth-side small { color: #7F97A1; }
.uvi-auth-main { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.uvi-auth-card { width: 100%; max-width: 360px; }
.uvi-auth-card h1 { font-size: 22px; font-weight: 600; margin: 0 0 4px; }
.uvi-auth-card .uvi-brand { display: none; margin-bottom: 28px; }
.uvi-auth-card .uvi-brand-text { color: var(--ink); }
.uvi-auth-card .btn { min-height: 40px; }

/* ---------- Diğer ---------- */
.swal2-popup { border-radius: 12px !important; font-family: var(--font) !important; font-size: 13px !important; }
.swal2-title { font-size: 18px !important; font-weight: 600 !important; color: var(--ink) !important; }
.swal2-styled.swal2-confirm { background: var(--primary) !important; border-radius: var(--radius-sm) !important; font-size: 13px !important; }
.swal2-styled.swal2-cancel { border-radius: var(--radius-sm) !important; font-size: 13px !important; }
.modal-content { border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 24px 48px -16px rgba(11,31,40,.35); }
.modal-header { padding: 14px 18px; border-bottom-color: var(--border-soft); }
.modal-title { font-size: 15px; font-weight: 600; }

/* ---------- Hızlı gezinme ---------- */
/* Sayfalar arası geçişte menü ve üst bar yerinde kalır, yalnız içerik değişir. */
@view-transition { navigation: auto; }
.vertical-menu { view-transition-name: uvi-nav; }
#page-topbar { view-transition-name: uvi-top; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .12s; }
/* Bağlantıya tıklanınca üstte ilerleme çizgisi: anında geri bildirim */
html.uvi-loading::before { content: ""; position: fixed; z-index: 3000; top: 0; left: 0; height: 2px; width: 100%; background: var(--brand); transform-origin: left; animation: uviBar 8s cubic-bezier(.1,.7,.1,1) forwards; }
@keyframes uviBar { from { transform: scaleX(0); } to { transform: scaleX(.92); } }

/* ---------- Tablet ---------- */
@media (max-width: 1399px) {
  .uvi-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .uvi-kpi:nth-child(3n) { border-right: 0; }
  .uvi-kpi:nth-child(-n+3) { border-bottom: 1px solid var(--border-soft); }
}
@media (max-width: 991px) {
  /* Menü çekmece olur: şablon .sidebar-enable ile açar; arkası karartılır */
  .vertical-menu { z-index: 1005; width: 264px; box-shadow: 0 0 0 100vmax rgba(11,31,40,.45); }
  .navbar-brand-box { width: auto !important; padding: 0 12px; }
  .uvi-brand-text { display: none; }
  .uvi-auth { grid-template-columns: 1fr; }
  .uvi-auth-side { display: none; }
  .uvi-auth-card .uvi-brand { display: inline-flex; }
}

/* ---------- Telefon ---------- */
@media (max-width: 767px) {
  .page-content { padding: calc(var(--head-h) + 14px) 4px 72px; }
  .card-body { padding: 12px; }
  .card-body > .uvi-toolbar, .card-body > .uvi-tabs { margin: -12px -12px 12px; }
  .uvi-page-title, .page-title-box h4 { font-size: 18px !important; }
  /* iOS, 16px altındaki alanlara odaklanınca sayfayı yakınlaştırır */
  .form-control, .form-select, div.dataTables_wrapper div.dataTables_filter input { font-size: 16px; min-height: 42px; }
  .btn { min-height: 42px; }
  .btn-sm { min-height: 38px; }
  .uvi-icon-btn { width: 40px; height: 40px; font-size: 18px; }
  .uvi-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uvi-kpi { border-right: 1px solid var(--border-soft) !important; border-bottom: 1px solid var(--border-soft); }
  .uvi-kpi:nth-child(2n) { border-right: 0 !important; }
  .uvi-kpi:nth-last-child(-n+2) { border-bottom: 0; }
  .uvi-kpi .num { font-size: 19px; }
  .uvi-toolbar { align-items: stretch; }
  .uvi-toolbar .uvi-field { width: 96px; }
  .uvi-toolbar .btn { flex: 1; }
  .uvi-toolbar-note { width: 100%; padding: 0; }
  .uvi-search { max-width: none; flex-basis: 100%; }
  .uvi-bulk { margin-left: 0; width: 100%; }
  .uvi-bulk .btn { flex: 1 1 auto; }
  .uvi-selcount { width: 100%; }
  .uvi-segment { display: flex; width: 100%; overflow-x: auto; }
  .uvi-segment a { flex: 1; text-align: center; }
  .uvi-table-foot { justify-content: center; }
  .uvi-table-foot .dataTables_info { margin: 0; width: 100%; text-align: center; }
  .uvi-chart { min-height: 240px; }
  .uvi-truncate { white-space: normal; max-width: none; width: auto; }

  /* Geniş tablolar telefonda kart listesine dönüşür (hücre başlıkları data-label ile gelir) */
  .uvi-stack thead { display: none; }
  .uvi-stack, .uvi-stack tbody { display: block; }
  .uvi-stack tbody tr { display: block; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; padding: 6px 12px; background: var(--surface); }
  .uvi-stack tbody tr:hover > * { background: transparent !important; }
  .uvi-stack tbody td { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 6px 0; border: 0; border-bottom: 1px solid var(--border-soft); text-align: right !important; white-space: normal !important; min-width: 0; max-width: none; width: auto; }
  .uvi-stack tbody td:last-child { border-bottom: 0; }
  .uvi-stack tbody td::before { content: attr(data-label); flex: none; color: var(--muted); font-weight: 500; font-size: 12px; text-align: left; }
  .uvi-stack tbody td.uvi-col-check { justify-content: flex-start; }
  .uvi-stack tbody td.uvi-col-check::before { content: "Seç"; order: 2; }
  .uvi-stack tbody td.uvi-col-check .form-check-input { width: 20px; height: 20px; margin: 0; }
  .uvi-stack tbody td.uvi-col-actions { justify-content: flex-end; }
  .uvi-stack tbody td.uvi-col-actions::before { content: none; }
  .uvi-stack tbody td.dataTables_empty { display: block; text-align: center !important; }
  .uvi-stack tbody td.dataTables_empty::before { content: none; }
  .uvi-stack .uvi-sub { text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Ortak tablo yapısı ekleri ---------- */
button.uvi-icon-btn { border: 0; background: none; padding: 0; cursor: pointer; }
.uvi-toolbar .uvi-field.is-mid { width: 170px; }
.uvi-toolbar .uvi-field.is-wide { width: 240px; flex: 0 1 240px; }
.uvi-col-note { max-width: 260px; color: var(--muted); font-size: 12.5px; }
.uvi-pre { white-space: pre-line; }
@media (max-width: 767px) {
  .uvi-toolbar .uvi-field.is-mid, .uvi-toolbar .uvi-field.is-wide { width: 100%; flex: 1 1 100%; }
  .uvi-col-note { max-width: none; }
}

/* ---------- Kullanıcı yetki formu ---------- */
.uvi-permgroup { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.uvi-permgroup:last-child { margin-bottom: 0; }
.uvi-permgroup legend { float: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px solid var(--border-soft); }
.uvi-permgroup legend span { display: inline-flex; gap: 6px; }
.uvi-perms { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 20px; }
.uvi-perms .form-check { margin: 0; padding-top: 7px; padding-bottom: 7px; }
.uvi-perms .form-check-label { cursor: pointer; }

/* ---------- Dosya yükleme alanı (dropzone.css'i ezer) ---------- */
.uvi-hints { margin: 0 0 14px; padding-left: 18px; color: var(--ink-2); font-size: 13px; }
.uvi-hints li { margin-bottom: 4px; }
.card .dropzone { min-height: 170px; border: 1.5px dashed #B9C2C7; border-radius: var(--radius); background: var(--surface-2); padding: 16px; transition: border-color .12s, background-color .12s; }
.card .dropzone:hover, .card .dropzone.dz-drag-hover { border-color: var(--primary); background: #EEF3F5; }
.card .dropzone .dz-message { margin: 44px 0; color: var(--muted); font-size: 13.5px; font-weight: 500; text-align: center; }

/* Sipariş detayı: adres bloğu ve etiket/değer listesi */
.uvi-address { display: grid; gap: 2px; margin: 0 0 10px; font-style: normal; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.uvi-address strong { color: var(--ink); font-size: 14px; }
.uvi-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: 13px; }
.uvi-dl dt { color: var(--muted); font-weight: 400; }
.uvi-dl dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 575.98px) { .footer { padding: 8px 16px; } .footer .container-fluid { gap: 0 !important; } }
