/* ============================================================
   Davion Helpdesk — style.css
   Baseado no mockup aprovado
   ============================================================ */

:root {
  --bg:           #f5f7fb;
  --surface:      #ffffff;
  --surface-soft: #eef4f6;
  --ink:          #17202a;
  --muted:        #6a7787;
  --line:         #dbe3ea;
  --primary:      #197c7b;
  --primary-dark: #105b59;
  --blue:         #3b6ea8;
  --amber:        #d98a1e;
  --green:        #2f8f64;
  --coral:        #d85c4a;
  --danger:       #bd3d44;
  --shadow:       0 18px 45px rgba(25, 46, 67, .10);
  --radius:       8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .96rem;
}

a { color: inherit; text-decoration: none; }

button, input, textarea, select { font: inherit; }

/* ── Container ────────────────────────────────────────────── */
.app-container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

/* ── Brand ────────────────────────────────────────────────── */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
  min-height: 44px;
}

.brand-logo {
  display: block;
  width: clamp(138px, 18vw, 184px);
  max-height: 46px;
  object-fit: contain;
}

.office-brand .brand-logo {
  width: min(176px, 100%);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  font-weight: 700;
  min-height: 40px;
}

.btn svg, .icon-btn svg { width: 17px; height: 17px; stroke-width: 2.2; }

.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-dark);
  --bs-btn-hover-border-color: var(--primary-dark);
  --bs-btn-active-bg: var(--primary-dark);
  --bs-btn-active-border-color: var(--primary-dark);
}

.btn-light {
  --bs-btn-bg: #f2f6f8;
  --bs-btn-border-color: #f2f6f8;
  --bs-btn-hover-bg: #e6eef2;
  --bs-btn-hover-border-color: #e6eef2;
  color: var(--ink);
}

.btn-outline-danger {
  --bs-btn-color: var(--danger);
  --bs-btn-border-color: #e8c5c8;
  --bs-btn-hover-bg: var(--danger);
  --bs-btn-hover-border-color: var(--danger);
  --bs-btn-hover-color: #fff;
}

.icon-btn {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

/* ── Cards ────────────────────────────────────────────────── */
.mock-card, .metric-card, .support-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
}

