:root {
  --tpi-navy: #0b2f4a;
  --tpi-navy-dark: #071f33;
  --tpi-navy-light: #103866;
  --tpi-teal: #1ba4b8;
  --tpi-teal-soft: #e6f7fa;
  --tpi-blue: #3282b8;
  --tpi-bg: #f4f7fb;
  --tpi-card: #ffffff;
  --tpi-border: #e5edf5;
  --tpi-text: #1f2937;
  --tpi-muted: #6b7280;
  --tpi-success: #16a34a;
  --tpi-warning: #f59e0b;
  --tpi-yellow: #facc15;
  --tpi-yellow-soft: #fef08a;
  --tpi-danger: #dc2626;
  --tpi-shadow: 0 8px 24px rgba(15, 45, 74, 0.08);
  --tpi-radius: 10px;
}

/* ===== AUTH PAGES (DO NOT CHANGE POSITIONING) ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f8fbfd 0%, #eef4f8 100%);
  color: var(--tpi-text);
}

.auth-topbar,
.auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  flex-shrink: 0;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--tpi-navy);
  text-decoration: none;
}

.auth-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth-brand-name {
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
}

.auth-brand-tagline {
  font-size: 11px;
  font-weight: 600;
  color: var(--tpi-muted);
  line-height: 1.3;
  max-width: 280px;
}

.auth-brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--tpi-navy);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-help-link {
  color: var(--tpi-muted);
  font-weight: 600;
  text-decoration: none;
}

.auth-shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
}

.auth-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.auth-hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--tpi-teal-soft);
  color: var(--tpi-teal);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.auth-hero-title {
  font-size: 42px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--tpi-navy);
  margin-bottom: 18px;
}

.auth-hero-text {
  color: var(--tpi-muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 520px;
}

.auth-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--tpi-border);
}

.auth-hero-stats strong {
  display: block;
  font-size: 28px;
  color: var(--tpi-navy);
}

.auth-hero-stats span {
  color: var(--tpi-muted);
  font-size: 13px;
}

.auth-card {
  background: var(--tpi-card);
  border: 1px solid var(--tpi-border);
  border-radius: 16px;
  box-shadow: var(--tpi-shadow);
  padding: 32px;
}

.auth-card h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--tpi-navy);
  margin-bottom: 8px;
}

.auth-card .auth-subtitle {
  color: var(--tpi-muted);
  margin-bottom: 28px;
}

.auth-field {
  margin-bottom: 18px;
}

.auth-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: #374151;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

.auth-input-wrap input,
.auth-input-wrap select {
  width: 100%;
  padding: 12px 42px 12px 42px;
  border: 1px solid var(--tpi-border);
  border-radius: 10px;
  background: #fff;
}

.auth-input-wrap select {
  appearance: none;
  cursor: pointer;
}

.auth-input-wrap .auth-input-chevron {
  position: absolute;
  right: 14px;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #9ca3af;
}

.auth-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #9ca3af;
  padding: 4px;
  cursor: pointer;
  line-height: 1;
}

.auth-password-toggle:hover {
  color: var(--tpi-navy);
}

.auth-form-divider {
  border: none;
  border-top: 1px solid var(--tpi-border);
  margin: 24px 0 20px;
}

.auth-input-wrap input:focus,
.auth-input-wrap select:focus {
  outline: none;
  border-color: var(--tpi-blue);
  box-shadow: 0 0 0 3px rgba(50, 130, 184, 0.12);
}

.auth-row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.auth-link {
  color: var(--tpi-teal);
  font-weight: 700;
  text-decoration: none;
}

.auth-btn-primary {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 14px 18px;
  background: var(--tpi-navy);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.auth-btn-primary:hover {
  background: var(--tpi-navy-light);
}

.auth-footer {
  border-top: 1px solid var(--tpi-border);
  color: var(--tpi-muted);
  font-size: 13px;
}

.auth-footer-links {
  display: flex;
  gap: 18px;
}

.auth-footer-links a {
  color: var(--tpi-muted);
  text-decoration: none;
}

.auth-register-card {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--tpi-shadow);
  border: 1px solid var(--tpi-border);
}

.auth-register-visual {
  position: relative;
  min-height: 620px;
  background: url("../images/register.png") center/cover no-repeat;
}

.auth-register-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 31, 51, 0.15) 40%,
    rgba(7, 31, 51, 0.85) 100%
  );
}

.auth-register-visual-content {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 1;
  color: #fff;
}

.auth-register-visual-content h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 10px;
}

.auth-register-form {
  padding: 36px 32px;
}

.auth-label-upper {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #6b7280;
}

.auth-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.auth-subtitle {
  color: var(--tpi-muted);
  margin-bottom: 28px;
}

/* ===== APP OVERRIDES (works with Zoter style.css) ===== */

