/* ============================================================
   Pradhan Sevak — brand theme overrides (loaded after theme/css/app.css)

   Brand palette (from the logo):
     --ps-navy   #2c3f66   primary (buttons, links, step badges)
     --ps-green  #03916e   secondary / accent
     Sidebar rail: blue → teal gradient (--ps-grad-from / --ps-grad-to)
   ============================================================ */

:root {
  --ps-navy: #2c3f66;
  --ps-navy-hover: #344a78;   /* sidebar link hover */
  --ps-navy-active: #3d568c;  /* sidebar link active — a lighter shade of the navy */
  --ps-green: #03916e;
  --ps-green-strong: #0aa981;

  /* Sidebar rail gradient (deep blue -> teal) + ink used on the white active pill */
  --ps-grad-from: #04287a;
  --ps-grad-to: #08806c;
  --ps-side-ink: #14213d;

  --rk-sidebar-bg: var(--ps-navy);
  --rk-sidebar-accent: var(--ps-green);
  --rk-sidebar-text: rgba(255, 255, 255, .72);
  --rk-sidebar-text-strong: #ffffff;

  /* Retint the theme so Bootstrap primary/success match the logo */
  --jit-primary: var(--ps-navy);
  --jit-primary-soft: #e9edf4;
  --jit-success: var(--ps-green);
}

[data-bs-theme="dark"] {
  --rk-sidebar-bg: #26375a;
  --jit-primary-soft: rgba(44, 63, 102, .30);
}

/* ------------------------------------------------------------
   Buttons — site-wide (changed 2026-10-06)
   Apply / Submit / primary action  = .btn-primary  → blue→teal gradient, white text
   Reset / Cancel / any other action = .btn-outline-secondary | -primary | -danger
                                       → white with a red outline + red text
   Use .btn-neutral to opt a control out (input-group addons, theme toggle).
   ------------------------------------------------------------ */
:root {
  --ps-btn-from: #11296b;
  --ps-btn-to: #2f7269;
  --ps-red: #d94f4b;
}

.btn { border-radius: .65rem; font-weight: 500; }
.btn-sm { border-radius: .55rem; }
.btn-lg { border-radius: .8rem; }

.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary:disabled,
.btn-primary.disabled {
  color: #fff;
  background-color: var(--ps-btn-from);
  background-image: linear-gradient(90deg, var(--ps-btn-from) 0%, var(--ps-btn-to) 100%);
  background-origin: border-box;
  border: 1px solid transparent;
  box-shadow: none;
}
.btn-primary { transition: filter .15s ease, box-shadow .15s ease; }
.btn-primary:hover, .btn-primary:focus-visible { filter: brightness(1.12); box-shadow: 0 4px 14px rgba(17, 41, 107, .28); }
.btn-primary:active { filter: brightness(.92); }
.btn-primary:disabled, .btn-primary.disabled { opacity: .6; filter: none; }

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger {
  --ps-out: var(--ps-red); /* overridden by the .btn-act-* modifiers below */
  --bs-btn-color: var(--ps-out);
  --bs-btn-border-color: var(--ps-out);
  --bs-btn-bg: transparent;
  --bs-btn-hover-color: var(--ps-out);
  --bs-btn-hover-bg: color-mix(in srgb, var(--ps-out) 9%, transparent);
  --bs-btn-hover-border-color: var(--ps-out);
  --bs-btn-active-color: var(--ps-out);
  --bs-btn-active-bg: color-mix(in srgb, var(--ps-out) 16%, transparent);
  --bs-btn-active-border-color: var(--ps-out);
  --bs-btn-disabled-color: var(--ps-out);
  --bs-btn-disabled-border-color: var(--ps-out);
  color: var(--ps-out);
  background-color: transparent;
  border: 1.5px solid var(--ps-out);
}
.btn-outline-primary:hover, .btn-outline-secondary:hover, .btn-outline-danger:hover,
.btn-outline-primary:focus-visible, .btn-outline-secondary:focus-visible, .btn-outline-danger:focus-visible {
  color: var(--ps-out);
  background-color: color-mix(in srgb, var(--ps-out) 9%, transparent);
  border-color: var(--ps-out);
}
.btn-outline-primary:focus-visible, .btn-outline-secondary:focus-visible, .btn-outline-danger:focus-visible {
  box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--ps-out) 25%, transparent);
}
.btn-outline-primary:active, .btn-outline-secondary:active, .btn-outline-danger:active {
  color: var(--ps-out);
  background-color: color-mix(in srgb, var(--ps-out) 16%, transparent);
  border-color: var(--ps-out);
}

