/*[15.10.2026]…ÖzkanKeskin…SafirSoft*/
:root {
  --blue: #002856;
  --green: #3dae2b;
  --green-dark: #2c8d1e;
  --bg: #eef3f1;
  --card: #ffffff;
  --ink: #122033;
  --muted: #5d6d7e;
  --line: #d7e1ea;
  --sidebar: #002856;
  --side-ink: #e7eef6;
  --top: #ffffff;
  --shadow: 0 10px 30px rgba(0, 40, 86, .06);
  --danger: #b42318;
  --amber: #b45309;
  color-scheme: light;
}
html.dark {
  --bg: #07111c;
  --card: #102033;
  --ink: #e8eef6;
  --muted: #93a4b8;
  --line: #1d3348;
  --sidebar: #041526;
  --top: #0c1a2b;
  --shadow: 0 10px 30px rgba(0, 0, 0, .25);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.ico { width: 18px; height: 18px; flex: 0 0 auto; }
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 280px;
  background: var(--sidebar);
  color: var(--side-ink);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
}
.brand { display: flex; gap: 12px; align-items: center; padding: 18px 16px 8px; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand strong { display: block; letter-spacing: .08em; font-size: 14px; }
.brand span { color: #9fb4c9; font-size: 12px; }
.menu-search { display: flex; gap: 8px; align-items: center; margin: 10px 12px; background: rgba(255,255,255,.08); border-radius: 12px; padding: 8px 10px; }
.menu-search input { background: transparent; border: 0; outline: 0; width: 100%; color: white; }
.nav { overflow: auto; padding: 6px 10px 16px; flex: 1; }
.nav-link, .nav-group-btn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  border: 0; background: transparent; color: inherit; text-decoration: none;
  border-radius: 12px; padding: 10px 12px; text-align: left; cursor: pointer;
}
.nav-group-btn { font-weight: 650; }
.nav-group-btn .ico:last-child { margin-left: auto; transition: transform .2s; }
.nav-group.open .nav-group-btn .ico:last-child { transform: rotate(180deg); }
.nav-children { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.nav-group.open .nav-children { max-height: 560px; }
.nav-children .nav-link { padding-left: 38px; color: #d5e2ef; font-size: 13.5px; }
.nav-link.active, .nav-link:hover, .nav-group-btn:hover { background: rgba(61, 174, 43, .18); }
.nav-link.active { box-shadow: inset 3px 0 0 var(--green); color: white; }
.top-link { font-weight: 650; margin-bottom: 4px; }
.side-foot { padding: 12px 16px 16px; color: #8ea4ba; font-size: 12px; }
.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
/*[14.11.2026]…ÖzkanKeskin…SafirSoft*/
.app-head { position: sticky; top: 0; z-index: 30; }
.topbar {
  display: flex; align-items: center; gap: 10px;
  background: var(--top); border-bottom: 1px solid var(--line);
  padding: 8px 12px; min-height: 60px;
}
.top-title { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.top-title small { color: var(--muted); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.top-title small:empty { display: none; }
.top-title strong { font-size: 17px; color: var(--blue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.dark .top-title strong { color: #e8eef6; }
.tabstrip {
  display: flex; align-items: flex-end; gap: 10px; padding: 6px 12px 0;
  background: linear-gradient(180deg, #e3ebf3, #d9e4ee); border-bottom: 2px solid var(--blue);
}
html.dark .tabstrip { background: linear-gradient(180deg, #0a1726, #081320); border-bottom-color: var(--green); }
.tabstrip-label { align-self: center; padding-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.tabstrip-label b { display: inline-block; min-width: 20px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
html.dark .tabstrip-label b { background: var(--green); color: #04210a; }
.tabbar { display: flex; align-items: flex-end; gap: 3px; overflow-x: auto; overflow-y: hidden; flex: 1; scrollbar-width: thin; }
.tab {
  position: relative; display: inline-flex; align-items: center; gap: 7px; max-width: 240px;
  border: 1px solid #c3d1de; border-bottom: 0; border-radius: 10px 10px 0 0;
  background: rgba(255, 255, 255, .55); color: var(--muted); padding: 7px 10px 8px; white-space: nowrap; cursor: pointer; font-size: 13px;
}
.tab:hover { background: #fff; color: var(--ink); }
.tab-label { overflow: hidden; text-overflow: ellipsis; }
.tab-num { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 5px; background: rgba(0, 40, 86, .1); color: var(--blue); font-size: 10px; font-weight: 800; }
.tab.active { background: var(--bg); color: var(--blue); border-color: var(--blue); font-weight: 700; margin-bottom: -2px; padding-bottom: 10px; box-shadow: inset 0 3px 0 var(--green); }
.tab.active .tab-num { background: var(--blue); color: #fff; }
html.dark .tab { background: rgba(255, 255, 255, .04); border-color: #1d3348; }
html.dark .tab:hover { background: rgba(255, 255, 255, .09); color: var(--ink); }
html.dark .tab.active { background: var(--bg); color: #fff; border-color: var(--green); }
html.dark .tab-num { background: rgba(255, 255, 255, .1); color: #cbd5e1; }
html.dark .tab.active .tab-num { background: var(--green); color: #04210a; }
.tab-close { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 15px; line-height: 1; }
.tab-close:hover { background: rgba(180, 35, 24, .15); color: var(--danger); }
.tabstrip-close { align-self: center; margin-bottom: 6px; border: 1px solid #c3d1de; background: transparent; color: var(--muted); border-radius: 8px; padding: 3px 8px; font-size: 12px; cursor: pointer; white-space: nowrap; }
.tabstrip-close:hover { border-color: var(--danger); color: var(--danger); }
@media (max-width: 760px) {
  .tabstrip-label { display: none; }
  .tabstrip { padding: 4px 6px 0; }
  .tab { max-width: 170px; padding: 6px 8px 7px; }
  .top-title strong { font-size: 15px; }
}
.top-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-btn, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 10px; min-height: 36px; padding: 0 12px; text-decoration: none; cursor: pointer;
}
.icon-btn { width: 36px; padding: 0; }
.btn-primary { background: var(--green); border-color: var(--green); color: white; }
.btn-primary:hover { background: var(--green-dark); }
.btn-mine { background: #0f766e; border-color: #0f766e; color: #fff; }
.btn-mine:hover { background: #115e59; }
html.dark .btn-mine { background: #14b8a6; border-color: #14b8a6; color: #042f2e; }
.tel-link { color: #0f766e; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.btn-tiny { min-height: 30px; padding: 0 8px; font-size: 12px; }
.btn-block { width: 100%; }
.theme-switch { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; cursor: pointer; color: var(--muted); }
.switch-track { width: 42px; height: 24px; background: #c5d0dc; border-radius: 99px; padding: 3px; display: flex; }
.switch-knob { width: 18px; height: 18px; border-radius: 50%; background: white; transition: transform .2s; }
html.dark .switch-track { background: var(--green); }
html.dark .switch-knob { transform: translateX(18px); }
#clock { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 13px; }
.user-chip { display: flex; gap: 8px; align-items: center; border: 0; background: transparent; cursor: pointer; text-align: left; }
.user-chip strong, .user-chip small { display: block; }
.user-chip small { color: var(--muted); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: white; font-weight: 700; }
.userbox { position: relative; }
.dropdown { position: absolute; right: 0; top: 46px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; width: 240px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.dropdown p { margin: 0; }
.secret-line { display: flex; align-items: center; gap: 6px; }
.secret-line input { flex: 1; min-width: 0; }
.workspace { padding: 18px; }
.page { display: flex; flex-direction: column; gap: 14px; }
.page-head, .modal-actions, .order-foot, .table-foot { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.page-head h1, .card h2, .modal h2 { margin: 0; }
.muted, .page-head p { color: var(--muted); margin: 4px 0 0; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.pad { padding: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.stat-grid.compact { grid-template-columns: repeat(4, 1fr); }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.stat-card p, .stat-card span { margin: 0; color: var(--muted); }
.stat-card strong { display: block; font-size: 22px; margin: 6px 0; }
.stat-card.tone-green { border-top: 3px solid var(--green); }
.stat-card.tone-red { border-top: 3px solid var(--danger); }
.stat-card.tone-amber { border-top: 3px solid var(--amber); }
.stat-card.tone-blue { border-top: 3px solid var(--blue); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.filters label, .stack label, .form-grid label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12px; }
input, select, textarea {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  min-height: 38px; padding: 8px 10px; outline: none;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(61,174,43,.18); }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { font-size: 12px; color: var(--muted); background: color-mix(in srgb, var(--card) 70%, var(--bg)); position: sticky; top: 0; }
td.right, th.right { text-align: right; }
td.empty { text-align: center; color: var(--muted); padding: 28px; }
.actions { white-space: nowrap; display: flex; gap: 6px; }
.table-foot { padding: 10px 12px; color: var(--muted); }
.pager { display: flex; gap: 4px; }
.pager a { min-width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; text-decoration: none; border: 1px solid var(--line); }
.pager a.active { background: var(--blue); color: white; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 8px; font-size: 12px; font-weight: 650; }
.badge-green { background: #e7f7e4; color: #1f7a16; }
.badge-red { background: #fde8e6; color: #9f1d14; }
.badge-amber { background: #fff4e5; color: #92400e; }
.badge-blue { background: #e7eef8; color: #002856; }
.badge-slate { background: #eef2f6; color: #475569; }
html.dark .badge-green { background: #14351c; color: #b7f0ad; }
html.dark .badge-red { background: #3b1717; color: #fecaca; }
html.dark .badge-amber { background: #3a2a12; color: #fde68a; }
html.dark .badge-blue { background: #12304a; color: #d6e8ff; }
html.dark .badge-slate { background: #1e293b; color: #cbd5e1; }
.meter { display: inline-block; width: 72px; height: 8px; border-radius: 99px; background: var(--line); vertical-align: middle; margin-right: 6px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--green); }
.meter-warn > span { background: var(--amber); }
.meter-bad > span { background: var(--danger); }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0, 20, 40, .45); display: grid; place-items: center; z-index: 70; padding: 16px; }
.modal { width: min(720px, 100%); background: var(--card); border-radius: 18px; padding: 16px; max-height: calc(100vh - 32px); overflow: auto; }
.modal-sm { width: min(420px, 100%); }
.modal-wide { width: min(980px, 100%); }
.mine-doc-frame { width: 100%; height: min(70vh, 720px); border: 0; border-radius: 12px; background: var(--bg); }
.mine-doc-img { max-width: 100%; height: auto; display: block; margin: 0 auto; border-radius: 12px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full, .stack { grid-column: 1 / -1; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.check-line { flex-direction: row !important; align-items: center; color: var(--ink) !important; gap: 8px; }
.context-menu { position: fixed; z-index: 80; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px; min-width: 180px; box-shadow: var(--shadow); }
.context-menu button { width: 100%; text-align: left; background: transparent; border: 0; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.context-menu button:hover { background: rgba(61,174,43,.15); }
.toaster { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 90; }
.toast { background: var(--blue); color: white; border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.toast.bad { background: var(--danger); }
.toast.ok { background: #146c2e; }
.detail-list { display: grid; gap: 10px; }
.detail-list div { display: grid; gap: 4px; }
.detail-list strong { color: var(--muted); font-size: 12px; }
.detail-list pre { margin: 0; white-space: pre-wrap; background: var(--bg); border-radius: 10px; padding: 8px; }
.chart-row { display: flex; gap: 18px; align-items: center; }
.donut { width: 140px; height: 140px; border-radius: 50%; position: relative; }
.donut:after { content: ""; position: absolute; inset: 28px; background: var(--card); border-radius: 50%; }
.legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plain-list li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.role-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.role-list a { display: flex; justify-content: space-between; text-decoration: none; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); }
.role-list a.active { border-color: var(--green); background: rgba(61,174,43,.12); }
fieldset { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 12px; }
/*[18.10.2026]…ÖzkanKeskin…SafirSoft*/
.perm-switch { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; color: var(--ink); }
.perm-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.perm-track { width: 42px; height: 24px; border-radius: 99px; background: #c5d0dc; position: relative; flex: none; transition: background .2s; }
.perm-track::before { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: transform .2s; }
.perm-switch input:checked + .perm-track { background: #3DAE2B; }
.perm-switch input:checked + .perm-track::before { transform: translateX(18px); }
.perm-switch input:focus-visible + .perm-track { outline: 2px solid #002856; outline-offset: 2px; }
.perm-switch input:disabled + .perm-track { opacity: .45; }
.perm-switch em { color: var(--muted); font-style: normal; font-size: 12px; }
legend { padding: 0 6px; font-weight: 700; }
.menu-toggle, .backdrop { display: none; }
.order-total { margin-left: auto; }
.notice, .login-card { background: var(--card); border-radius: 20px; padding: 28px; }
.auth-body { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at top left, #3dae2b 0, transparent 28%), radial-gradient(circle at 80% 20%, rgba(61,174,43,.18), transparent 32%), #002856; }
.login-wrap { width: min(920px, calc(100% - 28px)); display: flex; align-items: center; justify-content: center; gap: 36px; }
.login-visual { flex: 0 0 auto; display: grid; place-items: center; }
.login-orb { width: min(340px, 70vw); height: auto; max-height: 340px; }
.login-orb .animated-ring-1, .login-orb .animated-ring-2 { transform-box: view-box; transform-origin: 150px 150px; }
.login-orb .animated-ring-1 { animation: login-spin 20s linear infinite; }
.login-orb .animated-ring-2 { animation: login-spin-rev 28s linear infinite; }
.login-orb .animate-wave { animation: login-wave 3.2s ease-in-out infinite; transform-box: view-box; transform-origin: 150px 150px; }
.login-orb .animate-float { animation: login-float 4s ease-in-out infinite; transform-box: view-box; transform-origin: 150px 150px; }
@keyframes login-spin { to { transform: rotate(360deg); } }
@keyframes login-spin-rev { to { transform: rotate(-360deg); } }
@keyframes login-wave { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes login-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.login-card { color: var(--ink); flex: 1 1 380px; max-width: 460px; }
.login-logo { width: 64px; height: 64px; object-fit: contain; }
@media (max-width: 760px) {
  .login-wrap { flex-direction: column; gap: 16px; }
  .login-orb { width: min(220px, 56vw); max-height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-orb .animated-ring-1, .login-orb .animated-ring-2, .login-orb .animate-wave, .login-orb .animate-float { animation: none; }
}
.eyebrow { letter-spacing: .14em; text-transform: uppercase; color: var(--green); font-weight: 700; margin-bottom: 0; }
.demo-box { margin-top: 14px; color: var(--muted); }
.demo-box ul { padding-left: 18px; }
.auth-body .toast { position: fixed; right: 16px; bottom: 16px; }
/*[18.10.2026]…ÖzkanKeskin…SafirSoft*/
.btn-accent { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-accent:hover { background: #013a7a; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn:disabled { opacity: .6; cursor: progress; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.accent-text { color: var(--green-dark); font-weight: 650; }
html.dark .accent-text { color: #7bd96c; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 4px 10px; cursor: pointer; font-size: 12px; }
.chip:hover { border-color: var(--green); color: var(--green-dark); }
.cell-link { color: var(--blue); font-weight: 650; }
html.dark .cell-link { color: #9cc8ff; }
.tab-panel thead th { cursor: pointer; user-select: none; }
.tab-panel thead th[aria-sort="ascending"]::after { content: " ▲"; font-size: 10px; }
.tab-panel thead th[aria-sort="descending"]::after { content: " ▼"; font-size: 10px; }
.tab-panel thead th.sortable::after { content: none; }
.sort-link { text-decoration: none; display: inline-flex; gap: 4px; align-items: center; color: inherit; }
.sort-ind::after { content: "↕"; opacity: .35; font-size: 11px; }
.sort-link.is-asc .sort-ind::after { content: "▲"; opacity: 1; color: var(--green); }
.sort-link.is-desc .sort-ind::after { content: "▼"; opacity: 1; color: var(--green); }
.row-clickable { cursor: pointer; }
.row-clickable:hover td { background: rgba(61,174,43,.06); }
.row-clickable.is-open td { background: rgba(0,40,86,.06); border-bottom-color: transparent; }
td.actions { justify-content: flex-end; }
.lines-row > td { background: color-mix(in srgb, var(--bg) 60%, var(--card)); padding: 10px 14px 16px; }
.lines-box { border-left: 3px solid var(--green); padding-left: 12px; display: grid; gap: 10px; }
.lines-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lines-table { min-width: 640px; background: var(--card); border-radius: 10px; }
.lines-table th { position: static; }
.lines-table tfoot td { font-weight: 700; border-bottom: 0; }
.lines-error { color: var(--danger); margin: 0; }
.lines-actions { display: flex; justify-content: flex-end; }
.qty-input { width: 110px; min-height: 32px; text-align: right; }
input:disabled, select:disabled, textarea:disabled, input[readonly] { background: color-mix(in srgb, var(--bg) 70%, var(--card)); color: var(--muted); }
.qty-input:disabled { cursor: not-allowed; opacity: .6; }
.check-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; padding: 10px; margin: 0; }
.check-groups legend { color: var(--ink); }
.check-group { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--card); }
.check-group summary { cursor: pointer; font-weight: 700; color: var(--blue); }
html.dark .check-group summary { color: #9cc8ff; }
.check-grid { display: grid; gap: 4px; margin-top: 6px; }
.form-grid .check-item, .check-item { flex-direction: row !important; align-items: center; gap: 8px !important; color: var(--ink) !important; font-size: 13px !important; cursor: pointer; }
.check-item input { min-height: 0; width: 16px; height: 16px; accent-color: var(--green); }
.order-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.order-title { display: flex; gap: 10px; align-items: center; }
.order-title h1 { margin: 0; color: var(--blue); }
html.dark .order-title h1 { color: #d6e8ff; }
.order-badge { background: rgba(61,174,43,.15); color: var(--green-dark); border-radius: 999px; padding: 4px 10px; font-weight: 700; font-size: 12px; }
.order-toolbar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.order-status { color: var(--muted); font-size: 13px; }
.order-status.is-ready { color: var(--green-dark); font-weight: 700; }
.order-summary { display: flex; flex-wrap: wrap; gap: 8px; }
.order-summary span { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.oh-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; align-items: end; }
.oh-grid > label, .oh-grid > div > label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12px; }
.oh-1 { grid-column: span 1; } .oh-2 { grid-column: span 2; } .oh-3 { grid-column: span 3; } .oh-12 { grid-column: 1 / -1; }
.oh-grid input[type="search"] { min-height: 32px; padding: 4px 10px; }
.oh-switch { display: flex; flex-direction: column; gap: 6px; }
.oh-label { color: var(--muted); font-size: 12px; }
.order-address { display: grid; grid-template-columns: 1.2fr 1fr .7fr 2fr; gap: 12px; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; }
.order-address label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12px; }
.order-lines-zone { display: grid; gap: 12px; }
.order-lines-zone.is-locked { opacity: .55; pointer-events: none; filter: grayscale(.4); }
.ole-row { display: grid; grid-template-columns: 3fr 1.6fr .8fr 1fr 1.1fr 1fr; gap: 12px; align-items: end; }
.ole-row > label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12px; }
.ole-product input[type="search"] { min-height: 32px; padding: 4px 10px; }
.qty-stepper { display: flex; align-items: stretch; }
.qty-stepper button { width: 38px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-size: 18px; }
.qty-stepper button:first-child { border-radius: 10px 0 0 10px; }
.qty-stepper button:last-child { border-radius: 0 10px 10px 0; }
.qty-stepper input { border-radius: 0; text-align: center; width: 100%; min-width: 0; }
.ole-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.line-preview { margin-left: auto; color: var(--muted); font-size: 13px; }
.order-lines { min-width: 760px; }
.order-totals { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.ot-card { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); }
.ot-card p { margin: 0; color: var(--muted); font-size: 12px; }
.ot-card strong { display: block; font-size: 17px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.ot-card small { color: var(--muted); }
.ot-bad { border-top-color: var(--danger); } .ot-bad strong { color: var(--danger); }
.ot-warn { border-top-color: var(--amber); }
.ot-net { border-top-color: var(--green); background: linear-gradient(135deg, rgba(61,174,43,.12), transparent); }
.ot-net strong { color: var(--green-dark); font-size: 20px; }
[data-total].is-loading { opacity: .4; }
.suggest { display: grid; border: 1px solid var(--line); border-radius: 10px; max-height: 200px; overflow: auto; background: var(--card); }
.suggest button { text-align: left; border: 0; background: transparent; padding: 8px 10px; cursor: pointer; }
.suggest button:hover { background: rgba(61,174,43,.12); }
.suggest .muted { padding: 8px 10px; margin: 0; }
@media (max-width: 1280px) {
  .oh-grid { grid-template-columns: repeat(6, 1fr); }
  .oh-3 { grid-column: span 3; } .oh-2 { grid-column: span 2; } .oh-1 { grid-column: span 1; }
  .order-totals { grid-template-columns: repeat(4, 1fr); }
  .ole-row { grid-template-columns: repeat(3, 1fr); }
  .ole-product { grid-column: 1 / -1; }
}
/*[11.11.2026]…ÖzkanKeskin…SafirSoft*/
.order-ws, .order-ws > * { min-width: 0; max-width: 100%; }
.order-ws .card, .order-lines-zone, .order-header { min-width: 0; max-width: 100%; }
.order-ws .table-wrap { min-width: 0; max-width: 100%; overflow-x: auto; }
@media (max-width: 760px) {
  .oh-grid { grid-template-columns: 1fr; }
  .oh-1, .oh-2, .oh-3, .oh-12 { grid-column: 1 / -1; }
  .order-toolbar, .order-title, .order-toolbar-actions { width: 100%; }
  .order-toolbar-actions .btn { flex: 1 1 calc(50% - 8px); justify-content: center; }
  .order-status { flex: 1 1 100%; }
  .order-address { grid-template-columns: 1fr; }
  .ole-row { grid-template-columns: 1fr; }
  .ole-product, .ole-qty, .ole-unit, .ole-price, .ole-total, .ole-add { grid-column: 1 / -1; }
  .qty-stepper { width: 100%; }
  .order-totals { grid-template-columns: 1fr 1fr; }
  .line-preview { margin-left: 0; width: 100%; }
}
/*[18.10.2026]…ÖzkanKeskin…SafirSoft*/
.territory-chip { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); opacity: .7; cursor: default; user-select: none; }
.form-grid > label { min-width: 0; }
.picker { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.picker select { width: 100%; min-width: 0; text-overflow: ellipsis; }
.picker input[type="search"] { min-height: 32px; padding: 4px 10px; }
.modal-actions .territory-box { flex: 1 1 260px; margin-right: auto; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.modal-actions .territory-box strong { color: var(--ink); font-size: 13px; }
.territory-list { display: flex; flex-wrap: wrap; gap: 6px; }
.territory-item { padding: 3px 9px; border-radius: 999px; background: rgba(61, 174, 43, .12); color: #2b7d1e; font-weight: 600; }
html.dark .territory-item { background: rgba(61, 174, 43, .2); color: #8fdc7f; }
.api-debug { margin: 0 0 12px; }
.api-toggle { border-style: dashed; color: #002856; font-family: ui-monospace, Consolas, monospace; }
html.dark .api-toggle { color: #93c5fd; }
.api-panel { padding: 12px 14px; }
.api-panel header { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.api-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.api-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.api-list code { flex: 1 1 100%; font-size: 12px; word-break: break-all; background: rgba(0, 40, 86, .06); border-radius: 6px; padding: 6px 8px; }
html.dark .api-list code { background: rgba(255, 255, 255, .06); }
.api-meta { font-size: 12px; margin-right: auto; }
td .territory-list { gap: 4px; max-width: 360px; }
td .territory-item { font-size: 12px; white-space: nowrap; }
.territory-item.chip-blue { background: rgba(0, 40, 86, .1); color: #002856; }
.territory-item.chip-slate { background: rgba(100, 116, 139, .14); color: #475569; }
html.dark .territory-item.chip-blue { background: rgba(96, 165, 250, .18); color: #93c5fd; }
html.dark .territory-item.chip-slate { background: rgba(148, 163, 184, .18); color: #cbd5e1; }
.oh-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; white-space: nowrap; }
.oh-head small { overflow: hidden; text-overflow: ellipsis; }
.info-dot { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; border: 1px solid currentColor; font-size: 10px; font-style: italic; font-weight: 700; opacity: .7; cursor: help; }
.switch-field { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.switch-field .switch-title { font-weight: 600; }
.switch-field .perm-switch { padding: 0; }
.switch-field .switch-state { font-size: 13px; }
.modal.modal-wide { width: min(980px, 96vw); }
.form-section { margin: 6px 0 0; font-size: 14px; color: #002856; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
html.dark .form-section { color: #8fb8e8; }
.row-editor { border: 1px dashed var(--line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.row-editor legend { font-weight: 600; padding: 0 4px; }
.row-editor-list { display: flex; flex-direction: column; gap: 6px; }
.row-editor-line { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) auto; gap: 8px; align-items: end; }
.row-editor-line label { min-width: 0; }
.row-editor-line select, .row-editor-line input { width: 100%; min-width: 0; }
.row-editor .js-row-add { align-self: flex-start; }
.existing-lines { margin: 0; padding: 0 0 0 16px; font-size: 13px; }
.gps-field { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.gps-field label { flex: 1 1 140px; }
.js-postcode { position: relative; }
.js-postcode .suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.bar-list { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 220px) 1fr 40px; gap: 10px; align-items: center; font-size: 13px; }
.bar-row .bar { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar-row .bar i { display: block; height: 100%; background: linear-gradient(90deg, #002856, #3DAE2B); border-radius: inherit; }
.bar-row b { text-align: right; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-left: 4px solid #002856; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.contact-card:hover, .contact-card:focus-visible { box-shadow: 0 6px 18px rgba(0,40,86,.12); outline: none; }
.contact-card.is-open { border-left-color: #3DAE2B; box-shadow: 0 6px 18px rgba(61,174,43,.18); }
.contact-card header { display: flex; flex-direction: column; gap: 2px; }
.contact-card header strong { font-size: 14px; line-height: 1.3; }
.contact-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.contact-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; margin: 0; font-size: 12px; }
.contact-meta dt { color: var(--muted); }
.contact-meta dd { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-actions { display: none; flex-wrap: wrap; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.contact-card.is-open .contact-actions { display: flex; }
.exec-layout { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 14px; align-items: start; }
.exec-list { display: flex; flex-direction: column; gap: 8px; max-height: 75vh; overflow: auto; padding-right: 4px; }
.visit-card { text-align: left; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 3px; cursor: pointer; font: inherit; }
.visit-card.is-today { border-left: 4px solid #3DAE2B; }
.visit-card.active { border-color: #002856; box-shadow: 0 0 0 2px rgba(0,40,86,.15); }
.visit-card .badge { justify-self: start; }
.visit-who { font-weight: 600; }
.visit-meta { font-size: 12px; }
.exec-detail { display: flex; flex-direction: column; gap: 12px; }
.exec-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.exec-head h2 { margin: 0; }
.gps-box { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(0,40,86,.06); font-size: 13px; }
.exec-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.exec-steps > li, .exec-steps > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.exec-steps > li.done { border-color: #3DAE2B; background: rgba(61,174,43,.07); }
.exec-steps p { margin: 0; font-size: 13px; }
.exec-steps button { align-self: flex-start; }
.exec-steps > .gps-field { flex-direction: row; align-items: flex-end; align-content: flex-start; }
.exec-steps > .gps-field label { flex: 1 1 110px; }
.sup-checks { align-items: start; }
.sup-checks > p { align-self: center; border: 0; }
.js-complete-fields { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.js-complete-fields:disabled { opacity: .55; }
.field-block { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-weight: 600; font-size: 13px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; cursor: pointer; user-select: none; transition: background .15s; }
.chip input:checked + span { background: #3DAE2B; border-color: #3DAE2B; color: #fff; }
.chip input:focus-visible + span { outline: 2px solid #002856; outline-offset: 2px; }
.support-form { margin-top: 14px; }
.sup-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 2px solid var(--line); }
.sup-tab { border: 0; background: transparent; padding: 8px 12px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.sup-tab.active { color: #002856; border-bottom-color: #3DAE2B; }
html.dark .sup-tab.active { color: #8fb8e8; }
.sup-pane { display: flex; flex-direction: column; gap: 10px; }
.sup-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.sup-lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.sut-compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sut-compare div { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; font-size: 12px; }
.sut-compare b { font-size: 15px; }
@media (max-width: 960px) {
  .exec-layout { grid-template-columns: 1fr; }
  .exec-list { max-height: none; }
  .sut-compare { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) {
  .stat-grid, .stat-grid.compact { grid-template-columns: repeat(2, 1fr); }
  .territory-chip { max-width: 180px; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .sidebar { position: fixed; transform: translateX(-105%); transition: transform .2s ease; }
  .sidebar.open { transform: none; }
  .backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 35; }
  .top-tools { gap: 6px; }
  #themeLabel, .user-chip small { display: none; }
  #clock { display: none; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .workspace { padding: 12px; }
  .stat-grid, .stat-grid.compact { grid-template-columns: 1fr; }
  .user-chip strong { max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
  .territory-chip { display: none; }
}

/*[18.10.2026]…ÖzkanKeskin…SafirSoft*/
.two-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 12px; align-items: start; }
.two-grid-main, .js-closures { display: grid; gap: 12px; min-width: 0; }
.kpi-side { display: grid; gap: 10px; position: sticky; top: 12px; }
.kpi-side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
.kpi-side .stat-card { padding: 10px 14px; }
.kpi-side .stat-card strong { font-size: 18px; margin: 4px 0 0; }
.grid-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.grid-scroll { max-height: 420px; overflow: auto; }
.grid-scroll thead th { position: sticky; top: 0; z-index: 1; background: var(--card); }
.grid-note { margin: 0; padding: 10px 14px; font-size: 12px; }
.pay-legend { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; }
.pay-chip { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; border-left: 4px solid transparent; }
.pay-pos { --pay: #2563eb; --pay-bg: rgba(37,99,235,.09); }
.pay-cheque { --pay: #3DAE2B; --pay-bg: rgba(61,174,43,.10); }
.pay-note { --pay: #d97706; --pay-bg: rgba(217,119,6,.10); }
.pay-bank { --pay: #0d9488; --pay-bg: rgba(13,148,136,.10); }
.pay-cash { --pay: #002856; --pay-bg: rgba(0,40,86,.08); }
.pay-transfer { --pay: #64748b; --pay-bg: rgba(100,116,139,.10); }
.pay-return { --pay: #7c3aed; --pay-bg: rgba(124,58,237,.09); }
.pay-refund { --pay: #dc2626; --pay-bg: rgba(220,38,38,.08); }
.pay-other { --pay: #94a3b8; --pay-bg: rgba(148,163,184,.10); }
.pay-chip { background: var(--pay-bg); border-left-color: var(--pay); }
tr.pay-row td { background: var(--pay-bg); }
tr.pay-row td:first-child { box-shadow: inset 4px 0 0 var(--pay); }
.risk-open td:first-child { box-shadow: inset 4px 0 0 #dc2626; }
.risk-cheque td:first-child { box-shadow: inset 4px 0 0 #3DAE2B; }
.risk-note td:first-child { box-shadow: inset 4px 0 0 #d97706; }
.risk-order td:first-child { box-shadow: inset 4px 0 0 #2563eb; }
html.dark .grid-scroll thead th { background: var(--card); }
@media (max-width: 1100px) {
  .two-grid { grid-template-columns: 1fr; }
  .kpi-side { position: static; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .kpi-side-head { grid-column: 1 / -1; }
}
/*[18.10.2026]…ÖzkanKeskin…SafirSoft*/
.api-toggle { display: inline-flex; align-items: center; gap: 6px; border-style: solid; border-color: rgba(0,40,86,.35); background: linear-gradient(135deg, rgba(0,40,86,.06), rgba(61,174,43,.10)); font-weight: 700; letter-spacing: .04em; }
.api-toggle .ico { width: 17px; height: 17px; color: #3DAE2B; }
.api-toggle .api-count { min-width: 18px; padding: 0 5px; border-radius: 999px; background: #002856; color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.api-toggle[aria-expanded="true"] { background: #002856; color: #fff; }
.api-toggle[aria-expanded="true"] .api-count { background: #3DAE2B; }
html.dark .api-toggle .api-count { background: #3DAE2B; }
/*[18.10.2026]…ÖzkanKeskin…SafirSoft*/
.filters .filter-picker { flex: 0 0 auto; max-width: 420px; }
.filters .filter-picker .picker { flex-direction: row; align-items: end; gap: 8px; width: 400px; max-width: 100%; }
.picker-col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.picker-col:first-child { flex: 0 0 140px; width: 140px; }
.picker-col:last-child { flex: 1 1 auto; min-width: 0; max-width: 250px; }
.picker-cap { color: var(--muted); font-size: 12px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-scroll { max-height: 228px; overflow: auto; }
.filters .filter-picker .picker input[type="search"] { flex: none; width: 140px; max-width: 140px; min-height: 36px; box-sizing: border-box; }
.filters .filter-picker .picker select { flex: 1 1 auto; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.two-grid .grid-scroll { max-height: calc((100vh - 360px) / 2); min-height: 170px; }
@media (max-width: 760px) {
  .filters .filter-picker, .filters .filter-picker .picker { width: 100%; max-width: none; }
  .filters .filter-picker .picker { flex-direction: column; align-items: stretch; }
  .picker-col, .picker-col:first-child, .picker-col:last-child { flex: 1 1 auto; width: 100%; max-width: none; }
  .filters .filter-picker .picker input[type="search"] { flex: 1 1 auto; width: 100%; max-width: none; }
  .filters .filter-picker .picker select { min-width: 0; max-width: none; }
  .two-grid .grid-scroll { max-height: 420px; }
}
tr.total-row td { font-weight: 700; border-top: 2px solid var(--line); background: rgba(0,40,86,.04); }
/*[18.10.2026]…ÖzkanKeskin…SafirSoft*/
td.right, th.right, .stat-card strong, .ot-card strong, .order-total, .line-sum { white-space: nowrap; }
.brand-tag { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: linear-gradient(135deg, #002856, #3DAE2B); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-decoration: none; }
.brand-tag:hover { filter: brightness(1.1); color: #fff; }
.risk-table .name-cell { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.risk-table th, .risk-table td { padding-left: 10px; padding-right: 10px; }
.risk-open { --pay: #dc2626; --pay-bg: rgba(220,38,38,.09); }
.risk-cheque { --pay: #3DAE2B; --pay-bg: rgba(61,174,43,.11); }
.risk-note { --pay: #d97706; --pay-bg: rgba(217,119,6,.11); }
.risk-order { --pay: #2563eb; --pay-bg: rgba(37,99,235,.09); }
tr.pay-row .pay-chip { display: inline-block; white-space: nowrap; background: #fff; color: var(--pay); border: 1px solid var(--pay); border-left-width: 4px; }
html.dark tr.pay-row .pay-chip { background: rgba(0,0,0,.25); }
.js-closures .grid-head .pay-legend { padding: 0; flex: 1 1 100%; }
.js-closures .grid-head { padding: 8px 14px; }
.js-closures > .card:first-child .grid-scroll { max-height: calc((100vh - 500px) * .45); min-height: 140px; }
.js-closures > .card:last-child .grid-scroll { max-height: calc((100vh - 500px) * .55); min-height: 140px; }
.stat-grid.compact .stat-card { padding: 10px 14px; }
.stat-grid.compact .stat-card strong { font-size: 18px; margin: 2px 0 0; }
@media (max-width: 760px) {
  .js-closures > .card .grid-scroll { max-height: 420px; }
  .risk-table .name-cell { max-width: 160px; }
}
/*[18.10.2026]…ÖzkanKeskin…SafirSoft*/
.filter-chips-wrap { flex: 1 1 100%; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chips button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px; font-weight: 700; cursor: pointer; white-space: nowrap; color: #002856; }
.filter-chips button.is-on { background: #002856; color: #fff; border-color: #002856; }
html.dark .filter-chips button { color: #93c5fd; }
html.dark .filter-chips button.is-on { background: #3DAE2B; color: #fff; border-color: #3DAE2B; }
.plain-list span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.plain-list small { color: var(--muted); font-size: 12px; }
.overdue-list li { background: rgba(220,38,38,.06); border-radius: 8px; padding: 8px 10px; border-bottom: 0; }
.overdue-list li span b { color: #b91c1c; }
.legend b { white-space: nowrap; }
.js-risk-page .page-head { margin-bottom: 6px; }
.js-risk-page .filters { margin-bottom: 8px; }
.js-risk-page .two-grid { grid-template-columns: minmax(0, 1fr) minmax(200px, 260px); gap: 8px; }
.js-risk-page .kpi-side { grid-template-columns: 1fr 1fr; gap: 6px; }
.js-risk-page .kpi-side-head { grid-column: 1 / -1; min-height: 22px; }
.js-risk-page .kpi-side .stat-card { padding: 6px 8px; }
.js-risk-page .kpi-side .stat-card p { font-size: 11px; }
.js-risk-page .kpi-side .stat-card strong { font-size: 13px; margin: 2px 0 0; }
.js-risk-page .grid-head { padding: 8px 12px; }
.js-risk-page .two-grid .grid-scroll { max-height: calc((100vh - 220px) / 2); min-height: 120px; }
@media (max-width: 1100px) {
  .js-risk-page .two-grid { grid-template-columns: 1fr; }
  .js-risk-page .kpi-side { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
/*[18.10.2026]…ÖzkanKeskin…SafirSoft*/
.dash-kpis { grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); }
button.stat-card { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
button.stat-card:hover { border-color: #002856; }
.kpi-modal-tools { margin-bottom: 10px; }
.kpi-modal-table { max-height: 58vh; overflow: auto; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cal-nav strong { display: block; font-size: 18px; }
.cal-nav .btn { min-width: 42px; font-size: 20px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { text-align: center; font-size: 12px; color: var(--muted); font-weight: 700; }
.cal-day { min-height: 92px; max-height: 168px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: var(--card); display: flex; flex-direction: column; gap: 3px; }
.cal-day.js-cal-day { cursor: pointer; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; list-style: none; margin: 0 0 12px; padding: 0; }
.cal-legend li { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.cal-legend i { width: 14px; height: 14px; padding: 0; border-radius: 4px; }
.cal-day.is-empty { background: transparent; border-color: transparent; }
.cal-day.is-today { border-color: #3DAE2B; box-shadow: inset 0 0 0 1px #3DAE2B; }
.cal-day b { font-size: 13px; }
.cal-chip { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 0; border-radius: 6px; padding: 1px 5px; font: inherit; font-size: 11px; text-align: left; cursor: pointer; background: #64748b; color: #fff; }
.cal-chip.type-rutin { background: #002856; }
.cal-chip.type-potansiyel { background: #3DAE2B; }
.cal-chip.type-tahsilat { background: #d97706; }
.cal-chip.type-firsat { background: #0ea5e9; }
.cal-chip.type-teknik { background: #7c3aed; }
.cal-chip.type-saha { background: #0f766e; }
.cal-chip.type-pazar { background: #be123c; }
.cal-chip.type-diger { background: #64748b; }
/*[22.10.2026]…ÖzkanKeskin…SafirSoft*/
.dash-filter { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.dash-filter .filters { margin: 0; flex: 1; }
.js-orders, .js-tickets { display: grid; gap: 12px; }
.js-orders .grid-scroll, .js-tickets .grid-scroll { max-height: calc((100vh - 340px) / 2); min-height: 160px; }
.js-collect-page .js-closures > .card:first-child .grid-scroll { max-height: min(52vh, 480px); min-height: 320px; }
.js-collect-page .js-closures > .card:last-child .grid-scroll { max-height: min(36vh, 320px); min-height: 180px; }
.collect-cust { margin: 0 0 8px; padding: 8px 10px; background: rgba(0,40,86,.06); border-radius: 8px; }
.collect-modal-table { table-layout: fixed; width: 100%; }
.collect-modal-table th:first-child, .collect-modal-table td:first-child { width: 30%; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.collect-modal-table th:last-child, .collect-modal-table td:last-child { width: 70%; }
.js-risk-page .two-grid { isolation: isolate; overflow: visible; grid-template-columns: minmax(0, 1fr) minmax(200px, 260px); }
.js-risk-page .kpi-side { position: static; z-index: 0; align-self: start; }
.js-risk-page .two-grid-main { min-width: 0; position: relative; z-index: 1; overflow: auto; }
.js-tickets .grid-head, .js-risk-page .grid-head { background: #002856; color: #fff; border-bottom-color: #002856; }
.js-tickets .grid-head .muted, .js-risk-page .grid-head .muted { color: rgba(255,255,255,.8); }
.js-tickets .grid-scroll thead th, .js-risk-page .grid-scroll thead th { background: #e8eef5; color: #002856; }
html.dark .js-tickets .grid-scroll thead th, html.dark .js-risk-page .grid-scroll thead th { background: #16324f; color: #dbeafe; }
.collect-check { display: grid; place-items: center; }
.collect-check input { width: 16px; height: 16px; }
.js-order-lines { min-height: 120px; }
.js-order-lines .lines-box { margin: 0; }
/*[09.11.2026]…ÖzkanKeskin…SafirSoft*/
.card, .stat-card, .modal, .btn { transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.card { box-shadow: 0 8px 24px rgba(0, 40, 86, .05); }
.stat-card:hover, .score-card:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(0, 40, 86, .08); }
.eyebrow { letter-spacing: .12em; text-transform: uppercase; color: var(--green); font-size: 11px; font-weight: 700; margin: 0 0 4px; }
.notify { position: relative; }
.bell-btn { color: #b45309; }
.news-btn { color: #002856; }
html.dark .news-btn { color: #93c5fd; }
.news-count { background: #002856; }
.bell-count { position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: #b45309; color: #fff; font-size: 10px; line-height: 16px; }
.notify-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(380px, 86vw); max-height: min(70vh, 520px); overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px rgba(0, 40, 86, .14); z-index: 40; padding: 12px; }
/*[11.11.2026]…ÖzkanKeskin…SafirSoft*/
@media (max-width: 960px) {
  .notify-panel { position: fixed; top: 72px; left: 12px; right: 12px; width: auto; z-index: 80; }
  .dropdown { position: fixed; top: 72px; right: 12px; left: auto; width: min(240px, calc(100vw - 24px)); z-index: 80; }
}
.notify-panel header { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.notify-item { display: grid; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); }
.notify-item b { font-size: 13px; }
.notify-item.tone-red b { color: var(--danger); }
.notify-item.tone-amber b { color: var(--amber); }
.notify-item.tone-green b { color: var(--green-dark); }
.notify-item.tone-blue b { color: var(--blue); }
.insight-grid, .score-grid, .map-layout, .churn-grid { display: grid; gap: 14px; }
.insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
.score-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.map-layout { grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr); align-items: start; }
.churn-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.churn-card { border-radius: 16px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--amber); }
.churn-card.tone-red { border-left-color: var(--danger); }
.churn-card strong { display: block; font-size: 28px; margin: 4px 0; }
.fact-list { display: grid; gap: 8px; margin: 0; }
.fact-list div { display: grid; gap: 2px; }
.fact-list dt { color: var(--muted); font-size: 12px; }
.fact-list dd { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); display: grid; gap: 14px; }
.timeline li { position: relative; display: grid; gap: 2px; }
.timeline li:before { content: ""; position: absolute; left: -21px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(61, 174, 43, .2); }
.timeline time { color: var(--muted); font-size: 12px; }
.timeline p { margin: 2px 0 0; }
.score-card header { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.score-card h2 { font-size: 16px; margin: 0; }
.score-card ul { margin: 8px 0; padding-left: 16px; display: grid; gap: 4px; }
.score-meter { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 10px; }
.score-meter > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--green)); border-radius: inherit; animation: score-grow .7s ease forwards; }
.score-card.tone-red .score-meter > span { background: var(--danger); }
.score-card.tone-amber .score-meter > span { background: var(--amber); }
.score-num { margin: 6px 0 0; font-weight: 700; }
.score-search { display: grid; gap: 4px; max-width: 320px; margin-bottom: 8px; }
.gmap-frame { width: 100%; height: min(62vh, 560px); border: 0; border-radius: 16px; background: #e8eef5; }
.gmap-cities { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gmap-chip { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 99px; padding: 4px 10px; cursor: pointer; font-size: 12px; }
.gmap-chip.is-on { background: #002856; color: #fff; border-color: #002856; }
.tr-map { width: 100%; height: auto; }
.tr-sea { fill: #e7f0ea; }
html.dark .tr-sea { fill: #0e2438; }
.tr-map circle { fill: rgba(0, 40, 86, .82); cursor: pointer; transition: r .2s ease; }
.tr-map text { font-size: 10px; fill: var(--ink); pointer-events: none; }
.tr-map g.is-on circle { fill: var(--green); }
.file-row { display: flex; flex-wrap: wrap; gap: 8px; }
.empty-hero { padding: 28px; }
@keyframes score-grow { to { width: var(--w); } }
@media (max-width: 960px) {
  .insight-grid, .map-layout { grid-template-columns: 1fr; }
  .top-tools { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .stat-card, .modal, .btn, .score-meter > span { animation: none; transition: none; }
  .score-meter > span { width: var(--w); }
  .stat-card:hover, .score-card:hover { transform: none; }
}
.notify-item { width: 100%; text-align: left; background: transparent; border: 0; border-top: 1px solid var(--line); cursor: pointer; }
.notify-item.is-read { opacity: .55; }
.alert-stack { position: fixed; right: 16px; bottom: 16px; z-index: 95; display: flex; flex-direction: column; gap: 8px; width: min(340px, calc(100vw - 32px)); }
.alert-toast { text-align: left; border: 0; border-radius: 16px; padding: 12px 14px; color: #fff; background: #002856; box-shadow: 0 14px 30px rgba(0, 40, 86, .22); display: grid; gap: 4px; cursor: pointer; }
.alert-toast.tone-red { background: #8f1d18; }
.alert-toast.tone-amber { background: #9a5410; }
.alert-toast.tone-green { background: #146c2e; }
.churn-wrap { margin-top: 16px; }
.churn-head h2 { margin-bottom: 2px; }
.churn-card { min-width: 0; background: #fff; }
.churn-card.tone-red { background: linear-gradient(180deg, #fff6f5, #fff); border-left-color: #b42318; }
.churn-card.tone-amber { background: linear-gradient(180deg, #fffaf3, #fff); border-left-color: #b45309; }
.churn-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.churn-pill { font-size: 12px; font-weight: 700; }
.churn-card h3 { margin: 10px 0 0; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.churn-code { margin: 2px 0 8px; color: var(--muted); font-size: 12px; }
.churn-bar { height: 8px; border-radius: 99px; background: #e7eef5; overflow: hidden; }
.churn-card.tone-red .churn-bar span { background: #b42318; }
.churn-card.tone-amber .churn-bar span { background: #b45309; }
.churn-card.tone-red .churn-pill, .churn-card.tone-red strong { color: #b42318; }
.churn-card.tone-amber .churn-pill, .churn-card.tone-amber strong { color: #9a5410; }
.churn-card p { margin: 8px 0 0; line-height: 1.45; }
.v360-hero { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 8px 0 14px; padding: 22px; border-radius: 22px; background: linear-gradient(135deg, #002856, #146c2e); color: #fff; }
.v360-hero h2 { margin: 4px 0; font-size: 28px; line-height: 1.2; overflow-wrap: anywhere; }
.v360-hero p, .v360-kicker { margin: 0; color: rgba(255,255,255,.86); }
.v360-kicker { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.v360-pills { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.v360-pills span { background: rgba(255,255,255,.16); border-radius: 999px; padding: 6px 10px; font-size: 12px; }
.v360-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.v360-kpis .stat-card strong { font-size: 18px; overflow-wrap: anywhere; }
.v360-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 14px; margin-top: 14px; align-items: start; }
.v360-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.v360-tiles h2, .v360-time h2 { display: flex; justify-content: space-between; gap: 8px; }
.v360-tiles h2 span { color: var(--muted); font-size: 13px; font-weight: 600; }
.v360-time { position: sticky; top: 12px; max-height: calc(100vh - 110px); overflow: auto; }
.v360-contact { overflow-wrap: anywhere; }
.score-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 8px; }
.score-tools label { display: grid; gap: 4px; min-width: min(220px, 100%); font-size: 12px; color: var(--muted); }
.score-card { min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.score-card.tone-red { background: linear-gradient(180deg, #fff5f5 0%, #fff 46%); border-top: 4px solid #b42318; }
.score-card.tone-amber { background: linear-gradient(180deg, #fff8ef 0%, #fff 46%); border-top: 4px solid #b45309; }
.score-card.tone-green { background: linear-gradient(180deg, #f3fbf4 0%, #fff 46%); border-top: 4px solid #2c8d1e; }
.score-card header p { margin: 0; color: var(--muted); font-size: 12px; }
.score-card h2 { font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.score-card .badge { flex: none; max-width: 108px; white-space: normal; text-align: center; line-height: 1.25; }
.score-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.score-facts div { min-width: 0; background: rgba(0, 40, 86, .045); border-radius: 12px; padding: 8px; }
.score-facts span { display: block; color: var(--muted); font-size: 11px; }
.score-facts b { display: block; overflow-wrap: anywhere; font-size: 13px; line-height: 1.3; }
.score-facts .wide { grid-column: 1 / -1; }
.tr-land { fill: #b7dfb2; stroke: #1f7a32; stroke-width: 1.6; }
.tr-water { fill: #5d7f99; font-size: 12px; letter-spacing: .08em; }
.tr-map .js-map-pin path { fill: #002856; stroke: #fff; stroke-width: 1; }
.tr-map .js-map-pin circle { fill: #fff; }
.tr-map .js-map-pin text { font-size: 9px; font-weight: 700; }
.tr-map g.is-on path { fill: #2c8d1e; }
html.dark .churn-card.tone-red { background: linear-gradient(180deg, #3a1717, #102033); }
html.dark .churn-card.tone-amber { background: linear-gradient(180deg, #3a2a12, #102033); }
html.dark .score-card.tone-red { background: linear-gradient(180deg, #3a1717, #102033); }
html.dark .score-card.tone-amber { background: linear-gradient(180deg, #3a2a12, #102033); }
html.dark .score-card.tone-green { background: linear-gradient(180deg, #14301c, #102033); }
html.dark .score-facts div { background: rgba(255,255,255,.04); }
html.dark .tr-sea { fill: #0c3048; }
html.dark .tr-land { fill: #1d4d32; }
@media (max-width: 1100px) {
  .v360-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v360-layout, .v360-tiles { grid-template-columns: 1fr; }
  .v360-time { position: static; max-height: none; }
}
@media (max-width: 760px) {
  .cal-grid { gap: 3px; }
  .cal-day { min-height: 72px; padding: 3px; }
  .cal-chip { font-size: 9px; }
  .v360-hero h2 { font-size: 22px; }
}
/*[09.11.2026]…ÖzkanKeskin…SafirSoft*/
.studio-hero {
  display: flex; align-items: stretch; justify-content: space-between; gap: 18px;
  margin: 8px 0 14px; padding: 22px 24px; border-radius: 22px; color: #fff;
  background: radial-gradient(1200px 280px at 90% -40%, rgba(61,174,43,.55), transparent 55%),
              linear-gradient(135deg, #002856 0%, #0b3a6a 52%, #0f766e 140%);
  box-shadow: 0 18px 40px rgba(0, 40, 86, .18);
}
.studio-hero p { margin: 0; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; opacity: .8; }
.studio-hero strong { display: block; font-size: clamp(28px, 4vw, 42px); margin: 6px 0 4px; letter-spacing: -.03em; }
.studio-hero small { opacity: .85; }
.studio-spark { width: min(280px, 36%); min-height: 72px; }
.studio-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.studio-kpi { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; border-top: 4px solid #002856; }
.studio-kpi.tone-green { border-top-color: #3DAE2B; }
.studio-kpi.tone-amber { border-top-color: #d97706; }
.studio-kpi.tone-red { border-top-color: #b42318; }
.studio-kpi p, .studio-kpi small { margin: 0; color: var(--muted); }
.studio-kpi strong { display: block; font-size: 22px; margin: 6px 0 2px; }
.studio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.studio-card h2 { margin: 0 0 12px; font-size: 15px; }
.studio-span { grid-column: 1 / -1; }
.studio-cols { display: flex; align-items: flex-end; gap: 8px; height: 150px; }
.studio-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; }
.studio-col span { display: block; width: 100%; max-width: 28px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #3DAE2B, #002856); min-height: 8px; }
.studio-col small { color: var(--muted); font-size: 10px; }
.studio-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.studio-bars li div { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.studio-bars i { display: block; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 4px; }
.studio-bars em { display: block; height: 100%; border-radius: inherit; }
.studio-ranks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.studio-ranks li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; }
.studio-ranks em { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #e8eef5; font-style: normal; font-weight: 700; color: #002856; }
.studio-ranks li:nth-child(1) em { background: #f5d76e; }
.studio-ranks li:nth-child(2) em { background: #d7dee8; }
.studio-ranks li:nth-child(3) em { background: #e0b089; }
.studio-ranks b, .studio-ranks small { display: block; }
.studio-ranks small { color: var(--muted); font-size: 12px; }
.studio-funnel { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 8px; justify-items: center; }
.studio-funnel li { color: #fff; border-radius: 12px; padding: 10px 14px; text-align: center; min-width: 140px; }
.studio-funnel span { display: block; font-size: 12px; opacity: .9; }
.studio-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.studio-cloud span { background: rgba(0,40,86,.06); border-radius: 99px; padding: 6px 12px; font-size: 12px; }
.studio-aging { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.studio-aging > div { border-radius: 14px; padding: 12px; background: rgba(0,40,86,.05); }
.studio-aging .tone-red { background: #fff1f0; }
.studio-aging .tone-amber { background: #fff7ed; }
.studio-aging .tone-green { background: #f1faf0; }
.studio-aging .tone-blue { background: #eef4fb; }
.studio-aging p { margin: 0; color: var(--muted); font-size: 12px; }
.studio-aging strong { display: block; margin-top: 4px; font-size: 18px; }
.studio-note { margin: 0 0 12px; }
html.dark .studio-cloud span { background: rgba(255,255,255,.06); }
html.dark .studio-ranks em { background: #16324f; color: #dbeafe; }
html.dark .studio-aging .tone-red { background: #3a1717; }
html.dark .studio-aging .tone-amber { background: #3a2a12; }
html.dark .studio-aging .tone-green { background: #14301c; }
html.dark .studio-aging .tone-blue { background: #16324f; }
@media (max-width: 960px) {
  .studio-kpis, .studio-grid { grid-template-columns: 1fr; }
  .studio-hero { flex-direction: column; }
  .studio-spark { width: 100%; }
}
/*[09.11.2026]…ÖzkanKeskin…SafirSoft*/
.busy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
}
.busy-gif {
  width: 18px;
  height: 18px;
  position: relative;
  flex: 0 0 auto;
  display: inline-block;
  font-style: normal;
}
.busy-gif::before,
.busy-gif::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.busy-gif::before {
  inset: 0;
  border: 2.4px solid color-mix(in srgb, var(--blue) 16%, transparent);
  border-top-color: var(--green);
  border-right-color: var(--blue);
  animation: busy-spin .65s linear infinite;
}
.busy-gif::after {
  inset: 5px;
  background: var(--green);
  animation: busy-pulse .9s ease-in-out infinite;
}
.busy-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.busy-page .busy-gif {
  width: 32px;
  height: 32px;
}
.busy-page .busy-gif::after { inset: 9px; }
.plain-list li:has(> .busy) {
  justify-content: flex-start;
  align-items: center;
  border-bottom: 0;
  padding: 12px 4px;
}
td.empty .busy { justify-content: center; }
.stat-card .busy-gif { width: 22px; height: 22px; }
.stat-card .busy-gif::after { inset: 6px; }
.notify-list .busy { padding: 10px 4px; }
input.is-busy, select.is-busy {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%233DAE2B' stroke-width='3' stroke-linecap='round' stroke-dasharray='42 16'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='0.7s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
  padding-right: 34px;
}
@keyframes busy-spin { to { transform: rotate(360deg); } }
@keyframes busy-pulse {
  0%, 100% { transform: scale(.45); opacity: .35; }
  50% { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .busy-gif::before, .busy-gif::after { animation: none; }
}
/*[10.11.2026]…ÖzkanKeskin…SafirSoft*/
.rbac { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 14px; align-items: start; }
.rbac-list {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  display: flex; flex-direction: column; min-height: 520px; max-height: calc(100vh - 170px); overflow: hidden;
  box-shadow: var(--shadow);
}
.rbac-list-head { padding: 16px 16px 8px; }
.rbac-list-head h2 { margin: 0; }
.rbac-search { padding: 0 16px 12px; }
.rbac-search input { width: 100%; }
.rbac-items { list-style: none; margin: 0; padding: 0 10px 12px; overflow: auto; display: grid; gap: 6px; }
.rbac-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
}
.rbac-item.is-active {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(61,174,43,.14);
  background: color-mix(in srgb, var(--green) 10%, var(--card));
}
.rbac-item-main {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: center;
  padding: 10px 10px 10px 12px; text-decoration: none; color: inherit; min-width: 0;
}
.rbac-item-copy { min-width: 0; }
.rbac-item-copy b, .rbac-item-copy small { display: block; }
.rbac-item-copy small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rbac-item-meta { display: flex; flex-wrap: wrap; gap: 4px; grid-column: 2; }
.rbac-item-tools {
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 6px; border-left: 1px solid var(--line);
}
.rbac-avatar {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: #002856; color: #fff; font-size: 11px; font-weight: 700; grid-row: 1 / span 2;
}
.rbac-item.is-active .rbac-avatar { background: #3DAE2B; }
.rbac-detail { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rbac-hero {
  background: linear-gradient(135deg, #002856 0%, #0a4a8c 100%);
  color: #fff; border-radius: 18px; padding: 20px 22px;
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap;
}
.rbac-hero p { margin: 0; opacity: .82; }
.rbac-hero > div > p:first-child { letter-spacing: .12em; text-transform: uppercase; font-size: 11px; font-weight: 700; }
.rbac-hero h2 { margin: 6px 0 8px; font-size: clamp(22px, 3vw, 30px); }
.rbac-hero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rbac-hero-tags .badge { background: rgba(255,255,255,.14); color: #fff; }
.rbac-hero-tags .badge-green { background: #3DAE2B; }
.rbac-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rbac-hero .btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); color: #fff; }
.rbac-hero .btn-primary { background: #3DAE2B; border-color: #3DAE2B; }
.rbac-hero .btn-danger { background: #b42318; border-color: #b42318; }
.rbac-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rbac-users-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; flex-wrap: wrap; }
.rbac-users-head h2 { margin: 0; }
.rbac-users table { min-width: 560px; }
.rbac-user { display: flex; align-items: center; gap: 10px; }
.rbac-user .avatar { width: 32px; height: 32px; font-size: 12px; }
.rbac-user b, .rbac-user small { display: block; }
.rbac-empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.rbac-none { list-style: none; text-align: center; padding: 18px 8px; }
.rbac-perm-singles { display: flex; flex-wrap: wrap; gap: 8px; }
.rbac-perm-chip {
  display: inline-flex; align-items: center; margin: 0; padding: 6px 12px 6px 10px;
  width: fit-content; min-width: 0; min-inline-size: 0; max-width: 100%;
}
.js-perm-modal .modal.modal-wide { width: min(1100px, 96vw); }
.perm-form.stack { gap: 8px; }
.js-perm-modal .modal-head { margin-bottom: 8px; }
.rbac-perm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: start; }
.rbac-perm-box { margin: 0; padding: 6px 10px 8px; min-width: 0; }
.rbac-perm-box.is-wide { grid-column: span 2; }
.rbac-perm-legend {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  width: auto; max-width: 100%; float: none; padding: 0 6px;
}
.rbac-perm-list { display: flex; flex-direction: column; gap: 0; }
.rbac-perm-box.is-dense .rbac-perm-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.perm-form.stack .perm-switch,
.rbac-perm-chip .perm-switch {
  flex-direction: row; flex-wrap: nowrap; align-items: center;
  gap: 8px; padding: 3px 0; color: var(--ink); font-size: 13px;
}
.rbac-perm-chip .perm-switch { padding: 0; }
.perm-form .perm-switch > span:last-child { min-width: 0; line-height: 1.3; }
.rbac-perm-chip .perm-switch > span:last-child { white-space: nowrap; }
.js-role-locked { opacity: .55; cursor: not-allowed; }
.perm-form .modal-actions { align-items: center; margin-top: 2px; }
@media (max-width: 1100px) {
  .rbac { grid-template-columns: 1fr; }
  .rbac-list { max-height: none; min-height: 0; }
  .rbac-kpis { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .rbac-perm-grid { grid-template-columns: 1fr 1fr; }
  .rbac-perm-box.is-wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .rbac-perm-grid { grid-template-columns: 1fr; }
  .rbac-perm-box.is-wide { grid-column: auto; }
  .rbac-perm-box.is-dense .rbac-perm-list { grid-template-columns: 1fr; }
}

/*[11.11.2026]…ÖzkanKeskin…SafirSoft*/
td.actions { display: table-cell; text-align: right; white-space: nowrap; }
td.actions > * + * { margin-left: 6px; }

.closure-table .col-desc { max-width: 180px; width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.closure-table td:last-child { white-space: nowrap; }

.collect-modal-table { table-layout: auto; min-width: 0; width: 100%; }
.collect-modal-table th:first-child, .collect-modal-table td:first-child { width: auto; max-width: none; white-space: nowrap; overflow: visible; }
.collect-modal-table th:last-child, .collect-modal-table td:last-child { width: 1%; white-space: nowrap; }

.invoice-detail { display: grid; gap: 12px; }
.inv-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.inv-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 14px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--bg) 55%, var(--card)); }
.inv-facts div { min-width: 0; }
.inv-facts dt { font-size: 11px; color: var(--muted); }
.inv-facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.invoice-detail .lines-table { min-width: 640px; }

.v360-discounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.month-chart { display: grid; gap: 12px; margin-top: 14px; }
.month-chart-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.month-chart-head h2 { margin: 0; font-size: 16px; }
.month-year { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.month-year select { min-width: 96px; }
.month-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; height: 240px; }
.month-bars.is-loading { opacity: .45; }
.month-bar { position: relative; display: flex; flex-direction: column; min-width: 0; text-align: center; border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; border-radius: 8px; }
.month-bar:disabled { cursor: default; }
.month-bar:not(:disabled):hover, .month-bar:focus-visible { background: color-mix(in srgb, var(--green) 9%, transparent); outline: none; }
.month-val { font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 14px; }
.month-track { position: relative; flex: 1; border-bottom: 1px solid var(--line); }
.month-fill { position: absolute; left: 8%; right: 52%; bottom: 0; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #3DAE2B, #2b8a1f); transition: filter .15s; }
.month-fill.is-ton { left: 52%; right: 8%; background: linear-gradient(180deg, #1d4f8f, #002856); }
.month-fill.is-neg { background: #b42318; }
.month-bar:not(:disabled):hover .month-fill { filter: brightness(1.12); }
.month-name { font-size: 11px; color: var(--muted); padding-top: 4px; }
.month-ton { font-size: 10px; color: #002856; font-weight: 600; min-height: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.dark .month-ton { color: #93c5fd; }
.month-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-size: 12px; }
.month-legend li { display: inline-flex; align-items: center; gap: 6px; }
.month-key { width: 12px; height: 12px; border-radius: 3px; }
.month-key.is-amount { background: #3DAE2B; }
.month-key.is-ton { background: #002856; }
.month-tip { position: absolute; z-index: 20; bottom: calc(100% - 18px); left: 50%; transform: translateX(-50%); display: none; min-width: 168px; padding: 8px 10px; border-radius: 10px; background: #002856; color: #fff; font-size: 12px; text-align: left; box-shadow: 0 10px 24px rgba(0, 0, 0, .22); pointer-events: none; white-space: nowrap; }
.month-tip > * { display: block; }
.month-tip strong { margin-bottom: 3px; color: #a7f3a0; }
.month-tip em { margin-top: 4px; font-size: 11px; opacity: .8; }
.month-bar:nth-child(-n+2) .month-tip { left: 0; transform: none; }
.month-bar:nth-last-child(-n+2) .month-tip { left: auto; right: 0; transform: none; }
.month-bar:not(:disabled):hover .month-tip, .month-bar:focus-visible .month-tip { display: block; }
.month-detail { display: grid; gap: 10px; }
.month-detail-h { margin: 4px 0 0; font-size: 14px; }

.order-shipping { display: grid; gap: 10px; }
.os-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.os-head h2 { margin: 0; font-size: 15px; }
.os-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 10px; }
.os-grid small { display: block; color: var(--muted); font-size: 11px; }

.cal-chip.is-moved { box-shadow: inset 4px 0 0 #f97316; background-image: repeating-linear-gradient(135deg, rgba(249, 115, 22, .38) 0 6px, transparent 6px 12px); }
.cal-moved { display: inline-block; margin-right: 4px; padding: 0 4px; border-radius: 4px; background: #f97316; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .02em; }
.badge-orange { background: #ffedd5; color: #c2410c; }
html.dark .badge-orange { background: #431c07; color: #fdba74; }
.cell-note { display: block; margin-top: 3px; font-size: 11px; font-weight: 600; color: #c2410c; }
html.dark .cell-note { color: #fdba74; }

table.js-resizable th { position: sticky; }
.col-grip { position: absolute; top: 0; right: -4px; z-index: 3; width: 8px; height: 100%; cursor: col-resize; touch-action: none; }
.col-grip:hover, body.is-col-resizing .col-grip:active { background: rgba(61, 174, 43, .45); }
body.is-col-resizing { cursor: col-resize; user-select: none; }
table.is-resized th, table.is-resized td { overflow: hidden; text-overflow: ellipsis; }
.closure-table.is-resized .col-desc { max-width: none; width: auto; }

.support-modal { width: min(1100px, 100%); }
.support-modal .support-form { margin-top: 0; }
.support-modal .exec-head { align-items: flex-start; }
input.is-locked { background: color-mix(in srgb, var(--bg) 70%, var(--card)); cursor: not-allowed; }

@media (max-width: 760px) {
  .v360-discounts { grid-template-columns: 1fr; }
  .month-bars { gap: 3px; height: 200px; }
  .month-val { display: none; }
  .os-grid { grid-template-columns: 1fr 1fr; }
}

/*[14.11.2026]…ÖzkanKeskin…SafirSoft*/
.sreq-info { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-left: 4px solid var(--green); }
.sreq-info p { margin: 0; color: var(--muted); font-size: 13px; }
.sreq-inbox { margin-bottom: 16px; border-top: 3px solid var(--blue); }
.sreq-inbox .grid-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.sreq-hot td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
.sreq-desc { display: block; color: var(--muted); font-size: 11px; max-width: 420px; white-space: normal; }
.sreq-link { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: color-mix(in srgb, var(--green) 12%, var(--card)); color: var(--ink); font-size: 13px; }
.js-sreq-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 0 0 14px; }
.js-sreq-facts div { min-width: 0; }
.js-sreq-facts .full { grid-column: 1 / -1; }
.js-sreq-facts dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.js-sreq-facts dd { margin: 2px 0 0; white-space: pre-wrap; word-break: break-word; }

.mine-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.mine-head p { margin: 0; color: var(--muted); font-size: 13px; }
.mine-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.mine-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mine-lines li { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; }
tr.mine-closed { opacity: .65; }

.collect-amount { width: 130px; text-align: right; }
.js-collect-full { white-space: nowrap; margin-left: 6px; }
input.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 2px color-mix(in srgb, var(--danger) 18%, transparent); }
.js-collect-left.is-partial { color: var(--amber); font-weight: 600; }
.collect-hint { margin: 8px 0 0; font-size: 12px; color: var(--muted); }

.card-kind { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border: 0; padding: 0; margin: 0; }
.card-kind legend { margin-bottom: 6px; font-weight: 600; }
.card-kind-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.card-kind-opt:has(input:checked) { border-color: var(--green); background: color-mix(in srgb, var(--green) 9%, var(--card)); }
.card-kind-opt span { display: grid; gap: 2px; }
.card-kind-opt small { color: var(--muted); font-size: 12px; }

.period-sales { margin-bottom: 16px; }
.period-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.period-head p { margin: 2px 0 0; font-size: 12px; }
.period-tools { display: flex; gap: 8px; align-items: flex-end; }
.period-tools label { display: grid; gap: 2px; font-size: 12px; color: var(--muted); }
.period-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.period-sum div { padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--blue) 6%, var(--card)); }
.period-sum small { display: block; color: var(--muted); font-size: 12px; }
.period-sum strong { font-size: 18px; }
.period-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; height: 220px; align-items: end; }
.period-bar { display: grid; grid-template-rows: auto 1fr auto; gap: 4px; height: 100%; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; font: inherit; }
.period-bar:disabled { cursor: default; opacity: .45; }
.period-col { display: flex; align-items: flex-end; border-radius: 6px; background: color-mix(in srgb, var(--line) 45%, transparent); overflow: hidden; }
.period-col i { display: block; width: 100%; min-height: 2px; background: var(--blue); border-radius: 6px 6px 0 0; transition: height .3s; }
.period-bar.is-now .period-col i { background: var(--green); }
.period-bar:not(:disabled):hover .period-col i { background: var(--green-dark); }
.period-val { font-size: 11px; color: var(--muted); text-align: center; white-space: nowrap; }
.period-lbl { font-size: 12px; text-align: center; }
html.dark .period-col i { background: #4f86c6; }

@media (max-width: 760px) {
  .js-sreq-facts, .card-kind, .period-sum { grid-template-columns: 1fr; }
  .period-bars { gap: 3px; height: 180px; }
  .period-val { display: none; }
}