/* Stat cards grid */
.tpi-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.tpi-stat-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.tpi-stat-card {
  background: #fff;
  border: 1px solid var(--tpi-border);
  border-radius: var(--tpi-radius);
  box-shadow: var(--tpi-shadow);
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

a.tpi-stat-card-link {
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

a.tpi-stat-card-link:hover {
  box-shadow: 0 8px 24px rgba(11, 47, 74, 0.12);
  transform: translateY(-1px);
}

.dashboard-top-bakul-row:hover {
  background: #eef2f7 !important;
}

.dashboard-date-filter {
  margin: 0;
}

.dashboard-date-filter-label {
  position: relative;
  margin: 0;
  cursor: pointer;
  gap: 8px;
  display: inline-flex;
  align-items: center;
}

.dashboard-date-filter-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.dashboard-date-filter-text {
  font-weight: 700;
  pointer-events: none;
}

.tpi-stat-card.border-left-primary {
  border-left: 4px solid var(--tpi-blue);
}
.tpi-stat-card.border-left-success {
  border-left: 4px solid var(--tpi-success);
}
.tpi-stat-card.border-left-warning {
  border-left: 4px solid var(--tpi-warning);
}
.tpi-stat-card.border-left-yellow {
  border-left: 4px solid #facc15;
}
.tpi-stat-card.border-left-secondary {
  border-left: 4px solid #94a3b8;
}

.tpi-stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tpi-muted);
  font-weight: 700;
  margin-bottom: 8px;
}

.tpi-stat-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--tpi-navy);
  line-height: 1;
}

.tpi-stat-trend {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--tpi-success);
}

.tpi-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.tpi-stat-icon.blue {
  background: #e8f1fb;
  color: var(--tpi-blue);
}
.tpi-stat-icon.green {
  background: #e8f7ee;
  color: var(--tpi-success);
}
.tpi-stat-icon.orange {
  background: #fff4e5;
  color: var(--tpi-warning);
}
.tpi-stat-icon.yellow {
  background: #fef08a;
  color: #a16207;
}
.tpi-stat-icon.teal {
  background: var(--tpi-teal-soft);
  color: var(--tpi-teal);
}

/* Badges */
.tpi-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.tpi-badge-success {
  background: #e8f7ee;
  color: var(--tpi-success);
}
.tpi-badge-secondary {
  background: #eef2f7;
  color: #64748b;
}
.tpi-badge-warning {
  background: #fff4e5;
  color: #b45309;
}

.tpi-badge-primary {
  background: #e8f0fa;
  color: var(--tpi-blue);
}

.tpi-badge-info {
  background: var(--tpi-teal-soft);
  color: var(--tpi-teal);
}

.tpi-badge-sm {
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

/* Action buttons */
.tpi-action-group {
  display: inline-flex;
  gap: 8px;
}

.tpi-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  text-decoration: none;
}

.tpi-action-btn.view {
  background: #eef2f7;
  color: #475569;
}
.tpi-action-btn.edit {
  background: #fff4e5;
  color: #b45309;
}
.tpi-action-btn.delete {
  background: #fee2e2;
  color: var(--tpi-danger);
}

