@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --cp-navy: #003366;
  --cp-navy-dark: #00264d;
  --cp-text: #1a1a1a;
  --cp-muted: #5b6573;
  --cp-line: #d9e1ea;
  --cp-bg: #f3f6fa;
  --cp-white: #ffffff;
  --cp-danger: #b42318;
  --cp-danger-bg: #fef3f2;
  --cp-table-head: #f8fafc;
  --cp-hover: #f3f6fa;
  --cp-warn-bg: #fff7ed;
  --cp-warn-text: #9a3412;
  --cp-ok-bg: #ecfdf3;
  --cp-ok-text: #067647;
  --cp-blue-bg: #eff6ff;
  --cp-blue-text: #1e40af;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.cp-app {
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  color: var(--cp-text);
  background: var(--cp-bg);
  min-height: 100vh;
}
a { color: var(--cp-navy); text-decoration: none; }
a:hover { color: var(--cp-navy-dark); }

/* —— Topbar —— */
.cp-topbar {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--cp-line);
}
.cp-topbar-inner {
  max-width: 1280px; margin: 0 auto;
  padding: .75rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
}
.cp-logo { height: 2.45rem; max-width: 190px; display: block; }
.cp-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; }
.cp-nav a, .cp-nav button.cp-nav-link {
  display: inline-flex; align-items: center; gap: .35rem;
  height: 2.2rem; padding: 0 .85rem;
  font-size: .9rem; font-weight: 600; color: var(--cp-navy);
  background: transparent; border: 0; cursor: pointer; font-family: inherit;
}
.cp-nav a.is-on { background: var(--cp-navy); color: #fff; }
.cp-nav a.cp-logout {
  border: 1.5px solid var(--cp-navy); background: transparent; color: var(--cp-navy);
}
.cp-badge-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.15rem; height: 1.15rem; padding: 0 .28rem;
  background: #dc2626; color: #fff; font-size: .65rem; font-weight: 800;
  margin-left: .1rem;
}
.cp-menu-toggle {
  display: none; width: 2.4rem; height: 2.4rem;
  border: 1px solid var(--cp-line); background: #fff; cursor: pointer;
  font-size: 1.1rem; color: var(--cp-navy);
}
.cp-scrim {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 40;
}
.cp-scrim.is-on { display: block; }

/* —— Content —— */
.cp-wrap {
  max-width: 1280px; margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
}
.cp-page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap;
}
.cp-page-title {
  margin: 0; font-size: 1.35rem; font-weight: 700; color: var(--cp-navy);
}
.cp-page-meta {
  font-size: .85rem; color: var(--cp-muted); display: flex; align-items: flex-start; gap: .75rem;
  text-align: right;
}
.cp-identity { display: flex; flex-direction: column; gap: .2rem; align-items: flex-end; }
.cp-identity-block { align-items: flex-start; text-align: left; margin-bottom: .75rem; }
.cp-identity-name {
  font-size: .95rem; font-weight: 800; color: var(--cp-navy); letter-spacing: .01em; line-height: 1.25;
}
.cp-identity-block .cp-identity-name { font-size: 1.05rem; margin-bottom: .15rem; }
.cp-identity-sid {
  display: inline-flex; align-items: center; gap: .65rem; flex-wrap: wrap;
  font-size: .72rem; font-weight: 600; color: #c45c5c;
  padding: .28rem .6rem; background: #fff7f7; border: 1px solid #f0d4d4;
}
.cp-identity-sid span {
  text-transform: uppercase; letter-spacing: .06em; font-weight: 800;
  color: #c45c5c; margin-right: .15rem;
}
.cp-identity-sid span::after { content: ":"; margin-left: .1rem; margin-right: .15rem; }
.cp-identity-sid strong {
  font-size: .8rem; font-weight: 800; color: #c45c5c;
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
  margin-left: .1rem;
}
.cp-mock {
  display: inline-flex; align-items: center; height: 1.6rem; padding: 0 .55rem;
  background: #fff7ed; color: #9a3412; border: 1px solid #fdba74;
  font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}

/* —— Cards / panels —— */
.cp-card {
  background: #fff; border: 1px solid var(--cp-line);
  padding: 1.2rem 1.15rem; margin-bottom: .85rem;
}
.cp-card-title {
  margin: 0 0 .85rem; font-size: 1.05rem; font-weight: 700; color: var(--cp-navy);
}
.cp-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; margin-bottom: .85rem; flex-wrap: wrap;
}
.cp-card-head .cp-card-title { margin: 0; }
.cp-link-arrow {
  font-size: .7rem; font-weight: 700; text-decoration: underline; color: var(--cp-navy);
}

