*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Material Symbols Outlined ───────────────────────────────────────────── */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: normal;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  vertical-align: middle;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f1f5f9;
  color: #1e293b;
  height: 100vh;
  overflow: hidden;
}

/* ── Layout ──────────────────────────────────────────────────────────────── */
.app { display: flex; height: 100vh; }

.sidebar {
  width: 220px;
  min-width: 220px;
  flex-shrink: 0;
  background: #1e1b4b;
  display: flex;
  flex-direction: column;
  padding: 0 0 16px;
  overflow: hidden;
  transition: width 0.22s ease, min-width 0.22s ease;
}

/* ── Collapsed sidebar ─────────────────────────────────────────────────── */
.sidebar.collapsed { width: 58px; min-width: 58px; }

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px 16px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 8px;
  min-height: 62px;
  flex-shrink: 0;
}
.sidebar-logo-icon { flex-shrink: 0; opacity: 0.9; }
.sidebar-logo-text {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.sidebar-toggle {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.5);
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: color 0.15s, background 0.15s;
}
.sidebar-toggle:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* Collapsed logo: only the toggle button remains, centre it */
.sidebar.collapsed .sidebar-logo {
  justify-content: center;
  padding: 18px 0 16px;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  padding: 10px 20px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
  border-radius: 0;
  white-space: nowrap;
}
.nav-item:hover { background: rgba(255,255,255,0.07); color: #fff; }
.nav-item.active { background: rgba(99,102,241,0.35); color: #fff; }

/* Collapsed nav: centre the icon, hide text */
.sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 10px 0;
  gap: 0;
}

.nav-count {
  margin-left: auto;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
}

.main {
  flex: 1;
  overflow-y: auto;
  padding: 32px 36px;
}

/* ── Page layout helpers ─────────────────────────────────────────────────── */
.main-content { width: 100%; }

.page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.page-title {
  flex: 1;
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Buttons — secondary & small variants ───────────────────────────────── */
.btn-secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.btn-secondary:hover { background: #e2e8f0; color: #1e293b; }

.btn-sm {
  padding: 5px 10px;
  font-size: 13px;
  border-radius: 6px;
}

/* ── Data table (used in Users view) ────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; }

/* ── Section header ─────────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.section-title { font-size: 22px; font-weight: 700; flex: 1; }

.search-box {
  padding: 8px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  width: 220px;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
}
.search-box:focus { border-color: #6366f1; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: #6366f1; color: #fff; }
.btn-primary:hover { background: #4f46e5; }
.btn-danger  { background: #ef4444; color: #fff; }
.btn-danger:hover  { background: #dc2626; }
.btn-ghost  { background: transparent; color: #64748b; border: 1px solid #e2e8f0; }
.btn-ghost:hover { background: #f8fafc; }
.btn-icon { padding: 6px 8px; border-radius: 6px; font-size: 15px; }

/* ── Table ──────────────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  overflow: hidden;
}

table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}
td {
  padding: 13px 16px;
  font-size: 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafbff; }

.actions { display: flex; gap: 6px; }

/* ── Empty state ────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #94a3b8;
}
.empty-state .icon { font-size: 44px; margin-bottom: 12px; color: #cbd5e1; }
.empty-state p { font-size: 15px; }

/* ── Modal ──────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,15,30,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  animation: fadeIn 0.15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: #fff;
  border-radius: 14px;
  width: 500px;
  max-width: calc(100vw - 40px);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: slideUp 0.2s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

.modal-header {
  display: flex;
  align-items: center;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f1f5f9;
}
.modal-title { font-size: 17px; font-weight: 700; flex: 1; }
.modal-close {
  background: none; border: none; font-size: 20px;
  color: #94a3b8; cursor: pointer; line-height: 1;
  padding: 2px 6px; border-radius: 6px;
}
.modal-close:hover { background: #f1f5f9; color: #475569; }

.modal-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ── Global base style for all inputs (excl. checkbox / radio / file / color) */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]),
select, textarea {
  padding: 9px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  background: #fff;
  box-sizing: border-box;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]):focus,