/* Avatar */
.tpi-avatar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tpi-avatar-circle {
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tpi-avatar-circle.sm {
  width: 36px;
  height: 36px;
  font-size: 13px;
}
.tpi-avatar-circle.md {
  width: 44px;
  height: 44px;
  font-size: 15px;
}
.tpi-avatar-circle.lg {
  width: 64px;
  height: 64px;
  font-size: 20px;
}

.tpi-avatar-text {
  min-width: 0;
}

.tpi-avatar-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.tpi-avatar-name {
  font-weight: 700;
  color: var(--tpi-text);
}

.tpi-avatar-subtitle {
  font-size: 12px;
  color: var(--tpi-muted);
}

/* Nelayan profile card (detail page) */
.tpi-nelayan-profile-card {
  padding: 24px;
  text-align: center;
}

.tpi-nelayan-profile-photo {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.tpi-nelayan-profile-photo img,
.tpi-nelayan-profile-photo-placeholder {
  width: min(200px, 100%);
  max-width: 200px;
  max-height: 260px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.tpi-nelayan-profile-photo-placeholder {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tpi-nelayan-profile-verified {
  margin-bottom: 16px;
  color: var(--tpi-navy);
  font-size: 22px;
  line-height: 1;
}

.tpi-nelayan-profile-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--tpi-text);
  line-height: 1.3;
  margin-bottom: 6px;
}

.tpi-nelayan-profile-kapal {
  font-size: 14px;
  color: var(--tpi-muted);
  margin-bottom: 20px;
}

.tpi-nelayan-profile-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
  color: var(--tpi-navy);
  font-size: 20px;
}

.tpi-nelayan-profile-divider {
  margin: 0 0 20px;
  border-color: var(--tpi-border);
}

.tpi-nelayan-profile-details {
  text-align: left;
}

.tpi-nelayan-profile-details .font-weight-bold {
  color: var(--tpi-navy);
  font-size: 15px;
}

/* Page header */
.tpi-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.tpi-page-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: #343a40;
  margin: 0 0 6px;
}

.tpi-page-header p {
  margin: 0;
  color: var(--tpi-muted);
}

.tpi-breadcrumb {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--tpi-muted);
}

.tpi-breadcrumb a {
  color: var(--tpi-blue);
  text-decoration: none;
}

/* Custom buttons (matching Zoter's style) */
.btn,
button {
  border-radius: 10px;
}

.tpi-card-body .form-control,
.tpi-card-body textarea.form-control,
.modal-body .form-control,
.tpi-attached-field .form-control {
  border-radius: var(--tpi-radius);
}

.tpi-attached-field {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.tpi-attached-field .form-control {
  min-width: 0;
  flex: 1 1 auto;
}

.tpi-attached-field .tpi-btn {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.tpi-rfid-field__display,
.tpi-attached-field__display {
  min-width: 0;
  background-color: #f8fafc;
  border-color: #cdd9e8;
  color: var(--tpi-text);
  cursor: default;
}

.tpi-rfid-field__display::placeholder,
.tpi-attached-field__display::placeholder {
  color: var(--tpi-muted);
  font-style: italic;
  font-weight: 400;
}

.tpi-rfid-field__display[readonly],
.tpi-attached-field__display[readonly] {
  background-color: #f8fafc;
}

.tpi-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px !important;
  padding: 10px 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.tpi-btn-primary {
  background: #4ac7ec;
  color: #fff;
}

.tpi-btn-primary:hover {
  background: #38b5da;
  color: #fff;
  text-decoration: none;
}

.tpi-btn-light {
  background: #fff;
  color: #343a40;
  border: 1px solid #dee2e6;
}

.tpi-btn-light:hover {
  background: #f8f9fa;
  text-decoration: none;
  color: #343a40;
}

/* Alerts */
.tpi-alert {
  padding: 14px 16px;
  border-radius: 4px;
  margin-bottom: 18px;
  font-weight: 600;
}

.tpi-alert-success {
  background: #e8f7ee;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.tpi-alert-danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.tpi-required-marker {
  color: var(--tpi-danger);
}

.tpi-image-picker {
  position: relative;
  width: 100%;
  max-width: 260px;
  min-height: 180px;
  border: 2px dashed #cdd9e8;
  border-radius: 10px;
  background: #f8fafc;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tpi-image-picker:hover {
  border-color: var(--tpi-blue);
  box-shadow: 0 0 0 3px rgba(50, 130, 184, 0.12);
}

.tpi-image-picker input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.tpi-image-picker-preview {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
}

.tpi-image-picker-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  color: var(--tpi-muted);
  font-weight: 600;
  text-align: center;
  padding: 20px;
}

.tpi-image-picker-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  background: rgba(7, 31, 51, 0.5);
  transition: opacity 0.2s ease;
}