/* ── Eyebrow label ────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--primary-dark);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ── Form elements ────────────────────────────────────────── */
.form-label { color: #354353; font-weight: 700; margin-bottom: 5px; }

.form-control, .form-select {
  border-color: var(--line);
  border-radius: var(--radius);
  min-height: 44px;
}

.form-control:focus, .form-select:focus {
  border-color: rgba(25,124,123,.62);
  box-shadow: 0 0 0 .22rem rgba(25,124,123,.12);
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

/* ── Status pills ─────────────────────────────────────────── */
.status-pill, .soft-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  white-space: nowrap;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  padding: 4px 10px;
}

.soft-badge           { color: var(--primary-dark); background: #e6f3f2; }
.status-pill.open,
.status-pill.status-open {
  color: #225f95;
  background: #e3f0ff;
}
.status-pill.progress,
.status-pill.status-progress {
  color: #8a570d;
  background: #fff2d6;
}
.status-pill.closed,
.status-pill.status-closed {
  color: #28734f;
  background: #def4e9;
}

/* ── Alert overrides ──────────────────────────────────────── */
.alert { border-radius: var(--radius); font-weight: 500; }

/* ── Upload zone ──────────────────────────────────────────── */
.upload-zone {
  display: grid;
  place-items: center;
  min-height: 110px;
  border: 1.5px dashed rgba(25,124,123,.46);
  border-radius: var(--radius);
  color: var(--primary-dark);
  background: #f2f9f8;
  cursor: pointer;
  text-align: center;
  padding: 18px;
  gap: 6px;
  transition: border-color .15s, background .15s;
}
.upload-zone.drag-over {
  border-color: var(--primary);
  background: #e6f4f3;
}
.upload-zone.has-file {
  border-color: var(--primary);
  background: #e6f4f3;
  color: var(--primary-dark);
}
.upload-zone svg { width: 24px; height: 24px; stroke-width: 1.8; }
.upload-zone span { font-weight: 800; }
.upload-zone small { color: var(--muted); font-weight: 600; }

/* ── Thread ───────────────────────────────────────────────── */
.thread-list { display: grid; gap: 16px; margin-bottom: 24px; }

.thread-item { display: flex; gap: 12px; }
.thread-item.staff { flex-direction: row-reverse; }

.avatar {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--coral);
  font-weight: 800;
  font-size: .84rem;
}

.avatar.staff-avatar { background: var(--primary); }

.thread-bubble {
  width: min(680px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfc;
  padding: 14px 16px;
}

.thread-item.staff .thread-bubble { background: #edf6f5; }

.thread-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .86rem;
}

.thread-meta strong { color: var(--ink); }

.thread-bubble p, .timeline article p { margin: 0; color: #3e4b5a; }

/* ── Timeline ─────────────────────────────────────────────── */
.timeline { display: grid; gap: 14px; }

.timeline article {
  display: grid;
  grid-template-columns: 14px minmax(0,1fr);
  gap: 12px;
}

.timeline article > span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 4px;
}

.timeline strong, .timeline small { display: block; }
.timeline small { color: var(--muted); margin-block: 2px 5px; }

/* ── Ticket data DL ───────────────────────────────────────── */
.ticket-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.ticket-data div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfc;
  padding: 12px;
}

.ticket-data dt { color: var(--muted); font-size: .78rem; font-weight: 800; margin-bottom: 3px; }
.ticket-data dd { margin: 0; font-weight: 400; }
.ticket-data .ticket-status { font-size: inherit; line-height: inherit; }
.ticket-data .ticket-status-open { color: #225f95; }
.ticket-data .ticket-status-progress { color: #c0392b; }
.ticket-data .ticket-status-closed { color: #28734f; }

/* ── Attachments ──────────────────────────────────────────── */
.attach-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.attach-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfc;
  padding: 8px 12px;
  font-size: .88rem;
  color: var(--primary-dark);
  font-weight: 700;
}

.attach-item svg { width: 16px; height: 16px; flex: 0 0 auto; }

/* ────────────────────────────────────────────────────────────
   FRONTOFFICE
   ──────────────────────────────────────────────────────────── */
.front-shell {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(25,124,123,.12), transparent 38%),
    linear-gradient(315deg, rgba(216,92,74,.10), transparent 36%),
    var(--bg);
}

/* Topbar */
.public-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(219,227,234,.82);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
}

.public-topbar .navbar { min-height: 76px; }

.public-topbar .nav-link {
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  padding: 9px 12px;
}

.public-topbar .nav-link.active,
.public-topbar .nav-link:hover { color: var(--ink); background: #eef5f5; }

/* Main */
.front-main { padding-block: 48px 72px; }

.front-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.front-intro h1 { margin: 4px 0 0; font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }

.front-intro .status-pill { font-size: 1rem; padding: 6px 18px; min-height: unset; }
.front-intro .status-pill.progress,
.front-intro .status-pill.status-progress {
  background: #fde8e8;
  color: #c0392b;
}

.ticket-search-mini {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  min-width: 210px;
}

.mini-label { color: var(--muted); font-size: .8rem; font-weight: 700; }

/* Grid */
.front-grid {
  display: grid;
  grid-template-columns: 360px minmax(0,1fr);
  gap: 24px;
  align-items: start;
}

/* Support panel */
.support-panel { padding: 20px; }

.support-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.support-status strong, .support-status span { display: block; }
.support-status span:not(.status-dot) { color: var(--muted); font-size: .9rem; }

.status-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(47,143,100,.14);
  flex: 0 0 auto;
}

.quick-actions { display: grid; gap: 8px; margin-block: 16px; }

.quick-action {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: #3f4d5d;
  font-weight: 800;
  text-align: left;
  padding: 8px 12px;
  cursor: pointer;
}

.quick-action svg { width: 18px; height: 18px; flex: 0 0 auto; }

.quick-action.active,
.quick-action:hover { border-color: rgba(25,124,123,.18); color: var(--primary-dark); background: #edf6f5; }

.contact-strip { display: grid; gap: 9px; color: var(--muted); font-size: .9rem; }
.contact-strip span { display: flex; align-items: center; gap: 8px; }
.contact-strip svg { width: 16px; height: 16px; }

/* View panels */
.view-panel { display: none; min-height: 540px; padding: 28px; }
.view-panel.active { display: block; }

.panel-heading, .ticket-header-row, .detail-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.panel-heading h2, .ticket-header-row h2 { margin: 4px 0 0; font-size: 1.4rem; font-weight: 800; }

.ticket-form { display: grid; gap: 20px; }

/* ────────────────────────────────────────────────────────────
   BACKOFFICE
   ──────────────────────────────────────────────────────────── */
.office-shell { min-height: 100vh; background: var(--bg); display: flex; }

/* Sidebar */
.office-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: 256px;
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 22px 16px;
  overflow-y: auto;
}

.office-brand { margin-bottom: 26px; padding: 0 4px; }

.office-nav { display: grid; gap: 4px; }

.office-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border-radius: var(--radius);
  color: #4a5666;
  font-weight: 700;
  padding: 9px 12px;
  font-size: .94rem;
}

