@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --side: 248px;
  --ink: #0f172a;
  --muted: #64748b;
  --canvas: #eef2ff;
  --card: rgba(255,255,255,.86);
  --card-solid: #ffffff;
  --card-2: #f8fafc;
  --line: rgba(148,163,184,.35);
  --accent: #4f46e5;
  --accent-2: #4338ca;
  --accent-3: #7c3aed;
  --accent-soft: rgba(79,70,229,.12);
  --danger: #e11d48;
  --danger-soft: rgba(225,29,72,.1);
  --warning: #b45309;
  --warning-soft: rgba(245,158,11,.16);
  --sidebar-bg: #0b1020;
  --sidebar-text: #dbe4ff;
  --sidebar-muted: #93a0c4;
  --sidebar-line: rgba(255,255,255,.08);
  --input: #ffffff;
  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 10px 28px rgba(15,23,42,.06);
  --radius: 14px;
  --primary: #4f46e5;
  --success: #4f46e5;
  --text: #0f172a;
  --text-muted: #64748b;
  --primary-bright: #6366f1;
  --bs-primary: #4f46e5;
  --bs-primary-rgb: 79, 70, 229;
  --bs-link-color: #4f46e5;
  --bs-link-hover-color: #4338ca;
  --bs-body-font-family: var(--font);
  --bs-body-color: #0f172a;
  --bs-body-bg: transparent;
  --bs-border-color: rgba(148,163,184,.45);
  --bs-border-radius: 12px;
  --bs-secondary-color: #64748b;
  --bs-emphasis-color: #0f172a;
  color-scheme: light;
}
html[data-theme="dark"] {
  --ink: #eef2ff;
  --muted: #a5b4fc;
  --canvas: #070b16;
  --card: rgba(17,24,39,.78);
  --card-solid: #111827;
  --card-2: #1e293b;
  --line: rgba(148,163,184,.22);
  --accent: #a5b4fc;
  --accent-2: #c4b5fd;
  --accent-3: #818cf8;
  --accent-soft: rgba(165,180,252,.16);
  --danger: #fb7185;
  --danger-soft: rgba(251,113,133,.14);
  --warning: #fbbf24;
  --warning-soft: rgba(251,191,36,.14);
  --sidebar-bg: #070b16;
  --sidebar-text: #e0e7ff;
  --sidebar-muted: #94a3b8;
  --sidebar-line: rgba(255,255,255,.08);
  --input: #0f172a;
  --shadow: 0 20px 50px rgba(0,0,0,.35);
  --text: #eef2ff;
  --text-muted: #a5b4fc;
  --primary: #a5b4fc;
  --success: #a5b4fc;
  --primary-bright: #c4b5fd;
  --bs-primary: #818cf8;
  --bs-primary-rgb: 129, 140, 248;
  --bs-body-color: #eef2ff;
  --bs-secondary-color: #a5b4fc;
  --bs-emphasis-color: #eef2ff;
  --bs-border-color: rgba(148,163,184,.28);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  padding-bottom: 56px;
  font-variant-numeric: tabular-nums;
  background:
    radial-gradient(900px 480px at -10% -10%, rgba(124,58,237,.28), transparent 60%),
    radial-gradient(800px 420px at 110% 0%, rgba(79,70,229,.22), transparent 55%),
    radial-gradient(700px 500px at 80% 120%, rgba(14,165,233,.16), transparent 50%),
    var(--canvas);
  background-attachment: fixed;
}
h1, h2, h3, h4, h5, .brand-wrapper h4, .document-title h2, .r-title, .company-name {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  overflow-wrap: anywhere;
  max-width: 100%;
}
h1 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
p, td, th, label, .nav-link, .form-control, .btn { overflow-wrap: break-word; }
.sidebar .nav-link, #sidebar .nav-link { white-space: normal; line-height: 1.35; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }

.sidebar, #sidebar {
  position: fixed;
  inset: 12px auto 12px 12px;
  width: var(--side);
  height: calc(100vh - 24px);
  background:
    radial-gradient(400px 220px at 0% 0%, rgba(124,58,237,.45), transparent 60%),
    linear-gradient(180deg, #121936 0%, var(--sidebar-bg) 42%);
  color: var(--sidebar-text);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  padding: 0;
  overflow: auto;
  z-index: 1040;
  box-shadow: 0 24px 60px rgba(15,23,42,.28);
}
.sidebar .logo, #sidebar .logo {
  padding: 22px 18px 16px;
  border-bottom: 1px solid var(--sidebar-line);
}
.sidebar .logo img { height: 26px; width: auto; filter: brightness(0) invert(1); }
.sidebar nav, #sidebar .nav { padding: 14px 12px 86px; }
.sidebar .nav-link, #sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 3px 0;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--sidebar-text) !important;
  background: transparent;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}