/* Action colours — pick by what the button DOES. Same outline style, different hue.
   (Delete / Cancel / Reset / Clear / Back keep the default red.) */
.btn-act-edit { --ps-out: #2c58d0; }                       /* edit / modify */
.btn-act-view { --ps-out: #1b8576; }                       /* view / open details */
.btn-act-download, .btn-act-upload { --ps-out: #2a7a45; }  /* download / export / upload */
.btn-act-manage { --ps-out: #7c5cc4; }                     /* assign / manage access */
[data-bs-theme="dark"] .btn-act-edit { --ps-out: #8fabff; }
[data-bs-theme="dark"] .btn-act-view { --ps-out: #5fd0bf; }
[data-bs-theme="dark"] .btn-act-download, [data-bs-theme="dark"] .btn-act-upload { --ps-out: #7fd2a1; }
[data-bs-theme="dark"] .btn-act-manage { --ps-out: #b9a3f0; }

/* Opt-out: keeps Bootstrap's neutral grey outline */
.btn-neutral.btn-outline-secondary {
  --bs-btn-color: #6c757d;
  --bs-btn-border-color: #ced4da;
  --bs-btn-hover-color: #495057;
  --bs-btn-hover-bg: rgba(108, 117, 125, .1);
  --bs-btn-hover-border-color: #adb5bd;
  color: #6c757d;
  border: 1px solid #ced4da;
}
.btn-neutral.btn-outline-secondary:hover { color: #495057; background-color: rgba(108, 117, 125, .1); border-color: #adb5bd; }
.form-control:focus, .form-select:focus {
  border-color: var(--ps-navy);
  box-shadow: 0 0 0 .2rem rgba(44, 63, 102, .18);
}
.badge-soft-secondary { background: rgba(108, 117, 138, .16); color: #4b5468; }
[data-bs-theme="dark"] .badge-soft-secondary { background: rgba(160, 170, 190, .18); color: #c4cada; }
.badge-soft-success { background: rgba(3, 145, 110, .14); color: var(--ps-green); }
a { color: var(--ps-navy); }

/* ------------------------------------------------------------
   Sidebar — blue → teal gradient rail
   Section headings are full-bleed translucent bands; links are plain
   white-on-gradient, and the active (or open) item becomes a white pill.
   Sub-menus hang off a tree line. Collapsed rail = icons only.
   ------------------------------------------------------------ */
.sidebar {
  background: linear-gradient(105deg, var(--ps-grad-from) 0%, var(--ps-grad-to) 100%) !important;
  box-shadow: 4px 0 24px rgba(4, 30, 70, .25);
  border-right: 0;
}
.sidebar::before { content: none; }

/* Brand: white lockup (collapsed: just the PS mark) + inset divider */
.sidebar-brand {
  display: block;
  min-height: 0;
  padding: 1.25rem 1.25rem 0;
  border-bottom: 0;
  overflow: hidden;
}
.sidebar-brand::after {
  content: "";
  display: block;
  margin-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, .4);
  transition: width .25s ease, margin .25s ease;
}
.sidebar-brand img.logo-full { display: block; width: 100%; max-width: 205px; height: auto; }
.sidebar-brand img.logo-mark { display: none; height: 2.6rem; width: auto; margin: 0 auto; }
.sidebar.collapsed .sidebar-brand { padding: 1.1rem .5rem 0; }
.sidebar.collapsed .sidebar-brand img.logo-full { display: none; }
.sidebar.collapsed .sidebar-brand img.logo-mark { display: block; }
.sidebar.collapsed .sidebar-brand::after { width: 1.4rem; margin: .95rem auto 0; }

/* Nav + section headings */
.sidebar-nav { padding: 0 0 .75rem; }
.sidebar-heading {
  margin-top: .6rem;
  padding: .35rem 1.5rem;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .72);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
}
.sidebar-heading + .sidebar-link { margin-top: .45rem; }
/* Collapsed: keep the vertical gap where the heading was, hide the band */
.sidebar.collapsed .sidebar-heading { background: transparent; color: transparent; }

/* Links */
.sidebar-link {
  gap: .85rem;
  width: auto;
  margin: .1rem 1.25rem;
  padding: .55rem .9rem;
  border-radius: .7rem;
  color: #fff;
  font-size: .93rem;
  font-weight: 500;
  transform: none;
  transition: background-color .15s ease, color .15s ease;
}
button.sidebar-link { width: calc(100% - 2.5rem); }
.sidebar-link:hover {
  background: rgba(255, 255, 255, .13);
  color: #fff;
  transform: none;
}
.sidebar-link .sidebar-icon { width: 1.6rem; font-size: 1.3rem; color: #fff; transform: none; }
.sidebar-link .sidebar-arrow { font-size: .8rem; color: inherit; }

/* Active page, or a menu group that is currently open → white pill */
.sidebar-link.active,
.sidebar-link.active:hover,
.sidebar-link[aria-expanded="true"],
.sidebar-link[aria-expanded="true"]:hover {
  background: #fff;
  color: var(--ps-side-ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .14);
}
.sidebar-link.active .sidebar-icon,
.sidebar-link[aria-expanded="true"] .sidebar-icon { color: var(--ps-side-ink); transform: none; }
.sidebar-link.active::before { content: none; }
.sidebar-link[aria-expanded="true"] .sidebar-arrow { transform: rotate(180deg); }

/* Sub-menu: tree line with curved elbows into each item */
.sidebar-submenu {
  position: relative;
  margin: .1rem 1.25rem .3rem 2.15rem;
  padding: .45rem 0 0 1.35rem;
  background: none;
  border-radius: 0;
}
.sidebar-submenu li { position: relative; }
.sidebar-submenu li::before {
  content: "";
  position: absolute;
  left: -1.35rem;
  top: 0;
  width: 1.35rem;
  height: 50%;
  border-left: 2px solid rgba(255, 255, 255, .85);
  border-bottom: 2px solid rgba(255, 255, 255, .85);
  border-bottom-left-radius: .8rem;
}
.sidebar-submenu li:first-child::before { top: -.45rem; height: calc(50% + .45rem); }
.sidebar-submenu li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: -1.35rem;
  top: 50%;
  bottom: 0;
  border-left: 2px solid rgba(255, 255, 255, .85);
}
.sidebar-submenu .sidebar-link {
  margin: .1rem 0;
  padding: .45rem .9rem;
  font-size: .88rem;
}

/* Collapsed rail: centred icons, active item = white rounded square */
.sidebar.collapsed .sidebar-link {
  width: auto;
  margin: .2rem .65rem;
  padding: .7rem 0;
  justify-content: center;
  gap: 0;
}
.sidebar.collapsed button.sidebar-link { width: calc(100% - 1.3rem); }
.sidebar.collapsed .sidebar-label,
.sidebar.collapsed .sidebar-arrow { display: none; }

/* User widget: avatar + role (small caps) above name */
.sidebar-user {
  position: relative;
  gap: .9rem;
  padding: 1.15rem 1.25rem 1.35rem;
  border-top: 0;
  background: none;
}
.sidebar-user::before {
  content: "";
  position: absolute;
  top: 0; left: 1.25rem; right: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .4);
}
.sidebar-user-avatar {
  display: flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; flex: none; overflow: hidden;
  border-radius: 50%;
  background: var(--ps-green);
  border: 2px solid rgba(255, 255, 255, .35);
  color: #fff; font-weight: 600; font-size: .9rem;
}
.sidebar-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-user-info { min-width: 0; display: flex; flex-direction: column; }
.sidebar-user-role {
  order: -1;
  font-size: .7rem; letter-spacing: .03em; text-transform: uppercase;
  color: rgba(255, 255, 255, .88);
}
.sidebar-user-name {
  font-size: 1.05rem; font-weight: 700; line-height: 1.2; color: #fff;
  overflow: hidden; text-overflow: ellipsis;
}
.sidebar.collapsed .sidebar-user { justify-content: center; padding-left: 0; padding-right: 0; }
.sidebar.collapsed .sidebar-user::before { left: 50%; right: auto; width: 1.4rem; transform: translateX(-50%); }
.sidebar.collapsed .sidebar-user-info { display: none; }

/* Scrollbar inside the nav */
.sidebar-nav { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .45) transparent; }
.sidebar-nav::-webkit-scrollbar { width: 7px; }
/* "More below" hint — fades the bottom edge of the rail while the menu is scrollable */
.sidebar { position: fixed; }
.sidebar.has-more .sidebar-nav::after {
  content: "";
  position: sticky;
  bottom: -.75rem;
  display: block;
  height: 2.6rem;
  margin-top: -2.6rem;
  background: linear-gradient(to bottom, transparent, rgba(0, 20, 60, .55));
  pointer-events: none;
}
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .42); }
.sidebar-nav::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .6); }

/* ------------------------------------------------------------
   Social Media — Publishing Overview / Activity
   (resources/views/social/posts/index.blade.php)
   ------------------------------------------------------------ */
.pub-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--jit-card-border);
  margin-bottom: 2.25rem;
}
.pub-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1.5rem 0;
  border-right: 1px solid var(--jit-card-border);
}
.pub-stat + .pub-stat { padding-left: 1.5rem; }
/* Overview card: header + stat strip live inside one white card */
.pub-overview .pub-stats { margin: 1.25rem 0 0; }
.pub-overview .pub-stat { padding-bottom: .25rem; padding-top: 1.5rem; }
.pub-overview .pub-stat:last-child { padding-right: 0; }
.pub-stat:last-child { border-right: 0; }
.pub-stat-icon {
  width: 52px; height: 52px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: .85rem; color: #fff; font-size: 1.5rem;
}
.pub-stat-label {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .02em;
  color: var(--jit-text-muted);
}
.pub-stat-value { font-size: 1.85rem; font-weight: 700; line-height: 1.15; color: var(--jit-text-main); }

