:root {
  --navy: #ff6a00;
  --navy-2: #d45500;
  --gold: #ea580c;
  --bg: #eef2f6;
  --panel: #ffffff;
  --line: #d7dee8;
  --text: #1f2937;
  --muted: #6b7280;
  --green: #15803d;
  --danger: #b42318;
  --radius: 14px;
  --font: "Segoe UI", system-ui, sans-serif;
  --side: #1f2937;
  --field: #fff1e0;
  --field-line: #f0c29a;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.muted { color: var(--muted); }
.auth-body, .app-body {
  min-height: 100vh;
  background: var(--bg);
}
.auth-admin {
  background: #0f172a;
}
.auth-admin .brand-lockup {
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
}
.auth-admin .auth-alt,
.auth-admin .auth-foot { color: #cbd5e1; }
.auth-admin .auth-alt a,
.auth-admin .auth-foot a { color: #ffb347; }
.auth-admin .demo-note { color: #94a3b8; }
.auth-shell { max-width: 440px; margin: 0 auto; padding: 48px 20px 64px; }
.brand-lockup { display: inline-flex; align-items: center; margin-bottom: 22px; }
.auth-card, .card, .stat, .table-wrap, .msg, .empty, .notice {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
}
.auth-card { padding: 28px; }
.auth-card h1, .app-top h1 { margin: 0 0 8px; font-size: 1.5rem; color: #111827; }
.auth-alt, .auth-foot { text-align: center; color: var(--muted); }
.auth-alt a, .auth-foot a, .text-link { color: var(--navy); font-weight: 600; }
label { display: block; font-size: .86rem; color: #374151; font-weight: 600; margin: 14px 0 6px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--field-line);
  background: var(--field);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
}
input::placeholder, textarea::placeholder { color: #b45309; opacity: .7; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(255,106,0,.35);
  border-color: var(--navy);
  background: #fff8ee;
}
textarea { min-height: 120px; resize: vertical; }
input[type="checkbox"], input[type="radio"] {
  width: auto;
  accent-color: var(--navy);
  background: var(--field);
}
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 10px; padding: 12px 16px; font: inherit; font-weight: 700;
  cursor: pointer; color: #fff; background: var(--navy);
}
.btn:hover { background: var(--navy-2); }
.btn-block { width: 100%; margin-top: 16px; }
.btn-green { background: var(--green); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-danger { background: var(--danger); }
.flash { padding: 12px 14px; border-radius: 10px; margin: 12px 0 16px; }
.flash-success { background: #ecfdf3; color: #067647; }
.flash-error { background: #fef3f2; color: #b42318; }
.app-frame { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.app-side {
  padding: 0;
  background: var(--side);
  color: #fff;
  border-right: 1px solid #111827;
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; overflow: auto;
}
.side-profile {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.side-profile .avatar { background: #111827; border-color: rgba(255,255,255,.12); color: #ffb347; }
.side-name { font-weight: 700; color: #fff; }
.side-role { color: #ffb347; font-size: .82rem; margin-top: 2px; }
.admin-kicker { margin: 0 0 4px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); font-weight: 700; }
.app-side .muted, .side-kicker, .side-nav a, .side-link { color: rgba(255,255,255,.78); }
.side-kicker { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; margin: 12px 18px 8px; color: #ffb347; }
.side-account { display: grid; gap: 2px; margin: 12px 18px 4px; }
.side-account strong { color: #fff; font-size: 1.05rem; font-weight: 800; line-height: 1.3; }
.side-account span { color: #fff; font-size: .88rem; font-weight: 700; }
.side-photo { padding: 4px 18px 2px; }
.side-photo img,
.side-photo-empty {
  width: 140px;
  height: 145px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: #111827;
  display: block;
}
.side-photo-empty {
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.78);
  font-size: .78rem;
  font-weight: 700;
  text-align: center;
  padding: 10px;
}
.brand-lockup { padding: 18px 18px 0; }
.side-nav { display: grid; gap: 4px; margin: 12px 10px; flex: 1; }
.side-nav a, .side-link {
  padding: 10px 12px; border-radius: 10px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.side-nav a.active, .side-nav a:hover, .side-link:hover { background: rgba(255,106,0,.18); color: #fff; }
.side-nav a.active { box-shadow: inset 3px 0 0 var(--navy); }
.nav-badge {
  background: var(--navy); color: #fff; border-radius: 999px;
  min-width: 20px; height: 20px; padding: 0 6px;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
}
.side-foot { padding: 12px 10px 18px; border-top: 1px solid rgba(255,255,255,.08); }
.side-link { display: block; }
.side-link.danger { color: #fca5a5; }
.side-close, .nav-backdrop { display: none; }
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  z-index: 25;
}
.side-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #e10600;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}
.app-main { min-width: 0; background: var(--bg); }
.account-photo {
  display: flex;
  justify-content: flex-start;
  padding: 22px 28px 0;
}
.account-photo img,
.account-photo-empty {
  width: 150px;
  height: 190px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}
.account-photo-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  text-align: center;
  padding: 12px;
}
.app-top {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 28px 8px;
}
.top-meta { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.top-logout { padding: 8px 14px; }
.balance-pill, .avatar {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
}
.balance-pill { padding: 8px 12px; display: grid; }
.balance-pill span { font-size: .72rem; color: var(--muted); }
.balance-pill strong { color: var(--navy); }
.avatar { width: 42px; height: 42px; display: grid; place-items: center; font-weight: 700; color: var(--navy); }
.app-content { padding: 12px 28px 40px; display: grid; gap: 18px; }
.app-copy { margin: 0 28px 28px; color: var(--muted); font-size: .82rem; }
.grid-4, .grid-3, .grid-2 { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.stat, .card, .table-wrap, .msg, .empty, .notice { padding: 18px; }
.stat span { color: var(--muted); font-size: .82rem; }
.stat strong { display: block; font-size: 1.35rem; margin-top: 6px; color: #111827; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: .92rem; }
th { color: var(--muted); font-weight: 600; }
.badge { display: inline-flex; padding: 3px 8px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.badge-pending { background: #fff7ed; color: #c2410c; }
.badge-approved, .badge-active, .badge-complete { background: #ecfdf3; color: #067647; }
.badge-rejected, .badge-frozen { background: #fef3f2; color: #b42318; }
.badge-unused { background: #fff7ed; color: #c2410c; }
.badge-used, .badge-complete { background: #ecfdf3; color: #067647; }
.card h2, .table-wrap h2 { margin: 0 0 14px; font-size: 1.15rem; color: #111827; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar-input { width: 160px; margin: 0; padding: 10px 12px; }
.toolbar select.toolbar-input { width: min(100%, 360px); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.cid { color: var(--muted); font-size: .8rem; margin-top: 3px; font-family: ui-monospace, Consolas, monospace; }
input[type="checkbox"] { width: auto; }
.code-row { display: flex; gap: 8px; align-items: center; }
.code-row input { margin: 0; }
.check-line { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); margin-top: 14px; }
.check-line input { margin: 0; }
.save-code { margin-top: 18px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.notice { color: var(--muted); font-size: .92rem; }
.empty { color: var(--muted); }
td.empty {
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: left;
  padding: 22px 8px;
}
.msg { display: grid; gap: 6px; }
.msg p { margin: 0; white-space: pre-wrap; }
.msg-thread { display: grid; gap: 10px; margin: 0 0 16px; }
.msg-thread .msg { margin: 0; }
.msg-bank { background: #f5f3ff; }
.msg-customer { background: #f8fafc; }
.demo-note { font-size: .8rem; color: var(--muted); margin-top: 10px; }
.detail-list { display: grid; gap: 10px; }
.detail-list div { display: grid; grid-template-columns: 160px 1fr; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.detail-list span { color: var(--muted); font-size: .86rem; }
.detail-sub { margin: 18px 0 10px; color: var(--navy); }
.profile-grid { align-items: start; }
.account-update { margin-top: 8px; padding-top: 4px; border-top: 1px solid var(--line); }
.account-update .btn { margin-top: 14px; }
.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.doc-card { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #f9fafb; }
.doc-card img { width: 100%; height: 220px; object-fit: contain; display: block; background: #fff; }
.doc-card figcaption { padding: 8px 10px; font-size: .82rem; }
.doc-file { display: block; padding: 36px 10px; text-align: center; font-weight: 700; color: var(--navy); }
.avatar-photo { overflow: hidden; padding: 0; }
.avatar-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero { display: flex; gap: 18px; align-items: flex-start; }
.profile-id { flex: 1; min-width: 0; }
.profile-photo-slot { margin-left: auto; flex: 0 0 auto; }
.balance-preview { text-align: right; }
.balance-preview span { display: block; color: var(--muted); font-size: .82rem; }
.balance-preview strong { display: block; margin-top: 4px; font-size: 1.8rem; color: var(--navy); }
.profile-photo { width: 96px; height: 96px; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); }
.profile-photo-lg { width: 160px; height: 200px; object-fit: cover; }
.profile-photo-empty {
  display: grid;
  place-items: center;
  background: #f9fafb;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 41, 55, .78);
  transition: opacity .25s ease;
}
.preloader.is-done {
  opacity: 0;
  pointer-events: none;
}
.preloader-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  color: #fff;
  font-weight: 700;
  letter-spacing: .02em;
}
.preloader-spin {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(255, 255, 255, .25);
  border-top-color: #ff6a00;
  border-radius: 50%;
  animation: preloader-spin .7s linear infinite;
}
@keyframes preloader-spin {
  to { transform: rotate(360deg); }
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .app-frame { grid-template-columns: 1fr; }
  .app-side {
    display: none;
    position: fixed;
    z-index: 40;
    left: 0;
    top: 0;
    width: min(300px, 88vw);
    height: 100vh;
    height: 100dvh;
    box-shadow: 8px 0 24px rgba(0, 0, 0, .28);
  }
  body.nav-open .app-side { display: flex; }
  body.nav-open .nav-backdrop,
  body.nav-open .side-close { display: grid; }
  .app-side .brand-lockup img { width: 160px; }
  .grid-4, .grid-3, .grid-2, .form-grid, .doc-grid, .detail-list div, .acct-actions { grid-template-columns: 1fr; }
  .acct-balance { flex-direction: column; }
  .acct-meta { text-align: left; }
  .app-top {
    flex-wrap: wrap;
    padding: 16px;
    gap: 10px;
  }
  .app-top h1 { font-size: 1.25rem; overflow-wrap: anywhere; }
  .app-top .muted { overflow-wrap: anywhere; }
  .top-meta { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .app-content { padding: 12px 16px 32px; }
  .app-copy { margin-left: 16px; margin-right: 16px; }
  .profile-hero { flex-direction: column; align-items: stretch; }
  .profile-photo-slot { order: -1; margin-left: 0; }
  .balance-preview { text-align: left; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 640px; }
  .toolbar { align-items: stretch; }
  .toolbar .btn, .toolbar-input { width: 100%; }
  .code-row { flex-wrap: wrap; }
  .code-row input, .code-row .btn { width: 100%; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
  .auth-shell { padding: 28px 16px 48px; }
  .check-line { align-items: flex-start; }
  .tx-row { gap: 12px; }
  .tx-kind { width: 64px; height: 64px; flex-basis: 64px; font-size: .78rem; }
  .tx-amount, .tx-line { overflow-wrap: anywhere; }
  .password-row-form { flex-direction: column; align-items: stretch; }
  .password-row-form input, .password-row-form .btn { width: 100%; }
  .account-photo { padding: 16px 16px 0; }
  .account-photo img, .account-photo-empty { width: 120px; height: 140px; }
  input, select, textarea { font-size: 16px; }
}

body.admin-body {
  background: #eef2f6;
  color: #1a1a1a;
}
.ops {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  width: 100%;
  background: #eef2f6;
}
.ops-side {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  background: #111;
  display: flex;
  flex-direction: column;
}
.ops-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 14px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}
.ops-brand {
  color: #1a2744;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
}
.ops-close {
  display: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #e10600;
  color: #fff;
  font-size: 24px;
  line-height: 28px;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
}
.ops-burger {
  display: none;
  width: 36px;
  border: 0;
  background: transparent;
  gap: 5px;
  padding: 4px 0;
  cursor: pointer;
}
.ops-burger span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: #e10600;
}
.ops-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 8px 14px;
  background: #111;
  color: #fff;
  border-bottom: 1px solid #000;
  font-size: 14.5px;
  font-weight: 500;
}
.ops-menu a.is-active { background: #8d1f24; }
.ops-menu a em {
  margin-left: auto;
  color: #d2e04a;
  font-style: normal;
  font-weight: 700;
}
.ops-ico { width: 18px; height: 18px; flex: 0 0 18px; }
.ops-logout { color: #fff; }
.ops-stage { min-width: 0; }
.ops-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px 0;
}
.ops-top h1 { margin: 0; font-size: 1.45rem; color: #111827; }
.ops-main { background: transparent; padding: 12px 28px 40px; display: grid; gap: 18px; align-content: start; }
.tx-list { display: grid; gap: 22px; }
.tx-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 8px 8px 18px;
  border-bottom: 1px solid #e5e7eb;
}
.tx-kind {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  border: 1px solid #d1d5db;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  font-weight: 700;
  font-size: .92rem;
}
.tx-kind-debit { color: #dc2626; }
.tx-kind-credit { color: #16a34a; }
.tx-body { min-width: 0; }
.tx-amount { margin: 4px 0 6px; font-size: 1.35rem; font-weight: 800; }
.tx-amount-debit { color: #dc2626; }
.tx-amount-credit { color: #16a34a; }
.tx-line { margin: 0 0 10px; color: #111827; }
.tx-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tx-date {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  color: #b91c1c;
  font-weight: 700;
  font-size: .92rem;
}
.tx-print {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.tx-print::before { content: "⎙"; }
.statement-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.cust-body .statement-tools { justify-content: center; }
.statement-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 16px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-weight: 700;
}
.statement-tool:hover { border-color: #6d28d9; color: #6d28d9; }
@media print {
  body.printing-tx .app-side,
  body.printing-tx .app-top,
  body.printing-tx .app-copy,
  body.printing-tx .preloader,
  body.printing-tx .statement-tools,
  body.printing-tx .tx-print,
  body.printing-tx .tx-row:not(.is-printing) { display: none !important; }
  body.printing-tx .app-frame { display: block; }
  body.printing-tx .tx-row.is-printing { border: 0; }
}
.dash-summary h2 { margin: 0 0 14px; font-size: 1.15rem; color: #111827; }
.acct-balance {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
  padding: 22px 24px;
  border-radius: 16px;
  background: #1f2937;
  color: #fff;
}
.acct-balance span { color: #d1d5db; font-size: .82rem; }
.acct-balance strong { display: block; margin-top: 4px; font-size: 2.2rem; color: #fff; }
.acct-balance p { margin: 10px 0 0; color: #e5e7eb; }
.acct-meta { text-align: right; }
.acct-meta strong { font-size: 1.05rem; font-family: ui-monospace, Consolas, monospace; }
.acct-meta span { display: block; margin-top: 10px; }
.acct-meta span:first-child { margin-top: 0; }
.acct-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.acct-action {
  display: block;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 700;
  color: #111827;
}
.acct-action small { display: block; margin-top: 4px; font-weight: 500; color: var(--muted); }
.choice-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 8px 0 4px; }
.choice {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  cursor: pointer;
}
.choice input { margin-right: 8px; }
.choice span { display: block; font-weight: 700; color: #111827; }
.choice small { display: block; font-weight: 400; color: var(--muted); }
.ops-main .flash { margin: 0; }
.ops-list { border-top: 1px solid #e4e4e4; }
.ops-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 13px 14px;
  background: #fff;
  color: #222;
  border-bottom: 1px solid #e6e6e6;
}
div.ops-row { grid-template-columns: 18px 28px minmax(0, 1fr) auto; }
.ops-row.ops-row-code { grid-template-columns: 32px minmax(0, 1fr) auto auto; }
.ops-row.ops-row-activity { grid-template-columns: 32px minmax(0, 1fr) auto; }
.ops-row-code .btn { padding: 8px 12px; white-space: nowrap; }
.ops-row-code form { margin: 0; }
.ops-row:nth-child(even) { background: #ececec; }
.ops-row.is-current { box-shadow: inset 4px 0 0 #8d1f24; }
.ops-num { color: #666; }
.ops-who { display: grid; min-width: 0; }
.ops-name {
  font-weight: 600;
  color: #1a1a1a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
a.ops-name { color: #1a1a1a; }
.ops-phone { color: #333; font-size: .92rem; text-align: right; }
.ops-status { color: #8d1f24; font-size: .75rem; font-weight: 700; }
.ops-hint { margin: 0; padding: 14px; color: #444; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.fpao-find {
  width: min(100%, 560px);
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  background: #fff;
  font: inherit;
}
.fpao-wrap { padding: 0; background: #fff; }
.fpao-table { min-width: 980px; }
.fpao-table th { white-space: nowrap; background: #f7f7f7; }
.fpao-table td form { margin: 0; }
.fpao-table .btn { padding: 6px 10px; white-space: nowrap; }
.password-row-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
}
.password-row-form input {
  width: 150px;
  margin: 0;
}
.fpao-table a { color: #1a1a1a; font-weight: 600; }
.ops-sub { display: block; color: #666; font-size: .82rem; font-weight: 500; }
.acct-ops { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 280px; }
.acct-ops form { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.acct-ops input { width: 120px; margin: 0; padding: 6px 8px; }
.acct-ops .btn { padding: 6px 10px; }
.ops-actions form { display: inline-flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.link-btn {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: #8d1f24;
  cursor: pointer;
}
.loan-tools { display: flex; }
.loan-tools form { margin: 0; }
.announcement-form textarea { min-height: 140px; }
.ops-panel { margin: 0; border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
.ops-tools { padding: 8px 14px 22px; background: #fff; }
.ops-tools summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.ops-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 8px; }
.admin-body .card,
.admin-body .table-wrap,
.admin-body .stat,
.admin-body .notice,
.admin-body .msg,
.admin-body .empty {
  border-radius: 14px;
}
.admin-body .row-check { width: 16px; height: 16px; margin: 0; }
@media (max-width: 860px) {
  .ops { grid-template-columns: 1fr; }
  .ops-side {
    display: none;
    position: fixed;
    z-index: 40;
    left: 0;
    top: 0;
    width: min(320px, 88vw);
    height: 100vh;
    height: 100dvh;
    box-shadow: 8px 0 24px rgba(0, 0, 0, .28);
  }
  .admin-body.nav-open .ops-side,
  .admin-body.nav-open .nav-backdrop { display: flex; }
  .admin-body.nav-open .nav-backdrop { display: block; }
  .ops-close, .ops-burger { display: grid; }
  .ops-top, .ops-main { padding-left: 16px; padding-right: 16px; }
  .ops-top h1 { font-size: 1.2rem; overflow-wrap: anywhere; }
  .ops-main { min-width: 0; overflow-x: auto; }
  .admin-body .grid-4,
  .admin-body .grid-3,
  .admin-body .grid-2,
  .admin-body .form-grid,
  .admin-body .doc-grid,
  .admin-body .detail-list div { grid-template-columns: 1fr; }
  .admin-body .toolbar { flex-direction: column; align-items: stretch; }
  .admin-body .toolbar .btn,
  .admin-body .toolbar-input,
  .admin-body .password-row-form input,
  .admin-body .password-row-form .btn { width: 100%; }
  .admin-body .password-row-form { flex-direction: column; align-items: stretch; }
  .admin-body input, .admin-body select, .admin-body textarea { font-size: 16px; }
}

.cust-body { background: #fff; }
.cust-top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 8px 22px 12px;
}
.cust-lang {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: #f97316;
  font-size: .82rem;
  margin-bottom: 6px;
}
.cust-lang select {
  width: auto;
  border: 0;
  background: transparent;
  color: #f97316;
  padding: 0;
  font-weight: 600;
}
.auth-lang { margin: 0 0 18px; }
.cust-top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cust-logo img { width: 210px; height: auto; display: block; }
.cust-welcome { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.cust-welcome strong { color: #b91c1c; font-size: 1.35rem; }
.cust-avatar, .cust-avatar img, .cust-avatar span {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}
.cust-avatar { overflow: hidden; border: 2px solid #e5e7eb; background: #111; display: grid; place-items: center; }
.cust-avatar img { object-fit: cover; display: block; }
.cust-avatar span { display: grid; place-items: center; color: #fff; font-weight: 800; }
.cust-body .app-frame { min-height: calc(100vh - 110px); background: #fff; }
.cust-body .app-side { background: #111; }
.cust-body .side-nav { margin: 8px 0 0; gap: 0; }
.cust-body .side-nav a, .cust-body .side-logout {
  justify-content: flex-start;
  gap: 10px;
  border-radius: 0;
  color: #fff;
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.cust-body .side-nav a.active { background: rgba(255,255,255,.08); box-shadow: none; }
.cust-body .side-logout { color: #f87171; }
.cust-ico { width: 18px; height: 18px; flex: 0 0 18px; }
.cust-body .app-main, .cust-body .app-content { background: #fff; }
.cust-body .app-content { padding: 28px 28px 110px; }
.cust-board { display: grid; justify-items: center; gap: 22px; margin: 10px auto 8px; max-width: 980px; width: 100%; }
.cust-hero { display: flex; align-items: stretch; justify-content: center; gap: 22px; width: 100%; }
.cust-side-photo { flex: 0 0 180px; }
.cust-side-photo img,
.cust-side-photo-empty {
  width: 180px;
  height: 230px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
}
.cust-side-photo-empty {
  display: grid;
  place-items: center;
  color: #6b7280;
  font-weight: 700;
  text-align: center;
  padding: 12px;
}
.cust-branch {
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 1.05rem;
}
.cust-card {
  width: min(100%, 720px);
  border-radius: 32px;
  padding: 36px 32px 24px;
  color: #fff;
  background: linear-gradient(160deg, #e11d48 0%, #c026d3 55%, #6d28d9 100%);
  box-shadow: 0 16px 40px rgba(109, 40, 217, .25);
}
.cust-hero .cust-card { flex: 1 1 auto; width: auto; min-width: 0; max-width: none; }
.cust-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 22px; }
.cust-card span { display: block; font-weight: 800; margin-bottom: 10px; font-size: 1.15rem; }
.cust-card .is-gold, .cust-bal, .cust-card em { color: #fde047; }
.cust-card em, .cust-card b, .cust-iban {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 999px;
  padding: 8px 16px;
  font-style: normal;
  font-weight: 800;
  font-size: 1.15rem;
  text-align: center;
}
.cust-bal { border: 0; font-size: 1.7rem; min-height: 0; padding: 0; justify-content: flex-start; }
.cust-card .is-teal { color: #5eead4; }
.cust-iban { margin: 18px 0 6px; color: #fde047; }
.cust-shortcuts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin: 28px auto;
  padding: 18px 8px;
  border-top: 4px solid #7e22ce;
  border-bottom: 4px solid #7e22ce;
  max-width: 760px;
}
.cust-shortcuts a { display: grid; justify-items: center; gap: 6px; color: #f97316; font-weight: 700; min-width: 72px; }
.cust-shortcuts .cust-ico { width: 34px; height: 34px; }
.cust-history-title { text-align: center; margin: 8px 0 18px; }
.cust-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: flex;
  justify-content: space-around;
  gap: 8px;
  padding: 10px 12px 12px;
  background: linear-gradient(90deg, #be123c, #7e22ce);
  color: #fff;
}
.cust-dock a { display: grid; justify-items: center; gap: 4px; color: #fff; font-size: .78rem; font-weight: 700; min-width: 56px; }
.cust-pay-card { display: grid; gap: 12px; min-height: 220px; align-content: center; }
.cust-pay-card p { margin: 0; font-size: 1.4rem; font-weight: 800; color: #fde047; }
.vcard-page { width: min(100%, 420px); margin: 0 auto; text-align: center; }
.vcard-back {
  display: inline-flex;
  align-items: center;
  margin: 0 auto 14px 0;
  padding: 8px 16px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  background: linear-gradient(90deg, #ff8a1e, #e23d24);
}
.vcard-page h1 { margin: 0 0 14px; color: #111; font-size: clamp(1.15rem, 4vw, 1.45rem); font-weight: 800; }
.vcard {
  box-sizing: border-box;
  width: 100%;
  height: auto;
  aspect-ratio: 1.7 / 1;
  border-radius: 18px;
  padding: clamp(14px, 4vw, 22px);
  color: #fff;
  display: flex;
  flex-direction: column;
  background: linear-gradient(115deg, #f05a28 0%, #e11d48 32%, #c026d3 68%, #6d28d9 100%);
  box-shadow: 0 12px 28px rgba(109, 40, 217, .22);
}
.vcard-top { display: flex; align-items: flex-start; justify-content: space-between; }
.vcard-chip { width: clamp(36px, 12%, 52px); height: auto; display: block; }
.vcard-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.5rem, 7vw, 2.2rem);
  letter-spacing: .04em;
  color: #1a3db8;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255,255,255,.45);
}
.vcard-number {
  margin: clamp(12px, 4vw, 22px) 0;
  color: #f5d90a;
  font-size: clamp(.95rem, 4.2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: .04em;
}
.vcard-row { display: grid; grid-template-columns: 1.4fr .8fr; gap: 10px; margin-top: auto; }
.vcard-row span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(88, 18, 48, .45);
  border: 1px solid rgba(255,255,255,.35);
  font-weight: 800;
  font-size: clamp(.8rem, 3vw, 1rem);
}
.vcard-reverse {
  margin-top: 16px;
  aspect-ratio: 1.7 / 1;
  padding: 0;
  justify-content: flex-start;
  overflow: hidden;
  background: linear-gradient(160deg, #5b21b6 0%, #7e22ce 42%, #be123c 100%);
}
.vcard-stripe {
  height: 22%;
  margin-top: 12%;
  background: repeating-linear-gradient(90deg, #111 0 10px, #1f1f1f 10px 14px);
}
.vcard-sign {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 0;
}
.vcard-signline {
  flex: 1;
  height: 36px;
  border-radius: 4px;
  background: repeating-linear-gradient(180deg, #f8fafc, #f8fafc 7px, #e5e7eb 8px);
}
.vcard-cvvbox {
  min-width: 64px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-weight: 800;
  letter-spacing: .14em;
  text-align: center;
}
.vcard-issuer {
  margin: auto 16px 14px;
  text-align: left;
  font-weight: 800;
  font-size: .95rem;
}
.vcard-cvv {
  display: inline-flex;
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  background: linear-gradient(90deg, #ff8a1e, #e23d24);
  cursor: pointer;
}
.vcard-code { margin: 10px 0 0; font-size: 1.25rem; font-weight: 800; letter-spacing: .2em; color: #111; }
.cust-body .nav-toggle { display: none; }
@media (max-width: 980px) {
  .cust-body .nav-toggle { display: inline-flex; }
  .cust-logo img { width: 140px; }
  .cust-welcome strong { font-size: 1rem; }
  .cust-avatar, .cust-avatar img, .cust-avatar span { width: 48px; height: 48px; }
  .cust-card-grid, .cust-hero { grid-template-columns: 1fr; }
  .cust-hero { flex-direction: column; align-items: center; }
  .cust-side-photo, .cust-side-photo img, .cust-side-photo-empty { width: 140px; height: 175px; }
  .cust-body .app-content { padding: 16px 16px 110px; }
  .cust-dock { padding-bottom: 14px; }
}

.ibank-body { background: #fff; color: #111; min-height: 100vh; }
.ibank-top { background: #111; text-align: center; padding: 12px 16px 16px; }
.ibank-body .auth-lang { color: #fff; margin: 0 0 10px; }
.ibank-body .cust-lang span,
.ibank-body .cust-lang select { color: #fff; }
.ibank-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(90deg, #ff8a1e, #e23d24);
  border-radius: 999px;
  padding: 10px 26px;
}
.ibank-pill svg { width: 22px; height: 22px; }
.ibank-hero {
  display: grid;
  grid-template-columns: 1.15fr .95fr;
  align-items: center;
  background: #fff;
  min-height: 148px;
}
.ibank-hero img { width: 100%; height: 148px; object-fit: cover; object-position: left center; }
.ibank-hero div { padding: 10px 14px 10px 12px; }
.ibank-hero strong { display: block; color: #1d4e89; font-size: 1.28rem; line-height: 1.15; }
.ibank-hero em { display: block; margin-top: 8px; color: #b8860b; font-size: .92rem; line-height: 1.35; }
.ibank-main { max-width: 440px; margin: 0 auto; padding: 28px 22px 100px; }
.ibank-main h1 { text-align: center; font-size: 1.45rem; margin: 8px 0 22px; color: #111; }
.ibank-lead { text-align: center; color: #4b5563; margin: -8px 0 18px; line-height: 1.5; }
.ibank-body .ibank-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #e6e6e6;
  border-radius: 999px;
  min-height: 54px;
  padding: 0 16px;
  margin: 0 0 16px;
  font-weight: 500;
}
.ibank-field svg { width: 22px; height: 22px; color: #c81e1e; flex: 0 0 22px; }
.ibank-body .ibank-field input {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 14px 0;
  color: #333;
  box-shadow: none;
}
.ibank-body .ibank-field input:focus { outline: none; background: transparent; border: 0; }
.ibank-body .ibank-field input::placeholder { color: #9ca3af; opacity: 1; }
.ibank-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 800;
  background: linear-gradient(90deg, #ff8a1e, #e23d24);
}
.ibank-login svg { width: 22px; height: 22px; }
.ibank-links { text-align: center; margin: 16px 0 0; color: #111; }
.ibank-links a { color: #e10600; font-weight: 800; }
.ibank-chat {
  position: fixed;
  right: 16px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  box-shadow: 0 8px 18px rgba(29, 78, 216, .35);
}
.ibank-chat svg { width: 28px; height: 28px; }
.ibank-body .flash { text-align: center; }
@media (max-width: 640px) {
  .ibank-hero strong { font-size: 1.05rem; }
  .ibank-hero em { font-size: .82rem; }
  .ibank-hero, .ibank-hero img { min-height: 128px; height: auto; }
  .ibank-hero img { height: 128px; }
}