.sidebar .nav-link i, #sidebar .nav-link i {
  width: 28px; height: 28px; margin: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  color: #c7d2fe !important;
}
.sidebar .nav-link:hover, #sidebar .nav-link:hover { background: rgba(255,255,255,.06); color: #fff !important; }
.sidebar .nav-link.active, #sidebar .nav-link.active:hover,
#sidebar .nav-link.active, #sidebar .nav-link.active:hover {
  background: linear-gradient(90deg, rgba(99,102,241,.95), rgba(124,58,237,.9)) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(79,70,229,.35);
}
.sidebar .nav-link.active i, #sidebar .nav-link.active i { background: rgba(255,255,255,.16); color: #fff !important; }
.sidebar small, #sidebar small { color: var(--sidebar-muted) !important; letter-spacing: .14em; font-size: 10px; }

body:has(.sidebar) .main-content,
body:has(#sidebar) #content {
  margin-left: calc(var(--side) + 24px);
  padding: 22px 22px 36px;
  min-height: 100vh;
  min-width: 0;
  max-width: calc(100% - var(--side) - 24px);
}
.top-header, .card, .form-card, .table-card, .paket-card, .card-custom, .modal-content, .dashboard-card, .stat-card {
  background: var(--card);
  backdrop-filter: blur(16px);
  color: var(--ink);
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow);
}
.top-header { padding: 18px 20px; margin-bottom: 16px; }
.top-header p, .text-muted, .text-secondary { color: var(--muted) !important; }
.text-dark { color: var(--ink) !important; }
.text-primary { color: var(--accent) !important; }
.card-header, .modal-header, .modal-footer {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.card-body { color: var(--ink); }
.table { color: var(--ink); --bs-table-bg: transparent; --bs-table-color: var(--ink); --bs-table-striped-bg: rgba(79,70,229,.04); --bs-table-hover-bg: var(--accent-soft); }
.table th {
  background: transparent !important;
  color: var(--muted) !important;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line) !important;
  font-weight: 700;
}
.table td { border-color: var(--line) !important; vertical-align: middle; }
.table-hover tbody tr:hover { background: var(--accent-soft); }
.form-control, .form-select, textarea.form-control {
  background: var(--input) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  min-height: 42px;
  box-shadow: none !important;
}
.form-control:focus, .form-select:focus {
  border-color: #818cf8 !important;
  box-shadow: 0 0 0 4px var(--accent-soft) !important;
}
.form-label, label { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.btn { border-radius: 12px !important; font-weight: 700; padding: .55rem 1rem; }
.btn-primary, .btn-success, .btn-dark, .bg-gradient-info, .btn-login, .actions button {
  background: linear-gradient(180deg, #6366f1 0%, #4f46e5 55%, #6d28d9 140%) !important;
  border: 0 !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(79,70,229,.32);
}
.btn-primary:hover, .btn-success:hover, .btn-dark:hover, .btn-login:hover, .actions button:hover { filter: brightness(1.06); color: #fff !important; }
.btn-outline-primary, .btn-outline-secondary, .btn-light {
  background: var(--card-solid) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
}
.btn-outline-danger { background: transparent !important; color: var(--danger) !important; border: 1px solid rgba(225,29,72,.35) !important; }
.btn-warning { background: var(--warning-soft) !important; color: var(--warning) !important; border: 0 !important; }
.btn-sm { border-radius: 10px !important; }
.badge { border-radius: 999px; font-weight: 700; }
.alert { border: 0; border-radius: 14px; background: var(--card-solid); color: var(--ink); box-shadow: var(--shadow); }
.alert-success { background: var(--accent-soft); }
.alert-danger { background: var(--danger-soft); }
.alert-warning, .alert-info { background: var(--warning-soft); }
.modal-content { overflow: hidden; }
.modal-body, .dropdown-menu { background: var(--card-solid); color: var(--ink); }
.dropdown-item { color: var(--ink); border-radius: 8px; }
.dropdown-item:hover { background: var(--accent-soft); }
.page-link { background: var(--card-solid); color: var(--ink); border-color: var(--line); }
.page-item.active .page-link { background: var(--accent); border-color: var(--accent); color: #fff; }
.bg-dark, .navbar, .navbar.fixed-top, .navbar-dark {
  background: var(--card) !important;
  backdrop-filter: blur(16px);
  color: var(--ink) !important;
  border-color: var(--line) !important;
}
.navbar { border-bottom: 1px solid var(--line); box-shadow: none; }
body:has(#sidebar) > .navbar.fixed-top {
  margin-left: calc(var(--side) + 12px);
  width: calc(100% - var(--side) - 24px);
  border-radius: 16px;
  margin-top: 12px;
}
.navbar .navbar-brand, .navbar .nav-link, .navbar-dark .navbar-brand, .navbar-dark .nav-link { color: var(--ink) !important; }
.fixed-footer {
  position: fixed; left: 16px; right: 16px; bottom: 10px;
  background: var(--card);
  backdrop-filter: blur(16px);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 16px;
  font-size: 12px;
  z-index: 20;
}
body:has(.sidebar) .fixed-footer,
body:has(#sidebar) .fixed-footer { left: calc(var(--side) + 28px); }
.stat-card, .dashboard-card {
  position: relative;
  overflow: hidden;
  border: 0 !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(248,250,255,.9)) !important;
  padding: 4px;
}
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .dashboard-card {
  background: linear-gradient(180deg, rgba(30,41,59,.9), rgba(15,23,42,.9)) !important;
}
.stat-card::after, .dashboard-card::after {
  content: "";
  position: absolute; right: -30px; top: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,.45), transparent 68%);
  pointer-events: none;
}
.input-group-text { background: var(--card-2) !important; color: var(--muted) !important; border-color: var(--line) !important; }
code { color: var(--accent); background: var(--accent-soft); padding: 1px 6px; border-radius: 6px; }

.quick-action-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 8px 10px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); font-weight: 650; font-size: 13px; text-decoration: none;
  box-shadow: var(--shadow);
}
.quick-action-btn:hover { color: var(--accent); border-color: #c7d2fe; }
.quick-action-btn span { overflow-wrap: normal; }
.stat-card h3 { font-size: clamp(1.05rem, 1.5vw, 1.45rem); margin: 0; line-height: 1.2; }
.stat-card h6 { margin-bottom: 6px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.chart-card, .data-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 16px 8px;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}
.dash-lower { align-items: stretch; }
.chart-box { position: relative; height: min(420px, 52vh); min-height: 280px; }
.data-card { display: flex; flex-direction: column; min-height: 100%; }
.recent-list { flex: 1; min-height: 280px; max-height: min(420px, 52vh); overflow-x: hidden; overflow-y: auto; }
.recent-list table { table-layout: fixed; width: 100%; }
.recent-list th:last-child, .recent-list td.recent-amount { width: 132px; white-space: nowrap; overflow-wrap: normal; }
.recent-amount span { display: block; overflow: hidden; text-overflow: ellipsis; }
.recent-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.hk-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}
.hk-split { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 16px; align-items: start; }
.hk-bill { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.hk-summary { position: sticky; top: 16px; }
.hk-sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.hk-sum-row strong { color: var(--ink); }
.hk-sum-total strong { font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.hk-lines td { vertical-align: top !important; }
.hk-lines th:nth-child(2), .hk-lines td:nth-child(2) { width: 88px; }
.hk-lines th:nth-child(3), .hk-lines td:nth-child(3) { width: 120px; }
.hk-lines th:nth-child(4), .hk-lines td:nth-child(4) { width: 130px; }
.hk-lines th:nth-child(5), .hk-lines td:nth-child(5) { width: 88px; }
.hk-lines th:nth-child(6), .hk-lines td:nth-child(6) { width: 120px; }
.hk-miss { padding: 32px; text-align: center; color: var(--danger); }

.hk-theme {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; gap: 4px; padding: 4px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
}
.hk-theme button {
  flex: 1; border: 0; background: transparent; color: var(--sidebar-muted);
  border-radius: 10px; padding: 8px 6px; font-size: 12px; font-weight: 700; font-family: inherit;
}
.hk-theme button.on { background: #fff; color: #312e81; }
.hk-theme-float {
  position: fixed; right: 16px; bottom: 16px; width: 230px; z-index: 60;
  background: var(--card-solid); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow);
}
.hk-theme-float button { color: var(--muted); }
.hk-theme-float button.on { background: linear-gradient(90deg, #4f46e5, #7c3aed); color: #fff; }
.mobile-header, .hk-mobilebar {
  display: none; position: sticky; top: 0; z-index: 1030;
  background: var(--card); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 10px 12px; align-items: center; justify-content: space-between;
  gap: 10px;
}
.mobile-header > img, .hk-mobilebar > img,
.cari-nav .navbar-brand img,
.sidebar .logo img, #sidebar .logo img {
  height: 22px !important;
  width: auto !important;
  max-width: min(132px, calc(100vw - 96px)) !important;
  object-fit: contain;
  object-position: left center;
  flex: 0 1 auto;
  min-width: 0;
}
.cari-nav > .container { flex-wrap: nowrap; }
.cari-nav .navbar-brand {
  min-width: 0;
  max-width: calc(100% - 64px);
  margin-right: 8px;
  overflow: hidden;
}
.cari-nav .navbar-toggler,
.mobile-header .menu-toggle,
.mobile-header .btn,
.hk-mobilebar .menu-toggle,
.hk-mobilebar .btn {
  flex: 0 0 44px;
  width: 44px;
  margin-left: auto;
}
.menu-toggle, .hamburger-btn, .hk-burger {
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card-solid); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.menu-toggle:empty::before { content: "☰"; font-size: 18px; }
.hk-backdrop { display: none; position: fixed; inset: 0; background: rgba(7,11,22,.55); z-index: 1035; }
.hk-backdrop.show { display: block; }

.login-container, .hk-auth-wrap, .login-wrapper {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 28px 16px; color: var(--ink);
}
.login-wrapper .row { justify-content: center; width: 100%; margin: 0; }
.login-wrapper .col-md-6:not(.info-box) { width: min(480px, 100%); flex: 0 0 auto; }
.login-form, .hk-auth-card {
  width: min(440px, 100%); margin: auto;
  background: var(--card);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 34px 28px;
  box-shadow: 0 30px 80px rgba(79,70,229,.18);
}
.brand-wrapper { margin-bottom: 18px; }
.brand-wrapper img { height: 28px; }
.brand-wrapper p, .login-form p { color: var(--muted); }
.info-box { display: none !important; }
.btn-login, button.btn-login, .actions button {
  width: 100%; border: 0; border-radius: 14px; padding: 13px 14px; margin-top: 8px; font-weight: 800; cursor: pointer;
}
.actions { display: flex; flex-direction: column; gap: 8px; }
.actions .secondary, button.secondary {
  background: var(--card-solid) !important; color: var(--ink) !important;
  border: 1px solid var(--line) !important; box-shadow: none;
}
.input-group-custom { position: relative; }
.input-group-custom .form-control { width: 100%; padding: 12px 12px 12px 40px; }
.login-form .form-control { width: 100%; }
.input-icon { position: absolute; left: 14px; top: 14px; color: var(--muted); }
.form-group, .field { margin-bottom: 14px; }
.password-wrapper { position: relative; }
.password-toggle { position: absolute; right: 14px; top: 13px; cursor: pointer; color: var(--muted); }

body.hk-sheet { padding: 24px 16px 64px; }
body.hk-sheet .main-content, body.hk-sheet .container {
  margin: 0 auto; max-width: 980px; background: var(--card-solid);
  border: 1px solid var(--line); border-radius: 20px; padding: 24px;
  box-shadow: var(--shadow);
}
body.hk-sheet .container main { display: flex; gap: 22px; align-items: flex-start; }
body.hk-sheet .container form { width: 280px; flex: none; }
.main-header, .document-header, .header-section, .r-header {
  display: flex; justify-content: space-between; gap: 18px; align-items: flex-start;
  padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line);
}
.document-title h2, .r-title { margin: 0 0 8px; font-size: 28px; }
.company-logo, .r-logo img, .main-logo img { max-height: 52px; width: auto; }
.company-details, .r-details, .customer-info { color: var(--muted); font-size: 13px; }
.customer-box, .filter-card, .kasa-info {
  border: 1px solid var(--line); background: var(--card-2); border-radius: 14px; padding: 14px; margin: 14px 0;
}
.customer-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 800; }
.meta-table, .summary-table { border-collapse: collapse; width: 100%; }
.meta-table td, .summary-table td, .summary-table th { border-bottom: 1px solid var(--line); padding: 8px; }
.receipt { border-radius: 16px; padding: 18px; background: var(--card-2); }
.r-row, .r-total { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.r-total { border-bottom: 0; font-weight: 800; }
.preview { flex: 1; min-width: 0; }
.signature-container {
  position: relative;
  text-align: center;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}
.signature-line {
  border-top: 1px solid #111;
  width: 200px;
  max-width: 100%;
  padding-top: 6px;
  font-size: 11px;
  font-weight: 650;
  position: relative;
  z-index: 2;
}
.firma-yetkilisi-imza-alani { position: relative; min-height: 140px; }
.kase-imza, .kase-img, .kase-alan img {
  width: auto !important;
  height: auto !important;
  max-width: 150px !important;
  max-height: 90px !important;
  object-fit: contain;
}
.signature-container .kase-imza {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  opacity: .8;
  z-index: 1;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.firma-yetkilisi-imza-alani .kase-imza {
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 120px !important;
  opacity: .75;
  z-index: 1;
}
.kase-alan { height: 100px; display: flex; align-items: center; justify-content: center; }
.footer-note { margin-top: 28px; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 12px; text-align: center; }
.summary-section { display: flex; justify-content: flex-end; margin-top: 16px; }

@media (min-width: 993px) {
  .cari-nav .navbar-brand img,
  .sidebar .logo img, #sidebar .logo img {
    height: 30px !important;
    max-width: 180px !important;
  }
}
@media (max-width: 992px) {
  .mobile-header, .hk-mobilebar { display: flex; }
  .sidebar, #sidebar {
    inset: 0 auto 0 0; height: 100vh; width: min(86vw, 300px);
    border-radius: 0 22px 22px 0; transform: translateX(-110%); transition: transform .2s ease;
  }
  .sidebar.show, #sidebar.show { transform: none; }
  body:has(.sidebar) .main-content,
  body:has(#sidebar) #content { margin-left: 0; max-width: 100%; padding: 14px 12px 72px; }
  body:has(#sidebar) > .navbar.fixed-top { margin: 0; width: 100%; border-radius: 0; }
  body:has(.sidebar) .fixed-footer,
  body:has(#sidebar) .fixed-footer, .fixed-footer { left: 10px; right: 10px; }
  .hk-split, .hk-bill, body.hk-sheet .container main { display: block; }
  body.hk-sheet .container form, .preview { width: auto; }
  .hk-summary { position: static; }
  .hk-lines thead { display: none; }
  .hk-lines, .hk-lines tbody, .hk-lines tr, .hk-lines td { display: block; width: 100% !important; }
  .hk-lines tr {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: var(--card-solid);
  }
  .hk-lines td { border: 0 !important; padding: 6px 0; }
  .hk-lines td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
  }
  .top-header .btn, .hk-bill .btn { width: 100%; }
  .top-header, .card, .stat-card { border-radius: 14px !important; }
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .btn, .form-control, .form-select { min-height: 44px; }
  h3 { font-size: 1.35rem; }
}
@media print {
  .no-print, .sidebar, #sidebar, .fixed-footer, .mobile-header, .hk-theme, .hk-mobilebar, .hk-backdrop { display: none !important; }
  body, body.hk-sheet { background: #fff; padding: 0; }
  body.hk-sheet .main-content, body.hk-sheet .container, .receipt, .card { box-shadow: none; border: 0; }
  .main-content, #content { margin: 0 !important; }
}

.firm-asset {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card-2);
  overflow: hidden;
  min-width: 0;
}
.firm-asset span { min-width: 0; font-size: 12px; }
.logo-preview, .firm-asset .kase-img, .firm-asset img {
  position: static !important;
  transform: none !important;
  width: auto !important;
  height: auto !important;
  max-width: 150px !important;
  max-height: 52px !important;
  object-fit: contain;
  flex: none;
}

.saas-nav {
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
html[data-theme="dark"] .saas-nav { background: rgba(15,23,42,.94) !important; }
.saas-nav .navbar-brand { font-weight: 800; color: var(--ink) !important; letter-spacing: -.03em; }
.saas-nav .nav-link { color: var(--ink) !important; font-weight: 600; border-radius: 10px; }
.saas-nav .nav-link:hover { background: var(--accent-soft); }
.site-home .display-6 { font-size: clamp(1.75rem, 4.2vw, 2.55rem); }
.saas-shield {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); font-size: 18px;
}
.saas-code { letter-spacing: .45em; font-weight: 700; }
@media (max-width: 991.98px) {
  .saas-nav .navbar-collapse { padding-bottom: 8px; }
  .saas-nav .btn { min-height: 42px; }
}
.site-nav {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 20px; position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
html[data-theme="dark"] .site-nav { background: rgba(15,23,42,.92); }
.site-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 800; }
.site-brand img { height: 26px; width: auto; }
.site-nav nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.site-nav nav a { color: var(--ink); font-weight: 650; }
.site-hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 420px);
  gap: 28px; align-items: start;
  max-width: 1100px; margin: 0 auto; padding: 36px 18px 10px;
}
.site-hero h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; }
.site-section { max-width: 1100px; margin: 0 auto; padding: 18px 18px 8px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.feature-grid article {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 8px;
  min-width: 0;
}
.feature-grid h3 { font-size: 1rem; margin-bottom: 6px; }
.site-auth-links { display: flex; gap: 12px; justify-content: space-between; margin-top: 12px; font-size: 13px; }
.site-foot { text-align: center; color: var(--muted); font-size: 12px; padding: 22px 12px; }
body.site-home .login-form { width: 100%; margin: 0; }

body.tiger-doc { background: #d5e0ea; padding: 16px 12px 28px; }
body.tiger-doc .main-content {
  max-width: 940px !important;
  margin: 0 auto !important;
  background: #fff !important;
  color: #142033;
  border: 1px solid #b9c7d6 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 16px 18px 22px !important;
}
body.tiger-doc .company-logo {
  display: block;
  max-height: 46px !important;
  max-width: 140px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  margin-bottom: 6px;
}
body.tiger-doc .document-header {
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-end;
  border-bottom: 3px solid #0b3a66; padding-bottom: 8px; margin-bottom: 12px;
}
body.tiger-doc .company-name { color: #0b3a66; font-size: 15px; font-weight: 800; margin: 0 0 4px; }
body.tiger-doc .company-details, body.tiger-doc .customer-info { color: #334155; font-size: 11px; }
body.tiger-doc .document-title h2 {
  margin: 0; background: #0b3a66; color: #fff !important;
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  padding: 8px 12px; font-weight: 700;
}
body.tiger-doc .meta-table td { border: 0; padding: 2px 0 2px 8px; font-size: 11px; color: #142033; }
body.tiger-doc .customer-box, body.tiger-doc .customer-info-box {
  border: 1px solid #0b3a66; background: #f3f7fb; border-radius: 0; padding: 8px 10px; margin: 10px 0;
}
body.tiger-doc .customer-label, body.tiger-doc .customer-name { color: #0b3a66; }
body.tiger-doc .customer-name { font-weight: 800; font-size: 14px; }
body.tiger-doc .table { color: #142033; }
body.tiger-doc .table thead th {
  background: #0b3a66 !important; color: #fff !important;
  border-color: #0b3a66 !important; font-size: 10px; letter-spacing: .04em;
}
body.tiger-doc .table td { border-color: #d5dee8 !important; color: #142033; font-size: 11.5px; background: #fff; }
body.tiger-doc .summary-section { display: flex; justify-content: flex-end; }
body.tiger-doc .summary-table { width: 280px; border: 1px solid #0b3a66; }
body.tiger-doc .summary-table th, body.tiger-doc .summary-table td {
  border-bottom: 1px solid #d5dee8; padding: 6px 8px; font-size: 12px; color: #142033;
}
body.tiger-doc .summary-table th { background: #e7eef6; color: #0b3a66; text-align: left; width: 46%; }
body.tiger-doc .summary-table .total-row th, body.tiger-doc .summary-table .total-row td {
  background: #0b3a66; color: #fff; font-weight: 700;
}
body.tiger-doc .confirmation-section { border: 1px solid #0b3a66; margin-top: 16px; padding: 0 12px 12px; }
body.tiger-doc .confirmation-title { background: #0b3a66; color: #fff; margin: 0 -12px 12px; padding: 7px 12px; font-weight: 700; }
body.tiger-doc .checkbox-item { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; font-size: 12px; }
body.tiger-doc .checkbox-square { width: 13px; height: 13px; border: 1.5px solid #0b3a66; margin-top: 2px; flex: none; }
body.tiger-doc .dotted-line { border-bottom: 1px dotted #0b3a66; height: 20px; }
body.tiger-doc .signature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 14px; }
body.tiger-doc .signature-line { color: #142033; border-top-color: #142033; }
body.tiger-doc .letter-body { font-size: 12.5px; line-height: 1.55; color: #142033; }
@media (max-width: 900px) {
  .site-hero, .feature-grid, body.tiger-doc .signature-grid, body.tiger-doc .document-header { grid-template-columns: 1fr; display: block; }
  .site-nav nav .btn { width: auto; }
}
@media print {
  body.tiger-doc { background: #fff; padding: 0; }
  body.tiger-doc .main-content { border: 0 !important; max-width: none !important; }
}

body.cari-land {
  background: #e7f3ee;
  color: #16382f;
  padding-top: 76px;
  padding-bottom: 96px;
}
body.cari-land .cari-nav {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  background: #e7f3ee !important;
  border: 0 !important;
  border-bottom: 1px solid #d3e6de !important;
  box-shadow: none !important;
  backdrop-filter: none;
}
body.cari-land .cari-foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  background: rgba(231,243,238,.96);
  border-top: 1px solid #d3e6de;
  backdrop-filter: blur(10px);
  padding: 10px 12px 12px;
}
body.cari-land h1,
body.cari-land h2,
body.cari-land h3 { color: #16382f; overflow-wrap: normal; }
body.cari-land h1 {
  font-size: clamp(1.85rem, 4.4vw, 3.15rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.035em;
  margin: 0 0 14px;
}
body.cari-land a { color: #1a6b56; }
.cari-nav .nav-link { color: #1d4a3e !important; font-weight: 600; }
.cari-nav .nav-link:hover { color: #0f6b52; }
.cari-btn-ghost, .cari-btn-solid {
  border-radius: 999px; min-height: 40px; padding: 8px 18px; font-weight: 700;
}
.cari-btn-ghost { background: #fff; color: #1d4a3e; border: 1px solid #c5ddd3; }
.cari-btn-solid { background: #1a4d40; color: #fff !important; border: 0; text-decoration: none; }
.cari-btn-solid:hover { background: #12382f; color: #fff; }
.cari-hero { padding: 28px 12px 8px; }
.cari-pill {
  display: inline-flex; align-items: center; border-radius: 999px;
  padding: 6px 14px; font-size: 13px; font-weight: 700; background: #fff;
}
.cari-pill-orange { color: #c56a2d; border: 1.5px solid #e7a06a; }
.cari-pill-green { color: #1a6b56; border: 1.5px solid #7dbaa6; }
.cari-orange { color: #e07a3d; }
.cari-lead { max-width: 640px; color: #3d5c52; font-size: 1.05rem; }
.cari-stage { position: relative; height: 400px; max-width: 860px; margin: 36px auto 0; }
.cari-shot {
  position: absolute; margin: 0; border-radius: 22px; overflow: hidden;
  box-shadow: 0 18px 40px rgba(22,56,47,.16); background: #c9ddd4;
}
.cari-shot img { width: 100%; height: 100%; object-fit: cover; max-width: none; display: block; }
.cari-shot figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 12px; color: #fff;
  font-weight: 700; font-size: 13px; line-height: 1.25;
  text-shadow: 0 1px 8px rgba(0,0,0,.55);
}
.cari-shot.a { width: 28%; left: 0; top: 46px; height: 250px; transform: rotate(-6deg); }
.cari-shot.b { width: 46%; left: 27%; top: 0; height: 320px; transform: rotate(1deg); z-index: 2; }
.cari-shot.c { width: 26%; left: 74%; top: 52px; height: 220px; transform: rotate(5deg); }
.cari-step, .cari-feature, .cari-menu-item {
  background: #fff; border-radius: 18px; padding: 18px 16px;
  box-shadow: 0 8px 24px rgba(22,56,47,.06); height: 100%;
}
.cari-step strong {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; background: #e7f3ee; color: #1a6b56; margin-bottom: 8px;
}
.cari-step p, .cari-feature p { color: #4d675f; margin: 6px 0 0; }
.cari-section-lead { max-width: 640px; margin: 8px auto 22px; color: #3d5c52; }
.cari-ico {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 12px; background: #e7f3ee; color: #1a6b56; margin-bottom: 10px;
}
.cari-faq .accordion-item {
  border: 0; border-radius: 16px !important; overflow: hidden;
  margin-bottom: 10px; box-shadow: 0 8px 24px rgba(22,56,47,.06);
}
.cari-faq .accordion-button {
  background: #fff; color: #16382f; font-weight: 700; box-shadow: none;
  padding: 16px 18px;
}
.cari-faq .accordion-button:not(.collapsed) { background: #f4faf7; color: #1a4d40; }
.cari-faq .accordion-button:focus { box-shadow: none; }
.cari-faq .accordion-body { color: #3d5c52; padding: 0 18px 16px; }
.cari-cta {
  background: #1a4d40; color: #fff; border-radius: 28px;
  padding: 36px 20px; text-align: center;
}
.cari-cta h2 { color: #fff; margin-bottom: 8px; }
.cari-cta p { color: rgba(255,255,255,.86); max-width: 520px; margin: 0 auto 16px; }
.cari-btn-light {
  background: #fff; color: #1a4d40 !important; border: 0; border-radius: 999px;
  min-height: 42px; padding: 8px 18px; font-weight: 700; text-decoration: none;
}
.cari-pay {
  background: #fff; border-radius: 28px; padding: 28px 22px;
  box-shadow: 0 16px 40px rgba(22,56,47,.08);
}
.cari-pay h2 { margin-bottom: 10px; }
.cari-pay p { color: #3d5c52; }
.cari-points { margin: 12px 0 0; padding-left: 18px; color: #1d4a3e; }
.cari-points li { margin: 6px 0; }
.cari-phone {
  background: #e7f3ee; border-radius: 22px 22px 22px 8px;
  padding: 16px 16px 14px; color: #16382f; max-width: 380px; margin-left: auto;
}
.cari-phone-from { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #1a6b56; margin-bottom: 8px; }
.cari-phone-link {
  display: inline-block; margin-top: 12px; background: #1a4d40; color: #fff;
  border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700;
}
@media (max-width: 991px) {
  .cari-phone { margin-left: 0; }
}
.cari-eyebrow {
  display: inline-block; margin: 0 0 8px; color: #1a6b56;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.cari-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  list-style: none; padding: 22px 0 0; margin: 0;
}
.cari-chips li {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 999px; padding: 8px 14px;
  color: #1d4a3e; font-weight: 700; box-shadow: 0 8px 20px rgba(22,56,47,.06);
}
.cari-chips i { color: #1a6b56; }
.cari-day {
  background: #fff; border-radius: 18px; overflow: hidden; height: 100%;
  box-shadow: 0 8px 24px rgba(22,56,47,.06);
}
.cari-day img { width: 100%; height: 140px; object-fit: cover; display: block; }
.cari-day div { padding: 14px 14px 16px; }
.cari-day h3 { margin: 0 0 6px; font-size: 1.05rem; }
.cari-day p { color: #4d675f; margin: 0; }
.cari-split {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px; align-items: center;
  background: #fff; border-radius: 28px; overflow: hidden;
  box-shadow: 0 16px 40px rgba(22,56,47,.08);
}
.cari-split img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; display: block; }
.cari-split div { padding: 28px 26px; }
.cari-split p { color: #3d5c52; }
.cari-who { list-style: none; padding: 8px 0 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cari-who li { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #1d4a3e; }
.cari-who i {
  width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center;
  background: #e7f3ee; color: #1a6b56;
}
.cari-foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-bottom: 8px; }
.cari-foot-nav a { color: #1d4a3e; text-decoration: none; font-weight: 600; }
.reg-card {
  background: #fff; border-radius: 24px; padding: 22px 20px 18px;
  box-shadow: 0 16px 40px rgba(22,56,47,.08);
}
.reg-card label { font-weight: 600; color: #1d4a3e; margin-bottom: 6px; }
.reg-card .form-control, .reg-card .input-group-text { min-height: 46px; }
.reg-card .input-group-text { background: #f4faf7; color: #1a6b56; border-color: #d3e6de; }
.reg-card .password-toggle { cursor: pointer; }
.reg-visual { position: relative; }
.reg-visual img {
  width: 100%; height: 280px; object-fit: cover; border-radius: 24px; display: block;
}
.reg-points { list-style: none; padding: 14px 0 0; margin: 0; }
.reg-points li {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fff; border-radius: 16px; padding: 12px 14px; margin-top: 10px;
  box-shadow: 0 8px 20px rgba(22,56,47,.05); color: #3d5c52;
}
.reg-points i {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: inline-grid; place-items: center; background: #e7f3ee; color: #1a6b56;
}
.reg-points strong { display: block; color: #16382f; margin-bottom: 2px; }
.verify-code {
  letter-spacing: .45em; font-weight: 700; text-align: center; font-size: 1.35rem;
}
.cari-foot { text-align: center; color: #4d675f; font-size: 13px; padding: 18px 12px 28px; }
body.cari-land .modal-content { border: 0; border-radius: 18px; }
@media (max-width: 767px) {
  .cari-stage { height: auto; display: flex; flex-direction: column; gap: 12px; }
  .cari-shot, .cari-shot.a, .cari-shot.b, .cari-shot.c {
    position: relative; width: 100%; left: auto; right: auto; top: auto;
    height: 210px; transform: none;
  }
  .cari-split { grid-template-columns: 1fr; }
  .cari-split img { min-height: 200px; }
  .cari-who { grid-template-columns: 1fr; }
}