.tpi-image-picker.has-image:hover .tpi-image-picker-overlay {
  opacity: 1;
  pointer-events: auto;
}

.tpi-image-picker-delete {
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  background: var(--tpi-danger);
  color: #fff;
  cursor: pointer;
}

.tpi-switch-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tpi-switch-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.tpi-switch-track {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.tpi-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.tpi-switch-input:checked + .tpi-switch-track {
  background: var(--tpi-blue);
}

.tpi-switch-input:checked + .tpi-switch-track::after {
  transform: translateX(20px);
}

.tpi-switch-label {
  font-weight: 600;
  color: var(--tpi-text);
}

/* Sidebar layout: header + scrollable menu + fixed footer */
body.fixed-left .left.side-menu {
  top: 0;
  bottom: 0;
  height: 100vh;
  margin-bottom: 0;
  padding-bottom: 0;
}

.left.side-menu {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.left .topbar-left.sitpi-sidebar-header {
  background-color: #fff;
  height: auto;
  flex-shrink: 0;
  padding: 20px 16px;
}

.sitpi-sidebar-brand {
  justify-content: flex-start;
  text-align: left;
}

.sitpi-sidebar-brand .auth-brand-tagline {
  text-transform: none;
  letter-spacing: normal;
  font-size: 11px;
  max-width: none;
}

.left.side-menu .sidebar-inner {
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;
  overflow-x: hidden;
  overflow-y: auto;
}

.left.side-menu #sidebar-menu {
  padding-bottom: 0;
}

.sidebar-user-panel {
  position: relative;
  flex-shrink: 0;
  padding: 16px;
  border-top: 1px solid var(--tpi-border);
  background: #fff;
  z-index: 2;
}

.sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.sidebar-user-name {
  font-weight: 700;
  color: var(--tpi-navy);
  font-size: 14px;
}

.sidebar-user-role {
  font-size: 12px;
  color: var(--tpi-muted);
}

.sidebar-user-panel .tpi-avatar-circle.sm {
  width: 36px;
  height: 36px;
  font-size: 13px;
  flex-shrink: 0;
}

.content-page > .content {
  padding: 20px 15px 15px;
  margin-bottom: 63px;
}

/* Card overrides for tpi-card (mapped to Zoter card) */
.tpi-card {
  background: #fff;
  border: 1px solid #e3ebf6;
  border-radius: var(--tpi-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  margin-bottom: 20px;
  overflow: hidden;
}

.tpi-card-body {
  padding: 20px;
}

.tpi-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.tpi-card-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #343a40;
}

.tpi-card-header--with-filter {
  flex-wrap: wrap;
  gap: 12px;
}

.tpi-koperasi-ledger-filter {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin: 0;
}

.tpi-koperasi-ledger-filter .form-control {
  width: 132px;
  min-width: 132px;
  max-width: 132px;
  flex: 0 0 auto;
  padding: 6px 8px;
  font-size: 13px;
  height: auto;
}

.tpi-koperasi-ledger-filter .tpi-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 13px;
  white-space: nowrap;
}