.office-nav a svg { width: 18px; height: 18px; flex: 0 0 auto; }
.office-nav a.active, .office-nav a:hover { color: var(--primary-dark); background: #edf6f5; }

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.sidebar-user strong, .sidebar-user span { display: block; }
.sidebar-user span { color: var(--muted); font-size: .86rem; }

/* Main area */
.office-main { margin-left: 256px; padding: 28px 28px 60px; flex: 1; min-width: 0; }

/* Topbar */
.office-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.office-topbar h1 { margin: 4px 0 0; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }

.topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Metric grid */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 100px;
  padding: 18px;
}

.metric-card > div > span { color: var(--muted); font-weight: 700; font-size: .9rem; }

.metric-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 800;
}

.metric-icon {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
}

.metric-icon svg { width: 20px; height: 20px; }
.metric-icon.blue   { background: var(--blue); }
.metric-icon.amber  { background: var(--amber); }
.metric-icon.green  { background: var(--green); }
.metric-icon.coral  { background: var(--coral); }
.metric-icon.purple { background: #7b4faf; }

/* Office layout (2 cols) */
.office-layout {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(340px,.6fr);
  gap: 20px;
  align-items: start;
}

/* Panels */
.office-panel { padding: 22px; }

.list-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.list-heading h2 { margin: 4px 0 0; font-size: 1.3rem; font-weight: 800; }

/* Filters row */
.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.filters-row .form-select, .filters-row .form-control { min-width: 0; flex: 1 1 150px; }

.search-control {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding-inline: 12px;
  flex: 2 1 220px;
}

.search-control svg { color: var(--muted); width: 17px; height: 17px; flex: 0 0 auto; }
.search-control input { width: 100%; border: 0; outline: 0; background: transparent; }

/* Ticket list */
.ticket-list { display: grid; gap: 10px; }

.ticket-row {
  display: grid;
  grid-template-columns: 5px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-align: left;
  padding: 10px 14px;
  cursor: pointer;
}

.ticket-row:hover, .ticket-row.active {
  border-color: rgba(25,124,123,.34);
  background: #f3fafa;
}

.ticket-row strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-row small  { display: block; color: var(--muted); font-weight: 600; margin-top: 2px; }

.ticket-priority { width: 5px; border-radius: 999px; height: 42px; }
.ticket-priority.high   { background: var(--coral); }
.ticket-priority.medium { background: var(--amber); }
.ticket-priority.low    { background: var(--blue); }
.ticket-priority.done   { background: var(--green); }

/* Priority & SLA pills */
.priority-pill,
.sla-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}
.priority-low      { background: #e8f5e9; color: #2e7d32; }
.priority-medium   { background: #fff8e1; color: #f57f17; }
.priority-high     { background: #fff3e0; color: #e65100; }
.priority-critical { background: #fce4ec; color: #c62828; }
.sla-ok            { background: #e3f0ff; color: #1565c0; }
.sla-warning       { background: #fff8e1; color: #f57f17; }
.sla-breach        { background: #fce4ec; color: #c62828; }
.sla-met           { background: #e8f5e9; color: #2e7d32; }
.sla-breached      { background: #fce4ec; color: #c62828; }
.sla-none          { color: #6a7787; font-size: .78rem; }

/* Detail panel */
.detail-panel { padding: 22px; }

.detail-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.detail-top h2 { margin: 4px 0 0; font-size: 1.15rem; font-weight: 800; }

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

/* Tables */
.hd-table { width: 100%; border-collapse: collapse; }
.hd-table th { background: #f5f7fb; font-weight: 700; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; border-bottom: 2px solid var(--line); text-align: left; }
.hd-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.hd-table tr:last-child td { border-bottom: 0; }
.hd-table tr:hover td { background: #f8fbfc; }
.hd-table .actions { display: flex; gap: 8px; }

/* Pagination */
.pagination .page-link { border-radius: var(--radius) !important; font-weight: 700; color: var(--primary); border-color: var(--line); }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

/* Statistics */
.stats-chart-wrap { position: relative; height: 320px; }
.filters-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filters-row > div { flex: 1 1 160px; }

/* Portal type selector */
.portal-type-card { flex: 1; border: 2px solid var(--line); border-radius: var(--radius);
  padding: 16px; transition: border-color 150ms, background 150ms; }
.portal-type-card:hover { border-color: var(--primary); }
.portal-type-card.selected,
.portal-type-card:has(input:checked) { border-color: var(--primary); background: rgba(25,124,123,.06); }
.portal-type-card input[type=radio] { accent-color: var(--primary); margin-top: 3px; flex-shrink: 0; }

/* ── Frontoffice extra ───────────────────────────────────── */
.front-intro { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 12px; margin-bottom: 24px; }
.front-intro h1 { font-size: 1.6rem; font-weight: 800; margin: 0; }

.search-hint { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem;
  margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }

.ticket-thread { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.thread-msg { padding: 20px 24px; border-bottom: 1px solid var(--line); }
.thread-msg.staff { background: #f0f8f8; }
.thread-msg.client { background: #fff; }
.thread-msg.original { background: #f5f7fb; }
.thread-msg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.thread-msg-body { font-size: .95rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.thread-msg-atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.att-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  background: #eef4f6; border-radius: 20px; font-size: .82rem; color: var(--ink);
  text-decoration: none; border: 1px solid var(--line); transition: background 120ms; }
.att-chip:hover { background: #dde8ee; }

.reply-form-wrap { padding: 20px 24px; background: #fbfcfe; border-top: 2px solid var(--line); }
.reply-form-wrap h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.upload-zone-inline { display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 7px 14px; border: 1.5px dashed var(--line); border-radius: var(--radius);
  font-size: .88rem; color: var(--muted); transition: border-color 120ms; }
.upload-zone-inline:hover { border-color: var(--primary); color: var(--primary); }

.closed-banner { display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 24px; background: #eef9f2; color: var(--green);
  font-weight: 600; font-size: .95rem; border-top: 1px solid var(--line); }

.bg-primary-soft { background: rgba(25,124,123,.12); }
.text-primary { color: var(--primary) !important; }
.btn-outline-coral { border-color: var(--coral); color: var(--coral); }
.btn-outline-coral:hover { background: var(--coral); color: #fff; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .office-layout { grid-template-columns: 1fr; }
}

@media (max-width: 991.98px) {
  .front-grid { grid-template-columns: 1fr; }
  .view-panel { min-height: auto; }
  .office-sidebar { transform: translateX(-100%); transition: transform 180ms ease; }
  .office-sidebar.open { transform: translateX(0); }
  .office-main { margin-left: 0; }
  .office-copyright { left: 0; }
}

@media (max-width: 760px) {
  .app-container { width: calc(100% - 20px); }
  .front-main, .office-main { padding: 18px 10px 24px; }
  .front-intro, .office-topbar, .panel-heading, .ticket-header-row, .detail-top { flex-direction: column; align-items: stretch; }
  .view-panel, .office-panel, .detail-panel, .support-panel { padding: 16px; }
  .metric-grid, .ticket-data { grid-template-columns: 1fr; }
  .ticket-row { grid-template-columns: 5px minmax(0,1fr); }
  .ticket-row .status-pill { grid-column: 2; justify-self: start; margin-top: 4px; }
  .topbar-actions, .form-footer, .action-row { flex-direction: column; align-items: stretch; }
  .topbar-actions .btn, .form-footer .btn, .action-row .btn { width: 100%; }
}

/* ── Copyright footers ───────────────────────────────────── */
.front-copyright,
.office-copyright {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 90;
  text-align: center;
  font-size: .78rem;
  color: #8a95a3;
  padding: 10px 24px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.office-copyright { left: 256px; }
.front-copyright a,
.office-copyright a {
  color: #8a95a3;
  text-decoration: underline;
}
.front-copyright a:hover,
.office-copyright a:hover { color: var(--primary); }

@media (max-width: 991.98px) {
  .front-copyright,
  .office-copyright {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 32px;
  }
}

/* ── DataTables overrides ────────────────────────────────── */
.dataTables_wrapper .pagination .page-item.active .page-link {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