.pub-total       { --pub-c: var(--ps-navy); }
.pub-published   { --pub-c: #1f9d4f; }
.pub-scheduled   { --pub-c: #7c5cc4; }
.pub-in_progress { --pub-c: #1565d8; }
.pub-failed      { --pub-c: #e5484d; }
.pub-stat-icon, .pub-pill { background: var(--pub-c); }

.pub-filters { display: flex; gap: .75rem; flex-wrap: wrap; }
.pub-filters .form-select { width: auto; min-width: 9.5rem; }

.pub-table-wrap {
  border: 1px solid var(--jit-card-border);
  border-radius: .25rem;
  overflow: hidden;
  background: var(--jit-card-bg);
}
.pub-table { margin: 0; }
.pub-table thead th {
  background: var(--jit-primary-soft);
  color: var(--jit-text-muted);
  font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .02em;
  padding: 1rem .75rem; border-bottom: 1px solid var(--jit-card-border);
  white-space: nowrap;
}
.pub-table tbody td { padding: 1rem .75rem; vertical-align: middle; }
.pub-table tbody tr + tr td { border-top: 1px solid var(--jit-card-border); }
.pub-table .col-center { text-align: center; }
.pub-table .col-thumb { width: 5.5rem; padding-left: 1.5rem; }

.pub-thumb {
  width: 48px; height: 48px; border-radius: .5rem; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--jit-primary-soft); color: var(--jit-text-muted); font-size: 1.35rem;
}
.pub-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pub-target-name { font-weight: 600; color: var(--jit-text-main); }
.pub-platform { display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--jit-text-muted); }
.pub-platform .bi-facebook { color: #1877f2; font-size: 1rem; }
.pub-platform .bi-youtube { color: #ff0000; font-size: 1rem; }
.pub-platform .bi-instagram {
  font-size: 1rem;
  background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.pub-pill {
  display: inline-block; padding: .25rem .7rem; border-radius: .3rem;
  color: #fff; font-size: .78rem; font-weight: 600; text-transform: uppercase; white-space: nowrap;
}

.pub-by { color: var(--jit-text-main); font-weight: 500; }
.pub-action {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: none; padding: .25rem; font-size: 1.25rem; line-height: 1; cursor: pointer;
  color: var(--jit-primary);
}
.pub-action.is-cancel { color: #e5484d; }
.pub-action.is-retry { color: var(--jit-text-main); }

@media (max-width: 991.98px) {
  .pub-stats { grid-template-columns: repeat(2, 1fr); }
  .pub-stat { padding: 1rem; border-bottom: 1px solid var(--jit-card-border); }
  .pub-stat + .pub-stat { padding-left: 1rem; }
}

/* ------------------------------------------------------------
   Social Media — Compose Post
   (resources/views/social/posts/create.blade.php)
   ------------------------------------------------------------ */
.cmp-card {
  background: var(--jit-card-bg);
  border: 1px solid var(--jit-card-border);
  border-radius: .75rem;
  padding: 1.5rem;
}
.cmp-head { display: flex; align-items: center; gap: 1rem; }
.cmp-step {
  width: 3.25rem; height: 3.25rem; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--ps-navy); color: #fff;
  border-radius: .6rem; font-size: 1.4rem; font-weight: 500;
}
.cmp-title { margin: 0; font-weight: 700; font-size: 1.2rem; color: var(--jit-text-main); }
.cmp-sub { margin: .15rem 0 0; font-size: .875rem; color: var(--jit-text-muted); }
.cmp-label { display: block; margin-bottom: .4rem; color: var(--jit-text-muted); font-size: .95rem; }

/* Square checkboxes (account cards + Select All) */
.cmp-check {
  appearance: none; -webkit-appearance: none;
  width: 1.4rem; height: 1.4rem; flex: none; margin: 0; cursor: pointer;
  border: 2px solid var(--jit-text-main); border-radius: .25rem; background: transparent;
  display: inline-grid; place-content: center;
}
.cmp-check::after {
  content: ''; width: .75rem; height: .75rem;
  transform: scale(0); transition: transform .12s ease-in-out;
  background: #fff;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%);
}
.cmp-check:checked { background: var(--ps-navy); border-color: var(--ps-navy); }
.cmp-check:checked::after { transform: scale(1); }
.cmp-selectall { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-size: 1.05rem; color: var(--jit-text-main); }

/* Platform tabs + search */
.cmp-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.cmp-tabs { display: inline-flex; gap: .25rem; padding: .3rem; border-radius: .6rem; background: var(--jit-primary-soft); }
.cmp-tab {
  border: 0; background: transparent; color: var(--jit-text-muted);
  padding: .55rem 1.25rem; border-radius: .45rem; font-size: 1rem;
}
.cmp-tab.is-active { background: var(--jit-card-bg); color: var(--jit-text-main); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.cmp-search { position: relative; width: 100%; max-width: 28rem; }
.cmp-search .bi { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--jit-text-muted); }
.cmp-search .form-control { padding-left: 2.5rem; height: 3rem; }
.cmp-divider { margin: 1.25rem 0; border-color: var(--jit-card-border); opacity: 1; }

/* Account cards */
.cmp-accounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cmp-account {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem; cursor: pointer;
  background: var(--jit-body-bg); border: 2px solid transparent; border-radius: .5rem;
  transition: background .12s, border-color .12s;
}
.cmp-account[hidden] { display: none; }
.cmp-account:has(.cmp-check:checked) { background: var(--jit-primary-soft); border-color: var(--ps-navy); }
.cmp-avatar {
  position: relative; width: 3.4rem; height: 3.4rem; flex: none; border-radius: 50%; overflow: hidden;
  background: var(--jit-primary-soft);
}
.cmp-avatar img, .cmp-avatar-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.cmp-avatar img { object-fit: cover; }
.cmp-avatar-fallback { display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--ps-navy); }
.cmp-account-meta { display: flex; flex-direction: column; min-width: 0; }
.cmp-account-name { font-size: 1.1rem; font-weight: 500; color: var(--jit-text-main); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Post-type segmented control */
.cmp-segment { display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem; padding: .3rem; border-radius: .6rem; background: var(--jit-primary-soft); }
.cmp-segment label { margin: 0; cursor: pointer; }
.cmp-segment input { position: absolute; opacity: 0; pointer-events: none; }
.cmp-segment span {
  display: block; text-align: center; padding: .65rem .5rem; border-radius: .45rem;
  color: var(--jit-text-muted); font-size: 1rem;
}
.cmp-segment label.is-disabled { opacity: .4; cursor: not-allowed; }
.cmp-segment input:checked + span { background: var(--jit-card-bg); color: var(--jit-text-main); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.cmp-segment input:focus-visible + span { outline: 2px solid var(--ps-navy); }

/* Upload zone */
.cmp-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .85rem;
  min-height: 9.5rem; padding: 1.25rem; margin: 0; cursor: pointer; text-align: center;
  border: 2px dashed var(--ps-navy); border-radius: .5rem; background: var(--jit-primary-soft);
}
.cmp-drop.is-over { background: rgba(44, 63, 102, .22); }
.cmp-drop-icon {
  width: 4rem; height: 3.1rem; display: flex; align-items: center; justify-content: center;
  background: var(--jit-card-bg); border-radius: .5rem; color: var(--ps-navy); font-size: 1.4rem;
}
.cmp-drop-text { color: var(--jit-text-main); font-size: 1.05rem; }
.cmp-drop-link { color: var(--ps-navy); font-weight: 500; }
[data-bs-theme="dark"] .cmp-drop-link, [data-bs-theme="dark"] .cmp-drop-icon { color: #9db4e6; }
.cmp-drop-file { font-size: .875rem; color: var(--jit-text-muted); word-break: break-all; }

/* Publish / schedule options */
.cmp-option {
  display: flex; align-items: center; gap: .85rem; min-height: 5.5rem; margin: 0; padding: 1rem 1.25rem; cursor: pointer;
  background: var(--jit-body-bg); border-radius: .5rem;
}
.cmp-option:has(input:checked) { background: var(--jit-primary-soft); }
.cmp-option input { width: 1.4rem; height: 1.4rem; margin: 0; flex: none; accent-color: var(--ps-navy); cursor: pointer; }
.cmp-option-label { font-size: 1.15rem; color: var(--jit-text-main); }
.cmp-schedule-at { margin-top: .75rem; padding: 1rem 1.25rem; border-radius: .5rem; background: var(--jit-body-bg); }

@media (max-width: 991.98px) {
  .cmp-accounts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
  .cmp-accounts { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   Import / sample-download buttons (voter + master import screens)
   <a|button class="rk-filebtn rk-filebtn--xlsx|csv|import"><x-file-icon/> Label</…>
   ------------------------------------------------------------ */
.rk-filebtn {
  --fb-c: #2a6b3f;
  --fb-bg: #e6f0ea;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .45rem 1.1rem;
  border: 1.5px solid var(--fb-c);
  border-radius: .65rem;
  background: var(--fb-bg);
  color: var(--fb-c);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow .15s ease, filter .15s ease;
}
.rk-filebtn:hover, .rk-filebtn:focus {
  color: var(--fb-c);
  text-decoration: none;
  filter: brightness(.97);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .1);
}
.rk-filebtn svg { width: 1.7rem; height: 1.7rem; flex: none; }
.rk-filebtn--csv { --fb-c: #2c58d0; --fb-bg: #e8eefb; }
[data-bs-theme="dark"] .rk-filebtn { --fb-c: #7fd2a1; --fb-bg: rgba(54, 164, 107, .16); }
[data-bs-theme="dark"] .rk-filebtn--csv { --fb-c: #9db8ff; --fb-bg: rgba(59, 109, 240, .18); }

/* Compose — YouTube-only details block */
.cmp-yt { border: 1.5px solid rgba(255, 0, 0, .22); background: rgba(255, 0, 0, .04); border-radius: .75rem; padding: 1rem; }
.cmp-yt-head { display: flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .875rem; margin-bottom: .75rem; }
.cmp-yt-head .bi-youtube { color: #ff0000; font-size: 1.1rem; }

/* ------------------------------------------------------------
   Reports → Social Posts Reports (resources/views/reports/social-posts.blade.php)
   ------------------------------------------------------------ */
.rpt-filters { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; }
.rpt-filters > div { min-width: 9.5rem; }
.rpt-filters .form-label { font-size: .75rem; font-weight: 600; color: var(--jit-text-muted); margin-bottom: .2rem; }
.pub-stats.rpt-stats5 { grid-template-columns: repeat(5, 1fr); }

.rpt-platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.rpt-platform { border: 1px solid var(--jit-card-border); border-radius: .85rem; padding: 1rem 1.1rem; background: var(--jit-card-bg, transparent); }
.rpt-plat-icon { font-size: 1.35rem; color: var(--jit-text-muted); }
.rpt-plat-facebook { color: #1877f2; }
.rpt-plat-instagram { color: #d6249f; }
.rpt-plat-youtube { color: #ff0000; }
.rpt-plat-total { font-size: 1.75rem; font-weight: 700; line-height: 1.15; color: var(--jit-text-main); }

.rpt-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.rpt-tiles-perf { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.rpt-tile {
  display: flex; align-items: center; gap: .8rem;
  border: 1px solid var(--jit-card-border); border-radius: .8rem; padding: .8rem 1rem;
}
.rpt-tile > .bi { font-size: 1.3rem; color: var(--ps-navy); }
[data-bs-theme="dark"] .rpt-tile > .bi { color: #9db8ff; }
.rpt-tile-value { font-size: 1.25rem; font-weight: 700; line-height: 1.15; color: var(--jit-text-main); }
.rpt-tile-label { font-size: .75rem; color: var(--jit-text-muted); }

.rpt-bar-row { display: flex; align-items: center; gap: .75rem; padding: .3rem 0; }
.rpt-bar-label { width: 8.5rem; font-size: .85rem; color: var(--jit-text-main); }
.rpt-bar { flex: 1; height: .6rem; border-radius: 99px; background: rgba(120, 130, 160, .16); overflow: hidden; }
.rpt-bar > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--ps-btn-from), var(--ps-btn-to)); }
.rpt-bar-num { width: 3.5rem; text-align: right; font-weight: 600; font-size: .85rem; }
.rpt-scroll { max-height: 22rem; overflow: auto; }

@media (max-width: 1199px) {
  .pub-stats.rpt-stats5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .rpt-platforms { grid-template-columns: 1fr; }
  .rpt-tiles { grid-template-columns: repeat(2, 1fr); }
  .pub-stats.rpt-stats5 { grid-template-columns: repeat(2, 1fr); }
}

/* ------------------------------------------------------------
   Reports → Reports Dashboard (resources/views/reports/dashboard.blade.php)
   ------------------------------------------------------------ */
.rpt-account-pick { min-width: 15rem; }
.rpt-account-pick .form-label { font-size: .75rem; font-weight: 600; color: var(--jit-text-muted); }

.rdb-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.rdb-pills { display: flex; flex-wrap: wrap; gap: .4rem; padding: .3rem; border-radius: .7rem; background: var(--jit-primary-soft); }
.rdb-pill {
  padding: .45rem .95rem; border-radius: .5rem; font-size: .85rem; font-weight: 500;
  color: var(--jit-text-muted); text-decoration: none; white-space: nowrap;
}
.rdb-pill:hover { color: var(--jit-text-main); }
.rdb-pill.is-active { background: linear-gradient(90deg, var(--ps-btn-from), var(--ps-btn-to)); color: #fff; box-shadow: 0 2px 8px rgba(17, 41, 107, .25); }
.rdb-showing { font-size: .85rem; color: var(--jit-text-muted); }
.rdb-custom { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem; width: 100%; padding-top: .75rem; border-top: 1px solid var(--jit-card-border); }
.rdb-custom .form-label { font-size: .75rem; font-weight: 600; color: var(--jit-text-muted); margin-bottom: .2rem; }

.rdb-group-title { font-weight: 700; color: var(--jit-text-main); margin-bottom: .75rem; }
.rdb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .9rem; }
.rdb-card {
  --rdb-c: var(--ps-navy);
  border: 1px solid var(--jit-card-border); border-radius: .9rem; padding: 1rem 1.1rem;
  background: var(--jit-card-bg, transparent);
}
[data-bs-theme="dark"] .rdb-card { --rdb-c: #9db8ff; }
.rdb-card.tone-success { --rdb-c: #1f9d4f; }
.rdb-card.tone-warning { --rdb-c: #d98a14; }
.rdb-card.tone-info    { --rdb-c: #7c5cc4; }
.rdb-card.tone-danger  { --rdb-c: #e5484d; }
.rdb-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .7rem; }
.rdb-icon {
  width: 2.4rem; height: 2.4rem; display: inline-flex; align-items: center; justify-content: center;
  border-radius: .65rem; font-size: 1.15rem; color: var(--rdb-c);
  background: color-mix(in srgb, var(--rdb-c) 13%, transparent);
}
.rdb-scope {
  font-size: .62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--jit-text-muted); border: 1px solid var(--jit-card-border); border-radius: 99px; padding: .1rem .5rem;
}
.rdb-label { font-size: .8rem; font-weight: 600; color: var(--jit-text-muted); }
.rdb-value { font-size: 2rem; font-weight: 700; line-height: 1.15; color: var(--jit-text-main); margin: .15rem 0; }
.rdb-note { font-size: .75rem; color: var(--jit-text-muted); min-height: 1.1rem; }

/* A metric the system can't measure yet */
.rdb-card.is-off { border-style: dashed; background: transparent; }
.rdb-card.is-off .rdb-icon { color: var(--jit-text-muted); background: rgba(120, 130, 160, .13); }
.rdb-off-badge {
  display: inline-flex; align-items: center; margin: .35rem 0 .3rem; padding: .3rem .7rem;
  border-radius: .5rem; font-size: .85rem; font-weight: 700; color: var(--jit-text-muted);
  background: rgba(120, 130, 160, .14);
}

/* ------------------------------------------------------------
   Reports → Voter Reports (resources/views/reports/voters.blade.php)
   ------------------------------------------------------------ */
.vr-filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: .75rem 1rem; align-items: end; }
.vr-filters .form-label { font-size: .75rem; font-weight: 600; color: var(--jit-text-muted); margin-bottom: .2rem; }
.vr-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.vr-chip { font-size: .78rem; padding: .2rem .65rem; border-radius: 99px; background: var(--jit-primary-soft); color: var(--jit-text-main); }
.vr-tiles { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.vr-minibar { display: inline-block; width: 4rem; height: .4rem; margin-right: .5rem; vertical-align: middle; border-radius: 99px; background: rgba(120, 130, 160, .16); overflow: hidden; }
.vr-minibar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--ps-btn-from), var(--ps-btn-to)); }

/* ------------------------------------------------------------
   Page loader (public/theme/js/pages/page-loader.js) — Reports
   ------------------------------------------------------------ */
.pl-overlay {
  position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center;
  background: rgba(240, 243, 250, .74); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  cursor: progress;
}
.pl-overlay.is-on { display: flex; animation: pl-fade .15s ease-out; }
[data-bs-theme="dark"] .pl-overlay { background: rgba(12, 16, 28, .74); }
.pl-card {
  display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center;
  min-width: 17rem; max-width: 90vw; padding: 1.6rem 2.2rem; border-radius: 1rem;
  background: var(--jit-card-bg, #fff); border: 1px solid var(--jit-card-border);
  box-shadow: 0 14px 40px rgba(20, 30, 70, .18);
}
.pl-text { font-weight: 600; color: var(--jit-text-main); }
.pl-sub { font-size: .78rem; color: var(--jit-text-muted); }
.pl-spinner {
  display: inline-block; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: .28rem solid rgba(44, 63, 102, .16); border-top-color: var(--ps-btn-to, #2f7269);
  border-right-color: var(--ps-btn-from, #11296b); animation: pl-spin .8s linear infinite;
}
.pl-spinner-sm { width: 1.1rem; height: 1.1rem; border-width: .16rem; }
.pl-busy { overflow: hidden; }
.vr-lazy { display: flex; align-items: center; gap: .6rem; color: var(--jit-text-muted); font-size: .9rem; padding: .25rem 0; }
@keyframes pl-spin { to { transform: rotate(360deg); } }
@keyframes pl-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pl-spinner { animation-duration: 2.4s; } }