select:focus, textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
/* Inputs/selects inside modal-body fill the available width */
.modal-body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]),
.modal-body select, .modal-body textarea {
  width: 100%;
}
/* Standalone labels inside modal-body match .field label styling */
.modal-body > label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

/* ── Form fields ────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 13px; font-weight: 600; color: #475569; }
.field textarea { resize: vertical; min-height: 80px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── Badges ─────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-call    { background: #dbeafe; color: #1d4ed8; }
.badge-email   { background: #dcfce7; color: #15803d; }
.badge-meeting { background: #fef3c7; color: #b45309; }
.badge-note    { background: #f3f4f6; color: #374151; }

/* ── Toast ──────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  z-index: 200;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  animation: slideUp 0.2s ease;
}
.toast-success { background: #10b981; }
.toast-error   { background: #ef4444; }

.loading {
  display: flex; align-items: center; justify-content: center;
  height: 200px; color: #94a3b8; font-size: 16px;
}

.truncate { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muted { color: #94a3b8; font-size: 13px; }

/* ── Clickable rows ──────────────────────────────────────────────────────── */
tr.row-clickable { cursor: pointer; }
tr.row-clickable:hover td { background: #eef2ff; }

/* ── Wide modal ─────────────────────────────────────────────────────────── */
.modal-wide { width: 760px; }

/* ── Sortable table headers ─────────────────────────────────────────────── */
.sortable-th {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.sortable-th:hover { background: #eef2ff; color: #4f46e5; }

/* ── Detail fields ──────────────────────────────────────────────────────── */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  background: #f8fafc;
  border-radius: 10px;
  padding: 16px 18px;
}
.detail-field { display: flex; flex-direction: column; gap: 3px; }
.detail-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}
.detail-value { font-size: 14px; color: #1e293b; }
.detail-value a { color: #6366f1; }

/* ── Memo section inside org detail modal ───────────────────────────────── */
.memo-section {
  margin-top: 14px;
  background: #f8fafc;
  border-radius: 10px;
  padding: 14px 18px 16px;
}
.memo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.memo-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}
.memo-textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: #1e293b;
  background: #fff;
  line-height: 1.5;
  transition: border-color 0.15s;
}
.memo-textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.memo-textarea::placeholder { color: #cbd5e1; }

/* ── Interactions section inside detail modal ───────────────────────────── */
.detail-interactions { padding: 4px 24px 4px; }
.detail-interactions-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.detail-section-title { font-size: 15px; font-weight: 700; flex: 1; }

/* ── Auth screens ────────────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
  padding: 24px;
}

.auth-logo-mark {
  font-size: 52px; /* controls Material Symbols icon size */
  margin-bottom: 8px;
  color: rgba(255,255,255,0.9);
  display: flex;
  justify-content: center;
}
.auth-brand {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 28px;
}

.auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
}
.auth-card-wide { max-width: 480px; }

.auth-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1e293b;
}

.auth-hint {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.5;
}

.auth-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.auth-submit {
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-size: 15px;
  margin-top: 8px;
}

.auth-back {
  display: block;
  text-align: center;
  margin-top: 14px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  cursor: pointer;
}
.auth-back:hover { color: #475569; }

/* ── QR code ────────────────────────────────────────────────────────────── */
.qr-wrap {
  display: flex;
  justify-content: center;
  margin: 16px 0;
  padding: 12px;
  background: #f8fafc;
  border-radius: 12px;
}
.qr-img { width: 180px; height: 180px; image-rendering: pixelated; }

.manual-key {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
  cursor: pointer;
}
.manual-key summary { user-select: none; }
.totp-secret {
  display: block;
  margin-top: 8px;
  padding: 8px 12px;
  background: #f1f5f9;
  border-radius: 6px;
  font-family: monospace;
  font-size: 13px;
  word-break: break-all;
  color: #1e293b;
}

/* ── TOTP input ──────────────────────────────────────────────────────────── */
.totp-input {
  width: 100%;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 12px;
  padding: 14px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s;
  font-family: monospace;
}
.totp-input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }

/* ── Sidebar footer (user + logout) ─────────────────────────────────────── */
.sidebar-footer {
  margin-top: auto;
  padding: 12px 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  overflow: hidden;
  white-space: nowrap;
}
.sidebar-user-text { overflow: hidden; text-overflow: ellipsis; }

.btn-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  padding: 7px 10px;
  border-radius: 7px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
  width: 100%;
}
.btn-logout:hover { background: rgba(239,68,68,0.2); color: #fca5a5; }

/* Collapsed footer: centre the logout icon */
.sidebar.collapsed .sidebar-footer { padding: 12px 0; align-items: center; }
.sidebar.collapsed .btn-logout { justify-content: center; width: auto; padding: 7px; }

/* ── Attachment badge ────────────────────────────────────────────────────── */
.attach-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #6366f1;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
  min-width: 16px;
  margin-left: 3px;
  vertical-align: middle;
  line-height: 1.4;
}

/* ── Attachment list (interaction detail modal) ───────────────────────────── */
.attachment-list { display: flex; flex-direction: column; gap: 8px; }

.attachment-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.attachment-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.attachment-meta {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.attachment-meta a { text-decoration: none; }
.attachment-meta a:hover { text-decoration: underline; }

/* ── Pivot Report ────────────────────────────────────────────────────────── */
/* Label used in the data-source selector bar */
.pivot-cfg-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

/* Card that wraps the PivotTableUI component */
.pvt-wrap {
  padding: 16px;
  overflow: auto;
}

/* ── PivotTableUI custom styles ────────────────────────────────────────── */
table.pvtTable * {
  font-size: 14px !important;
}
table.pvtTable .pvtVal {
  min-width: 30px;
  color: #393939;
}
.pvtUI * {
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
.pvtUi th, .pvtUi .pvtTotal   { font-weight: 500 !important; }
.pvtUi th, .pvtUi .pvtGrandTotal { font-weight: 500 !important; }
.pvtUi .pvtUiCell:nth-of-type(1) {
  border: 1px solid #ddd;
  background: #faf9f9;
}
.pvtUi .pvtSearch {
  height: 32px;
  top: 2px;
  position: relative;
  width: 180px !important;
  padding: 6px 12px;
  margin-right: 3px;
  font-size: 13px;
  line-height: 1.428571429;
  color: #555555;
  background-color: #fff;
  background-image: none;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
  transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}
.pvtUi .pvtSearch:focus {
  border-color: #66afe9;
  outline: 0;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,0.6);
}
.pvtUi .pvtFilterBox br { display: none; }
.pvtUi .pvtFilterBox button {
  display: inline-block;
  margin-bottom: 0;
  font-weight: normal;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  touch-action: manipulation;
  cursor: pointer;
  background-image: none;
  border: 1px solid transparent;
  padding: 6px 12px;
  font-size: 13px;
  line-height: 1.428571429;
  border-radius: 3px;
  user-select: none;
  margin-right: 3px;
}
.pvtUi .pvtFilterBox label > input[type="checkbox"] {
  position: absolute;
  opacity: 1;
  left: -52px;
}
input[type='checkbox']:checked {
  accent-color: rgba(14, 130, 115, 1);
  color: #fff;
}
.pvtUi .pvtFilterBox .pvtCheckContainer p {
  margin-left: 61px;
  position: relative;
  text-align: left;
}
.pvtUi .pvtFilterBox > p {
  text-align: center;
}
.pvtUi .pvtTable {
  color: #5b5b5b;
}
.pvtUi .pvtTable td {
  background-color: #fff;
  border: 1px solid #eee;
}
.pvtUi .pvtTable th {
  background-color: #f7f7f73d;
  border: 1px solid #eee;
}
.pvtUi select.pvtRenderer {
  width: 95%;
  margin: 5px;
}
.pvtUi select.pvtAggregator,
.pvtUi select.pvtAttrDropdown {
  width: 85%;
}
.pvtUi select {
  display: block;
  float: left;
  margin-right: 15px;
  height: 44px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.428571429;
  color: #393939;
  background-color: #fff;
  background-image: none;
  border: 1px solid rgba(230, 230, 230, 1);
  border-radius: 8px;
  box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
  transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}
.pvtUi select:focus {
  border-color: rgba(182, 232, 228, 1);
  outline: 0;
}
.pvtRowOrder, .pvtColOrder {
  font-size: 18px;
  font-weight: 700;
  top: 8px;
  position: relative;
  right: 16px;
}
.pvtUi td.pvtVals.pvtUiCell {
  min-width: 240px;
}
.pvtUi .pvtAxisContainer,
.pvtUi .pvtVals {
  border: 1px solid #ddd;
  background: #faf9f9;
}
.pvtUi .pvtVals.pvtUiCell {
  border: 1px solid #ddd;
  background: #faf9f9;
}
.pvtUi .pvtAxisContainer li {
  padding: 3px 6px;
}
.pvtUi .pvtAxisContainer li span.pvtAttr {
  background: #F9F9F9;
  border: 1px solid #CCCCCC;
  padding: 9px 14px 9px 14px;
  border-radius: 16px;
  display: inline-block;
  min-width: 220px;
  margin-bottom: 3px;
  box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
  font-size: 14px;
}
.pvtUi .pvtAxisContainer.pvtRows span.pvtAttr {
  width: 98%;
}
.pvtUi .pvtAxisContainer li.pvtFilteredAttribute span.pvtAttr {
  background: #E4F4F2;
  border: 1px solid rgba(182, 232, 228, 1);
  box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
  color: rgba(7, 126, 116, 1);
}
.pvtUi .pvtFilteredAttribute {
  font-style: inherit;
}
.pvtTriangle {
  cursor: pointer;
  color: #23659f;
  float: right;
}
.pvtUi .pvtAxisContainer .pvtFilteredAttribute .pvtTriangle::before {
  content: "\f0b0";
  font-family: FontAwesome;
  font-style: normal;
  font-weight: 400;
  margin-left: 5px;
}
.pvtUi .pvtUiCell {
  vertical-align: top;
}
.pvtUi .pvtFilterBox {
  z-index: 100;
  min-width: 500px;
  border: 1px solid #eee;
  border-radius: 6px;
  box-shadow: 1px 2px 7px 3px #aaa;
}
.pvtUi .pvtFilterBox .pvtCheckContainer {
  overflow-y: auto;
  width: auto;
}
.pvtUi table.pvtTable .pvtTotalLabel {
  text-align: left;
  font-weight: 700 !important;
}
.pvtUi table.pvtTable .pvtTotal,
.pvtUi table.pvtTable .pvtGrandTotal {
  font-weight: 700 !important;
}

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 36px;
}

.pg-info {
  font-size: 13px;
  color: #64748b;
  flex: 1;
  white-space: nowrap;
}

.pg-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pg-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.1s, border-color 0.1s, color 0.1s;
}
.pg-btn:hover:not(:disabled) { background: #f8fafc; border-color: #6366f1; color: #6366f1; }
.pg-btn.active { background: #6366f1; border-color: #6366f1; color: #fff; }
.pg-btn:disabled { opacity: 0.35; cursor: default; }

.pg-ellipsis {
  min-width: 24px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

.pg-size {
  padding: 5px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  color: #374151;
  cursor: pointer;
  outline: none;
  height: 32px;
}