/* —— Table —— */
.cp-table-box {
  background: #fff; border: 1px solid var(--cp-line);
  overflow-x: auto; overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.cp-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
}
.cp-table.cp-table-wide { min-width: 1100px; }
.cp-table th {
  background: var(--cp-table-head); color: var(--cp-muted);
  font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  text-align: left; padding: .65rem .75rem; border-bottom: 1px solid var(--cp-line);
  white-space: nowrap;
}
.cp-table td {
  font-size: .88rem; padding: .65rem .75rem; vertical-align: middle;
  border-bottom: 1px solid var(--cp-line);
}
.cp-table tr:last-child td { border-bottom: 0; }
.cp-table .cp-col-date { white-space: nowrap; }
.cp-table th.cp-col-note { white-space: nowrap; min-width: 12rem; }
.cp-table td.cp-col-note {
  min-width: 12rem; max-width: 18rem;
  white-space: normal; word-break: break-word;
}
/* İşlem sağda yapışkan — yatay kaydırınca görünür kalsın */
.cp-table th.cp-col-actions,
.cp-table td.cp-col-actions {
  position: sticky; right: 0; z-index: 3;
  white-space: nowrap;
  background: #fff;
  box-shadow: -3px 0 8px rgba(0, 38, 77, .08);
}
.cp-table thead th.cp-col-actions {
  background: var(--cp-table-head); z-index: 4;
}
.cp-table tbody tr.cp-row-created > td.cp-col-actions { background-color: #fff3cd !important; }
.cp-table tbody tr.cp-row-started > td.cp-col-actions { background-color: #d4edda !important; }
.cp-table tbody tr.cp-row-ongoing > td.cp-col-actions { background-color: #cce5ff !important; }
.cp-table tbody tr.cp-row-insp-over > td.cp-col-actions { background-color: #fef2f2 !important; }
.cp-table tbody tr.cp-row-insp-soon > td.cp-col-actions { background-color: #fffbeb !important; }
.cp-code { font-weight: 700; color: #1a1a1a; }
.cp-sub { display: block; font-weight: 400; color: var(--cp-muted); font-size: .85rem; margin-top: .15rem; }

/* —— Badges —— */
.cp-status {
  display: inline-flex; align-items: center; height: 1.5rem; padding: 0 .5rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
}
.cp-status-wait { background: #fff7ed; color: #9a3412; }
.cp-status-ok { background: #eff6ff; color: #1e40af; }
.cp-status-ongoing { background: #1e3a8a; color: #fff; }
.cp-status-paid, .cp-status-done { background: #ecfdf3; color: #067647; }
.cp-status-reject { background: #fef3f2; color: #b42318; }
.cp-status-started { background: #166534; color: #fff; }
.cp-status-fixed { background: #f1f5f9; color: #334155; }
.cp-status-planned { background: transparent; color: #1a1a1a; }
/* Günü gelmemiş (hatırlatma): yeşil TAKVİMDE rozeti, satır beyaz */
.cp-status-calendar {
  background: #ecfdf3; color: #067647; border-radius: 4px;
  border: 1px solid #a7f3d0; font-weight: 800;
}
.cp-status-insp-over {
  background: transparent; color: #b42318; font-weight: 800; padding: 0;
}
.cp-status-insp-soon {
  background: transparent; color: #9a3412; font-weight: 800; padding: 0;
}
.cp-table tbody tr.cp-row-insp-over > td { background-color: #fef2f2 !important; }
.cp-table tbody tr.cp-row-insp-soon > td { background-color: #fffbeb !important; }
/* Renkli satırlarda durum etiketi okunaklı kalsın */
.cp-table tbody tr.cp-row-created .cp-status,
.cp-table tbody tr.cp-row-started .cp-status,
.cp-table tbody tr.cp-row-ongoing .cp-status {
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}

.cp-prio {
  display: inline-flex; align-items: center; height: 1.45rem; padding: 0 .55rem;
  font-size: .72rem; font-weight: 800;
}
.cp-prio-low { background: #2563eb; color: #fff; }
.cp-prio-mid { background: #eab308; color: #1a1a1a; }
.cp-prio-high { background: #dc2626; color: #fff; }

.cp-pay-pill {
  display: inline-flex; align-items: center; height: 1.45rem; padding: 0 .55rem;
  border-radius: 999px; font-size: .7rem; font-weight: 800;
}
.cp-pay-card { background: #ecfdf3; color: #047857; border: 1px solid #a7f3d0; }
.cp-pay-eft { background: #e8eef5; color: #003366; border: 1px solid #c5d4e4; }

/* Faturalar — örnek sayfa ile birebir 11 sütun */
.cp-inv {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .06);
  overflow: visible;
  max-width: 100%;
}
.cp-inv-head { padding: 1.15rem 1.25rem .35rem; }
.cp-inv-title {
  margin: 0 0 .35rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #003366;
}
.cp-inv-note {
  margin: 0 0 .85rem;
  color: #64748b;
  font-size: .88rem;
  line-height: 1.45;
}
.cp-inv-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}
.cp-inv-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.cp-inv-table th {
  background: #f8fafc;
  color: #64748b;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
  text-align: left;
  padding: .75rem .9rem;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
.cp-inv-table th.cp-inv-th-no { text-align: center; }
.cp-inv-table td {
  font-size: .875rem;
  color: #1e293b;
  padding: .9rem .9rem;
  vertical-align: middle;
  border-bottom: 1px solid #eef2f7;
}
.cp-inv-table tbody tr:last-child td { border-bottom: 0; }
.cp-inv-td-no {
  text-align: center;
  font-weight: 700;
  color: #0f172a;
  width: 4.5rem;
}
.cp-inv-td-type {
  max-width: 7.5rem;
  line-height: 1.35;
  font-weight: 500;
}
.cp-inv-td-code strong {
  display: block;
  font-weight: 800;
  color: #0f172a;
  font-size: .9rem;
  line-height: 1.25;
}
.cp-inv-td-code small {
  display: block;
  margin-top: .2rem;
  font-size: .78rem;
  color: #64748b;
  line-height: 1.35;
  font-weight: 400;
}
.cp-inv-td-date { white-space: nowrap; }
.cp-inv-td-amt {
  white-space: nowrap;
  font-weight: 800;
  color: #0f172a;
}
.cp-inv-st {
  display: inline-flex;
  align-items: center;
  height: 1.45rem;
  padding: 0 .5rem;
  font-style: normal;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  border-radius: 4px;
}
.cp-inv-st.is-wait { background: #fff7ed; color: #9a3412; }
.cp-inv-st.is-ok { background: #ecfdf3; color: #067647; }
.cp-inv-td-status small {
  display: block;
  margin-top: .25rem;
  font-size: .75rem;
  color: #64748b;
}
.cp-inv-pill {
  display: inline-flex;
  align-items: center;
  height: 1.4rem;
  padding: 0 .55rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid transparent;
}
.cp-inv-pill.is-eft {
  background: #eef4fb; color: #003366; border-color: #c5d4e4;
}
.cp-inv-pill.is-card {
  background: #ecfdf3; color: #047857; border-color: #a7f3d0;
}
.cp-inv-empty { color: #94a3b8; font-weight: 600; }
.cp-inv-td-doc .cp-inv-ok {
  display: block;
  color: #067647;
  font-weight: 800;
  font-size: .82rem;
  line-height: 1.25;
  font-style: normal;
}
.cp-inv-td-doc a {
  display: inline-block;
  margin-top: .12rem;
  color: #2563eb;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: underline;
}
.cp-inv-later {
  color: #94a3b8;
  font-size: .8rem;
  line-height: 1.35;
}
.cp-inv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  padding: 0 .85rem;
  background: #003366;
  color: #fff;
  border: 0;
  border-radius: 3px;
  font-size: .8rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.cp-inv-btn:hover { background: #00264d; color: #fff; }

/* CRM table-warning / table-success / table-primary */
.cp-table tbody tr.cp-row-created > td { background-color: #fff3cd !important; }
.cp-table tbody tr.cp-row-started > td { background-color: #d4edda !important; }
.cp-table tbody tr.cp-row-ongoing > td { background-color: #cce5ff !important; }
.cp-row-insp-over { background: #fef3f2; }
.cp-row-insp-30 { background: #fff7ed; }
.cp-lift-active { color: #067647; font-weight: 800; }
.cp-lift-passive { color: #b42318; font-weight: 800; }
.cp-pager { margin: 1rem 0 0; }
.cp-pager ul {
  display: flex; flex-wrap: wrap; gap: .35rem; list-style: none;
  margin: 0; padding: 0;
}
.cp-pager a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.1rem; height: 2.1rem; padding: 0 .55rem;
  border: 1px solid var(--cp-line); background: #fff; color: var(--cp-navy);
  font-size: .85rem; font-weight: 700; text-decoration: none;
}
.cp-pager li.is-on a { background: var(--cp-navy); color: #fff; border-color: var(--cp-navy); }

/* —— Buttons —— */
.cp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 2.15rem; padding: 0 .8rem;
  background: var(--cp-navy); color: #fff; border: 0;
  font-size: .8rem; font-weight: 700; cursor: pointer; font-family: inherit;
  text-decoration: none;
}
.cp-btn:hover { background: var(--cp-navy-dark); color: #fff; }
.cp-btn-block { width: 100%; height: 2.3rem; }
.cp-btn-ghost {
  background: #fff; color: var(--cp-navy); border: 1px solid var(--cp-line);
}
.cp-btn-ghost:hover { background: var(--cp-hover); color: var(--cp-navy); }

/* —— Actions menu —— */
.cp-actions { position: relative; display: inline-block; }
.cp-actions-menu {
  display: none; position: absolute; top: calc(100% + 4px); right: 0;
  min-width: 200px; background: #fff; border: 1px solid var(--cp-line);
  box-shadow: 0 10px 24px rgba(0,38,77,.14); z-index: 40;
}
.cp-actions-menu.is-open { display: block; }
.cp-actions-menu.is-up { top: auto; bottom: calc(100% + 4px); }
.cp-actions-menu.is-fixed {
  position: fixed !important;
  top: auto; bottom: auto; right: auto; left: auto;
  z-index: 9999;
}
.cp-actions-menu a, .cp-actions-menu button {
  display: block; width: 100%; text-align: left;
  padding: .65rem .8rem; font-size: .82rem; font-weight: 600; color: var(--cp-navy);
  background: transparent; border: 0; cursor: pointer; font-family: inherit;
}
.cp-actions-menu a:hover, .cp-actions-menu button:hover { background: #f3f6fa; }

/* —— Forms —— */
.cp-label {
  display: block; margin: 0 0 .4rem;
  font-size: .8rem; font-weight: 700; color: var(--cp-navy);
}
.cp-input, .cp-select, .cp-textarea {
  width: 100%; min-height: 2.7rem; padding: 0 .9rem;
  border: 1px solid var(--cp-line); background: #fff;
  font-size: 16px; font-family: inherit; color: var(--cp-text);
}
.cp-textarea { min-height: 8rem; padding: .75rem .9rem; resize: vertical; }
.cp-input:focus, .cp-select:focus, .cp-textarea:focus {
  outline: 2px solid var(--cp-navy); outline-offset: 0; border-color: var(--cp-navy);
}
.cp-input[readonly],
.cp-input.cp-input-locked,
.cp-select:disabled,
.cp-textarea[readonly] {
  background: #eef2f6 !important; color: #6b7280 !important;
  border-color: #d5dde6 !important; cursor: not-allowed !important;
  pointer-events: none; user-select: none;
}
.cp-meta-locked dd {
  background: #eef2f6; color: #6b7280; padding: .35rem .55rem; border: 1px solid #d5dde6;
}
.cp-field { margin-bottom: .95rem; }
.cp-help { font-size: .8rem; color: var(--cp-muted); margin-top: .35rem; }
.cp-err { font-size: .8rem; color: var(--cp-danger); margin-top: .3rem; }

/* —— Tabs —— */
.cp-tabs {
  display: flex; flex-wrap: nowrap; overflow-x: auto;
  background: #fff; border-bottom: 1px solid var(--cp-line); margin-bottom: 1rem;
}
.cp-tabs a, .cp-tabs button {
  flex: 0 0 auto; height: 2.6rem; padding: 0 1rem;
  border: 0; background: transparent; cursor: pointer; font-family: inherit;
  font-size: .86rem; font-weight: 700; color: var(--cp-navy);
  border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: .35rem;
}
.cp-tabs a.is-on, .cp-tabs button.is-on {
  background: #f8fafc; border-bottom-color: var(--cp-navy);
}
.cp-dash-tabs {
  display: flex; flex-wrap: wrap; gap: .4rem; align-items: center;
  margin: .75rem 0 1rem; border: 0; background: transparent;
}
.cp-dash-tabs a {
  padding: .45rem .85rem; font-size: .85rem; font-weight: 600; color: var(--cp-muted);
  border: 1.5px solid transparent; background: transparent;
}
.cp-dash-tabs a.is-on {
  background: #fff; color: var(--cp-navy); font-weight: 700;
  border-color: var(--cp-navy); border-radius: 4px;
}

/* —— Alerts —— */
.cp-alert { padding: .75rem .9rem; font-size: .88rem; margin-bottom: .85rem; border: 1px solid; }
.cp-alert-ok { background: #ecfdf3; color: #067647; border-color: #abefc6; }
.cp-alert-warn { background: #fff7ed; color: #9a3412; border-color: #fdba74; }
.cp-alert-err { background: #fef3f2; color: #b42318; border-color: #f5c2c0; }
.cp-empty {
  background: #fff; border: 1px solid var(--cp-line);
  padding: 1.4rem; color: var(--cp-muted);
}

/* —— Filter —— */
.cp-filter {
  background: #fff; border: 1px solid var(--cp-line);
  padding: .85rem .9rem; margin-bottom: .85rem;
  display: flex; flex-wrap: wrap; gap: .55rem; align-items: flex-end;
}
.cp-filter .cp-field { margin: 0; min-width: 140px; flex: 1; }
.cp-filter .cp-input, .cp-filter .cp-select { min-height: 2.4rem; }

/* —— Overview bits —— */
.cp-kicker {
  font-size: .72rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--cp-navy); margin: 0 0 .35rem;
}
.cp-welcome { color: var(--cp-muted); margin: 0 0 .5rem; }
.cp-announce {
  display: flex; align-items: center; gap: .75rem;
  background: #fff; border: 1px solid var(--cp-line); border-radius: 6px;
  height: 2rem; padding: 0 .85rem; overflow: hidden; margin-bottom: .85rem;
}
.cp-announce-label {
  flex: 0 0 auto; font-size: .68rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--cp-navy);
}
.cp-announce-track { flex: 1; overflow: hidden; white-space: nowrap; }
.cp-announce-inner {
  display: inline-block; animation: cp-marquee 40s linear infinite;
  font-size: .82rem;
}
.cp-announce:hover .cp-announce-inner { animation-play-state: paused; }
@keyframes cp-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.cp-announce-item strong { color: var(--cp-navy); }
.cp-announce-item span { color: var(--cp-muted); }
.cp-announce-dot { color: #f59e0b; margin: 0 .65rem; }

.cp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; margin-bottom: .85rem; }
.cp-grid-calendar {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, .95fr);
  gap: .85rem;
  margin-bottom: .85rem;
  align-items: start;
}
.cp-fault-request .cp-card-title { margin: 0 0 1rem; }
.cp-fault-request-form .cp-field { margin-bottom: .85rem; }
.cp-fault-request-form .cp-textarea { min-height: 6.5rem; resize: vertical; }
.cp-contact-phone { font-size: 1.35rem; font-weight: 800; color: var(--cp-navy); margin: .2rem 0 0; }
.cp-avatar {
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: #e8eef5; color: var(--cp-navy); font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.cp-meta-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; margin-top: .75rem;
}
.cp-meta-grid dt {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--cp-muted); margin: 0 0 .2rem;
}
.cp-meta-grid dd { margin: 0; font-weight: 700; color: var(--cp-navy); font-size: .88rem; }

.cp-insp-alerts { margin: 0 0 .85rem; }
.cp-insp-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .5rem;
  padding: .75rem .95rem; margin-bottom: .45rem;
  font-weight: 800; text-transform: uppercase; font-size: .85rem;
  text-decoration: none; border: 1px solid transparent;
}
.cp-insp-bar:hover { filter: brightness(.98); }
.cp-insp-bar.over {
  background: #fef2f2; color: #b42318; border-color: #fecaca;
}
.cp-insp-bar.soon {
  background: #fffbeb; color: #9a3412; border-color: #fde68a;
}
.cp-insp-bar .sn { color: #1a1a1a; font-weight: 800; }
.cp-insp-bar .cp-insp-sep { color: #94a3b8; font-weight: 700; }

.cp-stat-tools {
  display: flex; justify-content: space-between; align-items: center;
  margin: .75rem 0 .5rem; font-size: .8rem; color: var(--cp-muted);
}
.cp-stat-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: .65rem;
}
.cp-stat-card {
  background: #fff; border: 1px solid var(--cp-line); border-radius: 6px;
  padding: .75rem; cursor: grab; position: relative; touch-action: none;
}
.cp-stat-card.sortable-ghost { opacity: .45; }
.cp-stat-card.sortable-drag { cursor: grabbing; box-shadow: 0 10px 24px rgba(0,38,77,.14); }
.cp-stat-card.is-passive {
  opacity: .45; cursor: default;
}
.cp-stat-card .cp-stat-label {
  font-size: .72rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: var(--cp-muted);
}
.cp-stat-card .cp-stat-val {
  font-size: 1.6rem; font-weight: 800; color: var(--cp-navy); margin: .25rem 0;
}
.cp-stat-card .cp-stat-desc { font-size: .75rem; color: var(--cp-muted); }
.cp-stat-card .cp-link-arrow { pointer-events: auto; position: relative; z-index: 2; }

/* —— Login —— */
body.cp-login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 80% 55% at 0% 0%, rgba(0,51,102,.18), transparent 60%),
    linear-gradient(180deg, #e8eef5 0%, #f3f6fa 100%);
  font-family: Inter, system-ui, sans-serif;
  padding: 1.25rem;
}
.cp-login-card {
  width: 100%; max-width: 420px; background: #fff;
  border: 1px solid var(--cp-line);
  box-shadow: 0 18px 40px rgba(0,38,77,.08);
  padding: 1.75rem 1.5rem 1.6rem; text-align: center;
}
.cp-login-card .cp-logo { height: 3.4rem; max-width: 240px; margin: 0 auto; }
.cp-login-card h1 {
  margin: 1.55rem 0 0; font-size: 1.35rem; font-weight: 700; color: var(--cp-navy);
}
.cp-login-lead {
  margin: .55rem 0 1.1rem; font-size: .92rem; color: var(--cp-muted); line-height: 1.45;
}
.cp-login-card .cp-field { text-align: left; }
.cp-login-btn {
  width: 100%; height: 2.75rem; border: 0; border-radius: 999px;
  background: var(--cp-navy); color: #fff; font-weight: 700; font-size: .95rem;
  cursor: pointer; font-family: inherit; margin-top: .35rem;
}
.cp-login-btn:hover { background: var(--cp-navy-dark); }
.cp-login-note { margin: .9rem 0 .65rem; font-size: .8rem; color: var(--cp-muted); }
.cp-langs { display: flex; justify-content: center; gap: .85rem; }
.cp-langs a {
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; color: var(--cp-muted);
}
.cp-langs a.is-on { color: var(--cp-navy); }
.cp-js-warn {
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
  font-size: .82rem; padding: .65rem .75rem; margin-bottom: .75rem; text-align: left;
}

/* —— Notify dropdown —— */
.cp-notify-wrap { position: relative; }
.cp-notify-list {
  display: none; position: absolute; top: calc(100% + 6px); right: 0;
  width: 280px; max-width: 360px; max-height: 360px; overflow: auto;
  background: #fff; border: 1px solid var(--cp-line);
  box-shadow: 0 10px 24px rgba(0,38,77,.12); z-index: 130;
}
.cp-notify-list.is-open { display: block; }
.cp-notify-list a {
  display: block; padding: .7rem .85rem; font-size: .82rem; font-weight: 600;
  color: var(--cp-navy); border-bottom: 1px solid var(--cp-line);
}
.cp-notify-list a:last-child { border-bottom: 0; }
.cp-notify-list a:hover { background: #f3f6fa; }
.cp-notify-empty { padding: .9rem; color: var(--cp-muted); font-size: .82rem; }

/* —— Uptime —— */
.cp-kpi-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1rem 0;
}
.cp-kpi dt {
  font-size: .72rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: var(--cp-muted); margin: 0 0 .25rem;
}
.cp-kpi dd { margin: 0; font-size: 1.6rem; font-weight: 800; color: var(--cp-navy); }
.cp-charts { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; }
.cp-unit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1rem; }
.cp-unit-card { border: 1px solid var(--cp-line); padding: .85rem; }
.cp-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  border-radius: 999px; padding: .2rem .55rem; font-size: .72rem; font-weight: 700;
}
.cp-pill::before {
  content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor;
}
.cp-pill-active { background: #ecfdf3; color: #067647; }
.cp-pill-passive { background: #fef3f2; color: #b42318; }
.cp-pill-maint { background: #fffbeb; color: #92400e; }
.cp-pill-fault { background: #fef3f2; color: #b42318; }
.cp-progress {
  height: 6px; border-radius: 999px; background: #f1f5f9; overflow: hidden; margin-top: .45rem;
}
.cp-progress > i { display: block; height: 100%; border-radius: 999px; }
.cp-unit-meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem;
  margin-top: .55rem; font-size: .78rem; font-weight: 700; color: #5b6573;
}
.cp-unit-card.is-hidden { display: none; }

.cp-form-narrow { max-width: 520px; }
.cp-back { display: inline-block; margin-bottom: .85rem; text-decoration: underline; font-weight: 600; }

@media (max-width: 960px) {
  .cp-logo { height: 2.1rem; max-width: 150px; }
  .cp-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .cp-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch;
    background: #fff; box-shadow: 0 12px 28px rgba(0,38,77,.16);
    max-height: calc(100vh - 4rem); overflow: auto; padding: .35rem 0;
  }
  .cp-nav.is-open { display: flex; }
  .cp-nav a, .cp-nav button.cp-nav-link {
    width: 100%; height: 2.75rem; justify-content: flex-start; border-radius: 0;
  }
  .cp-nav a.cp-logout { justify-content: center; margin: .35rem .75rem; width: auto; }
  .cp-notify-list { position: static; width: 100%; max-width: none; box-shadow: none; border: 0; border-top: 1px solid var(--cp-line); }
  .cp-wrap { padding: 1rem .9rem 2rem; }
  .cp-page-title { font-size: 1.15rem; }
  .cp-page-head { flex-direction: column; }
  .cp-grid-2, .cp-grid-calendar, .cp-stat-grid, .cp-meta-grid, .cp-charts, .cp-unit-grid, .cp-kpi-row {
    grid-template-columns: 1fr;
  }
  .cp-filter { flex-direction: column; }
  .cp-filter .cp-field { width: 100%; }
  .cp-table { font-size: .8rem; }
  .cp-table th, .cp-table td { padding: .55rem .65rem; }
}
@media (max-width: 480px) {
  .cp-meta-grid { grid-template-columns: 1fr; }
}
@media print {
  .cp-topbar, .cp-page-head, body.cp-app .cp-alert { display: none !important; }
}

/* Belge önizleme — sayfadan ayrılmadan, tam ekran değil */
.cp-doc-modal[hidden] { display: none !important; }
.cp-doc-modal {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0, 38, 77, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
}
.cp-doc-modal-panel {
  width: min(920px, 100%);
  height: min(80vh, 720px);
  background: #fff;
  border: 1px solid var(--cp-line);
  box-shadow: 0 18px 40px rgba(0,38,77,.18);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.cp-doc-modal-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; padding: .65rem 1rem;
  border-bottom: 1px solid var(--cp-line);
  background: #f8fafc;
  color: var(--cp-navy); font-size: .95rem;
}
.cp-doc-modal-frame {
  flex: 1; width: 100%; border: 0; background: #fff;
}

/* —— Servis Hizmet Paketi (müşteri kartı sağ üst) —— */
.cp-cust-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: .15rem;
}
.cp-cust-head-main { min-width: 0; flex: 1 1 auto; }
.cp-cust-head-main .cp-kicker { margin-bottom: .35rem; }
.cp-cust-head-main .cp-identity-block { margin-bottom: .55rem; }
.cp-cust-pkg {
  flex: 0 0 auto; align-self: flex-start; margin-top: .15rem;
  max-width: min(100%, 20rem);
}
.cp-identity-pkg {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: .35rem .55rem;
  padding: .55rem .85rem;
  text-decoration: none; border: 1px solid transparent;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.cp-identity-pkg:hover {
  box-shadow: 0 4px 14px rgba(0, 38, 77, .1);
}
.cp-identity-pkg-label {
  font-size: .65rem; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; color: #64748b;
}
.cp-identity-pkg-label::after { content: ":"; margin-left: .05rem; }
.cp-identity-pkg-val {
  font-size: .82rem; font-weight: 800; letter-spacing: .04em;
  color: var(--cp-navy);
}
.cp-identity-pkg-go {
  font-size: .85rem; font-weight: 700; color: #94a3b8; margin-left: .1rem;
}
.cp-identity-pkg:hover .cp-identity-pkg-go { color: var(--cp-navy); }
.cp-pkg-standart {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  border-color: #c7d2e0;
}
.cp-pkg-platinum {
  background: linear-gradient(135deg, #f4f6fb 0%, #e8ecf6 100%);
  border-color: #a8b4cc;
}
.cp-pkg-platinum .cp-identity-pkg-val { color: #334155; }
.cp-pkg-professional {
  background: linear-gradient(135deg, #003366 0%, #0a4a7a 100%);
  border-color: #00264d;
}
.cp-pkg-professional .cp-identity-pkg-label,
.cp-pkg-professional .cp-identity-pkg-val,
.cp-pkg-professional .cp-identity-pkg-go { color: #fff; }
.cp-pkg-professional:hover .cp-identity-pkg-go { color: #e2e8f0; }
.cp-pkg-empty {
  background: #f8fafc; border-color: #e2e8f0; border-style: dashed;
}
.cp-pkg-empty .cp-identity-pkg-val { font-weight: 700; color: #64748b; font-size: .78rem; }

/* —— SLA Bakım Paketleri —— */
.cp-sla-intro { margin-bottom: 1.1rem; }
.cp-sla-title {
  margin: 0 0 .4rem; font-size: 1.25rem; font-weight: 800; color: var(--cp-navy);
}
.cp-sla-lead { margin: 0; color: #5b6573; font-size: .92rem; max-width: 52rem; line-height: 1.5; }
.cp-sla-yours {
  margin: .65rem 0 0; font-size: .88rem; color: #334155;
}
.cp-sla-yours strong { color: var(--cp-navy); }
.cp-sla-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--cp-line); background: #fff;
  margin-bottom: .85rem;
}
.cp-sla-table {
  width: 100%; border-collapse: collapse; min-width: 720px;
  font-size: .86rem;
}
.cp-sla-table thead th {
  background: #003366; color: #fff; font-weight: 700;
  padding: .85rem .75rem; text-align: center; vertical-align: top;
  border-bottom: 1px solid #00264d;
}
.cp-sla-table thead th.cp-sla-feat-h {
  text-align: left; min-width: 14rem; font-weight: 700;
}
.cp-sla-pkg-name {
  display: block; font-size: .95rem; font-weight: 800; letter-spacing: .04em;
}
.cp-sla-pkg-sub {
  display: block; margin-top: .25rem; font-size: .68rem; font-weight: 600;
  opacity: .85; line-height: 1.3;
}
.cp-sla-mine-tag {
  display: inline-block; margin-top: .4rem;
  padding: .15rem .45rem; font-size: .62rem; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase;
  background: rgba(255,255,255,.18); color: #fff;
}
.cp-sla-table thead th.is-mine {
  box-shadow: inset 0 -3px 0 #f59e0b;
}
.cp-sla-table tbody th {
  text-align: left; font-weight: 600; color: #1e293b;
  padding: .7rem .85rem; border-bottom: 1px solid #eef2f6;
  background: #fff;
}
.cp-sla-table tbody td {
  text-align: center; padding: .65rem .5rem;
  border-bottom: 1px solid #eef2f6; vertical-align: middle;
  color: #334155; font-weight: 700;
}
.cp-sla-table tbody tr:nth-child(even) th,
.cp-sla-table tbody tr:nth-child(even) td { background: #f7f9fc; }
.cp-sla-table tbody td.is-mine,
.cp-sla-table tfoot td.is-mine {
  background: #fffbeb;
}
.cp-sla-table tbody tr:nth-child(even) td.is-mine { background: #fef3c7; }
.cp-sla-yes, .cp-sla-no {
  display: inline-flex; align-items: center; justify-content: center;
  vertical-align: middle;
}
.cp-sla-text {
  display: inline-block; font-size: .78rem; font-weight: 800;
  letter-spacing: .03em; color: var(--cp-navy);
}
.cp-sla-text.is-paid { color: #9a3412; }
.cp-sla-text.is-free { color: #15803d; }
.cp-sla-table tfoot td {
  text-align: center; padding: .9rem .65rem; border-top: 1px solid var(--cp-line);
  background: #f8fafc;
}
.cp-sla-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.35rem; padding: 0 .9rem;
  background: #003366; color: #fff; text-decoration: none;
  font-size: .72rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; white-space: nowrap;
}
.cp-sla-cta:hover { background: #00264d; color: #fff; }
.cp-sla-legend {
  display: flex; flex-wrap: wrap; gap: .75rem 1.25rem;
  font-size: .82rem; color: #5b6573; align-items: center;
}
.cp-sla-legend span { display: inline-flex; align-items: center; gap: .4rem; }
@media (max-width: 720px) {
  .cp-identity { align-items: flex-start; text-align: left; }
  .cp-page-meta { text-align: left; width: 100%; }
  .cp-cust-head { flex-direction: column; align-items: stretch; }
  .cp-cust-pkg { align-self: stretch; justify-content: space-between; }
}

/* ===== Kart ile güvenli ödeme (3D Secure) ===== */
.cp-pay { max-width: 1080px; }
.cp-pay-grid { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 1.1rem; align-items: start; }
.cp-pay-summary {
  background: linear-gradient(160deg, #003366 0%, #00264d 100%);
  color: #fff; padding: 1.35rem 1.35rem 1.2rem; border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 38, 77, .18);
}
.cp-pay-summary .cp-kicker { color: rgba(255,255,255,.7); }
.cp-pay-amount { margin: .2rem 0 .35rem; font-size: 2rem; font-weight: 800; letter-spacing: -.01em; color: #fff; line-height: 1.1; }
.cp-pay-amount small { font-size: .9rem; font-weight: 700; opacity: .75; }
.cp-pay-tl { margin: 0 0 1rem; font-size: .88rem; color: rgba(255,255,255,.85); }
.cp-pay-tl strong { color: #fff; }
.cp-pay-comm { display: block; font-size: .78rem; opacity: .75; margin-top: .15rem; }
.cp-pay-meta { margin: 0 0 1rem; padding: .9rem 0 0; border-top: 1px solid rgba(255,255,255,.16); display: grid; gap: .6rem; }
.cp-pay-meta div { display: flex; justify-content: space-between; gap: .75rem; font-size: .84rem; }
.cp-pay-meta dt { color: rgba(255,255,255,.65); font-weight: 500; }
.cp-pay-meta dd { margin: 0; text-align: right; font-weight: 700; color: #fff; word-break: break-word; }
.cp-pay-meta .cp-code { color: #fff; }
.cp-pay-trust { list-style: none; margin: 0; padding: .9rem 0 0; border-top: 1px solid rgba(255,255,255,.16); display: grid; gap: .45rem; }
.cp-pay-trust li { position: relative; padding-left: 1.3rem; font-size: .8rem; line-height: 1.4; color: rgba(255,255,255,.82); }
.cp-pay-trust li::before {
  content: ""; position: absolute; left: 0; top: .28rem; width: .7rem; height: .4rem;
  border-left: 2px solid #7dd3a8; border-bottom: 2px solid #7dd3a8; transform: rotate(-45deg);
}
.cp-pay-panel {
  background: #fff; border: 1px solid var(--cp-line); border-radius: 8px;
  padding: 1.35rem 1.4rem 1.25rem; box-shadow: 0 6px 20px rgba(15, 23, 42, .06);
  animation: cpPayIn .35s ease-out both;
}
@keyframes cpPayIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cp-pay-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .9rem; }
.cp-pay-form-title { margin: 0 0 .25rem; font-size: 1.1rem; font-weight: 800; color: var(--cp-navy); }
.cp-pay-form-lead { margin: 0; font-size: .82rem; color: var(--cp-muted); line-height: 1.45; }
.cp-pay-lock {
  display: inline-flex; align-items: center; gap: .35rem; flex-shrink: 0;
  padding: .3rem .6rem; border: 1px solid #abefc6; background: var(--cp-ok-bg); color: var(--cp-ok-text);
  font-size: .72rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; border-radius: 4px;
}
.cp-pay-form .cp-input { height: 2.6rem; font-size: .95rem; letter-spacing: .02em; }
.cp-pay-form .cp-input.is-bad { border-color: var(--cp-danger); box-shadow: 0 0 0 3px rgba(180, 35, 24, .12); }
.cp-pay-pan-wrap { position: relative; }
.cp-pay-pan { font-variant-numeric: tabular-nums; letter-spacing: .08em !important; padding-right: 6.5rem; }
.cp-pay-brand {
  position: absolute; right: .6rem; top: 50%; transform: translateY(-50%);
  font-size: .7rem; font-weight: 800; letter-spacing: .06em; color: var(--cp-navy);
  background: #eef4fb; border: 1px solid #c5d4e4; padding: .18rem .45rem; border-radius: 3px;
}
.cp-pay-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.cp-pay-submit { height: 2.8rem !important; font-size: .95rem; font-weight: 800; margin-top: .35rem; transition: background .15s, transform .1s; }
.cp-pay-submit:active { transform: translateY(1px); }
.cp-pay-submit[disabled] { opacity: .7; cursor: progress; }
.cp-pay-legal { margin: .75rem 0 0; font-size: .76rem; color: var(--cp-muted); line-height: 1.45; text-align: center; }
.cp-pay-done { text-align: center; padding: 1.6rem .5rem 1rem; }
.cp-pay-done h3 { margin: 0 0 .35rem; font-size: 1.1rem; color: var(--cp-navy); font-weight: 800; }
.cp-pay-done p { margin: 0 0 1rem; color: var(--cp-muted); font-size: .88rem; }
.cp-pay-done-icon {
  width: 3rem; height: 3rem; margin: 0 auto .75rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--cp-ok-bg); color: var(--cp-ok-text); font-size: 1.4rem; font-weight: 800;
}
.cp-pay-done .cp-btn { display: inline-flex; width: auto; padding: 0 1.1rem; }
.cp-pay-iframe-note { margin: 0 0 .6rem; font-size: .84rem; color: var(--cp-muted); }
.cp-pay-iframe-box { min-height: 420px; color: var(--cp-muted); font-size: .88rem; }
.cp-pay-iframe-box iframe { width: 100% !important; border: 0; }
@media (max-width: 860px) {
  .cp-pay-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cp-pay-panel { padding: 1.1rem 1rem; }
  .cp-pay-row { gap: .5rem; }
  .cp-pay-head { flex-direction: column; }
  .cp-pay-amount { font-size: 1.65rem; }
}