:root {
  --navy: #0f2c4c;
  --navy-2: #0a2240;
  --blue: #1b6ec2;
  --text: #1d2b3a;
  --muted: #6b7a89;
  --line: #e3e8ee;
  --bg: #f2f5f9;
  --card: #ffffff;
  --green: #2e9d5b;
  --green-bg: #e6f5ec;
  --red: #e5383b;
  --red-bg: #fdecec;
  --orange: #e08a1e;
  --radius: 8px;
  font-size: 15px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Titillium Web", -apple-system, "Segoe UI", Roboto, Arial, sans-serif; line-height: 1.45; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 12px; color: var(--navy); }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.1rem; }
h3 { font-size: 1rem; margin-top: 18px; }
code { background: #eef2f6; padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.wrap { max-width: 1900px; margin: 0 auto; padding: 0 clamp(16px, 4.7vw, 90px); }

/* Üst bar */
.topbar { background: linear-gradient(120deg, var(--navy) 0%, #183f69 100%); color: #fff; }
.topbar-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { color: #fff; font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { color: #5fb3ff; }
.search { flex: 1; max-width: 420px; }
.search input { width: 100%; background: rgba(255,255,255,.08); border: 0; border-bottom: 1px solid rgba(255,255,255,.35); color: #fff; padding: 9px 10px; border-radius: 4px 4px 0 0; }
.search input::placeholder { color: rgba(255,255,255,.65); }
.user-menu { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.user-menu a { color: #fff; opacity: .9; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer; }
.mainnav { background: var(--navy-2); }
.mainnav .wrap { display: flex; flex-wrap: wrap; }
.mainnav a { color: #dfe8f2; padding: 13px 18px; border-right: 1px solid rgba(255,255,255,.06); font-size: .97rem; }
.mainnav a:hover { background: rgba(255,255,255,.06); text-decoration: none; color: #fff; }
.mainnav a.active { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 -3px 0 #5fb3ff; }
.pill { display: inline-block; min-width: 22px; padding: 0 6px; border: 1.5px solid #fff; border-radius: 11px; font-size: .78rem; text-align: center; }

.main { padding-top: 22px; padding-bottom: 30px; }
.page-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 18px; padding-bottom: 6px; }
.crumbs { color: var(--muted); }
.crumbs a { color: var(--navy); font-weight: 600; }
.footer { color: var(--muted); font-size: .85rem; padding-bottom: 24px; }

/* Kartlar */
.card { background: var(--card); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(15,44,76,.06); }
.card.no-pad { padding: 0; overflow-x: auto; }
.pad { padding: 16px 20px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }

/* İstatistik */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.stat { background: #fff; border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; color: var(--text); border-left: 4px solid var(--blue); box-shadow: 0 1px 2px rgba(15,44,76,.06); }
.stat:hover { text-decoration: none; transform: translateY(-1px); }
.stat span { color: var(--muted); font-size: .9rem; }
.stat strong { font-size: 1.45rem; color: var(--navy); }
.stat small { color: var(--muted); }
.stat-red { border-left-color: var(--red); }
.stat-green { border-left-color: var(--green); }
.quick { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.mini-stats div { background: var(--bg); border-radius: 6px; padding: 10px; }
.mini-stats span { display: block; color: var(--muted); font-size: .85rem; }

/* Araç çubuğu */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar-search { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.summary-line { display: flex; gap: 28px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 14px; font-size: 1.02rem; }
.summary-line strong { color: var(--navy); }
.summary-line .right { margin-left: auto; }
.adv-search { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.adv-search label { display: flex; flex-direction: column; font-size: .88rem; color: var(--muted); }
.hidden { display: none !important; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; border-bottom: 2px solid var(--line); }
.tabs a { padding: 9px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tabs a.active { color: var(--navy); border-color: var(--blue); font-weight: 600; }

/* Butonlar */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 5px; border: 1px solid #d0d8e0; background: #fff; color: var(--text); font: inherit; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #f5f8fb; text-decoration: none; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: #155ca3; }
.btn-success { background: #5cad6a; border-color: #5cad6a; color: #fff; font-weight: 600; }
.btn-success:hover { background: #4b9a59; }
.btn-danger { background: #fff; border-color: var(--red); color: var(--red); }
.btn-danger:hover { background: var(--red-bg); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 13px 22px; font-size: 1.05rem; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 4px; background: #eef1f4; border: 0; color: var(--navy); cursor: pointer; font-size: 1rem; }
.icon-btn:hover { background: #dfe5eb; text-decoration: none; }
.icon-green { background: #5cad6a; color: #fff; }
.icon-green:hover { background: #4b9a59; }
.icon-red { color: var(--red); }
form.inline { display: inline; }

/* Tablo */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; background: #e9edf1; color: var(--navy); font-weight: 700; padding: 13px 12px; white-space: nowrap; }
.table td { padding: 12px; border-top: 1px solid #f0f2f5; vertical-align: middle; }
.table tbody tr:nth-child(even) td { background: #fafbfc; }
.table tbody tr:hover td { background: #f3f7fb; }
.table.compact th, .table.compact td { padding: 8px 10px; }
.table .num { text-align: right; white-space: nowrap; }
.table .center, .center { text-align: center; }
.table .chk { width: 44px; }
.table .chk input { width: 22px; height: 22px; }
.actions { white-space: nowrap; text-align: right; }
.actions > * { margin-left: 3px; }
tr.dim td { opacity: .55; }
.strong { font-weight: 700; color: var(--navy); }
.sub { color: var(--muted); font-size: .88rem; }
.muted { color: var(--muted); }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.pre { white-space: pre-wrap; }
.break { word-break: break-all; }
.invoices-table td { padding-top: 14px; padding-bottom: 14px; }

.badge { display: inline-block; min-width: 110px; text-align: center; padding: 6px 12px; border-radius: 4px; font-size: .88rem; color: #fff; }
.badge-red { background: var(--red); }
.badge-green { background: var(--green); }
.badge-gray { background: #8a96a3; }
.badge-orange { background: var(--orange); }
.table.compact .badge, .msg-row .badge { min-width: 0; padding: 3px 8px; font-size: .8rem; }

.pagination { display: flex; gap: 4px; flex-wrap: wrap; margin: 6px 0 12px; }
.pagination a, .pagination span { padding: 6px 11px; border-radius: 4px; background: #fff; border: 1px solid var(--line); }
.pagination a.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Formlar */
input, select, textarea { font: inherit; font-size: .97rem; color: var(--text); padding: 9px 10px; border: 1px solid #cfd8e1; border-radius: 5px; background: #fff; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(27,110,194,.25); border-color: var(--blue); }
input[type=checkbox] { width: auto; }
.toolbar select, .toolbar input { width: auto; min-width: 170px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-size: .92rem; color: #3b4a59; font-weight: 600; }
.form label small { font-weight: 400; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.span-2 { grid-column: span 2; }
.two { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.form label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.form-actions { margin-top: 18px; display: flex; gap: 10px; }
.danger-zone { margin: 4px 0 18px; }
.info-box { background: #eef5fc; border: 1px solid #cfe2f5; border-radius: 6px; padding: 12px 14px; font-weight: 400; }
.inline-form { display: flex; gap: 12px; align-items: flex-end; }
.inline-form label { flex: 1; max-width: 380px; }
.compact-form { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 6px; }
.compact-form label { margin-bottom: 10px; }

.items-table th { background: #f1f4f7; }
.items-table td { padding: 6px; }
.w-qty { width: 90px; } .w-price { width: 180px; } .w-vat { width: 90px; } .w-total { width: 140px; }
.product-pick { max-width: 420px; margin-bottom: 10px; }
.totals { margin: 14px 0 6px auto; max-width: 340px; }
.totals div { display: flex; justify-content: space-between; padding: 5px 0; }
.totals .grand { border-top: 2px solid var(--navy); font-size: 1.15rem; padding-top: 8px; }

.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 14px; border: 1px solid transparent; }
.alert-success { background: var(--green-bg); border-color: #bfe3cc; color: #1d6b3d; }
.alert-error { background: var(--red-bg); border-color: #f5c2c3; color: #a32124; }
.alert-warning { background: #fff5e5; border-color: #f3d39c; color: #8a5a10; }
.alert-info { background: #eef5fc; border-color: #cfe2f5; color: #1b4c7c; }

.dl { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }
.note { margin-top: 12px; background: #fffbea; border: 1px solid #f1e3a6; padding: 10px 12px; border-radius: 6px; }
.pay-row, .msg-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.msg-row { display: block; font-size: .92rem; }

/* Fatura belgesi */
.invoice-doc { font-size: .95rem; }
.doc-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid var(--navy); padding-bottom: 14px; margin-bottom: 14px; }
.doc-company { font-size: 1.25rem; font-weight: 700; color: var(--navy); }
.doc-small { color: var(--muted); font-size: .88rem; }
.doc-title { text-align: right; }
.doc-type { font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.doc-no { font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.doc-status .badge { min-width: 0; }
.doc-parties { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.doc-label { text-transform: uppercase; font-size: .75rem; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.doc-dates div { display: flex; justify-content: space-between; gap: 18px; }
.doc-dates span { color: var(--muted); }
.doc-items { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.doc-items th { background: #f1f4f7; text-align: left; padding: 9px; font-size: .88rem; }
.doc-items td { padding: 9px; border-bottom: 1px solid var(--line); }
.doc-items .num { text-align: right; white-space: nowrap; }
.doc-totals { margin-left: auto; max-width: 320px; }
.doc-totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.doc-totals .grand { border-top: 2px solid var(--navy); font-size: 1.1rem; padding-top: 7px; }
.doc-notes, .doc-bank { margin-top: 14px; padding: 10px 12px; background: #f7f9fb; border-radius: 6px; }
.doc-foot { margin-top: 18px; color: var(--muted); font-size: .8rem; text-align: center; }

/* Ödeme sayfası */
.pay-page { background: var(--bg); }
.pay-head { background: var(--navy); color: #fff; font-weight: 700; padding: 16px 0; margin-bottom: 20px; font-size: 1.1rem; }
.pay-wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.pay-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.pay-amount { font-size: 2rem; font-weight: 700; color: var(--navy); }

/* Yazdırma */
.print-page { background: #fff; }
.print-wrap { max-width: 820px; margin: 20px auto; padding: 0 16px; }
.print-bar { text-align: center; padding: 14px; background: var(--bg); }
@media print {
  .no-print, .print-bar, .pay-head, .pay-cta, .alert { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; padding: 0; }
}

/* Mobil */
@media (max-width: 1000px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-main { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .search { display: none; }
  .nav-toggle { display: block; }
  .user-menu { margin-left: auto; }
  .mainnav { display: none; }
  .nav-open .mainnav { display: block; }
  .mainnav .wrap { flex-direction: column; }
  .stats { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .toolbar-search { margin-left: 0; width: 100%; }
  .toolbar select, .toolbar input { min-width: 0; flex: 1; }
  .summary-line .right { margin-left: 0; }
  .doc-head, .doc-parties { flex-direction: column; }
  .doc-title { text-align: left; }
  .mini-stats { grid-template-columns: 1fr; }
  h1 { font-size: 1.3rem; }
}

/* ===== KonakWeb logo ===== */
.logo { display: inline-flex; align-items: flex-start; gap: 3px; color: #fff; line-height: 1; white-space: nowrap; }
.logo-word { font-family: "Titillium Web", Arial, sans-serif; font-weight: 700; font-size: 2.2em; letter-spacing: -0.045em; line-height: .9; }
.logo-badge { display: inline-flex; flex-direction: column; align-items: flex-end; margin-top: .12em; }
.logo-pill { display: inline-flex; align-items: center; gap: .3em; background: #f7931e; color: #fff; font-weight: 600; font-size: .78em; padding: .14em .22em .16em .5em; border-radius: 1em; letter-spacing: .01em; }
.logo-pill i { display: inline-block; width: .95em; height: .95em; background: #fff; border-radius: 50%; }
.logo-by { font-size: .38em; margin-top: .3em; opacity: .9; font-weight: 600; }
.logo-sm { font-size: 13px; }
.logo-lg { font-size: 19px; }
.brand { display: inline-flex; align-items: center; }

/* ===== Giriş / parola ekranları ===== */
.auth-page { margin: 0; min-height: 100vh; background: #0f3a57; color: #fff; overflow-x: hidden; }
#ocean { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.auth-wrap { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px; box-sizing: border-box; }
.auth-logo { margin-bottom: 52px; }
.auth-card { width: 100%; max-width: 450px; background: rgba(11, 35, 54, .82); border-radius: 10px; padding: 24px 24px 26px; box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .28); backdrop-filter: blur(2px); }
.auth-input { width: 100%; box-sizing: border-box; background: #e8f0fe; border: 0; border-bottom: 2px solid #c9d6e6; border-radius: 0; padding: 15px 4px; font-size: 1rem; color: #111; font-family: Arial, sans-serif; }
.auth-input:focus { outline: none; border-bottom-color: #f7931e; background: #eef4ff; }
.auth-input::placeholder { color: #6b7a89; font-family: "Titillium Web", Arial, sans-serif; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 1.12rem; color: #c7d4e0; margin-top: 2px; }
.auth-row.center { justify-content: center; font-size: 1rem; }
.auth-row a { color: #c7d4e0; }
.auth-row a:hover { color: #fff; text-decoration: none; }
.auth-check { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.auth-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.auth-check span { width: 30px; height: 30px; border: 1px solid #2b5675; border-radius: 4px; background: #0d2a40; display: inline-block; position: relative; }
.auth-check input:checked + span { background: #f7931e; border-color: #f7931e; }
.auth-check input:checked + span::after { content: ""; position: absolute; left: 10px; top: 5px; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.auth-check input:focus-visible + span { outline: 2px solid #f7931e; outline-offset: 2px; }
.auth-btn { margin-top: 10px; width: 100%; padding: 15px; background: #0d2a40; color: #fff; border: 2px solid #fff; border-radius: 6px; font-family: "Titillium Web", Arial, sans-serif; font-weight: 700; font-size: 1.25rem; cursor: pointer; transition: background .15s, color .15s; }
.auth-btn:hover { background: #fff; color: #0d2a40; }
.auth-title { color: #fff; font-size: 1.35rem; margin: 0; text-align: center; }
.auth-text { color: #c7d4e0; margin: 0; }
.auth-copy { margin-top: 36px; color: rgba(199, 212, 224, .55); text-align: center; font-size: 1.05rem; max-width: 380px; line-height: 1.6; }
.auth-card .alert { margin: 0; }
@media (max-width: 480px) {
  .logo-lg { font-size: 15px; }
  .auth-logo { margin-bottom: 32px; }
  .auth-row { font-size: 1rem; }
}

/* Ödeme sayfası başlığı logolu */
.pay-head .logo { font-size: 12px; }

/* ===== Üst menü: fareyle açılan alt menüler ===== */
.topbar { background: radial-gradient(120% 140% at 85% -20%, #1f5a80 0%, rgba(31,90,128,0) 55%), linear-gradient(120deg, #0d2a44 0%, #123d60 100%); }
.mainnav { background: rgba(6, 26, 46, .92); position: relative; z-index: 50; }
.mainnav .wrap { display: flex; flex-wrap: wrap; }
.nav-item { position: relative; }
.mainnav .nav-link { display: block; color: #e4edf5; padding: 14px 20px; border-right: 1px solid rgba(255,255,255,.07); font-size: 1.05rem; }
.mainnav .nav-link:hover, .nav-item:hover > .nav-link, .nav-item:focus-within > .nav-link { background: #0e4766; color: #fff; text-decoration: none; }
.mainnav .nav-link.active { background: rgba(255,255,255,.1); box-shadow: inset 0 -3px 0 #f7931e; }
.nav-item .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 300px; background: #0e4766; box-shadow: 0 10px 24px rgba(0,0,0,.28); padding: 6px 0; z-index: 60; }
.nav-item:hover > .sub, .nav-item:focus-within > .sub { display: block; }
.nav-item .sub a { display: block; color: #e9f1f7; padding: 11px 18px; font-size: 1.05rem; border: 0; white-space: nowrap; }
.nav-item .sub a:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.nav-item.has-sub > .nav-link::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); opacity: .6; }
@media (max-width: 720px) {
  .mainnav .wrap { flex-direction: column; }
  .nav-item .sub { position: static; box-shadow: none; min-width: 0; background: rgba(255,255,255,.05); }
  .nav-item:hover > .sub { display: none; }
  .nav-item.open > .sub { display: block; }
}

/* ===== Başlangıç (dashboard) ===== */
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.dstat { background: #fff; border-radius: 4px; box-shadow: 0 1px 3px rgba(15,44,76,.1); color: var(--text); display: flex; flex-direction: column; }
.dstat:hover { text-decoration: none; box-shadow: 0 3px 10px rgba(15,44,76,.15); }
.dstat-main { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; }
.dstat-main strong { display: block; font-size: 1.55rem; font-weight: 700; line-height: 1.2; }
.dstat-main span { font-size: 1rem; }
.dstat-ico { width: 52px; height: 52px; color: #c9d2db; flex: none; }
.dstat-foot { display: flex; justify-content: space-between; border-top: 1px solid #eef1f4; padding: 6px 16px; font-size: .9rem; color: var(--muted); }
.dstat-foot b { color: var(--navy); }
.c-green { color: #39a85b; } .c-orange { color: #f39c12; } .c-blue { color: #3a8dde; } .c-red { color: #e74c3c; }

.dash-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.tile { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-radius: 4px; color: #fff; min-height: 96px; }
.tile:hover { text-decoration: none; filter: brightness(1.05); }
.tile strong { display: block; font-size: 1.6rem; line-height: 1.1; }
.tile span { display: block; font-size: 1.1rem; }
.tile small { opacity: .9; }
.tile-ico { width: 54px; height: 54px; opacity: .35; flex: none; }
.t-pink { background: #e9396f; } .t-purple { background: #a46ff2; } .t-green { background: #6ca86a; } .t-slate { background: #5e7a8e; }

.panel { background: #fff; box-shadow: 0 1px 3px rgba(15,44,76,.1); margin-bottom: 18px; border-radius: 3px; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; background: #0e4766; color: #fff; padding: 10px 14px; font-weight: 600; font-size: 1.02rem; }
.panel-head span { display: inline-flex; align-items: center; gap: 8px; }
.panel-head a { color: #fff; font-size: .9rem; background: rgba(0,0,0,.25); padding: 3px 10px; border-radius: 3px; }
.panel-head a:hover { background: rgba(0,0,0,.4); text-decoration: none; }
.panel-head small { color: #cfe0ec; font-weight: 400; }
.ph-ico { width: 17px; height: 17px; }
.panel-body { padding: 14px; }
.panel-body.no-pad { padding: 0; overflow-x: auto; }
.dtable th { background: #f2f4f6; font-size: .92rem; padding: 10px 12px; }
.dtable td { font-size: .95rem; padding: 10px 12px; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; align-items: start; }
.ico { width: 17px; height: 17px; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 16px; color: #b7c0c9; gap: 4px; }
.empty-ico { width: 46px; height: 46px; margin-bottom: 8px; }
.empty strong { color: #aab4be; }
.dash-note { width: 100%; border: 0; border-bottom: 1px solid #d6dde4; border-radius: 0; resize: vertical; font-size: .95rem; }
.dash-note:focus { outline: none; border-bottom-color: var(--blue); }
@media (max-width: 1100px) {
  .dash-stats, .dash-tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .dash-stats, .dash-tiles, .dash-grid { grid-template-columns: 1fr; }
}

/* ===== WiseCP tarzı detay/düzenleme ekranları ===== */
.wc-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 6px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.wc-head h1 { margin: 0; display: flex; align-items: center; gap: 14px; font-size: 1.6rem; }
.wc-head-ico { display: inline-flex; color: var(--navy); background: none; border: 0; padding: 0; cursor: pointer; }
.wc-head-ico .ico { width: 21px; height: 21px; }
.wc-head-ico:hover { color: var(--blue); }
.wc-head-ico svg path { stroke: currentColor; stroke-width: 2; }
.wc-tabs { display: flex; background: linear-gradient(#fafbfc, #f1f3f5); border-radius: 4px 4px 0 0; margin-bottom: 26px; }
.wc-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 14px 20px; color: var(--navy); border-bottom: 2px solid transparent; }
.wc-tabs a.active { background: #fff; border-bottom-color: var(--navy); }
.wc-tabs a:hover { text-decoration: none; background: #fff; }
.wc-tabs .ti { font-weight: 700; font-family: Georgia, serif; }
.wc-form { background: #fff; padding: 12px 6% 28px; border-radius: 0 0 4px 4px; box-shadow: 0 1px 3px rgba(15,44,76,.08); }
.wc-row { display: grid; grid-template-columns: 34% 1fr; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #eceff2; }
.wc-row > label { font-weight: 600; color: var(--navy); }
.wc-muted { color: var(--muted); }
.wc-input { border: 0; border-bottom: 1px solid #c9d2db; border-radius: 0; padding: 7px 4px; background: transparent; width: auto; min-width: 180px; font-family: inherit; }
.wc-input:focus { outline: none; border-bottom-color: var(--blue); background: #f8fbfe; }
.wc-input.wide { width: 100%; }
.wc-input.xs { min-width: 0; width: 64px; text-align: center; }
.wc-input.center { text-align: center; }
.wc-input:disabled { color: var(--text); opacity: 1; }
.wc-dt { display: flex; gap: 6px; flex-wrap: wrap; }
.wc-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wc-sep { width: 1px; height: 18px; background: #d6dde4; margin: 0 8px; }
.wc-radios { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.wc-radio { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; }
.wc-radio input, .wc-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wc-radio span { width: 24px; height: 24px; border: 1.5px solid #4a5c6c; border-radius: 50%; display: inline-block; position: relative; flex: none; }
.wc-radio input:checked + span { background: var(--navy); border-color: var(--navy); }
.wc-radio input:checked + span::after { content: ""; position: absolute; left: 8px; top: 4px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.wc-radio input:focus-visible + span, .wc-check input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.wc-items { margin: 18px 0 8px; background: #e9ecef; }
.wc-items table { width: 100%; border-collapse: collapse; }
.wc-items th { padding: 12px 8px; font-weight: 700; color: var(--navy); text-align: center; }
.wc-items tbody tr { background: #fff; }
.wc-items td { padding: 10px 8px; border-bottom: 1px solid #eef0f2; }
.wc-items .w-sel { width: 90px; } .wc-items .w-disc { width: 150px; } .wc-items .w-amt { width: 200px; } .wc-items .w-del { width: 60px; }
.wc-chk { width: 22px; height: 22px; accent-color: var(--navy); cursor: pointer; }
.wc-del { width: 34px; height: 34px; border: 0; border-radius: 4px; background: #f1f3f5; color: var(--red); cursor: pointer; }
.wc-del:hover { background: var(--red-bg); }
.wc-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wc-foot-left { display: flex; align-items: flex-start; gap: 10px; padding: 12px 8px; flex-wrap: wrap; }
.wc-foot-left .wc-input { background: #fff; }
.wc-add { width: 36px; height: 36px; border: 1.5px solid var(--navy); border-radius: 3px; background: #fff; color: var(--navy); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.wc-add:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 6px 10px; font-size: .9rem; }
.wc-totals { min-width: 380px; }
.wc-totals div { display: grid; grid-template-columns: 1fr 200px; align-items: center; }
.wc-totals span { text-align: right; padding: 12px 16px; color: var(--navy); }
.wc-totals strong { background: #fff; text-align: center; padding: 12px 8px; border-bottom: 1px solid #eef0f2; color: var(--navy); }
.wc-totals .grand strong { color: #5cad6a; font-size: 1.3rem; }
.wc-submit { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 22px; }
.wc-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.wc-check span:first-of-type { width: 24px; height: 24px; border: 1.5px solid #4a5c6c; border-radius: 3px; display: inline-block; position: relative; }
.wc-check input:checked + span { background: var(--navy); border-color: var(--navy); }
.wc-check input:checked + span::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.wc-btn { background: #5cad6a; color: #fff; border: 0; border-radius: 30px; padding: 13px 70px; font-family: inherit; font-weight: 700; font-size: 1.1rem; cursor: pointer; }
.wc-btn:hover { background: #4b9a59; }
@media (max-width: 760px) {
  .wc-form { padding: 8px 12px 20px; }
  .wc-row { grid-template-columns: 1fr; gap: 6px; }
  .wc-items { overflow-x: auto; }
  .wc-items table { min-width: 640px; }
  .wc-totals { min-width: 0; width: 100%; }
  .wc-totals div { grid-template-columns: 1fr 150px; }
  .wc-btn { width: 100%; }
}

/* ===== Faz 1: siparişler, kasa, müşteri özeti ===== */
.badge-blue { background: #3a8dde; }
.list-tabs { display: flex; background: #fff; border-radius: 4px 4px 0 0; box-shadow: 0 1px 2px rgba(15,44,76,.06); margin-bottom: 0; }
.list-tabs a { padding: 12px 20px; color: var(--navy); border-bottom: 2px solid transparent; }
.list-tabs a.active { border-bottom-color: var(--navy); font-weight: 600; }
.list-tabs a:hover { text-decoration: none; background: #f6f8fa; }
.dt-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff; padding: 10px 14px; flex-wrap: wrap; }
.dt-len { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.dt-search label { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.dt-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 14px; }
.tag { display: inline-block; border: 1px solid #b9c6d2; border-radius: 3px; padding: 0 6px; font-size: .78rem; color: #4d6275; margin-left: 4px; white-space: nowrap; }
tr.unread td { background: #fffbea !important; }
.wc-note { margin-top: 6px; color: var(--muted); }
.wc-hint { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.cash-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.cash-balance { display: flex; align-items: center; gap: 12px; }
.cash-balance span { font-size: 1.4rem; color: var(--navy); }
.cash-balance strong { background: #fff; border: 1px solid #dfe5eb; border-radius: 4px; padding: 8px 18px; font-size: 1.3rem; color: #39a85b; }
.cash-month { padding: 10px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.cust-summary { padding: 18px 2%; }
.cs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cs-grid h3 { margin: 0 0 12px; font-size: 1.02rem; }
.cs-dl { display: grid; grid-template-columns: 44% 1fr; margin: 0 0 12px; }
.cs-dl dt, .cs-dl dd { padding: 9px 4px; border-bottom: 1px solid #eef1f4; margin: 0; font-size: .93rem; }
.cs-dl dt { font-weight: 600; color: var(--navy); }
.cs-dl.compact dt, .cs-dl.compact dd { padding: 6px 4px; font-size: .88rem; }
.cs-btn, .cs-grid form.inline { display: block; width: 100%; }
.cs-btn { box-sizing: border-box; text-align: center; background: #eceff2; color: var(--navy); border: 0; border-radius: 22px; padding: 10px 14px; margin-bottom: 10px; cursor: pointer; font: inherit; font-weight: 600; list-style: none; }
.cs-btn:hover { background: #dfe4e9; text-decoration: none; }
.cs-danger { color: var(--red); }
.cs-total { font-weight: 600; color: var(--navy); }
.cs-bottom { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.cs-send summary::-webkit-details-marker { display: none; }
.cs-send form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
@media (max-width: 1000px) { .cs-grid { grid-template-columns: 1fr; } }

/* ===== Faz 2: destek sistemi, hatırlatıcı, görevler ===== */
.wc-info { background: #6ca86a; color: #fff; padding: 14px 18px; border-radius: 4px; margin-bottom: 14px; line-height: 1.5; }
.tbadge { display: inline-block; min-width: 100px; text-align: center; padding: 5px 10px; border: 1.5px solid; border-radius: 4px; font-size: .86rem; background: #fff; }
.tb-red { color: var(--red); border-color: var(--red); } .tb-orange { color: var(--orange); border-color: var(--orange); }
.tb-blue { color: #3a8dde; border-color: #3a8dde; } .tb-gray { color: #5e7a8e; border-color: #9fb0bf; }
.tk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.tk-main .wc-form { padding: 10px 20px 20px; }
.tk-reply .wc-row { grid-template-columns: 28% 1fr; }
.tk-reply .tox-tinymce { margin: 14px 0; border-radius: 4px; }
.tk-side .wc-form { padding: 6px 16px 18px; border-radius: 4px; }
.tk-row { display: grid; grid-template-columns: 40% 1fr; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid #eef1f4; font-size: .93rem; }
.tk-row > label { font-weight: 600; color: var(--navy); }
.tk-row.col { grid-template-columns: 1fr; }
.tk-side .wc-input { min-width: 0; width: 100%; }
.wc-btn.wide { width: 100%; margin-top: 14px; padding: 12px; }
.tk-msg { background: #fff; border-radius: 4px; padding: 14px 18px; margin-top: 14px; box-shadow: 0 1px 3px rgba(15,44,76,.08); border-left: 4px solid #3a8dde; }
.tk-msg.cust { border-left-color: #6ca86a; }
.tk-msg-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.tk-msg-head > div:first-child { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.linkbtn { background: none; border: 0; color: var(--blue); cursor: pointer; padding: 0; font: inherit; font-size: .9rem; }
.linkbtn:hover { text-decoration: underline; }
.tk-priv { color: var(--muted); font-size: .85rem; margin-bottom: 6px; }
.tk-body { line-height: 1.6; word-break: break-word; }
.tk-body img { max-width: 100%; height: auto; }
.tk-body.private { filter: blur(5px); cursor: pointer; user-select: none; }
.tk-body.private.revealed { filter: none; user-select: auto; }
.tk-files { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 12px; font-size: .9rem; }
.tk-edit { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.online-user { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid #eef1f4; border-radius: 4px; margin-bottom: 8px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #0e4766; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.btnlike { border: 0; cursor: pointer; font: inherit; }
.inline-edit { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
@media (max-width: 1000px) { .tk-grid { grid-template-columns: 1fr; } .tk-reply .wc-row { grid-template-columns: 1fr; } }

/* ===== Faz 3: otomasyon, şablonlar ===== */
.switch { position: relative; display: inline-block; width: 46px; height: 24px; vertical-align: middle; margin-right: 8px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #c9d2db; border-radius: 24px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: #5cad6a; }
.switch input:checked + span::before { transform: translateX(22px); }
.switch input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.auto-intro { color: #3b4a59; line-height: 1.6; }
.auto-h { margin: 26px 0 4px; padding-bottom: 8px; border-bottom: 2px solid var(--navy); }
.auto-lines { display: flex; flex-direction: column; gap: 8px; }
.auto-form .wc-row > div { line-height: 1.8; }
.wc-row.master { background: #f7f9fb; padding-left: 10px; padding-right: 10px; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; align-items: start; }
.tpl-group { background: #fff; border-radius: 4px; box-shadow: 0 1px 3px rgba(15,44,76,.1); padding: 0 12px 10px; }
.tpl-group-title { display: inline-block; background: #0e4766; color: #fff; padding: 5px 12px; border-radius: 0 0 4px 4px; font-weight: 600; margin-bottom: 8px; }
.tpl-item { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid #eef1f4; color: var(--text); }
.tpl-item:hover { background: #f6f9fc; text-decoration: none; }
.tpl-name { flex: 1; }
.tpl-ch { color: var(--muted); font-size: .85rem; }
.tpl-item .icon-btn { width: 30px; height: 30px; }
.tpl-vars { display: flex; flex-wrap: wrap; gap: 6px; }
.tpl-vars .tag { cursor: pointer; background: #f1f4f7; font-family: monospace; font-size: .82rem; }

/* ===== Faz 4: toplu gönderim, kayıtlar ===== */
.chk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; }
.progress { height: 14px; background: #eef1f4; border-radius: 7px; overflow: hidden; margin: 14px 0 10px; }
.progress-bar { height: 100%; background: #5cad6a; transition: width .3s; }
.camp-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.camp-nums { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 10px; }
.camp-body { max-height: 420px; overflow: auto; border: 1px solid #eef1f4; border-radius: 4px; padding: 12px; }
.camp-body img { max-width: 100%; height: auto; }

/* ===== Faz 5 ===== */
.text-orange { color: var(--orange); }
.promo-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.promo-box form.inline { margin-left: auto; }

/* Müşteri kayıt ekranı */
.auth-card.auth-wide { max-width: 560px; }
.auth-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-stack { display: flex; flex-direction: column; gap: 14px; }
.auth-seg { display: flex; gap: 22px; color: #c7d4e0; font-size: 1.05rem; }
.auth-seg label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.auth-seg input { accent-color: #f7931e; width: 18px; height: 18px; }
.auth-check.sm { font-size: .95rem; align-items: flex-start; color: #c7d4e0; }
.auth-check.sm span:first-of-type { width: 22px; height: 22px; flex: 0 0 22px; }
.auth-check.sm input:checked + span::after { left: 7px; top: 3px; width: 5px; height: 10px; }
.auth-check.sm a { color: #f7b45e; }
.auth-kvkk { max-height: 220px; overflow: auto; background: rgba(255, 255, 255, .95); color: #333; border-radius: 6px; padding: 12px 14px; font-size: .9rem; }
@media (max-width: 480px) { .auth-2 { grid-template-columns: 1fr; } }
.auth-stack[hidden] { display: none; }
.auth-check span.t { width: auto; height: auto; border: 0; background: none; flex: 1; display: inline; }
.auth-check input:checked + span.t::after { content: none; }
.auth-lang { justify-content: center; }
.auth-lang a { color: #c7d4e0; border: 1px solid #2b5675; }
.nav-item .sub .sub-h { display: block; padding: 10px 18px 4px; color: #8fb3cf; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; border-top: 1px solid rgba(255,255,255,.08); margin-top: 4px; }
.logo.logo-img img { display: block; height: 3.4em; width: auto; max-width: 260px; object-fit: contain; }
.logo-lg.logo-img img { height: 4.6em; }

/* ===== WAnalytics ===== */
.wa-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 18px; align-items: start; }
.wa-filter label { display: inline-flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); }
.wa-filter select, .wa-filter input { min-width: 0 !important; }
.wa-sum { font-size: 1.02rem; margin: 4px 0 16px; }
.wa-chart { width: 100%; height: 240px; display: block; }
.wa-chart rect:hover { opacity: .75; }
.wa-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.wa-card { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; color: var(--text); }
.wa-card:hover { text-decoration: none; border-color: var(--blue); }
.wa-card span { color: var(--muted); font-size: .9rem; }
.wa-card strong { font-size: 1.35rem; color: var(--navy); }
.wa-nav { padding: 8px 0; position: sticky; top: 12px; }
.wa-nav .wa-g { padding: 12px 16px 4px; font-weight: 700; color: var(--navy); font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
.wa-nav a { display: block; padding: 7px 16px 7px 24px; color: var(--text); font-size: .95rem; }
.wa-nav a:hover { background: #f3f7fb; text-decoration: none; }
.wa-nav a.on { background: #eaf2fb; color: var(--blue); font-weight: 700; box-shadow: inset 3px 0 0 var(--blue); }
@media (max-width: 960px) { .wa-layout { grid-template-columns: 1fr; } .wa-nav { position: static; order: -1; } }

/* ===== Üst menü tek sıra (masaüstü) ===== */
@media (min-width: 1100px) {
  .mainnav .wrap { flex-wrap: nowrap; }
  .mainnav .nav-item { flex: 1 1 auto; }
  .mainnav .nav-link { padding: 14px 8px; font-size: .95rem; text-align: center; white-space: nowrap; }
  .nav-item.has-sub > .nav-link::after { margin-left: 5px; }
  .mainnav .nav-item:nth-last-child(-n+3) .sub { left: auto; right: 0; }
}
@media (min-width: 1100px) and (max-width: 1360px) {
  .mainnav .nav-link { padding: 13px 5px; font-size: .86rem; }
  .nav-item.has-sub > .nav-link::after { width: 5px; height: 5px; margin-left: 3px; }
}
/* Giriş yeri (il · IP) */
.user-geo { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: #b9cde0; background: rgba(255,255,255,.08); border-radius: 14px; padding: 4px 10px; white-space: nowrap; }
.user-geo svg { width: 13px; height: 13px; }
@media (max-width: 900px) { .user-geo { display: none; } }

/* ===== Faturalar listesi: WiseCP görünümü ===== */
.card:has(> .invoices-table) { background: transparent; box-shadow: none; border: 0; }
.invoices-table { border-collapse: separate; border-spacing: 0; font-size: 15px; color: #095174; border-radius: 5px; overflow: hidden; }
.invoices-table thead tr { background: #ebebeb; }
.invoices-table th { background: transparent !important; color: #095174; font-weight: 700; font-size: 15px; padding: 14px 10px; border-bottom: 1px dotted #ccc; }
.invoices-table td { padding: 8px 10px !important; border-top: 0; color: #095174; font-size: 15px; vertical-align: middle; height: 61px; }
.invoices-table tbody tr td { background: #fff !important; }
.invoices-table tbody tr { box-shadow: inset 0 8px 19px -6px rgba(191, 191, 191, .3); }
.invoices-table tbody tr:hover td { background: #f6f9fb !important; }
.invoices-table td a, .invoices-table td a.strong { color: #095174; }
.invoices-table td .strong, .invoices-table td a.strong { font-weight: 700; }
.invoices-table td .sub { color: #095174; font-size: 15px; margin-top: 2px; }
.invoices-table .num { text-align: left; }
.invoices-table th.num { text-align: left; }
.invoices-table .badge { min-width: 0; width: 100px; padding: 4px 5px; font-size: 13px; border-radius: 5px; line-height: normal; }
.invoices-table .badge-red { background: #f44336; }
.invoices-table .badge-green { background: #6ca56e; }
.invoices-table .badge-gray { background: #8a96a3; }
.invoices-table .badge-orange { background: #f0ad4e; }
.invoices-table .text-red { color: red; }
.invoices-table .text-green { color: #4caf50; }
.invoices-table .muted { color: #095174; }
.invoices-table td.actions { text-align: center; white-space: nowrap; }
.invoices-table .icon-btn { width: 30px; height: 30px; border-radius: 3px; background: #eee; color: #095174; margin: 0 1px; vertical-align: middle; }
.invoices-table .icon-btn svg { width: 15px; height: 15px; stroke-width: 2.2; }
.invoices-table .icon-btn:hover { background: #ddd; }
.invoices-table .icon-btn.icon-green { background: #6ca56e; color: #fff; }
.invoices-table .icon-btn.icon-green:hover { background: #5e955f; }
.invoices-table .icon-btn.icon-red { background: #eee; color: #f44336; }
.invoices-table td.actions form { display: inline; }
.invoices-table .chk input { width: 20px; height: 20px; border-radius: 5px; accent-color: #095174; }

/* ===== Alt bilgi (WiseCP düzeni) ===== */
.last-login { text-align: center; color: #095174; font-size: 1.05rem; padding: 34px 16px 28px; }
.last-login strong { color: #095174; }
.site-foot { background: radial-gradient(120% 160% at 85% 0%, #1f5a80 0%, rgba(31,90,128,0) 55%), linear-gradient(120deg, #0d2a44 0%, #123d60 100%); color: rgba(255,255,255,.55); font-size: 1rem; }
.site-foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; min-height: 76px; }
.site-foot-by strong { color: rgba(255,255,255,.85); letter-spacing: .02em; }
.site-foot-by em { font-style: normal; font-size: .8rem; opacity: .6; margin-left: 4px; }
@media (max-width: 720px) { .site-foot-in { justify-content: center; text-align: center; padding: 14px 16px; } .last-login { font-size: .95rem; } }

/* ===== Müşteri detayı > Mesajlar (WiseCP düzeni) ===== */
.msg-list { color: #095174; }
.msg-tools { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; color: #607d8b; }
.msg-tools label { display: inline-flex; align-items: center; gap: 8px; }
.msg-tools select, .msg-tools input { border: 0; border-bottom: 1px solid #b9c6d1; background: transparent; padding: 8px 6px; font: inherit; color: #095174; min-width: 0; }
.msg-tools .msg-search { margin-left: auto; }
.msg-table { border-collapse: separate; border-spacing: 0; font-size: 15px; border-radius: 5px; overflow: hidden; }
.msg-table thead tr { background: #ebebeb; }
.msg-table th { background: transparent !important; color: #095174; font-weight: 700; border-bottom: 1px dotted #ccc; padding: 14px 12px; }
.msg-table td { background: #fff !important; padding: 10px 12px !important; border-top: 0; color: #095174; height: 57px; }
.msg-table tbody tr { box-shadow: inset 0 8px 19px -6px rgba(191, 191, 191, .3); }
.msg-table td a { color: #095174; }
.msg-tag { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 3px; background: #e3edf4; color: #095174; margin-left: 6px; vertical-align: middle; }
.msg-tag.err { background: #fdecec; color: #c62828; }
.msg-eye { width: 38px; height: 38px; border: 0; border-radius: 4px; background: #eee; color: #095174; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.msg-eye svg { width: 18px; height: 18px; }
.msg-eye:hover { background: #095174; color: #fff; }
.msg-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; color: #607d8b; }
.msg-modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.msg-modal[hidden] { display: none; }
.msg-modal-box { width: min(1000px, 100%); height: min(88vh, 900px); background: #fff; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.msg-modal-h { display: flex; justify-content: space-between; align-items: center; background: #345a6c; color: #fff; padding: 12px 16px; font-size: 1.05rem; }
.msg-modal-h button { background: rgba(255,255,255,.2); border: 0; color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 15px; }
.msg-modal iframe { flex: 1; width: 100%; border: 0; background: #fafafa; }

/* ===== Müşteri analizi (sadece yönetici) ===== */
.an { margin-top: 22px; }
.an-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.an-head h3 { margin: 0; font-size: 1.15rem; color: var(--navy); }
.an-lock { font-size: .8rem; background: #eef1f4; color: #546575; border-radius: 20px; padding: 3px 12px; }
.an-upd { font-size: .85rem; margin-left: auto; }
.an-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.an-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; margin-bottom: 16px; }
.an-lbl { font-size: .88rem; color: var(--muted); margin: 4px 0 8px; font-weight: 600; }
.an-seg, .an-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.an-g input, .an-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.an-g span, .an-chip span { display: inline-block; padding: 6px 13px; border: 1px solid #cfd8df; border-radius: 20px; font-size: .9rem; cursor: pointer; color: #546575; background: #fff; }
.an-g input:checked + span { background: #095174; border-color: #095174; color: #fff; }
.an-g-r input:checked + span { background: #e53935; border-color: #e53935; }
.an-g-a input:checked + span { background: #2e7d32; border-color: #2e7d32; }
.an-chip.an-pos input:checked + span { background: #e3f0fb; border-color: #64a3dc; color: #0c447c; }
.an-chip.an-mid input:checked + span { background: #fff3d6; border-color: #e6b44a; color: #7a4a00; }
.an-chip.an-neg input:checked + span { background: #fdecec; border-color: #ef9a9a; color: #b71c1c; }
.an-g input:focus-visible + span, .an-chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.an-stars { width: 100%; border-collapse: collapse; }
.an-stars td { padding: 5px 0; color: #546575; }
.an-stars td:last-child { text-align: right; }
.an-rate { display: inline-flex; flex-direction: row-reverse; }
.an-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.an-rate label { font-size: 1.35rem; color: #cfd8df; cursor: pointer; padding: 0 2px; line-height: 1; }
.an-rate input:checked ~ label, .an-rate label:hover, .an-rate label:hover ~ label { color: #f5a623; }
.an-actions { margin-top: 12px; text-align: right; }
.an-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.an-metrics > div { background: #f4f7f9; border-radius: 6px; padding: 10px 12px; }
.an-metrics span { display: block; font-size: .8rem; color: var(--muted); }
.an-metrics b { font-size: 1.25rem; color: var(--navy); }
.an-metrics small { display: block; font-size: .75rem; color: var(--muted); }
.an-newtag summary { cursor: pointer; color: var(--blue); font-weight: 600; }
.an-newtag form { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.an-noteform { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 12px; flex-wrap: wrap; }
.an-noteform textarea { flex: 1; min-width: 260px; }
.an-noteform select { width: 140px; }
.an-note { display: flex; gap: 12px; align-items: flex-start; border-top: 1px solid #eef1f4; padding: 10px 0; }
.an-note-b { flex: 1; color: #2d3e4c; }
.an-note-m { font-size: .8rem; color: var(--muted); margin-top: 3px; }
.an-mood { font-size: .75rem; border-radius: 20px; padding: 2px 9px; white-space: nowrap; margin-top: 2px; }
.an-mood-green { background: #e6f5ec; color: #1d6b3d; } .an-mood-orange { background: #fff3d6; color: #7a4a00; }
.an-mood-red { background: #fdecec; color: #b71c1c; } .an-mood-gray { background: #eef1f4; color: #546575; }
.an-warn a { margin-left: 8px; }
@media (max-width: 1000px) { .an-grid { grid-template-columns: 1fr; } }