@media (max-width: 576px) {
  .tpi-card-header--with-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .tpi-koperasi-ledger-filter {
    flex-wrap: wrap;
    width: 100%;
  }

  .tpi-koperasi-ledger-filter .form-control {
    width: calc(50% - 4px);
    min-width: 0;
    max-width: none;
    flex: 1 1 calc(50% - 4px);
  }
}

/* Table styling compatible with Zoter */
.tpi-table thead th {
  border-top: none;
  border-bottom: 2px solid #e3ebf6;
  color: var(--tpi-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.tpi-table tbody td {
  vertical-align: middle;
}

/* ===== Koperasi Keuangan ===== */
.tpi-koperasi-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tpi-koperasi-filter-tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--tpi-border);
  background: #fff;
  color: var(--tpi-muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
  font-family: inherit;
}

.tpi-koperasi-filter-tab:hover {
  color: var(--tpi-navy);
  border-color: var(--tpi-blue);
  text-decoration: none;
}

.tpi-koperasi-filter-tab.is-active {
  background: var(--tpi-navy);
  border-color: var(--tpi-navy);
  color: #fff;
}

.tpi-koperasi-kode {
  font-size: 13px;
  font-weight: 700;
  color: var(--tpi-blue);
  white-space: nowrap;
}

.tpi-koperasi-type-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tpi-koperasi-saldo-total {
  font-size: 15px;
  font-weight: 800;
  color: var(--tpi-navy);
  white-space: nowrap;
}

.tpi-koperasi-saldo-detail {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--tpi-muted);
  white-space: nowrap;
}

.tpi-koperasi-ledger-wrap {
  overflow-x: auto;
  border: 1px solid var(--tpi-border);
  border-radius: var(--tpi-radius);
}

.tpi-koperasi-ledger {
  min-width: 720px;
  font-size: 12px;
  margin-bottom: 0;
}

.tpi-koperasi-ledger thead th {
  background: #f8f9fc;
  white-space: nowrap;
  vertical-align: middle;
}

.tpi-koperasi-ledger-meta th {
  border-bottom: 1px solid var(--tpi-border);
}

.tpi-koperasi-ledger-subhead th {
  font-size: 10px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.tpi-koperasi-col-date {
  min-width: 72px;
}

.tpi-koperasi-col-uraian {
  min-width: 140px;
}

.tpi-koperasi-ledger-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--tpi-blue);
  text-decoration: none;
}

.tpi-koperasi-ledger-link:hover {
  color: var(--tpi-navy);
  text-decoration: underline;
}

.tpi-koperasi-ledger-link .mdi {
  font-size: 14px;
  opacity: 0.85;
}

.tpi-koperasi-saldo-col {
  background: rgba(50, 130, 184, 0.06);
}

.tpi-koperasi-ledger tbody td {
  white-space: nowrap;
}

.tpi-koperasi-ledger-footer td {
  background: #f0f6fb;
  border-top: 2px solid var(--tpi-border);
}

.tpi-koperasi-summary-item {
  padding: 12px 14px;
  border: 1px solid var(--tpi-border);
  border-radius: var(--tpi-radius);
  background: #fafbfd;
}

.tpi-koperasi-summary-value {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 800;
  color: var(--tpi-navy);
}

/* Responsive auth */
@media (max-width: 992px) {
  .auth-split,
  .auth-register-card,
  .tpi-stat-grid,
  .tpi-stat-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ===== FORM VALIDATION ===== */
.form-control.is-invalid,
.custom-select.is-invalid,
select.form-control.is-invalid {
  border-color: var(--tpi-danger) !important;
  background-image: none;
}

.form-control.is-invalid:focus,
.custom-select.is-invalid:focus,
select.form-control.is-invalid:focus {
  border-color: var(--tpi-danger) !important;
  box-shadow: 0 0 0 0.15rem rgba(220, 38, 38, 0.15) !important;
}

.invalid-feedback {
  color: var(--tpi-danger);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-top: 0.35rem;
}

.tpi-form-errors {
  border-left: 4px solid var(--tpi-danger);
}
